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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var ba,da,aaa,ha,ia,ka,la,pa,qa,ra,ta,ua,va,xa,ya,baa,caa,za,Aa,daa,Ba,Ca,Da,Ea,Ja,Ka,faa,gaa,Sa,Ta,Ua,haa,Va,iaa,Za,$a,ib,jb,lb,kaa,qb,xb,laa,Eb,Fb,maa,Kb,Hb,naa,Ib,oaa,paa,qaa,Sb,Vb,Xb,Yb,Zb,bc,dc,fc,hc,kc,qc,rc,tc,sc,uc,vc,wc,xc,zc,Ac,Bc,Jc,Lc,Ic,Fc,Oc,Pc,Rc,Tc,Qc,Wc,Xc,Yc,Zc,$c,cd,dd,ed,fd,gd,hd,id,jd,kd,od,pd,qd,td,sd,vd,vaa,waa,ud,wd,yd,zd,Ad,xd,Bd,Ed,Hd,Gd,Id,Kd,Ld,yaa,Jd,Md,Nd,Pd,Od,Qd,Rd,Sd,Td,Vd,zaa,Wd,Xd,Zd,$d,ae,be,Aaa,ce,Baa,de,Caa,ee,fe,ie,je,le,me,ne,Daa,se,ue,ve,xe,Faa,
ye,ze,Ae,Be,De,Fe,Gaa,Ce,Ke,Le,Ie,Iaa,Ge,Ee,Pe,Qe,Re,Te,Ue,Ve,We,Jaa,Ye,af,bf,ef,gf,hf,Maa,jf,of,uf,vf,yf,Paa,wf,Qaa,Taa,Uaa,Ef,Hf,Vaa,Waa,Gf,Xaa,Kf,Nf,Of,Pf,Tf,Vf,Yf,Zf,$f,cg,dg,eg,fg,$aa,aba,jg,kg,qg,rg,tg,sg,vg,yg,xg,wg,bba,hg,Ig,Hg,Kg,Jg,gg,Mg,dba,Ng,Og,Pg,eba,Vg,Xg,Zg,$g,bh,ch,dh,fh,fba,gba,hh,kh,gh,ih,Yg,eh,iba,nh,lh,mh,ph,hba,oh,th,uh,vh,wh,jba,xh,yh,kba,zh,Ah,Bh,Ch,Dh,Eh,oba,Fh,pba,Gh,Hh,Ih,Jh,Kh,Lh,Mh,Nh,Oh,sba,Uh,Wh,uba,Yh,Zh,$h,ai,bi,fi,gi,hi,ii,ji,ki,li,mi,oi,qi,ri,ti,ui,vi,wba,xba,yba,
Ai,yi,Fi,zi,Gi,Ei,Ii,Aba,Bba,Di,Ji,Cba,Ki,Li,Mi,Ni,Oi,Pi,Qi,Ri,bj,Vi,cj,dj,Hba,Gba,ej,Iba,fj,gj,hj,ij,jj,kj,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,Lba,Kba,Bj,Dj,Ej,Cj,Aj,zj,Fj,Gj,Hj,Jj,Ij,Oj,Pj,Rj,Oba,Qj,Uj,Wj,Vj,Mba,Pba,Zj,bk,ck,dk,ek,fk,gk,hk,ik,jk,kk,Qba,lk,mk,nk,ok,pk,qk,rk,tk,Sba,uk,Bk,Ck,sk,Dk,Tba,Vba,Uba,Wba,Yba,Ek,Fk,Zba,$ba,aca,Hk,Ik,Jk,Kk,Lk,Mk,Ok,Pk,bca,Qk,cca,dca,Sk,eca,fca,Uk,Vk,Wk,Tk,Zk,$k,hca,ica,jca,Yk,Xk,lca,al,mca,bl,cl,dl,el,fl,gl,hl,nca,il,jl,kl,oca,pca,ll,nl,ml,pl,ql,rl,sl,
tl,vl,ul,wl,xl,sca,uca,vca,xca,zl,Al,Bl,Dl,El,Fl,Hl,Il,Nl,Ol,Rl,yca,Ul,Tl,Vl,zca,cm,fm,dm,Bca,em,gm,hm,jm,im,Cca,km,Eca,Dca,Fca,om,pm,Gca,rm,xm,ym,qm,zm,Hca,Am,Ica,Jca,Cm,Dm,Nca,Em,Fm,Gm,Hm,Oca,Jm,Lm,Om,Rm,Tm,Qm,Pm,Um,Pca,Vm,Wm,Xm,Ym,Rca,cn,dn,en,fn,Tca,gn,hn,jn,kn,ln,mn,nn,Uca,pn,qn,rn,tn,sn,un,vn,wn,xn,yn,zn,An,Bn,Cn,Dn,Vca,En,Fn,Wca,Gn,Hn,Xca,Jn,Yca,Kn,Ln,Zca,$ca,Mn,Nn,Pn,Rn,Sn,Tn,Un,Vn,On,Qn,bda,Wn,Xn,Zn,Yn,cda,kfa,lfa,$n,ao,bo,co,wfa,xfa,yfa,zfa,Afa,fo,go,Bfa,ho,Cfa,Dfa,io,jo,ko,Efa,lo,no,oo,
po,qo,ro,so,to,uo,vo,Ffa,Gfa,wo,Hfa,yo,xo,Bo,Co,Ao,Ifa,Mfa,Lfa,Fo,Nfa,Ofa,Pfa,Rfa,Qfa,Go,Ho,Io,Sfa,Ko,Lo,Tfa,Ufa,Mo,No,Oo,Po,Vfa,Qo,Ro,Xfa,So,Yfa,To,Vo,Uo,Wo,Xo,hp,$fa,ip,Zfa,jp,aga,kp,cga,dga,mp,op,pp,qp,rp,np,sp,tp,yp,zp,wp,ega,gga,hga,Bp,Cp,Dp,Ep,iga,Fp,Gp,Hp,Ip,Jp,Kp,Lp,Mp,Pp,Op,kga,lga,Qp,Sp,Np,Rp,jga,Tp,Up,nga,oga,pga,qga,Yp,Zp,$p,Vp,aq,bq,mga,rga,sga,dq,cq,eq,gq,xga,tga,yga,kq,lq,mq,nq,oq,mo,zga,pq,Aga,Bga,Cga,Dga,Ega,rq,sq,tq,uq,wq,yq,Jga,Bq,Cq,Gq,Kga,Hq,Iq,Oq,Tq,Sq,Pq,Qq,Rq,Xq,Wq,Lga,Zq,
$q,br,Nga,dr,er,fr,Sga,Oga,kr,Xga,lr,mr,Zga,pr,qr,rr,sr,$ga,vr,wr,xr,yr,Ar,Br,Cr,Dr,Fr,Gr,Hr,Ir,Jr,bha,Lr,cha,Mr,dha,Or,Qr,Rr,gha,hha,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,rs,ts,ws,us,xs,iha,As,Bs,Ds,Es,Gs,Js,Ks,Is,Ls,Ms,Ns,Cs,lt,Ps,nha,nt,qt,oha,vt,ut,qha,rha,sha,At,tha,uha,wt,Ct,Bt,vha,Et,Ft,Gt,Mt,Nt,Ot,Qt,Rt,Tt,Ut,Vt,Xt,Yt,Zt,au,cu,du,Pt,eu,gu,fu,wha,ju,ku,lu,mu,ou,pu,qu,ru,yha,zha,zu,Au,Bu,Aha,Gu,Hu,Iu,Ku,Bha,Mu,Nu,Ju,Qu,Tu,Su,Ru,Vu,Yu,Wu,Cha,hv,gv,Eha,Fha,
mv,ov,pv,Iha,Hha,jv,zv,Av,Bv,Gv,Hv,Ev,Iv,Kv,Mv,Nv,Jha,Ov,Qv,Rv,Kha,Yv,Zv,bw,aw,cw,dw,fw,gw,hw,Oha,Pha,Qha,jw,kw,mw,nw,lw,ow,Rha,pw,qw,rw,tw,uw,ww,xw,Sha,Tha,yw,Cw,Dw,vw,Ew,Vha,zw,Wha,Gw,Xha,Aw,Fw,Hw,Bw,Uha,Jw,Kw,Yha,Lw,Mw,Iw,Zha,Nw,Ow,Pw,Qw,Sw,Tw,Uw,$ha,aia,bia,Xw,Zw,$w,dia,eia,fia,gia,hia,ax,iia,cx,bx,fx,jia,ex,dx,hx,gx,ix,jx,lx,kia,qx,px,kx,rx,lia,sx,ux,wx,xx,yx,zx,Ax,mia,nia,vx,oia,pia,Dx,Ex,Fx,Gx,ria,qia,Hx,Jx,Ix,tia,Qx,Rx,Tx,Nx,uia,Kx,Ox,Mx,Lx,Px,Ux,Yx,Zx,wia,via,zia,xia,by,cy,ay,ey,hy,iy,Bia,
gy,jy,ky,ny,oy,ry,sy,py,uy,ty,vy,Cia,yy,zy,By,Eia,Dy,Ey,Fy,Hy,Fia,Jy,Ly,Gia,Hia,Oy,Ny,Jia,Py,Sy,Qy,Ry,Uv,Qia,Ez,Ria,Sia,Tia,Fz,Via,Nz,Wia,Zia,bja,$ia,Xz,Wz,cja,Vz,Yz,Zz,fja,hja,cA,dA,jja,S,eA,fA,kja,gA,hA,iA,jA,rja,tja,vja,xja,yja,lA,Aja,Bja,rA,sA,Cja,Dja,tA,wA,xA,Eja,zA,Fja,CA,BA,DA,Gja,EA,FA,yA,GA,Hja,Kja,Lja,HA,IA,JA,Mja,KA,LA,NA,OA,Nja,Sja,PA,Tja,Vja,QA,TA,SA,WA,VA,Yja,XA,YA,Xja,Zja,ZA,RA,$ja,aka,aB,bB,cB,dB,eB,fB,hB,iB,kB,bka,lB,oB,pB,nB,fka,jka,tB,eka,dka,uB,kka,lka,mka,yB,zB,nka,oka,AB,xB,
qka,pka,BB,rka,CB,DB,ska,EB,FB,GB,HB,IB,JB,KB,LB,MB,NB,tka,OB,QB,vka,wka,PB,xka,yka,RB,zka,UB,Aka,VB,XB,Bka,WB,YB,Cka,$B,Eka,bC,cC,hC,Gka,eC,jC,lC,Hka,nC,gC,kC,iC,Ika,oC,Jka,pC,Kka,dC,fC,Fka,mC,qC,Lka,Mka,rC,Nka,Oka,Pka,sC,Qka,uC,Rka,tC,vC,Ska,wC,xC,yC,zC,AC,Tka,CC,Uka,Vka,DC,EC,FC,GC,Wka,BC,HC,Xka,Yka,IC,JC,KC,LC,Zka,$ka,NC,ala,OC,PC,bla,dla,QC,ela,fla,jla,kla,gla,hla,ila,RC,TC,SC,UC,VC,lla,mla,WC,XC,YC,nla,ZC,$C,aD,ola,pla,bD,qla,cD,rla,dD,eD,sla,tla,ula,vla,xla,wla,gD,yla,zla,Ala,hD,iD,jD,Bla,
lD,kD,pD,qD,rD,sD,tD,Cla,uD,nD,Dla,vD,xD,yD,Ela,zD,AD,BD,CD,DD,ED,FD,GD,Fla,HD,ID,Gla,JD,KD,ND,OD,PD,QD,RD,Hla,SD,TD,UD,Ila,Jla,VD,WD,hka,sB,Nla,Ola,Pla,Qla,Rla,Sla,mB,Tla,XD,Xla,Wla,Vla,YD,Ula,Zla,ZD,cma,$la,ama,ema,fma,bE,dma,gma,cE,dE,eE,hma,ima,jma,fE,aE,kma,lma,mma,gE,nma,oma,pma,iE,hE,qma,rma,sma,tma,vma,ika,gka,jE,lE,nE,oE,pE,qE,mE,tE,xma,vE,zma,wE,Bma,Ama,yma,Cma,Dma,Ema,xE,cka,yE,Fma,qB,Gma,AE,BE,Hma,Ima,Jma,Kma,CE,Lma,DE,EE,Mma,FE,Nma,HE,Oma,IE,JE,KE,LE,Pma,Qma,Rma,Tma,ME,Uma,Sma,NE,OE,
PE,QE,Vma,RE,SE,pF,kF,$ma,ena,qF,tF,uF,cF,kna,TE,fna,lF,nF,xF,BF,bna,lna,$E,EF,ZE,dna,FF,Xma,oF,jna,HF,IF,nna,ona,JF,pna,qna,rna,sna,KF,tna,yna,xna,una,wna,vna,LF,zna,MF,Ana,Bna,NF,PF,QF,Ena,Fna,UF,VF,Gna,WF,XF,Hna,Ina,Kna,Nna,Ona,Pna,$F,Tna,Vna,Wna,Xna,Lna,Rna,Sna,Yna,Zna,coa,eoa,eG,fG,foa,hoa,ioa,joa,koa,qoa,hG,roa,toa,soa,uoa,lG,voa,iG,mG,nG,woa,pG,Aoa,xoa,zoa,wG,yG,Noa,Ioa,uG,CG,Moa,Ooa,DG,Poa,Qoa,EG,Goa,Soa,Roa,rG,vG,xG,Yoa,Uoa,Zoa,Voa,Woa,Xoa,$oa,FG,apa,bpa,HG,IG,KG,qG,BG,Joa,yoa,Loa,Koa,MG,
dpa,Toa,TG,UG,VG,WG,gpa,XG,hpa,ZG,YG,Hoa,ipa,cpa,AG,jpa,Doa,tG,Coa,goa,qH,rH,lpa,sH,tH,uH,wH,vH,xH,mpa,npa,yH,AH,opa,ppa,rpa,qpa,BH,CH,spa,tpa,DH,upa,EH,FH,GH,HH,IH,JH,vpa,KH,wpa,LH,NH,zpa,MH,Apa,xpa,ypa,Bpa,Cpa,Dpa,OH,PH,QH,RH,SH,Fpa,XH,VH,Hpa,ZH,Gpa,$H,WH,aI,Ipa,YH,UH,TH,Kpa,dI,fI,gI,Mpa,hI,Lpa,iI,jI,kI,lI,mI,nI,Npa,oI,Opa,pI,Qpa,rI,Rpa,Spa,Tpa,Wpa,Upa,Vpa,Xpa,sI,Ypa,Zpa,$pa,aqa,bqa,tI,uI,vI,wI,xI,yI,zI,AI,BI,CI,DI,EI,FI,GI,HI,II,JI,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,ZI,$I,aJ,bJ,cJ,dJ,
eJ,fJ,gJ,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,rJ,dqa,cqa,fqa,gqa,eqa,sJ,hqa,tJ,uJ,vJ,xJ,iqa,wJ,yJ,zJ,kqa,jqa,nqa,CJ,DJ,oqa,GJ,HJ,pqa,uqa,IJ,vqa,JJ,KJ,wqa,LJ,xqa,yqa,Aqa,Bqa,Cqa,NJ,MJ,zqa,OJ,Fqa,Dqa,Eqa,Hqa,Iqa,PJ,Jqa,Gqa,QJ,RJ,Mqa,Nqa,SJ,Oqa,Pqa,TJ,VJ,WJ,XJ,YJ,aK,cK,dK,Qqa,Rqa,eK,Tqa,Uqa,fK,Vqa,hK,Wqa,Xqa,iK,jK,Yqa,Zqa,kK,ara,$qa,lK,dra,mK,era,nK,oK,pK,rK,fra,gra,hra,ira,jra,sK,uK,nra,qra,kra,vK,Ara,zra,wK,Cra,Bra,Era,Fra,Hra,Gra,Ira,Jra,Kra,Lra,xK,yK,Mra,Nra,Ora,Qra,Rra,Sra,Tra,Ura,FK,Wra,Xra,DK,EK,Vra,
Yra,Zra,GK,bsa,$ra,dsa,csa,esa,Jpa,fsa,gsa,hsa,isa,HK,nsa,ksa,lsa,msa,osa,IK,psa,rsa,ssa,qsa,JK,tsa,gK,vsa,wsa,Sqa,usa,KK,LK,xsa,ysa,zsa,MK,OK,Bsa,PK,SK,Csa,TK,Dsa,Esa,UK,Gsa,Hsa,Isa,Jsa,Ksa,Lsa,Msa,ZK,Nsa,$K,Osa,Psa,Qsa,Rsa,Ssa,dL,eL,fL,Tsa,gL,Usa,iL,Wsa,Vsa,jL,kL,lL,mL,Xsa,nL,oL,Ysa,pL,qL,bta,Zsa,ata,$sa,cta,rL,sL,dta,eta,fta,gta,tL,hta,jta,ita,uL,vL,wL,xL,yL,AL,BL,CL,DL,EL,kta,FL,GL,mta,lta,HL,nta,IL,JL,KL,LL,OL,PL,QL,RL,SL,TL,UL,VL,pta,WL,qta,sta,tta,vta,YL,wta,ZL,$L,aM,bM,yta,dM,Ata,zta,Cta,
Bta,eM,fM,gM,hM,iM,jM,kM,nM,Dta,Fta,Gta,pM,Hta,Tv,Jta,Ita,qM,Lta,Kta,Nta,Mta,Ota,Qta,Rta,Tta,Uta,Yta,Xta,Zta,vM,$ta,yM,wM,zM,xM,jsa,aua,bua,cua,dua,EM,DM,gua,GM,jua,PM,QM,kua,RM,SM,lua,mua,UM,VM,nua,uua,xua,vua,yua,zua,Aua,Bua,Dua,fN,Hua,iN,Jua,Gua,Kua,Lua,hN,Iua,jN,kN,lN,IM,mN,BM,oN,Oua,Mua,Nua,pN,sN,Qua,rN,uN,Rua,Sua,xN,yN,zN,DN,Uua,Vua,EN,FN,Wua,Xua,Yua,Zua,GN,$ua,ava,HN,bva,cva,JN,KN,dva,NN,fva,PN,LN,gva,hva,eva,QN,RN,UN,iva,TN,WN,VN,YN,$N,jva,cO,kva,nva,lva,gO,hO,ova,kO,lO,mO,nO,pO,qva,pva,rva,
rO,tva,sva,uva,vva,wva,xva,xO,yO,yva,zO,AO,zva,Ava,BO,EO,Cva,Bva,FO,GO,HO,Dva,IO,JO,KO,LO,Eva,MO,NO,Fva,OO,Gva,Iva,Hva,TO,RO,SO,Jva,Kva,Lva,UO,VO,WO,XO,YO,Mva,aP,Nva,cP,dP,eP,gP,hP,iP,jP,Ova,Rva,kP,Pva,Qva,Vva,Wva,mP,Yva,Xva,Zva,$va,awa,oP,qP,bwa,dwa,cwa,rP,sP,tP,uP,ewa,fwa,gwa,hwa,iwa,xP,kwa,jwa,mwa,zP,nwa,EP,pwa,qwa,BP,yP,AP,GP,uwa,HP,DP,lwa,twa,FP,owa,rwa,vwa,wwa,swa,CP,JP,KP,LP,MP,ywa,PP,QP,RP,SP,TP,UP,zwa,VP,XP,WP,YP,ZP,Awa,$P,Bwa,Dwa,Cwa,aQ,bQ,Ewa,cQ,dQ,Fwa,eQ,Gwa,fQ,Hwa,gQ,Iwa,kQ,jQ,nQ,mQ,
Jwa,lQ,qQ,Kwa,Lwa,rQ,sQ,tQ,uQ,wQ,Mwa,aO,Qwa,vO,Nwa,pQ,Pwa,wO,Owa,Rwa,Twa,Swa,Uwa,Vwa,AQ,Wwa,BQ,Xwa,DQ,EQ,FQ,GQ,HQ,IQ,JQ,Zwa,KQ,LQ,MQ,NQ,PQ,$wa,axa,QQ,RQ,SQ,TQ,ZQ,exa,fxa,$Q,aR,bR,cR,ixa,kxa,jxa,dR,mxa,nxa,oxa,pxa,qxa,rxa,eR,fR,gR,sxa,hR,uxa,vxa,wxa,xxa,yxa,jR,kR,mR,nR,oR,Bxa,lR,Cxa,pR,zxa,Axa,Dxa,qR,rR,sR,tR,Fxa,Gxa,uR,vR,Exa,xR,Ixa,Lxa,Kxa,Mxa,Nxa,Oxa,yR,zR,AR,BR,Pxa,FR,Qxa,Rxa,Sxa,GR,Txa,HR,IR,JR,LR,Yxa,Vxa,Wxa,KR,Uxa,$xa,Zxa,bya,cya,dya,eya,MR,aya,NR,OR,PR,QR,fya,RR,SR,iya,jya,gya,hya,TR,UR,mya,
nya,lya,pya,VR,sya,tya,uya,qya,vya,rya,xya,yya,WR,YR,zya,Aya,Bya,Cya,Dya,$R,aS,Eya,Fya,Gya,bS,Kya,Jya,cS,Lya,dS,Hya,Nya,Mya,Iya,Pya,Qya,Rya,Sya,Tya,Uya,Vya,Xya,Wya,Yya,Zya,$ya,aza,bza,eS,fza,cza,gza,fS,hza,jza,kza,iza,gS,lza,hS,oza,pza,nza,mza,jS,dza,eza,uza,vza,wza,xza,lS,yza,iS,qza,sza,tza,Cza,zza,Bza,Dza,Eza,Aza,Fza,Gza,Hza,nS,Iza,Jza,Lza,Mza,Nza,Oza,Pza,rS,Qza,Rza,Sza,sS,tS,uS,vS,Xza,$za,Yza,Uza,xS,Tza,Zza,AS,bAa,aAa,BS,dAa,fAa,gAa,eAa,ES,hAa,lAa,mAa,LS,MS,NS,nAa,GS,OS,QS,oAa,JS,SS,pAa,TS,qAa,
US,RS,sAa,tAa,uAa,vAa,wAa,HS,jAa,VS,WS,BAa,XS,CAa,DAa,zAa,ZS,EAa,$S,xAa,bT,AAa,FAa,aT,YS,GAa,cT,HAa,JAa,fT,dT,gT,eT,CT,MT,KAa,OT,PT,QT,RT,LAa,ST,MAa,UT,OAa,PAa,QAa,XT,WT,VT,RAa,SAa,TAa,UAa,aU,bU,cU,VAa,WAa,XAa,dU,YAa,fU,ZAa,eU,gU,hU,$Aa,bBa,fBa,cBa,dBa,eBa,gBa,mU,nU,hBa,jBa,kBa,lBa,oU,pU,qBa,rBa,sBa,uU,vU,tBa,wU,pBa,uBa,qU,mBa,vBa,rU,sU,nBa,oBa,tU,wBa,xBa,yBa,Qna,Una,yU,zU,ABa,zBa,AU,BU,CU,BBa,CBa,DBa,DU,EBa,FBa,EU,GBa,FU,GU,HBa,HU,JBa,IU,OBa,KU,kU,IBa,QBa,MU,MBa,NBa,LBa,LU,JU,KBa,PBa,UBa,SBa,RBa,
OU,VBa,PU,WBa,QU,RU,XBa,YBa,ZBa,$Ba,aCa,TU,UU,VU,WU,XU,YU,dCa,eCa,jU,lU,hCa,aV,bV,iBa,eV,$U,iCa,ZU,fCa,gCa,fV,gV,jCa,dV,iU,cV,kCa,lCa,mCa,hV,oCa,nCa,iV,jV,tCa,sCa,lV,kV,vCa,nV,mV,wCa,qCa,pV,uCa,rCa,oV,qV,xCa,yCa,rV,uV,ACa,sV,ECa,tV,FCa,vV,CCa,BCa,GCa,wV,HCa,ICa,LCa,KCa,JCa,xV,MCa,PCa,QCa,CV,DV,SCa,TCa,GV,HV,JV,WCa,KV,XCa,AV,EV,RCa,ZCa,$Ca,bDa,TBa,NV,aDa,IV,UCa,cDa,dDa,eDa,fDa,NCa,BV,zV,FV,gDa,hDa,QV,RV,iDa,jDa,kDa,mDa,lDa,SV,nDa,pDa,oDa,rDa,UV,vDa,sDa,uDa,wDa,VV,ADa,yDa,zDa,CDa,DDa,EDa,WV,TV,FDa,
xDa,GDa,XV,HDa,tDa,IDa,YV,ZV,JDa,LDa,MDa,$V,KDa,aW,bW,NDa,cW,dW,eW,fW,PDa,SDa,RDa,QDa,hW,TDa,gW,UDa,jW,lW,VDa,YDa,WDa,XDa,ZDa,aEa,$Da,bEa,cEa,mW,eEa,iEa,fEa,jEa,kEa,lEa,dEa,mEa,oEa,qEa,rEa,nEa,sEa,gEa,hEa,tEa,uEa,pEa,nW,vEa,wEa,xEa,yEa,AEa,oW,pW,CEa,sW,tW,FEa,uW,GEa,HEa,vW,DEa,IEa,JEa,KEa,yW,LEa,NEa,MEa,OEa,zW,AW,PEa,BW,REa,CW,DW,TEa,FW,EW,UEa,HW,SEa,IW,VEa,GW,WEa,JW,XEa,EEa,xW,ZEa,$Ea,aFa,bFa,cFa,dFa,eFa,fFa,hFa,iFa,jFa,gFa,kFa,lFa,LW,mFa,nFa,MW,NW,oFa,pFa,qFa,PW,sFa,RW,tFa,uFa,QW,OW,rFa,UW,TW,vFa,
VW,SW,wFa,XW,AFa,$W,BFa,yFa,YW,CFa,aX,zFa,DFa,bX,FFa,WW,GFa,HFa,EFa,IFa,ZW,JFa,KFa,xFa,cX,dX,eX,fX,LFa,gX,SU,cCa,MFa,NFa,OCa,bCa,hX,OFa,PFa,QFa,SFa,TFa,UFa,VFa,WFa,XFa,iX,ZFa,jX,$Fa,aGa,bGa,lX,mX,nX,oX,pX,qX,rX,cGa,sX,dGa,hGa,kGa,jGa,iGa,pGa,oGa,nGa,tX,YFa,kX,qGa,vGa,tGa,wGa,uGa,rGa,xGa,sGa,zGa,uX,BGa,CGa,DGa,bI,zX,EGa,kS,HGa,iAa,IGa,AX,kW,JGa,HX,CX,DS,GGa,JX,MV,OV,KX,rza,FX,GX,LV,NGa,MGa,KGa,DX,LX,PGa,yS,QGa,iW,cAa,NX,PS,FGa,BX,RGa,TGa,SGa,UGa,OX,Wza,VGa,WGa,LGa,vX,XGa,PX,EX,wX,YGa,QX,zS,ZGa,RX,
KS,$Ga,aHa,bHa,Vza,MX,OGa,YCa,iHa,eHa,lHa,dHa,mHa,nHa,XX,$X,rHa,oHa,qHa,bY,pHa,cY,dY,tHa,SX,UX,hHa,jY,uHa,iY,WX,vHa,wHa,kHa,mY,xHa,yHa,TX,fY,gY,eY,pY,DHa,aY,lY,qY,rY,EHa,hY,sHa,oY,zHa,sY,FHa,GHa,HHa,AM,IHa,kY,tY,KHa,YX,uY,ZX,LHa,MHa,gHa,nY,NHa,fHa,vY,wY,NAa,OHa,xY,yY,zY,PHa,AY,BY,CY,DY,EY,FY,RHa,QHa,GY,SHa,HY,bA,X,IY,UHa,KY,WHa,JY,XHa,MY,YHa,NY,LY,OY,PY,rqa,sqa,Ppa,RY,$Ha,$Y,tqa,aZ,EJ,YY,bZ,dIa,eIa,fIa,gIa,ZHa,hIa,QY,iIa,jIa,eZ,VY,dZ,jZ,fZ,TY,kIa,SY,aIa,cZ,gZ,lZ,WY,XY,iZ,hZ,mIa,mZ,nZ,nIa,oZ,Y,oIa,
pIa,sIa,tIa,xIa,pZ,yIa,uIa,zIa,qZ,rZ,sZ,BIa,EIa,CIa,HIa,PIa,OIa,IIa,QIa,KIa,LIa,JIa,TIa,VIa,YIa,ZIa,aJa,bJa,fJa,FZ,cJa,iJa,gJa,kJa,IZ,gja,lJa,LZ,$z,NZ,OZ,dja,PZ,nJa,oJa,QZ,GZ,uZ,RZ,HZ,DZ,vZ,yZ,SZ,TZ,zZ,pJa,GIa,wZ,xZ,CZ,qJa,rJa,UZ,sJa,VZ,tJa,JZ,BZ,AZ,tZ,WIa,$Ia,EZ,dJa,RIa,MIa,WZ,XZ,YZ,uJa,ZZ,$Z,a_,b_,c_,d_,e_,f_,qIa,g_,rIa,wJa,vJa,AIa,XIa,xJa,jJa,yJa,zJa,UIa,FIa,DIa,wIa,vIa,NIa,eJa,hJa,SIa,BJa,h_,AJa,i_,FJ,UY,bIa,MZ,j_,k_,l_,CJa,m_,n_,o_,kZ,ZY,DJa,KZ,p_,EJa,q_,s_,t_,u_,v_,GJa,x_,y_,z_,FJa,w_,HJa,IJa,
A_,aA,MJa,LJa,B_,C_,r_,NJa,OJa,D_,E_,PJa,F_,G_,QJa,RJa,SJa,TJa,H_,UJa,I_,J_,K_,L_,M_,N_,VJa,O_,P_,Q_,R_,S_,T_,XJa,WJa,YJa,ZJa,U_,V_,W_,X_,$Ja,Y_,aKa,Z_,bKa,$_,cKa,a0,b0,c0,d0,e0,f0,dKa,h0,i0,eKa,fKa,gKa,k0,j0,l0,n0,hKa,iKa,KJa,m0,o0,jKa,p0,lKa,kKa,q0,r0,mJa,mKa,s0,nKa,t0,pKa,qKa,oKa,rKa,u0,sKa,tKa,uKa,v0,w0,x0,vKa,y0,z0,A0,wKa,B0,C0,xKa,D0,g0,E0,F0,qqa,G0,yKa,H0,zKa,I0,J0,AKa,BKa,K0,L0,M0,CKa,N0,DKa,O0,P0,FKa,EKa,GKa,HKa,IKa,Q0,R0,S0,JKa,KKa,LKa,MKa,NKa,OKa,PKa,T0,U0,QKa,V0,W0,X0,Y0,RKa,Z0,$0,SKa,
a1,TKa,UKa,b1,VKa,WKa,c1,d1,XKa,e1,f1,h1,YKa,i1,j1,k1,ZKa,l1,$Ka,m1,n1,aLa,o1,bLa,p1,cLa,dLa,eLa,fLa,gLa,r1,hLa,iLa,jLa,kLa,lLa,s1,t1,mLa,u1,v1,w1,x1,nLa,y1,oLa,pLa,qLa,B1,rLa,sLa,tLa,uLa,C1,A1,vLa,E1,wLa,F1,G1,H1,I1,J1,K1,xLa,zLa,yLa,ALa,L1,BLa,CLa,M1,DLa,N1,O1,P1,ELa,FLa,Q1,GLa,R1,HLa,S1,ILa,JLa,KLa,eja,LLa,MLa,aa,fa,ea,Bi,Na,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}};
g.ca=function(a,b){return aa[a]=b};
da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
aaa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ha=function(a,b){if(b)a:{var c=ea;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&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.r=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.v=function(a){return a instanceof Array?a:ka(g.r(a))};
la=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=ma(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.ke=b.prototype};
pa=function(){this.K=!1;this.D=null;this.u=void 0;this.i=1;this.C=this.J=0;this.Z=this.B=null};
qa=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
ra=function(a,b){a.B={QJ:b,bL:!0};a.i=a.J||a.C};
g.z=function(a,b,c){a.i=c;return{value:b}};
g.sa=function(a){a.i=0};
ta=function(a,b,c){a.J=b;void 0!=c&&(a.C=c)};
ua=function(a,b){a.i=b;a.J=0};
va=function(a){a.J=0;var b=a.B.QJ;a.B=null;return b};
xa=function(a){a.Z=[a.B];a.J=0;a.C=0};
ya=function(a,b){var c=a.Z.splice(0)[0];(c=a.B=a.B||c)?c.bL?a.i=a.J||a.C:void 0!=c.fb&&a.C<c.fb?(a.i=c.fb,a.B=null):a.i=a.C:a.i=b};
baa=function(a){this.i=new pa;this.u=a};
caa=function(a,b){qa(a.i);var c=a.i.D;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.i.return);
a.i.return(b);return Aa(a)};
za=function(a,b,c,d){try{var e=b.call(a.i.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.i.K=!1,e;var f=e.value}catch(h){return a.i.D=null,ra(a.i,h),Aa(a)}a.i.D=null;d.call(a.i,f);return Aa(a)};
Aa=function(a){for(;a.i.i;)try{var b=a.u(a.i);if(b)return a.i.K=!1,{value:b.value,done:!1}}catch(c){a.i.u=void 0,ra(a.i,c)}a.i.K=!1;if(a.i.B){b=a.i.B;a.i.B=null;if(b.bL)throw b.QJ;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){qa(a.i);a.i.D?b=za(a,a.i.D.next,b,a.i.S):(a.i.S(b),b=Aa(a));return b};
this.throw=function(b){qa(a.i);a.i.D?b=za(a,a.i.D["throw"],b,a.i.S):(ra(a.i,b),b=Aa(a));return b};
this.return=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
g.B=function(a,b){b=new daa(new baa(b));na&&a.prototype&&na(b,a.prototype);return b};
Ba=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{JK:e,zO:f}}return{JK:-1,zO:void 0}};
Ca=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};
Da=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+""};
Ea=function(a){return a?a:Array.prototype.fill};
g.Fa=function(a,b,c){a=a.split(".");c=c||g.C;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
g.Ga=function(a,b){a=a.split(".");b=b||g.C;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
g.Ha=function(){};
Ja=function(a){a.Pe=void 0;a.getInstance=function(){return a.Pe?a.Pe:a.Pe=new a}};
Ka=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.La=function(a){var b=Ka(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ma=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Oa=function(a){return Object.prototype.hasOwnProperty.call(a,Na)&&a[Na]||(a[Na]=++eaa)};
faa=function(a,b,c){return a.call.apply(a.bind,arguments)};
gaa=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.D=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.D=faa:g.D=gaa;return g.D.apply(null,arguments)};
g.Pa=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.Qa=function(){return Date.now()};
g.Ra=function(a,b){function c(){}
c.prototype=b.prototype;a.ke=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.hg=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Sa=function(a){return a};
Ta=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Ta);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.YQ=b)};
Ua=function(a,b){var c=Ta.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(Ta,this,d+a[e])};
haa=function(){};
Va=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
g.Wa=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b};
iaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Xa=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.Ya=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")};
Za=function(a,b){return 0==a.lastIndexOf(b,0)};
$a=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.ab=function(a){return/^[\s\xa0]*$/.test(a)};
ib=function(a,b){if(b)a=a.replace(bb,"&amp;").replace(cb,"&lt;").replace(db,"&gt;").replace(eb,"&quot;").replace(fb,"&#39;").replace(gb,"&#0;");else{if(!jaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(bb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(cb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(db,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(eb,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(fb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(gb,"&#0;"))}return a};
jb=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.nb=function(a,b){var c=0;a=kb(String(a)).split(".");b=kb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=lb(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||lb(0==f[2].length,0==h[2].length)||lb(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
lb=function(a,b){return a<b?-1:a>b?1:0};
g.pb=function(a){return a[a.length-1]};
kaa=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.rb=function(a,b,c){b=qb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
qb=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.sb=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.ub=function(a,b){return 0<=tb(a,b)};
g.wb=function(a){return 0==a.length};
xb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.zb=function(a,b){b=tb(a,b);var c;(c=0<=b)&&g.yb(a,b);return c};
g.yb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Ab=function(a,b){b=qb(a,b,void 0);0<=b&&g.yb(a,b)};
laa=function(a,b){var c=0;kaa(a,function(d,e){b.call(void 0,d,e,a)&&g.yb(a,e)&&c++})};
g.Cb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Db=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[]};
Eb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.La(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.Gb=function(a,b,c,d){Array.prototype.splice.apply(a,Fb(arguments,1))};
Fb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
maa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ma(e)?"o"+g.Oa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Jb=function(a,b,c){return Hb(a,c||Ib,!1,b)};
Kb=function(a,b){return Hb(a,b,!0,void 0,void 0)};
Hb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(h=m,l=!n)}return l?f:-f-1};
g.Lb=function(a,b){a.sort(b||Ib)};
naa=function(a,b){var c=Ib;g.Lb(a,function(d,e){return c(b(d),b(e))})};
g.Mb=function(a,b){if(!g.La(a)||!g.La(b)||a.length!=b.length)return!1;for(var c=a.length,d=oaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Ib=function(a,b){return a>b?1:a<b?-1:0};
oaa=function(a,b){return a===b};
g.Nb=function(a,b,c){c=g.Jb(a,b,c);0>c&&g.Gb(a,-(c+1),0,b)};
g.Pb=function(a,b,c){var d={};(0,g.Ob)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
paa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
qaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Sb=function(a){return-1!=g.Qb.indexOf(a)};
g.Tb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Ub=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Vb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Wb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Xb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Yb=function(a){for(var b in a)return b};
Zb=function(a){for(var b in a)return a[b]};
bc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.cc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
dc=function(a,b){return null!==a&&b in a};
g.ec=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
fc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
hc=function(a,b){return(b=fc(a,b,void 0))&&a[b]};
g.ic=function(a){for(var b in a)return!1;return!0};
g.jc=function(a){for(var b in a)delete a[b]};
kc=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.lc=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.mc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.nc=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.nc(a[c]);return b};
g.pc=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<oc.length;f++)c=oc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
qc=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
rc=function(){return Sb("Firefox")||Sb("FxiOS")};
tc=function(){return Sb("Safari")&&!(sc()||Sb("Coast")||Sb("Opera")||Sb("Edge")||Sb("Edg/")||Sb("OPR")||rc()||Sb("Silk")||Sb("Android"))};
sc=function(){return(Sb("Chrome")||Sb("CriOS"))&&!Sb("Edge")};
uc=function(){return Sb("iPhone")&&!Sb("iPod")&&!Sb("iPad")};
vc=function(){return uc()||Sb("iPad")||Sb("iPod")};
wc=function(){var a=g.Qb,b="";Sb("Windows")?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):vc()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Sb("Macintosh")?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):jb(g.Qb,"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):Sb("Android")?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):Sb("CrOS")&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||
""};
xc=function(a){xc[" "](a);return a};
zc=function(a,b){try{return xc(a[b]),!0}catch(c){}return!1};
Ac=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Bc=function(){var a=g.C.document;return a?a.documentMode:void 0};
g.Dc=function(a){return Ac(raa,a,function(){return 0<=g.nb(Cc,a)})};
g.Ec=function(a){return Number(saa)>=a};
g.Hc=function(a,b){void 0===b&&(b=0);Fc();b=Gc[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
Jc=function(a){var b=[];Ic(a,function(c){b.push(c)});
return b};
Lc=function(a){!g.Kc||g.Dc("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;Ic(a,function(f){d[e++]=f});
return d.subarray(0,e)};
Ic=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Mc[n];if(null!=p)return p;if(!g.ab(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Fc();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
Fc=function(){if(!Mc){Mc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Gc[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Mc[f]&&(Mc[f]=e)}}}};
Oc=function(a,b,c){return b===c?Nc||(Nc=new Uint8Array(0)):taa?a.slice(b,c):new Uint8Array(a.subarray(b,c))};
Pc=function(a){return a.constructor===Uint8Array?a:a.constructor===ArrayBuffer?new Uint8Array(a):a.constructor===Array?new Uint8Array(a):a.constructor===String?Lc(a):a instanceof Uint8Array?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(0)};
Rc=function(a,b,c,d){d=void 0===d?{}:d;d=void 0===d.Cl?!1:d.Cl;this.u=null;this.i=this.B=this.C=0;this.D=!1;this.Cl=d;a&&Qc(this,a,b,c)};
Tc=function(a,b,c,d){if(Sc.length){var e=Sc.pop();d&&(e.Cl=d.Cl);a&&Qc(e,a,b,c);return e}return new Rc(a,b,c,d)};
Qc=function(a,b,c,d){a.u=Pc(b);a.C=void 0!==c?c:0;a.B=void 0!==d?a.C+d:a.u.length;a.i=a.C};
Wc=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.u[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.u[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[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}a.D=!0};
Xc=function(a){var b=a.u,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d};
Yc=function(a){var b={},c=void 0===b.hD?!1:b.hD;this.K={Cl:void 0===b.Cl?!1:b.Cl};this.hD=c;this.i=Tc(a,void 0,void 0,this.K);this.J=this.i.i;this.u=this.D=this.C=-1;this.B=!1};
Zc=function(a){var b=a.i;(b=b.i==b.B)||(b=a.B)||(b=a.i,b=b.D||0>b.i||b.i>b.B);if(b)return!1;a.J=a.i.i;b=Xc(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.D=b;a.C=b>>>3;a.u=c;return!0};
$c=function(a){switch(a.u){case 0:if(0!=a.u)$c(a);else{for(a=a.i;a.u[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.u?$c(a):a.i.advance(8);break;case 2:if(2!=a.u)$c(a);else{var b=Xc(a.i);a.i.advance(b)}break;case 5:5!=a.u?$c(a):a.i.advance(4);break;case 3:b=a.C;do{if(!Zc(a)){a.B=!0;break}if(4==a.u){a.C!=b&&(a.B=!0);break}$c(a)}while(1);break;default:a.B=!0}};
cd=function(a){var b=Xc(a.i);a=a.i;var c=a.i;a.i+=b;a=a.u;var d;if(uaa)(d=ad)||(d=ad=new TextDecoder("utf-8",{fatal:!1})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,h,l,m;c<b;)h=a[c++],128>h?e.push(h):224>h?c>=b?e.push(65533):(l=a[c++],194>h||128!==(l&192)?(c--,e.push(65533)):e.push((h&31)<<6|l&63)):240>h?c>=b-1?e.push(65533):(l=a[c++],128!==(l&192)||224===h&&160>l||237===h&&160<=l||128!==((d=a[c++])&192)?(c--,e.push(65533)):e.push((h&15)<<12|(l&63)<<6|d&63)):244>=h?c>=b-2?e.push(65533):
(l=a[c++],128!==(l&192)||0!==(h<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,e.push(65533)):(h=(h&7)<<18|(l&63)<<12|(d&63)<<6|m&63,h-=65536,e.push((h>>10&1023)+55296,(h&1023)+56320))):e.push(65533),8192<=e.length&&(f=Va(f,e),e.length=0);d=Va(f,e)}return d};
dd=function(a){var b=Xc(a.i);a=a.i;if(0>b||a.i+b>a.u.length)a.D=!0,b=new Uint8Array(0);else{var c=a.Cl?a.u.subarray(a.i,a.i+b):Oc(a.u,a.i,a.i+b);a.i+=b;b=c}return b};
ed=function(){this.i=new Uint8Array(64);this.u=0};
fd=function(a,b){for(;127<b;)a.push(b&127|128),b>>>=7;a.push(b)};
gd=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)};
hd=function(){this.B=[];this.u=0;this.i=new ed};
id=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
jd=function(a){id(a,a.i.end())};
kd=function(a){var b=a.u+a.i.length();if(0===b)return new Uint8Array(0);b=new Uint8Array(b);for(var c=a.B,d=c.length,e=0,f=0;f<d;f++){var h=c[f];0!==h.length&&(b.set(h,e),e+=h.length)}c=a.i;d=c.u;0!==d&&(b.set(c.i.subarray(0,d),e),c.u=0);a.B=[b];return b};
od=function(a,b,c){if(null!=c&&null!=c){fd(a.i,8*b);a=a.i;var d=c;c=0>d;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295<b&&(b=0,d++,4294967295<d&&(d=0)));ld=b;md=d;c=ld;for(b=md;0<b||127<c;)a.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.push(c)}};
pd=function(a,b,c){null!=c&&(c=Pc(c),fd(a.i,8*b+2),fd(a.i,c.length),jd(a),id(a,c))};
qd=function(a,b,c,d){if(null!=c){fd(a.i,8*b+2);jd(a);var e=a.u;b=a.B.length-1;d(c,a);jd(a);fd(a.i,a.u+a.i.length()-e);c=a.i.end();a.u+=c.length;a.B.splice(1+b,0,c)}};
td=function(a,b,c){if(null!=a)return"object"===typeof a?rd&&a instanceof Uint8Array?c(a):sd(a,b,c):b(a)};
sd=function(a,b,c){if(Array.isArray(a)){for(var d=Array(a.length),e=0;e<a.length;e++)d[e]=td(a[e],b,c);Array.isArray(a)&&a.CS&&ud(d);return d}d={};for(e in a)d[e]=td(a[e],b,c);return d};
vd=function(a){return"number"===typeof a?isFinite(a)?a:String(a):a};
vaa=function(a){return new Uint8Array(a)};
waa=function(a){return a};
ud=function(a){Array.isArray(a)&&!Object.isFrozen(a)&&Object.defineProperties(a,xaa);return a};
wd=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?Lc(a):null};
yd=function(a,b){this.i=a;this.B=b;this.map={};this.u=!0;if(0<this.i.length){for(a=0;a<this.i.length;a++){b=this.i[a];var c=b[0];this.map[c.toString()]=new xd(c,b[1])}this.u=!0}};
zd=function(a,b){return a.B?(b.i||(b.i=new a.B(b.value),a.isFrozen()&&null(b.i)),b.i):b.value};
Ad=function(a){a=a.map;var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b};
xd=function(a,b){this.key=a;this.value=b;this.i=void 0};
Bd=function(a){this.u=0;this.i=a};
Ed=function(a,b){Cd=b;a=new a(b);Cd=null;return a};
Hd=function(a,b,c){var d=Cd;Cd=null;a||(a=d);d=this.constructor.SS;a||(a=d?[d]:[]);this.C=d?0:-1;this.i=null;this.u=a;a:{d=this.u.length;a=d-1;if(d&&(d=this.u[a],!(null===d||"object"!=typeof d||Array.isArray(d)||rd&&d instanceof Uint8Array))){this.D=a-this.C;this.B=d;break a}void 0!==b&&-1<b?(this.D=Math.max(b,a+1-this.C),this.B=null):this.D=Number.MAX_VALUE}if(c)for(b=0;b<c.length;b++)a=c[b],a<this.D?(a+=this.C,(d=this.u[a])?ud(d):this.u[a]=Fd):(Gd(this),(d=this.B[a])?ud(d):this.B[a]=Fd)};
Gd=function(a){var b=a.D+a.C;a.u[b]||(a.B=a.u[b]={})};
Id=function(a,b,c){return-1===b?null:(void 0===c?0:c)||b>=a.D?a.B?a.B[b]:void 0:a.u[b+a.C]};
Kd=function(a,b){var c=void 0===c?!1:c;var d=Id(a,b,c);null==d&&(d=Fd);d===Fd&&(d=ud([]),Jd(a,b,d,c));return d};
Ld=function(a,b,c){a=Id(a,b);return null==a?c:a};
yaa=function(a,b,c){a.i||(a.i={});if(b in a.i)return a.i[b];var d=Id(a,b);d||(d=ud([]),Jd(a,b,d));c=new yd(d,c);return a.i[b]=c};
Jd=function(a,b,c,d){(void 0===d?0:d)||b>=a.D?(Gd(a),a.B[b]=c):a.u[b+a.C]=c;return a};
Md=function(a,b,c){var d=void 0===d?!1:d;return Jd(a,b,ud(c||[]),d)};
Nd=function(a,b,c,d){c!==d?Jd(a,b,c):Jd(a,b,void 0);return a};
Pd=function(a,b,c,d){(c=Od(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),Jd(a,c,void 0));return Jd(a,b,d)};
Od=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=Id(a,e)&&(0!==c&&Jd(a,c,void 0),c=e)}return c};
Qd=function(a,b,c,d,e){if(-1===c)return null;a.i||(a.i={});!a.i[c]&&(e=Id(a,c,void 0===e?!1:e),d||e)&&(a.i[c]=new b(e));return a.i[c]};
Rd=function(a,b,c){a.i||(a.i={});var d=a.i[c];if(!d){var e=Kd(a,c);d=[];for(var f=0;f<e.length;f++)d[f]=new b(e[f]);a.i[c]=d}return d};
Sd=function(a,b,c){var d=void 0===d?!1:d;a.i||(a.i={});var e=c?c.ph(!1):c;a.i[b]=c;return Jd(a,b,e,d)};
Td=function(a,b,c){var d=void 0===d?!1:d;if(c){var e=ud([]);for(var f=0;f<c.length;f++)e[f]=c[f].ph(!1);a.i||(a.i={});a.i[b]=c}else a.i&&(a.i[b]=void 0),e=Fd;return Jd(a,b,e,d)};
Vd=function(a){Ud=!0;try{return JSON.stringify(a.toJSON(),zaa)}finally{Ud=!1}};
zaa=function(a,b){switch(typeof b){case "number":return isFinite(b)?b:String(b);case "object":if(rd&&null!=b&&b instanceof Uint8Array)return g.Hc(b)}return b};
Wd=function(a,b){b.J&&(a.J=b.J.slice());var c=b.i;if(c){b=b.B;var d={},e;for(e in c){var f=c[e];if(f){var h=!(!b||!b[e]),l=+e;if(Array.isArray(f)){if(f.length)for(h=Rd(a,f[0].constructor,l),l=0;l<Math.min(h.length,f.length);l++)Wd(h[l],f[l])}else f instanceof yd?f.B&&(d.xB=yaa(a,l,f.B),f.forEach(function(m){return function(n,p){return Wd(m.xB.get(p),n)}}(d))):(h=Qd(a,f.constructor,l,0,h))&&Wd(h,f)}d={xB:d.xB}}}};
Xd=function(a,b,c){return Ld(a,b,void 0===c?0:c)};
Zd=function(a,b,c){c=Od(a,Yd)===c?c:-1;return Qd(a,b,c)};
$d=function(a,b){if(a=a.J){jd(b);for(var c=0;c<a.length;c++)id(b,a[c])}};
ae=function(a,b){if(4==b.u)return!1;var c=b.J;$c(b);b.hD||(b=Oc(b.i.u,c,b.i.i),(c=a.J)?c.push(b):a.J=[b]);return!0};
be=function(a){Hd.call(this,a)};
Aaa=function(a,b){pd(b,1,Id(a,1));pd(b,2,Id(a,2));$d(a,b)};
ce=function(a){Hd.call(this,a)};
Baa=function(a,b){pd(b,1,Id(a,1));pd(b,2,Id(a,2));$d(a,b)};
de=function(a){Hd.call(this,a)};
Caa=function(a,b){pd(b,1,Id(a,1));pd(b,2,Id(a,2));$d(a,b)};
ee=function(a){Hd.call(this,a)};
g.H=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
l((b=b.apply(a,void 0)).next())})};
fe=function(a,b){var c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b instanceof Error?(this.message=b.message,this.stack=null!==(c=b.stack)&&void 0!==c?c:""):(this.message=String(b),this.stack="");Object.setPrototypeOf(this,fe.prototype)};
g.ge=function(a,b,c){this.C=a;this.D=b;this.i=this.B=a;this.J=c||0};
g.he=function(a){a.i=Math.min(a.D,2*a.i);a.B=Math.min(a.D,a.i+(a.J?Math.round(a.J*(Math.random()-.5)*2*a.i):0));a.u++};
ie=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){switch(m.i){case 1:e=new g.ge(b.MK,b.CL),h=1;case 2:if(!(h<=b.xN)){m.fb(4);break}ta(m,5);return g.z(m,a(h),7);case 7:return m.return(m.u);case 5:return f=l=va(m),g.z(m,new Promise(function(n){setTimeout(n,e.getValue())}),8);
case 8:g.he(e);case 3:h++;m.fb(2);break;case 4:throw f;}})})};
je=function(a){this.kJ=a};
le=function(a,b,c){this.u=a;this.C=b;this.i=c||[];this.Ar=new Map};
me=function(a,b){le.call(this,a,3,b)};
ne=function(a,b){le.call(this,a,2,b)};
g.oe=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.pe=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.La(d)?g.pe.apply(null,d):g.oe(d)}};
g.I=function(){this.ai=this.ai;this.yh=this.yh};
g.J=function(a,b){g.qe(a,g.Pa(g.oe,b))};
g.qe=function(a,b){a.ai?b():(a.yh||(a.yh=[]),a.yh.push(b))};
g.re=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
Daa=function(a){var b=g.Ga("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.C.$googDebugFname||b}catch(h){e="Not available",c=!0}b=se(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,te[c])c=te[c];else{c=String(c);if(!te[c]){var f=/function\s+([^\(]+)/m.exec(c);te[c]=f?f[1]:"[Anonymous]"}c=te[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}};
se=function(a,b){b||(b={});b[ue(a)]=!0;var c=a.stack||"";(a=a.YQ)&&!b[ue(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=se(a,b));return c};
ue=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
ve=function(a,b){g.re.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)};
xe=function(a){return!(!a||!a[we])};
Faa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ze=e;this.key=++Eaa;this.Tw=this.dy=!1};
ye=function(a){a.Tw=!0;a.listener=null;a.proxy=null;a.src=null;a.ze=null};
ze=function(a){this.src=a;this.listeners={};this.i=0};
Ae=function(a,b){var c=b.type;c in a.listeners&&g.zb(a.listeners[c],b)&&(ye(b),0==a.listeners[c].length&&(delete a.listeners[c],a.i--))};
Be=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Tw&&f.listener==b&&f.capture==!!c&&f.ze==d)return e}return-1};
De=function(a,b,c,d,e){if(d&&d.once)return Ce(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)De(a,b[f],c,d,e);return null}c=Ee(c);return xe(a)?a.Qa(b,c,g.Ma(d)?!!d.capture:!!d,e):Fe(a,b,c,!1,d,e)};
Fe=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Ma(e)?!!e.capture:!!e,l=Ge(a);l||(a[He]=l=new ze(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Gaa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Haa||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Ie(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Je++;return c};
Gaa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=Iaa;return a};
Ce=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ce(a,b[f],c,d,e);return null}c=Ee(c);return xe(a)?a.Dz(b,c,g.Ma(d)?!!d.capture:!!d,e):Fe(a,b,c,!0,d,e)};
Ke=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Ke(a,b[f],c,d,e);else d=g.Ma(d)?!!d.capture:!!d,c=Ee(c),xe(a)?a.jc(b,c,d,e):a&&(a=Ge(a))&&(b=a.Hv(b,c,d,e))&&Le(b)};
Le=function(a){if("number"!==typeof a&&a&&!a.Tw){var b=a.src;if(xe(b))Ae(b.B,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Ie(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Je--;(c=Ge(b))?(Ae(c,a),0==c.i&&(c.src=null,b[He]=null)):ye(a)}}};
Ie=function(a){return a in Me?Me[a]:Me[a]="on"+a};
Iaa=function(a,b){if(a.Tw)a=!0;else{b=new ve(b,this);var c=a.listener,d=a.ze||a.src;a.dy&&Le(a);a=c.call(d,b)}return a};
Ge=function(a){a=a[He];return a instanceof ze?a:null};
Ee=function(a){if("function"===typeof a)return a;a[Ne]||(a[Ne]=function(b){return a.handleEvent(b)});
return a[Ne]};
g.Oe=function(){g.I.call(this);this.B=new ze(this);this.qb=this;this.La=null};
Pe=function(a,b,c,d){b=a.B.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.Tw&&h.capture==c){var l=h.listener,m=h.ze||h.src;h.dy&&Ae(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Qe=function(a,b){this.B=a;this.C=b;this.u=0;this.i=null};
Re=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.i,a.i=b)};
Te=function(a){return function(){return a}};
Ue=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Ve=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
We=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
Jaa=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)}};
Ye=function(){if(void 0===Xe){var a=null,b=g.C.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Sa,createScript:Sa,createScriptURL:Sa})}catch(c){g.C.console&&g.C.console.error(c.message)}Xe=a}else Xe=a}return Xe};
af=function(a,b){this.i=a===Ze&&b||"";this.u=$e};
bf=function(a){return a instanceof af&&a.constructor===af&&a.u===$e?a.i:"type_error:Const"};
g.cf=function(a){return new af(Ze,a)};
ef=function(a,b){this.i=b===df?a:"";this.Ek=!0};
gf=function(a,b){this.i=b===ff?a:""};
hf=function(a){return a instanceof gf&&a.constructor===gf?a.i:"type_error:TrustedResourceUrl"};
Maa=function(a,b){var c=bf(a);if(!Kaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Laa,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 af?bf(d):encodeURIComponent(String(d))});
return jf(a)};
jf=function(a){var b=Ye();a=b?b.createScriptURL(a):a;return new gf(a,ff)};
g.mf=function(a,b){this.i=b===lf?a:""};
g.nf=function(a){return a instanceof g.mf&&a.constructor===g.mf?a.i:"type_error:SafeUrl"};
of=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Naa);return b&&Oaa.test(b[1])?new g.mf(a,lf):null};
g.rf=function(a){a instanceof g.mf||(a="object"==typeof a&&a.Ek?a.Ih():String(a),a=pf.test(a)?new g.mf(a,lf):of(a));return a||qf};
g.sf=function(a,b){if(a instanceof g.mf)return a;a="object"==typeof a&&a.Ek?a.Ih():String(a);if(b&&/^data:/i.test(a)&&(b=of(a)||qf,b.Ih()==a))return b;pf.test(a)||(a="about:invalid#zClosurez");return new g.mf(a,lf)};
uf=function(a,b){this.i=b===tf?a:"";this.Ek=!0};
vf=function(a){return a instanceof uf&&a.constructor===uf?a.i:"type_error:SafeStyle"};
yf=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(wf).join(" "):wf(d),b+=c+":"+d+";")}return b?new uf(b,tf):xf};
Paa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=vf(d)}
var c="";Array.prototype.forEach.call(arguments,b);return c?new uf(c,tf):xf};
wf=function(a){if(a instanceof g.mf)return'url("'+g.nf(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof af?bf(a):Qaa(String(a));if(/[{;}]/.test(a))throw new Ua("Value does not allow [{;}], got: %s.",[a]);return a};
Qaa=function(a){var b=a.replace(zf,"$1").replace(zf,"$1").replace(Af,"url");if(Raa.test(b)){if(Saa.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||!Taa(a))return"zClosurez"}else return"zClosurez";return Uaa(a)};
Taa=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};
Uaa=function(a){return a.replace(Af,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.rf(d).Ih();return c+f+b+f+e})};
Ef=function(a,b,c){this.i=c===Bf?a:"";this.u=b;this.Ek=this.bE=!0};
g.Ff=function(a){return a instanceof Ef&&a.constructor===Ef?a.i:"type_error:SafeHtml"};
Hf=function(a){if(a instanceof Ef)return a;var b="object"==typeof a,c=null;b&&a.bE&&(c=a.Qr());return Gf(ib(b&&a.Ek?a.Ih():String(a)),c)};
Vaa=function(a){function b(f){Array.isArray(f)?f.forEach(b):(f=Hf(f),e.push(g.Ff(f).toString()),f=f.Qr(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=Hf(If),d=c.Qr(),e=[];a.forEach(b);return Gf(e.join(g.Ff(c).toString()),d)};
Waa=function(a){return Vaa(Array.prototype.slice.call(arguments))};
Gf=function(a,b){var c=Ye();a=c?c.createHTML(a):a;return new Ef(a,b,Bf)};
g.Jf=function(a,b){bf(a);bf(a);return Gf(b,null)};
Xaa=function(a,b){bf(a);bf(a);return new uf(b,tf)};
Kf=function(a,b){bf(a);bf(a);return jf(b)};
g.Lf=function(a,b){if(Yaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.Ff(b)};
g.Mf=function(a,b){b=b instanceof g.mf?b:g.sf(b);a.href=g.nf(b)};
Nf=function(a,b,c,d){a=a instanceof g.mf?a:g.sf(a);b=b||g.C;c=c instanceof af?bf(c):c||"";return void 0!==d?b.open(g.nf(a),c,d):b.open(g.nf(a),c)};
Of=function(){a:{var a=g.C.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Zaa.test(a))break a;a=""}return a};
Pf=function(a,b){return a+Math.random()*(b-a)};
g.Qf=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Rf=function(a,b){a%=b;return 0>a*b?a+b:a};
g.Sf=function(a,b,c){return a+c*(b-a)};
Tf=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Uf=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Vf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Wf=function(a,b){this.width=a;this.height=b};
g.Xf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Yf=function(a){return a.width*a.height};
Zf=function(a){return encodeURIComponent(String(a))};
$f=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.ag=function(a){return a=ib(a,void 0)};
g.bg=function(a){return null==a?"":String(a)};
cg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
dg=function(a){var b=Number(a);return 0==b&&g.ab(a)?NaN:b};
eg=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
fg=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
$aa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
aba=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};
jg=function(a){return a?new gg(hg(a)):ig||(ig=new gg)};
kg=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.lg=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.ng=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.mg(document,"*",a,b)};
g.og=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.mg(c,"*",a,b)[0]||null}return a||null};
g.mg=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.ub(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
qg=function(a,b){g.Tb(b,function(c,d){c&&"object"==typeof c&&c.Ek&&(c=c.Ih());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:pg.hasOwnProperty(d)?a.setAttribute(pg[d],c):Za(d,"aria-")||Za(d,"data-")?a.setAttribute(d,c):a[d]=c})};
rg=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Wf(a.clientWidth,a.clientHeight)};
tg=function(a){var b=sg(a);a=a.parentWindow||a.defaultView;return g.Kc&&g.Dc("10")&&a.pageYOffset!=b.scrollTop?new g.Uf(b.scrollLeft,b.scrollTop):new g.Uf(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
sg=function(a){return a.scrollingElement?a.scrollingElement:g.ug||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
vg=function(a){return a?a.parentWindow||a.defaultView:window};
yg=function(a,b,c){var d=arguments,e=document,f=d[1],h=wg(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):qg(h,f));2<d.length&&xg(e,h,d,2);return h};
xg=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.La(f)||g.Ma(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Ma(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Ob(h?g.Db(f):f,e)}}};
g.zg=function(a){return wg(document,a)};
wg=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Ag=function(a){return document.createTextNode(String(a))};
g.Bg=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Cg=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Dg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
bba=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.Eg=function(a){var b;if(cba&&!(g.Kc&&g.Dc("9")&&!g.Dc("10")&&g.C.SVGElement&&a instanceof g.C.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Ma(b)&&1==b.nodeType?b:null};
g.Fg=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};
hg=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Gg=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.Bg(a);var c=hg(a);a.appendChild(c.createTextNode(String(b)))}};
Ig=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")||Hg(a)):a.hasAttribute("tabindex")&&Hg(a))&&g.Kc){var c;"function"!==typeof a.getBoundingClientRect||g.Kc&&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};
Hg=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Kg=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Jg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.ub(f.className.split(/\s+/),c))},!0,d)};
Jg=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};
gg=function(a){this.i=a||g.C.document||document};
Mg=function(a){"function"!==typeof g.C.setImmediate||g.C.Window&&g.C.Window.prototype&&!Sb("Edge")&&g.C.Window.prototype.setImmediate==g.C.setImmediate?(Lg||(Lg=dba()),Lg(a)):g.C.setImmediate(a)};
dba=function(){var a=g.C.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Sb("Presto")&&(a=function(){var e=g.zg("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.D)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!Sb("Trident")&&!Sb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.hJ;c.hJ=null;e()}};
return function(e){d.next={hJ:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.C.setTimeout(e,0)}};
Ng=function(a){g.C.setTimeout(function(){throw a;},0)};
Og=function(){this.u=this.i=null};
Pg=function(){this.next=this.scope=this.i=null};
g.Ug=function(a,b){Qg||eba();Sg||(Qg(),Sg=!0);Tg.add(a,b)};
eba=function(){if(g.C.Promise&&g.C.Promise.resolve){var a=g.C.Promise.resolve(void 0);Qg=function(){a.then(Vg)}}else Qg=function(){Mg(Vg)}};
Vg=function(){for(var a;a=Tg.remove();){try{a.i.call(a.scope)}catch(b){Ng(b)}Re(Wg,a)}Sg=!1};
Xg=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Zg=function(a){this.i=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Ha)try{var b=this;a.call(void 0,function(c){Yg(b,2,c)},function(c){Yg(b,3,c)})}catch(c){Yg(this,3,c)}};
$g=function(){this.next=this.context=this.onRejected=this.u=this.i=null;this.B=!1};
bh=function(a,b,c){var d=ah.get();d.u=a;d.onRejected=b;d.context=c;return d};
ch=function(a){if(a instanceof Zg)return a;var b=new Zg(g.Ha);Yg(b,2,a);return b};
dh=function(a){return new Zg(function(b,c){c(a)})};
fh=function(a,b,c){eh(a,b,c,null)||g.Ug(g.Pa(b,a))};
fba=function(a){return new Zg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],fh(e,b,c)})};
gba=function(a){return new Zg(function(b,c){var d=a.length,e=[];if(d)for(var f=function(n,p){d--;e[n]=p;0==d&&b(e)},h=function(n){c(n)},l=0,m;l<a.length;l++)m=a[l],fh(m,g.Pa(f,l),h);
else b(e)})};
hh=function(a,b){b=bh(b,b,void 0);b.B=!0;gh(a,b);return a};
g.jh=function(a,b){return ih(a,null,b,void 0)};
kh=function(a,b){if(0==a.i)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.B||(d++,h.i==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.i&&1==d?kh(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):lh(c),mh(c,e,3,b)))}a.B=null}else Yg(a,3,b)};
gh=function(a,b){a.u||2!=a.i&&3!=a.i||nh(a);a.C?a.C.next=b:a.u=b;a.C=b};
ih=function(a,b,c,d){var e=bh(null,null,null);e.i=new Zg(function(f,h){e.u=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.onRejected=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof oh?h(l):f(m)}catch(n){h(n)}}:h});
e.i.B=a;gh(a,e);return e.i};
Yg=function(a,b,c){0==a.i&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.i=1,eh(c,a.Z,a.Y,a)||(a.K=c,a.i=b,a.B=null,nh(a),3!=b||c instanceof oh||hba(a,c)))};
eh=function(a,b,c,d){if(a instanceof Zg)return gh(a,bh(b||g.Ha,c||null,d)),!0;if(Xg(a))return a.then(b,c,d),!0;if(g.Ma(a))try{var e=a.then;if("function"===typeof e)return iba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
iba=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
function h(m){l||(l=!0,c.call(e,m))}
var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
nh=function(a){a.J||(a.J=!0,g.Ug(a.S,a))};
lh=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
mh=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.D;a=a.B)a.D=!1;if(b.i)b.i.B=null,ph(b,c,d);else try{b.B?b.u.call(b.context):ph(b,c,d)}catch(e){qh.call(null,e)}Re(ah,b)};
ph=function(a,b,c){2==b?a.u.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
hba=function(a,b){a.D=!0;g.Ug(function(){a.D&&qh.call(null,b)})};
oh=function(a){Ta.call(this,a)};
g.rh=function(a,b){g.Oe.call(this);this.Tf=a||1;this.tx=b||g.C;this.aJ=(0,g.D)(this.nX,this);this.qL=g.Qa()};
g.sh=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.D)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.D)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.C.setTimeout(a,b||0)};
th=function(a,b){var c=null;return g.jh(new Zg(function(d,e){c=g.sh(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.C.clearTimeout(c);
throw d;})};
uh=function(a){this.K=a;this.i=new Map;this.J=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.u=new g.rh(this.flushInterval);this.u.Qa("tick",this.KN,!1,this);this.D=!1};
vh=function(a){a.u.enabled||a.u.start();a.B++;a.B>=a.C&&a.KN()};
wh=function(a,b){return a.J.has(b)?void 0:a.i.get(b)};
jba=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
xh=function(a){this.i=a;this.i.QI("/client_streamz/po/w/rl",{dn:3,cn:"mn"},{dn:2,cn:"ac"},{dn:2,cn:"sc"},{dn:3,cn:"rk"})};
yh=function(a){this.i=a;this.i.QI("/client_streamz/po/w/el",{dn:3,cn:"en"},{dn:3,cn:"rk"})};
kba=function(a){this.i=a;this.i.TQ("/client_streamz/po/w/cec",{dn:2,cn:"ec"},{dn:3,cn:"rk"})};
zh=function(a){Hd.call(this,a,-1,lba)};
Ah=function(a){Hd.call(this,a,-1,mba)};
Bh=function(a){Hd.call(this,a)};
Ch=function(a){Hd.call(this,a)};
Dh=function(a){Hd.call(this,a,-1,nba)};
Eh=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));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};
oba=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=h,u=0;64>u;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],A=e[3],F=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var G=A^x&(y^A);var E=1518500249}else G=x^y^A,E=1859775393;else 60>u?(G=x&y|A&(x|y),E=2400959708):(G=x^y^A,E=3395469782);G=((q<<5|q>>>27)&4294967295)+G+F+E+t[u]&4294967295;F=A;A=y;y=(x<<30|x>>>2)&4294967295;x=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+F&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],x=0,y=q.length;x<y;++x)u.push(q.charCodeAt(x));q=u}t||(t=q.length);u=0;if(0==n)for(;u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64;for(;u<t;)if(f[n++]=q[u++],p++,64==n)for(n=0,b(f);u+64<t;)b(q.slice(u,u+64)),u+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)q[t++]=e[u]>>x&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,qR:function(){for(var q=d(),t="",u=0;u<q.length;u++)t+="0123456789ABCDEF".charAt(Math.floor(q[u]/16))+"0123456789ABCDEF".charAt(q[u]%16);return t}}};
Fh=function(a,b,c){var d=String(g.C.location.href);return d&&a&&b?[b,pba(Eh(d),a,c||null)].join(" "):null};
pba=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Ob(d,function(l){e.push(l)}),Gh(e.join(" "));
var f=[],h=[];g.Ob(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.wb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Ob(d,function(l){e.push(l)});
a=Gh(e.join(" "));a=[c,a];g.wb(h)||a.push(h.join(""));return a.join("_")};
Gh=function(a){var b=oba();b.update(a);return b.qR().toLowerCase()};
Hh=function(a){this.i=a||{cookie:""}};
Ih=function(a){a=(a.i.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=kb(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}};
Jh=function(a){return!!qba.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Kh=function(a){a=void 0===a?!1:a;var b=g.C.__SAPISID||g.C.__APISID||g.C.__3PSAPISID||g.C.__OVERRIDE_SID;Jh(a)&&(b=b||g.C.__1PSAPISID);if(b)return!0;var c=new Hh(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID");Jh(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
Lh=function(a,b,c,d){(a=g.C[a])||(a=(new Hh(document)).get(b));return a?Fh(a,c,d):null};
Mh=function(a,b){b=void 0===b?!1:b;var c=Eh(String(g.C.location.href)),d=[];if(Kh(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 Hh(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Fh(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Jh(b)&&((b=Lh("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Lh("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return 0==
d.length?null:d.join(" ")};
Nh=function(a){Hd.call(this,a,-1,rba)};
Oh=function(){};
g.Vh=function(a){var b=[];Uh(new sba,a,b);return b.join("")};
sba=function(){};
Uh=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),Uh(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),Wh(d,c),c.push(":"),Uh(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Wh(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);}}};
Wh=function(a,b){b.push('"',a.replace(tba,function(c){var d=Xh[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Xh[c]=d);return d}),'"')};
uba=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"}};
Yh=function(){};
Zh=function(){};
$h=function(a){if(!a.B&&"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.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
ai=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
bi=function(a){return a?decodeURI(a):a};
g.di=function(a,b){return b.match(ci)[a]||null};
g.ei=function(a){return bi(g.di(3,a))};
fi=function(a){a=a.match(ci);return ai(a[1],null,a[3],a[4])};
gi=function(a){a=a.match(ci);return ai(null,null,null,null,a[5],a[6],a[7])};
hi=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?$f(e):"")}}};
ii=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)]};
ji=function(a,b){return b?a?a+"&"+b:b:a};
ki=function(a,b){if(!b)return a;a=ii(a);a[1]=ji(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
li=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)li(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+Zf(b)))};
mi=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)li(a[b],a[b+1],c);return c.join("&")};
g.ni=function(a){var b=[],c;for(c in a)li(c,a[c],b);return b.join("&")};
oi=function(a,b){var c=2==arguments.length?mi(arguments[1],0):mi(arguments,1);return ki(a,c)};
g.pi=function(a,b){b=g.ni(b);return ki(a,b)};
qi=function(a,b,c){c=null!=c?"="+Zf(c):"";return ki(a,b+c)};
ri=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};
ti=function(a,b){var c=a.search(si),d=ri(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 $f(a.substr(d,e-d))};
ui=function(a,b){for(var c=a.search(si),d=0,e,f=[];0<=(e=ri(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(vba,"$1")};
vi=function(a,b,c){return qi(ui(a,b),b,c)};
wba=function(a,b){a=ii(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]=ji(d.join("&"),g.ni(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
g.wi=function(a){g.Oe.call(this);this.headers=new Map;this.Da=a||null;this.D=!1;this.Aa=this.i=null;this.Ua=this.Z="";this.u=0;this.C="";this.J=this.Ja=this.Y=this.Ka=!1;this.K=0;this.ma=null;this.Sa="";this.ya=this.S=!1};
xba=function(a,b,c,d,e,f,h){var l=new g.wi;xi.push(l);b&&l.Qa("complete",b);l.Dz("ready",l.dR);f&&(l.K=Math.max(0,f));h&&(l.S=h);l.send(a,c,d,e)};
yba=function(a){return g.Kc&&g.Dc(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Ai=function(a,b){a.D=!1;a.i&&(a.J=!0,a.i.abort(),a.J=!1);a.C=b;a.u=5;yi(a);zi(a)};
yi=function(a){a.Ka||(a.Ka=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Fi=function(a){if(a.D&&"undefined"!=typeof Bi)if(a.Aa[1]&&4==g.Ci(a)&&2==a.getStatus())Di(a,"Local request error detected and ignored");else if(a.Y&&4==g.Ci(a))g.sh(a.BM,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Di(a,"Request complete");a.D=!1;try{if(Ei(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.Ci(a)?a.i.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";yi(a)}}finally{zi(a)}}};
zi=function(a,b){if(a.i){Gi(a);var c=a.i,d=a.Aa[0]?g.Ha:null;a.i=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Gi=function(a){a.i&&a.ya&&(a.i.ontimeout=null);a.ma&&(g.C.clearTimeout(a.ma),a.ma=null)};
Ei=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.di(1,String(a.Z)),!a&&g.C.self&&g.C.self.location&&(a=g.C.self.location.protocol,a=a.substr(0,a.length-1)),b=!zba.test(a?a.toLowerCase():"");c=b}return c};
g.Ci=function(a){return a.i?a.i.readyState:0};
g.Hi=function(a){try{return a.i?a.i.responseText:""}catch(b){return""}};
Ii=function(a){try{if(!a.i)return null;if("response"in a.i)return a.i.response;switch(a.Sa){case "":case "text":return a.i.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.i)return a.i.mozResponseArrayBuffer}return null}catch(b){return null}};
Aba=function(a){return a.i&&a.isComplete()?a.i.getAllResponseHeaders()||"":""};
Bba=function(a){var b={};a=Aba(a).split("\r\n");for(var c=0;c<a.length;c++)if(!g.ab(a[c])){var d=aba(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 Vb(b,function(h){return h.join(", ")})};
Di=function(a,b){return b+" ["+a.Ua+" "+a.Z+" "+a.getStatus()+"]"};
Ji=function(a){Hd.call(this,a)};
Cba=function(){var a=new Ji,b=document.documentElement.getAttribute("lang");return Jd(a,5,b)};
Ki=function(a){Hd.call(this,a)};
Li=function(a){Hd.call(this,a,31,Dba)};
Mi=function(a){Hd.call(this,a,17,Eba)};
Ni=function(a){var b=Date.now().toString();return Jd(a,4,b)};
Oi=function(a,b){return Td(a,3,b)};
Pi=function(a,b){return Jd(a,14,b)};
Qi=function(a){Hd.call(this,a,6,Fba)};
Ri=function(a){Hd.call(this,a)};
bj=function(a,b,c,d,e,f,h,l,m,n,p){g.Oe.call(this);var q=this;this.Y="";this.u=[];this.Za="";this.eb=this.Ka=-1;this.Sa=!1;this.S=this.C=null;this.K=0;this.xb=1;this.timeoutMillis=0;this.Da=!1;g.Oe.call(this);this.kb=a;this.Ua=b||g.Ha;this.D=new Mi;this.jb=d;this.Ja=p;this.zb=g.Pa(Pf,0,1);this.ya=e||null;this.Z=c||null;this.Aa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ya=f||!1;!this.Ya&&(g.Si&&g.Dc(65)||g.Ti&&g.Dc(45)||g.Ui&&g.Dc(12)||vc()&&g.nb(wc(),12));a=Jd(new Ki,
1,1);f||(f=Cba(),Sd(a,11,f));Sd(this.D,1,a);Jd(this.D,2,this.kb);this.J=new g.ge(1E4,3E5,.1);this.i=new g.rh(this.J.getValue());g.J(this,this.i);De(this.i,"tick",Ue(Vi(this,n)),!1,this);this.ma=new g.rh(6E5);g.J(this,this.ma);De(this.ma,"tick",Ue(Vi(this,n)),!1,this);this.Aa||this.ma.start();this.Ya||(De(vg(),"beforeunload",this.wv,!1,this),De(vg(),"unload",this.wv,!1,this),De(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.wv()}),De(document,"pagehide",this.wv,!1,this))};
Vi=function(a,b){return b?function(){b().then(a.flush.bind(a))}:a.flush};
cj=function(a){a.ya||(a.ya=.01>a.zb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ya};
dj=function(a,b){a.J=new g.ge(1>b?1:b,3E5,.1);a.i.setInterval(a.J.getValue())};
Hba=function(a){Gba(a,function(b,c){b=qi(b,"format","json");b=vg().navigator.sendBeacon(b,Vd(c));a.Da&&!b&&(a.Da=!1);return b})};
Gba=function(a,b){if(0!==a.u.length){var c=ui(cj(a),"format");c=oi(c,"auth",a.Ua(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=Oi(Ni(a.D.clone()),e);0===d&&Pi(f,a.K);if(!b(c,f))break;a.u=a.u.slice(e.length)}a.i.enabled&&a.i.stop();a.K=0}};
ej=function(){g.re.call(this,"event-logged",void 0)};
Iba=function(a,b,c){xba(a.url,function(d){d=d.target;Ei(d)?b(g.Hi(d)):c(d.getStatus())},a.requestType,a.body,a.wq,a.timeoutMillis,a.withCredentials)};
fj=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Iba;this.i=""};
gj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new fj;d.i="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.i=d.Ne()};
hj=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}};
ij=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};
jj=function(){};
kj=function(a){this.pm=a;this.C=new gj;this.i=new uh(this.C);this.clientError=new kba(this.i);this.u=new yh(this.i);this.B=new xh(this.i)};
lj=function(a){Hd.call(this,a)};
mj=function(a){Hd.call(this,a)};
nj=function(a){Hd.call(this,a)};
oj=function(a){Hd.call(this,a)};
pj=function(a){Hd.call(this,a)};
qj=function(a,b,c){this.i=a;this.B=b;this.u=c};
rj=function(a,b,c){c=void 0===c?{}:c;this.LW=a;this.i=c;this.u=b};
sj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.u=e};
tj=function(a,b,c){c=void 0===c?{}:c;return new qj(b,a,c)};
uj=function(a){Hd.call(this,a)};
vj=function(a){Hd.call(this,a)};
wj=function(a){Hd.call(this,a)};
xj=function(a){Hd.call(this,a,-1,Jba)};
yj=function(a,b){this.K=a.hT;this.S=b;this.i=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&Kba(this)};
Lba=function(a,b){De(a.i,"complete",function(){if(Ei(a.i)){var c=g.Hi(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.S(c)}catch(f){zj(a,new ij(13,"Error when deserializing response data: "+c));return}c=hj(a.i.getStatus());Aj(a,Bj(a));0==c?Cj(a,d):zj(a,new ij(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Hi(a.i);var e={};d?(e=Dj(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+
a.i.u+", error: "+a.i.getLastError());Aj(a,Bj(a));zj(a,new ij(d,c,e))}})};
Kba=function(a){a.K.fm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c);Cj(a,d)}catch(e){zj(a,new ij(13,"Error when deserializing response data: "+c))}}if("2"in b)for(b=Dj(a,b["2"]),c=0;c<a.J.length;c++)a.J[c](b)});
a.K.fm("end",function(){Aj(a,Bj(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.fm("error",function(){if(0!=a.u.length){var b=a.i.u;0!==b||Ei(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=hj(a.i.getStatus());break;default:c=14}Aj(a,Bj(a));zj(a,new ij(c,uba(b)+", error: "+a.i.getLastError()))}})};
Bj=function(a){var b={},c=Bba(a.i);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Dj=function(a,b){var c=2,d={};try{var e=Ed(xj,b?JSON.parse(b):null);c=Xd(e,1);var f=Ld(e,2,"");Rd(e,wj,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.i&&404===a.i.getStatus()?(c=5,f="Not Found: "+String(a.i.Z)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
Ej=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Cj=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
Aj=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
zj=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
Fj=function(a){this.D=a.MX||null;this.B=a.dX||!1};
Gj=function(a,b){g.Oe.call(this);this.ya=a;this.K=b;this.J=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.u=null;this.ma="GET";this.Y="";this.i=!1;this.S=this.C=this.D=null};
Hj=function(a){a.C.read().then(a.TR.bind(a)).catch(a.kz.bind(a))};
Jj=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;Ij(a)};
Ij=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.Kj=function(a,b){this.i=this.S=this.C="";this.B=null;this.D=this.K="";this.J=!1;var c;a instanceof g.Kj?(this.J=void 0!==b?b:a.J,g.Lj(this,a.C),this.S=a.S,g.Mj(this,a.i),g.Nj(this,a.B),this.K=a.getPath(),Oj(this,a.u.clone()),this.D=a.D):a&&(c=String(a).match(ci))?(this.J=!!b,g.Lj(this,c[1]||"",!0),this.S=Pj(c[2]||""),g.Mj(this,c[3]||"",!0),g.Nj(this,c[4]),this.K=Pj(c[5]||"",!0),Oj(this,c[6]||"",!0),this.D=Pj(c[7]||"")):(this.J=!!b,this.u=new Qj(null,this.J))};
g.Lj=function(a,b,c){a.C=c?Pj(b,!0):b;a.C&&(a.C=a.C.replace(/:$/,""))};
g.Mj=function(a,b,c){a.i=c?Pj(b,!0):b};
g.Nj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.B=b}else a.B=null};
Oj=function(a,b,c){b instanceof Qj?(a.u=b,Mba(a.u,a.J)):(c||(b=Rj(b,Nba)),a.u=new Qj(b,a.J))};
g.Sj=function(a,b,c){a.u.set(b,c)};
g.Tj=function(a){return a instanceof g.Kj?a.clone():new g.Kj(a,void 0)};
Pj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Rj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Oba),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Oba=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Qj=function(a,b){this.u=this.i=null;this.B=a||null;this.C=!!b};
Uj=function(a){a.i||(a.i=new Map,a.u=0,a.B&&hi(a.B,function(b,c){a.add($f(b),c)}))};
Wj=function(a,b){Uj(a);b=Vj(a,b);return a.i.has(b)};
g.Xj=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.i.set(Vj(a,b),g.Db(c)),a.u=a.u+c.length)};
Vj=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Mba=function(a,b){b&&!a.C&&(Uj(a),a.B=null,a.i.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Xj(this,e,c))},a));
a.C=b};
Pba=function(a){var b="";g.Tb(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Yj=function(a){g.I.call(this);this.u=a;this.i={}};
Zj=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Zj(a,b,c[h],d,e,f);else{b=Ce(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.i[b.key]=b}return a};
g.ak=function(a){g.Tb(a.i,function(b,c){this.i.hasOwnProperty(c)&&Le(b)},a);
a.i={}};
bk=function(){this.B=!0;this.u=0;this.i=""};
ck=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
dk=function(){this.J=null;this.K=[];this.C=this.i=this.B=this.u=this.Z=0;this.D=null;this.S=0};
ek=function(a,b,c,d){a.u=3;a.J="The stream is broken @"+a.Z+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.J);};
fk=function(){this.i=null;this.u=0;this.B=new bk;this.C=new dk};
gk=function(a,b,c){a.i="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.i);};
hk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
ik=function(a){this.Z=null;this.J=[];this.C="";this.ma=[];this.B=this.u=0;this.K=!1;this.S=0;this.ya=/[\\"]/g;this.i=this.D=0;this.Y=!(!a||!a.pR)};
jk=function(a,b,c){a.D=3;a.Z="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.Z);};
kk=function(){this.D=this.B=null;this.u=this.i=0;this.C=[];this.J=!1};
Qba=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 kk:new ik:b.startsWith("application/x-protobuf")?(a=a.i?a.i.getResponseHeader("Content-Transfer-Encoding"):null)?"base64"==a.toLowerCase()?new fk:null:new dk:null};
lk=function(a){this.i=a;this.u=null;this.C=this.B=0;this.Z=!1;this.D=this.K=this.J=null;this.S=new g.Yj(this);this.S.Qa(this.i,"readystatechange",this.Y)};
mk=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
nk=function(a){g.ak(a.S);if(a.i){var b=a.i;a.i=null;b.abort();b.dispose()}};
ok=function(a){this.B=a;a=(0,g.D)(this.dU,this);this.B.D=a;a=(0,g.D)(this.NV,this);this.B.K=a;this.u={};this.i={}};
pk=function(a,b){for(var c={},d=0;d<a.length;c={sB:c.sB},d++)c.sB=a[d],b.forEach(function(e){return function(f){try{f(e.sB)}catch(h){}}}(c))};
qk=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.i[b])&&c.forEach(function(d){d()});
a.i[b]=[]};
rk=function(a){a=void 0===a?{}:a;this.D=a.Xaa||g.Ga("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ga("withCredentials",a)||!1;this.C=a.Vaa||[];this.J=a.Yaa||[];this.i=a.bba;this.B=a.Zaa||!1};
tk=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return sk(function(h){return new Rba(function(l,m){var n={},p=Sba(a,h,f);p.fm("error",function(q){return m(q)});
p.fm("metadata",function(q){n=q});
p.fm("data",function(q){var t=n;t=void 0===t?{}:t;l(new rj(q,h.Vy(),t))})})},a.J).call(a,tj(e,c,d)).then(function(h){return h.LW})};
Sba=function(a,b,c){var d=b.Vy(),e=b.getMetadata(),f=uk(a,!0);a=Bk(a,e,f,c+d.getName());c=Ck(f,d.u,!1);Lba(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.i(b.i);f.send(a,"POST",b);return c};
uk=function(a,b){b=a.B&&!b;return a.i||b?new g.wi(new Fj({MX:a.i,dX:b})):new g.wi};
Bk=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.S=!0;if(a.D)a=d,g.ic(b)?d=a:(b=Pba(b),"string"===typeof a?d=qi(a,Zf("$httpHeaders"),b):(g.Sj(a,"$httpHeaders",b),d=a));else for(var f in b)c.headers.set(f,b[f]);return d};
Ck=function(a,b,c){if(c)if(a.isActive(),!g.Kc||g.Ec(10)){c=new lk(a);var d=new ok(c)}else d=null;return new yj({xhr:a,hT:d},b)};
sk=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.i(f,e)}});
return c};
Dk=function(){var a={format:"jspb"};this.i=new rk(a)};
Tba=function(a,b,c){this.content=a;this.i=b;this.u=c};
Vba=function(a){var b=new Dk,c={"X-Goog-Api-Key":"AIzaSyBydTmf06EmN2pis9ljY6qe2XY0Rn8uK0k"};return new Uba(b,a,function(){return c})};
Uba=function(a,b,c){this.client=a;this.pm=b;this.i=c};
Wba=function(a){return g.H(a,function c(){var d,e=this,f,h,l;return g.B(c,function(m){if(1==m.i)return d=new lj,Nd(d,1,e.pm,""),f=e.i(),g.z(m,e.client.create(d,f),2);h=m.u;l=Qd(h,oj,1);if(!l)throw Error("Missing field");return m.return(l)})})};
Yba=function(a,b){return g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){if(1==m.i){f=e.i();var n=new uj;n=Nd(n,1,e.pm,"");h=Nd(n,2,b,"");n=tk(e.client.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",h,f||{},Xba);return g.z(m,n,2)}l=m.u;return m.return(new Tba(wd(Ld(l,1,"")),Xd(l,3),Xd(l,2)))})})};
Ek=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Fk=function(a){this.i=!1;if(a.challenge instanceof oj){var b=Ld(a.challenge,4,"");a=Ld(a.challenge,5,"")}else b=a.program,a=a.globalName;var c=new Ek;this.u=c.promise;g.r((0,g.C[a].a)(b,function(d,e){Promise.resolve().then(function(){c.resolve({VQ:d,ZW:e})})},!0)).next();
c.promise.then(function(){})};
Zba=function(a){return Kf(g.cf("From proto message. b/12014412"),Id(a,4)||"")};
$ba=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
aca=function(){var a,b;if(void 0===Gk)try{Gk=null!==(b=null===(a=$ba())||void 0===a?void 0:a.createPolicy("google#safe",{createHTML:function(c){return c},
createScript:function(c){return c},
createScriptURL:function(c){return c}}))&&void 0!==b?b:null}catch(c){Gk=null}return Gk};
Hk=function(){};
Ik=function(a){this.i=a};
Jk=function(){};
Kk=function(a){this.i=a};
Lk=function(a){if(a instanceof Jk)if(a instanceof Kk)a=a.i;else throw Error("");else a=g.nf(a);return a};
Mk=function(a){var b,c=(a.ownerDocument&&a.ownerDocument.defaultView||window).document,d=null===(b=c.querySelector)||void 0===b?void 0:b.call(c,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Nk=function(a,b){a.src=hf(b);Mk(a)};
Ok=function(a,b){return a.parseFromString(g.Ff(b),"text/xml")};
Pk=function(){this.i={};this.u=null};
bca=function(a,b,c,d){var e;if(!b&&!c)return Promise.resolve();if(!d)return Qk(b,c);(e=a.i)[d]||(e[d]=new Promise(function(f,h){Qk(b,c).then(function(){a.u=d;f()},function(l){delete a.i[d];
h(l)})}));
return a.i[d]};
Qk=function(a,b){return b?cca(b):a?dca(a):Promise.resolve()};
cca=function(a){return new Promise(function(b,c){var d=g.zg("SCRIPT"),e=Zba(a);g.Nk(d,e);d.onload=function(){g.Dg(d);b()};
d.onerror=function(){g.Dg(d);c(Error("EWLS"))};
(g.lg("HEAD")[0]||document.documentElement).appendChild(d)})};
dca=function(a){return new Promise(function(b){var c=g.zg("SCRIPT");if(a){var d=Id(a,6);if(null===d||void 0===d)var e=null;else{var f=null===(e=aca())||void 0===e?void 0:e.createScript(d);e=new Ik(null!==f&&void 0!==f?f:d,Rk)}}else e=null;if(e instanceof Hk)if(e instanceof Ik)e=e.i;else throw Error("");else e=e instanceof ef&&e.constructor===ef?e.i:"type_error:SafeScript";c.textContent=e;Mk(c);(g.lg("HEAD")[0]||document.documentElement).appendChild(c);g.Dg(c);b()})};
Sk=function(a){this.i=a};
eca=function(a){a.Jy=Vba(a.pm);a.lM=function(){};
a.onError=function(){};
return new Tk(a)};
fca=function(a){switch(a){case 1:return 8;case 2:return 9;case 3:case 0:return 0;default:return 0}};
Uk=function(){g.I.apply(this,arguments)};
Vk=function(a,b,c){Uk.call(this);this.D=a;this.J=b;this.C=c;this.i=0};
Wk=function(a){Uk.call(this);this.i=a};
Tk=function(a){var b=this;this.FF=!1;this.Xu=void 0;var c=Date.now();this.Jy=a.Jy;this.lM=a.lM;this.onError=a.onError;this.logger=a.Naa?new jj:new kj(a.pm);this.rz=new g.rh;this.rz.Qa("tick",function(){Xk(b,2)});
this.GL=Yk(this);this.GL.then(function(d){b.Xu=d;b.logger.ew("r",Date.now()-c)}).catch(function(d){b.onError(d,"Init failed")})};
Zk=function(a,b,c){a.logger.Ez(b);return new fe(b,c)};
$k=function(a,b,c){return g.H(a,function e(){var f=this,h;return g.B(e,function(l){h=f;return l.return(ie(function(m){return g.H(h,function p(){var q,t=this;return g.B(p,function(u){q=b();t.logger.xL(c,m,q);return u.return(q)})})},gca))})})};
hca=function(a){return g.H(a,function c(){var d=this,e,f,h;return g.B(c,function(l){switch(l.i){case 1:return e=d,g.z(l,$k(d,function(){return Wba(e.Jy)},"c"),2);
case 2:f=l.u;ta(l,3);Pk.i||(Pk.i=new Pk);var m=bca(Pk.i,Qd(f,mj,1),Qd(f,nj,2),Ld(f,3,""));return g.z(l,m,5);case 5:return l.return(new Fk({challenge:f}));case 3:throw h=va(l),Zk(d,2,h);}})})};
ica=function(a,b){return g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){switch(m.i){case 1:return f=e,ta(m,2),g.z(m,b.snapshot({}),4);case 4:h=m.u;ua(m,3);break;case 2:throw l=va(m),Zk(e,3,l);case 3:return m.return($k(e,function(){return g.H(f,function p(){var q=this;return g.B(p,function(t){return t.return(Yba(q.Jy,h))})})},"g"))}})})};
jca=function(a,b){return g.H(a,function d(){var e,f=this,h,l;return g.B(d,function(m){if(1==m.i)return e=Date.now(),f.rz.stop(),g.z(m,ica(f,b),2);h=m.u;if(h.i){var n=window.webpocb;if(void 0===n)throw Zk(f,4,Error(""));n=n(h.content);n=new Vk(b,n,h.i)}else n=new Wk(h.content);l=n;f.rz.setInterval(1E3*h.u);f.rz.start();f.logger.ew("g",Date.now()-e);return m.return(l)})})};
Yk=function(a){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){e=d;return f.return(ie(function(){return g.H(e,function l(){var m,n,p=this,q,t;return g.B(l,function(u){switch(u.i){case 1:return m=Date.now(),g.z(u,hca(p),2);case 2:return q=u.u,p.logger.ew("c",Date.now()-m),ta(u,3),g.z(u,jca(p,q),5);case 5:n=u.u;ua(u,4);break;case 3:throw t=va(u),q.dispose(),t;case 4:return u.return(n)}})})},kca))})})};
Xk=function(a,b){g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i){if(e.FF)return l.return();e.FF=!0;l.J=0;l.C=2;f=e.Xu;f.u=b;h=Yk(e);return g.z(l,h,4)}2!=l.i&&(e.Xu=l.u,f.dispose());xa(l);e.FF=!1;return ya(l,0)})})};
lca=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.i=/[?&]adurl=([^&]*)/.exec(a))&&this.i[1]){try{var c=decodeURIComponent(this.i[1])}catch(d){c=null}this.u=c}};
al=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.ag(c)+".js";c=e.document;var h={};b&&(h._scs_=b);h._bgu_=f;h._bgp_=d;h._li_="v_h.3.0.0.0";(b=e.GoogleTyFxhY)&&"function"==typeof b.push||(b=e.GoogleTyFxhY=[]);b.push(h);e=jg(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=Maa(g.cf("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.ag(a)+".js"});g.Nk(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
mca=function(a){var b={};g.Ob(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.i(e)||(b[d]=null)):b[d]=c});
laa(a,function(c){return null===b[c.event]})};
bl=function(){this.Yc=0;this.i=!1;this.u=-1;this.Qp=!1;this.oh=0};
cl=function(){this.u=null;this.i=!1};
dl=function(a){cl.call(this);this.B=a};
el=function(){cl.call(this)};
fl=function(){cl.call(this)};
gl=function(){this.i={};this.u=!0;this.B={}};
hl=function(a,b,c){a.i[b]||(a.i[b]=new dl(c));return a.i[b]};
nca=function(a){a.i.queryid||(a.i.queryid=new fl)};
il=function(a,b,c){(a=a.i[b])&&a.setValue(c)};
jl=function(a,b){if(dc(a.B,b))return a.B[b];if(a=a.i[b])return a.getValue()};
kl=function(a){var b={},c=g.Ub(a.i,function(d){return d.i});
g.Tb(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.i&&null!==d.u?String(d.u):"";0<d.length&&(b[e]=d)},a);
return b};
oca=function(a){a=kl(a);var b=[];g.Tb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
pca=function(){this.i=this.Nn=null};
ll=function(){};
nl=function(){if(!ml())throw Error();};
ml=function(){return!(!ol||!ol.performance)};
pl=function(a){return a?a.passive&&qca()?a:a.capture||!1:!1};
ql=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,pl(d)),!0):!1};
rl=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,pl(void 0))};
sl=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
tl=function(){};
vl=function(){return!ul()&&(Sb("iPod")||Sb("iPhone")||Sb("Android")||Sb("IEMobile"))};
ul=function(){return Sb("iPad")||Sb("Android")&&!Sb("Mobile")||Sb("Silk")};
wl=function(a){try{return!!a&&null!=a.location.href&&zc(a,"foo")}catch(b){return!1}};
xl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
sca=function(){var a=[];xl(rca,function(b){a.push(b)});
return a};
uca=function(a){return(a=tca.exec(a))&&a[0]||""};
vca=function(){var a=yl;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""};
xca=function(){var a=g.zg("IFRAME"),b={};g.Ob(wca(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
zl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Al=function(a){return a.right-a.left};
Bl=function(a,b,c){b instanceof g.Uf?(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.Cl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Dl=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};
El=function(a){this.isValid=a};
Fl=function(a){return new El(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Hl=function(a,b){b=void 0===b?Gl:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof El&&d.isValid(a))return new Kk(a,Rk)}};
g.Jl=function(a,b,c){if("string"===typeof b)(b=Il(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Il(c,d);f&&(c.style[f]=e)}};
Il=function(a,b){var c=Kl[b];if(!c){var d=eg(b);c=d;void 0===a.style[d]&&(d=(g.ug?"Webkit":Ll?"Moz":g.Kc?"ms":null)+$aa(d),void 0!==a.style[d]&&(c=d));Kl[b]=c}return c};
g.Ml=function(a,b){var c=a.style[eg(b)];return"undefined"!==typeof c?c:a.style[Il(a,b)]||""};
Nl=function(a,b){var c=hg(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Ol=function(a,b){return Nl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Ql=function(a,b,c){if(b instanceof g.Uf){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Pl(d,!1);a.style.top=g.Pl(b,!1)};
Rl=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
yca=function(a){if(g.Kc&&!g.Ec(8))return a.offsetParent;var b=hg(a),c=Ol(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=Ol(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.Sl=function(a){var b=hg(a),c=new g.Uf(0,0);var d=b?hg(b):document;d=!g.Kc||g.Ec(9)||"CSS1Compat"==jg(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=Rl(a);b=tg(jg(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ul=function(a,b){var c=new g.Uf(0,0),d=vg(hg(a));if(!zc(d,"parent"))return c;do{var e=d==b?g.Sl(a):Tl(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.Wl=function(a,b){a=Vl(a);b=Vl(b);return new g.Uf(a.x-b.x,a.y-b.y)};
Tl=function(a){a=Rl(a);return new g.Uf(a.left,a.top)};
Vl=function(a){if(1==a.nodeType)return Tl(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Uf(a.clientX,a.clientY)};
g.Xl=function(a,b,c){if(b instanceof g.Wf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Pl(b,!0);a.style.height=g.Pl(c,!0)};
g.Pl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Yl=function(a){var b=zca;if("none"!=Ol(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};
zca=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ug&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Rl(a),new g.Wf(a.right-a.left,a.bottom-a.top)):new g.Wf(b,c)};
g.Zl=function(a,b){a.style.display=b?"":"none"};
cm=function(){if($l&&!wl(am)){var a="."+bm.domain;try{for(;2<a.split(".").length&&!wl(am);)bm.domain=a=a.substr(a.indexOf(".")+1),am=window.parent}catch(b){}wl(am)||(am=window)}return am};
fm=function(a){a=a||dm();for(var b=new em(g.C.location.href,g.C,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Aca.test(f.url)&&(c=f);if(f.url&&!f.jE){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Bca(b,e,c)};
dm=function(){var a=g.C,b=[],c=null;do{var d=a;if(wl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new em(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.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.jE=!0);return b};
Bca=function(a,b,c){this.i=a;this.u=b;this.B=c};
em=function(a,b,c){this.url=a;this.fg=b;this.jE=!!c;this.depth=null};
gm=function(){this.B="&";this.u={};this.C=0;this.i=[]};
hm=function(a,b){var c={};c[a]=b;return[c]};
jm=function(a,b,c,d,e){var f=[];xl(a,function(h,l){(h=im(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
im=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(im(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(jm(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Cca=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
km=function(a,b){this.i=a;this.depth=b};
Eca=function(){function a(l,m){return null==l?m:l}
var b=dm(),c=Math.max(b.length-1,0),d=fm(b);b=d.i;var e=d.u,f=d.B,h=[];f&&h.push(new km([f.url,f.jE?2:0],a(f.depth,1)));e&&e!=f&&h.push(new km([e.url,2],0));b.url&&b!=f&&h.push(new km([b.url,0],a(b.depth,c)));d=g.lm(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=uca(b.url))&&d.push([new km([e,1],a(b.depth,c))]);d.push([]);return g.lm(d,function(l){return Dca(c,l)})};
Dca=function(a,b){g.mm(b,function(e){return 0<=e.depth});
var c=nm(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2);
d[0]=a;g.Ob(b,function(e){return d[e.depth+1]=e.i});
return d};
Fca=function(){var a=Eca();return g.lm(a,function(b){return im(b)})};
om=function(a){var b="Pe";if(a.Pe&&a.hasOwnProperty(b))return a.Pe;var c=new a;a.Pe=c;a.hasOwnProperty(b);return c};
pm=function(){this.u=new tl;this.i=ml()?new nl:new ll};
Gca=function(){qm();var a=ol.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof ol.setInterval&&"function"===typeof ol.clearInterval&&"function"===typeof ol.setTimeout&&"function"===typeof ol.clearTimeout)};
rm=function(a){qm();var b=cm()||ol;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
xm=function(){qm();return Fca()};
ym=function(){};
qm=function(){return om(ym).getContext()};
zm=function(a){Hd.call(this,a)};
Hca=function(a){this.B=a;this.i=-1;this.u=this.C=0};
Am=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.i)return b.apply(null,g.v(d));try{return a.i=a.B.i.now(),b.apply(null,g.v(d))}finally{a.C+=a.B.i.now()-a.i,a.i=-1,a.u+=1}}};
Ica=function(a,b){this.u=a;this.B=b;this.i=new Hca(a)};
Jca=function(){};
Cm=function(){this.B=void 0;this.u=this.J=0;this.D=-1;this.featureSet=new gl;hl(this.featureSet,"mv",Kca).i=!0;hl(this.featureSet,"omid",Bm);hl(this.featureSet,"epoh",Bm).i=!0;hl(this.featureSet,"epph",Bm).i=!0;hl(this.featureSet,"umt",Bm).i=!0;hl(this.featureSet,"phel",Bm).i=!0;hl(this.featureSet,"phell",Bm).i=!0;hl(this.featureSet,"oseid",Lca).i=!0;var a=this.featureSet;a.i.sloi||(a.i.sloi=new el);a.i.sloi.i=!0;hl(this.featureSet,"ovms",Mca).i=!0;hl(this.featureSet,"xdi",Bm).i=!0;hl(this.featureSet,
"amp",Bm).i=!0;hl(this.featureSet,"prf",Bm).i=!0;hl(this.featureSet,"gtx",Bm).i=!0;hl(this.featureSet,"mvp_lv",Bm).i=!0;hl(this.featureSet,"ssmol",Bm).i=!0;this.i=new Ica(qm(),this.featureSet);this.C=!1;this.flags=new Jca};
Dm=function(){return om(Cm)};
Nca=function(){var a="https:";ol&&ol.location&&"http:"===ol.location.protocol&&(a="http:");this.u=a;this.i=.01;this.B=Math.random()};
Em=function(a,b,c,d,e){if((d?a.B:Math.random())<(e||a.i))try{if(c instanceof gm)var f=c;else f=new gm,xl(c,function(l,m){var n=f,p=n.C++;l=hm(m,l);n.i.push(p);n.u[p]=l});
var h=f.Wd(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&","");h&&rm(h)}catch(l){}};
Fm=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};
Gm=function(){var a=g.C.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Qa()};
Hm=function(){var a=void 0===a?g.C:a;return(a=a.performance)&&a.now?a.now():null};
Oca=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Jm=function(){var a=cm();this.events=[];this.u=a||g.C;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.i=Im()||(null!=b?b:1>Math.random())};
Lm=function(a){a&&Km&&Im()&&(Km.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Km.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Om=function(){var a=Mm;this.i=Nm;this.PJ="jserror";this.gG=!0;this.yC=null;this.u=this.AE;this.Lb=void 0===a?null:a};
Rm=function(a,b,c,d){return Am(Dm().i.i,function(){try{if(a.Lb&&a.Lb.i){var e=a.Lb.start(b.toString(),3);var f=c();a.Lb.end(e)}else f=c()}catch(m){var h=a.gG;try{Lm(e);var l=new Pm(Qm(m));h=a.u(b,l,void 0,d)}catch(n){a.AE(217,n)}if(!h)throw m;}return f})()};
Tm=function(a,b,c){var d=Sm;return Am(Dm().i.i,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Rm(d,a,function(){return b.apply(void 0,f)},c)})};
Qm=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};
Pm=function(a){Fm.call(this,Error(a),{message:a})};
Um=function(){var a=cm();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Mm.disable())};
Pca=function(a){Sm.yC=function(b){g.Ob(a,function(c){c(b)})}};
Vm=function(a,b){return Rm(Sm,a,b,void 0)};
Wm=function(a,b){return Tm(a,b,void 0)};
Xm=function(a,b,c,d){Sm.AE(a,b,c,d)};
Ym=function(){return Date.now()-Qca};
Rca=function(){var a=Dm().B,b=0<=Zm?Ym()-Zm:-1,c=$m?Ym()-an:-1,d=0<=bn?Ym()-bn:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Xm(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
cn=function(a,b,c){var d=new zl(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.i=d;this.u=c};
dn=function(a,b,c,d,e,f,h){this.C=a;this.B=b;this.J=c;this.i=d;this.D=e;this.u=f;this.K=h};
en=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,wl(a)&&(c=a,b=d);return{fg:c,level:b}};
fn=function(a){var b=a!==a.top,c=a.top===en(a).fg,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),Xb(Sca,function(h){return"function"===typeof f[h]})||(e=1));
return{tj:f,compatibility:e,aX:d}};
Tca=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
gn=function(a,b,c,d){var e=void 0===e?!1:e;c=Tm(d,c,void 0);ql(a,b,c,{capture:e})};
hn=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Wf(b.innerWidth,b.innerHeight)).round():rg(b||window).round()}catch(d){return new g.Wf(-12245933,-12245933)}};
jn=function(a,b,c){try{a&&(b=b.top);var d=hn(a,b,void 0===c?!1:c),e=tg(jg(b.document).i);if(-12245933==d.width){var f=d.width;var h=new zl(f,f,f,f)}else h=new zl(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new zl(-12245933,-12245933,-12245933,-12245933)}};
kn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
ln=function(a){return new zl(a.top,a.right,a.bottom,a.left)};
mn=function(a){var b=a.top||0,c=a.left||0;return new zl(b,c+(a.width||0),b+(a.height||0),c)};
nn=function(a){return null!=a&&0<=a&&1>=a};
Uca=function(){var a=g.Qb;return a?on("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return jb(a,b)})||jb(a,"OMI/")&&!jb(a,"XiaoMi/")?!0:jb(a,"Presto")&&jb(a,"Linux")&&!jb(a,"X11")&&!jb(a,"Android")&&!jb(a,"Mobi"):!1};
pn=function(){this.B=!wl(ol.top);this.isMobileDevice=ul()||vl();var a=dm();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.ei(a[a.length-1].url)||"":"";this.i=new zl(0,0,0,0);this.C=new g.Wf(0,0);this.D=new g.Wf(0,0);this.K=new zl(0,0,0,0);this.J=0;this.S=!1;this.u=!(!ol||!fn(ol).tj);this.update(ol)};
qn=function(a,b){b&&b.screen&&(a.C=new g.Wf(b.screen.width,b.screen.height))};
rn=function(a,b){var c=a.i?new g.Wf(Al(a.i),a.i.getHeight()):new g.Wf(0,0);b=void 0===b?ol:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.Wf(e,d)}catch(u){t=new g.Wf(-12245933,-12245933)}a.D=t};
tn=function(){var a=sn();if(0<a.J||a.S)return!0;a=qm().u.isVisible();var b=0===sl(bm);return a||b};
sn=function(){return om(pn)};
un=function(a){this.B=a;this.u=0;this.i=null};
vn=function(a,b,c){this.fg=a;this.Ja=void 0===c?"na":c;this.C=[];this.Yd=!1;this.B=new cn(-1,!0,this);this.i=this;this.K=b;this.Z=this.S=!1;this.Aa="uk";this.ya=!1;this.D=!0};
wn=function(a,b){g.ub(a.C,b)||(a.C.push(b),b.gs(a.i),b.Fn(a.B),b.Sk()&&(a.S=!0))};
xn=function(a){a=a.i;a.qH();a.pH();var b=sn();b.K=jn(!1,a.fg,b.isMobileDevice);rn(sn(),a.fg);a.B.i=a.pK()};
yn=function(a){a.S=a.C.length?on(a.C,function(b){return b.Sk()}):!1};
zn=function(a){var b=g.Db(a.C);g.Ob(b,function(c){c.Fn(a.B)})};
An=function(a){var b=g.Db(a.C);g.Ob(b,function(c){c.gs(a.i)});
a.i!=a||zn(a)};
Bn=function(a,b,c,d){this.element=a;this.i=new zl(0,0,0,0);this.C=new zl(0,0,0,0);this.u=b;this.featureSet=c;this.ma=d;this.Y=!1;this.timestamp=-1;this.K=new dn(b.B,this.i,new zl(0,0,0,0),0,0,Ym(),0)};
Cn=function(a){this.D=!1;this.i=a;this.C=g.Ha};
Dn=function(a,b,c){this.B=void 0===c?0:c;this.u=a;this.i=null==b?"":b};
Vca=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
En=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.i<typeof b.i?!0:typeof a.i>typeof b.i?!1:a.i<b.i};
Fn=function(){this.B=0;this.i=[];this.u=!1};
Wca=function(a,b){(0,g.Ob)(b.i,function(c){a.add(c.u,c.i,Vca(c))})};
Gn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;xl(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Hn=function(a){var b=Xca;a.u&&(g.Lb(a.i,function(c,d){return En(d,c)?1:En(c,d)?-1:0}),a.u=!1);
return nm(a.i,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Xca=function(a){var b=a.u;a=a.i;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.ub(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Jn=function(a){var b=void 0===b?!0:b;this.i=new Fn;void 0!==a&&Wca(this.i,a);b&&this.i.add("v",In,-16)};
Yca=function(a){var b=[],c=[];g.Tb(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)};
Kn=function(){if(In&&"unreleased"!==In)return In};
Ln=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Kn();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);rm(a)};
Zca=function(){this.i=0};
$ca=function(a,b,c){(0,g.Ob)(a.B,function(d){var e=a.i;if(!d.i&&(d.B(b,c),d.C())){d.i=!0;var f=d.u(),h=new Fn;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=om(Zca);h.add("i",d.i++);h.add("adk",e);Gn(h,f);e=new Jn(h);Ln(e)}})};
Mn=function(){this.u=this.B=this.C=this.i=0};
Nn=function(a){this.u=a=void 0===a?ada:a;this.i=g.lm(this.u,function(){return new Mn})};
Pn=function(a,b){return On(a,function(c){return c.i},void 0===b?!0:b)};
Rn=function(a,b){return Qn(a,b,function(c){return c.i})};
Sn=function(a,b){return On(a,function(c){return c.B},void 0===b?!0:b)};
Tn=function(a,b){return Qn(a,b,function(c){return c.B})};
Un=function(a,b){return Qn(a,b,function(c){return c.u})};
Vn=function(a){g.Ob(a.i,function(b){b.u=0})};
On=function(a,b,c){a=g.lm(a.i,function(d){return b(d)});
return c?a:bda(a)};
Qn=function(a,b,c){var d=g.sb(a.u,function(e){return b<=e});
return-1==d?0:c(a.i[d])};
bda=function(a){return g.lm(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Wn=function(){this.u=new Nn;this.La=new Mn;this.ma=this.K=-1;this.Ya=1E3;this.Za=new Nn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Da=this.ya=-1};
Xn=function(a,b){return Sn(a.u,void 0===b?!0:b)};
Zn=function(a,b){b=Yn(b);return 0===b?0:Yn(a)/b};
Yn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
cda=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.Eg(a)||a){var d=hg(a),e=d&&vg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
kfa=function(a,b,c){if(!a||!b)return!1;b=Bl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=cm();wl(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Tca(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=hg(c))&&b.defaultView&&b.defaultView.frameElement)&&cda(b,a);d=a===c;a=!d&&a&&Jg(a,function(e){return e===c});
return!(b||d||a)};
lfa=function(a,b,c,d){return sn().B?!1:0>=Al(a)||0>=a.getHeight()?!0:c&&d?Vm(208,function(){return kfa(a,b,c)}):!1};
$n=function(a,b,c){g.I.call(this);this.position=mfa.clone();this.Lz=this.Yy();this.yE=-2;this.oX=Date.now();this.bO=-1;this.lastUpdateTime=b;this.Bz=null;this.Ay=!1;this.Wz=null;this.opacity=-1;this.requestSource=c;this.oO=this.CE=g.Ha;this.Sg=new pca;this.Sg.Nn=a;this.Sg.i=a;this.ys=!1;this.pp={ME:null,KE:null};this.IN=!0;this.kx=null;this.ls=this.AS=!1;Dm().J++;this.vf=this.HD();this.WN=-1;this.Jd=null;this.xS=!1;a=this.featureSet=new gl;hl(a,"od",ufa);hl(a,"opac",Bm).i=!0;hl(a,"sbeos",Bm).i=!0;
hl(a,"prf",Bm).i=!0;hl(a,"mwt",Bm).i=!0;hl(a,"iogeo",Bm);(a=this.Sg.Nn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(vfa&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+fg()):a.getAttribute("data-"+fg()))&&(sn().u=!0);1==this.requestSource?il(this.featureSet,"od",1):il(this.featureSet,"od",0)};
ao=function(a,b){b!=a.ls&&(a.ls=b,a=sn(),b?a.J++:0<a.J&&a.J--)};
bo=function(a,b){if(a.Jd){if(b.getName()===a.Jd.getName())return;a.Jd.dispose();a.Jd=null}b=b.create(a.Sg.i,a.featureSet,a.Sk());if(b=null!=b&&b.JB()?b:null)a.Jd=b};
co=function(a,b,c){if(!a.Bz||-1==a.lastUpdateTime||-1===b.u||-1===a.Bz.u)return 0;a=b.u-a.Bz.u;return a>c?0:a};
wfa=function(a,b,c){if(a.Jd){a.Jd.Qm();var d=a.Jd.K,e=d.C,f=e.i;if(null!=d.J){var h=d.B;a.Wz=new g.Uf(h.left-f.left,h.top-f.top)}f=a.SA()?Math.max(d.i,d.D):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.kK(d);a.Bz=d;a.Pa(f,b,c,!1,h,e,d.K)}};
xfa=function(a){if(a.Ay&&a.kx){var b=1==jl(a.featureSet,"od"),c=sn().i,d=a.kx,e=a.Jd?a.Jd.getName():"ns",f=new g.Wf(Al(c),c.getHeight());c=a.SA();a={cX:e,Wz:a.Wz,KX:f,SA:c,Yc:a.vf.Yc,FX:b};if(b=d.u){b.Qm();e=b.K;f=e.C.i;var h=null,l=null;null!=e.J&&f&&(h=e.B,h=new g.Uf(h.left-f.left,h.top-f.top),l=new g.Wf(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.D):e.i;c={cX:b.getName(),Wz:h,KX:l,SA:c,FX:!1,Yc:e}}else c=null;c&&$ca(d,a,c)}};
yfa=function(a,b,c){b&&(a.CE=b);c&&(a.oO=c)};
g.eo=function(){};
zfa=function(){this.C=this.i=this.B=this.u=this.D=0};
Afa=function(a){var b={};var c=g.Qa()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b};
fo=function(){bl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
go=function(a){return nn(a.volume)&&0<a.volume};
Bfa=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.i={};for(var b in this.u)0<this.u[b][1]&&(this.i[b]=0);this.B=0};
ho=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.i[b]&&(a.i[b]=1)};
Cfa=function(a){var b=g.cc(a.u),c=0,d;for(d in a.i)g.ub(b,d)&&1==a.i[d]&&(c+=a.u[d][1],a.i[d]=2);return c};
Dfa=function(a){var b=0,c;for(c in a.i){var d=a.i[c];if(1==d||2==d)b+=a.u[c][1]}return b};
io=function(){this.i=this.u=0};
jo=function(){Wn.call(this);this.B=new Mn;this.Ja=this.Z=this.Aa=0;this.S=-1;this.eb=new Mn;this.D=new Mn;this.i=new Nn;this.J=this.C=-1;this.Y=new Mn;this.Ya=2E3;this.Ka=new io;this.Ua=new io;this.Sa=new io};
ko=function(a,b,c){var d=a.Ja;$m||c||-1==a.S||(d+=b-a.S);return d};
Efa=function(){this.i=!1};
lo=function(a,b){this.i=!1;this.u=a;this.S=b;this.B=0};
no=function(a,b){return a.C(b)?(b=mo(a.S,a.u,b),a.B|=b,0==b):!1};
oo=function(a,b,c,d){Bn.call(this,a,b,c,d)};
po=function(a,b,c){Bn.call(this,null,a,b,c);this.J=a.isActive();this.D=0};
qo=function(a){return[a.top,a.left,a.bottom,a.right]};
ro=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;$n.call(this,b,c,d);this.fD=0;this.zf={};this.hf=new Bfa;this.AO={};this.Ef="";this.Ua=null;this.kb=!1;this.i=[];this.cq=e;this.J=f;this.C=null;this.B=-1;this.Ja=this.Z=void 0;this.ma=this.Y=0;this.Da=-1;this.Za=this.Ya=!1;this.Aa=this.K=this.u=this.Dt=this.eb=0;new Nn;this.Ka=this.La=0;this.Sa=-1;this.xg=0;this.S=g.Ha;this.ya=[this.Yy()];this.jb=2;this.Iq={};this.Iq.pause="p";this.Iq.resume="r";this.Iq.skip="s";this.Iq.mute="m";this.Iq.unmute=
"um";this.Iq.exitfullscreen="ef";this.D=null};
so=function(a){0!=a.xg&&(a.xg=3)};
to=function(a){return void 0===a?a:Number(a)?kn(a,3):0};
uo=function(a,b){return a.ya[null!=b&&b<a.ya.length?b:a.ya.length-1]};
vo=function(a){var b=!!jl(Dm().featureSet,"umt");return a.Z||!b&&!a.Ja?0:1};
Ffa=function(a,b){a.Xl()?b=0:-1==a.lastUpdateTime?b=0:(b-=a.lastUpdateTime,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.S(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.ma+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.La+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Sa&&0<d&&(a.Sa=0<=bn?Ym()-bn:-1);a.Y=c;return e};
Gfa=function(a,b){on(a.J,function(c){return c.u==b.u})||a.J.push(b)};
wo=function(a,b,c){return 15E3<=b?!0:a.Ya?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Da?b>=a.Da:!1:!1};
Hfa=function(a){var b=kn(a.vf.Yc,2),c=a.hf.B,d=a.vf,e=uo(a),f=to(e.C),h=to(e.J),l=to(d.volume),m=kn(e.K,2),n=kn(e.ma,2),p=kn(d.Yc,2),q=kn(e.ya,2),t=kn(e.Da,2);d=kn(d.oh,2);a=a.zn().clone();a.round();e=Xn(e,!1);return{JX:b,Wv:c,Mz:f,Iz:h,Ju:l,Nz:m,Jz:n,Yc:p,Oz:q,Kz:t,oh:d,position:a,Uz:e}};
yo=function(a,b){xo(a.i,b,function(){return{JX:0,Wv:void 0,Mz:-1,Iz:-1,Ju:-1,Nz:-1,Jz:-1,Yc:-1,Oz:-1,Kz:-1,oh:-1,position:void 0,Uz:[]}});
a.i[b]=Hfa(a)};
xo=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Bo=function(a,b,c){var d=a.AO[b];if(null!=d)return d;d=Ifa(a,b);var e=fc(zo,function(f){return f==b});
a=Ao(a,d,d,c,Jfa[zo[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Co=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Ao=function(a,b,c,d,e){if(a.ys)return{"if":0};var f=a.zn().clone();f.round();var h=sn(),l=Dm(),m=a.Xg(),n=a.Jd?a.Jd.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.oX;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Pn(m.u,!1);p.mtos=Xn(m);p.mcvt=m.La.B;p.ps=void 0;f=ko(m,Ym(),a.Xl());p.vht=f;p.mut=m.eb.B;p.a=to(a.vf.volume);p.mv=to(m.J);p.fs=a.ls?1:0;p.ft=m.Y.i;p.at=m.D.i;p.as=0<m.C?1:0;p.atos=Pn(m.i);p.ssb=Pn(m.Za,!1);p.amtos=Sn(m.i,!1);p.uac=a.eb;p.vpt=m.B.i;"nio"==n&&(p.nio=1,p.avms=
"nio");p.gmm="4";p.gdr=wo(a,m.B.i,!0)?1:0;p.efpf=a.jb;if("gsv"==n||"nis"==n)n=a.Jd,0<n.D&&(p.nnut=n.D);p.tcm=vo(a);p.nmt=a.La;p.bt=a.Ka;p.pst=a.Sa;p.vpaid=a.Z;p.dur=a.B;p.vmtime=a.Y;p.is=a.hf.B;1<=a.i.length&&(p.i0=a.i[0].Wv,p.a0=[a.i[0].Ju],p.c0=[a.i[0].Yc],p.ss0=[a.i[0].oh],n=a.i[0].position,p.p0=n?qo(n):void 0);2<=a.i.length&&(p.i1=a.i[1].Wv,p.a1=Co(a.i[1].Mz,a.i[1].Ju,a.i[1].Iz),p.c1=Co(a.i[1].Nz,a.i[1].Yc,a.i[1].Jz),p.ss1=Co(a.i[1].Oz,a.i[1].oh,a.i[1].Kz),n=a.i[1].position,p.p1=n?qo(n):void 0,
p.mtos1=a.i[1].Uz);3<=a.i.length&&(p.i2=a.i[2].Wv,p.a2=Co(a.i[2].Mz,a.i[2].Ju,a.i[2].Iz),p.c2=Co(a.i[2].Nz,a.i[2].Yc,a.i[2].Jz),p.ss2=Co(a.i[2].Oz,a.i[2].oh,a.i[2].Kz),n=a.i[2].position,p.p2=n?qo(n):void 0,p.mtos2=a.i[2].Uz);4<=a.i.length&&(p.i3=a.i[3].Wv,p.a3=Co(a.i[3].Mz,a.i[3].Ju,a.i[3].Iz),p.c3=Co(a.i[3].Nz,a.i[3].Yc,a.i[3].Jz),p.ss3=Co(a.i[3].Oz,a.i[3].oh,a.i[3].Kz),n=a.i[3].position,p.p3=n?qo(n):void 0,p.mtos3=a.i[3].Uz);p.cs=Dfa(a.hf);b&&(p.ic=Cfa(a.hf),p.dvpt=m.B.u,p.dvs=Un(m.u,.5),p.dfvs=
Un(m.u,1),p.davs=Un(m.i,.5),p.dafvs=Un(m.i,1),c&&(m.B.u=0,Vn(m.u),Vn(m.i)),a.Tp()&&(p.dtos=m.Aa,p.dav=m.Z,p.dtoss=a.fD+1,c&&(m.Aa=0,m.Z=0,a.fD++)),p.dat=m.D.u,p.dft=m.Y.u,c&&(m.D.u=0,m.Y.u=0));p.ps=[h.D.width,h.D.height];p.bs=[Al(h.i),h.i.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.Dt&&(p.vds=a.Dt);if(0<a.J.length||a.cq)b=g.Db(a.J),a.cq&&b.push(a.cq),p.pings=g.lm(b,function(q){return q.toString()});
b=g.lm(g.Do(a.J,function(q){return q.D()}),function(q){return q.getId()});
maa(b);p.ces=b;a.u&&(p.vmer=a.u);a.K&&(p.vmmk=a.K);a.Aa&&(p.vmiec=a.Aa);p.avms=a.Jd?a.Jd.getName():"ns";a.Jd&&g.pc(p,a.Jd.yn());d?(p.c=kn(a.vf.Yc,2),p.ss=kn(a.vf.oh,2)):p.tth=Ym()-Eo;p.mc=kn(m.ma,2);p.nc=kn(m.K,2);p.mv=to(m.J);p.nv=to(m.C);p.lte=kn(a.yE,2);d=uo(a,e);Xn(m);p.qmtos=Xn(d);p.qnc=kn(d.K,2);p.qmv=to(d.J);p.qnv=to(d.C);p.qas=0<d.C?1:0;p.qi=a.Ef;p.avms||(p.avms="geo");p.psm=m.Ka.i;p.psv=m.Ka.getValue();p.psfv=m.Ua.getValue();p.psa=m.Sa.getValue();l=oca(l.featureSet);l.length&&(p.veid=l);
a.D&&g.pc(p,Afa(a.D));return p};
Ifa=function(a,b){if(g.ub(Kfa,b))return!0;var c=a.zf[b];return void 0!==c?(a.zf[b]=!0,!c):!1};
Mfa=function(){this.i={};var a=vg();Fo(this,a,document);var b=Lfa();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Fo(this,c,c.document);Fo(this,a.top,a.top.document)}}catch(d){}};
Lfa=function(){var a=document.documentElement;try{if(!wl(vg().top))return"2";var b=[],c=vg(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"}};
Fo=function(a,b,c){gn(c,"mousedown",function(){return Nfa(a)},301);
gn(b,"scroll",function(){return Ofa(a)},302);
gn(c,"touchmove",function(){return Pfa(a)},303);
gn(c,"mousemove",function(){return Qfa(a)},304);
gn(c,"keydown",function(){return Rfa(a)},305)};
Nfa=function(a){g.Tb(a.i,function(b){1E5<b.B||++b.B})};
Ofa=function(a){g.Tb(a.i,function(b){1E5<b.i||++b.i})};
Pfa=function(a){g.Tb(a.i,function(b){1E5<b.i||++b.i})};
Rfa=function(a){g.Tb(a.i,function(b){1E5<b.u||++b.u})};
Qfa=function(a){g.Tb(a.i,function(b){1E5<b.C||++b.C})};
Go=function(){this.i=[];this.u=[]};
Ho=function(a,b){return g.rb(a.i,function(c){return c.Ef==b})};
Io=function(a,b){return b?g.rb(a.i,function(c){return c.Sg.Nn==b}):null};
Sfa=function(a,b){return g.rb(a.u,function(c){return 2==c.Ak()&&c.Ef==b})};
Ko=function(){var a=Jo;return 0==a.i.length?a.u:0==a.u.length?a.i:g.Cb(a.u,a.i)};
Lo=function(a,b){a=1==b.Ak()?a.i:a.u;var c=qb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Jd&&b.Jd.Pt(),b.dispose(),!0):!1};
Tfa=function(a){var b=Jo;if(Lo(b,a)){switch(a.Ak()){case 0:var c=function(){return null};
case 2:c=function(){return Sfa(b,a.Ef)};
break;case 1:c=function(){return Ho(b,a.Ef)}}for(var d=c();d;d=c())Lo(b,d)}};
Ufa=function(a,b){var c=Jo;a=g.Do(a,(void 0===b?0:b)?function(d){return!Ho(c,d.Ef)}:function(d){return!Io(c,d.Sg.Nn)});
c.i.push.apply(c.i,g.v(a))};
Mo=function(a){var b=Jo,c=[];g.Ob(a,function(d){on(b.i,function(e){return e.Sg.Nn===d.Sg.Nn&&e.Ef===d.Ef})||(b.i.push(d),c.push(d))})};
No=function(){this.i=this.u=null};
Oo=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.i=g.rb(a.u,function(d){return null!=d&&d.rH()});
a.i&&(a.i.init(c)?xn(a.i.i):b(a.i.i.Rr(),a.i));return null!=a.i};
Po=function(a){a=Vfa(a);Cn.call(this,a.length?a[a.length-1]:new vn(ol,0));this.B=a;this.u=null};
Vfa=function(a){if(!a.length)return[];a=(0,g.Do)(a,function(c){return null!=c&&c.Ot()});
for(var b=1;b<a.length;b++)wn(a[b-1],a[b]);return a};
Qo=function(a,b,c,d){Bn.call(this,a,b,c,d);this.Z=this.S=this.D=this.J=this.B=null};
Ro=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
Xfa=function(a){if(!a.element)return!1;var b=a.element,c=a.u.i.fg,d=Dm().i.i;a.B=new c.IntersectionObserver(Am(d,function(e){return So(a,e)}),Wfa);
d=Am(d,function(){a.B.unobserve(b);a.B.observe(b);So(a,Ro(a))});
c.ResizeObserver?(a.J=new c.ResizeObserver(d),a.J.observe(b)):c.MutationObserver&&(a.D=new g.C.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);So(a,Ro(a));return!0};
So=function(a,b){try{if(b.length){a.S||(a.S=Ym());var c=Yfa(b),d=Ul(a.element,a.u.i.fg),e=d.x,f=d.y;a.i=new zl(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=ln(c.intersectionRect);a.C=Bl(h,a.i.left-h.left,a.i.top-h.top)}}catch(l){a.Pt(),Xm(299,l)}};
Yfa=function(a){return nm(a,function(b,c){return b.time>c.time?b:c},a[0])};
To=function(a){a=void 0===a?ol:a;Cn.call(this,new vn(a,2))};
Vo=function(){var a=Uo();vn.call(this,ol.top,a,"geo")};
Uo=function(){Dm();var a=sn();return a.B||a.u?0:2};
Wo=function(){};
Xo=function(){this.done=!1;this.i={LQ:0,LI:0,Paa:0,LJ:0,fE:-1,iR:0,hR:0,jR:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new un(this)};
hp=function(){var a=gp;a.J||(a.J=!0,Zfa(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.C.apply(a,g.v(c))}),a.C())};
$fa=function(){om(Wo);var a=om(No);null!=a.i&&a.i.i?xn(a.i.i):sn().update(ol)};
ip=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{$fa();var d=Ym(),e=Dm();e.D=d;if(null!=om(No).i)for(e=0;e<b.length;e++)wfa(b[e],d,c);else Em(Nm,"",{strategy_not_selected:1,bin:e.u},!0,void 0);for(d=0;d<b.length;d++)xfa(b[d]);++a.i.LJ;aga()}finally{c?g.Ob(b,function(f){f.vf.Yc=0}):a.u.schedule()}}};
Zfa=function(a,b){if(!a.D){b=Tm(142,b,void 0);qm();var c;bm.visibilityState?c="visibilitychange":bm.mozVisibilityState?c="mozvisibilitychange":bm.webkitVisibilityState&&(c="webkitvisibilitychange");c&&ql(bm,c,b,{capture:!1})&&(a.D=b)}};
jp=function(){var a=om(No);if(null!=a.i){var b=a.i;g.Ob(Ko(),function(c){return bo(c,b)})}};
aga=function(){var a=Dm();jl(a.featureSet,"llp")};
kp=function(a,b){a=a.K;$m&&(a+=b-an);return a};
cga=function(a){var b=gp;a=void 0===a?function(){return{}}:a;
Sm.PJ="av-js";Nm.i=.01;Pca([function(c){var d=Dm(),e={};e=(e.bin=d.u,e.type="error",e);d=kl(d.featureSet);if(!b.B){var f=ol.document,h=0<=Zm?Ym()-Zm:-1,l=Ym();-1==b.i.fE&&(h=l);var m=sn(),n=Dm(),p=kl(n.featureSet),q=Ko();try{if(0<q.length){var t=m.i;t&&(p.bs=[Al(t),t.getHeight()]);var u=m.D;u&&(p.ps=[u.width,u.height]);ol.screen&&(p.scs=[ol.screen.width,ol.screen.height])}else p.url=encodeURIComponent(ol.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Zm;p.bin=n.u;void 0!==ol.google_osd_load_pub_page_exp&&(p.olpp=ol.google_osd_load_pub_page_exp);p.deb=[1,b.i.LQ,b.i.LI,b.i.LJ,b.i.fE,0,b.u.u,b.i.iR,b.i.hR,b.i.jR].join("-");p.tvt=kp(b,l);m.u&&(p.inapp=1);if(null!==ol&&ol!=ol.top){0<q.length&&(p.iframe_loc=encodeURIComponent(ol.location.href.substring(0,512)));var x=m.K;p.is=[Al(x),x.getHeight()]}}catch(y){p.error=1}b.B=p}t=g.mc(b.B);u=Dm().i;if(1==jl(u.B,"prf")){x=new zm;f=u.i;h=0;-1<f.i&&(h=f.B.i.now()-f.i);x=Nd(x,1,f.C+h,0);f=
u.i;x=Nd(x,5,-1<f.i?f.u+1:f.u,0);x=Nd(x,2,u.u.i.B(),0);x=Nd(x,3,u.u.i.u(),0);x=Nd(x,4,u.u.i.i(),0);u={};f=new hd;l=Id(x,1);if(null!=l){fd(f.i,9);h=f.i;n=l;n=(l=0>n?1:0)?-n:n;if(0===n)md=0<1/n?0:2147483648,ld=0;else if(isNaN(n))md=2147483647,ld=4294967295;else if(1.7976931348623157E308<n)md=(l<<31|2146435072)>>>0,ld=0;else if(2.2250738585072014E-308>n)m=n/Math.pow(2,-1074),md=(l<<31|m/4294967296)>>>0,ld=m>>>0;else{p=n;m=0;if(2<=p)for(;2<=p&&1023>m;)m++,p/=2;else for(;1>p&&-1022<m;)p*=2,m--;n*=Math.pow(2,
-m);md=(l<<31|m+1023<<20|1048576*n&1048575)>>>0;ld=4503599627370496*n>>>0}gd(h,ld);gd(h,md)}od(f,2,Id(x,2));od(f,3,Id(x,3));od(f,4,Id(x,4));l=Id(x,5);if(null!=l&&null!=l)if(fd(f.i,40),h=f.i,0<=l)fd(h,l);else{for(m=0;9>m;m++)h.push(l&127|128),l>>=7;h.push(1)}$d(x,f);x=kd(f);u=(u.pf=g.Hc(x),u)}else u={};g.pc(t,u);g.pc(c,e,d,t,a());if(e=Kn())d={},g.pc(c,(d.v=encodeURIComponent(e),d))}])};
dga=function(){var a=lp||ol;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("&")};
mp=function(a){return function(b){return void 0===b[a]?0:b[a]}};
op=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return void 0!==a?np(c,a):c}}};
pp=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 np(f,b,c)}};
qp=function(a,b){return function(c){return b(c)?c[a]:void 0}};
rp=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}};
np=function(a,b,c){return void 0===c||c?g.Do(a,function(d,e){return g.ub(b,e)}):g.lm(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
sp=function(){var a="youtube.player.web_20210928_1_RC1".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20210928_1_RC1".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20210928_1_RC1".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20210928_1_RC1".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20210928_1_RC1".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:"903"};
tp=function(){return"av.default_js".includes("ima_html5_sdk")?{pk:"ima",version:"903"}:"av.default_js".includes("ima_native_sdk")?{pk:"nima",version:"903"}:"av.default_js".includes("admob-native-video-javascript")?{pk:"an",version:"903"}:"youtube.player.web_20210928_1_RC1".includes("cast_js_sdk")?{pk:"cast",version:sp()}:"youtube.player.web_20210928_1_RC1".includes("youtube.player.web")?{pk:"yw",version:sp()}:"youtube.player.web_20210928_1_RC1".includes("outstream_web_client")?{pk:"out",version:sp()}:
"youtube.player.web_20210928_1_RC1".includes("drx_rewarded_web")?{pk:"r",version:sp()}:"youtube.player.web_20210928_1_RC1".includes("gam_native_web_video")?{pk:"n",version:sp()}:"youtube.player.web_20210928_1_RC1".includes("admob_interstitial_video")?{pk:"int",version:sp()}:{pk:"j",version:"903"}};
yp=function(a,b){var c={sv:up,cb:vp};c.nas=Jo.i.length;c.msg=a;void 0!==b&&(a=wp(b))&&(c.e=xp[a]);return c};
zp=function(a){return Za(a,"custom_metric_viewable")};
wp=function(a){var b=zp(a)?"custom_metric_viewable":a.toLowerCase();return fc(zo,function(c){return c==b})};
ega=function(){this.i=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
gga=function(a){try{var b=a.split(",");return b.length>g.cc(fga).length?null:nm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Ap[d[0]]||!Ap[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
hga=function(a,b){if(void 0==a.i)return 0;switch(a.D){case "mtos":return a.u?Tn(b.i,a.i):Tn(b.u,a.i);case "tos":return a.u?Rn(b.i,a.i):Rn(b.u,a.i)}return 0};
Bp=function(a,b,c,d){lo.call(this,b,d);this.J=a;this.K=c};
Cp=function(a){lo.call(this,"fully_viewable_audible_half_duration_impression",a)};
Dp=function(a,b){lo.call(this,a,b)};
Ep=function(){this.u=this.C=this.J=this.D=this.B=this.i=""};
iga=function(){};
Fp=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.pc(f,a);void 0!==c&&g.pc(f,c);a=Hn(Gn(new Fn,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Gp=function(){};
Hp=function(a,b,c){po.call(this,a,b,c)};
Ip=function(a){a=void 0===a?ol:a;Cn.call(this,new vn(a,2))};
Jp=function(a,b,c){po.call(this,a,b,c)};
Kp=function(a){a=void 0===a?ol:a;Cn.call(this,new vn(a,2))};
Lp=function(){vn.call(this,ol,2,"mraid");this.Da=0;this.Y=this.ma=!1;this.J=null;this.u=fn(this.fg);this.B.i=new zl(0,0,0,0);this.Ka=!1};
Mp=function(a,b,c){a.xo("addEventListener",b,c)};
Pp=function(a){Dm().C=!!a.xo("isViewable");Mp(a,"viewableChange",jga);"loading"===a.xo("getState")?Mp(a,"ready",Np):Op(a)};
Op=function(a){"string"===typeof a.u.tj.AFMA_LIDAR?(a.ma=!0,kga(a)):(a.u.compatibility=3,a.J="nc",a.Ch("w"))};
kga=function(a){a.Y=!1;var b=1==jl(Dm().featureSet,"rmmt"),c=!!a.xo("isViewable");(b?!c:1)&&qm().setTimeout(Wm(524,function(){a.Y||(Qp(a),Xm(540,Error()),a.J="mt",a.Ch("w"))}),500);
lga(a);Mp(a,a.u.tj.AFMA_LIDAR,Rp)};
lga=function(a){var b=1==jl(Dm().featureSet,"sneio"),c=void 0!==a.u.tj.AFMA_LIDAR_EXP_1,d=void 0!==a.u.tj.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.tj.AFMA_LIDAR_EXP_2=!0);c&&(a.u.tj.AFMA_LIDAR_EXP_1=!b)};
Qp=function(a){a.xo("removeEventListener",a.u.tj.AFMA_LIDAR,Rp);a.ma=!1};
Sp=function(a,b){if("loading"===a.xo("getState"))return new g.Wf(-1,-1);b=a.xo(b);if(!b)return new g.Wf(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Wf(-1,-1):new g.Wf(a,b)};
Np=function(){try{var a=om(Lp);a.xo("removeEventListener","ready",Np);Op(a)}catch(b){Xm(541,b)}};
Rp=function(a,b){try{var c=om(Lp);c.Y=!0;var d=a?new zl(a.y,a.x+a.width,a.y+a.height,a.x):new zl(0,0,0,0);var e=Ym(),f=tn();var h=new cn(e,f,c);h.i=d;h.volume=b;c.Fn(h)}catch(l){Xm(542,l)}};
jga=function(a){var b=Dm(),c=om(Lp);a&&!b.C&&(b.C=!0,c.Ka=!0,c.J&&c.Ch("w",!0))};
Tp=function(){this.Yd=!1;this.i=null;this.C=new Gp;this.u=null;var a={};this.K=(a.start=this.nS,a.firstquartile=this.iS,a.midpoint=this.kS,a.thirdquartile=this.oS,a.complete=this.gS,a.pause=this.sF,a.resume=this.vN,a.skip=this.mS,a.viewable_impression=this.Bn,a.mute=this.xt,a.unmute=this.xt,a.fullscreen=this.jS,a.exitfullscreen=this.hS,a.fully_viewable_audible_half_duration_impression=this.Bn,a.measurable_impression=this.Bn,a.abandon=this.sF,a.engagedview=this.Bn,a.impression=this.Bn,a.creativeview=
this.Bn,a.progress=this.xt,a.custom_metric_viewable=this.Bn,a.bufferstart=this.sF,a.bufferfinish=this.vN,a);a={};this.S=(a.overlay_resize=this.lS,a.abandon=this.WD,a.close=this.WD,a.collapse=this.WD,a.overlay_unmeasurable_impression=function(b){return Bo(b,"overlay_unmeasurable_impression",tn())},a.overlay_viewable_immediate_impression=function(b){return Bo(b,"overlay_viewable_immediate_impression",tn())},a.overlay_unviewable_impression=function(b){return Bo(b,"overlay_unviewable_impression",tn())},
a.overlay_viewable_end_of_session_impression=function(b){return Bo(b,"overlay_viewable_end_of_session_impression",tn())},a);
Dm().u=3;mga(this);this.B=!1};
Up=function(a,b,c,d){b=a.Sw(null,d,!0,b);b.C=c;Ufa([b],a.B);return b};
nga=function(a,b,c){mca(b);var d=a.u;g.Ob(b,function(e){var f=g.lm(e.u,function(h){var l=gga(h);if(null==l)h=null;else if(h=new ega,null!=l.visible&&(h.i=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=$a(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.B=l,h.C=-1):(h.B=-1,h.C=l);h.D=void 0===m?"tos":m}return h});
on(f,function(h){return null==h})||Gfa(c,new Bp(e.id,e.event,f,d))})};
oga=function(a){a=a.u;return[new Dp("viewable_impression",a),new Cp(a)]};
pga=function(){var a=[],b=Dm();a.push(om(Vo));jl(b.featureSet,"mvp_lv")&&a.push(om(Lp));b=[new Ip,new Kp];b.push(new Po(a));b.push(new To(ol));return b};
qga=function(a){if(!a.Yd){a.Yd=!0;try{var b=Ym(),c=Dm(),d=sn();Zm=b;c.B=79463069;"o"!==a.i&&(lp=en(ol).fg);if(Gca()){gp.i.LI=0;gp.i.fE=Ym()-b;var e=pga(),f=om(No);f.u=e;Oo(f,function(){Vp()})?gp.done||(jp(),wn(f.i.i,a),hp()):d.B?Vp():hp()}else Wp=!0}catch(h){throw Jo.reset(),h;
}}};
Yp=function(a){gp.u.cancel();Xp=a;gp.done=!0};
Zp=function(a){if(a.i)return a.i;var b=om(No).i;if(b)switch(b.getName()){case "nis":a.i="n";break;case "gsv":a.i="m"}a.i||(a.i="h");return a.i};
$p=function(a,b,c){if(null==a.u)return b.Dt|=4,!1;a=mo(a.u,c,b);b.Dt|=a;return 0==a};
Vp=function(){var a=[new To(ol)],b=om(No);b.u=a;Oo(b,function(){Yp("i")})?gp.done||(jp(),hp()):Yp("i")};
aq=function(a,b,c){if(!b.kb){var d=Bo(b,"start",tn());a=a.C.i(d).i;var e={id:"lidarv"};e.r=c;e.v=up+"v";hi(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=dga();hi(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Hn(Gn(new Fn,e));Ln(c);b.kb=!0}};
bq=function(a,b,c){ip(gp,[a],!tn());yo(a,c);4!=c&&xo(a.ya,c,a.Yy);return Bo(a,b,tn())};
mga=function(a){cga(function(){var b=cq();null!=a.i&&(b.sdk=a.i);var c=om(No);null!=c.i&&(b.avms=c.i.getName());return b})};
rga=function(a,b,c,d){if(a.B)var e=Ho(Jo,b);else e=Io(Jo,c),null!==e&&e.Ef!==b&&(a.Zu(e),e=null);e||(b=a.Sw(c,Ym(),!1,b),0==Jo.u.length&&(Dm().B=79463069),Mo([b]),e=b,e.C=Zp(a),d&&(e.Ua=d));return e};
sga=function(a){g.Ob(Jo.i,function(b){3==b.xg&&a.Zu(b)})};
dq=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
cq=function(){var a=sn(),b={};return b.sv=up,b["if"]=a.B?"1":"0",b.nas=String(Jo.i.length),b};
eq=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
gq=function(a){return!!(1<<a&fq)};
xga=function(){try{tga()}catch(d){}var a="a=1&b="+fq+"&",b=[],c=99;g.Ob(uga,function(d,e){var f=!1;try{f=d(ol)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Ob(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Ob(vga,function(d){var e="false";try{e=d(ol)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Ob(wga,function(d){var e="";try{e=g.Hc(g.Wa(d(ol)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
tga=function(){if(!hq){var a=function(){iq=!0;ol.document.removeEventListener("webdriver-evaluate",a,!0)};
ol.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){jq=!0;ol.document.removeEventListener("webdriver-evaluate-response",b,!0)};
ol.document.addEventListener("webdriver-evaluate-response",b,!0);hq=!0}};
yga=function(){this.blockSize=-1};
kq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.C=Array(this.blockSize);this.B=this.u=0;this.reset()};
lq=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.i[0];c=a.i[1];e=a.i[2];var f=a.i[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15);
h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295|
h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<<
5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=
e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295;
e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295|
h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+
3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571&
4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649&
4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295};
mq=function(){this.u=null};
nq=function(a){return function(b){var c=new kq;c.update(b+a);return iaa(c.digest()).slice(-8)}};
oq=function(a,b){this.i=a;this.B=b};
mo=function(a,b,c){var d=a.u();if("function"===typeof d){var e={};e=(e.sv=up,e.cb=vp,e.e=zga(b),e);var f=Bo(c,b,tn());g.pc(e,f);c.AO[b]=f;a=2==c.Ak()?Yca(e).join("&"):a.B.i(e).i;try{return d(c.Ef,a,b),0}catch(h){return 2}}else return 1};
zga=function(a){var b=zp(a)?"custom_metric_viewable":a;a=fc(zo,function(c){return c==b});
return xp[a]};
pq=function(){Tp.call(this);this.J=null;this.D=!1;this.C=new mq};
Aga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&nga(a,c,b)};
Bga=function(a,b,c){var d=Ho(Jo,b);d||(d=c.opt_nativeTime||-1,d=Up(a,b,Zp(a),d),c.opt_osdId&&(d.Ua=c.opt_osdId));return d};
Cga=function(a,b,c){var d=Ho(Jo,b);d||(d=Up(a,b,"n",c.opt_nativeTime||-1));return d};
Dga=function(a,b){var c=Ho(Jo,b);c||(c=Up(a,b,"h",-1));return c};
Ega=function(a){Dm();switch(Zp(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};
rq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.pc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.i(yp("ol",d));if(void 0!==d)if(void 0!==wp(d))if(Wp)b=yp("ue",d);else if(qga(a),"i"==Xp)b=yp("i",d),b["if"]=0;else if(b=a.fz(b,e))if(a.B&&3==b.xg)b="stopped";else{b:{"i"==Xp&&(b.ys=!0,a.UF());c=e.opt_fullscreen;void 0!==c&&ao(b,!!c);var f;if(c=!sn().u)(c=jb(g.Qb,"CrKey")||jb(g.Qb,"PlayStation")||jb(g.Qb,"Roku")||Uca()||jb(g.Qb,"Xbox"))||(c=g.Qb,c=jb(c,"AppleTV")||jb(c,
"Apple TV")||jb(c,"CFNetwork")||jb(c,"tvOS")),c||(c=g.Qb,c=jb(c,"sdk_google_atv_x86")||jb(c,"Android TV")),c=!c;c&&(qm(),c=0===sl(bm));if(f=c){switch(b.Ak()){case 1:aq(a,b,"pv");break;case 2:a.HF(b)}Yp("pv")}c=d.toLowerCase();if(f=!f)f=jl(Dm().featureSet,"ssmol")&&"loaded"===c?!1:g.ub(Fga,c);if(f&&0==b.xg){"i"!=Xp&&(gp.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;bn=f="number"===typeof f?f:Ym();b.Ay=!0;var h=tn();b.xg=1;b.zf={};b.zf.start=!1;b.zf.firstquartile=!1;b.zf.midpoint=!1;b.zf.thirdquartile=
!1;b.zf.complete=!1;b.zf.resume=!1;b.zf.pause=!1;b.zf.skip=!1;b.zf.mute=!1;b.zf.unmute=!1;b.zf.viewable_impression=!1;b.zf.measurable_impression=!1;b.zf.fully_viewable_audible_half_duration_impression=!1;b.zf.fullscreen=!1;b.zf.exitfullscreen=!1;b.fD=0;h||(b.Xg().S=f);ip(gp,[b],!h)}(f=b.Iq[c])&&ho(b.hf,f);g.ub(Gga,c)&&!b.ys&&b.cq&&0!=b.xg&&(f=b.cq,f.i||(f.i=no(f,b)));switch(b.Ak()){case 1:var l=zp(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.S[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=yp(void 0,
c);g.pc(e,d);d=e;break b}d=void 0}3==b.xg&&(a.B?b.Jd&&b.Jd.Pt():a.Zu(b));b=d}else b=yp("nf",d);else b=void 0;else Wp?b=yp("ue"):(b=a.fz(b,e))?(d=yp(),g.pc(d,Ao(b,!0,!1,!1)),b=d):b=yp("nf");return"string"===typeof b?a.B&&"stopped"===b?qq:a.C.i(void 0):a.C.i(b)};
sq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.B,b.moatInit=a.D,b.moatViewability=a.J,b.integralAdsViewability=a.C,b.doubleVerifyViewability=a.u,b};
tq=function(a,b,c){c=void 0===c?{}:c;a=rq(om(pq),b,c,a);return sq(a)};
uq=function(a,b){b=void 0===b?!1:b;var c=om(pq).fz(a,{});c?so(c):b&&(a=om(pq).Sw(null,Ym(),!1,a),a.xg=3,Mo([a]))};
wq=function(a){if(g.ab(g.bg(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Kj(a)}catch(c){return null!=g.rb(vq,function(d){return 0<a.search(d)})}return b.D.match(Hga)?!0:null!=g.rb(vq,function(c){return null!=a.match(c)})};
g.xq=function(a,b){return a.replace(Iga,function(c,d){try{var e=kc(b,d);if(null==e)return c;e=e.toString();if(""==e||!g.ab(g.bg(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
yq=function(){this.data_=[];this.i=-1};
Jga=function(a){-1==a.i&&(a.i=nm(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.i};
g.zq=function(a,b,c){g.I.call(this);this.i=null;this.C=!1;this.J=a;this.D=c;this.u=b||window;this.B=(0,g.D)(this.WO,this)};
g.Aq=function(a){a.isActive()||a.start()};
Bq=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Cq=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.M=function(a,b,c){g.I.call(this);this.i=a;this.Tf=b||0;this.u=c;this.B=(0,g.D)(this.tH,this)};
g.Dq=function(a,b){a.isActive()||a.start(b)};
g.Eq=function(a){a.stop();a.tH()};
g.Fq=function(a){a.isActive()&&g.Eq(a)};
Gq=function(a,b){this.i=a[g.C.Symbol.iterator]();this.u=b;this.B=0};
Kga=function(a,b){return new Gq(a,b)};
Hq=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Iq=function(a){return a.classList?a.classList:Hq(a).match(/\S+/g)||[]};
g.Jq=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Kq=function(a,b){return a.classList?a.classList.contains(b):g.ub(Iq(a),b)};
g.N=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Kq(a,b)){var c=Hq(a);g.Jq(a,c+(0<c.length?" "+b:b))}};
g.Lq=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.N(a,e)});
else{var c={};Array.prototype.forEach.call(Iq(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.Jq(a,b)}};
g.Mq=function(a,b){a.classList?a.classList.remove(b):g.Kq(a,b)&&g.Jq(a,Array.prototype.filter.call(Iq(a),function(c){return c!=b}).join(" "))};
g.Nq=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Mq(a,c)}):g.Jq(a,Array.prototype.filter.call(Iq(a),function(c){return!g.ub(b,c)}).join(" "))};
g.O=function(a,b,c){c?g.N(a,b):g.Mq(a,b)};
Oq=function(a,b){var c=!g.Kq(a,b);g.O(a,b,c)};
Tq=function(a){if(a instanceof Pq||a instanceof Qq||a instanceof Rq)return a;if("function"==typeof a.uj)return new Pq(function(){return Sq(a)});
if("function"==typeof a[Symbol.iterator])return new Pq(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Lg)return new Pq(function(){return Sq(a.Lg())});
throw Error("Not an iterator or iterable.");};
Sq=function(a){if(!(a instanceof g.eo))return a;var b=!1;return{next:function(){for(var c;!b;)try{c=a.uj();break}catch(d){if(d!==g.Uq)throw d;b=!0}return{value:c,done:b}}}};
Pq=function(a){this.u=a};
Qq=function(a){this.u=a};
Rq=function(a){Pq.call(this,function(){return a});
this.B=a};
g.Vq=function(a,b){this.u={};this.i=[];this.Io=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.Vq)for(c=a.Ur(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Xq=function(a){if(a.size!=a.i.length){for(var b=0,c=0;b<a.i.length;){var d=a.i[b];Wq(a.u,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],Wq(e,d)||(a.i[c++]=d,e[d]=1),b++;a.i.length=c}};
Wq=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Yq=function(){g.Oe.call(this);this.i=0;this.endTime=this.startTime=null};
Lga=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.Jl(a,"transition",b.join(","))};
Zq=function(a,b,c,d,e){g.Yq.call(this);this.u=a;this.J=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
$q=function(a,b,c,d){return new Zq(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
br=function(a){ar();return Gf(a,null)};
g.cr=function(a){ar();return jf(a)};
Nga=function(a){a=kb(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 Mga))return null}return a};
dr=function(a,b){a=g.C[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
er=function(a){var b=g.C.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
fr=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Kc&&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)};
Sga=function(a){if(!a)return xf;var b=document.createElement("div").style;Oga(a).forEach(function(c){var d=g.ug&&c in Pga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Za(d,"--")||Za(d,"var")||(c=fr(Qga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Nga(c),null!=c&&fr(Rga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Xaa(g.cf("Output of CSS sanitizer"),b.cssText||"")};
Oga=function(a){g.La(a)?a=g.Db(a):(a=g.cc(a),g.zb(a,"cssText"));return a};
g.hr=function(a){var b,c=b=0,d=!1;a=a.split(Tga);for(var e=0;e<a.length;e++){var f=a[e];g.gr.test(f)?(b++,c++):Uga.test(f)?d=!0:Vga.test(f)?c++:Wga.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.ir=function(a,b,c,d,e,f,h,l){this.i=a;this.D=b;this.B=c;this.J=d;this.C=e;this.K=f;this.u=h;this.S=l};
g.jr=function(a,b){if(0==b)return a.i;if(1==b)return a.u;var c=g.Sf(a.i,a.B,b),d=g.Sf(a.B,a.C,b);a=g.Sf(a.C,a.u,b);c=g.Sf(c,d,b);d=g.Sf(d,a,b);return g.Sf(c,d,b)};
kr=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Xga=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};
lr=function(a){return(a=a.exec(g.Qb))?a[1]:""};
mr=function(a){return 0<=g.nb(Yga,a)};
g.nr=function(a){g.I.call(this);this.J=1;this.B=[];this.C=0;this.i=[];this.u={};this.K=!!a};
Zga=function(a,b,c){g.Ug(function(){a.apply(b,c)})};
g.or=function(a){this.i=a};
pr=function(a){this.i=a};
qr=function(a){this.data=a};
rr=function(a){return void 0===a||a instanceof qr?a:new qr(a)};
sr=function(a){this.i=a};
g.tr=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Qa()||!!b&&b>g.Qa()};
g.ur=function(a){this.i=a};
$ga=function(){};
vr=function(){};
wr=function(a){this.i=a};
xr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a};
yr=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a};
Ar=function(a,b){this.u=a;this.i=null;if(g.Kc&&!g.Ec(9)){zr||(zr=new g.Vq);this.i=zr.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)),zr.set(a,this.i));try{this.i.load(this.u)}catch(c){this.i=null}}};
Br=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return aha[b]})};
Cr=function(a){try{a.i.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Dr=function(a,b){this.u=a;this.i=b+"::"};
g.Er=function(a){var b=new xr;return b.isAvailable()?a?new Dr(b,a):b:null};
Fr=function(a,b){this.i=a;this.u=b};
Gr=function(a){this.i=[];if(a)a:{if(a instanceof Gr){var b=a.Ur();a=a.Ip();if(0>=this.i.length){for(var c=this.i,d=0;d<b.length;d++)c.push(new Fr(b[d],a[d]));break a}}else b=g.cc(a),a=bc(a);for(d=0;d<b.length;d++)Hr(this,b[d],a[d])}};
Hr=function(a,b,c){var d=a.i;d.push(new Fr(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};
Ir=function(){Gr.call(this)};
Jr=function(){};
bha=function(a,b){var c=[],d;b=b||Kr.length;if(a)for(d=0;d<a;d++)c[d]=Kr[0|Math.random()*b];else for(c[8]=c[13]=c[18]=c[23]="-",c[14]="4",d=0;36>d;d++)c[d]||(a=0|16*Math.random(),c[d]=Kr[19==d?a&3|8:a]);return c.join("")};
Lr=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return 0===b.length?function(d){return d}:1===b.length?b[0]:b.reduce(function(d,e){return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return d(e.apply(null,g.v(h)))}})};
cha=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return function(d){return function(e,f){function h(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
e=d(e,f);var l={getState:e.getState,dispatch:function(m,n){for(var p=[],q=1;q<arguments.length;++q)p[q-1]=arguments[q];return h.apply(null,[m].concat(g.v(p)))}};
f=b.map(function(m){return m(l)});
h=Lr.apply(null,g.v(f))(e.dispatch);return Object.assign(Object.assign({},e),{dispatch:h})}}};
Mr=function(){return Math.random().toString(36).substring(7).split("").join(".")};
dha=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Nr}))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"+Mr()}))throw Error('Reducer "'+
b+"\" returned undefined when probed with a random type. Don't try to handle "+(Nr+' 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.'));})};
Or=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(u){if("function"!==typeof u)throw Error("Expected the listener to be a function.");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(u);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(u),1);n=null}}}
function h(u){if("object"!==typeof u||null===u)var x=!1;else{for(x=u;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(u)===x}if(!x)throw Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof u.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,u)}finally{q=!1}x=n=p;for(var y=0;y<x.length;y++)(0,x[y])();
return u}
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(Or)(a,b)}if("function"!==typeof a)throw Error("Expected the reducer to be a function.");
var l=a,m=b,n=[],p=n,q=!1;h({type:Nr});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(u){if("function"!==typeof u)throw Error("Expected the nextReducer to be a function.");l=u;h({type:eha});return t},a[Pr]=function(){var u={};
return u.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)}},u[Pr]=function(){return this},u},a);
return t};
Qr=function(a){Hd.call(this,a,-1,fha)};
Rr=function(a){Hd.call(this,a)};
gha=function(a,b){for(;Zc(b);)switch(b.D){case 10:var c=dd(b);Jd(a,1,c);break;case 18:c=dd(b);Jd(a,2,c);break;case 26:c=dd(b);Jd(a,3,c);break;case 34:c=dd(b);Jd(a,4,c);break;case 40:c=Xc(b.i);Jd(a,5,c);break;default:if(!ae(a,b))return a}return a};
hha=function(a){var b=a.split(""),c=[null,1654872646,-1894042621,function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 58:f=96;continue;case 91:f=44;break;case 65:f=47;continue;case 46:f=153;case 123:f-=58;default:h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
null,-1762594026,b,b,"bvDB",-103815676,function(d,e){for(var f=64,h=[];++f-h.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
function(d){d.reverse()},
"AncxR",function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
-833885220,587013619,456635768,function(d,e){for(var f=64,h=[];++f-h.length-32;){switch(f){case 91:f=44;continue;case 123:f=65;break;case 65:f-=18;continue;case 58:f=96;continue;case 46:f=95}h.push(String.fromCharCode(f))}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
837905473,-1575393451,-681035904,-393916789,908896406,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
"-",-1354618862,736612333,-823823438,-1233707363,138827975,-1862388520,1423961851,776617412,163566485,138827975,"continue",function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
1490453965,-697287272,-843184457,"let",-1710772535,-125752837,-1390349959,456635768,b,null,-14221521,-1392049999,function(d,e){for(var f=64,h=[];++f-h.length-32;)switch(f){case 46:f=95;default:h.push(String.fromCharCode(f));case 94:case 95:case 96:break;case 123:f-=76;case 92:case 93:continue;case 58:f=44;case 91:}d.forEach(function(l,m,n){this.push(n[m]=h[(h.indexOf(l)-h.indexOf(this[m])+m-32+f--)%h.length])},e.split(""))},
1137653307,776617412];c[0]=c;c[4]=c;c[49]=c;try{c[26](c[4],c[20]),c[11](c[49]),c[36](c[48],c[14]),c[29](c[6],c[26]),c[29](c[48],c[23]),c[36](c[6],c[32]),c[30](c[6]),c[54](c[15],c[8]),c[27](c[6],c[40]),c[14](c[33],c[9]),c[13](c[0],c[44]),c[29](c[33],c[12]),c[21](c[35],c[18]),c[27](c[47],c[3]),c[22](c[50],c[31]),c[2](c[6],c[16]),c[29](c[9],c[21]),c[0](c[50]),c[0](c[4],c[36]),c[4](c[11]),c[5](c[12],c[44]),c[30](c[50],c[3]),c[8](c[53],c[17]),c[4](c[53]),c[30](c[9],c[29]),c[15](c[11],c[48]),c[23](c[9],
c[52]),c[46](c[39],c[7]),c[33](c[39],c[52]),c[51](c[27],c[1]),c[6](c[51],c[52]),c[14](c[48],c[31]),c[15](c[48],c[4]),c[7](c[51],c[3]),c[28](c[37]),c[43](c[37]),c[44](c[37],c[30]),c[44](c[48],c[45]),c[20](c[14],c[9]),c[35](c[4],c[44]),c[36](c[14],c[12]),c[35](c[26],c[6])}catch(d){return"enhanced_except_1JMBq-z-_w8_"+a}return b.join("")};
Sr=function(a){this.i=a};
Tr=function(){Sr.apply(this,arguments)};
Ur=function(){Tr.apply(this,arguments)};
Vr=function(){Tr.apply(this,arguments)};
Wr=function(){Tr.apply(this,arguments)};
Xr=function(){Sr.apply(this,arguments)};
Yr=function(){Tr.apply(this,arguments)};
Zr=function(){Tr.apply(this,arguments)};
$r=function(){Tr.apply(this,arguments)};
as=function(){Tr.apply(this,arguments)};
bs=function(){Tr.apply(this,arguments)};
cs=function(){Tr.apply(this,arguments)};
ds=function(){Tr.apply(this,arguments)};
es=function(){Tr.apply(this,arguments)};
fs=function(){Tr.apply(this,arguments)};
gs=function(){Tr.apply(this,arguments)};
hs=function(){Tr.apply(this,arguments)};
is=function(){Tr.apply(this,arguments)};
js=function(){Tr.apply(this,arguments)};
ks=function(){Tr.apply(this,arguments)};
ls=function(){Tr.apply(this,arguments)};
ms=function(){Tr.apply(this,arguments)};
ns=function(){Tr.apply(this,arguments)};
os=function(){return g.Ga("yt.ads.biscotti.lastId_")||""};
ps=function(a){g.Fa("yt.ads.biscotti.lastId_",a,void 0)};
rs=function(a){for(var b=0;b<arguments.length;++b);b=arguments;1<b.length?qs[b[0]]=b[1]:1===b.length&&Object.assign(qs,b[0])};
g.P=function(a,b){return a in qs?qs[a]:b};
ts=function(a){var b=qs.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.vs=function(a){a=us(a);return"string"===typeof a&&"false"===a?!1:!!a};
ws=function(a,b){a=us(a);return void 0===a&&void 0!==b?b:Number(a||0)};
us=function(a){var b=g.P("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.P("EXPERIMENT_FLAGS",{})[a]};
xs=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};
iha=function(a){ys.forEach(function(b){return b(a)})};
As=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.zs(b)}}:a};
g.zs=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"ERROR",b,c,d]),rs("ERRORS",e));iha(a)};
Bs=function(a,b,c,d){var e=g.Ga("yt.logging.errors.log");e?e(a,"WARNING",b,c,d):(e=g.P("ERRORS",[]),e.push([a,"WARNING",b,c,d]),rs("ERRORS",e))};
Ds=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Cs(f[0]||""),l=Cs(f[1]||"");h in c?Array.isArray(c[h])?Eb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(Ds);m.args=[{key:n,value:f[1],query:a,method:jha==p?"unchanged":p}];kha.hasOwnProperty(n)||Bs(m)}}return c};
Es=function(a){var b=[];g.Tb(a,function(c,d){var e=Zf(d),f;Array.isArray(c)?f=c:f=[c];g.Ob(f,function(h){""==h?b.push(e):b.push(e+"="+Zf(h))})});
return b.join("&")};
g.Fs=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Ds(a,"&")};
Gs=function(a){a=a.split(",");return a=a.map(function(b){return g.Fs(b)})};
g.Hs=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.Fs(1<a.length?a[1]:a[0])):{}};
Js=function(a,b){return Is(a,b||{},!0)};
Ks=function(a,b){return Is(a,b||{},!1)};
Is=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=g.Fs(e[1]||"");for(var f in b)if(c||!dc(e,f))e[f]=b[f];return g.pi(a,e)+d};
Ls=function(a){if(!b)var b=window.location.href;var c=g.di(1,a),d=g.ei(a);c&&d?(a=a.match(ci),b=b.match(ci),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.ei(b)==d&&(Number(g.di(4,b))||null)==(Number(g.di(4,a))||null):!0;return a};
Ms=function(a){a||(a=document.location.href);a=g.di(1,a);return null!==a&&"https"==a};
Ns=function(a){a=g.ei(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Cs=function(a){return a&&a.match(lha)?a:$f(a)};
lt=function(a){var b=Os;a=void 0===a?os():a;var c=Object,d=c.assign,e=Ps(b);var f=b.i;try{var h=f.screenX;var l=f.screenY}catch(A){}try{var m=f.outerWidth;var n=f.outerHeight}catch(A){}try{var p=f.innerWidth;var q=f.innerHeight}catch(A){}try{var t=f.screenLeft;var u=f.screenTop}catch(A){}try{p=f.innerWidth,q=f.innerHeight}catch(A){}try{var x=f.screen.availWidth;var y=f.screen.availTop}catch(A){}f=[t,u,h,l,x,y,m,n,p,q];h=hn(!1,b.i.top);l={};m=new yq;g.C.SVGElement&&g.C.document.createElementNS&&m.set(0);
n=xca();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=Jga(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=sl(b.u),l.wgl=!!ol.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Ps=function(a){var b={};b.dt=mha;b.flash="0";a:{try{var c=a.i.top.location.href}catch(f){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?ol:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;ol.screen&&(b.u_h=ol.screen.height,b.u_w=ol.screen.width,b.u_ah=ol.screen.availHeight,b.u_aw=ol.screen.availWidth,b.u_cd=ol.screen.colorDepth);b.u_java=!!ol.navigator&&"unknown"!==typeof ol.navigator.javaEnabled&&!!ol.navigator.javaEnabled&&
ol.navigator.javaEnabled();ol.navigator&&ol.navigator.plugins&&(b.u_nplug=ol.navigator.plugins.length);ol.navigator&&ol.navigator.mimeTypes&&(b.u_nmime=ol.navigator.mimeTypes.length)}catch(f){}return b};
nha=function(){if(!mt)return null;var a=mt();return"open"in a?a:null};
g.ot=function(a){switch(nt(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
nt=function(a){return a&&"status"in a?a.status:-1};
g.pt=function(a,b){"function"===typeof a&&(a=As(a));return window.setTimeout(a,b)};
qt=function(a,b){"function"===typeof a&&(a=As(a));return window.setInterval(a,b)};
g.rt=function(a){window.clearTimeout(a)};
oha=function(a,b){b=void 0===b?{}:b;var c=Ls(a),d=g.vs("web_ajax_ignore_global_headers_if_set"),e;for(e in tt){var f=g.P(tt[e]);!f||!c&&!ut(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||ut(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||ut(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}if(c||ut(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Es(lt(void 0));return b};
vt=function(a,b){var c=g.ei(a);g.vs("debug_handle_relative_url_for_query_forward_killswitch")||c||!Ls(a)||(c=document.location.hostname);var d=bi(g.di(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=g.Fs(b),f={};g.Ob(pha,function(h){e[h]&&(f[h]=e[h])});
return Ks(a,f)};
ut=function(a){return g.ei(a)?!1:!0};
g.xt=function(a,b){var c=b.format||"JSON";a=qha(a,b);var d=rha(a,b),e=!1,f=wt(a,function(m){if(!e){e=!0;l&&g.rt(l);var n=g.ot(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=sha(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.C;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},
b.method,d,b.headers,b.responseType,b.withCredentials);
if(b.onTimeout&&0<b.timeout){var h=b.onTimeout;var l=g.pt(function(){e||(e=!0,f.abort(),g.rt(l),h.call(b.context||g.C,f))},b.timeout)}return f};
qha=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=Js(a,b);return a};
rha=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,h=g.P("XSRF_FIELD_NAME",void 0),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.ei(a)&&!b.withCredentials&&g.ei(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=g.Fs(e),g.pc(e,f),e=b.postBodyFormat&&"JSON"==b.postBodyFormat?JSON.stringify(e):g.ni(e));f=e||
f&&!g.ic(f);!zt&&f&&"POST"!=b.method&&(zt=!0,g.zs(Error("AJAX request with postData should use POST")));return e};
sha=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Bs(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?tha(a):null)e={},g.Ob(a.getElementsByTagName("*"),function(h){e[h.tagName]=uha(h)})}d&&At(e);
return e};
At=function(a){if(g.Ma(a))for(var b in a)"html_content"==b||$a(b,"_html")?a[b]=g.Jf(g.cf("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):At(a[b])};
tha=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
uha=function(a){var b="";g.Ob(a.childNodes,function(c){b+=c.nodeValue});
return b};
wt=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&As(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=nha();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.vs("debug_forward_web_query_parameters")&&(a=vt(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=oha(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};
Ct=function(a,b){var c=g.mc(b),d;return g.jh(new Zg(function(e,f){c.onSuccess=function(h){g.ot(h)?e(new vha(h)):f(new Bt("Request failed, status="+nt(h),"net.badstatus",h))};
c.onError=function(h){f(new Bt("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Bt("Request timed out","net.timeout",h))};
d=g.xt(a,c)}),function(e){e instanceof oh&&d.abort();
return dh(e)})};
g.Dt=function(a,b,c,d){function e(l,m,n){return g.jh(l,function(p){if(0>=m||403===nt(p.xhr))return dh(new Bt("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Ct(a,b),m-1,q)})})}
function f(l){return new Zg(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Ct(a,b),c-1,d)};
Bt=function(a,b,c){Ta.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
vha=function(a){this.xhr=a};
Et=function(){this.u=0;this.i=null};
Ft=function(a){var b=new Et;a=void 0===a?null:a;b.u=2;b.i=void 0===a?null:a;return b};
Gt=function(a){var b=new Et;a=void 0===a?null:a;b.u=1;b.i=void 0===a?null:a;return b};
g.Jt=function(a,b,c,d,e){Ht||It.set(""+a,b,{Hz:c,path:"/",domain:void 0===d?"youtube.com":d,RW:void 0===e?!1:e})};
g.Kt=function(a,b){if(!Ht)return It.get(""+a,b)};
g.Lt=function(a,b,c){Ht||It.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Mt=function(){if(!It.isEnabled())return!1;if(!It.isEmpty())return!0;It.set("TESTCOOKIESENABLED","1",{Hz:60});if("1"!==It.get("TESTCOOKIESENABLED"))return!1;It.remove("TESTCOOKIESENABLED");return!0};
Nt=function(){var a=/Chrome\/(\d+)/.exec(g.Qb);return a?parseFloat(a[1]):NaN};
Ot=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Qb);if(!a)return NaN;var b=[];a=g.r(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Qt=function(){return Pt("android")&&Pt("chrome")&&!(Pt("trident/")||Pt("edge/"))&&!Pt("cobalt")};
Rt=function(){return Pt("armv7")||Pt("aarch64")||Pt("android")};
g.St=function(){return Pt("cobalt")};
Tt=function(){return Pt("cobalt")&&Pt("appletv")};
Ut=function(){return Pt("(ps3; leanback shell)")||Pt("ps3")&&g.St()};
Vt=function(){return Pt("(ps4; leanback shell)")||Pt("ps4")&&g.St()};
g.Wt=function(){return g.St()&&(Pt("ps4 vr")||Pt("ps4 pro vr"))};
Xt=function(){var a=/WebKit\/([0-9]+)/.exec(g.Qb);return!!(a&&600<=parseInt(a[1],10))};
Yt=function(){var a=/WebKit\/([0-9]+)/.exec(g.Qb);return!!(a&&602<=parseInt(a[1],10))};
Zt=function(){return Pt("iemobile")||Pt("windows phone")&&Pt("edge")};
au=function(){return $t&&Pt("applewebkit")&&!Pt("version")&&(!Pt("safari")||Pt("gsa/"))};
cu=function(){return g.bu&&Pt("version/")};
du=function(){return Pt("smart-tv")&&Pt("samsung")};
Pt=function(a){var b=g.Qb;return b?0<=b.toLowerCase().indexOf(a):!1};
eu=function(){if(Kh())return!0;var a=g.P("INNERTUBE_CLIENT_NAME");return!a||"WEB"!==a&&"MWEB"!==a||au()||cu()?!0:(a=g.Kt("CONSENT"))?a.startsWith("YES+"):!0};
gu=function(a){Ta.call(this,a.message||a.description||a.name);this.isMissing=a instanceof fu;this.isTimeout=a instanceof Bt&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof oh};
fu=function(){Ta.call(this,"Biscotti ID is missing from server")};
wha=function(){if(g.vs("disable_biscotti_fetch_entirely_for_all_web_clients"))return dh(Error("Biscotti id fetching has been disabled entirely."));if(!eu())return dh(Error("User has not consented - not fetching biscotti id."));if("1"==kc(g.P("PLAYER_VARS",{}),"privembed",!1))return dh(Error("Biscotti ID is not available in private embed mode"));hu||(hu=g.jh(Ct("//googleads.g.doubleclick.net/pagead/id",iu).then(ju),function(a){return ku(2,a)}));
return hu};
ju=function(a){a=a.xhr.responseText;if(!Za(a,")]}'"))throw new fu;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new fu;a=a.id;ps(a);hu=Gt(a);lu(18E5,2);return a};
ku=function(a,b){b=new gu(b);ps("");hu=Ft(b);0<a&&lu(12E4,a-1);throw b;};
lu=function(a,b){g.pt(function(){g.jh(Ct("//googleads.g.doubleclick.net/pagead/id",iu).then(ju,function(c){return ku(b,c)}),g.Ha)},a)};
mu=function(){try{var a=g.Ga("yt.ads.biscotti.getId_");return a?a():wha()}catch(b){return dh(b)}};
ou=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=nu+"VisibilityState";if(b in a)return a[b]};
pu=function(a,b){var c;on(a,function(d){c=b[d];return!!c});
return c};
qu=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 xha||(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.u=a.pageY}}catch(e){}};
ru=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.u=a.clientY+b}};
yha=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 fc(tu,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Ma(e[4])&&g.Ma(d)&&g.lc(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.wu=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=yha(a,b,c,d);if(e)return e;e=++uu.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new qu(l);if(!Jg(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new qu(l);
l.currentTarget=a;return c.call(a,l)};
h=As(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),vu()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);tu[e]=[a,b,c,h,d];return e};
zha=function(a,b){var c=document.body||document;return g.wu(c,"click",function(d){var e=Jg(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.xu=function(a){a&&("string"==typeof a&&(a=[a]),g.Ob(a,function(b){if(b in tu){var c=tu[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?vu()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete tu[b]}}))};
g.yu=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
zu=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.yu(a)};
Au=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};
Bu=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.Uf(b,c)};
g.Cu=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.Du=function(a){a=a||window.event;return!1===a.returnValue||a.ZK&&a.ZK()};
g.Eu=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
Aha=function(a){return zha(a,function(b){return g.Kq(b,"ytp-ad-has-logging-urls")})};
g.Fu=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.wu(a,b,function(){g.xu(e);c.apply(a,arguments)},d)};
Gu=function(a){for(var b in tu)tu[b][0]==a&&g.xu(b)};
Hu=function(a){this.K=a;this.i=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.ma=g.wu(window,"mousemove",(0,g.D)(this.Z,this));this.S=qt((0,g.D)(this.Y,this),25)};
Iu=function(){};
Ku=function(a,b,c){return Ju(b,0,c)};
g.Lu=function(a,b,c){return Ju(b,1,c)};
Bha=function(a,b,c){Ju(b,2,c)};
Mu=function(){Iu.apply(this,arguments)};
Nu=function(){Mu.i||(Mu.i=new Mu);return Mu.i};
g.Ou=function(){return!!g.Ga("yt.scheduler.instance")};
Ju=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.pt(a,c||0)};
g.Pu=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.rt(a)}};
Qu=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Tu=function(){var a={},b=void 0===a.vW?!1:a.vW;a=void 0===a.vR?!0:a.vR;if(null==g.Ga("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Ru();g.wu(document,"keydown",Ru);g.wu(document,"keyup",Ru);g.wu(document,"mousedown",Ru);g.wu(document,"mouseup",Ru);b?g.wu(window,"touchmove",function(){Su("touchmove",200)},{passive:!0}):(g.wu(window,"resize",function(){Su("resize",200)}),a&&g.wu(window,"scroll",function(){Su("scroll",
200)}));
new Hu(function(){Su("mouse",100)});
g.wu(document,"touchstart",Ru,{passive:!0});g.wu(document,"touchend",Ru,{passive:!0})}};
Su=function(a,b){Uu[a]||(Uu[a]=!0,g.Lu(0,function(){Ru();Uu[a]=!1},b))};
Ru=function(){null==g.Ga("_lact",window)&&(Tu(),g.Ga("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()};
Vu=function(){var a=g.Ga("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b};
g.Xu=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.St())a&&(a=g.nf(g.rf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.Ff(Hf(a)).toString(),a=Zf(g.Vh(a))),g.ab(a)||(a=yg("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),hg(a).body.appendChild(a)));else if(e)wt(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)wt(a,b,"GET","",d);else{b:{try{var f=new lca({url:a});if(f.B&&f.u||f.C){var h=bi(g.di(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==ti(a,"ri"));break b}}catch(m){}l=!1}l?Wu(a)?(b&&b(),c=!0):c=!1:c=!1;c||Cha(a,b)}};
Yu=function(a,b,c){c=void 0===c?"":c;Wu(a,c)?b&&b():g.Xu(a,b,void 0,void 0,c)};
Wu=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Cha=function(a,b){var c=new Image,d=""+Dha++;Zu[d]=c;c.onload=c.onerror=function(){b&&Zu[d]&&b();delete Zu[d]};
c.src=a};
g.dv=function(a,b,c){var d=g.$u();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){av[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.bv[a]?h():g.pt(h,0)}catch(l){g.zs(l)}},c);
av[e]=!0;cv[a]||(cv[a]=[]);cv[a].push(e);return e}return 0};
g.ev=function(a){var b=g.$u();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Ob(a,function(c){b.unsubscribeByKey(c);delete av[c]}))};
g.fv=function(a,b){var c=g.$u();return c?c.publish.apply(c,arguments):!1};
hv=function(a){var b=g.$u();if(b)if(b.clear(a),a)gv(a);else for(var c in cv)gv(c)};
g.$u=function(){return g.C.ytPubsubPubsubInstance};
gv=function(a){cv[a]&&(a=cv[a],g.Ob(a,function(b){av[b]&&delete av[b]}),a.length=0)};
Eha=function(a,b){if("log_event"===a.endpoint){var c="";a.yy?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(iv[a.cttAuthInfo.token]=jv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=kv.get(c)||[];kv.set(c,d);d.push(a.payload);b&&(lv=new b);a=ws("tvhtml5_logging_max_batch")||ws("web_logging_max_batch")||100;b=(0,g.Q)();d.length>=a?mv({writeThenSend:!0},g.vs("flush_only_full_queue")?c:void 0):10<=b-nv&&(ov(),nv=b)}};
Fha=function(a,b){if("log_event"===a.endpoint){var c="";a.yy?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(iv[a.cttAuthInfo.token]=jv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=new Map;d.set(c,[a.payload]);b&&(lv=new b);return new Zg(function(e){lv&&lv.isReady()?pv(d,e,{bypassNetworkless:!0},!0):e()})}};
mv=function(a,b){a=void 0===a?{}:a;new Zg(function(c){g.rt(qv);g.rt(rv);rv=0;if(lv&&lv.isReady())if(void 0!==b){var d=new Map,e=kv.get(b)||[];d.set(b,e);pv(d,c,a);kv.delete(b)}else pv(kv,c,a),kv.clear();else ov(),c()})};
ov=function(){g.vs("web_gel_timeout_cap")&&!rv&&(rv=g.pt(function(){mv({writeThenSend:!0})},6E4));
g.rt(qv);var a=g.P("LOGGING_BATCH_TIMEOUT",ws("web_gel_debounce_ms",1E4));g.vs("shorten_initial_gel_batch_timeout")&&tv&&(a=Gha);qv=g.pt(function(){mv({writeThenSend:!0})},a)};
pv=function(a,b,c,d){var e=lv;c=void 0===c?{}:c;var f=Math.round((0,g.Q)()),h=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.nc({context:g.uv(e.config_||g.vv())});m.events=n;(n=iv[l])&&Hha(m,l,n);delete iv[l];l="visitorOnlyApprovedKey"===l;Iha(m,f,l);g.vs("always_send_and_write")&&(c.writeThenSend=!1);g.vs("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&Yu("/generate_204");g.wv(e,"log_event",
m,{retry:!0,onSuccess:function(){h--;h||b()},
onError:function(){h--;h||b()},
OL:c,yy:l,iaa:!!d});tv=!1}};
Iha=function(a,b,c){a.requestTimeMs=String(b);g.vs("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID",void 0))&&((c=g.P("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*xv/2)),c++,c>xv&&(c=1),rs("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Hha=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}]};
jv=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b};
zv=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.Q)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=Vu();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.vs("log_sequence_info_on_gel_web")&&d.wm&&(a=e.context,b=d.wm,yv[b]=b in yv?yv[b]+1:0,a.sequence={index:yv[b],groupKey:b},d.xR&&delete yv[d.wm]);(d.SW?Fha:Eha)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,yy:d.yy},c)};
Av=function(a){var b=this;this.i=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.i=c})};
Bv=function(){if(!g.C.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.C.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.C.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.C.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.C.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
g.Dv=function(){this.i=g.P("ALT_PREF_COOKIE_NAME","PREF");this.u=g.P("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Kt(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])&&(Cv[d]=c.toString())}}};
g.Fv=function(a,b){return!!((Ev("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Gv=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Hv=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Ev=function(a){a=void 0!==Cv[a]?Cv[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Iv=function(){var a=g.C.navigator;return a?a.connection:void 0};
Kv=function(){var a=Iv();if(a){var b=Jv[a.type||"unknown"]||"CONN_UNKNOWN";a=Jv[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}};
Mv=function(){var a=Iv();if(null!==a&&void 0!==a&&a.effectiveType)return Lv.hasOwnProperty(a.effectiveType)?Lv[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
Nv=function(){return"INNERTUBE_API_KEY"in qs&&"INNERTUBE_API_VERSION"in qs};
g.vv=function(){return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0),OK:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),PK:g.P("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),RK:g.P("INNERTUBE_CONTEXT_HL",void 0),QK:g.P("INNERTUBE_CONTEXT_GL",void 0),SK:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",UK:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),TK:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.P("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
g.uv=function(a){var b={client:{hl:a.RK,gl:a.QK,clientName:a.PK,clientVersion:a.innertubeContextClientVersion,configInfo:a.OK}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.C.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.P("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=xs();0<c.length&&(b.request={internalExperimentFlags:c});c=b.client.clientName;if("WEB"===c||"MWEB"===c||1===c||2===c){if(!g.vs("web_include_display_mode_killswitch")){var d;
b.client.mainAppWebInfo=null!=(d=b.client.mainAppWebInfo)?d:{};b.client.mainAppWebInfo.webDisplayMode=Bv()}}else if(d=b.client.clientName,("WEB_REMIX"===d||76===d)&&!g.vs("music_web_display_mode_killswitch")){var e;b.client.ML=null!=(e=b.client.ML)?e:{};b.client.ML.webDisplayMode=Bv()}a.appInstallData&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.P("DELEGATED_SESSION_ID")&&!g.vs("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.P("DELEGATED_SESSION_ID")});
if(a=Kv())b.client.connectionType=a;g.vs("web_log_effective_connection_type")&&(a=Mv())&&(b.client.effectiveConnectionType=a);a=Object;e=a.assign;d=b.client;c={};for(var f=g.r(Object.entries(g.Fs(g.P("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?c.deviceMake=l:"cmodel"===h?c.deviceModel=l:"cbr"===h?c.browserName=l:"cbrver"===h?c.browserVersion=l:"cos"===h?c.osName=l:"cosver"===h?c.osVersion=l:"cplatform"===h&&(c.platform=l)}b.client=
e.call(a,d,c);return b};
Jha=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.SI||g.P("AUTHORIZATION"))||(a?b="Bearer "+g.Ga("gapi.auth.getToken")().eaa:b=Mh([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.P("SESSION_INDEX",0),g.vs("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return d};
Ov=function(a){var b;(b=g.Er(a))||(a=new Ar(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.i=(a=b)?new sr(a):null;this.u=document.domain||window.location.hostname};
Qv=function(){var a;return null===(a=Pv())||void 0===a?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Rv=function(a){this.i=void 0===a?!1:a;(a=Qv())||(a={hasSucceededOnce:this.i});this.u=a;var b,c;null!==(b=Pv())&&void 0!==b&&b.i&&(b={hasSucceededOnce:this.u.hasSucceededOnce||this.i},null===(c=Pv())||void 0===c?void 0:c.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0))};
Kha=function(){var a={};for(Sv=new Tv(void 0===a.handleError?Uv:a.handleError,void 0===a.logEvent?g.Vv:a.logEvent);0<Wv.length;)switch(a=Wv.shift(),a.type){case "ERROR":Sv.Zd(a.payload);break;case "EVENT":Sv.logEvent(a.eventType,a.payload)}};
Yv=function(a){Xv||(Sv?Sv.Zd(a):(Wv.push({type:"ERROR",payload:a}),10<Wv.length&&Wv.shift()))};
Zv=function(a,b){Xv||(Sv?Sv.logEvent(a,b):(Wv.push({type:"EVENT",eventType:a,payload:b}),10<Wv.length&&Wv.shift()))};
g.$v=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.v(c))};
bw=function(){try{return aw(),!0}catch(a){return!1}};
aw=function(a){if(void 0!==g.P("DATASYNC_ID",void 0))return g.P("DATASYNC_ID",void 0);throw new g.$v("Datasync ID not set",void 0===a?"unknown":a);};
cw=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
dw=function(a){return a.substr(0,a.indexOf(":"))||a};
fw=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?ew[a]:c;d=void 0===d?Lha[a]:d;e=void 0===e?Mha[a]:e;g.$v.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,fw.prototype)};
gw=function(a){fw.call(this,"MISSING_OBJECT_STORE",{VS:a},ew.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,gw.prototype)};
hw=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,hw.prototype)};
Oha=function(a,b,c,d){b=dw(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof fw)return e;if("QuotaExceededError"===e.name)return new fw("QUOTA_EXCEEDED",{objectStoreNames:c,dbName:b});if(g.Ui&&"UnknownError"===e.name)return new fw("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:c,dbName:b});if(e instanceof hw)return new fw("MISSING_INDEX",{dbName:b,dbVersion:d,objectStore:e.objectStore,index:e.index});if("InvalidStateError"===e.name&&Nha.some(function(f){return e.message.includes(f)}))return new fw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
{objectStoreNames:c,
dbName:b});if("AbortError"===e.name)return new fw("UNKNOWN_ABORT",{objectStoreNames:c,dbName:b},e.message);e.args=[{name:"IdbError",iA:e.name,dbName:b,objectStoreNames:c}];e.level="WARNING";return e};
g.iw=function(a,b,c){return new fw("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c}})};
Pha=function(a){if(!a)throw Error();throw a;};
Qha=function(a){return a};
jw=function(a){this.i=a};
kw=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.r(d.onRejected);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.r(d.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)}};
mw=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 kw?lw(a,b,f,d,e):d(f)}catch(h){e(h)}};
nw=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 kw?lw(a,b,f,d,e):d(f)}catch(h){e(h)}};
lw=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof kw?lw(a,b,f,d,e):d(f)},function(f){e(f)})};
ow=function(a,b,c){function d(){c(a.error);f()}
function e(){b(a.result);f()}
function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
a.addEventListener("success",e);a.addEventListener("error",d)};
Rha=function(a){return new Promise(function(b,c){ow(a,b,c)})};
pw=function(a){return new kw(new jw(function(b,c){ow(a,b,c)}))};
qw=function(a,b){return new kw(new jw(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
rw=function(a,b){this.request=a;this.cursor=b};
tw=function(a){return pw(a).then(function(b){return b?new rw(a,b):null})};
uw=function(a,b){this.i=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.Q)());this.u=!1};
ww=function(a,b,c){a=a.i.createObjectStore(b,c);return new vw(a)};
xw=function(a,b){a.i.objectStoreNames.contains(b)&&a.i.deleteObjectStore(b)};
Sha=function(a,b){return yw(a,["captions"],{mode:"readonly",og:!0},function(c){return zw(c.objectStore("captions"),b,void 0)})};
Tha=function(a,b){return yw(a,["LogsRequestsStore"],{mode:"readwrite",og:!0},function(c){return Aw(c.objectStore("LogsRequestsStore"),b,void 0)})};
yw=function(a,b,c,d){return g.H(a,function f(){var h=this,l,m,n,p,q,t,u,x,y,A,F,G;return g.B(f,function(E){switch(E.i){case 1:var K={mode:"readonly",og:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?K.mode=c:Object.assign(K,c);l=K;h.transactionCount++;m=l.og?3:1;n=0;case 2:if(p){E.fb(3);break}n++;q=Math.round((0,g.Q)());ta(E,4);t=h.i.transaction(b,l.mode);K=new Bw(t);K=Uha(K,d);return g.z(E,K,6);case 6:return u=E.u,x=Math.round((0,g.Q)()),Cw(h,q,x,n,void 0,b.join(),l),E.return(u);case 4:y=
va(E);A=Math.round((0,g.Q)());F=Oha(y,h.i.name,b.join(),h.i.version);if((G=F instanceof fw&&!F.i)||n>=m)Cw(h,q,A,n,F,b.join(),l),p=F;E.fb(2);break;case 3:return E.return(Promise.reject(p))}})})};
Cw=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof fw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&Zv("QUOTA_EXCEEDED",{dbName:dw(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof fw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),Zv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Dw(a,!1,d,f,b,h.tag),Yv(e)):Dw(a,!0,d,f,b,h.tag)};
Dw=function(a,b,c,d,e,f){Zv("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
vw=function(a){this.i=a};
Ew=function(a,b,c){a.i.createIndex(b,c,{unique:!1})};
Vha=function(a,b){return Fw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
zw=function(a,b,c){return"getAll"in IDBObjectStore.prototype?pw(a.i.getAll(b,c)):Wha(a,b,c)};
Wha=function(a,b,c){var d=[];return Fw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Gw=function(a){return"getAllKeys"in IDBObjectStore.prototype?pw(a.i.getAllKeys(void 0,void 0)):Xha(a)};
Xha=function(a){var b=[];return Hw(a,{query:void 0},function(c){b.push(c.bz());return c.continue()}).then(function(){return b})};
Aw=function(a,b,c){return pw(a.i.put(b,c))};
Fw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return Iw(a).then(function(d){return qw(d,c)})};
Hw=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 tw(a).then(function(e){return qw(e,c)})};
Bw=function(a){var b=this;this.i=a;this.B=new Map;this.u=!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.u){e=fw;for(var f=b.i.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.i.db.name,mode:b.i.mode});d(e)}})})};
Uha=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.r(d).next().value})};
Jw=function(a){this.i=a};
Kw=function(a,b){return"getAll"in IDBIndex.prototype?pw(a.i.getAll(b,void 0)):Yha(a,b)};
Yha=function(a,b){var c=[];return Lw(a,{query:b},function(d){c.push(d.getValue());return d.continue()}).then(function(){return c})};
Lw=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 qw(d,c)})};
Mw=function(a,b){this.request=a;this.cursor=b};
Iw=function(a){return pw(a).then(function(b){return b?new Mw(a,b):null})};
Zha=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new uw(h.result,{closed:q}));return t}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.kX,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&Zv("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:dw(a)});var x=f(),y=new Bw(h.transaction);
p&&p(x,function(A){return u.oldVersion<A&&u.newVersion>=A},y);
y.done.catch(function(A){e(A)})}catch(A){e(A)}});
h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())});
u.addEventListener("close",function(){Zv("IDB_UNEXPECTEDLY_CLOSED",{dbName:dw(a),dbVersion:u.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Nw=function(a,b,c){c=void 0===c?{}:c;return Zha(a,b,c)};
Ow=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e,f,h;return g.B(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return g.z(l,Rha(e),0)})})};
Pw=function(a,b){this.name=a;this.options=b;this.C=!0;this.B=!1};
Qw=function(a,b){return new fw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
Sw=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.z(e,Rw.open(),2);d=e.u;return e.return(yw(d,["databases"],{og:!0,mode:"readwrite"},function(f){var h=f.objectStore("databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier:1)return Aw(h,a).then(function(){})})}))})})};
Tw=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return a?g.z(e,Rw.open(),2):e.return();d=e.u;return e.return(d.delete("databases",a))})})};
Uw=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){return 1==f.i?(d=[],g.z(f,Rw.open(),2)):3!=f.i?(e=f.u,g.z(f,yw(e,["databases"],{og:!0,mode:"readonly"},function(h){d.length=0;return Fw(h.objectStore("databases"),{},function(l){a(l.getValue())&&d.push(l.getValue());return l.continue()})}),3)):f.return(d)})})};
$ha=function(){return Uw(function(a){return"LogsDatabaseV2"===a.publicName&&void 0!==a.userIdentifier})};
aia=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return c=aw("YtIdbMeta"),g.z(e,Uw(function(f){return"yt-player-local-media"===f.publicName&&f.userIdentifier===c}),2);
d=e.u;return e.return(0<d.length)})})};
bia=function(){return g.H(this,function b(){var c,d,e;return g.B(b,function(f){switch(f.i){case 1:c=Qv();if(null===c||void 0===c?0:c.hasSucceededOnce)return f.return(new Rv(!0));if($t&&Xt()&&!Yt()||g.Vw)return f.return(new Rv(!1));try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return f.return(new Rv(!1))}catch(h){return f.return(new Rv(!1))}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return f.return(new Rv(!1));ta(f,2);e={actualName:"yt-idb-test-do-not-use",
publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.z(f,Sw(e),4);case 4:return g.z(f,Tw("yt-idb-test-do-not-use"),5);case 5:return f.return(new Rv(!0));case 2:return va(f),f.return(new Rv(!1))}})})};
Xw=function(){if(void 0!==Ww)return Ww;Xv=!0;return Ww=bia().then(function(a){Xv=!1;return a.isSupported()})};
g.Yw=function(){return Xw().then(function(a){return a?cia:void 0})};
Zw=function(a){if(!bw())throw a=new fw("AUTH_INVALID",{dbName:a}),Yv(a),a;var b=aw();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
$w=function(a,b,c,d){var e;return g.H(this,function h(){var l,m,n,p,q;return g.B(h,function(t){switch(t.i){case 1:return l=null!==(e=Error().stack)&&void 0!==e?e:"",g.z(t,g.Yw(),2);case 2:m=t.u;if(!m)throw n=g.iw("openDbImpl",a,b),n.stack=n.stack+"\n"+l.substring(l.indexOf("\n")+1),Yv(n),n;cw(a);p=c?{actualName:a,publicName:a,userIdentifier:void 0}:Zw(a);ta(t,3);return g.z(t,Sw(p),5);case 5:return g.z(t,Nw(p.actualName,b,d),6);case 6:return t.return(t.u);case 3:return q=va(t),ta(t,7),g.z(t,Tw(p.actualName),
9);case 9:ua(t,8);break;case 7:va(t);case 8:throw q;}})})};
dia=function(a,b,c){c=void 0===c?{}:c;return $w(a,b,!1,c)};
eia=function(a,b,c){c=void 0===c?{}:c;return $w(a,b,!0,c)};
fia=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e,f;return g.B(d,function(h){if(1==h.i)return g.z(h,g.Yw(),2);if(3!=h.i){e=h.u;if(!e)return h.return();cw(a);f=Zw(a);return g.z(h,Ow(f.actualName,b),3)}return g.z(h,Tw(f.actualName),0)})})};
gia=function(a,b){var c=this;a=a.map(function(d){return g.H(c,function f(){return g.B(f,function(h){return 1==h.i?g.z(h,Ow(d.actualName,b),2):g.z(h,Tw(d.actualName),0)})})});
return Promise.all(a).then(function(){})};
hia=function(){var a=void 0===a?{}:a;return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,g.Yw(),2);if(3!=f.i){d=f.u;if(!d)return f.return();cw("LogsDatabaseV2");return g.z(f,$ha(),3)}e=f.u;return g.z(f,gia(e,a),0)})})};
ax=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.z(f,g.Yw(),2);if(3!=f.i){e=f.u;if(!e)return f.return();cw(a);return g.z(f,Ow(a,b),3)}return g.z(f,Tw(a),0)})})};
iia=function(){return g.H(this,function b(){var c;return g.B(b,function(d){return 1==d.i?g.z(d,g.Yw(),2):(c=d.u)?d.return(aia()):d.return(!1)})})};
cx=function(a){var b,c,d,e,f,h,l,m;this.qe=!1;this.potentialEsfErrorCounter=this.i=0;this.handleError=function(){};
this.hs=function(){};
this.now=Date.now;this.VN=null!==(b=a.VN)&&void 0!==b?b:100;this.yN=null!==(c=a.yN)&&void 0!==c?c:1;this.sN=null!==(d=a.sN)&&void 0!==d?d:2592E6;this.jN=null!==(e=a.jN)&&void 0!==e?e:12E4;this.wN=null!==(f=a.wN)&&void 0!==f?f:5E3;this.databaseToken=null!==(h=a.databaseToken)&&void 0!==h?h:void 0;this.By=!!a.By;this.ly=null!==(l=a.ly)&&void 0!==l?l:.1;this.sA=null!==(m=a.sA)&&void 0!==m?m:10;a.handleError&&(this.handleError=a.handleError);a.hs&&(this.hs=a.hs);this.ob=a.ob;this.hL=a.hL;this.cf=a.cf;
this.Ue=a.Ue;this.tm=a.tm;this.qF=a.qF;this.OE=a.OE;this.databaseToken&&(!this.ob||this.ob("networkless_logging"))&&bx(this)};
bx=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(!d.databaseToken)return e.return();dx(d);d.Ue.Se()&&d.qx();d.Ue.Qa(d.qF,d.qx.bind(d));d.Ue.Qa(d.OE,d.fJ.bind(d));d.qe=!0;return d.By&&Math.random()<=d.ly?g.z(e,d.cf.cR(d.databaseToken),0):e.fb(0)})})};
fx=function(a,b){return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){switch(l.i){case 1:if(!e.databaseToken)throw f=g.iw("immediateSend"),f;if(void 0===b.id){l.fb(2);break}return g.z(l,e.cf.PS(b.id,e.databaseToken),3);case 3:(h=l.u)?b=h:e.hs(Error("The request cannot be found in the database."));case 2:if(ex(e,b,e.sN)){l.fb(4);break}e.hs(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===b.id){l.fb(5);break}return g.z(l,e.cf.Jr(b.id,e.databaseToken),5);
case 5:return l.return();case 4:b.skipRetry||(b=jia(e,b));if(!b){l.fb(0);break}if(!b.skipRetry||void 0===b.id){l.fb(8);break}return g.z(l,e.cf.Jr(b.id,e.databaseToken),8);case 8:e.tm(b.url,b.options,!!b.skipRetry),g.sa(l)}})})};
jia=function(a,b){if(!a.databaseToken)throw g.iw("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){return g.H(a,function l(){var m=this,n,p;return g.B(l,function(q){switch(q.i){case 1:n=m;p=gx(f);if(!(m.ob&&m.ob("nwl_consider_error_code")&&p||m.ob&&!m.ob("nwl_consider_error_code")&&m.potentialEsfErrorCounter<=m.sA)){q.fb(2);break}if(!m.Ue.Tk){q.fb(3);break}return g.z(q,m.Ue.Tk(),3);case 3:if(m.Ue.Se()){q.fb(2);break}c(e,f);if(!m.ob||!m.ob("nwl_consider_error_code")||void 0===(null===b||void 0===b?void 0:b.id)){q.fb(6);break}return g.z(q,m.cf.LF(b.id,m.databaseToken,
!1),6);case 6:return q.return();case 2:if(m.ob&&m.ob("nwl_consider_error_code")&&!p&&m.potentialEsfErrorCounter>m.sA)return q.return();m.potentialEsfErrorCounter++;if(void 0===(null===b||void 0===b?void 0:b.id)){q.fb(8);break}return b.sendCount<m.yN?g.z(q,m.cf.LF(b.id,m.databaseToken),12):g.z(q,m.cf.Jr(b.id,m.databaseToken),8);case 12:g.Lu(0,function(){n.Ue.Se()&&n.qx()},m.wN);
case 8:c(e,f),g.sa(q)}})})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){return g.H(a,function l(){var m=this;return g.B(l,function(n){if(1==n.i)return void 0===(null===b||void 0===b?void 0:b.id)?n.fb(2):g.z(n,m.cf.Jr(b.id,m.databaseToken),2);m.Ue.Qn&&m.ob&&m.ob("vss_network_hint")&&m.Ue.Qn(!0);d(e,f);g.sa(n)})})};
return b};
ex=function(a,b,c){b=b.timestamp;return a.now()-b>=c?!1:!0};
dx=function(a){if(!a.databaseToken)throw g.iw("retryQueuedRequests");a.cf.lK("QUEUED",a.databaseToken).then(function(b){b&&!ex(a,b,a.jN)?g.Lu(0,function(){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return void 0===b.id?f.fb(2):g.z(f,e.cf.LF(b.id,e.databaseToken),2);dx(e);g.sa(f)})})}):a.Ue.Se()&&a.qx()})};
hx=function(a,b){a.BO&&!a.Ue.Se()?a.BO(b):a.handleError(b)};
gx=function(a){var b;return(a=null===(b=null===a||void 0===a?void 0:a.error)||void 0===b?void 0:b.code)&&400<=a&&599>=a?!1:!0};
ix=function(a,b){this.version=a;this.args=b};
jx=function(a,b){this.topic=a;this.i=b};
lx=function(a,b){var c=kx();c&&c.publish.call(c,a.toString(),a,b)};
kia=function(a,b,c){var d=kx();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ga("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(mx[e])try{if(h&&a instanceof jx&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Io){var p=new m;m.Io=p.version}var q=m.Io}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.Db(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.zs(t)}},nx[a.toString()]?g.Ou()?Ju(l,1,void 0):g.pt(l,0):l())});
mx[e]=!0;ox[a.toString()]||(ox[a.toString()]=[]);ox[a.toString()].push(e);return e};
qx=function(a,b,c){var d=kia(a,function(e){b.apply(c,arguments);px(d)},c);
return d};
px=function(a){var b=kx();b&&("number"===typeof a&&(a=[a]),g.Ob(a,function(c){b.unsubscribeByKey(c);delete mx[c]}))};
kx=function(){return g.Ga("ytPubsub2Pubsub2Instance")};
rx=function(a,b){Pw.call(this,a,b);this.options=b;cw(a)};
lia=function(a,b){var c;return function(){c||(c=new rx(a,b));return c}};
sx=function(a,b){return lia(a,b)};
ux=function(){if(tx)return tx();var a={};tx=sx("LogsDatabaseV2",{Gs:(a.LogsRequestsStore={Mm:2},a),dx:!1,upgrade:function(b,c,d){c(2)&&ww(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.i.indexNames.contains("newRequest")&&d.i.deleteIndex("newRequest"),Ew(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&xw(b,"sapisid");c(9)&&xw(b,"SWHealthLog")},
version:9});return tx()};
wx=function(a){return g.H(this,function c(){var d,e,f,h;return g.B(c,function(l){if(1==l.i)return d={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.z(l,ux().open(),2);if(3!=l.i)return e=l.u,f=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(l,Tha(e,f),3);h=l.u;d.sX=(0,g.Q)();vx(d);return l.return(h)})})};
xx=function(a){return g.H(this,function c(){var d,e,f,h,l,m,n;return g.B(c,function(p){if(1==p.i)return d={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.z(p,ux().open(),2);if(3!=p.i)return e=p.u,f=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[a,f,0],l=[a,f,(0,g.Q)()],m=IDBKeyRange.bound(h,l),n=void 0,g.z(p,yw(e,["LogsRequestsStore"],{mode:"readwrite",og:!0},function(q){return Lw(q.objectStore("LogsRequestsStore").index("newRequestV2"),{query:m,direction:"prev"},function(t){t.getValue()&&
(n=t.getValue(),"NEW"===a&&(n.status="QUEUED",t.update(n)))})}),3);
d.sX=(0,g.Q)();vx(d);return p.return(n)})})};
yx=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.z(e,ux().open(),2);d=e.u;return e.return(yw(d,["LogsRequestsStore"],{mode:"readwrite",og:!0},function(f){var h=f.objectStore("LogsRequestsStore");return h.get(a).then(function(l){if(l)return l.status="QUEUED",Aw(h,l).then(function(){return l})})}))})})};
zx=function(a,b,c){c=void 0===c?!0:c;return g.H(this,function e(){var f;return g.B(e,function(h){if(1==h.i)return g.z(h,ux().open(),2);f=h.u;return h.return(yw(f,["LogsRequestsStore"],{mode:"readwrite",og:!0},function(l){var m=l.objectStore("LogsRequestsStore");return m.get(a).then(function(n){return n?(n.status="NEW",c&&(n.sendCount+=1),Aw(m,n).then(function(){return n})):kw.resolve(void 0)})}))})})};
Ax=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.z(e,ux().open(),2);d=e.u;return e.return(d.delete("LogsRequestsStore",a))})})};
mia=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.z(e,ux().open(),2);c=e.u;d=(0,g.Q)()-2592E6;return g.z(e,yw(c,["LogsRequestsStore"],{mode:"readwrite",og:!0},function(f){return Fw(f.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=d)return h.delete().then(function(){return h.continue()})})}),0)})})};
nia=function(){g.H(this,function b(){return g.B(b,function(c){return g.z(c,hia(),0)})})};
vx=function(a){g.vs("nwl_csi_killswitch")||.01>=Math.random()&&lx("nwl_transaction_latency_payload",a)};
oia=function(){g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.vs("web_clean_sw_logs_store")?g.z(e,Bx().open(),3):e.fb(0);c=e.u;d=(0,g.Q)()-2592E6;return g.z(e,yw(c,["SWHealthLog"],{mode:"readwrite",og:!0},function(f){return Fw(f.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=d)return h.delete().then(function(){return h.continue()})})}),0)})})};
pia=function(){return g.H(this,function b(){var c;return g.B(b,function(d){if(1==d.i)return g.z(d,Bx().open(),2);c=d.u;return g.z(d,c.clear("SWHealthLog"),0)})})};
Dx=function(){Cx||(Cx=new Ov("yt.offline"));return Cx};
Ex=function(a){if(g.vs("offline_error_handling")){var b=Dx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Dx().set("errors",b,2592E3,!0)}};
Fx=function(){g.Oe.call(this);this.J=0;this.K=this.u=!1;this.i=this.ND();qia(this);ria(this)};
Gx=function(){if(!Fx.i){var a=g.Ga("yt.networkStatusManager.instance")||new Fx;g.Fa("yt.networkStatusManager.instance",a,void 0);Fx.i=a}return Fx.i};
ria=function(a){window.addEventListener("online",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return g.z(e,d.Tk(),2);if(d.K&&g.vs("offline_error_handling")){var f=Dx().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.$v(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.zs(l)}Dx().set("errors",{},2592E3,!0)}}g.sa(e)})})})};
qia=function(a){window.addEventListener("offline",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){return g.z(e,d.Tk(),0)})})})};
Hx=function(a){a.J=Ku(0,function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.i?d.ND()||!d.u?e.fb(3):g.z(e,d.Tk(),3):g.z(e,d.Tk(),3);Hx(d);g.sa(e)})})},sia)};
Jx=function(a){a=void 0===a?{}:a;g.Oe.call(this);var b=this;this.u=this.D=0;this.i=Gx();var c=g.Ga("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.MJ);a.wL&&(c=g.Ga("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.i))a.yA?(this.yA=a.yA,c("ytnetworkstatus-online",function(){Ix(b,"publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){Ix(b,"publicytnetworkstatus-offline")})):
(c("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Ix=function(a,b){a.yA?a.u?(g.Pu(a.D),a.D=g.Lu(0,function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)())},a.yA-((0,g.Q)()-a.u))):(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)()):a.dispatchEvent(b)};
tia=function(a,b){function c(d){var e=Kx().Se();if(!Lx()||!d||e&&g.vs("vss_networkless_bypass_write"))Mx(a,b);else{var f={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};wx(f,d).then(function(h){f.id=h;Kx().Se()&&Nx(f)}).catch(function(h){Nx(f);
Ox(h)})}}
b=void 0===b?{}:b;g.vs("skip_is_supported_killswitch")?g.Yw().then(function(d){c(d)}):c(Px())};
Qx=function(a,b,c){function d(f){if(Lx()&&f){var h={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};g.vs("nwl_skip_retry")&&(h.skipRetry=c);if(Kx().Se()){if(!h.skipRetry){var l=b.onError?b.onError:function(){};
b.onError=function(m,n){return g.H(e,function q(){return g.B(q,function(t){if(1==t.i)return g.z(t,wx(h,f).catch(function(u){Ox(u)}),2);
l(m,n);g.sa(t)})})}}Mx(a,b,h.skipRetry)}else wx(h,f).catch(function(m){Mx(a,b,g.vs("nwl_skip_retry")&&c);
Ox(m)})}else Mx(a,b,g.vs("nwl_skip_retry")&&c)}
var e=this;b=void 0===b?{}:b;g.vs("skip_is_supported_killswitch")?g.Yw().then(function(f){d(f)}):d(Px())};
Rx=function(a,b){function c(d){if(Lx()&&d){var e={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){};
e.options.onSuccess=function(l,m){void 0!==e.id?Ax(e.id,d):f=!0;g.vs("vss_network_hint")&&Kx().Qn(!0);h(l,m)};
Mx(e.url,e.options);wx(e,d).then(function(l){e.id=l;f&&Ax(e.id,d)}).catch(function(l){Ox(l)})}else Mx(a,b)}
b=void 0===b?{}:b;g.vs("skip_is_supported_killswitch")?g.Yw().then(function(d){c(d)}):c(Px())};
Tx=function(){var a=this,b=Px();if(!b)throw g.iw("throttleSend");Sx||(Sx=g.Lu(0,function(){return g.H(a,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.z(f,xx("NEW",b),2);if(3!=f.i)return e=f.u,e?g.z(f,Nx(e),3):(g.Pu(Sx),Sx=0,f.return());Sx&&(Sx=0,Tx());g.sa(f)})})},100))};
Nx=function(a){return g.H(this,function c(){var d,e,f;return g.B(c,function(h){switch(h.i){case 1:d=Px();if(!d)throw e=g.iw("immediateSend"),e;if(void 0===a.id){h.fb(2);break}return g.z(h,yx(a.id,d),3);case 3:(f=h.u)?a=f:Bs(Error("The request cannot be found in the database."));case 2:var l=a.timestamp;if(!(2592E6<=(0,g.Q)()-l)){h.fb(4);break}Bs(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){h.fb(5);break}return g.z(h,Ax(a.id,d),5);case 5:return h.return();
case 4:a.skipRetry||(a=uia(a));l=a;var m,n;if(null===(n=null===(m=null===l||void 0===l?void 0:l.options)||void 0===m?void 0:m.postParams)||void 0===n?0:n.requestTimeMs)l.options.postParams.requestTimeMs=Math.round((0,g.Q)());a=l;if(!a){h.fb(0);break}if(!a.skipRetry||void 0===a.id){h.fb(8);break}return g.z(h,Ax(a.id,d),8);case 8:Mx(a.url,a.options,!!a.skipRetry),g.sa(h)}})})};
uia=function(a){var b=this,c=Px();if(!c)throw g.iw("updateRequestHandlers");var d=a.options.onError?a.options.onError:function(){};
a.options.onError=function(f,h){return g.H(b,function m(){var n;return g.B(m,function(p){switch(p.i){case 1:n=gx(h);if(!(g.vs("nwl_consider_error_code")&&n||!g.vs("nwl_consider_error_code")&&Ux()<=ws("potential_esf_error_limit",10))){p.fb(2);break}return g.z(p,Kx().Tk(),3);case 3:if(Kx().Se()){p.fb(2);break}d(f,h);if(!g.vs("nwl_consider_error_code")||void 0===(null===a||void 0===a?void 0:a.id)){p.fb(5);break}return g.z(p,zx(a.id,c,!1),5);case 5:return p.return();case 2:if(g.vs("nwl_consider_error_code")&&
!n&&Ux()>ws("potential_esf_error_limit",10))return p.return();g.Ga("ytNetworklessLoggingInitializationOptions")&&Vx.potentialEsfErrorCounter++;Wx++;if(void 0===(null===a||void 0===a?void 0:a.id)){p.fb(7);break}return 1>a.sendCount?g.z(p,zx(a.id,c),11):g.z(p,Ax(a.id,c),7);case 11:g.Lu(0,function(){Kx().Se()&&Tx()},5E3);
case 7:d(f,h),g.sa(p)}})})};
var e=a.options.onSuccess?a.options.onSuccess:function(){};
a.options.onSuccess=function(f,h){return g.H(b,function m(){return g.B(m,function(n){if(1==n.i)return void 0===(null===a||void 0===a?void 0:a.id)?n.fb(2):g.z(n,Ax(a.id,c),2);g.vs("vss_network_hint")&&Kx().Qn(!0);e(f,h);g.sa(n)})})};
return a};
Kx=function(){Xx||(Xx=new Jx({wL:!0,MJ:!0}));return Xx};
Ox=function(a){Kx().Se()?g.zs(a):Ex(a)};
Mx=function(a,b,c){if(g.vs("networkless_with_beacon")){var d=["method","postBody"];if(Object.keys(b).length>d.length)c=!0;else{c=0;d=g.r(d);for(var e=d.next();!e.done;e=d.next())b.hasOwnProperty(e.value)&&c++;c=Object.keys(b).length!==c}c?g.xt(a,b):Yu(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.Xu(a):g.xt(a,b)};
Lx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?Vx.isNwlInitialized:!1};
Px=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?Vx.databaseToken:void 0};
Ux=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?Vx.potentialEsfErrorCounter:Wx};
Yx=function(){cx.call(this,{cf:{cR:mia,Jr:Ax,lK:xx,PS:yx,LF:zx,set:wx},Ue:new Jx({wL:!0,MJ:!0}),handleError:g.zs,hs:Bs,tm:via,now:g.Q,BO:Ex,hL:Nu(),qF:"publicytnetworkstatus-online",OE:"publicytnetworkstatus-offline",By:!0,ly:.1,sA:ws("potential_esf_error_limit",10),ob:g.vs});this.By&&Math.random()<=this.ly&&this.databaseToken&&oia();g.vs("networkless_immediately_drop_sw_health_store")&&wia(this);g.vs("networkless_immediately_drop_all_requests")&&nia();ax("LogsDatabaseV2")};
Zx=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new Yx,g.Fa("yt.networklessRequestController.instance",a,void 0),g.vs("networkless_logging")&&g.Yw().then(function(b){a.databaseToken=b;bx(a)}));
return a};
wia=function(a){g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){e=d;if(!d.databaseToken)throw f=g.iw("clearSWHealthLogsDb"),f;return h.return(pia().catch(function(l){e.handleError(l)}))})})};
via=function(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Q)());if(g.vs("networkless_with_beacon")){c=b;var e=["method","postBody"];if(Object.keys(c).length>e.length)c=!0;else{d=0;e=g.r(e);for(var f=e.next();!f.done;f=e.next())c.hasOwnProperty(f.value)&&d++;c=Object.keys(c).length!==d}c?g.xt(a,b):Yu(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.Xu(a):g.xt(a,b)};
g.$x=function(a){this.config_=null;a?this.config_=a:Nv()&&(this.config_=g.vv())};
g.wv=function(a,b,c,d){function e(m){try{(void 0===m?0:m)&&d.retry&&!d.OL.bypassNetworkless?(f.method="POST",d.OL.writeThenSend?g.vs("use_new_nwl")?Zx().writeThenSend(l,f):tia(l,f):g.vs("use_new_nwl")?Zx().sendAndWrite(l,f):Rx(l,f)):(f.method="POST",f.postParams||(f.postParams={}),g.xt(l,f))}catch(n){if("InvalidAccessError"==n.name)Bs(Error("An extension is blocking network request."));else throw n;}}
!g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Bs(new g.$v("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.$v("innertube xhrclient not ready",b,c,d),g.zs(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,postBodyFormat:"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(m,n){if(d.onSuccess)d.onSuccess(n)},
onFetchSuccess:function(m){if(d.onSuccess)d.onSuccess(m)},
onError:function(m,n){if(d.onError)d.onError(n)},
onFetchError:function(m){if(d.onError)d.onError(m)},
timeout:d.timeout,withCredentials:!0};c="";var h=a.config_.SK;h&&(c=h);h=Jha(a.config_.UK||!1,c,d);Object.assign(f.headers,h);f.headers.Authorization&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;h={alt:"json"};a.config_.TK&&f.headers.Authorization||(h.key=a.config_.innertubeApiKey);var l=Js(""+c+b,h);g.vs("use_new_nwl")||Lx()?Xw().then(function(m){e(m)}):e(!1)};
g.Vv=function(a,b,c){c=void 0===c?{}:c;var d=g.$x;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.$x==g.$x&&(d=null);zv(a,b,d,c)};
zia=function(){var a=void 0===a?window.location.href:a;if(g.vs("kevlar_disable_theme_param"))return null;var b=bi(g.di(5,a));if(xia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Hs(a).theme;return yia.get(c)||null}catch(d){}return null};
xia=function(a){var b=Aia.map(function(c){return c.toLowerCase()});
return!g.vs("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
by=function(a,b,c){a&&(a.dataset?a.dataset[ay(b)]=String(c):a.setAttribute("data-"+b,c))};
cy=function(a){return a?a.dataset?a.dataset[ay("loaded")]:a.getAttribute("data-loaded"):null};
ay=function(a){return dy[a]||(dy[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
ey=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()};
hy=function(a){var b;g.fy()?gy()==a&&(b=document):b=a;return b&&(a=pu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
iy=function(a){return g.rb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Bia=function(){var a=document;return g.rb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.fy=function(){return!!pu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
gy=function(a){a=void 0===a?!1:a;var b=pu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
jy=function(a){g.I.call(this);this.D=[];this.Sa=a||this};
ky=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.my=function(a,b){for(;a.D.length;){var c=a.D.pop(),d=void 0;b&&ly()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
g.R=function(a){a=void 0===a?!1:a;g.I.call(this);this.Md=new g.nr(a);g.J(this,this.Md)};
ny=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
oy=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.qy=function(a,b,c,d){g.R.call(this);this.i=!!b;this.J=a;this.Z=c||a;this.S=!!d;this.C=new jy(this);g.J(this,this.C);this.D=this.K=null;this.B=this.u=!1;b&&(g.ug&&a.setAttribute("draggable","true"),a.style.touchAction="none");py(this)};
ry=function(a,b,c){a.C.T(a.Z,b,c,void 0,!a.i)};
sy=function(a){g.my(a.C,!a.i)};
py=function(a){a.D=null;a.K=null;ry(a,ty("over"),a.LL);ry(a,"touchstart",a.BG);a.i&&ry(a,ty("down"),a.YS)};
uy=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.K)return d}return null};
ty=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
vy=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.mc(b);this.assets=a.assets||{};this.attrs=a.attrs||g.mc(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||{}};
Cia=function(a){a instanceof vy||(a=new vy(a));return a};
yy=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(wy)for(c=1,d=0;d<wy.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^wy.charCodeAt(d),c++;return b};
zy=function(){for(var a=yy(16),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Ay=function(){return g.lm(yy(16),function(a){return(a&15).toString(16)}).join("")};
By=function(a){this.i=a};
g.Cy=function(a){return new By({trackingParams:a})};
Eia=function(a){var b=Dia++;return new By({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Dy=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Ey=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Fy=function(a){return g.P(Ey(void 0===a?0:a),void 0)};
g.Gy=function(a){return(a=Fy(void 0===a?0:a))?new By({veType:a,youtubeData:void 0}):null};
Hy=function(){var a=g.P("csn-to-ctt-auth-info");a||(a={},rs("csn-to-ctt-auth-info",a));return a};
g.Iy=function(a){a=void 0===a?0:a;var b=g.P(Dy(a));if(!b&&!g.P("USE_CSN_FALLBACK",!0))return null;b||!g.vs("use_undefined_csn_any_layer")&&0!=a||(b="UNDEFINED_CSN");return b?b:null};
Fia=function(a,b,c){var d=Hy();(c=g.Iy(c))&&delete d[c];b&&(d[a]=b)};
Jy=function(a){return Hy()[a]};
Ly=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.P(Dy(c))||b!==g.P(Ey(c)))Fia(a,d,c),rs(Dy(c),a),rs(Ey(c),b),b=function(){setTimeout(function(){a&&zv("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Ky,clientScreenNonce:a},g.$x)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
Gia=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Hia=function(){this.Rm=[];this.em=[]};
Oy=function(){if(!My){var a=My=new Hia;a.em.length=0;a.Rm.length=0;Ny(a,Iia)}return My};
Ny=function(a,b){b.em&&a.em.push.apply(a.em,b.em);b.Rm&&a.Rm.push.apply(a.Rm,b.Rm)};
Jia=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Py(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Py(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Py(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)};
Py=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};
Sy=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Qy(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=Jia(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Qy(e+".ve",f,h,l):0;d+=h;d+=Qy(e,a[e],b,c);if(500<d)break}}else c[b]=Ry(a),d+=c[b].length;else c[b]=Ry(a),d+=c[b].length;return d};
Qy=function(a,b,c,d){c+="."+a;a=Ry(b);d[c]=a;return c.length+a.length};
Ry=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Uv=function(a){g.Ty(a)};
g.Bz=function(a){g.Ty(a,"WARNING")};
g.Ty=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.vs("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<=Cz)){d=Kia;var e=Daa(a),f=e.message||"Unknown Error",h=e.name||"UnknownError",l=e.stack||a.u||"Not available";if(l.startsWith(h+": "+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=Sy(a.args[p],"params."+p,c,n),500<=n);p++);else if(a.hasOwnProperty("params")&&
a.params){var q=a.params;if("object"===typeof a.params)for(p in q){if(q[p]){var t="params."+p,u=Ry(q[p]);c[t]=u;n+=t.length+u.length;if(500<n)break}}else c.params=Ry(q)}if(d.length)for(p=0;p<d.length&&!(n=Sy(d[p],"params.context."+p,c,n),500<=n);p++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:f,name:h,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=Oy();p=g.r(a.em);for(d=p.next();!d.done;d=p.next())if(d=d.value,c.message&&c.message.match(d.lw)){a=d.weight;break a}a=g.r(a.Rm);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.r(Lia);for(p=a.next();!p.done;p=a.next())if(p=p.value,p.mA[c.name])for(f=g.r(p.mA[c.name]),d=f.next();!d.done;d=f.next())if(h=d.value,d=c.message.match(h.Ag)){c.params["params.error.original"]=d[0];f=h.groups;h={};for(m=0;m<f.length;m++)h[f[m]]=d[m+1],c.params["params.error."+
f[m]]=d[m+1];c.message=p.FE(h);break}c.params||(c.params={});a=Oy();c.params["params.errorServiceSignature"]="msg="+a.em.length+"&cb="+a.Rm.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.cf("sample").constructor!==af&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!Mia.has(c.message)){"ERROR"===
b?(Dz.ea("handleError",c),g.vs("record_app_crashed_web")&&0===Nia&&1===c.sampleWeight&&(Nia++,g.Vv("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"})),Oia++):"WARNING"===b&&Dz.ea("handleWarning",c);if(g.vs("kevlar_gel_error_routing")){a=b;b:{p=g.r(Pia);for(d=p.next();!d.done;d=p.next())if(Pt(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"));if(h=
c.params)for(m=g.r(Object.keys(h)),e=m.next();!e.done;e=m.next())e=e.value,f.kvPairs.push({key:"client."+e,value:String(h[e])});h=g.P("SERVER_NAME",void 0);m=g.P("SERVER_VERSION",void 0);h&&m&&(f.kvPairs.push({key:"server.name",value:h}),f.kvPairs.push({key:"server.version",value:m}));p={errorMetadata:f,stackTrace:d,logMessage:p}}p&&(g.Vv("clientError",p),("ERROR"===a||g.vs("errors_flush_gel_always_killswitch"))&&mv())}if(!g.vs("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.r(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.r(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.xt(g.P("ECATCHER_REPORT_HOST","")+"/error_204",b)}try{Mia.add(c.message)}catch(x){}Cz++}}}};
Qia=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.v(c))};
Ez=function(a){ix.call(this,1,arguments);this.csn=a};
g.Gz=function(a,b,c,d){var e=d.filter(function(f){f.csn!==b?(f.csn=b,f=!0):f=!1;return f});
c={csn:b,parentVe:c.getAsJson(),childVes:g.lm(e,function(f){return f.getAsJson()})};
d=g.r(d);for(e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.ic(e)||!e.trackingParams&&!e.veType)&&g.Bz(Error("Child VE logged with no data"));d={cttAuthInfo:Jy(b),wm:b};"UNDEFINED_CSN"==b?Fz("visualElementAttached",c,d):a?zv("visualElementAttached",c,a,d):g.Vv("visualElementAttached",c,d)};
g.Hz=function(a,b,c){b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={cttAuthInfo:Jy(a),wm:a};"UNDEFINED_CSN"==a?Fz("visualElementShown",b,c):g.Vv("visualElementShown",b,c)};
Ria=function(a,b,c,d,e){var f=(d=void 0===d?!1:d)?16:8;c={csn:b,ve:c.getAsJson(),eventType:f};e&&(c.clientData=e);d={cttAuthInfo:Jy(b),wm:b,xR:d};"UNDEFINED_CSN"==b?Fz("visualElementHidden",c,d):a?zv("visualElementHidden",c,a,d):g.Vv("visualElementHidden",c,d)};
Sia=function(a,b,c,d){var e="INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);d={cttAuthInfo:Jy(b),wm:b};"UNDEFINED_CSN"==b?Fz("visualElementGestured",c,d):a?zv("visualElementGestured",c,a,d):g.Vv("visualElementGestured",c,d)};
Tia=function(){return g.Hc(g.Wa(Math.random()+""),3)};
Fz=function(a,b,c){Iz.push({payloadName:a,payload:b,options:c});Jz||(Jz=qx(Uia,Via))};
Via=function(a){if(Iz){for(var b=g.r(Iz),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,zv(c.payloadName,c.payload,null,c.options));Iz.length=0}Jz=0};
g.Kz=function(a,b){g.Ob(b,function(c){c={csn:a,ve:c.getAsJson(),eventType:4};var d={cttAuthInfo:Jy(a),wm:a};"UNDEFINED_CSN"==a?Fz("visualElementShown",c,d):g.Vv("visualElementShown",c,d)})};
g.Lz=function(a,b){g.Ob(b,function(c){Ria(void 0,a,c,void 0,void 0)})};
g.Mz=function(a,b,c){Sia(void 0,a,b,c)};
Nz=function(){this.u=new Set;this.i=new Set;this.B=new Map};
g.Qz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Oz)():Pz())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Rz=function(a){var b=Pz(),c=(0,g.Oz)();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};
Wia=function(){var a=(0,g.Oz)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.Sz=function(a){try{var b=Pz(),c=(0,g.Oz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Tz=function(){return g.Rz("yt-remote-session-screen-id")};
g.Uz=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(Xia,""),c=c.replace(Yia,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Zia(a,b,c)};
Zia=function(a,b,c){c=void 0===c?null:c;var d=$ia(a),e=document.getElementById(d),f=e&&cy(e),h=e&&!f;f?b&&b():(b&&(f=g.dv(d,b),b=""+g.Oa(b),aja[b]=f),h||(e=bja(a,d,function(){cy(e)||(by(e,"loaded","true"),g.fv(d),g.pt(g.Pa(hv,d),0))},c)))};
bja=function(a,b,c,d){d=void 0===d?null:d;var e=g.zg("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.Nk(e,g.cr(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
$ia=function(a){var b=document.createElement("a");g.Mf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+cg(a)};
Xz=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Vz(a)||c.some(function(e){return!Vz(e)}))throw Error("Only objects may be merged.");
c=g.r(c);for(d=c.next();!d.done;d=c.next())Wz(a,d.value);return a};
Wz=function(a,b){for(var c in b)if(Vz(b[c])){if(c in a&&!Vz(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Wz(a[c],b[c])}else if(Yz(b[c])){if(c in a&&!Yz(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);cja(a[c],b[c])}else a[c]=b[c];return a};
cja=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Vz(c)?a.push(Wz({},c)):Yz(c)?a.push(cja([],c)):a.push(c);return a};
Vz=function(a){return"object"===typeof a&&!Array.isArray(a)};
Yz=function(a){return"object"===typeof a&&Array.isArray(a)};
Zz=function(a,b,c,d,e,f){g.I.call(this);this.i=a;this.u=c;this.B=d;this.D=e;this.C=f};
fja=function(a,b,c){c.ot?($z(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),dja(a.D,b)):eja(a.C,c.zl,b.slotId)};
hja=function(a,b,c,d){var e=aA(a.B.get(),1);$z(a.i.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return gja(a.u.get(),c,d,e.clientPlaybackNonce,e.vJ,e.daiEnabled,e)},b)};
cA=function(a,b,c){if(c&&c!==a.rb)return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!bA(a.Ia,c.value))return!1;return!0};
dA=function(a,b){this.Ho=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
jja=function(a){ija=void 0===a?!1:a};
S=function(a,b,c,d,e){d=void 0===d?{}:d;ija&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.$v(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.rb:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.Bz(a)}};
eA=function(a,b,c,d,e,f,h){g.I.call(this);this.B=a;this.u=b;this.vC=c;this.Na=d;this.C=e;this.i=f;this.Ha=h};
fA=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};
kja=function(a,b,c,d){this.B=a;this.me=null;this.u=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d};
gA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.Bz(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
hA=function(a,b,c){return b&&b.test(a)||lja&&c&&c.test(a)?!0:!1};
iA=function(a){return(a=mja&&mja.exec(a))?a[0]:""};
jA=function(a){var b=void 0===b?!1:b;return gA(hA(a,nja,oja),a,b,"Trusted Stream URL")};
g.kA=function(a){var b=void 0===b?!1:b;return gA(hA(a,pja,null),a,b,"Trusted Image URL")};
rja=function(a){var b=void 0===b?!1:b;return gA(hA(a,qja,null),a,b,"Trusted Ad Domain URL")};
tja=function(a){var b=void 0===b?!1:b;return gA(hA(a,sja,null),a,b,"Trusted Promoted Video Domain URL")};
vja=function(a){var b=void 0===b?!1:b;return gA(hA(a,uja,null),a,b,"Drm Licensor URL")};
xja=function(a,b){b=void 0===b?!1:b;return gA(hA(a,wja,null),a,b,"Captions URL")};
yja=function(a){a=new g.Kj(a);g.Lj(a,document.location.protocol);g.Mj(a,document.location.hostname);document.location.port&&g.Nj(a,document.location.port);return a.toString()};
lA=function(a){a=new g.Kj(a);g.Lj(a,document.location.protocol);return a.toString()};
g.nA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=zja++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||mA.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.mm(d.thumbnails,function(e){return g.kA(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Aja=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Bja=function(a,b){switch(a.style){case mA.CHAPTER_MARKER:return b?8:5;case mA.AD_MARKER:return 6;case mA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.oA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.pA=function(a){return"crn_"+a};
g.qA=function(a){return"crx_"+a};
rA=function(a,b,c,d,e){g.nA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
sA=function(a){return"AD_PLACEMENT_KIND_START"==a.i};
Cja=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i};
Dja=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new kr(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new kr(Math.max(0,b.B-b.i),0x7ffffffffffff):new kr(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new kr(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.me;a=1E3*d.startSecs;if(c){if(a<b.u)return new kr(a-4E3,a);c=Math.max(0,a-b.u-1E4);return new kr(b.C?b.u:Math.floor(b.u+Math.random()*c),a)}return new kr(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
tA=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.uA=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.r(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.vA=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=yg("B",null,h||l));d.italics&&(h=yg("I",null,h||l));d.strikethrough&&(h=yg("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=yg("A",null,h||l),g.Mf(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||yg("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:yg("SPAN",null,b)};
wA=function(a,b){ix.call(this,1,arguments)};
xA=function(a,b){ix.call(this,1,arguments);this.i=a};
Eja=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
zA=function(a){var b=yA(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};
Fja=function(){var a;if(g.vs("csi_use_performance_navigation_timing")){var b,c,d,e=null===(d=null===(c=null===(b=null===(a=null===AA||void 0===AA?void 0:AA.getEntriesByType)||void 0===a?void 0:a.call(AA,"navigation"))||void 0===b?void 0:b[0])||void 0===c?void 0:c.toJSON)||void 0===d?void 0:d.call(c);e?(e.requestStart=BA(e.requestStart),e.responseEnd=BA(e.responseEnd),e.redirectStart=BA(e.redirectStart),e.redirectEnd=BA(e.redirectEnd),e.domainLookupEnd=BA(e.domainLookupEnd),e.connectStart=BA(e.connectStart),
e.connectEnd=BA(e.connectEnd),e.responseStart=BA(e.responseStart),e.secureConnectionStart=BA(e.secureConnectionStart),e.domainLookupStart=BA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=AA.timing}else a=AA.timing;return a};
CA=function(){return g.vs("csi_use_time_origin")&&AA.timeOrigin?Math.floor(AA.timeOrigin):AA.timing.navigationStart};
BA=function(a){return Math.round(CA()+a)};
DA=function(a,b){g.Fa("ytglobal.timing"+(b||"")+"ready_",a,void 0)};
Gja=function(a){g.Fa("yt.timing.pingSent_",a,void 0)};
EA=function(a){return g.Ga("ytcsi."+(a||"")+"data_")||Hja(a)};
FA=function(a){a=EA(a);a.info||(a.info={});return a.info};
yA=function(a){a=EA(a);a.tick||(a.tick={});return a.tick};
GA=function(a){var b=EA(a).nonce;b||(b=zy(),EA(a).nonce=b);return b};
Hja=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b,void 0);return b};
Kja=function(a){var b=yA(a||""),c=zA(a);c&&!Ija&&(lx(Jja,new wA(Math.round(c-b._start),a)),Ija=!0)};
Lja=function(){if(AA.getEntriesByType){var a=AA.getEntriesByType("paint");if(a=g.rb(a,function(b){return"first-paint"===b.name}))return BA(a.startTime)}a=AA.timing;
return a.dT?Math.max(0,a.dT):0};
HA=function(){var a=g.Ga("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a,void 0),g.Fa("ytcsi.reference",{},void 0));return a};
IA=function(a){a=a||"";var b=Mja();if(b[a])return b[a];var c=HA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
JA=function(a){a=a||"";var b=Mja();b[a]&&delete b[a];var c=HA(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);b[a]=d};
Mja=function(){var a=g.Ga("ytcsi.reference");if(a)return a;HA();return g.Ga("ytcsi.reference")};
KA=function(){this.i=0};
LA=function(){KA.i||(KA.i=new KA);return KA.i};
NA=function(a,b){MA[b]=MA[b]||{count:0};var c=MA[b];c.count++;c.time=(0,g.Q)();a.i||(a.i=Ku(0,function(){var d=(0,g.Q)(),e;for(e in MA)MA[e]&&6E4<d-MA[e].time&&delete MA[e];a&&(a.i=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.$v("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.Bz(c)),!0):!1};
OA=function(a){return!!g.P("FORCE_CSI_ON_GEL",!1)||g.vs("csi_on_gel")||g.vs("enable_csi_on_gel")||g.vs("unplugged_tvhtml5_csi_on_gel")||!!EA(a).useGel};
Nja=function(a,b,c){var d=PA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.Q)();if(OA(c)){IA(c||"").tick[a]=b||(0,g.Q)();d=GA(c);var e=EA(c).cttAuthInfo;"_start"===a?(a=LA(),NA(a,"baseline_"+d)||g.Vv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):LA().tick(a,d,b,e);Kja(c);return!0}return!1};
Sja=function(a,b,c){c=PA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in Oja){c=Oja[a];g.ub(Pja,c)&&(b=!!b);a in Qja&&"string"===typeof b&&(b=Qja[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return Xz({},d)}g.ub(Rja,a)||g.Bz(new g.$v("Unknown label logged with GEL CSI",a))};
PA=function(a){a=EA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Tja=function(a){a=PA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
Vja=function(a){if(OA(a)){var b={actionType:Uja[g.P((a||"")+"TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",previousAction:Uja[g.P("PREVIOUS_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN"},c=g.Iy();c&&(b.clientScreenNonce=c);c=GA(a);a=EA(a).cttAuthInfo;LA().info(b,c,a)}};
QA=function(a){Hja(a);Wja();a||(g.P("TIMING_ACTION")&&rs("PREVIOUS_ACTION",g.P("TIMING_ACTION")),rs("TIMING_ACTION",""),Gja(!1))};
TA=function(a,b,c){c=c?c:a;RA("c",c);JA(c);QA(c);EA(c).useGel=!0;IA(c||"").info.actionType=a;rs(c+"TIMING_ACTION",a);SA("c",b,c);Vja(c);DA(!0,c)};
SA=function(a,b,c){g.UA("yt_sts",a,c);VA("_start",b,c)};
g.UA=function(a,b,c){null!==b&&(FA(c)[a]=b,OA(c)?(a=Sja(a,b,c))&&WA(a,c):IA(c||"").info[a]=b)};
WA=function(a,b){if(OA(b)){var c=IA(b||"");Xz(c.info,a);Xz(Tja(b),a);c=GA(b);b=EA(b).cttAuthInfo;LA().info(a,c,b)}};
VA=function(a,b,c){var d=yA(c);if(!b&&"_"!==a[0]){var e=a;AA.mark&&(Za(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),AA.mark(e))}e=b||(0,g.Q)();d[a]=e;Nja(a,b,c)||c||(Xja(),IA("").tick[a]=b||(0,g.Q)());return d[a]};
Yja=function(a){var b="above_the_fold";AA&&AA.measure&&(Za(b,"measure_")||(b="measure_"+b),a?AA.measure(b,a):AA.measure(b))};
XA=function(a,b){b=yA(b);return a in b};
YA=function(a,b,c){XA("_start",c)&&!XA(a,c)&&VA(a,b,c)};
Xja=function(){if(!g.Ga("yt.timing.pingSent_")){var a=g.P("TIMING_ACTION",void 0),b=yA();if(g.Ga("ytglobal.timingready_")&&a&&XA("_start")&&zA()){Kja();a=!0;var c=g.P("TIMING_WAIT",[]);if(c.length)for(var d=0,e=c.length;d<e;++d)if(!(c[d]in b)){a=!1;break}a&&ZA()}}};
Zja=function(){switch(ou()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
ZA=function(){if(!OA()){var a=yA(),b=FA(),c=a._start,d=g.P("CSI_SERVICE_NAME","youtube"),e={v:2,s:d,action:g.P("TIMING_ACTION",void 0)},f=b.srt;void 0!==a.srt&&delete b.srt;a.aft=zA();var h=yA(void 0),l=h.pbr,m=h.vc;h=h.pbs;if(l=l&&m&&h&&l<m&&m<h)l=!!FA(void 0).yt_pvis;l&&"youtube"===d&&(g.UA("yt_lt","hot_bg"),d=a.vc,l=a.pbs,delete a.aft,b.aft=Math.round(l-d));for(var n in b)"_"!==n.charAt(0)&&(e[n]=b[n]);a.ps=(0,g.Q)();n={};d=[];for(var p in a)"_"!==p.charAt(0)&&(l=Math.round(a[p]-c),n[p]=l,d.push(p+
"."+l));e.rt=d.join(",");a=!!b.ap;b="";for(var q in e)e.hasOwnProperty(q)&&(b+="&"+q+"="+e[q]);e="/csi_204?"+b.substring(1);window.navigator&&a?Yu(e):g.Xu(e);Gja(!0);lx($A,new xA(n.aft+(Number(f)||0)))}};
RA=function(a,b){b||OA()?XA("_start",b)&&VA("aa",void 0,b):g.Ga("yt.timing.pingSent_")||(b=g.P("CSI_SERVICE_NAME","youtube"),g.P("TIMING_ACTION",void 0)&&b&&(VA("aa",void 0),g.UA("ap",1),g.UA("yt_fss",a),ZA()))};
$ja=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);Of()&&a.setAttribute("nonce",Of());return c?(a=AA.getEntriesByName(c))&&a[0]&&(a=a[0],c=CA(),VA("rsf_"+b,c+Math.round(a.fetchStart)),VA("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
aka=function(){var a=window.location.protocol,b=AA.getEntriesByType("resource");b=g.Do(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=nm(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(VA("wffs",BA(b.startTime)),VA("wffe",BA(b.responseEnd)))};
aB=function(){if(g.Vw)return!1;if(g.St()){var a=Ot();if(16<=a&&17>a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)};
bB=function(a){if(a.Av())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
cB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
dB=function(a,b){this.id=a;this.Bc=b;this.captionTracks=[];this.i=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
eB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.i=b||0};
fB=function(a,b){return a.u===b.u&&a.i===b.i&&a.B===b.B&&a.reason===b.reason};
hB=function(a,b,c,d){return new eB(g.gB[a]||0,g.gB[b]||0,c,d)};
iB=function(a){var b=g.gB.auto;return a.u===b&&a.i===b};
kB=function(a){return jB[a.i||a.u]||"auto"};
bka=function(a,b){b=g.gB[b];return a.u<=b&&(!a.i||a.i>=b)};
lB=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.r(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Bc&&!a.has(c.Bc.id)){var d=new dB(c.id,c.Bc);a.add(c.Bc.id);this.audioTracks.push(d)}}};
oB=function(a,b,c,d,e){var f=[],h=new Set,l=a.ya||a.qb,m={};if(mB(c)){for(var n in c.i)c.i.hasOwnProperty(n)&&(d=c.i[n],m[d.info.i]=[d.info]);return m}for(var p in c.i)if(c.i.hasOwnProperty(p)){n=c.i[p];var q=n.info.lc();if(""===n.info.i)f.push(q),f.push("unkn");else if("304"!==q&&"266"!==q||!a.eb)if(a.J&&n.info.video&&n.info.video.i>a.J)f.push(q),f.push("max"+a.J);else if(a.K&&n.info.video&&n.info.video.i<a.K)f.push(q),f.push("min"+a.K);else if(a.jb&&"h"===n.info.i&&n.info.video&&1080<n.info.video.i)f.push(q),
f.push("blkhigh264");else if(a.kb&&n.info.video&&4320<=n.info.video.i&&32<n.info.video.fps)f.push(q),f.push("blk8khfr");else{var t=b.i.get(n.info.i);t=t&&0<t.NF;l&&t?(h.add(n.info.i),f.push(q),f.push("byerr")):(t=cka(b,n.info),!0!==t?(f.push(q),f.push(t)):"(h"!==n.info.i||b.C?a.La||"o"!==n.info.i&&"O"!==n.info.i||!g.Si||!Pt("crkey")?(t="MAC3"===n.info.i||"MEAC3"===n.info.i||"M"===n.info.i,c.isLive&&t&&!a.Sa?(f.push(q),f.push("blk51live")):(m[n.info.i]=m[n.info.i]||[],m[n.info.i].push(n.info))):(f.push(q),
f.push("opchr")):(f.push(q),f.push("enchdr")))}else f.push(q),f.push("blk2khfr")}e&&(d(f.join(".")),c="bfflt."+nB(m),d(c));for(var u in m)m.hasOwnProperty(u)&&(c=u,m[c]&&m[c][0].isVideo()&&(m[c]=dka(a,m[c]),m[c]=eka(b,m[c])));if(l)for(a=g.r(h.values()),h=a.next();!h.done;h=a.next())(h=b.i.get(h.value))&&--h.NF;b=g.Ub(m,function(x){return!!x.length});
e&&(m="aftflt."+nB(m),d(m));return b};
pB=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
nB=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(pB(d));d=g.r(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.lc())}return b.join(".")};
fka=function(a,b,c,d,e){var f={},h=[];g.Tb(b,function(l,m){l=l.filter(function(n){var p=n.lc();if(!n.zd)return h.push(p),h.push("noenc"),!1;if("("===n.i||"(h"===n.i){if(a.u&&c&&"widevine"===c.flavor){var q=n.mimeType+"; experimental=allowed";q=!!n.zd[c.flavor]&&!!c.i[q];q||(n=n.zd[c.flavor]?"unspt":"noflv",h.push(p),h.push(n));return q}if(!qB(a,rB.CRYPTOBLOCKFORMAT)&&!a.ma||a.Z)return h.push(p),h.push(a.Z?"disvp":"vpsub"),!1}return c&&n.zd[c.flavor]&&c.i[n.mimeType]?!0:(n=c?n.zd[c.flavor]?"unspt":
"noflv":"nosys",h.push(p),h.push(n),!1)});
l.length&&(f[m]=l)});
d&&h.length&&e(h.join("."));return f};
jka=function(a,b,c,d,e){function f(u){return!!l[u]}
var h=a.D||!!d,l=oB(a,b,c,e,h);sB(c)&&(l=fka(b,l,d,h,e),h&&(b="enflt."+nB(l),e(b)));if(mB(c))return e=g.rb(Object.values(l),function(u){return!!u.length&&!!u[0].audio}),h=g.rb(Object.values(l),function(u){return!!u.length&&!!u[0].video}),e&&h||Ft(),Gt(new lB(h,e));
b=gka(a);h&&e("audioPrefOrder."+b.join("_"));b=g.rb(b,f);if(!b)return h&&e("noaudio"),Ft();b=l[b];l["9"]&&l.h&&c.tf&&!a.Ua&&(h&&e("dltvp9"),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 q=[],t=[];if(a.Aa&&!a.i)for(t=hka(c)?l["1h"]||l["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],h&&e("newhybpref."+t.join(".")),n=g.r(t),p=n.next();!p.done;p=n.next())q=
q.concat(l[p.value]).filter(function(u){return u});
else 0<a.B&&p&&n&&(t=[m,d],q=n.concat(p).filter(function(u){return u}));
if(q.length&&!a.i){tB(q,b,t);if(h){h=[];a=g.r(q);for(c=a.next();!c.done;c=a.next())h.push(c.value.lc());e("hbdfmt."+h.join("."))}return Gt(new lB(q,b))}q=ika(a);q=g.rb(q,f);if(!q){if(l[m]&&a.Eb)return e=l[m],tB(e,b),Gt(new lB(e,b));h&&e("novideo");return Ft()}a.Mb&&("1"===q||"1h"===q)&&l[d]&&(m=uB(l[q]),uB(l[d])>m&&(q=d));"9"===q&&l.h&&(d=uB(l["9"]),uB(l.h)>1.5*d&&(q="h"));a.xb&&c.isLive&&"("===q&&l.H&&1440>uB(l["("])&&(q="H");h&&e("vfmly."+pB(q));a=l[q];if(!a.length)return h&&e("novfmly."+pB(q)),
Ft();tB(a,b);return Gt(new lB(a,b))};
tB=function(a,b,c){c=void 0===c?[]:c;g.Lb(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 h=c.indexOf(e.i)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.Nb-d.Nb);return f});
g.Lb(b,function(d,e){return e.Nb-d.Nb})};
eka=function(a,b){var c=nm(b,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(b=a.K&&(a.Y||qB(a,rB.FRAMERATE))?g.Do(b,function(d){return 32<d.video.fps||d.video.width<c}):g.Do(b,function(d){return!(32<d.video.fps)}));
Ut()&&(b=g.Do(b,function(d){return"299"!==d.lc()}));
return b};
dka=function(a,b){return b=g.Do(b,function(c){return c.video.i<=a.zb})};
uB=function(a){return nm(a,function(b,c){return Math.max(b,c.video.i)},0)};
kka=function(a){a=void 0===a?{}:a;var b=void 0===a.Dk?!1:a.Dk,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.nG?!1:a.nG;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&aB()?3:2:c&&d?-1:1};
lka=function(a){return kka({hasSubfragmentedFmp4:a.D.dg,Dk:a.D.dg,defraggedFromSubfragments:a.Il,isManifestless:!0,nG:a.La})};
mka=function(a){a=a.split("");vB.Cu(a,6);vB.bo(a,37);vB.wi(a,3);vB.Cu(a,8);vB.wi(a,1);vB.Cu(a,56);vB.wi(a,1);vB.bo(a,9);return a.join("")};
g.wB=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.i={};this.url=""};
yB=function(a){xB(a);return a.C};
zB=function(a){return a.u?Za(a.u,"local"):"local"===a.B};
nka=function(a){xB(a);return g.Wb(a.i,function(b){return null!==b})};
oka=function(a){xB(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
AB=function(a){xB(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=a.Wd();b=new g.Kj(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.Mj(b,(0===c.indexOf("rr")?"rr":"r")+d+"---"+a[1]+e);b=new g.wB(b.toString());b.set("fallback_count","1");return b}d=b.i.match("\\.a1\\.googlevideo\\.com$");b.i.match("\\.googlevideo\\.com$")?(g.Mj(b,"redirector.googlevideo.com"),c=b.toString()):
b.i.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Mj(b,"www.youtube.com"),c=b.toString()):c=yja(c);b=new g.wB(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
xB=function(a){if(a.u){if(!jA(a.u)&&!a.u.startsWith("local"))throw Error("Untrusted URL: "+a.u);var b=g.Tj(a.u);a.B=b.C;a.C=b.i+(null!=b.B?":"+b.B:"");var c=b.getPath();if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.i;a.i=pka(c);
Object.assign(a.i,BB(b.u.toString()));Object.assign(a.i,d);"index.m3u8"===a.i.file&&(delete a.i.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=hha(b),a.set("n",b))}};
qka=function(a){xB(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(nka(a)){var c=[];g.Tb(a.i,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
pka=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&rka(c,a[b],a[b+1]);return c};
BB=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?rka(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
rka=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};
CB=function(a,b,c,d,e,f,h,l,m,n){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.i=void 0===m?null:m;this.me=n;this.endTime=b+c;this.u=h||0;this.range=f||null;this.pending=l||!1;this.me=n||null};
DB=function(){this.segments=[]};
ska=function(a,b){if(b>a.getLastSegmentNumber())a.segments=[];else{var c=qb(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
EB=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
FB=function(a){return String.fromCharCode.apply(null,a)};
GB=function(a){return window.TextDecoder?(new TextDecoder).decode(a):FB(a)};
HB=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.u=e)?0:8;this.dataOffset=this.offset+this.i};
IB=function(a){var b=a.data.getUint8(a.offset+a.i);a.i+=1;return b};
JB=function(a){var b=a.data.getUint16(a.offset+a.i);a.i+=2;return b};
KB=function(a){var b=a.data.getInt32(a.offset+a.i);a.i+=4;return b};
LB=function(a){var b=a.data.getUint32(a.offset+a.i);a.i+=4;return b};
MB=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};
NB=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 GB(b)};
tka=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
OB=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};
QB=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.i=PB(this,"Sequence-Number");this.J=PB(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=PB(this,"Ingestion-Walltime-Us")/1E6;this.u=(PB(this,"First-Frame-Time-Us")+PB(this,"First-Frame-Uncertainty-Us"))/1E6;this.Mi=PB(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=PB(this,"Crypto-Period-Index");
this.B=PB(this,"Crypto-Period-Seconds")};
vka=function(a){var b;a.data["Cuepoint-Type"]?b=new fA(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",uka[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):b=null;return b};
wka=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
PB=function(a,b){return Number(a.data[b])||0};
xka=function(a,b){this.i=a;this.duration=b};
yka=function(a,b,c,d,e){this.u=e;this.i=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
RB=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};
zka=function(a,b){var c=g.SB(a,0,1952868452);a=g.SB(a,0,1953658222);if(c&&a){c.skip(1);var d=IB(c)<<16|JB(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.i;var e=LB(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=IB(a)<<16|JB(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=LB(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.i,h=LB(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
UB=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.SB(a,0,1836476516))?g.TB(a):NaN};
Aka=function(a){var b=g.SB(a,0,1937011556);if(!b)return null;b=VB(a,b.dataOffset+8,1635148593);if(!b)return null;var c=VB(a,b.dataOffset+78,1936995172),d=VB(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),IB(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=VB(a,d.dataOffset,1886547818)){var h=VB(a,d.dataOffset,1886546020),l=VB(a,d.dataOffset,2037673328);if(!l&&(l=VB(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
KB(h)/65536,f=KB(h)/65536,e=KB(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new yka(b,c,f,e,a)}return null};
VB=function(a,b,c){for(;WB(a,b);){var d=XB(a,b);if(d.type===c)return d;b+=d.size}return null};
g.SB=function(a,b,c){for(;WB(a,b);){var d=XB(a,b);if(d.type===c)return d;b=YB(d.type)?b+8:b+d.size}return null};
g.ZB=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)};
XB=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new HB(a,b,c,d)};
g.TB=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
Bka=function(a){a=new HB(a.data,a.offset,a.size,a.type,a.u);var b=IB(a);a.skip(7);var c=LB(a);if(0===b){b=LB(a);var d=LB(a)}else b=MB(a),d=MB(a);a.skip(2);for(var e=JB(a),f=[],h=[],l=0;l<e;l++){var m=LB(a);f.push(m);h.push(LB(a));a.skip(4)}return{tG:c,tR:b,DR:d,BW:f,oG:h}};
WB=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};
YB=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
Cka=function(a){a.skip(4);return{QW:NB(a,0),value:NB(a,0),tG:LB(a),Kaa:LB(a),saa:LB(a),id:LB(a),FL:NB(a),offset:a.offset}};
$B=function(a,b){for(var c=VB(a,0,b);c;)c.markAsSkip(),c=VB(a,c.offset+c.size,b)};
g.aC=function(a,b){for(var c=0,d=[];WB(a,c);){var e=XB(a,c);e.type===b&&d.push(e);c=YB(e.type)?c+8:c+e.size}return d};
Eka=function(a,b){var c=g.SB(a,0,1937011556),d=g.SB(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.SB(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 tka(a.byteLength+b);OB(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;OB(d,a,c.offset+16,c.size-16);OB(d,e,e.byteOffset+f.dataOffset+8,b);OB(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.SB(a,0,e.value),d.data.setUint32(e.offset,e.size+b);if(Dka)return d.data;a=g.SB(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
bC=function(a,b){this.u=a;this.i=0;this.start=b||0};
cC=function(a){return a.i>=a.u.byteLength};
hC=function(a,b,c){var d=new bC(c);if(!dC(d,a))return!1;d=eC(d);if(!fC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=gC(d,!0);d=a+(d.start+d.i-b)+e;d=9<d?Fka(d-9,8):Fka(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Gka=function(a){var b=new bC(a);iC(b);if(dC(b,[408125543,374648427,174,224]))b=eC(b);else return null;for(var c=a=null;!cC(b);){var d=gC(b,!1);if(21432===d)switch(jC(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=eC(b):kC(b)}if(!c)return null;for(var e,f=d=b=null;!cC(c);)switch(gC(c,!1)){case 30321:if(3!==jC(c))return null;break;case 30324:b=lC(c);break;case 30323:f=lC(c);break;case 30325:d=lC(c);break;case 30322:e=gC(c,!0);e=mC(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:kC(c)}return e?new yka(a,b,f,d,e):null};
eC=function(a){var b=gC(a,!0),c=a.u.byteOffset+a.i;c=new DataView(a.u.buffer,c,Math.min(b,a.u.buffer.byteLength-c));c=new bC(c,a.start+a.i);a.i+=b;return c};
jC=function(a){for(var b=gC(a,!0),c=nC(a),d=1;d<b;d++)c=256*c+nC(a);return c};
lC=function(a){var b=gC(a,!0),c=0;4===b?c=a.u.getFloat32(a.i):8===b&&(c=a.u.getFloat64(a.i));a.i+=b;return c};
Hka=function(a){var b=gC(a,!0);return GB(mC(a,b))};
nC=function(a){return a.u.getUint8(a.i++)};
gC=function(a,b){var c=nC(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+nC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+nC(a),d*=128;return b?c-d:c};
kC=function(a){var b=gC(a,!0);a.i+=b};
iC=function(a){var b=a.i;a.i=0;var c=!1;try{fC(a,440786851)&&(a.i=0,fC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.Bz(d);else throw d;}a.i=b;return c};
Ika=function(a){if(!fC(a,440786851,!0))return null;var b=a.i;gC(a,!1);var c=gC(a,!0)+a.i-b;a.i=b+c;if(!fC(a,408125543,!1))return null;gC(a,!0);if(!fC(a,357149030,!0))return null;var d=a.i;gC(a,!1);var e=gC(a,!0)+a.i-d;a.i=d+e;if(!fC(a,374648427,!0))return null;var f=a.i;gC(a,!1);var h=gC(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer,
a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,h),c+12+e);return l};
oC=function(a){var b=a.i;a.i=0;var c=1E6;dC(a,[408125543,357149030,2807729])&&(c=jC(a));a.i=b;return c};
Jka=function(a,b){var c=a.i;a.i=0;if(160!==a.u.getUint8(a.i)&&!pC(a)||!fC(a,160))return a.i=c,NaN;gC(a,!0);var d=a.i;if(!fC(a,161))return a.i=c,NaN;gC(a,!0);nC(a);var e=nC(a)<<8|nC(a);a.i=d;if(!fC(a,155))return a.i=c,NaN;d=jC(a);a.i=c;return(e+d)*b/1E9};
pC=function(a){if(!Kka(a)||!fC(a,524531317))return!1;gC(a,!0);return!0};
Kka=function(a){if(iC(a)){if(!fC(a,408125543))return!1;gC(a,!0)}return!0};
dC=function(a,b){for(var c=0;c<b.length;c++){if(!fC(a,b[c]))return!1;c!==b.length-1&&gC(a,!0)}return!0};
fC=function(a,b,c){c=void 0===c?!1:c;if(cC(a))return!1;for(var d=a.i;gC(a,!1)!==b;)if(kC(a),d=a.i,cC(a))return!1;c&&(a.i=d);return!0};
Fka=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};
mC=function(a,b){var c=new Uint8Array(a.u.buffer,a.u.byteOffset+a.i,b);a.i+=b;return c};
qC=function(a){this.hg=a;this.i={};this.url=""};
Lka=function(a,b){var c=b.indexOf("?");if(0<c){var d=BB(b.substr(c+1));g.Tb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=pka(b);g.Tb(b,function(e,f){this.set(f,e)},a)};
Mka=function(a){var b=a.hg.Wd(),c=[];g.Tb(a.i,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=nka(a.hg)?"&":"?";return b+a+d};
rC=function(a,b){var c=new g.wB(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Tb(a.i,function(d,e){c.set(e,null)});
return c};
Nka=function(){this.u=this.i=this.timedOut=this.started=this.B=0};
Oka=function(a){a.B=(0,g.Q)();a.started+=1};
Pka=function(a,b,c){var d=a.started+4*a.i;c&&(d+=a.u);return Math.pow(b.Zg,d)};
sC=function(a,b){a[b]||(a[b]=new Nka);return a[b]};
Qka=function(a){this.B=null;this.J=this.C=this.u=0;this.i=a;this.D=a.clone()};
uC=function(a,b){var c=sC(b,yB(a.i));if(1<=c.timedOut||1<=c.i)if(a=tC(a),b=sC(b,yB(a)),b.timedOut+b.i<=c.timedOut+c.i)return!0;return!1};
Rka=function(a,b){a=b?tC(a):a.i;return new qC(a)};
tC=function(a){a.B||(a.B=AB(a.D));return a.B};
vC=function(a,b){return yB(b?tC(a):a.i)};
Ska=function(a,b){var c=a.C+b.Lp*(a.u-a.C);b=c>b.gf?1E3*Math.pow(b.Zg,c-b.gf):0;return 0===b?!0:a.J+b<(0,g.Q)()};
wC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.C=!1;this.D=null;this.S=0;this.J=this.B=null;this.info=b;this.u=new Qka(a)};
xC=function(a,b){var c=g.r(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)};
yC=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
zC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new yC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
AC=function(a,b){return new yC(a,a+b-1)};
Tka=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
CC=function(a,b,c,d,e,f,h,l,m,n,p){this.type=a;this.i=b;this.range=c;this.S=[];this.J="";this.Ma=-1;this.J=void 0===d?"":d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Cb=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.B=!!n;a=this.range?this.Cb+this.u===this.range.length:void 0===p?!!this.u:p;this.Qd=a;this.range?(this.C=this.startTime+this.duration*this.Cb/this.range.length,this.K=this.duration*this.u/this.range.length,this.D=this.C+this.K):Uka(this);3!==this.type||0<=
this.Ma||!this.i.Pg()||g.Bz(new g.$v("b168859904",BC(this)))};
Uka=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
Vka=function(a,b,c){var d=!(!b||b.i!==a.i||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Cb+b.u===a.Cb+a.u:d};
DC=function(a){return 1===a.type||2===a.type};
EC=function(a){return 3===a.type||6===a.type};
FC=function(a,b){return a.i===b.i?a.range&&b.range?a.range.start+a.Cb+a.u===b.range.start+b.Cb:a.Ma===b.Ma?a.Cb+a.u===b.Cb:a.Ma+1===b.Ma&&0===b.Cb&&a.Qd:!1};
GC=function(a,b){return FC(a,b)||Tf(a.D,b.C)||a.Ma+1===b.Ma&&0===b.Cb&&a.Qd?!0:!1};
Wka=function(a){1===a.length||g.mm(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new yC(a[0].range.start+a[0].Cb,b.range.start+b.Cb+b.u-1)};
BC=function(a){a=HC(a);var b="";g.Tb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
HC=function(a){var b={};b.itag=a.i.info.lc();b.type=""+a.type;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Cb)+"-"+(a.range.start+a.Cb+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Cb);b.len=String(a.u);a.Qd&&(b.end="1");a.B&&(b.eos="1");return b};
Xka=function(a,b){return a.i!==b.i?!1:4===a.type&&3===b.type&&a.i.Re()?(a=a.i.Ww(a),on(a,function(c){return Xka(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Cb+b.u>a.Cb&&b.Cb+b.u<=a.Cb+a.u};
Yka=function(a,b){var c=b.i;a.J="updateWithEmsg";a.Ma=c;b.C&&(a.B=b.C)};
IC=function(a,b){var c=b.Ma;a.J="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Uka(a)};
JC=function(a,b){this.i=a;this.B=null;this.D=this.Oe=NaN;this.J=this.requestId=null;this.u=a[0].i.u;this.C=b||"";this.range=this.i[0].range&&0<this.i[0].u?Wka(this.i):null};
KC=function(a){return!DC(a.i[a.i.length-1])};
LC=function(a){return 4===a.i[a.i.length-1].type};
g.MC=function(a,b,c){if(a.B){var d=new qC(a.B);b.Gq&&(d.get("alr")||d.set("alr","yes"));a.C&&Lka(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new qC(new g.wB(a.C)):(b=null===a.J?uC(a.u,c):a.J,d=Rka(a.u,b),a.C&&Lka(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.Oe)||d.set("headm",a.Oe.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Tb(a.urlParams,function(e,f){d.set(f,e)});
return d};
Zka=function(a){if(a.range)return a.range.length;a=a.i[0];return Math.round(a.K*a.i.info.Nb)};
$ka=function(a,b){var c=a.i[0];if(a.range)var d=AC(a.range.start,Math.min(4096,a.range.length));else{if(a.C&&0<=a.C.indexOf("/range/")||"1"===a.u.D.get("defrag")||"1"===a.u.D.get("otf"))return null;d=AC(0,4096)}d=new CC(5,c.i,d,"createProbeRequestInfo"+c.J,c.Ma);a=new JC([d],a.C);a.J=b;return a};
NC=function(a,b,c,d,e,f){f=void 0===f?0:f;wC.call(this,a,b,d,void 0);this.Z=c;this.Mi=f;this.K=!0;this.index=e||new DB;this.Tt()&&(this.C=!0)};
ala=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.durationSecs=c;this.i=d||NaN;this.u=e||NaN};
OC=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""};
PC=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
bla=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};
dla=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
QC=function(){this.i=[];this.u=null;this.J=0;this.B=[];this.D=!1;this.K="";this.C=-1};
ela=function(a){var b=a.B;a.B=[];return b};
fla=function(){this.C=[];this.i=null;this.u={};this.B={}};
jla=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"===f.nodeName?h=gla(a):"AdaptationSet"===f.nodeName?(f=f.getAttribute("id")||f.getAttribute("mimetype")||"",h=hla(a,f)):"Representation"===f.nodeName&&(f=f.getAttribute("id")||"",h=ila(a,f));if(null==h)return;h.update(e,c);Eb(d,ela(h))}Eb(a.C,d);naa(a.C,function(l){return 1E3*l.startSecs+l.i})};
kla=function(a){a.i&&(a.i.i=[]);g.Tb(a.u,function(b){b.i=[]});
g.Tb(a.B,function(b){b.i=[]})};
gla=function(a){a.i||(a.i=new QC);return a.i};
hla=function(a,b){a.u[b]||(a.u[b]=new QC);return a.u[b]};
ila=function(a,b){a.B[b]||(a.B[b]=new QC);return a.B[b]};
RC=function(a){var b=void 0===a?{}:a;a=void 0===b.Mi?0:b.Mi;var c=void 0===b.jk?!1:b.jk,d=void 0===b.Jl?0:b.Jl,e=void 0===b.ue?0:b.ue,f=void 0===b.wg?Infinity:b.wg,h=void 0===b.hw?0:b.hw;b=void 0===b.Ze?!1:b.Ze;this.segments=[];this.i=this.Ut=-1;this.u=null;this.Fg=a;this.Jl=d;this.jk=c;this.ue=e;this.wg=f;this.hw=h;this.Ze=b};
TC=function(a,b,c){b=SC(a,b);return 0<=b&&(c||!a.segments[b].pending)};
SC=function(a,b){return Kb(a.segments,function(c){return b-c.Ma})};
UC=function(a,b,c){c=void 0===c?{}:c;NC.call(this,a,b,"",void 0,void 0,c.Mi||0);this.index=new RC(c)};
VC=function(a,b,c){wC.call(this,a,b);this.K=c;this.index=new DB};
lla=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.Nb*f;var h=b===a.index.getLastSegmentNumber()&&0<c;a=new CC(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c,h);return new JC([a],d)};
mla=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.J;b=b.K.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new CB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
WC=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)};
XC=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
YC=function(a){var b=this;a=void 0===a?[]:a;this.i=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
nla=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};
ZC=function(a,b){b=g.r(b.i);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
$C=function(a){a.C=void 0;a.u=0;a.B=0};
aD=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.i[a.u].length};
ola=function(a){if(!a.C){var b=a.i[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
pla=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!aD(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.i[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.u-d+1,e);$C(a);a.focus(b)}d=a.i[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
bD=function(a,b,c){a=pla(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
qla=function(a){a=bD(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};
cD=function(a,b){a.focus(b);return a.i[a.u][b-a.B]};
rla=function(a,b){a.focus(b);return aD(a,b,4)?ola(a).getUint32(b-a.B):256*(256*(256*cD(a,b)+cD(a,b+1))+cD(a,b+2))+cD(a,b+3)};
dD=function(a,b,c){this.info=a;this.B=c;this.u=null;this.C=-1;this.timestampOffset=0;this.i=b instanceof YC?b:new YC([b])};
eD=function(a){return pla(a.i)};
sla=function(a,b){if(1!==a.info.i.info.containerType||a.info.Cb||!a.info.Qd)return!0;a=eD(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};
tla=function(a,b){b=Math.min(b,a.info.u);var c=a.i.split(b),d=c.lz;c=c.Fq;var e=new CC(a.info.type,a.info.i,a.info.range,a.info.J,a.info.Ma,a.info.startTime,a.info.duration,a.info.Cb,b,!1,!1);d=new dD(e,d,a.B);a=new CC(a.info.type,a.info.i,a.info.range,a.info.J,a.info.Ma,a.info.startTime,a.info.duration,a.info.Cb+b,a.info.u-b,a.info.B,a.info.Qd);a=new dD(a,c,!1);return[d,a]};
ula=function(a,b,c){var d;if(!(d=!FC(a.info,b.info)||a.info.Qd)){if(c=void 0===c?!1:c)c=b.i,c=!(c.i.length?nla(a.i,c.i[0]):1);d=c}if(d)return null;c=new CC(a.info.type,a.info.i,a.info.range,a.info.J,a.info.Ma,a.info.startTime,a.info.duration,a.info.Cb,a.info.u,a.info.B,a.info.Qd);d=b.info;c.u+=d.u;c.range&&(c.K+=d.K);c.D=d.D;c.Qd=d.Qd;c.B=c.B||d.B;d=new YC;ZC(d,a.i);ZC(d,b.i);c=new dD(c,d,a.B);c.u=b.u||a.u;if(a=c.info.range)a=c.i,a=!(1===a.i.length&&0<a.i[0].byteOffset);a&&(c.B=!1);return c};
vla=function(a){g.fD(a.info.i.info)||a.info.i.info.re();if(-1!==a.C)return a.C;if(a.u&&wka(a.u))return a.C=wka(a.u),a.C;if(g.fD(a.info.i.info)){var b=eD(a);for(var c=a.info.i.i,d=NaN,e=NaN,f=0;WB(b,f);){var h=XB(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.TB(h):1952867444===h.type&&isNaN(d)&&(d=g.ZB(h));f=YB(h.type)?f+8:f+h.size}!e&&c&&(e=UB(c));b=d/e}else b=new bC(eD(a)),c=a.B?b:new bC(new DataView(a.info.i.i.buffer)),d=oC(c),c=b.i,b.i=0,pC(b)?fC(b,231)?(d=
jC(b)*d/1E9,b.i=c,b=d):(b.i=c,b=NaN):(b.i=c,b=NaN);a.C=b||a.info.C;return a.C};
xla=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=vla(a)+b;wla(a,c);a.timestampOffset=b};
wla=function(a,b){g.fD(a.info.i.info)||a.info.i.info.re();a.C=b;if(g.fD(a.info.i.info)){var c=eD(a);a=a.info.i.i;for(var d=NaN,e=NaN,f=0;WB(c,f);){var h=XB(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.TB(h)));if(1952867444===h.type){!d&&a&&(d=UB(a));var l=g.ZB(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=YB(h.type)?f+8:f+h.size}return!0}c=new bC(eD(a));a=a.B?c:new bC(new DataView(a.info.i.i.buffer));d=oC(a);a=c.i;c.i=0;if(pC(c)&&fC(c,231))if(e=gC(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.u.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b};
gD=function(a,b){b=void 0===b?!1:b;var c=yla(a);a=b?0:a.info.K;return c||a};
yla=function(a){g.fD(a.info.i.info)||a.info.i.info.re();if(a.u&&6===a.info.type)return a.u.Mi;if(g.fD(a.info.i.info)){var b=eD(a);var c=0;b=g.aC(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=Bka(d.value),c+=d.oG[0]/d.tG;c=c||NaN;if(!(0<=c))a:{c=eD(a);b=a.info.i.i;for(var e=d=0,f=0;WB(c,d);){var h=XB(c,d);if(1836476516===h.type)e=g.TB(h);else if(1836019558===h.type){!e&&b&&(e=UB(b));if(!e){c=NaN;break a}var l=VB(h.data,h.dataOffset,1953653094),m=e,n=VB(l.data,l.dataOffset,1952868452);
l=VB(l.data,l.dataOffset,1953658222);var p=KB(n);KB(n);p&2&&KB(n);n=p&8?KB(n):0;var q=KB(l),t=q&1;p=q&4;var u=q&256,x=q&512,y=q&1024;q&=2048;var A=LB(l);t&&KB(l);p&&KB(l);for(var F=t=0;F<A;F++){var G=u?KB(l):n;x&&KB(l);p&&0===F||!y||KB(l);q&&KB(l);t+=G}f+=t/m}d=YB(h.type)?d+8:d+h.size}c=f||NaN}c||g.Bz(new g.$v("Missing duration while parsing bmff",BC(a.info)))}else c=new bC(eD(a)),a=a.B?c:new bC(new DataView(a.info.i.i.buffer)),c=Jka(c,oC(a));return c};
zla=function(a){var b=eD(a);var c=(c=g.SB(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.i.i,c=(b=g.SB(b,0,1836476516))?g.TB(b):a?UB(a):NaN);return c};
Ala=function(a){if(!a.u){g.fD(a.info.i.info)||a.info.i.info.re();if(g.fD(a.info.i.info)){var b=eD(a),c=VB(b,0,1701671783);if(c){var d=Cka(c);var e=d.QW;d=RB(d.FL);if(b=VB(b,c.offset+c.size,1701671783))if(b=Cka(b),b=RB(b.FL),d&&b){c=g.r(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new QB(d,e):null}else e=null}else{e=new bC(eD(a));d=e.i;e.i=0;c=b=null;if(dC(e,[408125543,307544935]))for(f=e.i+gC(e,!0);e.i<f;)if(29555!==gC(e,!1))kC(e);else for(var h=e.i+gC(e,!0);e.i<h;)if(26568!==
gC(e,!1))kC(e);else for(var l=e.i+gC(e,!0);e.i<l;){var m=gC(e,!1);if(17543===m){if(m=Hka(e),m=RB(m))if(c)for(var n=g.r(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,c[p]=m[p];else c=m}else 17827===m?(m=Hka(e),b||(b=m)):kC(e)}e.i=d;e=c?new QB(c,b):null}a.u=e}};
hD=function(a,b,c,d,e){wC.call(this,a,b,c,d);this.K=null;this.index=e?new e.NativeSegmentIndex:new WC};
iD=function(a,b,c,d){for(var e=[],f=b;f<=a.index.getLastSegmentNumber();f++){var h=AC(a.index.getOffset(f),a.index.getByteLength(f)),l=a.index.getStartTime(f),m=a.index.getDuration(f),n=Math.max(0,c-h.start),p=Math.min(h.end+1,c+d)-(h.start+n),q=f===a.index.getLastSegmentNumber()&&n+p===h.length;e.push(new CC(3,a,h,"getRequestInfoForRange",f,l,m,n,p,q));if(h.start+n+p>=c+d)break}e.length||g.Ty(new g.$v("b189619593",""+b,""+c,""+d));return new JC(e)};
jD=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Bla=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
lD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||kD(a,b);this.i=g.gB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=h)||(a=g.gB[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.u=l||"";this.primaries=m||""};
kD=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=mD[0];for(var d=0;d<mD.length;d++){var e=mD[d],f=g.gB[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
pD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Nb||(c.Nb=16E3);Object.assign(this,c);this.containerType=nD(b);this.i=oD[this.lc()]||""};
qD=function(a){return"9"===a.i||"("===a.i||"9h"===a.i||"(h"===a.i};
rD=function(a){return"9h"===a.i||"(h"===a.i};
sD=function(a){return"1"===a.i||"1h"===a.i};
g.fD=function(a){return 1===a.containerType};
tD=function(a){return"application/x-mpegURL"===a.mimeType};
Cla=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.Nb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:a.audio.numChannels||2,bitrate:8*a.Nb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
uD=function(a){return a.includes("vtt")||a.includes("text/mp4")};
nD=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};
Dla=function(a,b,c,d,e){var f=new jD;b in g.gB||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.gB[b],d=Math.round(16*e/9));d=new lD(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/&quot;/g,'"'));return new pD(c,a,{audio:f,video:d})};
vD=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.wD=function(){jy.apply(this,arguments)};
xD=function(){var a=g.Ga("yt.player.utils.videoElement_");a||(a=g.zg("VIDEO"),g.Fa("yt.player.utils.videoElement_",a,void 0));return a};
yD=function(a){var b=xD();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Ela=function(a){try{var b=zD('video/mp4; codecs="avc1.42001E"')||zD('video/webm; codecs="vp9"');return(zD('audio/mp4; codecs="mp4a.40.2"')||zD('audio/webm; codecs="opus"'))&&(b||!a)||yD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
zD=function(a){if(/opus/.test(a)&&g.Si&&!mr("38")&&!g.St())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Vt())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!yD(a)};
AD=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
BD=function(){var a=xD();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
CD=function(){var a=xD();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
DD=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
ED=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)};
FD=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};
GD=function(a,b){return 0<=FD(a,b)};
Fla=function(a,b){if(!a)return NaN;b=FD(a,b);return 0<=b?a.start(b):NaN};
HD=function(a,b){if(!a)return NaN;b=FD(a,b);return 0<=b?a.end(b):NaN};
ID=function(a){return a&&a.length?a.end(a.length-1):NaN};
Gla=function(a,b){a=HD(a,b);return 0<=a?a-b:0};
JD=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 DD(d,e)};
KD=function(a,b,c,d){g.R.call(this);var e=this;this.xd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.BK={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}};
ny(this.xd,this.BK);this.Bx=this.isActive};
g.LD=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d=(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
g.MD=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c};
ND=function(a){var b=void 0===b?!1:b;if(a instanceof g.MD)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Ty(a):g.Bz(a);return new g.MD(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
OD=function(a,b,c,d,e){var f;g.R.call(this);var h=this;this.Vb=a;this.Je=b;this.id=c;this.containerType=d;this.isVideo=e;this.jL=this.Az=this.Te=null;this.appendWindowStart=this.timestampOffset=0;this.bJ=DD([],[]);this.Zx=!1;this.ze=function(l){return h.ea(l.type,h)};
if(null===(f=this.Vb)||void 0===f?0:f.addEventListener)this.Vb.addEventListener("updateend",this.ze),this.Vb.addEventListener("error",this.ze)};
PD=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
QD=function(a,b){this.i=a;this.u=void 0===b?!1:b;this.B=!1};
RD=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaSource=a;this.Je=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.wD(this);g.J(this,this.events);this.jw=new QD(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Je.webkitMediaSourceURL,!0);a=this.mediaSource||this.Je;ky(this.events,a,["sourceopen","webkitsourceopen"],this.LV);ky(this.events,a,["sourceclose","webkitsourceclose"],this.KV)};
Hla=function(a,b){SD(a)?g.Ug(function(){b(a)}):a.callback=b};
SD=function(a){try{return"open"===TD(a)}catch(b){return!1}};
TD=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Je.webkitSourceState){case a.Je.SOURCE_OPEN:return"open";case a.Je.SOURCE_ENDED:return"ended";default:return"closed"}};
UD=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Ila=function(a,b,c,d){if(!a.i||!a.u)return null;var e=a.i.isView()?a.i.xd:a.i,f=a.u.isView()?a.u.xd:a.u,h=new RD(a.mediaSource,a.Je,!0);h.jw=a.jw;e=new KD(e,b,c,d);b=new KD(f,b,c,d);h.i=e;h.u=b;g.J(h,e);g.J(h,b);SD(a)||a.i.QA(a.i.Tc());return h};
Jla=function(a,b){return VD(function(c,d){return g.Dt(c,d,4,1E3)},a,b)};
g.Kla=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=GB(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
VD=function(a,b,c){b.match(Lla);return a(b,c).then(function(d){var e=g.Kla(d.xhr);return e?VD(a,e,c):d.xhr})};
WD=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.R.call(this);this.sourceUrl=a;this.isLivePlayback=c;this.La=this.duration=0;this.Ze=this.S=this.isLive=this.B=!1;this.wg=this.ue=0;this.isOtf=this.tf=!1;this.Da=(0,g.Q)();this.Z=Infinity;this.i={};this.state=this.ma=0;this.timeline=null;this.isManifestless=!1;this.Y=[];this.C=null;this.ya=0;this.Sa="";this.Aa=NaN;this.K=this.J=this.D=this.timestampOffset=this.u=0;this.Ya=!!b&&b.ob("html5_live_nonzero_first_segment_start_time");
this.eb=!!b&&b.ob("html5_live_self_init_segments");this.withCredentials=!b||!b.ob("html5_manifest_without_credentials");this.Ja=!!b&&b.ob("disable_html5_manifest_namespace_redux");this.Ua=b&&b.ob("disable_html5_duration_caching")?Infinity:10;this.Za=!!b&&b.ob("html5_reset_index_on_mismatch");Mla=!!b&&b.ob("html5_modern_vp9_mime_type");this.Ka=!!b&&b.ob("html5_unrewrite_timestamps")};
hka=function(a){return g.Wb(a.i,function(b){return!!b.info.video&&b.info.video.isHdr()})};
sB=function(a){return g.Wb(a.i,function(b){return!!b.info.zd})};
Nla=function(a){return g.Wb(a.i,function(b){return uD(b.info.mimeType)})};
Ola=function(a){return g.Wb(a.i,function(b){return b.info.video?2===b.info.video.projectionType:!1})};
Pla=function(a){return g.Wb(a.i,function(b){return b.info.video?3===b.info.video.projectionType:!1})};
Qla=function(a){return g.Wb(a.i,function(b){return b.info.video?4===b.info.video.projectionType:!1})};
Rla=function(a){return g.Wb(a.i,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Sla=function(a){return Xb(a.i,function(b){return b.info.video?b.uF():!0})};
mB=function(a){return g.Wb(a.i,function(b){return zB(b.u.i)})};
Tla=function(a){return g.Wb(a.i,function(b){return!(b.index instanceof WC)})};
XD=function(a,b){a.i[b.info.id]=b};
Xla=function(a,b,c,d,e,f){var h=Ula(a);if(d||e){c=new WD("",null===f||void 0===f?void 0:f.experiments,!0);a=g.r(a);for(d=a.next();!d.done;d=a.next()){var l=d.value;d=YD(l,b);f=ZD(l.url,l.sp,l.s);h=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.ue=c.ue||m;c.wg=c.wg||n;var p=!uD(d.mimeType);f&&XD(c,new UC(f,d,{Mi:h,jk:p,Jl:l,ue:m,wg:n,hw:300,Ze:e}))}c.B=!e;c.tf=!0;
c.isManifestless=!0;c.isLive=!e;c.Ze=e;c.S=!!c.ue&&!!c.wg&&isFinite(c.wg);b=c}else b=3===h?Vla(a,b,c,null===f||void 0===f?void 0:f.experiments):Wla(a,b,c,f);return b};
Wla=function(a,b,c,d){c=void 0===c?0:c;var e=new WD("",null===d||void 0===d?void 0:d.experiments,!1);e.duration=c||0;g.Ob(a,function(f){var h=YD(f,b,e.duration),l=zC(f.init),m=zC(f.index);(f=ZD(f.url,f.sp,f.s))&&XD(e,new hD(f,h,l,m,null===d||void 0===d?void 0:d.Zi))});
return e};
Vla=function(a,b,c,d){c=void 0===c?0:c;var e=new WD("",d,!1);e.duration=c||0;g.Ob(a,function(f){var h=YD(f,b,e.duration),l=ZD(f.url,f.sp,f.s);if(l)if(3===h.streamType)XD(e,new VC(l,h,"sq/0"));else{var m=zC(f.init);f=zC(f.index);XD(e,new hD(l,h,m,f))}});
e.isOtf=!0;return e};
YD=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var h=(a.size||"640x360").split("x");h=new lD(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);f=h;null===$D&&($D=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(Mla&&window.MediaSource&&MediaSource.isTypeSupported)!$D&&0<d.indexOf("vp09.00")?d='video/webm; codecs="vp9"':!$D&&0<d.indexOf("vp09.02")&&(d='video/webm; codecs="vp9.2"');else if(($D||Yla)&&('video/webm; codecs="vp9"'===d||'video/webm; codecs="vp9.2"'===d)){var l="00",m="08",n="01",p="01",q="01";'video/webm; codecs="vp9.2"'===d&&(l="02",m="10","bt2020"===f.primaries&&(q=n="09"),"smpte2084"===f.u&&(p="16"),"arib-std-b67"===f.u&&(p="18"));d='video/webm; codecs="'+["vp09",l,"51",m,"01",n,p,q,"00"].join(".")+
'"'}}var t;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var u=new jD(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type);a.name&&(t=new vD(a.name,a.audio_track_id,"1"===a.isDefault))}var x;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(x=new Bla(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));f=Number(a.bitrate)/8;l=Number(a.clen);m=Number(a.lmt);c=c&&l?l/c:0;if(b&&a.drm_families){var y={};n=g.r(a.drm_families.split(","));for(p=
n.next();!p.done;p=n.next())p=p.value,y[p]=b[p]}return new pD(e,d,{audio:u,video:h,Bc:t,zd:y,Nb:f,Lu:c,contentLength:l,lastModified:m,captionTrack:x,streamType:+a.stream_type})};
Ula=function(a){return on(a,function(b){return 3===+b.stream_type})?3:0};
Zla=function(a,b){return a.timeline?Fb(a.timeline.C,b):a.Y.length?Fb(a.Y,b):[]};
ZD=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.wB(a,!0);a.set("alr","yes");c&&(c=mka(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
cma=function(a,b){var c=OC(b,"id");c=c.replace(":",";");var d=OC(b,"mimeType"),e=OC(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(OC(b,"bandwidth"))/8;var f=Number(PC(b,"BaseURL").getAttribute(aE(a,"contentLength"))),h=a.duration&&f?f/a.duration:0;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){var l=Number(OC(b,"width"));var m=Number(OC(b,"height")),n=Number(OC(b,"frameRate")),p=$la(OC(b,aE(a,"projectionType")));a:switch(OC(b,aE(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=
2;break a;default:q=0}l=new lD(l,m,n,p,q)}if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)){var t=Number(OC(b,"audioSamplingRate"));var u=Number(OC(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=ama(OC(b,aE(a,"spatialAudioType")));t=new jD(t,u,m);a:{u=OC(b,"lang")||"und";if(m=PC(b,"Role"))if(p=OC(m,"value")||"",dc(bma,p)){m=u+"."+bma[p];n="main"===p;a=OC(b,aE(a,"langName"))||u+" - "+p;u=new vD(a,m,n);break a}u=void 0}}if(b=PC(b,"ContentProtection"))if("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 pD(c,d,{audio:t,video:l,Bc:u,zd:x,Nb:e,Lu:h,contentLength:f})};
$la=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}};
ama=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}};
ema=function(a,b){b=void 0===b?"":b;a.state=1;a.Da=(0,g.Q)();return g.jh(Jla(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.withCredentials}).then(function(c){if(!a.isDisposed()){a.ma=c.status;c=c.responseText;var d=new DOMParser;c=Ok(d,br(c)).getElementsByTagName("MPD")[0];a.Z=1E3*bla(OC(c,"minimumUpdatePeriod"))||Infinity;if(!a.Ja){b:{if(c.attributes){d=g.r(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];
break b}}d=""}a.Sa=d}a.isLive=Infinity>a.Z&&a.isLivePlayback;a.La=Number(OC(c,aE(a,"earliestMediaSequence")))||0;if(d=Date.parse(dla(OC(c,aE(a,"mpdResponseTime")))))a.ya=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.mm(c.getElementsByTagName("Period"),a.rW,a);a.state=2;a.ea("loaded");dma(a)}return a}),function(c){if(c instanceof Bt){var d=c.xhr;
a.ma=d.status}a.state=3;a.ea("loaderror");return dh(d)})};
fma=function(a,b,c){return ema(new WD(a,b,c),a)};
bE=function(a){return a.isLive&&(0,g.Q)()-a.Da>=a.Z};
dma=function(a){var b=a.Z;isFinite(b)&&(bE(a)?a.refresh():(b=Math.max(0,a.Da+b-(0,g.Q)()),a.C||(a.C=new g.M(a.refresh,b,a),g.J(a,a.C)),a.C.start(b)))};
gma=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0};
cE=function(a){return a.D&&(a.u||a.Ka)?a.D-(a.u||a.timestampOffset):0};
dE=function(a){return a.J&&(a.u||a.Ka)?a.J-(a.u||a.timestampOffset):0};
eE=function(a){if(!isNaN(a.Aa))return a.Aa;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.Ua&&(a.Aa=b);return b}if(a.isLive&&(d=b[c],d.Mi))return d.Mi}return NaN};
hma=function(a,b){a=hc(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};
ima=function(a,b){g.Tb(a.i,function(c){g.Tb(b,function(d,e){var f=c.u;f.i.set(e,d);f.D.set(e,d);f.B&&f.B.set(e,d)})})};
jma=function(a,b){if(!a.i["0"]){var c=new pD("0","fakesb",{video:new lD(0,0,0,void 0,void 0,"auto")});a.i["0"]=b?new NC(new g.wB("http://www.youtube.com/videoplayback"),c,"fake"):new hD(new g.wB("http://www.youtube.com/videoplayback"),c,new yC(0,0),new yC(0,0))}};
fE=function(a,b,c){for(var d in a.i){var e=uD(a.i[d].info.mimeType)||a.i[d].info.isVideo();if(c===e){e=a.i[d].index;var f=SC(e,b);0<=f&&e.segments.splice(f,1)}}};
aE=function(a,b){return a.Ja?"yt:"+b:a.Sa+":"+b};
kma=function(a){a.J=0;a.D=0;a.K=0};
lma=function(){var a=g.Rz("yt-player-volume")||{},b=a.volume;return{volume:isNaN(b)?100:g.Qf(Math.floor(b),0,100),muted:!!a.muted}};
mma=function(a){g.Qz("yt-player-bandwidth",a,2592E3)};
gE=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Wia()>(0,g.Q)()-1E3*a))return 0;a=g.Rz("yt-player-quality");if("string"===typeof a){if(a=g.gB[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
nma=function(){var a=g.Rz("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};
oma=function(){var a={values:{},Rl:{}};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};
pma=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
iE=function(a,b){return+hE()[pma(a,b)]||8192};
hE=function(){return g.Rz("yt-player-performance-cap")||{}};
qma=function(a){g.Qz("yt-player-watch-later-pending",a)};
rma=function(){return!!g.Rz("yt-player-headers-readable")};
sma=function(a){g.Qz("yt-player-playback-on-reload",a)};
tma=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.uma=function(){var a=g.Rz("yt-player-caption-language-preferences");return a?a:[]};
vma=function(){this.Fb=this.i=this.Ja=this.ma=this.Y=this.Da=this.Ka=this.Za=this.Ya=!1;this.K=this.J=0;this.jb=!1;this.eb=!0;this.kb=!1;this.B=0;this.S=!1;this.zb=Infinity;this.AC=!1;this.Mb=!0;this.Ua=this.Sa=!1;this.u={};this.xb=this.La=this.qb=this.ya=this.Eb=this.D=this.Aa=!1};
ika=function(a){if(a.Za)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.S&&(b.unshift("1"),b.unshift("1h"));a.i&&b.unshift("h");a.Z&&(b=(wma[a.Z]||[a.Z]).concat(b));return b};
gka=function(a){var b=["o","a","A"];a.Da&&(b=["m","M"].concat(b));a.Y&&(b=["mac3","MAC3"].concat(b));a.ma&&(b=["meac3","MEAC3"].concat(b));a.Ya&&(b=["so","sa"].concat(b));!a.Fb||a.Ja||a.C||b.unshift("a");a.Ka&&b.unshift("ah");a.C&&(b=(wma[a.C]||[a.C]).concat(b));return b};
jE=function(a,b,c){b=void 0===b?{}:b;var d;if(qB(a.C,rB.AV1_CODECS)&&qB(a.C,rB.HEIGHT)&&qB(a.C,rB.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=tma();if(e)return b.localPref=e}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Rt()&&(b.isArm=1,a=240);if(c){e=c.videoInfos.find(function(h){return sD(h)});
if(e=null===(d=null===e||void 0===e?void 0:e.u)||void 0===d?void 0:d.powerEfficient)a=8192,b.isEfficient=1;c=c.videoInfos[0].video;var f=Math.min(iE("1",c.fps),iE("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!e&&(b.hdr=1,a*=.75)}else c=iE("1",30),b.perfCap30=c,a=Math.min(a,c),c=iE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
lE=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.i={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.S=!!d&&d.ob("edge_nonprefixed_eme");this.D=d?g.kE(d,"html5_hdcp_probing_stream_url"):""};
nE=function(a){return a.S?!1:!a.keySystemAccess&&!!mE()&&"com.microsoft.playready"===a.keySystem};
oE=function(a){return"com.microsoft.playready"===a.keySystem};
pE=function(a){return!a.keySystemAccess&&!!mE()&&"com.apple.fps.1_0"===a.keySystem};
qE=function(a){return"com.youtube.fairplay"===a.keySystem};
g.rE=function(a){return"fairplay"===a.flavor};
mE=function(){var a=window,b=a.MSMediaKeys;Xt()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
tE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.Si&&!g.St())return mr("45");if(g.Vw||g.Kc)return a.ob("edge_nonprefixed_eme");if(g.Ti)return mr("47");if(g.Ui){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.sE(a,"html5_safari_desktop_eme_min_version"))return mr(a)}return!0};
xma=function(a,b,c,d){var e=Tt(),f=(c=e||c&&Xt())?["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.v(f),g.v(uE.playready)):[].concat(g.v(uE.playready),g.v(f))};
vE=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ba=e;this.i=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.oa()};
zma=function(a,b){a.callback=b;a.B=[];tE(a.experiments)?wE(a):yma(a)};
wE=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.B);else{var b=a.i[0],c=a.u[b],d=Ama(a,c);a.oa();navigator.requestMediaKeySystemAccess(b,d).then(As(function(e){if(!a.isDisposed()){a.oa();c.keySystemAccess=e;if(oE(c)){e=xD();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())Bma(a,c,h.value);if(e.videoCapabilities)for(e=
g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())Bma(a,c,f.value)}a.B.push(c);a.N("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),wE(a)):a.callback(a.B)}}),As(function(){a.oa();
a.D=!a.D&&"widevine"===a.u[a.i[0]].flavor;a.D||a.i.shift();wE(a)}))}};
Bma=function(a,b,c){a.N("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0};
Ama=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};oE(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.Si&&Pt("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),
f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(cu()||Qt())&&(a.Ba("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
yma=function(a){if(mE()&&g.Ui)a.oa(),a.B.push(new lE("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Cma(),c=g.rb(a.i,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c?(a.oa(),a.B.push(a.u[c])):a.oa();a.i=[]}a.callback(a.B)};
Cma=function(){var a=mE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=xD();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Dma=function(){this.i=0};
Ema=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Ds(b||"","&");var c={};g.Ob(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.sE=function(a,b){return Number(a.flags[b])||0};
g.kE=function(a,b){return(a=a.flags[b])?a.toString():""};
xE=function(a,b,c){this.experiments=a;this.Y=b;this.ma=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.D={};this.S=!1;this.i=new Map;this.K=!0;this.C=!this.experiments.ob("html5_disable_protected_hdr");this.u=!1;this.Z=this.experiments.ob("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.B=!this.J&&a&&a("max-video-resolution-vpx")||null};
cka=function(a,b,c){c=void 0===c?1:c;var d,e=b.lc();if("0"===e||a.experiments.ob("html5_blocking_media_capabilities")&&(null===(d=b.u)||void 0===d?0:d.supported))return!0;var f=b.mimeType;if(b.re()&&Tt()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(sD(b)&&a.S)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(qB(a,rB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";
if("338"===e&&!(g.Si?mr(53):g.Ti&&mr(64)))return"dopus";var h=c;h=void 0===h?1:h;c={};b.video&&(b.video.width&&(c[rB.WIDTH.name]=b.video.width),b.video.height&&(c[rB.HEIGHT.name]=b.video.height),b.video.fps&&(c[rB.FRAMERATE.name]=b.video.fps*h),b.video.u&&(c[rB.EOTF.name]=b.video.u),b.Nb&&(c[rB.BITRATE.name]=8*b.Nb*h),"("===b.i&&(c[rB.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[rB.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[rB.CHANNELS.name]=b.audio.numChannels);a.u&&qD(b)&&(c[rB.EXPERIMENTAL.name]="allowed");h=g.r(Object.keys(rB));for(var l=h.next();!l.done;l=h.next()){l=rB[l.value];var m;if(m=c[l.name])(m=l===rB.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(m=b,m=a.experiments.ob("html5_ignore_h264_framerate_cap")&&l===rB.FRAMERATE&&("H"===m.i||"h"===m.i)),m=!(m||l===rB.DECODETOTEXTURE&&!a.experiments.ob("html5_decode_to_texture_cap"));if(m)if(qB(a,l))if(a.B){if(a.B[l.name]<c[l.name])return l.name}else f=
f+"; "+l.name+"="+c[l.name];else if(rD(b)&&l===rB.EOTF)return"dvp92"}!a.experiments.ob("disable_html5_cast_hdcp_filter2")&&a.J&&b.video&&1080<b.video.i&&b.zd&&(f+="; hdcp=2.2");return"227"!==e||a.experiments.ob("html5_enable_1080p_hq_cenc")?"585"!==e&&"588"!==e&&"583"!==e&&"586"!==e&&"584"!==e&&"587"!==e&&"591"!==e&&"592"!==e||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(f)?!0:"tpus":"newhvc":"hqcenc"};
yE=function(){var a=Qt()&&!mr(29),b=Pt("google tv")&&Pt("chrome")&&!mr(30),c=Tt();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Fma=function(a,b,c){var d=480;b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,!(1080<e.video.i)&&cka(a,e,c)){d=e.video.i;break}return d};
g.zE=function(a,b){b=void 0===b?!1:b;return yE()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(xD(),"application/x-mpegURL")?!0:!1};
qB=function(a,b){b.name in a.D||(a.D[b.name]=Gma(a,b));return a.D[b.name]};
Gma=function(a,b){if(a.B)return!!a.B[b.name];if(b===rB.BITRATE&&a.experiments.ob("html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===rB.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.invalid);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c=
'audio/webm; codecs="opus"',a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.invalid)};
AE=function(){g.R.call(this);this.items={}};
BE=function(a,b,c,d){this.target=a;this.trigger=b;this.u=c;this.B=d;this.i=0};
Hma=function(){};
Ima=function(a,b,c){(new BE("https://"+b+"/videoplayback?probe=1",c,function(d){var e;null===(e=a.i)||void 0===e?void 0:e.Ba("pathprobe",d)},function(d){var e;
null===(e=a.i)||void 0===e?void 0:e.Ba("pathprobe",g.LD(d.details))})).send()};
Jma=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
Kma=function(a,b){this.encryptedClientKey=b;this.i=new Uint8Array(a.buffer,0,16);this.u=new Uint8Array(a.buffer,16)};
CE=function(a){try{return Lc(a)}catch(b){return null}};
Lma=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?CE(b.clientKey):null;var c=b.encryptedClientKey?CE(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.Q)():null;a&&c&&d&&(this.i=new Kma(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=CE(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
DE=function(a){this.i=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
EE=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.u=!1;this.C=!0;this.i=Math.round(a*this.resolution);this.values=Array(this.i);for(a=0;a<this.i;a++)this.values[a]=Infinity;this.J=Mma(this);this.B=c;this.D=d};
Mma=function(a){for(var b=Array(a.i),c=0;c<a.i;c++)b[c]=c;return b};
FE=function(a,b){if(!a.u&&0===a.valueIndex)return 0;a.C&&(g.Lb(a.J,function(c,d){return a.values[c]-a.values[d]}),a.C=!1);
return a.values[a.J[Math.round(b*((a.u?a.i:a.valueIndex)-1))]]||0};
Nma=function(a){var b=new Dma;this.policy=a;this.ma=b;this.Z=this.Y=0;this.D=-1;this.S=this.C=GE();this.K=new EE(4,1,.6,.4);this.i=new EE(10,1,.5,.4);this.B=a.i?new DE(a.u):new EE(a.u,20,.5,.4);this.J=new EE(5,1,.25);this.u=new EE(30,1,.5);a=g.Rz("yt-player-bandwidth")||{};this.B.Mg(this.policy.D,0<a.byterate?a.byterate:this.policy.B);0<a.delay&&this.K.Mg(1,Math.min(a.delay,2));0<a.stall&&this.i.Mg(1,a.stall);0<a.init&&(this.S=Math.min(a.init,this.S));this.D=GE()};
HE=function(a){a=a.K.qg();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
Oma=function(a,b,c){isNaN(c)||(a.Z+=c);isNaN(b)||(a.Y+=b)};
IE=function(a){a=a.B.qg();return 0<a?a:1};
JE=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=IE(a);d=1/((a.i.qg()||0)+1/d);var e=a.J.qg();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+HE(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((FE(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
KE=function(a){return{delay:HE(a),stall:a.i.qg()||0,byterate:IE(a),init:a.S}};
LE=function(a){-1<a.D&&3E4<GE()-a.D&&(mma(KE(a)),a.D=GE())};
Pma=function(a){return 4E3<=GE()-a.C};
Qma=function(){this.u=17;this.B=13E4;this.D=.5;this.C=this.i=!1};
Rma=function(a,b,c){var d=new Qma;a&&(d.i=!0,d.D=.1);c.ob("html5_pctile_bandwidth_estimator")&&(d.i=!1);b&&(d.B=b/8);d.C=480<=gE();return d};
Tma=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.Rl=b;this.u={};this.B=this.i=0;this.C=new g.M(function(){Sma(c)},1E4);
g.J(this,this.C)};
ME=function(a,b){Uma(a,b);return a.values[b]&&a.Rl[b]?a.values[b]/Math.pow(2,a.i/a.Rl[b]):0};
Uma=function(a,b){a.values[b]||(b=oma(),a.values=b.values||{},a.Rl=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
Sma=function(a){var b=oma();if(b.values){b=b.values;for(var c={},d=g.r(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=ME(a,e);a.u=c}b=a.Rl;c={};c.values=a.u;c.halfLives=b;g.Qz("yt-player-memory",c,2592E3)};
NE=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
OE=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
PE=function(a,b){return void 0===b||null===b?a:Number(b)};
QE=function(a,b){return void 0===b||null===b?a:b.toString()};
Vma=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.Wf(a,b)};
RE=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Wma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
SE=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.vs("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
pF=function(a,b,c){var d,e,f;g.I.call(this);var h=this;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Xe=this.ac=this.Da=this.Fe=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.Md=NaN;this.Mb=!1;this.Za=0;this.Hi=this.Rj=!1;this.Qj=!0;this.Rh=this.Fc=!1;this.Zi=null;this.ek=yy(4);a=a?g.mc(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=new Ema(b?b.serializedExperimentIds:
a.fexp,b?b.serializedExperimentFlags:a.fflags);this.eb=b?b.serializedForcedExperimentIds:QE("",a.forced_experiments)||void 0;this.cspNonce=(null===b||void 0===b?0:b.cspNonce)&&!this.N("fill_csp_nonce_from_wpcc_killswitch")?b.cspNonce:QE("",a.csp_nonce);lja=this.N("web_player_deprecated_uvr_killswitch");try{var l=document.location.toString()}catch(F){l=""}this.kc=l;this.ancestorOrigins=(l=window.location.ancestorOrigins)?Array.from(l):[];l=!this.N("web_player_context_config_embeds_fields_killswitch");
this.u=NE(!1,b&&l?b.isEmbed:a.is_embed);b&&b.device?Xma(this,b.device):(this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER");b&&!this.N("wpcc_loader_url_killswitch")?this.loaderUrl=this.u||TE(this)&&b.loaderUrl?b.loaderUrl||"":this.kc:this.loaderUrl=this.u||TE(this)&&a.loaderUrl?QE("",a.loaderUrl):this.kc;this.N("embeds_js_api_set_1p_cookie")&&(this.embedsTokenValue=QE("",a.embedsTokenValue));this.B=hA(this.loaderUrl,Yma,Zma);this.jl=rja(this.loaderUrl);
this.Sa=NE(!1,a.privembed);this.protocol=0===this.kc.indexOf("http:")?"http":"https";this.Ka=iA((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||iA(this.kc)||this.protocol+"://www.youtube.com/";this.Ja=$ma(this,b?b.eventLabel:a.el);Tu();var m=null,n=b?b.playerStyle:a.ps,p=g.ub(ana,n);!n||p&&!this.B||(m=n);this.playerStyle=m;this.S=(this.J=g.ub(ana,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.gk=!this.S;this.ya=NE(!1,a.disableplaybackui);this.disableSeek=NE(!1,null===
b||void 0===b?void 0:b.disableSeek);this.uc=this.N("variable_playback_rate")?!0:xD().defaultPlaybackRate?UE||g.bu||VE?g.Ti&&mr("20")||g.Si&&mr("4")||g.WE&&mr("11")||Yt():!(g.WE&&!Pt("chrome")||UE||Pt("android")||Pt("silk")):!1;this.Zj=NE(!1,a.enable_faster_speeds);this.i=NE("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.fk=bna(this);this.xb="3"===this.controlsType||this.i||NE(!1,a.use_media_volume);this.ma=CD();this.vl=g.XE;this.Ni=NE(!1,b&&l?b.embedOptOutDeprecation:
a.opt_out_deprecation);this.pfpChazalUi=(this.Of=!(!b||!b.embedsEnablePfpImaIntegration||this.N("embeds_pfp_ima_integration_killswitch")))||NE(!1,(b&&l?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.N("embeds_pfp_chazal_ui_killswitch"));var q;b?void 0!==b.hideInfo&&(q=!b.hideInfo):q=a.showinfo;this.Oj=g.YE(this)&&!this.Ni||NE(!ZE(this)&&!$E(this)&&!this.J,q);this.Pi=b?!!b.mobileIphoneSupportsInlinePlayback:NE(!1,a.playsinline);q=this.i&&aF&&null!=bF&&0<bF&&2.3>=bF;m=b?b.useNativeControls:a.use_native_controls;
this.D=(this.N("embeds_enable_mobile_custom_controls")||!1===m&&!this.N("embeds_use_native_controls_killswitch"))&&g.YE(this)&&this.i;n=this.i&&!this.D;m=cF(this)||!q&&NE(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.rd=this.i;this.color=OE("red",b&&l?b.progressBarColor:a.color,cna);this.ql="3"===this.controlsType||NE(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.jb=!this.u;this.Pj=(m=!this.jb&&!$E(this)&&!this.S&&!this.J&&!ZE(this))&&
!this.ql&&"1"===this.controlsType;this.Fb=g.dF(this)&&m&&"0"===this.controlsType&&!this.Pj;this.yl=this.ul=q;this.Wi=eF&&!g.Dc(601)?!1:!0;this.dk=this.u||!1;this.Sc=$E(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=QE("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.B||NE(!0,t);q=!0;b&&b.disableMdxCast&&(q=!1);this.Nf=this.N("enable_cast_for_web_unplugged")&&g.fF(this)&&q||this.N("enable_cast_on_music_web")&&
g.gF(this)&&q||t&&q&&"1"===this.controlsType&&!this.i&&($E(this)||g.dF(this)||g.hF(this))&&!g.iF(this);this.xl=AD()||BD();t=b?!!b.supportsAutoplayOverride:NE(!1,a.autoplayoverride);this.Zg=!this.i&&!Pt("nintendo wiiu")&&!Pt("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:NE(!1,a.mutedautoplay);q=this.N("embeds_enable_muted_autoplay")&&g.YE(this);this.qd=t&&q&&this.ma&&!cF(this);t=($E(this)||ZE(this))&&"blazer"===this.playerStyle;this.Kg=b?!!b.disableFullscreen:!NE(!0,a.fs);this.Ya=!this.Kg&&(t||g.fy());
this.Lh=this.N("uniplayer_block_pip")&&(Qt()&&mr(58)&&!cu()||$t);t=g.YE(this)&&!this.Ni;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.Eb=t||NE(!this.J,u);this.Vi=NE(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.K=cu()&&0<bF&&4.4>=bF?"_top":"_blank";this.cd=g.hF(this);this.Wg=NE("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm";break;case "books":u="gb";break;case "docs":u=
"gd";break;case "duo":u="gu";break;case "google-live":u="gl";break;case "google-one":u="go";break;case "play":u="gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.Aa=u;this.Y=QE("",b&&l?b.authorizedUserIndex:a.authuser);this.Fi=g.YE(this)&&(this.Sa||this.N("embeds_web_enable_hiding_login_buttons")&&(!Mt()||cu()||au())||this.N("embeds_web_enable_always_hiding_login_buttons"));var x;b?void 0!==b.disableWatchLater&&
(x=!b.disableWatchLater):x=a.showwatchlater;this.Sj=((u=!this.Fi)||!!this.Y&&u)&&NE(!this.S,this.B?x:void 0);this.gf=b?!!b.disableKeyboardControls:NE(!1,a.disablekb);this.loop=NE(!1,a.loop);this.pageId=QE("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.wl=NE(!0,a.canplaylive);this.kb=NE(!1,a.livemonitor);this.disableSharing=NE(this.J,b?b.disableSharing:a.ss);this.Xi=Vma(b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override);
this.mute=b?!!b.startMuted:NE(!1,a.mute);this.storeUserVolume=!this.mute&&NE("0"!==this.controlsType,b&&!this.N("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:OE(void 0,x,jF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":QE("",a.cc_lang_pref);x=OE(2,b&&l?b.captionsLanguageLoadPolicy:a.cc_load_policy,jF);"3"===this.controlsType&&2===x&&
(x=3);this.Ua=x;this.xe=b?b.hl||"en_US":QE("en_US",a.hl);this.region=b?b.contentRegion||"US":QE("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":QE("en",a.host_language);this.Uj=!this.Sa&&Math.random()<g.sE(this.experiments,"web_player_api_logging_fraction");this.La=!this.Sa;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:NE(!0,a.deviceHasDisplay);this.Md=PE(this.Md,a.ismb);this.Yi=dna(this,a);kF(this,a,!0);this.Z=new AE;g.J(this,this.Z);this.Tg=ena(this,a,b);this.Ti=
null!=window.WebKitPlaybackTargetAvailabilityEvent;this.C=new xE(this.experiments,this.N("html5_force_hfr_support")?!0:lF(this)||Ut()||Vt()||fna(this),g.Si&&g.Dc(56)||g.Ti&&g.Dc(54)||fna(this));this.schedule=new Nma(Rma(g.mF(this),this.Md,this.experiments));this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:NE(!1,a.enable_safety_mode);x=this.ya?!1:$E(this)&&"blazer"!==this.playerStyle;var y;b&&l?null!=b.disableAutonav&&(y=!b.disableAutonav):y=a.allow_autonav;
this.Zb=NE(x,!this.S&&y);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:NE(!1,a.send_visitor_id_header);this.qb=(0,g.Q)();var A;"docs"===this.playerStyle&&(b&&l?A=b.disableNativeContextMenu:A=a.disable_native_context_menu);this.disableNativeContextMenu=NE(!1,A);this.bk=lF(this)&&this.N("enable_skip_intro_button");this.embedConfig=QE("",b&&l?b.serializedEmbedConfig:a.embed_config);this.Og=NE(!1,a.full_window);this.zb=!g.fF(this)&&!nF(this)&&!g.iF(this)&&!0;this.livingRoomAppMode=OE("LIVING_ROOM_APP_MODE_UNSPECIFIED",
b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,gna);this.transparentBackground=b?!!b.transparentBackground:NE(!1,a.transparent_background);this.useFastSizingOnWatchDefault=NE(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:NE(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:NE(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:
NE(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.showBackButton=NE(!1,a.showbackbutton);this.Qj=null!==(f=a.show_loop_video_toggle)&&void 0!==f?f:!0;this.ol=1E-4>Math.random();this.bd=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new Lma(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.N("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.wc=new Tma;
g.J(this,this.wc);this.Rh=NE(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.ll=g.P("LOGGED_IN",!1);this.Tj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.Kh=0;if(this.N("html5_generate_session_po_token")){a=g.mF(this)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";try{this.dh=eca({pm:a}),this.dh.ready().then(function(){oF(h)})}catch(F){F instanceof Error&&g.Bz(F)}}if(this.N("html5_onesie")||this.N("html5_host_selector"))this.rl=
new Hma};
kF=function(a,b,c){c=void 0===c?!1:c;a.ac=QE(a.ac,b.video_id);a.Da=QE(a.Da,b.eventid);a.Da&&(wy=a.Da);for(var d=[],e=g.r(Object.keys(hna)),f=e.next();!f.done;f=e.next()){f=hna[f.value];var h=b[f];null!=h&&(h!==a.deviceParams[f]&&d.push(f),a.deviceParams[f]=h)}!c&&0<d.length&&a.ol&&(d.sort(),g.Bz(new g.$v("Player client parameters changed after startup",d)));a.userAge=PE(a.userAge,b.user_age);a.userDisplayImage=QE(a.userDisplayImage,b.user_display_image);g.kA(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=QE(a.userDisplayName,b.user_display_name);a.Fe=QE(a.Fe,b.user_gender);a.csiPageType=QE(a.csiPageType,b.csi_page_type);a.csiServiceName=QE(a.csiServiceName,b.csi_service_name);a.Wg=NE(a.Wg,b.enablecsi);a.pageId=QE(a.pageId,b.pageid);if(b=b.enabled_engage_types)a.enabledEngageTypes=new Set(b.split(","))};
$ma=function(a,b){var c="detailpage";"adunit"===b?c=a.u?"embedded":"detailpage":"embedded"===b||a.B?c=OE(c,b,ina):b&&(c="embedded");return c};
ena=function(a,b,c){var d=c?c.innertubeApiKey:QE("",b.innertube_api_key),e=c?c.innertubeApiVersion:QE("",b.innertube_api_version);b=c?c.innertubeContextClientVersion:QE("",b.innertube_context_client_version);return{innertubeApiKey:g.P("INNERTUBE_API_KEY",void 0)||d,innertubeApiVersion:g.P("INNERTUBE_API_VERSION",void 0)||e,OK:g.P("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),PK:a.deviceParams.c,innertubeContextClientVersion:g.P("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)||b,RK:a.hostLanguage,QK:a.region,
SK:g.P("INNERTUBE_HOST_OVERRIDE",void 0)||"",UK:!!g.P("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),TK:!!g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}};
qF=function(a,b){return!a.J&&Qt()&&mr(55)&&"3"===a.controlsType&&!b};
g.rF=function(a){a=jna(a.Ka);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.sF=function(a){return g.iF(a)?"music.youtube.com":g.rF(a)};
tF=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
uF=function(a){return $E(a)&&!g.fF(a)};
cF=function(a){return eF&&!a.Pi||Pt("nintendo wiiu")||Pt("nintendo 3ds")?!0:!1};
g.iF=function(a){return"music-embed"===a.playerStyle};
g.mF=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
kna=function(a){return"TVHTML5"===a.deviceParams.c&&a.deviceParams.cver.startsWith("7")};
TE=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
fna=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.vF=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
lF=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.wF=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
nF=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.fF=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
xF=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.yF=function(a){return g.fF(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||xF(a)};
g.gF=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.zF=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
g.AF=function(a){return g.wF(a)&&a.N("web_player_i_see_captions")};
BF=function(a){return a.N("web_player_enable_hybrid_controls_on_touch_screen")&&window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches&&g.wF(a)};
bna=function(a){if(a.i)return!a.J;var b=Number(Date.now()/1E3),c=g.Dv.getInstance();return a.N("block_desktop_background_playback_with_mobile_cookie")&&c&&b>Number(c.get("dhmu",b.toString()))};
g.DF=function(a){return(a.deviceHasDisplay&&g.Si&&!$t&&"3"!==a.controlsType?g.bu?a.u&&g.Dc(51):!0:!1)||(a.deviceHasDisplay&&g.Ti&&!$t&&"3"!==a.controlsType?g.bu?a.u&&g.Dc(48):g.Dc(38):!1)||(a.deviceHasDisplay&&g.WE&&!$t&&"3"!==a.controlsType?g.bu?a.u&&g.Dc(37):g.Dc(27):!1)||a.deviceHasDisplay&&g.CF&&!Zt()&&g.Dc(11)||a.deviceHasDisplay&&g.Ui&&g.Dc("604.4")};
lna=function(a){if(g.dF(a)&&aF)return!1;if(g.Ti){if(!g.Dc(47)||!g.Dc(52)&&g.Dc(51))return!1}else if(g.Ui)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
$E=function(a){return"detailpage"===a.Ja};
g.dF=function(a){return"embedded"===a.Ja};
EF=function(a){return"leanback"===a.Ja};
ZE=function(a){return"adunit"===a.Ja||"gvn"===a.playerStyle};
g.hF=function(a){return"profilepage"===a.Ja};
g.YE=function(a){return a.u&&g.dF(a)&&!ZE(a)&&!a.J};
dna=function(a,b){if(g.kE(a.experiments,"html5_qoe_intercept"))return g.kE(a.experiments,"html5_qoe_intercept");a.gk?(b=b.vss_host||"s.youtube.com",a.N("www_for_videostats")&&"s.youtube.com"===b&&(b=jna(a.Ka)||"www.youtube.com")):b="video.google.com";return b};
FF=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.Bz(new g.$v("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.GF=function(a){var b=g.sF(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&mna.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
Xma=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)};
oF=function(a){var b;g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){if(!e.N("html5_generate_session_po_token")||null===(b=e.dh)||void 0===b||!b.isReady())return m.return();f=g.P("VISITOR_DATA",void 0);h=e.ll?e.datasyncId:f;l=e.dh.Qz({uJ:h});e.Ug=g.Hc(l,2);g.sa(m)})})};
jna=function(a){var b=g.ei(a);return(a=Number(g.di(4,a))||null)?b+":"+a:b};
HF=function(a){this.i=a};
IF=function(a,b,c){if(c)return Ft();var d={};c=xD();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.lf().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].lf().re())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Ob(mD,function(l){(l=d[l])&&h.push(l)});
return h.length?Gt(h):Ft()};
nna=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.i=""};
ona=function(a,b){a.B.some(function(c){var d;return(null===(d=c.Bc)||void 0===d?void 0:d.getId())===b});
a.i=b};
JF=function(a,b,c){a.cpn&&(b=g.pi(b,{cpn:a.cpn}));c&&(b=g.pi(b,{Gaa:c}));return b};
pna=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
qna=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
rna=function(a){var b;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;this.u=(null===(b=a.audioItag)||void 0===b?void 0:b.split(","))||[];this.Gt=a.Gt;this.zd=a.zd||"";this.Bc=a.Bc;this.audioChannels=a.audioChannels;this.i=""};
sna=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?[]:d;var e={};a=g.r(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new vD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new rna({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,Gt:n?l[n]:void 0,zd:f.drm_families,Bc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e};
KF=function(a,b,c){this.i=a;this.B=b;this.expiration=c;this.u=null};
tna=function(a,b){if(!($t||Xt()||Tt()))return null;a=sna(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Bc&&(f=h.Bc.getId(),c[f]||(h=new dB(f,h.Bc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
yna=function(a,b,c,d,e,f,h){if(!($t||Xt()||Tt()))return Ft();var l=[],m=una(c),n=sna(c,a.N("html5_filter_fmp4_in_hls"),a.C.C,l);if(!n)return h("noplst"),Ft();vna(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],u=[],x=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new rna({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Bc:new vD("English","en",!1)}):null;for(var A=g.r(Object.keys(n)),F=A.next();!F.done;F=A.next())if(F=F.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==F&&"373"!==F){F=g.r(n[F]);for(var G=F.next();!G.done;G=F.next())if(G=G.value,G.width){for(var E=g.r(G.u),K=E.next();!K.done;K=E.next())if(K=K.value,n[K]){G.i=K;break}G.i||(G.i=wna(n,G));if(E=n[G.i])if(c.push(G),"fairplay"===G.zd&&(q=p),K="","PQ"===G.Gt?K="smpte2084":"HLG"===G.Gt&&(K="arib-std-b67"),K&&(y=K),u.push(xna(E,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,K)),!x||G.width*G.height*G.fps>x.width*x.height*x.fps)x=G}else t.push(G)}else l.push(F),l.push("disdrmhfr");u.reduce(function(V,
L){return L.lf().pj()&&V},!0)&&(q=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;A=a.N("html5_native_audio_track_switching");u.push(xna(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,A));l.length&&h(l.join("."));return IF(a.C,u,qF(a,b))};
xna=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var x=0,y="",A=g.r(a),F=A.next();!F.done;F=A.next())F=F.value,y||(y=F.itag),F.audioChannels&&F.audioChannels>x&&(x=F.audioChannels,y=F.itag);e=new pD(e,"application/x-mpegURL",{audio:new jD(0,x,null,y),video:new lD(f,h,l,null,void 0,n,void 0,t),zd:q});a=new nna(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new KF(e,a,m)};
una=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
wna=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.zd===b.zd&&!e.audioChannels)return d}return""};
vna=function(a){for(var b=new Set,c=g.r(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.r(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
LF=function(a,b){this.i=a;this.u=b};
zna=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.wB(h.url,!0);if(h.s){var l=h.sp,m=mka(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=Dla(h.type,h.quality,h.itag,h.width,h.height);e.push(new LF(h,f))}}return IF(a.C,e,qF(a,b))};
MF=function(a,b){this.i=a;this.u=b};
Ana=function(a){var b=[];g.Ob(a,function(c){if(c&&c.url){var d=Dla(c.type,"medium","0");b.push(new MF(d,c.url))}});
return b};
Bna=function(a,b,c){c=Ana(c);return IF(a.C,c,qF(a,b))};
NF=function(a,b){this.type=a||"";this.id=b||""};
g.OF=function(a){return new NF(a.substr(0,2),a.substr(2))};
PF=function(a,b){for(var c={},d=g.r(Object.keys(Cna)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.kA(f)&&(c[Cna[e]]=f)}return c};
QF=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.r(Object.keys(Dna)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Dna[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Ena(h.url);g.kA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Ena(a.url),g.kA(a)&&(b["maxresdefault.jpg"]=a));return b};
Ena=function(a){return a.startsWith("//")?"https:"+a:a};
g.RF=function(a,b){var c;this.u=a;this.author="";this.ov=null;this.playlistLength=0;this.i=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Ds(a,"&");this.i=(null===(c=b.thumbnail_ids)||void 0===c?void 0:c.split(",")[0])||null;this.Z=PF(b,"playlist_");this.videoId=b.video_id||void 0;if(a=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new NF("UU","PLAYER_"+a)).toString();
break;default:var d=b.playlist_length;d&&(this.playlistLength=Number(d)||0);this.playlistId=g.OF(a).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.SF=function(a,b){this.i=a;this.Nm=this.author="";this.ov=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Zp=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.Al=b.aria_label||void 0;this.author=b.author||"";this.Nm=b.Nm||"";if(a=b.endscreen_autoplay_session_data)this.ov=Ds(a,"&");this.qv=b.qv;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.Zp=b.Zp||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Ds(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=PF(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
Fna=function(){var a=g.Ga("ytDebugData.callbacks");a||(a={},g.Fa("ytDebugData.callbacks",a,void 0));return a};
UF=function(){void 0===TF&&(TF=g.Er());return TF};
VF=function(){var a=UF();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
Gna=function(a){var b=UF();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
WF=function(a){return VF()[a]||0};
XF=function(a,b){var c=VF();b!==c[a]&&(0!==b?c[a]=b:delete c[a],Gna(c))};
Hna=function(a){var b=VF();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);Gna(b);JSON.stringify(b);return b};
Ina=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(iia())})})};
g.YF=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(Jna().open())})})};
Kna=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,g.Yw(),2);if(3!=f.i)return(d=f.u)?g.z(f,(0,g.YF)(),3):f.return();e=f.u;return f.return(yw(e,["index","media","captions"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");h=[h.objectStore("index").delete(l),h.objectStore("media").delete(l),h.objectStore("captions").delete(l)];return kw.all(h).then(function(){})}))})})};
Nna=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.z(e,g.Yw(),2);if(3!=e.i){c=e.u;if(!c)throw g.iw("rvdfd");return g.z(e,(0,g.YF)(),3)}d=e.u;return e.return(yw(d,["index","media"],"readwrite",function(f){var h={};return Fw(f.objectStore("index"),{},function(l){var m,n=l.getKey().match(/^([\w\-_]+)\|(a|v)$/),p=kw.resolve(void 0);if(n){var q=n[1];n=n[2];h[q]=h[q]||{};h[q][n]=Lna(null===(m=l.getValue())||void 0===m?void 0:m.fmts)}else p=l.delete().then(function(){});
return kw.all([l.continue(),p]).then(function(t){return g.r(t).next().value})}).then(function(){for(var l={},m=g.r(Object.keys(h)),n=m.next();!n.done;n=m.next()){n=n.value;
var p=h[n].v;l[n]=h[n].a&&p?1:2}var q=Hna(l);return Hw(f.objectStore("media"),{},function(t){var u=t.getKey().match(Mna);u&&l[u[1]]||f.objectStore("media").delete(t.getKey());return t.continue()}).then(function(){return q})})}))})})};
Ona=function(a,b){return g.H(this,function d(){var e,f;return g.B(d,function(h){if(1==h.i)return g.z(h,g.Yw(),2);if(3!=h.i){e=h.u;if(!e)throw g.iw("wct");return g.z(h,(0,g.YF)(),3)}f=h.u;return g.z(h,yw(f,["captions"],"readwrite",function(l){var m=[];l=l.objectStore("captions");for(var n=0;n<b.length;n++){var p=Aw(l,b[n],a+"|"+b[n].metadata.vss_id);m.push(p)}return kw.all(m)}),0)})})};
Pna=function(a){return g.H(this,function c(){var d,e,f;return g.B(c,function(h){if(1==h.i)return d=IDBKeyRange.bound(a+"|",a+"~"),g.z(h,g.Yw(),2);if(3!=h.i){e=h.u;if(!e)throw g.iw("gactfv");return g.z(h,(0,g.YF)(),3)}f=h.u;return h.return(Sha(f,d))})})};
$F=function(a,b,c,d,e,f,h){return g.H(this,function m(){var n,p,q,t,u,x;return g.B(m,function(y){switch(y.i){case 1:return n=WF(a),4===n?y.return(4):g.z(y,g.Yw(),2);case 2:p=y.u;if(!p)throw g.iw("wiac");if(!h||void 0===f){y.fb(3);break}return g.z(y,Qna(h,f),4);case 4:f=y.u;case 3:return q=c.lastModified||"0",g.z(y,(0,g.YF)(),5);case 5:return t=y.u,ta(y,6),ZF++,g.z(y,yw(t,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC"},function(A){if(void 0!==e&&void 0!==f){var F=""+a+"|"+b.id+
"|"+q+"|"+String(e).padStart(10,"0");F=Aw(A.objectStore("media"),f,F)}else F=kw.resolve(void 0);var G=Rna(a,b.isVideo()),E=Rna(a,!b.isVideo()),K={fmts:Sna(d),format:c||{}};G=Aw(A.objectStore("index"),K,G);var V=-1===d.downloadedEndTime;A=V?A.objectStore("index").get(E):kw.resolve(void 0);return kw.all([A,F,G]).then(function(L){L=g.r(L).next().value;ZF--;var W=WF(a);4!==W&&V&&void 0!==L&&Lna(L.fmts)&&(W=1,XF(a,W));return W})}),8);
case 8:return y.return(y.u);case 6:u=va(y);ZF--;x=WF(a);if(4===x)return y.return(x);XF(a,4);throw u;}})})};
Tna=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,g.Yw(),2);if(3!=f.i){d=f.u;if(!d)throw g.iw("ri");return g.z(f,(0,g.YF)(),3)}e=f.u;return f.return(yw(e,["index"],"readonly",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");return zw(h.objectStore("index"),l).then(function(m){return m.map(function(n){return n?n.format:{}})})}))})})};
Vna=function(a,b,c,d,e){return g.H(this,function h(){var l,m,n;return g.B(h,function(p){if(1==p.i)return g.z(p,g.Yw(),2);if(3!=p.i){l=p.u;if(!l)throw g.iw("rc");return g.z(p,(0,g.YF)(),3)}m=p.u;n=yw(m,["media"],"readonly",function(q){var t=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return q.objectStore("media").get(t)});
return e?p.return(n.then(function(q){return Una(e,q)})):p.return(n)})})};
Wna=function(a){return g.H(this,function c(){return g.B(c,function(d){XF(a,0);return d.return(Kna(a))})})};
Xna=function(){return g.H(this,function b(){return g.B(b,function(c){var d=UF();d&&d.remove("yt-player-lv");return g.z(c,Jna().delete(),0)})})};
Lna=function(a){return a?a.includes("dlt=-1")||!a.includes("dlt="):!1};
Rna=function(a,b){return""+a+"|"+(b?"v":"a")};
Sna=function(a){var b={};return Es((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Yna=function(a){var b={},c={};a=g.r(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(Mna)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.r(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
Zna=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=CE(a.ustreamerConfig))};
g.aG=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.cG=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.bG(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.dG=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.bG=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("")};
coa=function(a,b,c,d){a||(a=b&&$na.hasOwnProperty(b)&&aoa.hasOwnProperty(b)?aoa[b]+"_"+$na[b]:void 0);b=a;if(!b)return null;a=b.match(boa);if(!a||5!==a.length)return null;if(a=b.match(boa)){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};
eoa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return doa[a];return null};
eG=function(a){return a&&a.baseUrl||""};
fG=function(a){a=g.Hs(a);for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
foa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Aa=b)};
hoa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=goa(d.baseUrl);if(!e)return;d=new g.aG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.uA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.pC=b.audioTracks||[];a.TL=b.defaultAudioTrackIndex||0;a.qC=b.translationLanguages?g.lm(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.uA(f.languageName)}}):
[];
a.yl=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
ioa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},g.Fs(h))});
d=g.r(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Mj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Mj: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,
Mj:0===f?5:7})}}};
joa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
koa=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)};
qoa=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=g.Fs(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=loa[c]);(c=a.projectionType)&&(b.projection_type=moa[c]);(c=a.stereoLayout)&&(b.stereo_layout=noa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=ooa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(gG[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=eoa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=poa[a])&&(b.primaries=a);return g.ni(b)};
hG=function(a){g.R.call(this);this.i=null;this.B=new Ir;this.i=null;this.K=new Set;this.D=a||""};
roa=function(a,b,c){for(c=iG(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.jG(d,b)))return d;c--}return g.jG(a.levels[0],b)};
toa=function(a,b,c){c=iG(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),Hr(d.B,f,{tL:f,HL:e}))}soa(a)};
soa=function(a){if(!a.i&&!a.B.isEmpty()){var b=a.B.remove();a.i=uoa(a,b)}};
uoa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.tL].Wd(b.HL);c.onload=function(){var d=b.tL,e=b.HL;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);soa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.DD()-1);e=[e,d];a.ea("l",e[0],e[1])};
return c};
g.kG=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.B=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.C=a[6];this.signature=a[7];this.videoLength=d};
g.jG=function(a,b){b>=a.MB()&&a.Wt();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Wt()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Wd(c),column:b,columns:h,row:e,rows:d,Sz:a.width*h,Rz:a.height*d}};
lG=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;hG.call(this,c);this.isLive=d;this.S=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
voa=function(a,b,c){return(a=a.levels[b])?a.Gx(c):-1};
iG=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
mG=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.kG.call(this,a,b,c,0);this.u=null;this.J=d?2:0};
nG=function(a,b,c,d){lG.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].vH(c)};
woa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.pi(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
pG=function(a,b){g.R.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.WJ=this.wl=this.adQueryId=this.vl=null;this.yu={start:NaN,end:NaN};this.Al="";this.zd=null;this.sC=this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Sa="";this.Eu=this.xl=!1;this.aH=null;this.Ni=this.Xe=this.Pi=this.DF=!1;this.K=null;this.gL=this.Kg=!1;this.xe=NaN;this.Kh=!1;this.vu=0;this.II=!1;this.Kq={};this.fC=this.cycToken=null;this.author="";this.pu=0;this.Qj=
!1;this.ou=null;this.jC=[];this.ip=this.iN=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.ac=this.Zb="";this.contentCheckOk=!1;this.endSeconds=this.Mb=0;this.HI=this.Fc=this.u=null;this.oE="";this.Da=!1;this.Pj=this.Oj=0;this.Bu=this.pipable=this.Hk=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.kb=this.isPrivate=this.isListed=this.BE=this.qK=this.mutedAutoplay=this.Ok=!1;this.IG="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=
this.isLiveDefaultBroadcast=this.tF=this.Zi=this.Ze=!1;this.latencyClass="UNKNOWN";this.wE=this.enableServerStitchedDai=this.Pd=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.Eb=0;this.reloadReason="";this.BF=this.ZG=this.gf=!1;this.keywords={};this.zb="";this.Sj=0;this.Mo=!1;this.liveChunkReadahead=NaN;this.Wg=null;this.ll=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.xi=[];this.ya=[];this.racyCheckOk=!1;
this.ZH={};this.Yw=0;this.C=null;this.autonavState=1;this.VI=null;this.shortDescription="";this.qb=this.EB=!1;this.Lo=this.kc=this.startSeconds=0;this.No=this.DL=this.Oo=oG;this.suggestions=null;this.rl=this.ul=void 0;this.Fi=null;this.GB=!1;this.expandedSubtitle=this.Vp=this.subtitle=this.title="";this.tp=this.suggestedAction=this.multiMarkersPlayerBarRenderer=this.rC=void 0;this.ql=[];this.hlsFormats=this.Hi="";this.uq=this.Nq=this.Of=this.Fb=this.Za=this.Uj=this.mq=null;this.Wh="vvt";this.Sc=!1;
this.nC=null;this.HK="";this.gk=NaN;this.qr=this.Wq=this.ek=this.Vq=this.Uq=this.Ti=this.dk=this.lr=this.fk=this.Xq="";this.Vi=null;this.DI=!1;this.S={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.CO=this.jO=NaN;this.rd=this.Rj=this.cd=this.XG=this.EO=!1;this.Vj=!0;this.Z={};this.captionTracks=[];this.pC=[];this.TL=0;this.qC=[];this.yl=!1;this.Wi=new dB("und",new vD("Default","und",!0));this.pG=0;this.J=null;this.Zg=[];this.dD=!1;this.bd=[];this.sL=!1;this.Tq=this.uc="";this.slotPosition=
-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.nN=this.Lq=this.Xi=this.jg=this.OC=this.Au=this.xu=null;this.yp=!1;this.ma=null;this.isInlinePlaybackNoAd=this.Og=this.useCobaltWidevine=this.GI=this.Rp=this.Y=!1;this.oI=this.uI=NaN;this.defraggedFromSubfragments=this.Dk=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.tu=this.lC=this.Fe=!1;this.interstitials=[];this.D=this.NE=!1;this.Ua="";this.allowImaMonetization=!1;this.Tj=this.hH="";this.Gq=null;this.Dc=
"";this.Ja=this.FO=!1;this.bH=this.bk="";this.WG=this.VG=this.pE=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Zj=!1;this.Rh=this.Nf=!0;this.errorDetail=this.userGenderAge="";this.hC=this.iC=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.oi=this.errorReason=this.errorCode=null;this.Uo=this.So="";this.Lp=!1;this.jl=[];
this.FI=this.yI=this.wI=this.wg=this.ue=0;this.fetchType=null;this.bI=!0;this.mJ=void 0;this.iL=-1;this.Lh=this.wc=!1;this.qd=null;this.xb="";this.Ug=!1;this.watchUrl=null;this.N("web_player_ux_module_wait")&&this.B.zb&&this.ya.push("ux");this.wc=this.N("web_new_autonav_countdown");this.Lh=this.N("web_new_big_thumbnail_endscreen");xoa(this,b)};
g.sG=function(a,b,c,d){b&&b.cpn&&g.Bz(new g.$v("CPN provided in VideoData update",{Faa:b.cpn,Qf:a.clientPlaybackNonce,uaa:c}));d&&(a.errorCode=null,a.errorDetail="",a.errorReason=null,a.oi=null);c?(SE(b),xoa(a,b),qG(a)&&rG(a)):(b=b||{},yoa(a,b),zoa(a,b),Aoa(a,b),a.ea("dataupdated"))};
Aoa=function(a,b){a.fflags=QE(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Sa=lA(c));a.xl=NE(a.xl,b.iv_ads_only);a.Eu=NE(a.Eu,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.XW=c;a.isPharma=NE(a.isPharma,b.is_pharma);a.author=QE(a.author,b.author);a.Zb=goa(b.ttsurl)||a.Zb;a.Qj=NE(a.Qj,b.cc_asr);a.ac=QE(a.ac,b.channel_path);a.channelBanner=QE(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.Qh=QE(a.Qh,c);a.videoCountText=QE(a.videoCountText,b.video_count_text);a.autonavState=
OE(a.autonavState,b.autonav_state,Boa);a.clientPlaybackNonce=QE(a.clientPlaybackNonce,b.cpn);a.subscribed=NE(a.subscribed,b.subscribed);a.rawViewCount=PE(a.rawViewCount,b.view_count);a.shortViewCount=QE(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=QE(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=QE(a.lengthText||"",b.lengthText);a.Zp=QE(a.Zp||"",b.Zp);a.Nm=QE(a.Nm||"",b.Nm);a.title=QE(a.title,b.title);a.subtitle=QE(a.subtitle,b.subtitle);a.Vp=QE(a.Vp,b.expanded_title);
a.expandedSubtitle=QE(a.expandedSubtitle,b.expanded_subtitle);a.Al=QE(a.Al,b.aria_label);a.ypcPreview=QE(a.ypcPreview,b.ypc_preview);a.oC=QE(a.oC,b.ypc_origin);a.Sc=NE(a.Sc,b.ypc_is_premiere_trailer);a.bk=QE(a.bk,b.ypc_clickwrap_message);a.paygated=NE(a.paygated,b.paygated);a.DI=NE(a.DI,b.requires_purchase);a.showShareButton=!NE(!a.showShareButton,b.ss);a.Nf=NE(a.Nf,b.showwatchlater);a.Rh=NE(a.Rh,b.shownotifybutton);a.Zj=NE(a.Zj,b.copy_share);if(c=b.keywords)a.keywords=Coa(c.split(","));if(c=b.rvs)a.suggestions=
Gs(c).map(function(d){return d.playlist||d.list||d.api?new g.RF(a.B,d):new g.SF(a.B,d)});
a.contentCheckOk=NE(a.contentCheckOk,b.cco);a.racyCheckOk=NE(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=NE(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=QE(a.oauthToken,b.oauth_token);a.zb=QE(a.zb,b.kpt);a.visitorData=QE(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=Ds(c,"&");a.Up=QE(a.Up,b.endscreen_ad_tracking_data);a.IJ=NE(a.IJ,b.wait_for_vast_info_cards_xml);a.FB=NE(a.FB,b.suppress_creator_endscreen);a.YG=NE(a.YG,b.is_trueview_action);a.ZI=QE(a.ZI,b.tracking_list);
a.So=QE(a.So,b.clip);a.Uo=QE(a.Uo,b.clipt);Doa(a,b)};
xoa=function(a,b){var c,d,e,f;b=b||{};var h=b.errordetail;null!=h&&(a.errorDetail=h);var l=b.errorcode;null!=l?a.errorCode=l:"fail"==b.status&&(a.errorCode="150");var m=b.reason;null!=m&&(a.errorReason=m);var n=b.subreason;null!=n&&(a.oi=n);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||zy());a.kb=NE(a.B.kb,b.livemonitor);yoa(a,b);var p=b.raw_player_response;if(!p){var q=b.player_response;q&&(p=JSON.parse(q))}p&&(a.playerResponse=p);if(a.playerResponse){var t=a.playerResponse.annotations;if(t)for(var u=
g.r(t),x=u.next();!x.done;x=u.next()){var y=x.value.playerAnnotationsUrlsRenderer;if(y){y.adsOnly&&(a.xl=!0);y.allowInPlaceSwitch&&(a.Eu=!0);var A=y.loadPolicy;A&&(a.annotationsLoadPolicy=Eoa[A]);var F=y.invideoUrl;F&&(a.Sa=lA(F));a.DF=!0;break}}var G=a.playerResponse.attestation;G&&foa(a,G);var E=a.playerResponse.cotn;E&&(a.cotn=E);var K=a.playerResponse.heartbeatParams;if(K){var V,L=K.heartbeatToken;L&&(a.drmSessionId=K.drmSessionId||"",a.heartbeatToken=L,a.jO=Number(K.intervalMilliseconds),a.CO=
Number(K.maxRetries),a.EO=!!K.softFailOnError,a.XG=!!K.useInnertubeHeartbeatsForDrm,a.Pi=!0);a.heartbeatServerData=K.heartbeatServerData;a.N("heartbeat_iff_heartbeat_params_filled")&&(a.Pi=!0);a.Kh=!(null===(V=K.heartbeatAttestationConfig)||void 0===V||!V.requiresAttestation)}var W=a.playerResponse.messages;W&&joa(a,W);var oa=a.playerResponse.multicamera;if(oa){var wa=oa.playerLegacyMulticameraRenderer;if(wa){var vb=wa.metadataList;vb&&(a.bH=vb,a.bd=Gs(vb))}}var ob=a.playerResponse.overlay;if(ob){var $b=
ob.playerControlsOverlayRenderer;if($b){var Uc=$b.controlBgHtml;null!=Uc?(a.Ua=Uc,a.D=!0):(a.Ua="",a.D=!1);if($b.mutedAutoplay){var bd=$b.mutedAutoplay.playerMutedAutoplayOverlayRenderer;if(bd&&bd.endScreen){var Se=bd.endScreen.playerMutedAutoplayEndScreenRenderer;Se&&Se.text&&(a.hH=g.uA(Se.text))}}else a.mutedAutoplay=!1}}var ac=a.playerResponse.playabilityStatus;if(ac){var vk=ac.backgroundability;vk&&vk.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Wi=ac.offlineability;Wi&&
Wi.offlineabilityRenderer.offlineable&&(a.offlineable=!0);var Xi=ac.contextParams;Xi&&(a.contextParams=Xi);var Ph=ac.pictureInPicture;Ph&&Ph.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ac.playableInEmbed&&(a.allowEmbed=!0);var Ia=ac.ypcClickwrap;if(Ia){var Dd=Ia.playerLegacyDesktopYpcClickwrapRenderer,Bb=Ia.ypcRentalActivationRenderer;if(Dd)a.bk=Dd.durationMessage||"",a.Ni=!0;else if(Bb){var sm=Bb.durationMessage;a.bk=sm?g.uA(sm):"";a.Ni=!0}}var Qh=ac.errorScreen;if(Qh){if(Qh.playerLegacyDesktopYpcTrailerRenderer){var nd=
Qh.playerLegacyDesktopYpcTrailerRenderer;a.qr=nd.trailerVideoId||"";var Yo=Qh.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var tm=Yo&&Yo.ypcTrailerRenderer}else if(Qh.playerLegacyDesktopYpcOfferRenderer)nd=Qh.playerLegacyDesktopYpcOfferRenderer;else if(Qh.ypcTrailerRenderer){tm=Qh.ypcTrailerRenderer;var Qs=tm.fullVideoMessage;a.dk=Qs?g.uA(Qs):""}nd&&(a.ek=nd.itemTitle||"",nd.itemUrl&&(a.Wq=nd.itemUrl),nd.itemBuyUrl&&(a.Uq=nd.itemBuyUrl),a.Vq=nd.itemThumbnail||"",a.lr=nd.offerHeadline||"",a.fk=
nd.offerDescription||"",a.Ti=nd.offerId||"",a.Xq=nd.offerButtonText||"",a.nC=nd.offerButtonFormattedText||null,a.gk=nd.overlayDurationMsec||NaN,a.dk=nd.fullVideoMessage||"",a.Xe=!0);if(tm){var um=tm.unserializedPlayerResponse;if(um)a.Vi={raw_player_response:um};else{var Uy=tm.playerVars;a.Vi=Uy?g.Fs(Uy):null}a.Xe=!0}}}var Cf=a.playerResponse.playbackTracking;if(Cf){var Rs=b,Vy=eG(Cf.googleRemarketingUrl);Vy&&(a.googleRemarketingUrl=Vy);var Wy=eG(Cf.youtubeRemarketingUrl);Wy&&(a.youtubeRemarketingUrl=
Wy);var Xy=eG(Cf.ptrackingUrl);if(Xy){var vm=fG(Xy),Yy=vm.oid;Yy&&(a.jH=Yy);var Zo=vm.pltype;Zo&&(a.kH=Zo);var Zy=vm.ptchn;Zy&&(a.iH=Zy);var $y=vm.ptk;$y&&(a.Hq=encodeURIComponent($y))}var Rh=eG(Cf.ppvRemarketingUrl);Rh&&(a.ppvRemarketingUrl=Rh);var az=eG(Cf.qoeUrl);if(az){for(var Sh=g.Hs(az),bz=g.r(Object.keys(Sh)),cz=bz.next();!cz.done;cz=bz.next()){var $G=cz.value,$o=Sh[$G];Sh[$G]=Array.isArray($o)?$o.join(","):$o}a.mX=Sh;var dz=Sh.cat;dz&&(a.Tj=dz);var ez=Sh.live;ez&&(a.IG=ez);var Ss=Sh.drm_product;
Ss&&(a.sC=Ss)}var Yi=eG(Cf.remarketingUrl);if(Yi){a.remarketingUrl=Yi;var ap=fG(Yi);ap.foc_id&&(a.S.focEnabled=!0);var gc=ap.data;gc&&(a.S.rmktEnabled=!0,gc.engaged&&(a.S.engaged="1"));a.S.baseUrl=fi(Yi)+bi(g.di(5,Yi))}var Rg=eG(Cf.videostatsPlaybackUrl);if(Rg){var Vc=fG(Rg);a.HS=Vc;var Ts=Vc.adformat;if(Ts&&(Rs.adformat=Ts,!a.N("process_video_data_ad_format_in_player_tracking_killswitch"))){var fz=a.V(),gz=coa(Ts,a.Tq,fz.u,fz.B);gz&&(a.adFormat=gz)}var hz=Vc.aqi;hz&&(Rs.ad_query_id=hz);var Us=Vc.autoplay;
Us&&(a.Ok="1"==Us);var wm=Vc.autonav;wm&&(a.Hk="1"==wm);var iz=Vc.delay;iz&&(a.Mb=dg(iz));var jz=Vc.ei;jz&&(a.eventId=jz);"adunit"===Vc.el&&(a.Ok=!0);var kz=Vc.feature;kz&&(a.CI=kz);var Vs=Vc.list;Vs&&(a.playlistId=Vs);var Ws=Vc.of;Ws&&(a.zW=Ws);var wk=Vc.osid;wk&&(a.osid=wk);var Xs=Vc.referrer;Xs&&(a.referrer=Xs);var lz=Vc.sdetail;lz&&(a.AI=lz);var mz=Vc.sourceid;mz&&(a.cba=mz);var nz=Vc.ssrt;nz&&(a.uu="1"==nz);var Ys=Vc.subscribed;Ys&&(a.subscribed="1"==Ys,a.S.subscribed=Ys);var kf=Vc.uga;kf&&(a.userGenderAge=
kf);var Zs=Vc.upt;Zs&&(a.NW=Zs);var aH=Vc.vm;aH&&(a.videoMetadata=aH)}var $s=eG(Cf.videostatsWatchtimeUrl);if($s){var at=fG($s).ald;at&&(a.ES=at)}if(Cf.promotedPlaybackTracking){var Rb=Cf.promotedPlaybackTracking;Rb.startUrls&&(a.Mq=Rb.startUrls);Rb.firstQuartileUrls&&(a.AB=Rb.firstQuartileUrls);Rb.secondQuartileUrls&&(a.BB=Rb.secondQuartileUrls);Rb.thirdQuartileUrls&&(a.CB=Rb.thirdQuartileUrls);Rb.completeUrls&&(a.zB=Rb.completeUrls);Rb.engagedViewUrls&&(1<Rb.engagedViewUrls.length&&g.Bz(new g.$v("There are more than one engaged_view_urls.")),
a.dh=Rb.engagedViewUrls[0])}}var oz=a.playerResponse.playerAds;if(oz)for(var bH=b,bt=g.r(oz),ct=bt.next();!ct.done;ct=bt.next()){var dt=ct.value;if(dt){var pz=dt.playerLegacyDesktopWatchAdsRenderer;if(pz){var xk=pz.playerAdParams;if(xk){"1"==xk.autoplay&&(a.Ok=!0);a.wl=xk.encodedAdSafetyReason||null;void 0!==xk.showContentThumbnail&&(a.Vj=!!xk.showContentThumbnail);bH.enabled_engage_types=xk.enabledEngageTypes;break}}}}var ke=a.playerResponse.playerConfig;if(ke){var yk=ke.manifestlessWindowedLiveConfig;
if(yk){var qz=Number(yk.minDvrSequence),et=Number(yk.maxDvrSequence),Zi=Number(yk.minDvrMediaTimeMs),rz=Number(yk.maxDvrMediaTimeMs),ft=Number(yk.startWalltimeMs);qz&&(a.ue=qz);Zi&&(a.yI=Zi/1E3);et&&(a.wg=et);rz&&(a.wI=rz/1E3);ft&&(a.FI=ft/1E3)}var bp=ke.daiConfig;if(bp){if(bp.enableDai){a.Pd=!0;var sz=bp.enableServerStitchedDai;sz&&(a.enableServerStitchedDai=sz)}"DAI_TYPE_SS_DISABLED"===bp.daiType&&(a.wE=!0)}var cp=ke.audioConfig;if(cp){var tz=cp.loudnessDb;null!=tz&&(a.xe=tz);cp.audioMuted&&(a.Kg=
!0);cp.muteOnStart&&(a.gL=!0)}var uz=ke.playbackEndConfig;if(uz){var vz=uz.endSeconds;vz&&a.mutedAutoplay&&(a.endSeconds=vz)}var dp=ke.fairPlayConfig;if(dp){var gt=dp.certificate;gt&&(a.Fc=CE(gt));var ep=Number(dp.keyRotationPeriodMs);0<ep&&(a.US=ep);var wz=Number(dp.keyPrefetchMarginMs);0<wz&&(a.IS=wz)}var zk=ke.playbackStartConfig;if(zk){a.WG=Number(zk.startSeconds);var ht=zk.liveUtcStartSeconds,it=!1;a.N("html5_start_seconds_priority")&&(it=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds);ht&&
!it&&(a.liveUtcStartSeconds=Number(ht));var hT=zk.startPosition;if(hT){var dda=hT.utcTimeMillis;dda&&!it&&(a.liveUtcStartSeconds=.001*Number(dda));var eda=hT.streamTimeMillis;eda&&(a.Lo=.001*Number(eda))}a.progressBarStartPosition=zk.progressBarStartPosition;a.progressBarEndPosition=zk.progressBarEndPosition}else{var iT=ke.skippableSegmentsConfig;if(iT){var fda=iT.introSkipDurationMs;fda&&(a.pE=Number(fda)/1E3);var gda=iT.outroSkipDurationMs;gda&&(a.VG=Number(gda)/1E3)}}var jT=ke.skippableIntroConfig;
if(jT){var hda=Number(jT.startMs),ida=Number(jT.endMs);isNaN(hda)||isNaN(ida)||(a.uI=hda,a.oI=ida)}var jda=ke.streamSelectionConfig;jda&&(a.Pj=Number(jda.maxBitrate));var kda=ke.vrConfig;kda&&(a.Rp="1"==kda.partialSpherical);var xz=ke.webDrmConfig;if(xz){xz.skipWidevine&&(a.GI=!0);var lda=xz.widevineServiceCert;lda&&(a.HI=CE(lda));xz.useCobaltWidevine&&(a.useCobaltWidevine=!0);xz.startWithNoQualityConstraint&&(a.Og=!0)}var mda=ke.mediaCommonConfig;if(mda){var cH=mda.dynamicReadaheadConfig;cH&&(a.maxReadAheadMediaTimeMs=
cH.maxReadAheadMediaTimeMs||NaN,a.minReadAheadMediaTimeMs=cH.minReadAheadMediaTimeMs||NaN,a.readAheadGrowthRateMs=cH.readAheadGrowthRateMs||NaN)}}var Ak=a.playerResponse.streamingData;if(Ak){var nda=Ak.adaptiveFormats;if(nda){for(var oda=[],pda=g.r(nda),Th=pda.next();!Th.done;Th=pda.next()){var dH=Th.value;oda.push(qoa(dH));var qda=dH.loudnessDb;dH.itag&&null!=qda&&(a.Kq[dH.itag.toString()]=qda)}a.adaptiveFormats=oda.join(",")}var kT=Ak.formats;if(kT){var yz=[],rda=g.r(kT);for(Th=rda.next();!Th.done;Th=
rda.next()){var lT=Th.value;yz.push(lT.itag+"/"+lT.width+"x"+lT.height)}a.oE=yz.join(",");yz=[];var sda=g.r(kT);for(Th=sda.next();!Th.done;Th=sda.next()){var jt=Th.value,zz={itag:jt.itag,type:jt.mimeType,quality:jt.quality},tda=jt.url;tda&&(zz.url=tda);var uda=jt.cipher||jt.signatureCipher;if(uda){var mT=g.Fs(uda);zz.sp=mT.sp;zz.s=mT.s;zz.url=mT.url}yz.push(g.ni(zz))}a.Hi=yz.join(",")}var nT=Ak.hlsFormats;if(nT){var vda=ke||null,eH={};if(vda){var oT=vda.audioPairingConfig;if(oT&&oT.pairs)for(var wda=
g.r(oT.pairs),pT=wda.next();!pT.done;pT=wda.next()){var xda=pT.value,qT=xda.videoItag;eH[qT]||(eH[qT]=[]);eH[qT].push(xda.audioItag)}}for(var yda={},zda=g.r(nT),fp=zda.next();!fp.done;fp=zda.next()){var Ada=fp.value;yda[Ada.itag]=Ada.bitrate}var Bda=[],Cda=g.r(nT);for(fp=Cda.next();!fp.done;fp=Cda.next()){var Df=fp.value,$i={itag:Df.itag,type:Df.mimeType,url:Df.url,bitrate:Df.bitrate,width:Df.width,height:Df.height,fps:Df.fps},fH=Df.audioTrack;if(fH){var Dda=fH.displayName;Dda&&($i.name=Dda,$i.audio_track_id=
fH.id,fH.audioIsDefault&&($i.is_default="1"))}if(Df.drmFamilies){for(var Eda=[],Fda=g.r(Df.drmFamilies),rT=Fda.next();!rT.done;rT=Fda.next())Eda.push(gG[rT.value]);$i.drm_families=Eda.join(",")}var gH=eH[Df.itag];if(gH&&gH.length){$i.audio_itag=gH.join(",");var Gda=yda[gH[0]];Gda&&($i.bitrate+=Gda)}var Hda=eoa(Df);Hda&&($i.eotf=Hda);Df.audioChannels&&($i.audio_channels=Df.audioChannels);Bda.push(g.ni($i))}a.hlsFormats=Bda.join(",")}var sT=Ak.licenseInfos;if(sT&&0<sT.length){for(var Ida={},Jda=g.r(sT),
tT=Jda.next();!tT.done;tT=Jda.next()){var Kda=tT.value,Lda=Kda.drmFamily,Mda=Kda.url;Lda&&Mda&&(Ida[gG[Lda]]=Mda)}a.zd=Ida}var Nda=Ak.drmParams;Nda&&(a.drmParams=Nda);var Oda=Ak.dashManifestUrl;Oda&&(a.eb=g.pi(Oda,{cpn:a.clientPlaybackNonce}));var Pda=Ak.hlsManifestUrl;Pda&&(a.hlsvp=Pda);var Qda=Ak.probeUrl;Qda&&(a.probeUrl=lA(g.pi(Qda,{cpn:a.clientPlaybackNonce})))}var Rda=a.playerResponse.trackingParams;Rda&&(a.Ya=Rda);var yc=a.playerResponse.videoDetails;if(yc){var aj=b,uT=yc.videoId;uT&&(a.videoId=
uT,aj.video_id||(aj.video_id=uT));var Sda=yc.channelId;Sda&&(a.S.uid=Sda.substr(2));var vT=yc.title;vT&&(a.title=vT,aj.title||(aj.title=vT));var wT=yc.lengthSeconds;wT&&(a.lengthSeconds=Number(wT),aj.length_seconds||(aj.length_seconds=wT));var Tda=yc.keywords;Tda&&(a.keywords=Coa(Tda));var xT=yc.channelId;xT&&(a.Si=xT,aj.ucid||(aj.ucid=xT));var Uda=yc.viewCount;Uda&&(a.rawViewCount=Number(Uda));var yT=yc.author;yT&&(a.author=yT,aj.author||(aj.author=yT));var Vda=yc.shortDescription;Vda&&(a.shortDescription=
Vda);var Wda=yc.isCrawlable;Wda&&(a.isListed=Wda);var Xda=yc.musicVideoType;Xda&&(a.musicVideoType=Xda);var zT=yc.isLive;null!=zT&&(a.isLivePlayback=zT);if(zT||yc.isUpcoming)a.isPremiere=!yc.isLiveContent;var Yda=yc.thumbnail;Yda&&(a.Z=QF(Yda));var Zda=ke||null,AT=b;yc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);yc.isUpcoming&&(a.isUpcoming=!0);if(yc.isPostLiveDvr)a.Ze=!0;else{var BT=!1;if(a.kb)a.allowLiveDvr=tG(!0),a.isLivePlayback=!0;else if(yc.isLive){AT.livestream="1";a.allowLiveDvr=
tG(!!yc.isLiveDvrEnabled);a.Ka=27;yc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var $da=yc.latencyClass;$da&&(a.latencyClass=Foa[$da]||"UNKNOWN");var aea=yc.liveChunkReadahead;aea&&(a.liveChunkReadahead=aea);var Az=Zda&&Zda.livePlayerConfig;if(Az){Az.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Az.hasSubfragmentedWebm&&(a.Dk=!0);Az.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var bea=Az.liveExperimentalContentId;bea&&(a.liveExperimentalContentId=Number(bea))}BT=!0}else yc.isUpcoming&&
(BT=!0);BT&&(a.isLivePlayback=!0,AT.adformat&&"8"!==AT.adformat.split("_")[1]||a.ya.push("heartbeat"),a.N("heartbeat_iff_heartbeat_params_filled")||(a.Pi=!0))}var cea=yc.isPrivate;cea&&(a.isPrivate=NE(a.isPrivate,cea))}if(ac){var dea=yc||null,eea=!1,kt=ac.errorScreen;eea=kt&&(kt.playerLegacyDesktopYpcOfferRenderer||kt.playerLegacyDesktopYpcTrailerRenderer||kt.ypcTrailerRenderer)?!0:dea&&dea.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ac.status);if(!eea){a.errorCode="150";
var hH=kt&&kt.playerErrorMessageRenderer;if(hH){a.playerErrorMessageRenderer=hH;var fea=hH.reason;fea&&(a.errorReason=g.uA(fea));var DT=hH.subreason;DT&&(a.oi=g.uA(DT),a.Xp=DT)}else a.errorReason=ac.reason||null;var ET=ac.status;if("LOGIN_REQUIRED"===ET)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===ET)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ET){var gea=ac.errorScreen,hea=gea&&gea.playerKavRenderer;a.errorDetail=hea&&hea.kavUrl?"4":"3"}else a.errorDetail=ac.isBlockedInRestrictedMode?
"5":"0"}}var iea=a.playerResponse.interstitialPods;iea&&ioa(a,iea);a.Sa&&a.eventId&&(a.Sa=Ks(a.Sa,{ei:a.eventId}));var FT=a.playerResponse.captions;FT&&FT.playerCaptionsTracklistRenderer&&hoa(a,FT.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.WG=.001*Number(a.clipConfig.startTimeMs));a.accountLinkingConfig=a.playerResponse.accountLinkingConfig;a.accountLinkingConfig&&a.accountLinkingConfig.alsParam&&(a.kI=a.accountLinkingConfig.alsParam);
a.N("web_player_include_innertube_commands")&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&koa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}zoa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var jea=b.hlsdvr;null!=jea&&(a.allowLiveDvr=tG("1"==jea));a.adQueryId=b.ad_query_id||null;a.wl||(a.wl=b.encoded_ad_safety_reason||null);a.WJ=b.agcid||null;a.xu=b.ad_id||
null;a.Au=b.ad_sys||null;a.OC=b.encoded_ad_playback_context||null;a.Kg=NE(a.Kg,b.infringe||b.muted);a.authKey=b.authkey;a.mI=b.authuser;a.mutedAutoplay=NE(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.endSeconds=PE(a.endSeconds,a.VG||b.end||b.endSeconds);a.Ya=QE(a.Ya,b.itct);a.BE=NE(a.BE,b.noiba);a.tF=NE(a.tF,b.is_live_destination);a.isLivePlayback=NE(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=
NE(a.isUpcoming,b.isUpcoming));a.Ze=NE(a.Ze,b.post_live_playback);a.isMdxPlayback=NE(a.isMdxPlayback,b.mdx);var iH=b.mdx_control_mode;iH&&(a.mdxControlMode="number"===typeof iH?iH:dg(iH));a.isInlinePlaybackNoAd=NE(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Eb=PE(a.Eb,b.reload_count);a.reloadReason=QE(a.reloadReason,b.reload_reason);a.Vj=NE(a.Vj,b.show_content_thumbnail);a.BF=NE(a.BF,b.utpsa);a.GB=NE(a.GB,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.fC=b.tkn||null;var kea=PF(b);0<
Object.keys(kea).length&&(a.Z=kea);a.La=QE(a.La,b.vvt);a.mdxEnvironment=QE(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);a.xX=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=QE(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?PE(0,b.index):PE(a.playlistIndex,b.index));a.jI=b.pyv_view_beacon_url;a.pI=b.pyv_quartile25_beacon_url;a.vI=b.pyv_quartile50_beacon_url;a.xI=
b.pyv_quartile75_beacon_url;a.nI=b.pyv_quartile100_beacon_url;var lea=b.remarketing_url;lea&&(a.remarketingUrl=lea);var mea=b.ppv_remarketing_url;mea&&(a.ppvRemarketingUrl=mea);var nea=b.session_data;!a.zI&&nea&&(a.zI=Ds(nea,"&").feature);a.isFling=1==PE(a.isFling?1:0,b.is_fling);a.vnd=PE(a.vnd,b.vnd);a.Tg=QE(a.Tg,b.force_ads_url);a.Bg=QE(a.Bg,b.ctrl);a.Ff=QE(a.Ff,b.ytr);a.Fl=b.ytrcc;a.BI=b.ytrexp;a.DB=b.ytrext;a.uc=QE(a.uc,b.adformat);a.Tq=QE(a.Tq,b.attrib);a.slotPosition=PE(a.slotPosition,b.slot_pos);
a.breakType=b.break_type;a.uu=NE(a.uu,b.ssrt);a.videoId=SE(b)||a.videoId;a.jb=QE(a.jb,b.vss_credentials_token);a.Wh=QE(a.Wh,b.vss_credentials_token_type);a.Fe=NE(a.Fe,b.audio_only);a.lC=NE(a.lC,b.aac_high);a.tu=NE(a.tu,b.prefer_low_quality_audio);a.Tj=QE(a.Tj,b.qoe_cat);a.Lp=NE(a.Lp,b.download_media);a.Ja=NE(a.Ja,b.prefer_gapless);a:{var GT=a.playerResponse;if(GT&&GT.adPlacements)for(var oea=g.r(GT.adPlacements),HT=oea.next();!HT.done;HT=oea.next()){var jH=HT.value.adPlacementRenderer;if(null!=jH&&
"AD_PLACEMENT_KIND_START"==(jH.config&&jH.config.adPlacementConfig&&jH.config.adPlacementConfig.kind)){var pea=!0;break a}}pea=!1}pea&&(a.adModule=!0,a.ya.push("ad"));var qea=b.adaptive_fmts;qea&&(a.adaptiveFormats=qea);var rea=b.allow_embed;rea&&(a.allowEmbed="1"==rea);var sea=b.backgroundable;sea&&(a.backgroundable="1"==sea);var tea=b.autonav;tea&&(a.Hk="1"==tea);var uea=b.autoplay;uea&&(a.Ok="1"==uea);var vea=b.iv_load_policy;vea&&(a.annotationsLoadPolicy=OE(a.annotationsLoadPolicy,vea,jF));var wea=
b.cc_lang_pref;wea&&(a.captionsLanguagePreference=QE(wea,a.captionsLanguagePreference));var xea=b.cc_load_policy;xea&&(a.ou=OE(a.ou,xea,jF));a.deviceCaptionsOn=null!==(c=b.device_captions_on)&&void 0!==c?c:void 0;a.QM=null!==(d=b.device_captions_lang_pref)&&void 0!==d?d:"";a.jC=null!==(e=b.viewer_selected_caption_langs)&&void 0!==e?e:[];var yea=b.cached_load;yea&&(a.ip=NE(a.ip,yea));"0"==b.dash&&(a.iN=!0);var zea=b.dashmpd;zea&&(a.eb=g.pi(zea,{cpn:a.clientPlaybackNonce}));var Aea=b.delay;Aea&&(a.Mb=
dg(Aea));var Bea=a.VG||b.end;void 0!=Bea&&(a.clipEnd=PE(a.clipEnd,Bea));var Cea=b.fmt_list;Cea&&(a.oE=Cea);b.heartbeat_preroll&&a.ya.push("heartbeat");a.Oj=-Math.floor(10*Math.random());a.ll=-Math.floor(40*Math.random());var Dea=b.is_listed;Dea&&(a.isListed=NE(a.isListed,Dea));var Eea=b.is_private;Eea&&(a.isPrivate=NE(a.isPrivate,Eea));var Fea=b.is_dni;Fea&&(a.D=NE(a.D,Fea));var Gea=b.dni_color;Gea&&(a.Ua=QE(a.Ua,Gea));var Hea=b.pipable;Hea&&(a.pipable=NE(a.pipable,Hea));a.Bu=a.pipable&&a.B.xl;a.EB=
a.Bu&&(!a.B.showMiniplayerButton||a.N("web_player_pip"));var Iea=b.paid_content_overlay_duration_ms;Iea&&(a.paidContentOverlayDurationMs=dg(Iea));var Jea=b.paid_content_overlay_text;Jea&&(a.paidContentOverlayText=Jea);var Kea=b.url_encoded_fmt_stream_map;Kea&&(a.Hi=Kea);var Lea=b.hls_formats;Lea&&(a.hlsFormats=Lea);var Mea=b.hlsvp;Mea&&(a.hlsvp=Mea);var kH=b.length_seconds;kH&&(a.lengthSeconds="string"===typeof kH?dg(kH):kH);var lH=b.live_start_walltime;lH&&(a.TG="number"===typeof lH?lH:dg(lH));var mH=
b.live_manifest_duration;mH&&(a.Wg="number"===typeof mH?mH:dg(mH));var Nea=b.player_params;Nea&&(a.playerParams=Nea);var Oea=b.partnerid;Oea&&(a.Ka=PE(a.Ka,Oea));var Pea=b.probe_url;Pea&&(a.probeUrl=lA(g.pi(Pea,{cpn:a.clientPlaybackNonce})));var IT=b.pyv_billable_url;IT&&tja(IT)&&(a.dh=IT);var JT=b.pyv_conv_url;JT&&tja(JT)&&(a.lI=JT);Doa(a,b);0<a.startSeconds||(a.startSeconds=PE(a.startSeconds,a.WG||a.pE||b.start||b.startSeconds),a.kc=a.startSeconds);if(a.N("html5_start_seconds_priority")){if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var Qea=b.live_utc_start;if(null!=Qea)a.liveUtcStartSeconds=Number(Qea);else{var KT=a.startSeconds;KT&&isFinite(KT)&&1E9<KT&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Rea=b.utc_start_millis;Rea&&(a.liveUtcStartSeconds=.001*Number(Rea))}}else{var Sea=b.live_utc_start;null!=Sea&&(a.liveUtcStartSeconds=Number(Sea));var Tea=b.utc_start_millis;Tea&&(a.liveUtcStartSeconds=.001*Number(Tea))}var Uea=b.stream_time_start_millis;
Uea&&(a.Lo=.001*Number(Uea));var Vea=a.pE||b.start;void 0==Vea||"1"==b.resume||a.isLivePlayback||(a.clipStart=PE(a.clipStart,Vea));var Wea=b.url_encoded_third_party_media;Wea&&(a.Fi=Gs(Wea));var LT=b.ypc_offer_button_formatted_text;if(LT){var Xea=JSON.parse(LT);a.nC=null!=Xea?Xea:null;a.HK=LT}var Yea=b.ypc_offer_button_text;Yea&&(a.Xq=Yea);var Zea=b.ypc_offer_description;Zea&&(a.fk=Zea);var $ea=b.ypc_offer_headline;$ea&&(a.lr=$ea);var afa=b.ypc_full_video_message;afa&&(a.dk=afa);var bfa=b.ypc_offer_id;
bfa&&(a.Ti=bfa);var cfa=b.ypc_buy_url;cfa&&(a.Uq=cfa);var dfa=b.ypc_item_thumbnail;dfa&&(a.Vq=dfa);var efa=b.ypc_item_title;efa&&(a.ek=efa);var ffa=b.ypc_item_url;ffa&&(a.Wq=ffa);var gfa=b.ypc_vid;gfa&&(a.qr=gfa);b.ypc_overlay_timeout&&(a.gk=Number(b.ypc_overlay_timeout));var hfa=b.ypc_trailer_player_vars;hfa&&(a.Vi=g.Fs(hfa));var ifa=b.ypc_original_itct;ifa&&(a.LX=ifa);a.Si=QE(a.Si,b.ucid);b.baseUrl&&(a.S.baseUrl=b.baseUrl);b.uid&&(a.S.uid=b.uid);b.oeid&&(a.S.oeid=b.oeid);b.ieid&&(a.S.ieid=b.ieid);
b.ppe&&(a.S.ppe=b.ppe);b.engaged&&(a.S.engaged=b.engaged);b.subscribed&&(a.S.subscribed=b.subscribed);a.S.focEnabled=NE(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=NE(a.S.rmktEnabled,b.rmktEnabled);a.Nq=b.storyboard_spec||null;a.uq=b.live_storyboard_spec||null;a.aH=b.iv_endscreen_url||null;a.DF=NE(a.DF,b.iv3_module);a.Pi=NE(a.Pi,b.ypc_license_checker_module);a.Xe=NE(a.Xe,b.ypc_module);a.Ni=NE(a.Ni,b.ypc_clickwrap_module);a.Xe&&a.ya.push("ypc");a.Ni&&a.ya.push("ypc_clickwrap");a.ZH={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};Aoa(a,b);var jfa=b.cotn;jfa&&(a.cotn=jfa);if(Goa(a))uG(a)&&
(a.isLivePlayback&&a.eb&&(a.cd=!0),a.Fc&&(a.Rj=!0));else if(Hoa(a))a.cd=!0;else{var nfa=Ioa(a,a.adaptiveFormats);if(nfa){vG(a,nfa);var ofa=!0}else ofa=!1;!ofa&&a.eb&&(a.cd=!0)}var NT=b.adpings;NT&&(a.vl=NT?g.Fs(NT):null);var pfa=b.feature;pfa&&(a.CI=pfa);var qfa=b.referrer;qfa&&(a.referrer=qfa);a.clientScreenNonce=QE(a.clientScreenNonce,b.csn);a.Yw=PE(a.Yw,b.root_ve_type);a.Sj=PE(a.Sj,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Mo=NE(a.Mo,b.upg_content_filter_mode);
var rfa=b.unplugged_location_info;rfa&&(a.ma=rfa);var sfa=b.unplugged_partner_opt_out;sfa&&(a.wu=QE("",sfa));a.yp=NE(a.yp,b.disable_watch_next);a.Yi=QE(a.Yi,b.internal_ip_override);a.NE=!!b.is_yto_interstitial;(a.interstitials.length||a.NE)&&a.ya.push("yto");var tfa=b.xi;tfa&&(a.xi=tfa);b.TA&&(a.TA=b.TA);a.xb=null!==(f=b.csi_timer)&&void 0!==f?f:"";a.Ug=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl)};
zoa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G,E,K,V=b.raw_watch_next_response;if(!V){var L=b.watch_next_response;L&&(V=JSON.parse(L))}if(V){a.watchNextResponse=V;var W=a.watchNextResponse.contents;if(W){var oa=W.singleColumnWatchNextResults;if(oa){var wa=PE(0,b.autoplay_count);if(oa.autoplay&&oa.autoplay.autoplay&&!oa.playlist){var vb=oa.autoplay.autoplay.sets,ob={},$b=new g.SF(a.B),Uc=null;if(vb){for(var bd=g.r(vb),Se=bd.next();!Se.done;Se=bd.next()){var ac=Se.value.autoplayVideoRenderer;
if(ac&&ac.compactVideoRenderer){Uc=ac.compactVideoRenderer;break}}var vk=vb[0].autoplayVideo;if(vk){var Wi=vk.clickTrackingParams;Wi&&(ob.itct=Wi);ob.autonav="1";ob.playnext=String(wa)}}else ob.feature="related-auto";if(Uc){$b.videoId=Uc.videoId;var Xi=Uc.shortBylineText;Xi&&($b.author=g.uA(Xi));var Ph=Uc.title;Ph&&($b.title=g.uA(Ph))}$b.ov=ob;a.suggestions=[$b]}}var Ia=W.twoColumnWatchNextResults}a.gT=!(null===(c=null===Ia||void 0===Ia?void 0:Ia.autoplay)||void 0===c||!c.autoplay);var Dd=a.watchNextResponse.playerOverlays;
if(Dd){var Bb=Dd.playerOverlayRenderer;if(Bb){var sm=Bb.endScreen;if(sm){var Qh=sm.watchNextEndScreenRenderer;if(Qh)var nd=Qh.results}var Yo=Bb.videoDetails;if(Yo){var tm=Yo.embeddedPlayerOverlayVideoDetailsRenderer;var Qs=Yo.musicEmbeddedPlayerOverlayVideoDetailsRenderer;Qs&&(a.YD=Qs.title,a.rD=Qs.byline);var um=Yo.playerOverlayVideoDetailsRenderer;um&&(um.title&&(b.title=g.uA(um.title)),um.subtitle&&(b.subtitle=g.uA(um.subtitle)))}var Uy=Bb.actions;if(Uy)for(var Cf=g.r(Uy),Rs=Cf.next();!Rs.done;Rs=
Cf.next()){var Vy=Rs.value;Vy.likeButtonRenderer&&(a.likeButtonRenderer=Vy.likeButtonRenderer)}var Wy=null===(e=null===(d=Bb.suggestedActionsRenderer)||void 0===d?void 0:d.suggestedActionsRenderer)||void 0===e?void 0:e.suggestedActions;if(Wy)for(var Xy=g.r(Wy),vm=Xy.next();!vm.done;vm=Xy.next()){var Yy=vm.value;if(null===(h=null===(f=Yy.suggestedActionRenderer)||void 0===f?void 0:f.trigger)||void 0===h?0:h.suggestedActionTimeRangeTrigger)a.suggestedAction=Yy.suggestedActionRenderer}var Zo=null===
(l=Bb.decoratedPlayerBarRenderer)||void 0===l?void 0:l.decoratedPlayerBarRenderer;Zo&&(a.multiMarkersPlayerBarRenderer=null===(m=Zo.playerBar)||void 0===m?void 0:m.multiMarkersPlayerBarRenderer,a.rC=null===(p=null===(n=Zo.playerBar)||void 0===n?void 0:n.chapteredPlayerBarRenderer)||void 0===p?void 0:p.chapters,a.IX=null===(q=Zo.playerBarActionButton)||void 0===q?void 0:q.buttonRenderer);g.dF(a.B)&&(a.Nf=!!Bb.addToMenu);Joa(a,Bb.shareButton);var Zy=Bb.productsInVideoOverlayRenderer;Zy&&(a.shoppingOverlayRenderer=
Zy.shoppingOverlayRenderer);var $y=Bb.autoplay;if($y)var Rh=$y.playerOverlayAutoplayRenderer;a.progressBarStartPosition=Bb.startPosition;a.progressBarEndPosition=Bb.endPosition}}if(!nd&&Ia){var az=Ia.endScreen&&Ia.endScreen.endScreen;az&&(nd=az.results)}if(Ia){var Sh=Ia.desktopOverlay&&Ia.desktopOverlay.desktopOverlayConfigRenderer;Sh&&(Sh.suppressShareButton&&(a.showShareButton=!1),Sh.suppressWatchLaterButton&&(a.Nf=!1))}tm&&Koa(a,b,tm);var bz=PE(0,b.autoplay_count);if(nd){for(var cz=Ia||null,$G=
Rh||null,$o=[],dz=!0,ez=g.r(nd),Ss=ez.next();!Ss.done;Ss=ez.next()){var Yi=Ss.value,ap=void 0,gc=null;if(Yi.endScreenVideoRenderer){var Rg=Yi.endScreenVideoRenderer,Vc=Rg.title;gc=new g.SF(a.B);gc.videoId=Rg.videoId;gc.lengthSeconds=Rg.lengthInSeconds||0;var Ts=Rg.publishedTimeText;Ts&&(gc.publishedTimeText=g.uA(Ts));var fz=Rg.shortBylineText;fz&&(gc.author=g.uA(fz));var gz=Rg.shortViewCountText;gz&&(gc.shortViewCount=g.uA(gz));if(Vc){gc.title=g.uA(Vc);var hz=Vc.accessibility;if(hz){var Us=hz.accessibilityData;
Us&&Us.label&&(gc.Al=Us.label)}}var wm=Rg.navigationEndpoint;if(wm){ap=wm.clickTrackingParams;var iz=wm.watchEndpoint;iz?gc.qv=iz:wm.urlEndpoint&&(gc.watchUrl=wm.urlEndpoint.url)}var jz=Rg.thumbnailOverlays;if(jz)for(var kz=g.r(jz),Vs=kz.next();!Vs.done;Vs=kz.next()){var Ws=Vs.value.thumbnailOverlayTimeStatusRenderer;if(Ws)if("LIVE"===Ws.style){gc.isLivePlayback=!0;break}else if("UPCOMING"===Ws.style){gc.isUpcoming=!0;break}}gc.Z=QF(Rg.thumbnail)}else if(Yi.endScreenPlaylistRenderer){var wk=Yi.endScreenPlaylistRenderer,
Xs=wk.navigationEndpoint;if(!Xs)continue;var lz=Xs.watchEndpoint;if(!lz)continue;var mz=lz.videoId;gc=new g.RF(a.B);gc.playlistId=wk.playlistId;gc.playlistLength=Number(wk.videoCount)||0;gc.i=mz||null;gc.videoId=mz;var nz=wk.title;nz&&(gc.title=g.uA(nz));var Ys=wk.shortBylineText;Ys&&(gc.author=g.uA(Ys));ap=Xs.clickTrackingParams;gc.Z=QF(wk.thumbnail)}gc&&(ap&&(gc.sessionData={itct:ap}),dz?(Loa(gc,cz,$G,bz),$o.splice(0,0,gc),dz=!1):$o.push(gc))}a.suggestions=$o}if(Rh){a.bI=!!Rh.preferImmediateRedirect;
a.wc=a.wc||!!Rh.webShowNewAutonavCountdown;a.Lh=a.Lh||!!Rh.webShowBigThumbnailEndscreen;if(a.wc||a.Lh){var kf=Rh,Zs=nd||null,aH=Ia||null,$s,at,Rb=new g.SF(a.B);Rb.videoId=kf.videoId;var oz=null===(at=null===($s=null===Zs||void 0===Zs?void 0:Zs[0])||void 0===$s?void 0:$s.endScreenVideoRenderer)||void 0===at?void 0:at.navigationEndpoint;if(oz){var bH=oz.clickTrackingParams;bH&&(Rb.sessionData={itct:bH})}var bt=kf.videoTitle;if(bt){Rb.title=g.uA(bt);var ct=bt.accessibility;if(ct){var dt=ct.accessibilityData;
dt&&dt.label&&(Rb.Al=dt.label)}}var pz=kf.byline;pz&&(Rb.author=g.uA(pz));var xk=kf.publishedTimeText;xk&&(Rb.publishedTimeText=g.uA(xk));var ke=kf.shortViewCountText;ke&&(Rb.shortViewCount=g.uA(ke));var yk=kf.thumbnailOverlays;if(yk)for(var qz=g.r(yk),et=qz.next();!et.done;et=qz.next()){var Zi=et.value.thumbnailOverlayTimeStatusRenderer;if(Zi)if("LIVE"===Zi.style){Rb.isLivePlayback=!0;break}else if("UPCOMING"===Zi.style){Rb.isUpcoming=!0;break}else if("DEFAULT"===Zi.style&&Zi.text){Rb.lengthText=
g.uA(Zi.text);var rz=Zi.text.accessibility;if(rz){var ft=rz.accessibilityData;ft&&ft.label&&(Rb.Zp=ft.label||"")}break}}Rb.Z=QF(kf.background);var bp=kf.nextButton;if(bp){var sz=bp.buttonRenderer;if(sz){var cp=sz.navigationEndpoint;if(cp){var tz=cp.watchEndpoint;tz&&(Rb.qv=tz)}}}if(kf.topBadges){var uz=kf.topBadges[0];if(uz){var vz=uz.metadataBadgeRenderer;vz&&"BADGE_STYLE_TYPE_PREMIUM"==vz.style&&(Rb.TA=!0)}}var dp=kf.alternativeTitle;dp&&(Rb.Nm=g.uA(dp));Loa(Rb,aH,kf,bz);a.suggestions||(a.suggestions=
[]);a.suggestions[0]=Rb}null!=Rh.countDownSecs&&(a.iL=1E3*Rh.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.Z=QF(a.watchNextResponse.currentVideoThumbnail));if(!a.N("player_parse_profile_picture_from_watch_next_killswitch")){var gt=null===(A=null===(y=null===(x=null===(u=null===(t=a.watchNextResponse)||void 0===t?void 0:t.contents)||void 0===u?void 0:u.twoColumnWatchNextResults)||void 0===x?void 0:x.results)||void 0===y?void 0:y.results)||void 0===A?void 0:A.contents;if(gt&&gt[1]){var ep=
null===(K=null===(E=null===(G=null===(F=gt[1].videoSecondaryInfoRenderer)||void 0===F?void 0:F.owner)||void 0===G?void 0:G.videoOwnerRenderer)||void 0===E?void 0:E.thumbnail)||void 0===K?void 0:K.thumbnails;ep&&ep.length&&(a.Qh=ep[ep.length-1].url)}}var wz=a.watchNextResponse.onResponseReceivedEndpoints;if(wz)for(var zk=g.r(wz),ht=zk.next();!ht.done;ht=zk.next()){var it=ht.value;it.changeKeyedMarkersVisibilityCommand&&(a.UG=it.changeKeyedMarkersVisibilityCommand)}}};
wG=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
yG=function(a){if(a.N("html5_single_format_policy")&&a.qd)return a.qd;var b=a.Ja,c=!!a.i&&(Ola(a.i)||Pla(a.i)||Qla(a.i)),d=a.B,e=!!a.i&&a.i.tf,f=a.Kn(),h=a.lC;a.isAd();var l=a.isOtf(),m=a.AC(),n=a.kb,p=new vma;if(a.Y||d.N("html5_logging_format_selection"))p.D=!0;d.N("html5_allow_chromecast_opus")&&(p.La=!0);p.Za=f;p.Ka=h&&d.B;Pt("windows nt 5.1")&&!g.Ti&&(p.i=!0);if(f=c)f=d.N("disable_html5_ambisonic_audio")||!(g.DF(d)||d.N("html5_enable_spherical")||d.N("html5_enable_spherical3d"))?!1:lna(d);f&&
(p.Ya=!0);b&&(p.i=!0,p.Fb=!0);l&&!d.N("html5_otf_prefer_vp9")&&(p.i=!0);n&&(p.i=!0);qB(d.C,rB.CHANNELS)&&(d.N("html5_enable_aac51")&&(p.Da=!0),d.N("html5_enable_ac3")&&(p.Y=!0),d.N("html5_enable_eac3")&&(p.ma=!0),d.N("html5_enable_ac3_gapless")&&(p.Ja=!0));d.N("html5_block_8k_hfr")&&(p.kb=!0);p.J=g.sE(d.experiments,"html5_max_selectable_quality_ordinal");p.K=g.sE(d.experiments,"html5_min_selectable_quality_ordinal");!d.N("html5_kaios_hd_killswitch")&&VE&&(p.zb=480);if(e||c)p.eb=!1;p.jb=!1;b=jE(d,
p.u);0<b&&2160>b&&(PD()||d.N("html5_format_hybridization"))&&(p.u.supportsChangeType=+PD(),p.B=b);2160<=b&&(p.S=!0);tma()&&(p.u.serveVp9OverAv1IfHigherRes=0,p.Mb=!1);p.AC=m;m=g.Vw||du()&&!m?!1:!0;p.Ua=m;p.Aa=d.N("html5_format_hybridization");p.Eb=d.N("html5_offline_av1_fallback");p.ya=d.N("html5_disable_codec_on_errors_with_exp_backoff");p.qb=d.N("html5_disable_codec_on_platform_errors");p.xb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");Tt()&&a.playerResponse&&a.playerResponse.playerConfig&&
a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.Y=!0,p.ma=!0);a.N("html5_match_codecs_for_gapless")&&a.Ja&&a.isAd()&&(a.ul&&(p.Z=a.ul),a.rl&&(p.C=a.rl));p.Sa=a.isLivePlayback&&xG(a)&&a.B.N("html5_drm_live_audio_51");return a.qd=p};
Noa=function(a){a.Fc||a.i&&sB(a.i);var b={};a.i&&(b=oB(yG(a),a.B.C,a.i,function(c){return a.ea("ctmp","fmtflt",c)},!0));
b=new vE(b,a.B.experiments,a.GI,Moa(a),function(c,d){a.Ba(c,d)});
g.J(a,b);a.Rj=!1;a.Da=!0;zma(b,function(c){for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Fc;e.K=a.US;e.J=a.IS;break;case "widevine":e.B=a.HI}a.Zg=c;if(0<a.Zg.length&&(a.J=a.Zg[0],g.zG(a))){c=[];d=g.r(Object.entries(a.J.i));for(e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c.push(h+"_"+f)}a.Ba("drmProbe",c.join("."))}rG(a)})};
Ioa=function(a,b){var c;(c=!b)||(c=!(!a.N("html5_manifestless_unplugged")&&a.isLivePlayback&&g.yF(a.B)&&g.mF(a.B)?0:!uG(a)&&a.adaptiveFormats));if(c)return null;AG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(Yla=!0);c=BG(b);var d=Date.now();b=Xla(c,a.zd,a.lengthSeconds,a.isLivePlayback,a.Ze,a.B);d=Date.now()-d;if(a.N("html5_log_manifest_performance")){var e=Tla(b)?1:0;a.Ba("mfsp","wasm."+e+";t."+d)}0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=ZD(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,
isFinite(c)&&(a.Zi=!0)));if(c=b.isManifestless)c=!(a.N("html5_manifestless_vp9")||a.N("html5_manifestless_vp9_normal_latency")&&(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Ooa(b));return c?(b.dispose(),null):b};
uG=function(a){return Tt()?!CG(a):Xt()?!(!a.Fc||!a.N("html5_enable_safari_fairplay")):!1};
CG=function(a){return AG(a,"html5_enable_tvos_dash_dogfood")||a.N("html5_enable_tvos_dash")&&(a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Moa=function(a){return a.useCobaltWidevine?Tt()?CG(a):!1:!1};
Ooa=function(a){return a.isManifestless&&zD('video/webm; codecs="vp9"')&&g.Wb(a.i,function(b){return qD(b.info)})};
DG=function(a){return!(!a.i||!a.i.isManifestless)};
Poa=function(a){var b;return aB()?a.N("html5_streaming_debug")||DG(a)&&("ULTRALOW"==a.latencyClass||21530001==EG(a))?!0:!window.AbortController&&!cB()||a.Ja?!1:a.N("html5_streaming_xhr")||a.N("html5_streaming_xhr_vod")&&!1===(null===(b=a.i)||void 0===b?void 0:b.tf)||a.N("html5_streaming_xhr_manifestless")&&DG(a)?!0:!1:!1};
Qoa=function(a){return kka({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Dk:a.Dk,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:DG(a),nG:Poa(a)})};
EG=function(a){return a.isLowLatencyLiveStream&&void 0!=a.i&&5<=eE(a.i)?21530001:a.liveExperimentalContentId};
Goa=function(a){return Tt()&&CG(a)?!1:uG(a)&&g.yF(a.B)&&!a.isLivePlayback||!yE()||a.iN?!0:!1};
Soa=function(a){a.Da=!0;a.cd=!1;if(Hoa(a))Tna(a.videoId).then(function(d){Roa(a,d)}).then(function(){rG(a)});
else{jA(a.eb)||g.Bz(new g.$v("DASH MPD Origin invalid: ",a.eb));var b=a.eb,c=g.sE(a.B.experiments,"dash_manifest_version")||4;b=g.pi(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.pi(b,{pacing:0}));fma(b,a.B.experiments,a.isLivePlayback).then(function(d){a.isDisposed()||(vG(a,d,!0),VA("mrc",void 0,a.xb),rG(a))},function(d){a.isDisposed()||(a.Da=!1,a.ea("dataloaderror",new g.MD("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
VA("mrs",void 0,a.xb)}};
Roa=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 qoa(e)}).join(",");
d=Ioa(a,d);vG(a,d);a.Ba("dlr","")};
rG=function(a){a.isDisposed()||(a.Da=!1,a.ea("dataloaded"))};
vG=function(a,b,c){c=void 0===c?!1:c;a.i=b;g.J(a,b);b.ue=a.ue;b.wg=a.wg;b.J=a.yI;b.D=a.wI;a.N("html5_start_walltime_min_seekable_killswitch")||(b.K=a.FI);Toa(a)&&a.ya.push("webgl");a.i.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Wg=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.Ba,a),c?b.subscribe("refresh",a.iM,a):b.subscribe("cuepointsadded",a.qJ,a));sB(b)&&(a.Rj=!0)};
xG=function(a){return a.zd?!0:!!a.i&&sB(a.i)};
Yoa=function(a,b){if(a.isDisposed())return Ft();a.C=null;a.Za=null;a.Fb=null;var c=a.B.deviceParams.c;if(!a.N("disable_rqs")){c=/UNPLUGGED/.test(c)?256:16;var d=a.B.ek;a.Y=g.zG(a)||1==d[0]&&d[1]<c}return Uoa(a,b).then(void 0,function(){return Voa(a,b)}).then(void 0,function(){return Woa(a)}).then(void 0,function(){return Xoa(a)})};
Uoa=function(a,b){b=b||Goa(a);return a.i&&!b?(a.Kn()&&jma(a.i,a.isLivePlayback),AG(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.B.C.u=!0),Zoa(a).then(function(){return jka(yG(a),a.B.C,a.i,a.J,function(c){return a.ea("ctmp","fmtflt",c)}).then(function(c){$oa(a,c);
/^av/.test(a.clientPlaybackNonce)&&a.qd&&a.Ba("av1",g.LD(a.qd.u))})})):Ft()};
Zoa=function(a){if(!(a.i&&a.i.i&&navigator.mediaCapabilities&&a.N("html5_blocking_media_capabilities")))return Gt();a=Object.values(a.i.i);return Promise.all(Array.from(a,function(b){return Cla(b.info)}))};
Voa=function(a,b){var c,d,e,f,h;if(b&&a.hlsvp)return Ft();if(a.hlsFormats){b=BG(a.hlsFormats);if((null===(c=a.qd)||void 0===c?0:c.D)&&b){for(var l=[],m=g.r(b),n=m.next();!n.done;n=m.next())l.push(n.value.itag);a.Ba("hlsfmt",l.join("."))}a.mq=tna(a.B,b);l=a.clientPlaybackNonce;return yna(a.B,a.isAd(),b,null!==(h=null===(f=null===(e=null===(d=a.playerResponse)||void 0===d?void 0:d.captions)||void 0===e?void 0:e.playerCaptionsRenderer)||void 0===f?void 0:f.baseUrl)&&void 0!==h?h:null,a.Pj,l,function(p){return a.ea("ctmp",
"hlsflt",p)}).then(function(p){for(var q,t,u,x,y=0,A=[],F=g.r(p),G=F.next();!G.done;G=F.next())G=G.value,A.push(null===(q=G.lf())||void 0===q?void 0:q.lc()),(null===(u=null===(t=G.lf())||void 0===t?void 0:t.audio)||void 0===u?void 0:u.numChannels)>y&&(y=G.lf().audio.numChannels);
2<y&&a.Ba("hlschl",""+y);(null===(x=a.qd)||void 0===x?0:x.D)&&a.Ba("hlsfmtaf",A.join("."));FG(a,p)})}return Ft()};
Woa=function(a){return a.Fi&&a.ZG?Bna(a.B,a.isAd(),a.Fi).then(function(b){FG(a,b)}):Ft()};
Xoa=function(a){var b=BG(a.Hi,a.oE);if(a.hlsvp){var c=woa(a.hlsvp,a.clientPlaybackNonce,a.Pj);b.push(c)}return zna(a.B,a.isAd(),b,apa(a)).then(function(d){FG(a,d)})};
$oa=function(a,b){a.C=b;b=a.getAvailableAudioTracks();b=b.concat(a.Wi);for(var c=0;c<a.pC.length;c++)for(var d=a.pC[c],e=0;e<b.length;e++){var f=b[e],h=f.Bc.id==d.audioTrackId;if(f.Bc.isDefault&&c==a.TL||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.i=a.captionTracks[d.forcedCaptionTrackIndex]);
f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}if(a.J&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=tD(a.C.videoInfos[0]),b!=("fairplay"==a.J.flavor)))for(c=g.r(a.Zg),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.J=d;break}};
FG=function(a,b){a.Fb=b;$oa(a,new lB(g.lm(a.Fb,function(c){return c.lf()})))};
apa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.deviceParams.c,cver:a.B.deviceParams.cver};a.Hq&&(b.ptk=a.Hq,b.oid=a.jH,b.ptchn=a.iH,b.pltype=a.kH);return b};
g.GG=function(a){return uG(a)&&a.Fc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.zd||null};
bpa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.uA(b.text):a.paidContentOverlayText};
HG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?dg(b.durationMs):a.paidContentOverlayDurationMs};
IG=function(a){var b="";if(a.IG)return a.IG;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.JG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
KG=function(a){return!!(a.eb||a.adaptiveFormats||a.Hi||a.Fi||a.hlsvp)};
qG=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.ub(a.ya,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Da&&(KG(a)||g.ub(a.ya,"heartbeat")||b)};
BG=function(a,b){a=Gs(a);var c={};if(b){b=g.r(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.r(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
Joa=function(a,b){var c,d;a.showShareButton=!!b;var e=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command);e&&(a.Zj=!!e.copyTextEndpoint)};
yoa=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.jg=m);if(a.jg){if(m=a.jg.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.jg.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Ua=n,a.D=!0):(a.Ua="",a.D=!1);if(n=m.defaultThumbnail)a.Z=QF(n),
a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&Koa(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.YD=n.title,a.rD=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Nf=!!m.addToWatchLaterButton;Joa(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0:
m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,q=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;q&&(a.Gq=new Zna(q));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=dg(m.videoDurationSeconds));a.N("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&koa(a,m.webPlayerActionsPorting);if(p=null===(l=
null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){q=0;for(var t=p.contents.length;q<t;q++){var u=p.contents[q].playlistPanelVideoRenderer;if(u){var x=u.shortBylineText?g.uA(u.shortBylineText):"",y=u.title?g.uA(u.title):"";m.push({author:x,encrypted_id:u.videoId,title:y,channel_path:q===n?b.channel_path:"",profile_picture:q===n?b.profile_picture:"",is_private:q===n?a.isPrivate:!1,is_dni:q===n?a.D:!1,dni_color:q===n?a.Ua:
""})}}}b={index:p.currentIndex,list:p.playlistId,playlist_length:p.totalVideos,video:m};p.titleText&&(b.title=g.uA(p.titleText));p.shortBylineText&&(b.author=g.uA(p.shortBylineText));a.nN=b}}if(a.jg.previewPlayabilityStatus){a.Lq=a.jg.previewPlayabilityStatus;b=a.Lq;var A;if(!["OK","LIVE_STREAM_OFFLINE"].includes(b.status)){p=b.errorScreen;if(m=null===p||void 0===p?void 0:p.playerErrorMessageRenderer){a.HC=m;if(n=m.reason)a.errorReason=g.uA(n);if(m=m.subreason)a.oi=g.uA(m)}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":(null===(A=null===p||void 0===p?void 0:p.playerKavRenderer)||void 0===A?0:A.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=b.isBlockedInRestrictedMode?"5":"0"}}}else a.jg.playabilityStatus&&(a.Xi=a.jg.playabilityStatus,cpa(a)&&(a.errorDetail="0",a.Xi&&((A=a.Xi.embeddedPlayerErrorMessageRenderer)?a.HC=A.embeddedPlayerErrorMessageRenderer:
a.N("embeds_playabilitystatus_deprecation_killswitch")||(a.errorReason=a.Xi.reason||null))));(A=a.jg.attestation)&&foa(a,A);(A=a.jg.permissions)&&A.allowImaMonetization&&(a.allowImaMonetization=!0)}};
Loa=function(a,b,c,d){var e,f,h,l,m,n,p;d={autonav:"1",playnext:String(d)};a.playlistId&&(d.autoplay="1");if(b){if(b=null===(l=null===(h=null===(f=null===(e=b.autoplay)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.sets)||void 0===h?void 0:h[0])||void 0===l?void 0:l.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.VI=b}else c&&(b=null===(p=null===(n=null===(m=c.nextButton)||void 0===m?void 0:m.buttonRenderer)||void 0===n?void 0:n.navigationEndpoint)||void 0===p?void 0:
p.clickTrackingParams)&&(d.itct=b);d.itct||(d.feature="related-auto");a.ov=d};
Koa=function(a,b,c){var d,e,f,h=c.channelThumbnail;h&&(h=h.thumbnails)&&(h=h[0])&&(b.profile_picture=h.url);if(h=null===(f=null===(e=null===(d=null===c||void 0===c?void 0:c.channelThumbnailEndpoint)||void 0===d?void 0:d.channelThumbnailEndpoint)||void 0===e?void 0:e.urlEndpoint)||void 0===f?void 0:f.urlEndpoint)b.channel_path=h.url;if(h=c.collapsedRenderer)if(h=h.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var l=h.title;l&&(b.title=g.uA(l));if(h=h.subtitle)b.subtitle=g.uA(h)}if(c=c.expandedRenderer)if(c=
c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(h=c.title)b.expanded_title=g.uA(h);if(h=c.subtitle)b.expanded_subtitle=g.uA(h);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.Rh=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.iC=b.toggledServiceEndpoint||null,a.hC=b.defaultServiceEndpoint||
null):(a.iC=b.defaultServiceEndpoint||null,a.hC=b.toggledServiceEndpoint||null))}};
g.LG=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
MG=function(a){return a.isLivePlayback&&a.allowLiveDvr};
dpa=function(a){var b=new dB("und",new vD("Default","und",!0));b.captionTracks=a.captionTracks;return b};
g.NG=function(a){return!!a.i&&Ola(a.i)};
g.OG=function(a){return!!a.i&&Pla(a.i)};
Toa=function(a){return g.OG(a)||g.NG(a)||g.PG(a)||g.QG(a)};
g.QG=function(a){return!!a.i&&Qla(a.i)};
g.PG=function(a){return!!a.i&&Rla(a.i)};
g.epa=function(a){if(a.FB)return null;var b=a.aH;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.fpa=function(a){return a.FB?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.RG=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.SG=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.r(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
TG=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.B.Ja};
UG=function(a){if(a.isAd()&&a.videoId!=a.B.ac)return a.B.ac};
VG=function(a){return a.Ok||"detailpage"==TG(a)||"shortspage"==TG(a)||a.mutedAutoplay};
WG=function(a){if(VG(a)){if("detailpage"==TG(a))return a.Hk||0<a.Eb;if(!("17_8"===a.adFormat&&!a.Hk||a.N("embeds_enable_autoplayblocked_ping_fix")&&a.qK||"adunit"==TG(a)&&a.dh))return!0}return!1};
gpa=function(a){var b=1,c=g.sE(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.xe;a.C&&a.C.i&&a.C.i[0]&&a.Kq[a.C.i[0].id]&&(c=a.Kq[a.C.i[0].id]);if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.II)return Math.min(1,Math.pow(10,-a.vu/20))||b;var d=0;a.N("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.B.Kh,g.sE(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.vu=c}return Math.min(1,Math.pow(10,-c/20))||b};
XG=function(a){return!!(a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.daiConfig&&a.playerResponse.playerConfig.daiConfig.enableDai)};
hpa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
ZG=function(a){return YG(a)&&!!a.adaptiveFormats};
YG=function(a){return!!(a.N("woffle_orchestration")&&a.Lp&&a.B.B)};
Hoa=function(a){if(a.N("woffle_orchestration")){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===WF(b);a=b&&!a.Lp}else a=!1;return a};
g.nH=function(a){if(!a.i||!a.u||!a.K)return!1;var b=a.i.i;return!!b[a.u.id]&&zB(b[a.u.id].u.i)&&!!b[a.K.id]&&zB(b[a.K.id].u.i)};
ipa=function(a){return a.Lq?["OK","LIVE_STREAM_OFFLINE"].includes(a.Lq.status):!0};
cpa=function(a){return(a=a.Xi)&&a.showError?a.showError:!1};
g.zG=function(a){return a.N("disable_rqs")?!1:AG(a,"html5_high_res_logging")};
AG=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
jpa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
Doa=function(a,b){if(b=b.video_masthead_ad_quartile_urls)a.yB=b.quartile_0_url,a.dI=b.quartile_25_url,a.hI=b.quartile_50_url,a.iI=b.quartile_75_url,a.cI=b.quartile_100_url,a.Mq=b.quartile_0_urls,a.AB=b.quartile_25_urls,a.BB=b.quartile_50_urls,a.CB=b.quartile_75_urls,a.zB=b.quartile_100_urls};
tG=function(a){return a?yE()?!0:oH&&5>pH?!1:!0:!1};
Coa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
goa=function(a){if(a){if(xja(a))return a;a=yja(a);if(xja(a,!0))return a}return""};
g.kpa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.JG(a,"yt:cc_default_lang")||a.B.xe};
qH=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())};
rH=function(a,b){this.i=a;this.Ja=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.S=0};
lpa=function(a){return sH(a)&&1==a.getPlayerState(2)};
sH=function(a){a=a.Jc();return void 0!==a&&2==a.getPlayerType()};
tH=function(a){a=a.V();return lF(a)&&!g.yF(a)&&"desktop-polymer"==a.playerStyle};
uH=function(a,b){var c=a.V();cF(c)||"3"!=c.controlsType||a.bb().ax(b)};
wH=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.yb=e;this.i=f;this.id=vH(a)};
vH=function(a){return a+(":"+(Jr.getInstance().i++).toString(36))};
xH=function(a){this.X=a};
mpa=function(a,b){if(0===b||1===b&&(a.X.i&&g.Ui?0:a.X.i||g.yF(a.X)||g.mF(a.X)||nF(a.X)||!g.Ui))return!0;a=g.og("video-ads");return null!=a&&"none"!==Nl(a,"display")};
npa=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";
case "viewable_impression":return"adviewableimpression";default:return null}};
yH=function(){g.R.call(this);var a=this;this.i={};g.qe(this,function(){for(var b=g.r(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})};
AH=function(){if(null===zH){zH=new yH;om(pq).i="b";var a=om(pq),b="h"==Zp(a)||"b"==Zp(a),c=!(Dm(),!1);b&&c&&(a.D=!0,a.J=new Mfa)}return zH};
opa=function(a,b,c){a.i[b]=c};
ppa=function(a){this.B=a;this.u={};this.i=vl()?500:g.mF(a.V())?1E3:2500};
rpa=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.u||(a.u[c.mimeType]=a.B.canPlayType(c.mimeType));return a.u[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1});
return qpa(a,b)};
qpa=function(a,b){for(var c=null,d=g.r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||h<a.i||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,b=g.r(b),d=b.next();!d.done;d=b.next())d=d.value,e=d.minBitrate,f=d.maxBitrate,e<a.i||(!c||e<c.minBitrate?c=d:c&&e==c.minBitrate&&f>c.maxBitrate&&(c=d));return c};
BH=function(a,b,c){this.i=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
CH=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
spa=function(a){return new Map([["ad_placement_start",a.placementStartPings||[]],["ad_placement_end",a.placementEndPings||[]]])};
tpa=function(a){return(a=a.pings)?Object.fromEntries(CH(a)):{}};
DH=function(a,b,c,d,e){rH.call(this,a,tpa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Sa=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new BH(0,[]);this.Aa=null;this.Ua=b;this.Ka=[];this.C={};this.ya=null;this.u=0;this.Z=this.Y=this.D=null;this.ma=e;this.La=null;b=this.i.skipOffsetMilliseconds||0;0<b&&(this.ya=b);this.C=g.Fs(this.i.playerVars||"");if(b=this.i.external)S("external non youtube video ad"),this.Ka=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.u=
b/1E3,this.C.length_seconds=this.u.toString()),(b=rpa(this.Ua,this.Ka))?(this.Y=b.uri,b=b.mimeType,this.C.url_encoded_third_party_media="url="+encodeURIComponent(this.Y)+"&type="+encodeURIComponent(b)):this.Z=Error("Nonplayable third party ad media file.");else if(this.D=this.i.externalVideoId||null,this.u=PE(this.u,this.C.length_seconds),this.ma&&this.D&&(this.La=this.ma(this.D)),this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=JSON.parse(this.C.cta_conversion_urls)}catch(f){g.zs(f)}this.Aa=
this.i.clickthroughEndpoint||null;this.B=new BH(0,[this.u])};
upa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.i);b.autoplay="1";return b};
EH=function(){this.i=[];this.u=0};
FH=function(a,b){b&&a.i.push(b)};
GH=function(a){if(!a)return[];var b=[];a=g.r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.r(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
HH=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};
IH=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
JH=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
vpa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=GH(a.impressionCommands)||[];b.error=GH(a.errorCommands)||[];b.mute=GH(a.muteCommands)||[];b.unmute=GH(a.unmuteCommands)||[];b.pause=GH(a.pauseCommands)||[];b.rewind=GH(a.rewindCommands)||[];b.resume=GH(a.resumeCommands)||[];b.skip=GH(a.skipCommands)||[];b.close=GH(a.closeCommands)||[];b.clickthrough=GH(a.clickthroughCommands)||[];b.fullscreen=GH(a.fullscreenCommands)||[];b.active_view_viewable=GH(a.activeViewViewableCommands)||
[];b.active_view_measurable=GH(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=GH(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=GH(a.endFullscreenCommands)||[];b.channel_clickthrough=GH(a.channelClickthroughCommands)||[];b.abandon=GH(a.abandonCommands)||[];b.progress=HH(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=HH(a.progressCommands.filter(function(c){return JH(c)&&Tf(IH(c),0)}));
b.first_quartile=HH(a.progressCommands.filter(function(c){return JH(c)&&Tf(IH(c),.25)}));
b.midpoint=HH(a.progressCommands.filter(function(c){return JH(c)&&Tf(IH(c),.5)}));
b.third_quartile=HH(a.progressCommands.filter(function(c){return JH(c)&&Tf(IH(c),.75)}));
b.complete=HH(a.progressCommands.filter(function(c){return JH(c)&&Tf(IH(c),1)}));
return b};
KH=function(a){rH.call(this,a,vpa(a));this.u=a.questions?a.questions.reduce(function(b,c){return(c=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer)?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
wpa=function(a,b,c,d){this.id=b;this.ma=a.placementStartPings||[];this.Y=a.placementEndPings||[];this.C=d.me;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.J=e.getAdBreakUrl||"")?0:2;d.i=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Dja(b,d);if(null==f)d=new rA(b,new kr(-1,-1),!1,"adcuerange:invalid",
3),d.deactivate(),d=[null,d];else{e=":"+(Jr.getInstance().i++).toString(36);var h=d.daiEnabled||d.me;f=new rA(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.me||0<d.i)if(d=Dja(b,d,!0))h=new rA(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.ya=d[0];this.i=d[1];this.u=c;this.K=!1;this.D={};this.Z={};this.S=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
LH=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i.i||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.i.i};
NH=function(a,b){var c={};xpa(a,c,b);ypa(c);c.LACT=MH(function(){return Vu().toString()});
c.VIS=MH(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=MH(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
zpa=function(a){var b={};if(!a.kind)return g.Ty(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.Ty(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=MH(Te(Math.round(dg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=MH(Te("0"));return b};
MH=function(a){return{toString:function(){return a()}}};
Apa=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.ic(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
xpa=function(a,b,c){b.CPN=MH(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.Bz(Error("Video data is null.")),d=null);return d});
b.AD_MT=MH(function(){return Math.round(Math.max(0,1E3*(null!==c&&void 0!==c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=MH(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=MH(function(){return a.bb().rg().height.toString()});
b.P_W=MH(function(){return a.bb().rg().width.toString()});
b.PV_H=MH(function(){return a.bb().getVideoContentRect().height.toString()});
b.PV_W=MH(function(){return a.bb().getVideoContentRect().width.toString()})};
ypa=function(a){a.CONN=MH(Te("0"));a.WT=MH(function(){return Date.now().toString()})};
Bpa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=LH(a)?MH(Te(Math.round(a.i.start/1E3).toString())):MH(Te("0"));return b};
Cpa=function(a){var b={};b.SLOT_POS=MH(Te(a.B.i.toString()));return b};
Dpa=function(a,b){var c=b&&-1!=b.indexOf("load_timeout")?"402":"400",d={};return d.YT_ERROR_CODE=a.toString(),d.ERRORCODE=c,d.ERROR_MSG=b,d};
OH=function(a){for(var b={},c=g.r(Epa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
PH=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.v(b)));return c};
QH=function(){};
RH=function(a){this.np=a};
SH=function(a){this.Yo=a};
Fpa=function(a,b,c,d,e,f){e=void 0===e?new SH(new RH(d.getVideoData(1))):e;f=void 0===f?!1:f;g.I.call(this);this.ad=a;this.B=b;this.macros=c;this.i=d;this.Ph=e;this.daiEnabled=f;this.u={gH:.25,SECOND:.5,qI:.75};this.lastUpdatedTimeSecs=null;this.progressPings=Array.from(this.ad.Ja.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds})};
XH=function(a,b){TH(a)||(UH(a)?(VH(a,0,!0),Gpa(a,b,b)):(VH(a,0,!0),Hpa(a,0,0,!0)),WH(a,"complete"))};
VH=function(a,b,c){for(c=void 0===c?!1:c;a.ad.S<a.progressPings.length;){var d=YH(a,"progress"),e=a.progressPings[a.ad.S];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&Ipa(a,f,d,e.headers||[]);a.ad.S++}else break}};
Hpa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.gH||d)&&WH(a,"first_quartile");(b>=c*a.u.SECOND||d)&&WH(a,"midpoint");(b>=c*a.u.qI||d)&&WH(a,"third_quartile")};
ZH=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(c<d||1<c-d)return}else if(a.lastUpdatedTimeSecs>d||d>c)return;WH(a,b)};
Gpa=function(a,b,c){if(0<c&&0<b){var d=a.i.vb(a.i.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(ZH(a,"first_quartile",b,c*a.u.gH),ZH(a,"midpoint",b,c*a.u.SECOND),ZH(a,"third_quartile",b,c*a.u.qI))}a.lastUpdatedTimeSecs=b};
$H=function(a,b){for(var c=YH(a,b),d=g.r(a.ad.Ja[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&Ipa(a,f,c,e.headers||[])}a.ad.J[b]=!0};
WH=function(a,b){a.ad.J.hasOwnProperty(b)||$H(a,b)};
aI=function(a,b){return a.ad.J.hasOwnProperty(b)};
Ipa=function(a,b,c,d){for(var e=a.Ph,f=e.send,h={},l=NH(a.i),m=g.r(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.macros);f.call(e,b,a,c,d)};
YH=function(a,b){var c=a.B;a=a.ad;if(a.Yv())if(b=Jpa(b),null==b)c={};else{var d;(d=a.Da()())||(d=(d=c.I)&&d.Jc?(d=d.Jc())&&2==d.getPlayerType()?bI(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.I.isFullscreen()},c=tq(b,a.K,c)):c={}}else c={};return c?Object.assign({},c):{}};
UH=function(a){return!a.i.V().N("html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.daiEnabled};
TH=function(a){return UH(a)&&!aI(a,"impression")};
Kpa=function(a){return UH(a)&&aI(a,"seek")};
g.cI=function(a,b){this.state=a;this.Tn=b};
dI=function(a,b){return g.T(a.state,b)&&!g.T(a.Tn,b)?1:!g.T(a.state,b)&&g.T(a.Tn,b)?-1:0};
g.eI=function(a,b){return 0<dI(a,b)};
fI=function(a,b,c,d,e,f){f=void 0===f?0:f;g.R.call(this);this.I=a;this.i=d;this.u=e;this.u.i[b.K]=this;this.u.subscribe("adactiveviewmeasurable",this.bN,this);this.u.subscribe("adfullyviewableaudiblehalfdurationimpression",this.cN,this);this.u.subscribe("adoverlaymeasurableimpression",this.dN,this);this.u.subscribe("adoverlayunviewableimpression",this.eN,this);this.u.subscribe("adoverlayviewableendofsessionimpression",this.fN,this);this.u.subscribe("adoverlayviewableimmediateimpression",this.gN,this);
this.u.subscribe("adviewableimpression",this.hN,this);this.ad=b;this.ma=[];this.macros=c;this.J=!1;this.ya=!mpa(new xH(this.I.V()),f)};
gI=function(a,b){Eb(a.ma,b);Lpa(a,b,1)};
Mpa=function(a){a=a.i;a.macros=PH(a.macros,Dpa(0,"No playable media files can be selected"));WH(a,"error")};
hI=function(a,b){if(a.J){var c=a.i;a=a.getDuration();!TH(c)&&0<a&&(VH(c,b),UH(c)?Gpa(c,b,a):Hpa(c,b,a,!1))}};
Lpa=function(a,b,c){0!=b.length&&(b=g.lm(b,function(d){return new tA(d,c,d.id)}),a.ea("onAdUxUpdate",b))};
iI=function(a){var b={};b.abandon=a.abandonCommands&&GH(a.abandonCommands.commands)||[];rH.call(this,a,b)};
jI=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;wH.call(this,"ad-action-interstitial",a,b,c,d);this.yb=d;this.Eg=e;this.Ki=f};
kI=function(a,b,c,d,e,f){fI.call(this,a,b,c,d,e,1);this.C=b;this.B=b.i.durationMilliseconds||0;this.Lb=null;this.D=f};
lI=function(a){rH.call(this,a);this.u=g.Fs(this.i.playerVars||"")};
mI=function(){rH.apply(this,arguments)};
nI=function(){rH.apply(this,arguments)};
Npa=function(a,b,c,d,e,f){this.J=a;this.C=b;this.i=c;this.D=d;this.B=e;this.u=f};
oI=function(a,b,c,d,e){fI.call(this,a,b,c,d,e);var f=this;this.D=b;this.B=new g.M(function(){f.Yg("load_timeout")},1E4);
g.J(this,this.B);this.C=new jy(this);g.J(this,this.C)};
Opa=function(a){wH.call(this,"ad-message",a)};
pI=function(a,b,c,d,e,f,h){fI.call(this,a,b,c,d,e);var l=this;this.K=b;this.S=b.i.durationMs||0;this.D=h;this.Z=!1;this.C=this.B=0;this.Y=function(){var m=l.I.getProgressState().current;m<l.B?l.vg():m>l.C&&l.rh()}};
Qpa=function(a){if(a.D&&a.Z){a.Z=!1;a=g.r(a.D.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.u=void 0;Ppa(b.B(),c)}else S("Received AdNotify terminated event when no slot is active")}};
g.qI=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={vB:c.vB},e=d.next())e=e.value,c.vB=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.vB}}(c));
return a};
rI=function(a){return a?g.uA(a):null};
Rpa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(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};
Spa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
Tpa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
Wpa=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&&(Upa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=rI(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
Vpa(a,b,c,d))}};
Upa=function(a,b,c){var d=rI(b.confirmLabel)||"",e=rI(b.title)||"",f=[];if(b.adReasons)for(var h=g.r(b.adReasons),l=h.next();!l.done;l=h.next())f.push(rI(l.value)||"");h=b.headerTitle?g.uA(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:rI(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints),
n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
Vpa=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:rI(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=Rpa(b.navigationEndpoint);var h=Tpa(b[1]),l=[Tpa(b[0])];(b=Spa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
a.muteAd=function(){m||c(h);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)};
Xpa(a,e,d)}}};
Xpa=function(a,b,c){a.muteAdInfo.goneText=rI(b.title)||"";a.muteAdInfo.questionText=rI(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=rI(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=rI(e.reason)||"";e=Rpa(e.endpoint)[0];a.push({label:d,url:e})}};
sI=function(a,b,c,d,e,f){this.u=a;this.B=b;this.i=NH(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.D=d;this.J=e};
Ypa=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.Hd(e):a.C.Kp()};
b.skipShown=function(){a.Hd(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
Zpa=function(a,b,c){Wpa(b,c,function(d){a.Hd(d)},function(d){a.sendAdsPing(d)})};
$pa=function(a){if(a.D.V().N("dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.r(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.B)};
aqa=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}};
bqa=function(a,b,c,d,e){new sI(a,b,c,d,e,void 0)};
tI=function(a){this.value=a};
uI=function(a){this.value=a};
vI=function(a){this.value=a};
wI=function(a){this.value=a};
xI=function(){tI.apply(this,arguments)};
yI=function(a){this.value=a};
zI=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(){tI.apply(this,arguments)};
FI=function(){tI.apply(this,arguments)};
GI=function(a){this.value=a};
HI=function(a){this.value=a};
II=function(a){this.value=a};
JI=function(a){this.value=a};
KI=function(a){this.value=a};
LI=function(a){this.value=a};
MI=function(a){this.value=a};
NI=function(a){this.value=a};
OI=function(a){this.value=a};
PI=function(a){this.value=a};
QI=function(a){this.value=a};
RI=function(a){this.value=a};
SI=function(a){this.value=a};
TI=function(a){this.value=a};
UI=function(a){this.value=a};
VI=function(a){this.value=a};
WI=function(a){this.value=a};
XI=function(a){this.value=a};
YI=function(a){this.value=a};
ZI=function(a){this.value=a};
$I=function(a){this.value=a};
aJ=function(a){this.value=a};
bJ=function(a){this.value=a};
cJ=function(a){this.value=a};
dJ=function(a){this.value=a};
eJ=function(a){this.value=a};
fJ=function(a){this.value=a};
gJ=function(a){this.value=a};
hJ=function(a){this.value=a};
iJ=function(a){this.value=a};
jJ=function(a){this.value=a};
kJ=function(a){this.value=a};
lJ=function(a){this.value=a};
mJ=function(){tI.apply(this,arguments)};
nJ=function(){tI.apply(this,arguments)};
oJ=function(){tI.apply(this,arguments)};
pJ=function(){tI.apply(this,arguments)};
qJ=function(){tI.apply(this,arguments)};
rJ=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var d=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return cqa(d)?!0:!1};
dqa=function(a){a=((null===a||void 0===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?void 0:b.surveyAdQuestionCommon,b=cqa(a)):b=!1:b=!1;return b};
cqa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1};
fqa=function(a,b,c,d,e,f){this.i=new sI(a,b,c,d,e,eqa(f))};
gqa=function(a,b){var c=aqa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.Hd(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":Ypa(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":Zpa(a.i,
c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)};
return c};
eqa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=MH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=MH(a);return b};
sJ=function(a,b,c){g.R.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Lb=new g.rh(200);this.Lb.Qa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.i+=f;d.i>=d.u&&(d.i=d.u,d.Lb.stop());e=d.i/1E3;d.D&&d.D.Qb(e);hqa(d,{current:e,duration:d.u/1E3})});
g.J(this,this.Lb);this.i=0;this.B=null;g.qe(this,function(){d.B=null});
this.C=0};
hqa=function(a,b){a.J.Oa("onAdPlaybackProgress",b);a.B=b};
tJ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;wH.call(this,"survey",a,{},b,c);this.Eg=d;this.Ki=e};
uJ=function(a,b,c){g.R.call(this);var d=this;this.durationMs=a;this.D=b;this.J=c;this.B=!1;this.C=this.i=0;this.u=new g.rh(200);g.J(this,this.u);this.u.Qa("tick",function(){d.Qb()})};
vJ=function(){XA("pbp")||XA("pbs")||YA("pbp");XA("pbp","watch")||XA("pbs","watch")||YA("pbp",void 0,"watch")};
xJ=function(a,b,c,d,e,f,h){fI.call(this,a,b,c,d,e,1);var l=this;this.C=b;this.D=new jy;g.J(this,this.D);this.D.T(this.I,"resize",function(){450>l.I.bb().rg().width&&(g.my(l.D),l.vg())});
this.Z=0;this.K=null;this.S=h(this,function(){return""+(Date.now()-l.Z)});
if(this.B=g.mF(a.V())?new sJ(1E3*b.u,a,f):null)g.J(this,this.B),this.D.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&wJ(l)})};
iqa=function(a,b){a.I.V().experiments.ob("validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!rJ(b)?(g.Ty(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),a.ld("aderror")):(b=gqa(a.S,b),a.I.Oa("onAdInfoChange",b))};
wJ=function(a){var b=a.C.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.S.Hd(b&&b.timeoutCommands)):g.Ty(Error("Expected a survey question in InstreamSurveyAdRenderer."))};
yJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;wH.call(this,"survey-interstitial",a,b,c,d);this.Eg=e;this.eG=f};
zJ=function(a,b,c,d,e){fI.call(this,a,b,c,d,e,1);this.B=b};
kqa=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ei(window.location.href);e&&d.push(e);e=g.ei(a);if(g.ub(d,e)||!e&&Za(a,"/"))if(g.vs("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Mf(d,a),a=d.href),a&&(a=gi(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.Iy()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&jqa(a,b,f)}else jqa(a,b)};
jqa=function(a,b,c){a="ST-"+cg(a).toString(36);b=b?g.ni(b):"";c=c||5;eu()&&g.Jt(a,b,c)};
g.mqa=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.pi(a,b)+c;var e=void 0===e?Gl:e;e=Hl(a,e)||lqa;d.href=Lk(e)};
g.AJ=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&&kqa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.mqa(a))};
g.BJ=function(a,b,c,d){c&&kqa(a,c);c=g.rf(a);c=g.nf(c);a!=c&&Bs(Error("Unsafe window.open URL: "+a));a=c;b=b||cg(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=nqa(a);var h=Object.keys(d).map(function(l){return l.toLowerCase()+"="+d[l]}).join(",");
window.open(a,b,h);return}catch(l){}window.open(a,b)};
nqa=function(a){return"www.googleadservices.com"!==g.ei(a)?a:a+"&nis=3"};
CJ=function(a,b,c,d,e){e=void 0===e?!1:e;wH.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.yb=d;this.Ki=e};
DJ=function(a,b,c,d,e,f,h,l,m,n,p){fI.call(this,a,b,c,d,e,1);var q=this;this.vz=!0;this.S=m;this.B=b;this.C=f;this.Y=new jy(this);g.J(this,this.Y);this.D=new g.M(function(){q.Yg("load_timeout")},1E4);
g.J(this,this.D);l(this);this.Z=h;this.K=p};
oqa=function(a){if(a.Z&&(a.I.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.I.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.i;b=b.D;if(void 0===c)g.Ty(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Ty(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}};
GJ=function(a,b){if(null!==a.S){var c=pqa(a);a=g.r(a.S.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.i||"aderror"!==f||(qqa(d,e,[],!1),rqa(d.B(),d.u),sqa(d.B(),d.u),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}EJ(d.B(),d.u,d.i,e);if(h){e=d.B();h=d.u;FJ(e.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Od);for(f=e.next();!f.done;f=e.next())f.value.Ej(h);Ppa(d.B(),d.u)}d.Na.get().I.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&
d.C&&tqa(d.B(),d.u,d.i);d.u=null;d.i=null;d.C=!1}}}};
HJ=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
pqa=function(a){if(a=a.B.i.elementId)return a;g.Ty(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
uqa=function(a){function b(l,m){l=a.uW;var n=Object.assign({},{});n.FINAL=MH(Te("1"));n.SLOT_POS=MH(Te("0"));return PH(l,OH(n),m)}
function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n);
n=a.bB(m,q);m=l(m,q,n,p);g.J(m,n);return m}}}
var d=c(function(l,m,n){return new kI(a.I,l,m,n,a.xp,a.Xa)}),e=c(function(l,m,n){return new zJ(a.I,l,m,n,a.xp)}),f=c(function(l,m,n){return new pI(a.I,l,m,n,a.xp,a.Xa,a.cm)}),h=c(function(l,m,n){return new oI(a.I,l,m,n,a.xp,a.Xa)});
this.MQ=new Npa({create:function(l,m){var n=PH(b(l,m),OH(Cpa(l)));m=a.bB(l,n);l=new DJ(a.I,l,n,m,a.xp,a.Xa,a.daiEnabled,function(p){return new bqa(a.Xa,n,p,a.I,a.Ph)},a.dm,a.Rf,a.Nd);
g.J(l,m);return l}},{create:function(l,m){var n=a.bB(l,m);
l=new xJ(a.I,l,m,n,a.xp,a.Xa,function(p,q){return new fqa(a.Xa,m,p,a.I,a.Ph,q)});
g.J(l,n);return l}},d,e,f,h)};
IJ=function(a,b){this.u=a;this.i={};this.B=void 0===b?!1:b};
vqa=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{kR:new kr(b,c),vS:new fA(b,c-b,a.context,a.identifier,a.event,a.i)}};
JJ=function(){this.i=[]};
KJ=function(a,b,c){var d=g.Jb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]};
wqa=function(){this.i=new JJ};
LJ=function(a){this.i=a};
xqa=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
yqa=function(a,b,c){this.B=a;this.i=b;this.u=c;this.C=a.getCurrentTime()};
Aqa=function(a,b){var c=void 0===c?Date.now():c;b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;MJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:zqa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.u&&("unknown"===d.event&&NJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.C&&a.B.getCurrentTime()>d&&NJ("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.i))}};
Bqa=function(a,b,c){a.u&&MJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})};
Cqa=function(a,b){a.u&&MJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.UQ}})};
NJ=function(a,b){MJ({daiStateTrigger:{errorType:a,contentCpn:b}})};
MJ=function(a){g.Vv("adsClientStateChange",a)};
zqa=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"}};
OJ=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.i=this.qe=!1;this.adFormat=null;this.u="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Fqa=function(a,b,c,d,e){Dqa(a,b,c,d,e,function(){Eqa(a)})};
Dqa=function(a,b,c,d,e,f){f();var h=a.I.getVideoData(1),l=a.I.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.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.qe=!0,a.qe&&(b={adBreakType:Gqa(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)),a.adFormat&&(b.adType=a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),WA(b,a.actionType))))};
Eqa=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.u="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.qe=!1;a.i=!1};
Hqa=function(a){a.i=!1;TA("video_to_ad",void 0,void 0)};
Iqa=function(a){a.i=!1;TA("ad_to_ad",void 0,void 0)};
PJ=function(a){a.i=!1;TA("ad_to_video",void 0,void 0)};
Jqa=function(a){a.qe&&!a.i&&(a.B=!1,a.i=!0,"ad_to_video"!==a.actionType&&(VA("apbs",void 0,a.actionType),g.vs("finalize_all_timelines")&&(a=a.actionType,RA("c",a),JA(a),QA(a))))};
Gqa=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.Lqa=function(a){return(a=Kqa[a.toString()])?a:"LICENSE"};
QJ=function(){g.I.call(this);this.u=null;this.J=this.D=!1;this.B=new g.Oe;g.J(this,this.B)};
RJ=function(a){a=a.Mv();return 1>a.length?NaN:a.end(a.length-1)};
Mqa=function(a,b,c){a.Im()||a.getCurrentTime()>b||10<c||(a.play(),g.pt(function(){Mqa(a,a.getCurrentTime(),c+1)},500))};
Nqa=function(a,b){a.u&&null!==b&&b.i===a.u.i||(a.u&&a.u.dispose(),a.u=b)};
SJ=function(a){return Gla(a.Sf(),a.getCurrentTime())};
Oqa=function(a,b){if(0===a.uh()||0<a.aj())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.Mv(),a.length||!c)?GD(a,b):c};
Pqa=function(a){var b=a.Sf();return 0<ID(b)&&a.getDuration()?b.end(b.length-1):0};
TJ=function(a){switch(a.aj()){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.UJ=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
VJ=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.UJ(b,c)};
WJ=function(a,b){return VJ(a,a.state|b)};
XJ=function(a,b){return VJ(a,a.state&~b)};
YJ=function(a,b,c){return VJ(a,(a.state|b)&~c)};
g.T=function(a,b){return!!(a.state&b)};
g.ZJ=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.$J=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
aK=function(a){return a.Ac()&&!g.T(a,16)&&!g.T(a,32)};
g.bK=function(a){return g.T(a,1)&&!g.T(a,2)};
cK=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
dK=function(a,b,c,d,e,f,h,l){g.R.call(this);this.Pf=a;this.I=b;this.i=d;this.K=this.i.u instanceof rH?this.i.u:null;this.u=null;this.Y=!1;this.C=c;this.Z=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ya=0;this.Aa=!1;this.Hl=e;this.Ir=f;this.Wo=h;this.ma=!1;this.daiEnabled=l};
Qqa=function(a){if(sH(a.I)){var b=a.I.getVideoData(2);b=a.i.Z[b.Dc]||null;if(!b)return a.rk(),!0;(!a.u||a.u&&a.u.ad!==b)&&a.Yt(b)}else if(1===a.I.getPresentingPlayerType()&&a.u)return a.rk(),!0;return!1};
Rqa=function(a){(a=a.baseUrl)&&g.Xu(a,void 0,wq(a))};
eK=function(a){Sqa(a.Pf,a.i.i,a);a.daiEnabled&&!a.i.K&&(Tqa(a,a.aK()),a.i.K=!0)};
Tqa=function(a,b){for(var c=fK(a),d=a.i.i.start,e=[],f=g.r(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=Uqa(h);e.push({externalVideoId:h.D,originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.i.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.i.i.start;h.B.B=c;if(!Vqa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+Uqa(p)},0);
Bqa(a.Hl,a.i.i.Cv(),b);Cqa(a.Hl,{cueIdentifier:a.i.C&&a.i.C.identifier,UQ:e})};
Uqa=function(a){var b=1E3*a.u;return 0<parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.i.trimmedMaxNonSkippableAdDurationMs,10):b};
fK=function(a){var b=a.i.i.end;a=KJ(a.Ir,a.i.i.start,b);return Math.min(b,null===a?Infinity:a)};
Vqa=function(a,b,c,d){var e=a.Wo.create(b,OH(Bpa(a.i)),a.i.i.i);c=e.NJ(c,d);g.oe(e);if(!c)return!1;a.i.Z[c]=b;return!0};
hK=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;a.Y=!0;g.oe(a.u);PJ(a.C);b?b=!1:a.daiEnabled?(b=a.I.getCurrentTime(2,!0),b=1>=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.D.hasOwnProperty("ad_placement_end")){b=g.r(a.i.Y);for(var d=b.next();!d.done;d=b.next())Rqa(d.value);a.i.D.ad_placement_end=!0}b=a.i.S;if(null!==b){d=a.Hl;var e=a.i.C&&a.i.C.identifier,f=a.i.i.start,h=fK(a);d.u&&MJ({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h-
f).toString(),driftFromHeadMs:Math.round(1E3*d.B.xn()).toString()}});a.i.S=null}c||a.daiEnabled?gK(a.Pf,!0):a.Z&&a.mH()&&a.cw()?gK(a.Pf,!1,Wqa(a)):gK(a.Pf,!1);Fqa(a.C,a.i.i.i,!0,a.vD(),a.isLiveStream())};
Wqa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Qa()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
Xqa=function(a,b,c){this.i=a;this.u=b;this.B=c};
iK=function(){this.D=[];this.K=[];this.i=[];this.C=[];this.J=[];this.u=new Set;this.S=new Map};
jK=function(){iK.i||(iK.i=new iK);return iK.i};
Yqa=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.u.has(c)&&a.B&&a.B();var h=g.Iy(c),l=g.Gy(c);h&&l&&((null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Gz(a.client,h,l,[g.Cy(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Gz(a.client,h,l,[g.Cy(d.playerResponse.trackingParams)]))})};
Zqa=function(a,b){kK(a,g.Cy(b),void 0,void 0)};
kK=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.Iy(d);c=c||g.Gy(d);e&&c&&g.Gz(a.client,e,c,[b])}};
ara=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){$qa(a,b,c);var f=g.Gy(c.layer);if(f){for(var h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,kK(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Iy(h);var n=m[0]||g.Gy(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cttAuthInfo:Jy(l),wm:l},"UNDEFINED_CSN"==l?Fz("visualElementStateChanged",m,n):h?zv("visualElementStateChanged",m,h,n):g.Vv("visualElementStateChanged",
m,n))}}};
g.Iy(c.layer)||a.B();if(c.HJ)for(var d=g.r(c.HJ),e=d.next();!e.done;e=d.next())Yqa(a,e.value,c.layer);else g.Ty(Error("Delayed screen needs a data promise."))};
$qa=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.qW?c.qW:c.layer;var e=g.Iy(d);d=g.Gy(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.CJ,p=c.cttAuthInfo,q=c.vaa,t=bra(),u={csn:t,pageVe:(new By({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement?
(u.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},q&&(u.implicitGesture.gestureType=q)):l&&g.Bz(new g.$v("newScreen() parent element does not have a VE - rootVe",b));n&&(u.cloneCsn=n);n={cttAuthInfo:p,wm:t};m?zv("screenCreated",u,m,n):g.Vv("screenCreated",u,n);lx(Uia,new Ez(t));var x=t}catch(y){Qia(y,{Yw:b,rootVe:d,parentVisualElement:void 0,oaa:e,Haa:f,CJ:c.CJ});g.Ty(y);return}Ly(x,b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.vs("screen_manager_skip_hide_killswitch"))){a:{b=
g.r(Object.values(cra));for(f=b.next();!f.done;f=b.next())if(g.Iy(f.value)==e){b=!0;break a}b=!1}b=!b}b&&Ria(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=x||"");g.UA("csn",x);Nz.getInstance().clear();d=g.Gy(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.vs("web_mark_root_visible")||g.vs("music_web_mark_root_visible"))&&g.Hz(x,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.S);for(x=e.next();!x.done;x=e.next())b=g.r(x.value),x=b.next().value,b=b.next().value,b.has(c.layer)&&
d&&kK(a,x,d,c.layer);for(c=0;c<a.C.length;c++){e=a.C[c];try{e()}catch(y){g.Ty(y)}}for(c=a.C.length=0;c<a.J.length;c++){e=a.J[c];try{e()}catch(y){g.Ty(y)}}};
lK=function(){this.i={};if(this.u=Mt()){var a=g.Kt("CONSISTENCY");a&&dra(this,{encryptedTokenJarContents:a})}};
dra=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.u&&g.Jt("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
mK=function(){var a=g.P("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")&&(this.localStorage=era(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.i=void 0)};
era=function(a){return void 0===a.localStorage?new Ov("yt-client-location"):a.localStorage};
nK=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.Ty(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.nc(d);g.vs("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.Dv.getInstance();var h="USER_INTERFACE_THEME_LIGHT";g.Fv(0,165)?h="USER_INTERFACE_THEME_DARK":g.Fv(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.vs("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:zia()||h;e.userInterfaceTheme=
f;if(!b){if(f=Kv())e.connectionType=f;g.vs("web_log_effective_connection_type")&&(f=Mv())&&(d.client.effectiveConnectionType=f)}f=g.Hs(g.C.location.href);!g.vs("web_populate_internal_geo_killswitch")&&f.internalcountrycode&&(e.internalGeo=f.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.C.location.href},g.vs("kevlar_woffle")&&Av.i&&(e.mainAppWebInfo.pwaInstallabilityStatus=Av.i.i?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),
g.vs("web_include_display_mode_killswitch")||(e.mainAppWebInfo.webDisplayMode=Bv()),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&!g.vs("web_lr_app_quality_killswitch")&&(f=g.P("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(Object.assign({},e.tvAppInfo),{appQuality:f}));if(!g.vs("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(A){}l=
void 0}l&&(e.timeZone=l)}(l=g.P("EXPERIMENTS_TOKEN",""))?e.experimentsToken=l:delete e.experimentsToken;l=xs();lK.i||(lK.i=new lK);e=bc(lK.i.i);d.request=Object.assign(Object.assign({},d.request),{internalExperimentFlags:l,consistencyTokenJars:e});!g.vs("web_prequest_context_killswitch")&&(l=g.P("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=l);e=g.Dv.getInstance();l=g.Fv(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);l&&(d.user.enableSafetyMode=l);e&&(d.user.lockedSafetyMode=
!0);g.vs("warm_op_csn_cleanup")?c&&(b=g.Iy())&&(d.clientScreenNonce=b):!b&&(b=g.Iy())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ga("yt.mdx.remote.remoteClient_"))d.remoteClient=a;g.vs("web_enable_client_location_service")&&mK.getInstance().setLocationOnInnerTubeContext(d);var m;try{var n=lt(void 0),p=n.bid;delete n.bid;d.adSignalsInfo={params:[],bid:p};for(var q=g.r(Object.entries(n)),t=q.next();!t.done;t=q.next()){var u=g.r(t.value),x=u.next().value,y=u.next().value;
n=x;p=y;null===(m=d.adSignalsInfo.params)||void 0===m?void 0:m.push({key:n,value:""+p})}}catch(A){g.Ty(A)}return d};
oK=function(){this.iX=!0};
pK=function(){oK.apply(this,arguments);this.wq={}};
rK=function(){qK||(qK=new pK);return qK};
fra=function(a,b){b?a.wq.Authorization="Bearer "+b:delete a.wq.Authorization};
gra=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
hra=function(){var a=null;mu().then(function(b){return a=b},function(b){return a=gra(b)});
return a};
ira=function(){var a=th(1E3,"NO_BID");return hh(g.jh(fba([mu(),a]),gra),function(){return a.cancel()})};
jra=function(a){return a.Zb?g.Fv(g.Dv.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
sK=function(a){this.player=a;this.u=this.i=1};
uK=function(a,b,c,d){c=void 0===c?{}:c;var e=c.Vu,f=c.Ad;d=void 0===d?"":d;c=a.player.getVideoData(1);var h=a.player.V().Vj,l={AD_BLOCK:a.i++,AD_BREAK_LENGTH:e?e.durationSecs:0,AUTONAV_STATE:jra(a.player.V()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.xn(),LACT:Vu(),LIVE_INDEX:e?a.u++: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().rg().height,
P_W:a.player.bb().rg().width,YT_REMOTE:h?h.join(","):""},m=Ps(Os);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Ns(b)&&(d.sts="18900",(e=a.player.V().eb)&&(d.forced_experiments=e));b=Ks(g.xq(b,l),d);a.player.getVideoData();if(2!==b.split("?").length)return dh(Error("Invalid AdBreakInfo URL"));if((d=null===c||void 0===c?void 0:c.oauthToken)&&Ms()){var n=rK();fra(n,d)}n=a.player.Ml(n);a=kra(a,b,l,c.isMdxPlayback);return g.tK(n,a,"/youtubei/v1/player/ad_break")};
nra=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Ls(b),f=lra(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=lra(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Es(lt(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];mra.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.deviceParams.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.deviceParams.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.deviceParams.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.deviceParams.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.deviceParams.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user=
{});a.user.lockedSafetyMode=!1};
qra=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in ora&&(f.clientName=ora[d[0]]),d[1]in pra&&(f.platform=pra[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
kra=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=rra.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=sra.test(b),l=tra.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=ura.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=vra.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=g.rF(a.player.V()),q=nK(a.player.getVideoData(1).Ya,!0),t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";nra(q,b,t.toString(),a.player.V());var u=
{splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:18900,autonavState:jra(a.player.V())};d&&(d={},qra(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=wra.includes(p)?void 0:g.Kt("PREF")){for(var x=d.split(RegExp("[:&]")),y=0,A=x.length;y<A;y++){var F=x[y].split("=");if(("SML"===F[0].toUpperCase()||"GSML"===F[0].toUpperCase())&&1<F.length&&"TRUE"===F[1].toUpperCase()){q.user.lockedSafetyMode=!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in
xra)for(d=d.split(RegExp("[:&]")),y=xra.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(y/31)).toString(),y=1<<Math.floor(y%31),A=0,F=d.length;A<F;A++){var G=d[A].split("=");if(G[0]===x&&parseInt("0x"+G[1],16)&y){d=!0;break a}}d=!1}u.autoCaptionsDefaultOn=d}b=yra.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:u};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,
isProxyAdTagRequest:h,context:q,adSignalsInfoString:Es(lt(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.V().N("html5_populate_media_position_in_ad_break_request")&&(f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1)));return f};
vK=function(a,b,c,d,e,f){g.R.call(this);this.J=a;this.u=b;this.B=c;this.D=d;this.i=e;this.C=f;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")||zra(this)};
Ara=function(a,b){var c={isEmpty:!0,eL:!1,zl:[]};if(!b)return c;b&&b.trackingParams&&Zqa(jK(),b.trackingParams);if(b&&b.adThrottled)return c.eL=!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.wb(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.zl=b;
c.isEmpty=!1;return c};
zra=function(a){[a.i.ya,a.i.i].filter(function(b){return null!=b}).forEach(function(b){Sqa(a.u,b,a)})};
wK=function(a,b,c,d,e,f,h,l){dK.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.D=-1;this.J=null;this.S=Bra(this.Zy())};
Cra=function(a){a.D++;var b=a.Zy();b?(0<a.D&&Iqa(a.C),a.Yt(b)):hK(a)};
Bra=function(a){return a?Dra.some(function(b){return a instanceof b}):!1};
Era=function(a){this.i=new Xqa(function(b){b=new dK(a.Pf,a.I,a.BJ(),b,a.Hl,a.Ir,a.Wo,a.daiEnabled);eK(b);return b},function(b){return new vK(a.vC,a.Pf,a.I,a.Vo,b,a.Hl)},function(b){b=new wK(a.Pf,a.I,a.BJ(),b,a.Hl,a.Ir,a.Wo,a.daiEnabled);
eK(b);return b})};
Fra=function(a,b){EH.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.Vv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),FH(this,new mI(a.adStart.adMessageRenderer)));if(a.linearAds){var c=[];a=g.r(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.instreamVideoAdRenderer){var e=b(d.instreamVideoAdRenderer);FH(this,e);c.push(e.u);d.instreamVideoAdRenderer.isCritical&&(this.u=1)}else d.adActionInterstitialRenderer?(d=new iI(d.adActionInterstitialRenderer),
FH(this,d)):d.adIntroRenderer&&(d=new lI(d.adIntroRenderer),FH(this,d),this.u=1);this.i.filter(function(f){return f instanceof DH}).forEach(function(f,h){f instanceof DH&&(h=new BH(h,c),f.B=h)})}}};
Hra=function(a,b){EH.call(this);FH(this,Gra(this,a.adVideoStart));a:{var c=a.linearAd;if(c){if(c.instreamVideoAdRenderer){b=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){b=new KH(c.instreamSurveyAdRenderer);break a}}b=null}FH(this,b);(a=a.adVideoEnd)?a.adActionInterstitialRenderer?(this.u=1,a=new iI(a.adActionInterstitialRenderer)):a=null:a=null;FH(this,a)};
Gra=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.u=1,new iI(b.adActionInterstitialRenderer)):b.adMessageRenderer?(g.Vv("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new mI(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new nI(b.surveyTextInterstitialRenderer):null};
Ira=function(a,b,c){this.B=a;this.i=b;this.u=c};
Jra=function(a){this.i=a};
Kra=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.i.create(e,f):null;return new wpa(b,c,h,d)}catch(l){g.zs(l)}};
Lra=function(a){var b=new Jra(a.NQ);return{YJ:function(){return b}}};
xK=function(a){g.I.call(this);var b=this;this.u=a;this.i=null;g.qe(this,function(){return b.i=null});
var c=iy(a);if(c){var d=function(){b.i&&b.i(!!gy())};
this.u.addEventListener(c,d);g.qe(this,function(){b.u.removeEventListener(c,d)})}};
yK=function(a){g.I.call(this);this.i=a};
Mra=function(a){var b=window.document;return g.yF(a.V())?new xK(b):new yK(a)};
Nra=function(a){g.I.call(this);this.aP=new yqa(a.I,a.contentCpn,a.daiEnabled)};
Ora=function(a){zK=a&&a.data};
Qra=function(a){Pra=a&&a.data};
Rra=function(a){AK=a&&a.data};
Sra=function(a){BK=a&&a.data};
Tra=function(a){CK=a&&a.data};
Ura=function(){CK=BK=AK=zK=null};
FK=function(a){g.I.call(this);var b=this;this.Ic=a;this.Kd=new Map;this.i=new Map;DK(this,"commandExecutorCommand",function(c,d,e){b.Hd(c.commands,d,e)});
EK(this,"commandExecutorCommand",function(c,d){Vra(b,c.commands,d)});
DK(this,"clickTrackingParams",function(){});
EK(this,"clickTrackingParams",function(){})};
Wra=function(a,b){DK(a,b.zk(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Xra=function(a,b){EK(a,b.zk(),function(c,d){b.Sl(c,d)})};
DK=function(a,b,c){a.isDisposed();a.Kd.get(b)&&g.Ty(Error("Extension name "+b+" already registered"));a.Kd.set(b,c)};
EK=function(a,b,c){a.isDisposed();a.i.get(b)&&g.Ty(Error("Extension name "+b+" already registered"));a.i.set(b,c)};
Vra=function(a,b,c){b=void 0===b?[]:b;a.isDisposed();var d=[],e=[],f=g.r(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.r(d);for(b=d.next();!b.done;b=d.next())GK(a,b.value,c);e=g.r(e);for(b=e.next();!b.done;b=e.next())GK(a,b.value,c)};
Yra=function(a,b){a.Ic.get().Oa("innertubeCommand",{openPopupAction:b})};
Zra=function(a,b){a.Ic.get().Oa("innertubeCommand",{confirmDialogEndpoint:b})};
GK=function(a,b,c){a.isDisposed();b.loggingUrls&&$ra(a,"loggingUrls",b.loggingUrls,c);b=g.r(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Yra(a,e):"confirmDialogEndpoint"===d?Zra(a,e):asa.hasOwnProperty(d)||$ra(a,d,e,c)}};
bsa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Kd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.Ty(f)}else b=new g.$v("Unhandled field",b),g.Bz(b)};
$ra=function(a,b,c,d){(a=a.i.get(b))||new g.$v("Unhandled field",b);try{a(c,d)}catch(e){g.Ty(e)}};
dsa=function(a,b,c,d){for(var e=!1,f=g.r(b.Li.entries()),h=f.next();!h.done;h=f.next())h=g.r(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.rb&&"core"===h.gb&&(e=!0);e?(d=csa(b,d))?c.UD(d):S("No triggering layout ID available when attempting to mute."):g.Ug(function(){a.rk()})};
csa=function(a,b){if(b)return b;a=g.r(a.Li.entries());for(b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.rb&&"core"===b.gb)return c.layoutId}};
esa=function(a){var b=new RH(a.np),c=new SH(b);return{HR:function(){return b},
ID:function(){return c}}};
Jpa=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute";default:return null}};
fsa=function(a){this.I=a;var b=om(pq),c=a.Pd();b.B!==c&&((b.B=c)||sga(b));a.V().N("active_view_stop_starting_measurement_on_loaded")&&il(Dm().featureSet,"ssmol",1)};
gsa=function(a){g.I.call(this);this.i=a;this.u=new fsa(a.I)};
hsa=function(a){return function(){return new OJ(a.i.I)}};
isa=function(a){return function(b,c){return new Fpa(b,a.u,c,a.i.I,a.i.Ph,a.i.daiEnabled)}};
HK=function(a,b,c,d,e,f){g.R.call(this);var h=this;this.i=c;this.Ja=null;this.eb=d;this.kb=f.Rf;this.Za=f.ao;this.u=null;this.B=new Map;d=this.i.V().experiments;var l=esa({np:c.getVideoData(1)}),m=new gsa({Ph:l.ID(),I:c,daiEnabled:!1});g.J(this,m);this.Xo=new Set;this.oz=-1;this.Y=[];this.J=null;this.ma=new Map;this.K=new Map;this.S=new Set;this.C=new jy(this);g.J(this,this.C);this.D=new jy(this);g.J(this,this.D);this.ya=this.Ya=this.Aa=!1;this.Z=g.yF(c.V());this.jb=e;e=new Nra({contentCpn:this.i.getVideoData(1).clientPlaybackNonce,
maa:this,daiEnabled:!1,I:this.i});g.J(this,e);this.Ka=e.aP;this.Sa=(new wqa({naa:this,Maa:d.ob("html5_recognize_predict_start_cue_point"),Iaa:d.ob("html5_persist_cue_range_killswitch")})).i;var n=qc(OH(NH(this.i)));b=new uqa({Xa:this,xp:AH(),Ph:l.ID(),I:this.i,uW:n,bB:isa(m),daiEnabled:!1,dm:f.dm,Rf:this.kb,cm:f.cm,Nd:b});this.Da=(new Era({Vo:this.eb,Wo:b.MQ,vC:a,Pf:this,xp:AH(),BJ:hsa(m),Hl:this.Ka,Ir:this.Sa,I:this.i,Uaa:n,bB:function(p){return isa(m)(p,n)},
daiEnabled:!1})).XJ();this.La=Lra({NQ:new Ira(new ppa(c),d,function(p){return h.K.has(p)?h.K.get(p):null})}).YJ();
this.Ua=Mra(this.i);g.J(this,this.Ua);this.qb=EF(this.i.V())?this.i.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.i.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit")};
nsa=function(a,b){var c=a.i.getVideoData(1);if(c.ip||g.P("SERVED_VIA_SPF_HISTORY"))IK(a);else{if(tH(a.i)){var d=jsa(a.i);d.addEventListener("updateKevlarOrC3Companion",Ora);d.addEventListener("onPlaShelfInfoCardsReady",Qra);d.addEventListener("updateEngagementPanelAction",Rra);d.addEventListener("changeEngagementPanelVisibility",Sra);d.addEventListener("scrollToEngagementPanel",Tra);window.addEventListener("yt-navigate-start",Ura)}a.C.T(a.i,"applicationplayerstatechange",a.FT);a.C.T(a.i,g.pA("ad"),
a.YE,a);a.C.T(a.i,g.qA("ad"),a.cU,a);a.C.T(a.i,"aduxclicked",a.tT);a.C.T(a.i,"videodatachange",a.fW);b=ksa(a,b);b=lsa(a,b);b=msa(a,b);0<b.length&&JK(a,b);a.J&&c.subscribe("cuepointupdated",a.gM,a);g.Ug(a.CX,a)}};
ksa=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.V().experiments.ob("html5_pacf_enable_non_dai_live_video_ads"))return S("Tries to extract CuePoint triggered AdPlacementRenderer."),!1;g.yF(a.i.V())&&a.i.getVideoData(1).tf()||(a.J=c);return!1}return!0})};
lsa=function(a,b){a.ma=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.ma.set(c.elementId,c),!1):!0})};
msa=function(a,b){a.K=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.K.set(c.hostElementId,c),!1):!0})};
osa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.zs(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof vK?!1:c instanceof dK?!c.Np():!0})};
IK=function(a){var b=psa(a);if(0<b.length){var c=g.sE(a.i.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.Z&&g.mF(a.i.V())?(c=new g.M(function(){qsa(a,b)},c),g.J(a,c),c.start()):g.Ug(function(){qsa(a,b)})}};
psa=function(a){for(var b=rsa(a),c=g.r(b),d=c.next();!d.done;d=c.next())a.Xo.delete(d.value);return b};
rsa=function(a){var b=[];a=g.r(a.Xo);for(var c=a.next();!c.done;c=a.next())c=c.value,sA(c)&&b.push(c);return b};
ssa=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 kja(f,1E3*a.i.getCurrentTime(1)||0,!1,a.i.V().experiments.ob("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.Y.length,c);a.Y=a.Y.concat(b);return b};
qsa=function(a,b){if(!a.isDisposed()){b=g.r(b);for(var c=b.next();!c.done;c=b.next())a.YE(c.value)}};
JK=function(a,b,c){b=ssa(a,b,void 0===c?null:c);0==b.length||b.map(function(d){return a.Da.create(d)})};
tsa=function(a){a.Aa||(a.D.T(a.i,"presentingplayerstatechange",a.bP),a.D.T(a.i,"internalAbandon",a.jT),a.D.T(a.i,"progresssync",a.iW),a.D.T(a.i,"onVolumeChange",a.jW),a.D.T(a.Ua,"fullscreentoggled",a.lU),a.Aa=!0);g.N(a.i.getRootNode(),"ad-showing");g.N(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.ob("enable_html5_teal_ad_badge")&&tH(a.i)&&g.N(a.i.getRootNode(),"ad-teal-design");a.i.Hj(2)};
gK=function(a,b,c){var d=!!a.u&&a.u||null,e=a.i.V();e=d&&d.Np()&&(a.i.V().experiments.ob("html5_use_normal_timer_for_survey")&&!g.mF(e)&&d.Jk()||sH(a.i)||!1);d=b&&d&&d.reset()||null;a.u&&usa(a,a.u);a.u=null;a.oz=-1;e&&vsa(a,c);a.ya||a.Za.wp();b&&d&&(d.lH().B=!1,eK(d))};
vsa=function(a,b){g.my(a.D);a.Aa=!1;g.Mq(a.i.getRootNode(),"ad-showing");a.qb?(a.ya||a.Za.wp(),wsa(a),a.i.cueVideoByPlayerVars({},2)):(a.i.cueVideoByPlayerVars({},2),wsa(a));g.Mq(a.i.getRootNode(),"ad-interrupting");a.i.V().experiments.ob("enable_html5_teal_ad_badge")&&g.Mq(a.i.getRootNode(),"ad-teal-design");b&&b(a.i)};
wsa=function(a){if(a.Ya)!a.Z&&g.mF(a.i.V())&&(a.i.V().experiments.ob("release_player_on_abandon_for_bulleit_living_room")||a.i.V().experiments.ob("release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&a.i.qo(2);else if(a.i.qo(2),!a.Z){var b=a.i.vb(1);g.T(b,4)&&!g.T(b,2)&&a.i.playVideo()}};
Sqa=function(a,b,c){if(b instanceof rA){if(a.Z&&Cja(b)&&g.T(a.i.vb(1),64)){var d=1E3*a.i.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.B.has(b)?g.zs(Error(b.toString()+" has already been seen")):(a.Xo.add(b),a.B.set(b,c),sA(b)||a.i.Ed([b],1))}else g.zs(Error("Should use AdCueRange instead of CueRange"))};
usa=function(a,b){a=a.B;for(var c=g.r(a),d=c.next();!d.done;d=c.next()){d=g.r(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.oe(b)};
KK=function(a){g.I.call(this);this.u=a};
LK=function(a){KK.call(this,!0);this.i=a};
xsa=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.wl||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.Qy()});
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 Vu().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
ysa=function(a,b){g.I.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.J=this.C=!1;this.Y=null;var d=(0,g.D)(a,b);this.i=new g.M(function(){return d(c.Y)},300);
g.J(this,this.i);this.Z=this.S=Infinity};
zsa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
MK=function(){var a="ytp-id-"+Asa.toString();Asa++;return a};
g.NK=function(a){g.I.call(this);this.Ya={};this.Zb={};this.element=this.createElement(a)};
OK=function(a,b,c,d){if("{{"===d.substr(0,2))a.Zb[d]=[b,c];else return d};
Bsa=function(a,b){var c=[];if(!b)return c;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.zg("BR"));c.push(g.Ag(f))}):c.push(g.Ag(d))}return c};
PK=function(a,b,c,d){if("child"===c){g.Bg(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=Bsa(a,e);c=g.r(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Jl(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.nf(g.rf(a))),b.setAttribute(c,a))};
g.U=function(a){g.NK.call(this,a);this.Ab=!0;this.Z=!1;this.listeners=[]};
g.QK=function(a,b){b?a.show():a.hide()};
g.RK=function(a){g.U.call(this,a);this.Ka=new g.R;g.J(this,this.Ka)};
SK=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.RK.call(this,c);this.api=a;this.Xa=b;this.macros={};this.componentType=d;this.J=null;this.kb=h;this.layoutId=e;this.yb=f;this.Sa=null;this.PF=new LK(this.element);g.J(this,this.PF);this.eb=this.T(this.element,"click",this.onClick);this.ya=[];this.ma=new ysa(this.onClick,this);g.J(this,this.ma);this.jb=!1;this.S=null};
Csa=function(a,b,c){a.Xa?a.Xa.executeCommand(b,a.macros,c):g.zs(Error("null or undefined adService"))};
TK=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return Bs(Error("Got null or undefined adText object")),"";var c=g.bg(a.text);if(!a.isTemplated)return c;if(null==b)return Bs(Error("Missing required parameters for a templated message")),c;a=g.r(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.r(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Dsa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.wb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.bg(a.thumbnails[0].url)};
Esa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.wb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.Wf(0,0):new g.Wf(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.Fsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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"}}]}};
UK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{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.VK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{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.WK=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},U:[{G:"path",W:{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"}}]}};
Gsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",W:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",W:{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"}}]}};
Hsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Isa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.XK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{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"}}]}};
Jsa=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{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"}}]}};
Ksa=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{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"}}]}};
Lsa=function(){return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{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"}}]}};
Msa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.YK=function(){return{G:"svg",W:{viewBox:"0 0 24 24"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{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"}}]}};
ZK=function(){return{G:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",W:{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"}}]}};
Nsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
$K=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.aL=function(){return{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{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"}}]}};
Osa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Psa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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"}}]}};
Qsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]}};
Rsa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.bL=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.cL=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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"}}]}};
Ssa=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
dL=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]}};
eL=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},U:[{G:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",W:{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{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"path",W:{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{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{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"}},{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.XK();case "INFO_OUTLINE":return Lsa();case "REMOVE_CIRCLE":return{G:"svg",
W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",W:{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 $K();case "LIKE":return g.YK();case "DISLIKE":return Ksa();default:return g.Bz(new g.$v("Unexpected icon:",a)),null}};
fL=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",Ga:["ytp-ad-button"].concat(e)};null!=l&&(e.W={tabindex:l});SK.call(this,a,b,e,void 0===f?"button":f,c,d);this.i=this.u=this.B=null;this.C=h;this.hide()};
Tsa=function(a){var b=null;null!=a.i&&(b=[a.i.serviceEndpoint,a.i.navigationEndpoint].filter(function(c){return null!=c}),a.i.command&&(b=b.concat(a.i.command)));
return b||[]};
gL=function(){g.I.call(this);var a=this;this.i=new Map;this.u=Aha(function(b){if(b.target&&(b=a.i.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Xu(b[c],void 0,void 0)})};
Usa=function(){null==hL&&(hL=new gL);return hL};
iL=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Vsa(a))){b=yg("SPAN",null,b);break a}b=g.Ag(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(Wsa(e,b))}return 1==c.length?c[0]:yg("SPAN",null,c)};
Wsa=function(a,b){var c=null,d=a.text;b&&(d=Vsa(d)||d);a.bold&&(c=yg("B",null,c||d));a.italics&&(c=yg("I",null,c||d));a.strikethrough&&(c=yg("STRIKE",null,c||d));a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint&&(b=a.navigationEndpoint.urlEndpoint,c=yg("A",null,c||d),g.Mf(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Usa().register(c,a),g.N(c,"ytp-ad-has-logging-urls"));
return c||yg("SPAN",null,d)};
Vsa=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(yg("BR")),b.push(a[c]);return b}return null};
jL=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;SK.call(this,a,b,{G:"span",Ga:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.u=null;this.D=f;this.C=e;this.hide()};
kL=function(a){return a&&a.thumbnails&&!g.wb(a.thumbnails||null)&&a.thumbnails[0].url?g.bg(a.thumbnails[0].url):""};
lL=function(a,b,c,d,e,f){f=void 0===f?!1:f;SK.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.i=f;this.hide()};
mL=function(a,b,c,d,e,f){e=void 0===e?[]:e;SK.call(this,a,b,{G:"div",Ga:["ytp-ad-confirm-dialog-background"],U:[{G:"div",L:"ytp-ad-confirm-dialog-container",U:[{G:"div",Ga:["ytp-ad-confirm-dialog"].concat(e),W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-confirm-dialog-title",va:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",va:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
va:"{{confirmLabel}}"}]}]}]},{G:"button",Ga:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],U:[{G:"span",L:"ytp-ad-button-icon",U:[g.XK()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.K=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.D=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.Y=this.Fa("ytp-ad-confirm-dialog-messages");this.B=null;this.i=new jy;g.J(this,this.i);this.u=null;this.hide()};
Xsa=function(a,b){if(b.title){var c=g.uA(b.title);a.Ra("title",c)}if(b.dialogMessages){c=g.r(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=iL(d.value),a.Y.appendChild(d)}b.cancelLabel&&(c=g.uA(b.cancelLabel),a.Ra("cancelLabel",c),a.i.T(a.C,"click",function(e){return a.NB(e)}));
b.confirmLabel&&(b=g.uA(b.confirmLabel),a.Ra("confirmLabel",b),a.i.T(a.D,"click",function(e){return a.WE(e)}));
a.i.T(a.K,"click",function(e){return a.VE(e)})};
nL=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=vH("ytp-ad-toggle-button-input");SK.call(this,a,b,{G:"div",Ga:["ytp-ad-toggle-button"].concat(e),U:[{G:"label",L:"ytp-ad-toggle-button-label",W:{"for":h},U:[{G:"span",L:"ytp-ad-toggle-button-icon",W:{role:"button","aria-label":"{{tooltipText}}"},U:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",va:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",va:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",W:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",va:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",va:"{{tooltipText}}"}]}]},f,c,d);this.B=this.Fa("ytp-ad-toggle-button");this.i=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.Y=this.Fa("ytp-ad-toggle-button-icon");this.D=this.Fa("ytp-ad-toggle-button-untoggled-icon");this.C=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Aa=this.Fa("ytp-ad-toggle-button-text");
this.u=null;this.K=!1;this.hide()};
oL=function(a){a.K&&(a.isToggled()?(g.Zl(a.D,!1),g.Zl(a.C,!0)):(g.Zl(a.D,!0),g.Zl(a.C,!1)))};
Ysa=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||[]};
pL=function(a){jy.call(this);this.i=a;this.T(this.i,"onAdUxUpdate",this.S)};
qL=function(a,b,c,d){SK.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",U:[{G:"div",L:"ytp-ad-feedback-dialog-container",U:[{G:"div",L:"ytp-ad-feedback-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-feedback-dialog-title",U:[{G:"span",va:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",va:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
va:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.C=[];this.i=null;this.D=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.K=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.Y=this.Fa("ytp-ad-info-dialog-feedback-options");this.Aa=this.Fa("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
bta=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.i=new fL(a.api,a.Xa,a.layoutId,a.yb,["ytp-ad-feedback-dialog-close-button"],"button"),g.J(a,a.i),a.i.init(vH("button"),c,a.macros),a.i.Qa("click",a.bM,a),a.i.Ea(a.element));b.title&&(c=g.uA(b.title),a.Ra("title",c));b.reasonsTitle&&(c=g.uA(b.reasonsTitle),a.Ra("reasonsTitle",c));b.reasons&&Zsa(a,b.reasons);b.cancelLabel&&(c=g.uA(b.cancelLabel),a.Ra("cancelLabel",c),g.wu(a.D,"click",function(){return a.bM()}));
b.confirmLabel&&(c=g.uA(b.confirmLabel),a.Ra("confirmLabel",c),g.wu(a.K,"click",function(){return $sa(a)}));
b.undoRenderer&&ata(a,b.undoRenderer)};
Zsa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?Bs(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?Bs(Error("AdFeedbackReason.endpoint was not set.")):(c=new cta(c,d),g.J(a,c),a.Y.appendChild(c.i.element),a.C.push(c)))}};
ata=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new fL(a.api,a.Xa,a.layoutId,a.yb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.J(a,a.u),a.u.init(vH("ad-feedback-undo-mute-button"),b,a.macros),a.u.Qa("click",a.eW,a),a.u.Ea(a.Aa)):Bs(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
$sa=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Xa.executeCommand(b[0].u,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ea("a"),a.hide())};
cta=function(a,b){this.u=b;this.i=new g.RK({G:"label",L:"ytp-ad-feedback-dialog-reason-label",U:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",va:g.uA(a)}]});this.B=this.i.Fa("ytp-ad-feedback-dialog-reason-input")};
rL=function(a,b,c,d){mL.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
sL=function(a,b,c,d,e){SK.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",U:[{G:"div",L:"ytp-ad-info-dialog-container",U:[{G:"div",L:"ytp-ad-info-dialog-form",W:{role:"dialog",tabindex:"-1"},U:[{G:"div",L:"ytp-ad-info-dialog-title",va:"{{title}}"},{G:"ul",L:"ytp-ad-info-dialog-ad-reasons"},{G:"div",L:"ytp-ad-info-dialog-message"},{G:"div",L:"ytp-ad-info-dialog-mute-container"},{G:"div",L:"ytp-ad-info-dialog-confirm-container",U:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.i=this.u=null;this.K=this.Fa("ytp-ad-info-dialog-confirm-button");this.Ua=this.Fa("ytp-ad-info-dialog-mute-container");this.La=this.Fa("ytp-ad-info-dialog-message");this.Da=this.Fa("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Aa=e;this.D=null;this.Ja=!1;this.Y=null;this.hide()};
dta=function(a){(a.D&&a.D.impressionEndpoints||[]).forEach(function(b){return a.Xa.executeCommand(b,a.macros)})};
eta=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new qL(a.api,a.Xa,a.layoutId,a.yb),g.J(a,a.u),a.u.init(vH("ad-feedback-dialog"),b,a.macros),a.u.Ea(a.Aa),a.u.subscribe("a",function(){return a.ea("c")})};
fta=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new rL(a.api,a.Xa,a.layoutId,a.yb),g.J(a,a.C),a.C.init(vH("ad-mute-confirm-dialog"),b,a.macros),a.C.Ea(a.Aa),a.C.subscribe("b",function(){return a.ea("c")})};
gta=function(a){a.i&&a.i.Qa("click",a.yH,a);g.wu(a.K,"click",function(){return a.yH()})};
tL=function(a,b,c,d,e,f){jL.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.i=null;this.B=e;this.hide()};
hta=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.zs(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.i=new sL(a.api,a.Xa,a.layoutId,a.yb,a.B),g.J(a,a.i),a.i.init(vH("ad-info-dialog"),b,c),a.i.Ea(a.B),a.i.subscribe("d",function(){return a.ea("f")}),a.i.subscribe("c",function(){return a.ea("e")}))};
jta=function(a,b,c){null==a.button?g.zs(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.N(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null)?(hta(a,b,c),a.button.Qa("click",function(){a.i&&!a.i.Ab&&(a.i.show(),ita(a))})):a.button.Qa("click",function(){return ita(a)}))};
ita=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
uL=function(a,b,c,d,e,f){SK.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.i=null;this.hide()};
vL=function(a,b){b&&g.Gg(a.element,TK(a.i,b))};
wL=function(a,b,c,d,e,f,h){SK.call(this,a,b,c,d,e,f);this.i=h;g.J(this,this.i);this.Da=this.C=-1};
xL=function(a){a.i&&-1===a.C&&(a.C=a.i.subscribe("h",a.jo,a),a.Da=a.i.subscribe("g",a.rq,a),a.jo())};
yL=function(a){null!=a.i&&-1!==a.C&&(a.i.cg(a.C),a.i.cg(a.Da),a.Da=-1,a.C=-1)};
g.zL=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.i=f;this.u=e;this.delay=new g.M(this.hB,0,this);g.J(this,this.delay)};
AL=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
BL=function(a,b,c,d,e,f){wL.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.La=-1;this.u=new g.RK({G:"span",L:"ytp-ad-preview-container"});g.J(this,this.u);this.B=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-preview-text");g.J(this,this.B);this.B.Ea(this.u.element);this.K=new g.RK({G:"span",L:"ytp-ad-preview-image"});g.J(this,this.K);this.D=new lL(this.api,this.Xa,this.layoutId,this.yb);g.J(this,this.D);this.D.Ea(this.K.element);this.K.Ea(this.u.element);
this.u.Ea(this.element);this.Y=new g.zL(this.u,400,!1,100,function(){return h.hide()});
g.J(this,this.Y);this.Aa=0;this.Ja=!1;this.Ua=f;this.hide()};
CL=function(a){a.Y.show(100);a.show()};
DL=function(a,b,c,d,e){wL.call(this,a,b,{G:"div",Ga:["ytp-flyout-cta","ytp-flyout-cta-inactive"],U:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",U:[{G:"div",L:"ytp-flyout-cta-text-container",U:[{G:"div",L:"ytp-flyout-cta-headline-container"},{G:"div",L:"ytp-flyout-cta-description-container"}]},{G:"div",L:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",c,d,e);this.K=new lL(this.api,this.Xa,this.layoutId,this.yb,"ytp-flyout-cta-icon");g.J(this,this.K);this.K.Ea(this.Fa("ytp-flyout-cta-icon-container"));
this.D=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-flyout-cta-headline");g.J(this,this.D);this.D.Ea(this.Fa("ytp-flyout-cta-headline-container"));this.B=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-flyout-cta-description");g.J(this,this.B);this.B.Ea(this.Fa("ytp-flyout-cta-description-container"));this.u=new fL(this.api,this.Xa,this.layoutId,this.yb,["ytp-flyout-cta-action-button"]);g.J(this,this.u);this.u.Ea(this.Fa("ytp-flyout-cta-action-button-container"));this.Y=null;this.Aa=0;this.hide()};
EL=function(a,b,c,d,e){SK.call(this,a,b,{G:"div",L:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",c,d,void 0===e?null:e);var f=this;this.i=null;this.B=new nL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-instream-user-sentiment-like-button"]);g.J(this,this.B);this.B.Ea(this.element);this.u=new nL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.J(this,this.u);this.u.Ea(this.element);this.C=new g.zL(this,400,!1,500,function(){return f.hide()});
g.J(this,this.C);this.hide()};
kta=function(a,b){a.B.init(vH("toggle-button"),a.i.likeButton.toggleButtonRenderer,b);a.u.init(vH("toggle-button"),a.i.dislikeButton.toggleButtonRenderer,b);a.T(a.element,"change",a.zH)};
FL=function(a,b,c,d,e){e=void 0===e?0:e;g.I.call(this);this.B=a;this.u=!1;this.Z=d;this.J=!1;this.i=null;0<b&&(this.i=new g.M(this.TI,b,this),g.J(this,this.i));this.D=new g.M(this.TI,c,this);g.J(this,this.D);this.S=$q(this.B,e,1,d);g.J(this,this.S);this.K=$q(this.B,0,d,1);g.J(this,this.K);this.C=new jy;g.J(this,this.C)};
GL=function(a,b,c,d,e,f){wL.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var h=this;this.K=null;this.Aa=!1;this.Ja=f;this.B=new g.RK({G:"span",Ga:["ytp-ad-skip-button-container"]});g.J(this,this.B);this.B.Ea(this.element);this.u=this.D=null;this.La=new g.zL(this.B,500,!1,100,function(){return h.hide()});
g.J(this,this.La);this.Y=new FL(this.B.element,15E3,5E3,.5,.5);g.J(this,this.Y);this.hide()};
mta=function(a){var b=a.K&&a.K.adRendererCommands;b=b&&b.clickCommand&&b.clickCommand.commandExecutorCommand&&b.clickCommand.commandExecutorCommand.commands||[];return a.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")?b.some(function(c){return c.adLifecycleCommand?lta(c.adLifecycleCommand):!1}):b.some(function(c){return c.adLifecycleCommand})};
lta=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
HL=function(a,b,c,d,e,f){wL.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.Y=f;this.D=!1;this.K=0;this.B=this.u=null;this.hide()};
nta=function(a,b){a.D||(a.D=!0,a.u&&(b?a.u.Y.hide():a.u.hide()),b?(a=a.B,a.La.show(),a.show()):a.B.show())};
IL=function(a,b,c,d){fL.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
JL=function(a,b,c,d,e){e=void 0===e?!1:e;SK.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.i=e;this.hide()};
KL=function(a,b){g.R.call(this);this.api=a;this.durationMs=b;this.i=null;this.ze=new jy(this);g.J(this,this.ze);this.u=ota;this.ze.T(this.api,"presentingplayerstatechange",this.Lc);this.i=this.ze.T(this.api,"onAdPlaybackProgress",this.Qb)};
LL=function(a,b,c){c=void 0===c?!1:c;g.R.call(this);var d=this;this.Xa=b;this.J=c;this.B=!1;this.C=this.u=0;this.ze=new jy(this);g.J(this,this.ze);this.durationMs=a;this.J?(this.i=new g.rh(200),g.J(this,this.i),this.i.Qa("tick",function(){d.Qb()})):(this.i=new g.rh(100),g.J(this,this.i),this.ze.T(this.i,"tick",this.Qb));
this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.ML=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.NL=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)};
OL=function(a,b,c,d,e,f){wL.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
PL=function(a,b,c,d){uL.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
QL=function(a,b){this.u=a;this.i=b};
RL=function(a){return a.i-a.u};
SL=function(a,b){return a.u+b*RL(a)};
TL=function(a,b,c){return RL(a)?g.Qf((b-a.u)/RL(a),0,1):null!=c?c:Infinity};
UL=function(a,b){g.RK.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.Nc=this.Fa("ytp-ad-persistent-progress-bar");this.i=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
VL=function(a,b,c,d,e,f){SK.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.D=f;this.K=this.Fa("ytp-ad-player-overlay-flyout-cta");this.u=this.Fa("ytp-ad-player-overlay-instream-info");this.B=null;pta(this)&&(a=
yg("div"),g.N(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 PL(this.api,this.Xa,this.layoutId,this.yb),c.Ea(a),c.init(vH("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.C=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Fa("ytp-ad-player-overlay-progress-bar");this.Y=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.i=e;g.J(this,this.i);this.hide()};
pta=function(a){a=a.api.V();return g.gF(a)&&a.i};
WL=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.pi("/sharing_services",a);g.Xu(d)};
g.rta=function(a,b,c){b=qta(null,b,c);if(b=Nf(b,window,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes"))c=g.dv("LOGGED_IN",function(d){g.ev(g.P("LOGGED_IN_PUBSUB_KEY",void 0));rs("LOGGED_IN",!0);a(d)}),rs("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
qta=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=oi(c,"mode",a));a=oi(d,"next",c);b&&(a=oi(a,"feature",b));return a};
sta=function(a,b){var c,d;if(!a)return!1;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Dq)return!!b.Dq[a.signalServiceEndpoint.signal];if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.YC)return!!b.YC[a.continuationCommand.request];for(var e in a)if(b.VC[e])return!0;return!1};
tta=function(a,b){var c,d;if((null===(c=a.signalServiceEndpoint)||void 0===c?0:c.signal)&&b.Dq){var e=b.Dq[a.signalServiceEndpoint.signal];if(e)return new e}if((null===(d=a.continuationCommand)||void 0===d?0:d.request)&&b.YC&&(e=b.YC[a.continuationCommand.request]))return new e;for(var f in a)if(b.VC[f]&&(a=b.VC[f]))return new a};
vta=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=uta[b];if(c){var d=new RegExp(c),e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(uta).forEach(function(h){var l=g.r(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.r(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.XL=function(a){return"/youtubei/v1/"+vta(a)};
YL=function(a){var b=g.P("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(gi(a)));return a};
wta=function(a,b){g.P("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null===b||void 0===b?0:b.Authorization)||(a=Ks(a,{key:g.P("INNERTUBE_API_KEY")}));return a};
ZL=function(a,b){return{method:void 0===b?"POST":b,mode:Ls(a)?"same-origin":"cors",credentials:Ls(a)?"same-origin":"include"}};
$L=function(){};
aM=function(){};
bM=function(a,b,c,d){this.B=a;this.Ue=b;this.u=c;this.C=d;this.i=void 0;a.Dq||(a.Dq={});a.Dq=Object.assign(Object.assign({},xta),a.Dq)};
yta=function(a,b,c,d){if(void 0!==bM.i){if(d=bM.i,a=[a!==d.B,b!==d.Ue,c!==d.u,!1,!1,void 0!==d.i],a.some(function(e){return e}))throw new g.$v("InnerTubeTransportService is already initialized",a);
}else bM.i=new bM(a,b,c,d)};
dM=function(a,b,c){var d=void 0===d?cM:d;var e=tta(b,a.B);if(!e)return dh(new g.$v("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new Zg(function(h){return g.H(a,function m(){var n,p,q=this,t;return g.B(m,function(u){if(1==u.i)return p="cors"===(null===(n=f.xq)||void 0===n?void 0:n.mode)?"cors":void 0,g.z(u,zta(q,f.config,p),2);t=u.u;h(Ata(q,f,t));g.sa(u)})})}):dh(new g.$v("Error: Failed to build request for command.",b))};
g.tK=function(a,b,c,d,e){e=void 0===e?{fp:{identity:cM}}:e;var f=void 0===f?!0:f;b.context||(b.context=nK(d,f));return new Zg(function(h){return g.H(a,function m(){var n,p,q=this,t,u,x;return g.B(m,function(y){if(1==y.i)return n=YL(c),p=Ls(n)?"same-origin":"cors",g.z(y,zta(q,e,p),2);t=y.u;u=wta(YL(c),t);x={input:u,xq:ZL(u),Ul:b,config:e};h(Ata(q,x,t));g.sa(y)})})})};
Ata=function(a,b,c){var d,e;return g.H(a,function h(){var l=this,m,n,p,q,t,u,x,y,A;return g.B(h,function(F){switch(F.i){case 1:F.fb(2);break;case 3:if((m=F.u)&&!m.isExpired())return F.return(Promise.resolve(m.i()));case 2:n=g.r([]);for(p=n.next();!p.done;p=n.next())q=p.value,q.Laa(b.Ul.context);if(null===(d=l.i)||void 0===d?0:d.C(b.input,b.Ul))return F.return(l.i.B(b.input,b.Ul));t=JSON.stringify(b.Ul);b.xq=Object.assign(Object.assign({},b.xq),{headers:c});u=Object.assign({},b.xq);"POST"===b.xq.method&&
(u=Object.assign(Object.assign({},u),{body:t}));return g.z(F,l.Ue.fetch(b.input,u,b.config),4);case 4:if((x=F.u)||null===(e=l.i)||void 0===e||!e.i(b.input,b.Ul)){F.fb(5);break}return g.z(F,l.i.u(b.input,b.Ul),6);case 6:x=F.u;case 5:if(x&&l.C)for(y=g.r(l.C),p=y.next();!p.done;p=y.next())A=p.value,A.handleResponse(x,b);return F.return(x)}})})};
zta=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){if(f.u.iX){var l=h.return,m,n,p=(null===(n=null===b||void 0===b?void 0:b.fp)||void 0===n?void 0:n.identity)||cM;n=null===(m=null===b||void 0===b?void 0:b.fp)||void 0===m?void 0:m.sessionIndex;m=f.u.Sy(p,{sessionIndex:n});m=Object.assign(Object.assign({},Bta(c)),m);h=l.call(h,m)}else h=h.return(Cta(f,b,c));return h})})};
Cta=function(a,b,c){var d,e;return g.H(a,function h(){var l,m,n=this,p;return g.B(h,function(q){if(1==q.i){l=(null===(d=null===b||void 0===b?void 0:b.fp)||void 0===d?void 0:d.identity)||cM;m=null===(e=null===b||void 0===b?void 0:b.fp)||void 0===e?void 0:e.sessionIndex;var t=ch(n.u.Sy(l,{sessionIndex:m}));return g.z(q,t,2)}p=q.u;return q.return(Promise.resolve(Object.assign(Object.assign({},Bta(c)),p)))})})};
Bta=function(a){var b={"Content-Type":"application/json"},c=g.P("VISITOR_DATA");c&&(b["X-Goog-Visitor-Id"]=c);"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.vs("forward_domain_admin_state_on_embeds")&&(a=g.P("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
eM=function(){};
fM=function(){};
gM=function(){};
hM=function(){};
iM=function(){};
jM=function(){};
kM=function(){};
g.mM=function(a,b){if(!lM){var c={VC:{feedbackEndpoint:gM,modifyChannelNotificationPreferenceEndpoint:hM,playlistEditEndpoint:iM,subscribeEndpoint:eM,unsubscribeEndpoint:fM,webPlayerShareEntityServiceEndpoint:jM}},d=g.vs("web_enable_client_location_service")?mK.getInstance():void 0,e=[];d&&e.push(d);void 0===a&&(oK.i||(oK.i=new oK),a=oK.i);void 0===b&&(kM.i||(kM.i=new kM),b=kM.i);yta(c,b,a,e);lM=bM.i}return lM};
nM=function(){};
Dta=function(){nM.i||(nM.i=new nM);return nM.i};
Fta=function(){if(!g.vs("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.vs("disable_biscotti_fetch_entirely_for_all_web_clients")&&eu()&&"1"!=kc(g.P("PLAYER_VARS",{}),"privembed",!1)){var a=function(){oM=!0;"google_ad_status"in window?rs("DCLKSTAT",1):rs("DCLKSTAT",2)};
try{g.Uz("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Eta.push(g.Lu(0,function(){if(!(oM||"google_ad_status"in window)){try{if(a){var b=""+g.Oa(a),c=aja[b];c&&g.ev(c)}}catch(d){}oM=!0;rs("DCLKSTAT",3)}},5E3))}};
Gta=function(){var a=Number(g.P("DCLKSTAT",0));return isNaN(a)?0:a};
pM=function(){};
Hta=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Tv=function(a,b){var c=this;this.handleError=a;this.i=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=ws("ytidb_transaction_ended_event_rate_limit",.02)};
Jta=function(a,b){pM.getInstance().estimate().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Ita(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Ita(null===c||void 0===c?void 0:c.quota)});a.i("idbQuotaExceeded",c)})};
Ita=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
qM=function(){this.u=!1;this.i=null};
Lta=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;c?(a.u=!0,g.Uz(c,function(){a.u=!1;var l=0<=c.indexOf("/th/");if(l?window.trayride:window.botguard)Kta(a,d,!!h,l,e);else{l=$ia(c);var m=document.getElementById(l);m&&(hv(l),m.parentNode.removeChild(m));g.Bz(new g.$v("Unable to load Botguard","from "+c))}},f)):b&&(f=g.zg("SCRIPT"),f.textContent=b,f.nonce=Of(),document.head.appendChild(f),document.head.removeChild(f),((b=b.includes("trayride"))?window.trayride:window.botguard)?Kta(a,d,!!h,b,e):g.Bz(Error("Unable to load Botguard from JS")))};
Kta=function(a,b,c,d,e){var f,h;if(d=d?null===(f=window.trayride)||void 0===f?void 0:f.ad:null===(h=window.botguard)||void 0===h?void 0:h.bg)if(c)try{Mta(a,new d(b,e?function(){return e(b)}:g.Ha))}catch(l){l instanceof Error&&g.Bz(l)}else{try{Mta(a,new d(b))}catch(l){l instanceof Error&&g.Bz(l)}e&&e(b)}else g.Bz(Error("Failed to finish initializing VM"))};
Nta=function(a,b){var c=g.rM;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.hasOwnProperty("hot")?c.i.hot(d,!0,a):c.i.invoke(d,!0,a):d(null)})]):Promise.resolve(null)};
Mta=function(a,b){a.i=b};
Ota=function(){YA("bg_l",void 0,"player_att");sM=(0,g.Q)()};
g.Pta=function(a,b,c){a.program&&(g.rM.u?0:!sM||72E5<(0,g.Q)()-sM)&&(YA("bg_i",void 0,"player_att"),g.rM.initialize(a,Ota,b,c))};
Qta=function(a){a=void 0===a?{}:a;return g.rM.invoke(a)};
Rta=function(a){var b=ws("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Nta(a,b)};
Tta=function(a,b,c,d){var e=window.location.search;if(38===b.Ka&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.pi("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.xX});if(30===b.Ka&&"docs"===a.playerStyle)return g.pi("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.mI,authkey:b.authKey,eurl:a.Sc});if(33===b.Ka&&"google-live"===a.playerStyle)return g.pi("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Aa&&g.Ty(Error("getVideoInfoUrl for invalid namespace: "+a.Aa));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Sc,ps:a.playerStyle,el:TG(b),hl:a.xe,list:b.playlistId,agcid:b.WJ,aqi:b.adQueryId,sts:18900,lact:Vu()};Object.assign(f,a.deviceParams);a.eb&&(f.forced_experiments=a.eb);b.La?(f.vvt=b.La,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.mf()&&(f.access_token=b.mf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.xu&&(f.ad_id=b.xu);null!==b.Au&&(f.ad_sys=b.Au);null!==b.OC&&(f.encoded_ad_playback_context=b.OC);b.GB&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.Ua&&2!==a.Ua&&(f.cc_load_policy=a.Ua);var h=g.Fv(g.Dv.getInstance(),65);g.AF(a)&&null!=h&&!h&&(f.device_captions_on="1");a.mute&&(f.mute=a.mute);b.annotationsLoadPolicy&&2!==a.annotationsLoadPolicy&&(f.iv_load_policy=b.annotationsLoadPolicy);b.Up&&(f.endscreen_ad_tracking=
b.Up);(h=a.Z.get(b.videoId))&&h.wx&&(f.ic_track=h.wx);b.Ya&&(f.itct=b.Ya);WG(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Hk&&(f.autonav="1");b.BE&&(f.noiba="1");a.N("send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.Ff&&(f.ytr=b.Ff)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.Ff);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Fl&&(f.ytrcc=b.Fl);b.BF&&(f.utpsa="1");b.isFling&&(f.is_fling="1");b.isInlinePlaybackNoAd&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);
b.Tg&&(h=3===b.Tg.split("|").length,f.force_ad_params=h?b.Tg:"||"+b.Tg);b.rd&&(f.preload=b.rd);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.gf&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");UG(b)&&(f.content_v=UG(b));b.kb&&(f.livemonitor=1);a.Y&&(f.authuser=a.Y);a.pageId&&(f.pageid=a.pageId);a.Da&&(f.ei=a.Da);a.u&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.B&&b.TG&&(f.live_start_walltime=b.TG);a.B&&b.Wg&&(f.live_manifest_duration=b.Wg);a.B&&b.playerParams&&
(f.player_params=b.playerParams);a.B&&b.cycToken&&(f.cyc=b.cycToken);a.B&&b.fC&&(f.tkn=b.fC);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.zb&&(f.kpt=b.zb);b.Sj&&(f.kids_age_up_mode=b.Sj);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.Mo&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.ma?(c=null!=b.ma.latitudeE7&&null!=b.ma.longitudeE7?b.ma.latitudeE7+","+b.ma.longitudeE7:",",c+=","+(b.ma.clientPermissionState||0)+","+
(b.ma.locationRadiusMeters||"")+","+(b.ma.locationOverrideToken||"")):c=null;c&&(f.uloc=c);b.Yi&&(f.internalipoverride=b.Yi);a.embedConfig&&(f.embed_config=a.embedConfig);a.Vi&&(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.So&&b.Uo&&(f.clip=b.So,f.clipt=b.Uo);b.yp&&(f.disable_watch_next="1");b.Ug&&(f.forced_by_var="1");for(var l in f)!Sta.has(l)&&f[l]&&512<String(f[l]).length&&(g.Bz(Error("GVI param too long: "+l)),f[l]="");b=a.Ka;g.fF(a)&&(b=iA(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.Ka);a=g.pi(b+"get_video_info",f);e&&(a=vt(a,e));return a};
g.tM=function(a,b){return a.Ka+"timedtext_video?ref=player&v="+b.videoId};
g.uM=function(a){var b={};b.feature=a;return b};
Uta=function(a){var b={};a.DB&&(b.ytrext=a.DB);return g.ic(b)?void 0:b};
g.Vta=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){if(g.rM.Yd()){var c="";b.videoData&&b.videoData.Aa&&(c=b.videoData.Aa+("&r1b="+b.videoData.clientPlaybackNonce));var d={};c=(d.atr_challenge=c,d);YA("bg_v",void 0,"player_att");c=Qta(c);YA("bg_s",void 0,"player_att");c=c?"r1a="+c:"r1c=2"}else YA("bg_e",void 0,"player_att"),c=window.trayride||window.botguard?"r1c=1":"r1c=4";return c},a.c3a=function(c){return"r3a="+Math.floor(b.videoData.lengthSeconds%Number(c.c3a)).toString()},
a.c6a=function(c){return"r6a="+(Number(c.c)^Gta())},a);
this.videoData&&this.videoData.Aa?this.i=g.Fs(this.videoData.Aa):this.i={}};
g.Wta=function(a){if(a.videoData&&a.videoData.Aa){for(var b=[a.videoData.Aa],c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.i[d]&&a.u[d]&&(d=a.u[d](a.i))&&b.push(d);return b.join("&")}return null};
Yta=function(a){var b={};Object.assign(b,a.u);"c1b"in a.i&&(b.c1a=function(){return Xta(a)});
if(a.videoData&&a.videoData.Aa){for(var c=[a.videoData.Aa],d=g.r(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,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
Xta=function(a){if(!g.rM.Yd())return YA("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve("r1c=1"):Promise.resolve("r1c=4");var b="";a.videoData&&a.videoData.Aa&&(b=a.videoData.Aa+("&r1b="+a.videoData.clientPlaybackNonce));a={};var c=(a.atr_challenge=b,a);return new Promise(function(d){YA("bg_v",void 0,"player_att");Rta(c).then(function(e){e?(YA("bg_s",void 0,"player_att"),d("r1a="+e)):(YA("bg_e",void 0,"player_att"),d("r1c=2"))},function(){YA("bg_e",void 0,"player_att");
d("r1c=3")})})};
Zta=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 vM(a)};
vM=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};
$ta=function(a,b,c,d){if(g.Ma(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
yM=function(a,b){g.I.call(this);var c=this;this.app=a;this.playerType=b;this.i=!0;this.element=null;this.D={};this.K={};this.u={};this.S=[];this.J={};this.C={};this.B=null;this.Z=new Set;wM(this,"cueVideoById",this.cueVideoById);wM(this,"loadVideoById",this.loadVideoById);wM(this,"cueVideoByUrl",this.cueVideoByUrl);wM(this,"loadVideoByUrl",this.loadVideoByUrl);wM(this,"playVideo",this.playVideo);wM(this,"pauseVideo",this.pauseVideo);wM(this,"stopVideo",this.stopVideo);wM(this,"clearVideo",this.clearVideo);
wM(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);wM(this,"getVideoBytesTotal",this.getVideoBytesTotal);wM(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);wM(this,"getVideoStartBytes",this.getVideoStartBytes);wM(this,"cuePlaylist",this.cuePlaylist);wM(this,"loadPlaylist",this.loadPlaylist);wM(this,"nextVideo",this.nextVideo);wM(this,"previousVideo",this.previousVideo);wM(this,"playVideoAt",this.playVideoAt);wM(this,"setShuffle",this.setShuffle);wM(this,"setLoop",this.setLoop);wM(this,
"getPlaylist",this.MR);wM(this,"getPlaylistIndex",this.getPlaylistIndex);wM(this,"getPlaylistId",this.getPlaylistId);wM(this,"loadModule",this.loadModule);wM(this,"unloadModule",this.unloadModule);wM(this,"setOption",this.setOption);wM(this,"getOption",this.getOption);wM(this,"getOptions",this.getOptions);wM(this,"mute",this.mute);wM(this,"unMute",this.unMute);wM(this,"isMuted",this.isMuted);wM(this,"setVolume",this.setVolume);wM(this,"getVolume",this.getVolume);wM(this,"seekTo",this.seekTo);wM(this,
"getPlayerMode",this.getPlayerMode);wM(this,"getPlayerState",this.getPlayerState);wM(this,"getPlaybackRate",this.getPlaybackRate);wM(this,"setPlaybackRate",this.setPlaybackRate);wM(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);wM(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
wM(this,"setPlaybackQuality",this.setPlaybackQuality);wM(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);wM(this,"getCurrentTime",this.getCurrentTime);wM(this,"getDuration",this.getDuration);wM(this,"addEventListener",this.SQ);wM(this,"removeEventListener",this.EW);wM(this,"getDebugText",this.getDebugText);wM(this,"getVideoData",function(){return c.gz()});
wM(this,"addCueRange",this.addCueRange);wM(this,"removeCueRange",this.removeCueRange);wM(this,"setSize",this.setSize);wM(this,"getApiInterface",this.getApiInterface);wM(this,"destroy",this.destroy);wM(this,"showVideoInfo",this.showVideoInfo);wM(this,"hideVideoInfo",this.hideVideoInfo);wM(this,"isVideoInfoVisible",this.isVideoInfoVisible);wM(this,"getSphericalProperties",this.getSphericalProperties);wM(this,"setSphericalProperties",this.setSphericalProperties);a=this.app.V();a.J||(wM(this,"getVideoEmbedCode",
this.getVideoEmbedCode),wM(this,"getVideoUrl",this.getVideoUrl));wM(this,"getMediaReferenceTime",this.getMediaReferenceTime);a.J||wM(this,"logImaAdEvent",this.logImaAdEvent);xM(this,"getInternalApiInterface",this.getInternalApiInterface);xM(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);xM(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);xM(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);xM(this,"getAdState",this.getAdState);xM(this,"sendAbandonmentPing",this.sendAbandonmentPing);
xM(this,"setLoopRange",this.setLoopRange);xM(this,"getLoopRange",this.getLoopRange);xM(this,"setAutonavState",this.setAutonavState);xM(this,"seekToLiveHead",this.seekToLiveHead);xM(this,"seekToStreamTime",this.seekToStreamTime);xM(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);xM(this,"startSeekCsiAction",this.startSeekCsiAction);xM(this,"getStreamTimeOffset",this.getStreamTimeOffset);xM(this,"getVideoData",this.gz);xM(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);xM(this,
"downloadVideo",this.downloadVideo);xM(this,"refreshAllVideos",this.refreshAllVideos);xM(this,"deleteVideos",this.deleteVideos);xM(this,"deleteAllVideos",this.deleteAllVideos);xM(this,"isOrchestrationLeader",this.isOrchestrationLeader);xM(this,"getAppState",this.getAppState);xM(this,"addInfoCardXml",this.addInfoCardXml);xM(this,"updateLastActiveTime",this.updateLastActiveTime);xM(this,"setBlackout",this.setBlackout);xM(this,"setAccountLinkState",this.setAccountLinkState);xM(this,"updateAccountLinkingConfig",
this.updateAccountLinkingConfig);xM(this,"setUserEngagement",this.setUserEngagement);xM(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);xM(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);xM(this,"getPresentingPlayerType",this.getPresentingPlayerType);xM(this,"canPlayType",this.canPlayType);xM(this,"updatePlaylist",this.updatePlaylist);xM(this,"updateVideoData",this.updateVideoData);xM(this,"updateEnvironmentData",this.updateEnvironmentData);xM(this,"sendVideoStatsEngageEvent",
this.sendVideoStatsEngageEvent);xM(this,"setCardsVisible",this.setCardsVisible);xM(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);xM(this,"setSafetyMode",this.setSafetyMode);xM(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
xM(this,"getVideoAspectRatio",this.getVideoAspectRatio);xM(this,"getPreferredQuality",this.getPreferredQuality);xM(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);xM(this,"onAdUxClicked",this.onAdUxClicked);xM(this,"getFeedbackProductData",this.getFeedbackProductData);xM(this,"getStoryboardFrame",this.getStoryboardFrame);xM(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);xM(this,"getStoryboardLevel",this.getStoryboardLevel);xM(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
xM(this,"getCaptionWindowContainerId",this.getCaptionWindowContainerId);xM(this,"getAvailableQualityLabels",this.getAvailableQualityLabels);xM(this,"addUtcCueRange",this.addUtcCueRange);xM(this,"showAirplayPicker",this.showAirplayPicker);xM(this,"setAutonav",this.setAutonav);xM(this,"isNotServable",this.isNotServable);xM(this,"channelSubscribed",this.channelSubscribed);xM(this,"channelUnsubscribed",this.channelUnsubscribed);xM(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);xM(this,
"togglePictureInPicture",this.togglePictureInPicture);xM(this,"supportsGaplessAudio",this.supportsGaplessAudio);xM(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
xM(this,"clearQueue",this.clearQueue);xM(this,"isFastLoad",function(){return!1});
xM(this,"getPlayerResponse",this.getPlayerResponse);xM(this,"getAudioTrack",this.BR);xM(this,"setAudioTrack",this.setAudioTrack);xM(this,"getAvailableAudioTracks",this.CR);xM(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);xM(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);xM(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);xM(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);xM(this,"setMinimized",this.setMinimized);xM(this,"confirmYpcRental",
this.confirmYpcRental);xM(this,"setInlinePreview",this.setInlinePreview);xM(this,"toggleSubtitlesOn",this.toggleSubtitlesOn);xM(this,"handleExternalCall",this.handleExternalCall);xM(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);xM(this,"getStatsForNerds",this.getStatsForNerds);xM(this,"setScreenLayer",this.setScreenLayer);xM(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);xM(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);xM(this,"shouldSendVisibilityState",
this.shouldSendVisibilityState);xM(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);xM(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);xM(this,"setGlobalCrop",this.setGlobalCrop);xM(this,"getVisibilityState",this.getVisibilityState);xM(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);xM(this,"setInternalSize",this.setInternalSize)};
wM=function(a,b,c){a.D[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.oa();return c.apply(a,e)};
a.u.hasOwnProperty(b)||xM(a,b,c);a.S.push(b)};
zM=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.oa();return c.apply(a,e)};
a.u.hasOwnProperty(b)||xM(a,b,c);a.S.push(b)};
xM=function(a,b,c){a.u[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.oa();return c.apply(a,e)}};
jsa=function(a){a.B||(a.B={},Object.assign(a.B,a.D),Object.assign(a.B,a.K),a.B.addEventListener=function(b,c){aua(a,b,c)},a.B.removeEventListener=function(b,c){c="string"===typeof c?b+c:b+String(g.Oa(c));
var d=a.C[c];d&&(a.app.Kl.unsubscribe(b,d),b=a.C,c in b&&delete b[c])});
return a.B};
aua=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Oa(c));if(!a.C[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Ga(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.B,data:h})};
a.C[d]=f;a.app.Kl.subscribe(b,f)}};
bua=function(a,b,c){b=g.Qf(Math.floor(b),0,100);isFinite(b)&&AM(a.app,{volume:b,muted:a.isMuted()},c)};
cua=function(a,b){AM(a.app,{muted:!0,volume:a.getVolume()},b)};
dua=function(a,b){AM(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.CM=function(a){var b=BM(a.app.ub());if(b)return b.zv();a=a.app.ub();a=g.iF(a.I.V())?a.Cd.get("music"):void 0;return a?a.zv():null};
EM=function(a,b){yM.call(this,a,b);var c=this;this.i=!1;zM(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(DM(c,d),e)});
zM(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(DM(c,d),e,f,h)});
zM(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(DM(c,d),e,f,h)});
zM(this,"seekBy",this.seekBy);zM(this,"mutedAutoplay",this.mutedAutoplay);zM(this,"showControls",this.showControls);zM(this,"hideControls",this.hideControls);zM(this,"cancelPlayback",this.cancelPlayback);zM(this,"getProgressState",this.getProgressState);zM(this,"isInline",this.isInline);zM(this,"setInline",this.setInline);zM(this,"setLoopVideo",this.setLoopVideo);zM(this,"getLoopVideo",this.getLoopVideo);zM(this,"getStoryboardFormat",this.getStoryboardFormat);zM(this,"getVideoContentRect",this.getVideoContentRect);
zM(this,"toggleFullscreen",this.toggleFullscreen);zM(this,"isFullscreen",this.isFullscreen);zM(this,"getVideoStats",this.getVideoStats);zM(this,"getPlayerSize",this.getPlayerSize);zM(this,"toggleSubtitles",this.toggleSubtitles);zM(this,"setCenterCrop",this.setCenterCrop);zM(this,"setFauxFullscreen",this.setFauxFullscreen);zM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);zM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);zM(this,"setSizeStyle",this.setSizeStyle);zM(this,"wakeUpControls",this.wakeUpControls)};
DM=function(a,b){var c={};if(a.app.V().S){a=g.r(eua);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d])}else for(a=g.r(fua),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
gua=function(a,b,c){var d=a.app.getIngestionTime(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
g.FM=function(a){EM.call(this,a);this.settingsMenu=null};
GM=function(a){a=a.ub();var b=a.Cd.get("endscreen");return b&&b.Bq()?!0:a.ex()||g.iF(a.I.V())};
g.HM=function(a,b){3===a.getPresentingPlayerType()?a.ea("mdxautoplaycancel"):a.ea("autonavcancel",b)};
g.JM=function(a){var b=IM(a.ub());return a.app.pg&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Ck()||!!a.getPlaylist()};
g.LM=function(a){return(a=g.KM(a.ub()))?a.cz():{}};
g.hua=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.iua=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.eb)};
g.MM=function(a,b,c){a=a.bb().element;var d=Kb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Cg(a,b,d);b.setAttribute("data-layer",String(c))};
g.NM=function(a){var b=a.V();if(!b.Zb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!qH(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("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.D&&f;return!c.ypcPreview&&
(!d||e)&&!g.ub(c.ya,"ypc")&&!a&&(!g.YE(b)||f)};
jua=function(a){a=g.OM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.i||b.FO)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ba("iqss",d,!0),!0):!1};
PM=function(a){this.X=a;this.u=this.i=NaN;this.B=g.sE(this.X.experiments,"h5_csi_seek_latency_action_sampling")||1};
QM=function(a,b){this.X=a;this.timerName="";this.u=!1;this.B=new PM(a);this.i=b||null;this.u=!1};
kua=function(a,b,c){var d=g.dF(b.B)&&!b.B.J;if(b.B.Wg&&($E(b.B)||EF(b.B)||d)&&!a.u){a.u=!0;g.P("TIMING_ACTION")||rs("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&rs("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.i){b=a.i.Ap();d=g.r(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,VA(e,b[e],a.timerName);b=a.i.Uu;d=g.r(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.UA(e,b[e],a.timerName);b=a.i;b.i={};b.Uu={}}g.UA("yt_pvis",Zja(),a.timerName);g.UA("yt_pt","html5",a.timerName);
c&&!XA("pbs",a.timerName)&&a.tick("pbs",c);c=a.X;EF(c)||$E(c)||a.timerName||!XA("_start")||ZA()}};
RM=function(a,b){g.R.call(this);this.u=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.Z={};this.B=0;if(a=b.session_data)this.sessionData=Ds(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 NF("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.OF(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.r(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=PF(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
SM=function(a){return!!(a.playlist||a.list||a.api)};
lua=function(a){var b=a.index+1;return b>=a.length?0:b};
mua=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.TM=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 pG(a.u,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
UM=function(a,b){a.index=g.Qf(b,0,a.length-1);a.startSeconds=0};
VM=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.TM(a);a.items=[];for(var d=g.r(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;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.B++;a.i&&a.i()}};
g.WM=function(a){var b=a.V(),c=nua(b),d=a.Ya;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=TG(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.kb?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.Sj)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:oua[e]}});a.Mo&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.rd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=pua[b];c.request=d;d=c.user||{};if(b=a.La)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.zb)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};
nua=function(a){var b=nK(),c=b.client||{};if(a.eb){var d=a.eb.split(","),e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.deviceParams.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign(Object.assign({},c.tvAppInfo),{livingRoomAppMode:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c.enableSafetyMode=!0);b.user=c;if(a=a.Sc)b.thirdParty={embedUrl:a};
return b};
uua=function(a,b,c){var d=a.videoId,e=g.WM(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Vu()),referer:document.location.toString(),signatureTimestamp:18900};g.Dv.getInstance();a.Hk&&(h.autonav=!0);g.Fv(0,141)&&(h.autonavState=g.Fv(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Fv(0,66);WG(a)&&(h.autoplay=!0);f.B&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.Tg;if(l){var m={},n=[];l=l.split(",");
l=g.r(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.r(q);for(var t=q.next();!t.done;t=q.next()){var u=g.r(t.value.split("="));t=u.next().value;u=ka(u);p[t]=u.join("=")}q=p.url;t=p.presetad;u=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),u&&(m.viralAdResponseUrl=u),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=qua[p.breaktype])y.breakType=p;q&&(y.url=q);t&&(y.presetAd=t);u&&(y.viralAdResponseUrl=u);x&&(y.viralCampaignId=String(x));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.TG;if(null!=m){m={startWalltime:String(m)};if(n=a.Wg)m.manifestDuration=String(n||14400);h.liveContext=
m}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.gf&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if((n=a.isMdxPlayback)||f.N("send_mdx_remote_data_if_present"))m.triggeredByMdx=n;if(n=a.Fl)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Ff){n=a.DB;l=[];p=g.r(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:rua[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:sua[t[0]]||
"UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:tua[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(A){g.Bz(A)}u&&(t={params:[{key:"ms",value:u.ms}]},q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}});
h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.YE(f)&&!f.N("embeds_enable_sending_ancestor_origins_killswitch")&&h&&(h.ancestorOrigins=f.ancestorOrigins);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=
e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Fv(g.Dv.getInstance(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.AF(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.QM&&(d.captionParams.deviceCaptionsLangPref=a.QM);a.jC.length?d.captionParams.viewerSelectedCaptionLangs=a.jC:g.wF(e)&&e.N("web_player_i_see_captions_2")&&(e=g.uma(),null===e||void 0===e?0:e.length)&&(d.captionParams.viewerSelectedCaptionLangs=
e);e="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(e||f)a=a.V(),a.Ug&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Ug),oF(a);return d};
xua=function(a,b){return g.H(this,function d(){var e,f,h,l,m;return g.B(d,function(n){if(1==n.i){e=g.mM();var p=a.V(),q={context:g.WM(a)};p=p.embedConfig;var t,u,x,y,A,F;var G=b.docid||b.video_id||b.videoId||b.id;if(!G){G=b.raw_embedded_player_response;if(!G&&!g.vs("parse_video_id_from_serialized_embedded_player_response_killswitch")){var E=b.embedded_player_response;E&&(G=JSON.parse(E))}G=G?(null===(F=null===(A=null===(y=null===(x=null===(u=null===(t=null===G||void 0===G?void 0:G.embedPreview)||
void 0===t?void 0:t.thumbnailPreviewRenderer)||void 0===u?void 0:u.playButton)||void 0===x?void 0:x.buttonRenderer)||void 0===y?void 0:y.navigationEndpoint)||void 0===A?void 0:A.watchEndpoint)||void 0===F?void 0:F.videoId)||null:null}t=(t=G)?t:void 0;u=a.playlistId?a.playlistId:b.list;x=b.listType;if(u){var K;"user_uploads"===x?K={username:u}:K={playlistId:u};vua(p,t,b,K);q.playlistRequest=K}else b.playlist?(K={templistVideoIds:b.playlist.toString().split(",")},vua(p,t,b,K),q.playlistRequest=K):t&&
(K={videoId:t},p&&(K.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=K);f=q;h=g.XL(wua);return g.z(n,g.tK(e,f,h),2)}l=n.u;m=a.V();b.raw_embedded_player_response=l;return n.return(new pG(m,b))})})};
vua=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.YM=function(a,b){XM.get(a);XM.set(a,b)};
g.ZM=function(a){g.R.call(this);this.loaded=!1;this.player=a};
yua=function(){this.u=[];this.i=[]};
g.$M=function(a,b){return b?a.i.concat(a.u):a.i};
g.aN=function(a,b){switch(b.kind){case "asr":zua(b,a.u);break;default:zua(b,a.i)}};
zua=function(a,b){g.rb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.bN=function(a){g.I.call(this);this.X=a;this.u=new yua;this.C=[]};
g.cN=function(a,b,c){g.bN.call(this,a);this.audioTrack=c;this.i=null;this.C=b.qC};
Aua=function(){this.i=this.dg=this.u=!1};
Bua=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Dk?!1:c.Dk;var d=new Aua;d.u=a.N("html5_streaming_xhr_no_mp4_holdback_chunk");d.dg=b||c;d.i=a.N("html5_simplify_streaming_xhr");return d};
g.Cua=function(a){this.i=a;this.D=new Aua;this.ul=this.rl=!1;this.ek=2;this.K=20971520;this.Z=8388608;this.J=120;this.jb=3145728;this.Da=62914560;this.qb=10485760;this.gk=g.sE(this.i.experiments,"html5_min_readbehind_secs");this.vu=g.sE(this.i.experiments,"html5_min_readbehind_cap_secs");this.uu=g.sE(this.i.experiments,"html5_max_readbehind_secs");this.Au=this.i.N("html5_trim_future_discontiguous_ranges");this.tu=this.i.N("has_transaction_queue_limit_exceeded_killswitch");this.Nb=NaN;this.Rh=0;this.Pi=
this.No=2;this.Ug=3;this.tp=2;this.Ja=2097152;this.Uo=1048576;this.Ya=!1;this.bd=1800;this.bk=5;this.ya=15;this.yh=1;this.B=1.15;this.C=1.05;this.ol=!0;this.La=!1;this.yp=.8;this.Sj=this.Fb=!1;this.xb=6;this.Aa=this.eb=!1;this.ac=0;this.dh=this.i.N("html5_stop_overlapping_requests");this.jl=0;this.Uq=this.i.N("html5_append_init_while_paused");this.fk=g.sE(this.i.experiments,"html5_max_readahead_bandwidth_cap");this.vl=g.sE(this.i.experiments,"html5_post_interrupt_readahead");this.zb=5E3;this.Mo=100;
this.Zi=6;this.gf=1;this.Zg=1.6;this.Za=!1;this.Y=.5;this.uc=2;this.kc=this.Mq=0;this.Nq=1.5;this.Lo=this.Kh=.5;this.Md=15;this.Zj=1;this.Vp=this.Kg=!1;this.dk=0;this.Il=this.Kq=this.So=this.Uj=this.xl=this.ql=!1;this.Eb=2;this.Xp=this.Hq=this.Oj=!1;this.Fe=0;this.Nf=this.Oo=this.Tg=this.ma=this.Lq=this.Of=this.mq=!1;this.Lh=this.i.N("html5_unrewrite_timestamps");this.Ua=!0;this.Sc=this.Zb=this.wl=this.Sa=!1;this.Qj=!0;this.Wg=!1;this.u="";this.ou=1048576;this.Fc=[];this.pu=this.i.N("html5_woffle_resume");
this.Tj=this.Fi=this.cd=this.Wi=!1;this.Xe=46800;this.rd=this.kb=!1;this.Vq=this.i.N("html5_audio_only_eos_fix_killswitch");this.Up=this.Vi=this.Ti=this.yl=!1;this.xu=this.i.N("html5_reject_promise_if_seeking_to_head_killswitch");this.Pj=!1;this.S=0;this.Xi="";this.Xq=this.i.N("html5_max_drift_per_track_secs")||this.i.N("html5_rewrite_manifestless_for_sync")||this.i.N("html5_check_segnum_discontinuity");this.qr=this.i.N("html5_disable_codec_for_playback_on_error");this.Hi=this.Tq=this.Rj=this.Og=
!1;this.xe=0;this.yu=Yt();this.ll=this.uq=this.Vj=!1;this.Wq=this.i.N("html5_skip_buffer_check_seek_to_head");this.Gq=this.wc=!1;this.lr=!this.i.N("html5_mfl_config_fallback_killswitch");this.Ni=this.Yi=!1;this.ai=8192;this.Ka=this.Mb=!1;this.Lp=1;this.Eu=this.i.N("html5_update_readahead_from_real_byterates");this.Bu=this.i.N("html5_onesie_live");this.wu=this.i.N("html5_onesie_probe_during_read");this.qd=this.i.N("html5_delay_external_polls")};
Dua=function(a,b){1080<b.video.i&&!a.rl&&(a.K=36700160,a.Z=5242880,a.jb=10485760,a.Ja=4194304,a.rl=!0);2160<b.video.i&&!a.ul&&(a.K=104857600,a.Nb=13107200,a.ul=!0);b.pj()&&g.St()&&Pt("kant")&&(a.Nb=1310720);b.Nb&&(a.Uo=Math.max(65536,Math.min(a.Ja,5*b.Nb)))};
g.dN=function(a,b){return uD(a.info.mimeType)?b?a.info.lc()===b:!0:!1};
g.Eua=function(a,b){if(null!=a.i&&g.yF(b.V())&&!a.i.isManifestless&&null!=a.i.i.rawcc)return!0;if(!a.tf())return!1;b=!!a.i&&a.i.isManifestless&&Object.values(a.i.i).some(function(c){return g.dN(c,"386")});
a=!!a.i&&!a.i.isManifestless&&Nla(a.i);return b||a};
g.eN=function(a,b,c,d,e){g.bN.call(this,a);this.videoId=c;this.LK=e;this.D={};this.i=null;a=d||g.Hs(b).hl||"";a=a.split("_").join("-");this.B=Js(b,{hl:a})};
fN=function(a,b){g.I.call(this);this.I=a;this.D=b;this.Uu={};this.i={};this.u=null;this.C=new Set;this.Cd=new Map;this.B=a.V().N("web_player_defer_modules")};
g.gN=function(a){return a.Cd.get("captions")};
Hua=function(a,b){switch(b){case "ad":return hN(a);case "annotations_module":return b=a.I.V(),a=a.I.getVideoData(),a.YG||"3"===b.controlsType?!1:b.Z.isEmpty()&&"annotation-editor"!==b.playerStyle&&"live-dashboard"!==b.playerStyle?!!a.Sa||!!g.RG(a)||!!g.SG(a):!0;case "attribution":return a=a.I.V(),a.N("web_player_show_music_in_this_video")&&"desktop-polymer"===a.playerStyle;case "creatorendscreen":return b=a.I.V(),"3"===b.controlsType?a=!1:"creator-endscreen-editor"===b.playerStyle?a=!0:(a=a.I.getVideoData(),
a=!!a&&(!!g.epa(a)||!!g.fpa(a))),a;case "embed":return g.YE(a.I.V());case "endscreen":return g.Fua(a);case "heartbeat":return a.cG();case "inline_preview":return a.I.V().showInlinePreviewUi;case "kids":return nF(a.I.V());case "remote":return a.I.V().Nf;case "miniplayer":return a.I.V().showMiniplayerUiWhenMinimized;case "music":return g.iF(a.I.V());case "captions":return b=a.I.getVideoData(),!!b.Zb||!!b.captionTracks.length||g.Eua(b,a.I);case "unplugged":return g.fF(a.I.V());case "ux":return a.I.V().zb;
case "webgl":return Gua(a);case "ypc":return a.ex();case "ypc_clickwrap":return a=a.I.getVideoData(),a.Ni&&!a.NE;case "yto":return!!a.I.getVideoData().ya.includes("yto");default:return g.Ty(Error("Module descriptor "+b+" does not match")),!1}};
iN=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Cd.get(b);if(!h||d)if(e||(e=function(){iN(a,b,c,d)}),f||(f=function(){a.I.Ld(b)}),h=h||Iua(a,b,Hua(a,b),e,f))a.Cd.set(b,h),h.create(),c&&a.I.Oa("onApiChange")};
Jua=function(a){a.B&&(iN(a,"endscreen"),a.bD(),iN(a,"creatorendscreen",!0))};
g.Fua=function(a){var b=a.I.V();if(EF(b)||b.J||!b.Eb&&!b.cd)return!1;var c=a.I.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.I.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
g.KM=function(a){return a.Cd.get("webgl")};
Gua=function(a){var b=a.I.getVideoData();a=a.I.V();var c=g.Wt(),d=a.N("enable_spherical_kabuki"),e=g.DF(a);if(g.QG(b))return c||d||e||a.N("html5_enable_spherical");if(g.NG(b))return e||c||d||a.N("html5_enable_spherical");if(g.OG(b))return e||c||a.N("html5_enable_spherical3d");if(g.PG(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.GG(b)&&!c&&(a.N("enable_webgl_noop")||a.N("html5_enable_bicubicsharp"))};
Kua=function(a){a.I.V().N("web_player_ux_module_wait")&&a.Cd.get("ux")&&a.I.Ld("ux")};
Lua=function(a){Kua(a);iN(a,"ux",!0)};
hN=function(a){if(a=a.I.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
Iua=function(a,b,c,d,e){try{if(c){var f=XM.get(b);if(f)return new f(a.I);Mua(a,b,d,e)}else a.I.Ld(b)}catch(h){a.I.Ld(b),g.Ty(h)}return null};
jN=function(a,b,c){for(var d=g.r(a.Cd),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Ji(b))&&(g.oe(f),a.Cd.delete(e))}};
kN=function(a){return a.Cd.get("ad")};
lN=function(a){if(nF(a.I.V()))return a.Cd.get("kids")};
IM=function(a){if(a.I.V().Nf)return a.Cd.get("remote")};
mN=function(a){if(g.fF(a.I.V()))return a.Cd.get("unplugged")};
BM=function(a){if(a.I.V().zb)return a.Cd.get("ux")};
g.nN=function(a){return a.Cd.get("annotations_module")};
oN=function(a){return a.Cd.get("creatorendscreen")};
Oua=function(a){var b=a.D.split("/").slice(0,4).join("/")+"/wasm/lib.js";return new Promise(function(c,d){Nua(a,b,function(){return g.H(a,function f(){var h,l;return g.B(f,function(m){if(1==m.i)return h=g.C.loadWasm,"function"!==typeof h?(d("noloadwasm"),m.fb(0)):g.z(m,h(),3);l=m.u;c(l);g.sa(m)})})},function(){d("player wasm load failure")})})};
Mua=function(a,b,c,d){if(a.D){var e=Pua[b];Nua(a,a.D+e,function(){a.C.add(e);c.call(a)},d)}};
Nua=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.lg("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.zg("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){Mg(f);q&&q.apply(window,[y])};
var t=m.onerror;m.onerror=function(y){if(.01>Math.random()){var A=new g.$v("Unable to load player module",b,document.location&&document.location.origin);g.Ty(A)}Mg(e);t&&t(y)};
var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Mg(f)}x&&x(y)};
l&&((h=a.I.V().cspNonce)&&m.setAttribute("nonce",h),g.Nk(m,g.cr(b)),h=g.lg("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.qe(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
pN=function(a,b,c){g.re.call(this,b,a);this.i=c};
g.qN=function(a){QJ.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new pN(b,c.type,c))}};
sN=function(a,b,c,d,e){g.R.call(this);var f=this;this.target=a;this.iy=b;this.u=0;this.J=!1;this.C=new g.Uf(NaN,NaN);this.i=new g.wD(this);this.Aa=this.B=this.K=null;g.J(this,this.i);b=d||e?4E3:3E3;this.Z=new g.M(function(){rN(f,1,!1)},b,this);
g.J(this,this.Z);this.Y=new g.M(function(){rN(f,2,!1)},b,this);
g.J(this,this.Y);this.ma=new g.M(function(){rN(f,512,!1)},b,this);
g.J(this,this.ma);this.ya=c&&0<c.bd.length?5E3:3E3;d||(this.B=this.i.T(a,"mouseover",this.Tz),this.i.T(a,"mousemove",this.ZS),this.i.T(a,"mouseleave",this.aT));Ll?this.i.T(a,"keypress",this.GS):this.i.T(a,"focusin",this.ER);this.D=this.i.T(a,"mousedown",this.IL);this.S=this.i.T(a,"touchstart",this.eO,void 0,!0);rN(this,640,!0)};
Qua=function(a){rN(a,4,!1);a.K&&(a.i.jc(a.K),a.K=null,a.B=a.i.T(a.target,"mouseover",a.Tz));a.B&&(a.i.jc(a.B),a.B=a.i.T(a.target,"mouseover",a.Tz))};
rN=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.Z.start(),b&2&&a.Y.start()):(a.u&=~b,b&1&&a.Z.stop(),b&2&&a.Y.stop(),b&512&&a.ma.stop());a.u&512&&!(a.u&128)&&g.Dq(a.ma,a.ya);b=!a.u;d!==b&&a.ea("autohideupdate",b)};
g.tN=function(a){g.U.call(this,{G:"button",Ga:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play"},U:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Pa);this.Pa()};
uN=function(a){var b=["ytp-cued-thumbnail-overlay"];a.V().J&&b.push("ytp-exp-contain-thumbnail");g.U.call(this,{G:"div",Ga:b,U:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");var c=new g.tN(a);g.J(this,c);c.Ea(b);this.B=new g.wD(this);g.J(this,this.B);this.api=a;this.D=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.u=new g.zL(this,250);g.J(this,this.u);this.i=new g.M(this.Pa,0,this);g.J(this,this.i);this.Pa();this.T(a,"appresize",this.wb);this.T(a,
"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.pW);$E(a.V())&&this.T(a,"videoplayerreset",this.hP)};
Rua=function(a){var b=!a.V().Kg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.vN=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.NL(a))return g.Cu(a),!0;b.pauseVideo();a=e.getAttribute("href");g.AJ(a,d,!0);return!1};
g.wN=function(a,b,c){if(uF(b.V())&&2!==b.getPresentingPlayerType()){if(g.NL(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.Cu(c),!0}else if(b.V().N("embeds_enable_webview_nonjs_navigation")&&g.YE(b.V())&&(cu()||au()))b=c.target,b instanceof HTMLAnchorElement&&(a=Hl(a),b.href=Lk(a));else{var d=g.NL(c);d&&b.pauseVideo();g.AJ(a,void 0,!0);d&&(g.BJ(a),g.Cu(c))}return!1};
Sua=function(){return{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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"}}]}};
xN=function(){return{G:"div",L:"ytp-spinner-container",U:[{G:"div",L:"ytp-spinner-rotator",U:[{G:"div",L:"ytp-spinner-left",U:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",U:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
yN=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
zN=function(a,b,c){a=a.V();return a.N("desktop_player_button_tooltip_with_shortcut")&&!a.gf?g.qI("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.AN=function(a){g.U.call(this,{G:"div",Ga:["ytp-error"],W:{role:"alert"},U:[{G:"div",L:"ytp-error-content",U:[{G:"div",L:"ytp-error-icon-container",U:[{G:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},U:[{G:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",W:{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"}}]}]},{G:"div",L:"ytp-error-content-wrap",
U:[{G:"div",L:"ytp-error-content-wrap-reason",va:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",va:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.BN=function(a){a=a.split(Tua);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({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",W:{href:a[c],target:a[c+1]},va:a[c+2]})}return{G:"span",U:b}};
DN=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.V().u);a=a.api.getVideoData();b=g.qI(g.CN[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",va:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",W:{href:c,target:e?"_blank":null},va:b[2]});d.push(b[4]);return{G:"span",U:d}};
Uua=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
Vua=function(a){for(var b=0;b<a.keys.length;b++)a.jc(a.keys[b]);a.keys=[]};
EN=function(a){g.wD.call(this);this.I=a;this.i=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Nh);this.onVideoDataChange()};
FN=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.i.add(b)};
Wua=function(a){FN(a,"play",function(){a.I.playVideo()});
FN(a,"pause",function(){a.I.pauseVideo()});
FN(a,"seekbackward",function(){a.I.seekBy(-5*a.I.getPlaybackRate())});
FN(a,"seekforward",function(){a.I.seekBy(5*a.I.getPlaybackRate())})};
Xua=function(a){var b,c;a=a.I.getVideoData();a=a.watchNextResponse&&a.watchNextResponse.playerOverlays||null;return null===(c=null===(b=null===a||void 0===a?void 0:a.playerOverlayRenderer)||void 0===b?void 0:b.browserMediaSession)||void 0===c?void 0:c.browserMediaSessionRenderer};
Yua=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.kA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
Zua=function(a){var b=a.I.vb();b=b.isCued()||b.isError()?"none":g.$J(b)?"playing":"paused";a.mediaSession.playbackState=b};
GN=function(a){g.U.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.C=!1;this.ud=this.i=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.zF(b)?(this.u=new g.U({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",va:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",va:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",va:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.U({G:"div",Ga:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.B=new g.zL(this.u,250,!1,100);g.J(this,this.u);this.u.Ea(this.element);g.J(this,this.B);this.I.Rg(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Lc)};
$ua=function(a,b){var c=bpa(b),d=HG(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Fq(a.i),a.videoId=b.videoId,a.C=!!d);else if(c&&d){var e,f,h,l;a.i=new g.M(a.Db,d,a);g.J(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0===
l?void 0:l.url;a.I.xm(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.WK():null})}};
ava=function(a,b){a.i&&(g.T(b,8)&&a.C?(a.C=!1,a.fd(),a.i.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))};
HN=function(a){g.U.call(this,{G:"div",L:"ytp-spinner",U:[xN(),{G:"div",L:"ytp-spinner-message",va:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.i=new g.M(this.show,500,this);g.J(this,this.i);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.vb();bva(a)?this.i.start():this.hide()};
bva=function(a){return g.T(a,128)?!1:g.T(a,16)||g.T(a,1)?!0:!1};
g.IN=function(a,b,c,d){d=void 0===d?!1:d;g.RK.call(this,b);var e=this;this.I=a;this.Da=d;this.K=new g.wD(this);this.Y=new g.zL(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())});
g.J(this,this.K);g.J(this,this.Y)};
cva=function(a){a.u&&(document.activeElement&&g.Fg(a.element,document.activeElement)&&(Ig(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.my(a.K);a.S=void 0};
JN=function(a,b,c){a.Uf()?a.Db():a.fd(b,c)};
KN=function(a){var b=g.kE(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ga:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]}]},
{G:"div",Ga:["ytp-unmute-text"],va:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ga:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.IN.call(this,a,{G:"button",Ga:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Wb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
this.Nh);this.Qa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.YE(this.api.V());g.QK(this,a);a&&dva(this);this.B=a};
dva=function(a){a.i||(a.i=!0,a.api.ib(a.element,!0))};
g.MN=function(a){g.wD.call(this);var b=this;this.api=a;this.bG=!1;this.Fk=null;this.vy=!1;this.ye=null;this.aD=this.aB=!1;this.AG=this.CG=null;this.oL=NaN;this.zG=this.bv=!1;this.pw=0;this.tC=[];var c=a.V(),d=a.bb();this.UI=new g.M(this.RE,0,this);g.J(this,this.UI);g.iF(c)||(this.Hr=new uN(a),g.J(this,this.Hr),g.MM(a,this.Hr.element,4));if(eva(this)){var e=new HN(a);g.J(this,e);e=e.element;g.MM(a,e,4)}var f=a.getVideoData();this.td=new sN(d,function(l){return b.iy(l)},f,c.rd,BF(c));
g.J(this,this.td);this.td.subscribe("autohideupdate",this.xj,this);var h=new GN(a);g.J(this,h);g.MM(a,h.element,4);this.fB=new KN(a);g.J(this,this.fB);g.MM(this.api,this.fB.element,2);this.ZD=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.ZA=new g.M(this.qt,200,this);g.J(this,this.ZA);this.sE=f.videoId;this.tN=new g.M(function(){b.pw=0},350);
g.J(this,this.tN);this.zy=new g.M(function(){b.zG||LN(b)},350,this);
g.J(this,this.zy);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.N(f,"ytp-color-white")}g.iF(c)&&g.N(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new EN(a),g.J(this,f));this.T(a,"appresize",this.wb);this.T(a,"presentingplayerstatechange",this.Nh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.TU);this.T(a,"autonavvisibility",
function(){b.Cm()});
this.T(a,"sizestylechange",function(){b.Cm()});
this.T(d,"click",this.sV,this);this.T(d,"dblclick",this.tV,this);c.Ya&&(this.T(d,"gesturechange",this.uV,this),this.T(d,"gestureend",this.vV,this));this.Rn=[d.Tu];this.Hr&&this.Rn.push(this.Hr.element);e&&this.Rn.push(e)};
NN=function(a,b){if(!b)return!1;var c=a.api.jd();if(c.Qo()&&(c=c.Le())&&g.Fg(c,b))return c.controls;for(c=0;c<a.Rn.length;c++)if(g.Fg(a.Rn[c],b))return!1;return g.Kq(b,"ytp-player-content")||g.Kq(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
fva=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.bb().mz||!1)&&a.api.V().i&&ON&&11<=pH;a=a.api.V().D&&ON;return!(!b&&!a)};
PN=function(a,b){return!NN(a,zu(b))&&g.NL(b)};
LN=function(a){a.td.Xk();if(a.api.V().N("web_player_touch_mode_improvements")&&a.aB&&a.aD)a.aD=!1;else if(!a.api.V().ya&&!a.xk()){var b=a.api.vb();g.T(b,2)&&GM(a.api)||a.Cq(b);if(!a.api.V().Ya||b.isCued()||g.T(b,1024)){var c=a.api.RA();g.Vv("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.T(b,1024);c&&(b.isCued()||d)?(g.Vv("embedsRequestStorageAccessState",{isCued:b.isCued(),zaa:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.Vv("embedsRequestStorageAccessFailedState",
{state:b.state}),a.qt())}else a.ZA.isActive()?(a.nz(),a.ZA.stop()):a.ZA.start()}};
gva=function(a,b){return g.NL(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.vb(),!g.T(b,4)||g.T(b,8)||g.T(b,2)||a.qt(),!0):!1};
hva=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
eva=function(a){a=Qt()&&67<=Nt()&&!a.api.V().D;return!Pt("tizen")&&!VE&&!a&&!0};
QN=function(a,b){b=void 0===b?2:b;g.R.call(this);this.api=a;this.i=null;this.ze=new jy(this);g.J(this,this.ze);this.u=ota;this.ze.T(this.api,"presentingplayerstatechange",this.Lc);this.i=this.ze.T(this.api,"progresssync",this.Qb);this.Mj=b;1===this.Mj&&this.Qb()};
RN=function(a){g.U.call(this,{G:"button",Ga:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Ob:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.QK(this,a.V().showBackButton);this.Qa("click",this.onClick)};
g.SN=function(a){g.U.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",va:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.I=a;this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,500,this);g.J(this,this.u);g.J(this,this.i);this.hide()};
UN=function(a,b,c){if(0>=b){c=dL();b="muted";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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";TN(a,c,b,d+"%")};
iva=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.I.getPlaybackRate(),d=g.qI("Speed is $RATE",{RATE:String(c)});TN(a,b,d,c+"x")};
TN=function(a,b,c,d){d=void 0===d?"":d;a.Ra("label",void 0===c?"":c);a.Ra("icon",b);g.Fq(a.i);a.u.start();a.Ra("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)};
WN=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.YE(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().N("player_new_info_card_format")?Msa():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]}]},
{G:"div",L:"ytp-cards-button-title",va:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{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"}},{G:"path",L:"ytp-svg-fill",W:{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"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",va:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.i=null;this.u=new g.zL(this,250,!0,100);g.J(this,this.u);g.O(this.C,"ytp-show-cards-title",g.YE(a.V()));this.hide();this.Qa("click",this.onClicked);this.Qa("mouseover",this.rU);VN(this,!0)};
VN=function(a,b){b?a.i=g.XN(a.B.fc(),a.element):(a.i=a.i,a.i(),a.i=null)};
YN=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().N("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Msa()]},{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.XK()]}]:[{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var d=this;this.I=a;this.Y=
b;this.ji=c;this.C=new g.zL(this,250,!1,250);this.i=null;this.K=new g.M(this.FU,300,this);this.J=new g.M(this.EU,2E3,this);this.D=[];this.u=null;this.S=new g.M(function(){d.element.style.margin="0"},250);
this.B=null;g.J(this,this.C);g.J(this,this.K);g.J(this,this.J);g.J(this,this.S);a.V().N("player_new_info_card_format")?(g.N(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.Ci),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.qG),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.qG)):this.Qa("click",this.qG);this.T(c.element,"mouseover",this.CH);this.T(c.element,"mouseout",this.BH);this.T(a,"cardsteasershow",this.SV);this.T(a,
"cardsteaserhide",this.Db);this.T(a,"cardstatechange",this.pO);this.T(a,"presentingplayerstatechange",this.pO);this.T(a,"appresize",this.NG);this.T(a,"onShowControls",this.NG);this.T(a,"onHideControls",this.fR);this.Qa("mouseenter",this.jP)};
$N=function(a){g.U.call(this,{G:"button",Ga:[ZN.BUTTON,ZN.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:ZN.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.aL()]},{G:"div",L:ZN.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{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.Wb(this.element,this,36927);this.Qa("click",this.onClick,this);this.Ra("pressed",!1);this.Ra("label","Get notified about every new video")};
jva=function(a,b){a.i=b;a.element.classList.toggle(ZN.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.iC:c.hC)?(a=a.api.Ml())?dM(a,b):g.zs(Error("No innertube service available when updating notification preferences.")):g.zs(Error("No update preferences command available.")):g.zs(Error("No video data when updating notification preferences."))};
g.bO=function(a,b,c,d,e,f,h,l,m,n,p,q,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 u=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.dF(u)||g.hF(u))c.target=u.K;g.U.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",va:b}:""]}]});f&&g.N(this.element,
"ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.dF(u)&&!u.N("subscribe_tooltipkillswitch");g.U.call(this,{G:"div",Ga:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.qI("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":FF(u),"data-tooltip-opaque":String(g.YE(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?
{G:"div",L:"ytp-sb-count",va:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.qI("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":FF(u),"data-tooltip-opaque":String(g.YE(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",va:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.Fa("ytp-sb-subscribe"),A=this.Fa("ytp-sb-unsubscribe");
f&&g.N(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var F=function(){var E=x.channelId;if(m||n){var K={c:E};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))K="";else{var V;g.rM.Yd()&&(V=Qta(K));K=V||""}if(V=q.getVideoData())if(V=V.subscribeCommand){var L=q.Ml();L?(dM(L,V,{botguardResponse:K,feature:m}),q.Oa("SUBSCRIBE",E)):g.zs(Error("No innertube service available when updating subscriptions."))}else g.zs(Error("No subscribe command in videoData."));else g.zs(Error("No video data available when updating subscription."))}A.focus();
A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var E=x.channelId;
if(m||n){var K=q.getVideoData();dM(q.Ml(),K.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",E)}y.focus();y.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
this.T(y,"click",F);this.T(A,"click",G);this.T(y,"keypress",function(E){13===E.keyCode&&F(E)});
this.T(A,"keypress",function(E){13===E.keyCode&&G(E)});
this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.i&&p&&(this.tooltip=this.i.fc(),aO(this.tooltip),g.qe(this,g.XN(this.tooltip,y)),g.qe(this,g.XN(this.tooltip,A)))}else g.N(y,"ytp-sb-disabled"),g.N(A,"ytp-sb-disabled")}};
cO=function(a,b){g.U.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().K,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().K,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Fa("ytp-title-channel");this.i=this.Fa("ytp-title-channel-logo");this.C=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.YE(this.api.V());a.Wb(this.i,this,36925);this.D&&kva(this);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.Pa()};
kva=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.Fi){var d=b.Y?null:qta(),e=new g.bO("Subscribe",null,"Subscribed",null,!0,!1,c.Si,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.J(a,e);e.Ea(a.C);a.api.Wb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.Gb(e.element)});
var f=new $N(a.api);a.u=f;g.J(a,f);f.Ea(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Rh&&f.show()});
a.T(a.api,"UNSUBSCRIBE",function(){c.Rh&&(f.hide(),jva(f,!1))})}a.Ra("flyoutUnfocusable","true");
a.Ra("channelTitleFocusable","-1");b.i?a.T(a.i,"click",function(h){lva(a)&&(h.preventDefault(),a.isExpanded()?a.UC():a.pD());a.api.Gb(a.i)}):(a.T(a.channel,"mouseenter",a.pD),a.T(a.channel,"mouseleave",a.UC),a.T(a.channel,"focusin",a.pD),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.UC()}),a.T(a.i,"click",function(){a.api.Gb(a.i)}));
a.B=new g.M(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.ib(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.ib(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.J(a,a.B);a.T(a.channel,mva,function(){nva(a)});
a.T(a.api,"onHideControls",a.KF);a.T(a.api,"appresize",a.KF);a.T(a.api,"fullscreentoggled",a.KF)};
nva=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
lva=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width};
g.eO=function(a,b,c,d){g.RK.call(this,a);this.priority=b;c&&g.dO(this,c);d&&this.kd(d)};
g.fO=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{G:c?"a":"div",Ga:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",va:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",va:"{{label}}"},{G:"div",L:"ytp-menuitem-content",va:"{{content}}"}]}};
gO=function(a,b){a.Ra("icon",b)};
g.dO=function(a,b){a.Ra("label",b)};
hO=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",U:[{G:"button",Ga:["ytp-button",l],U:[c]}]};if(e){var n="ytp-panel-options";m.U.unshift({G:"button",Ga:["ytp-button",n],U:[d]})}h.U=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,h.U?h.U.push(f):h.U=[f]);g.RK.call(this,h);this.content=b;d&&h.U?b.Ea(this.element,h.U.length-1):b.Ea(this.element);this.FK=!1;this.pS=d;c&&(c=this.Fa(l),this.T(c,"click",this.IT),this.FK=!0,
e&&(n=this.Fa(n),this.T(n,"click",e)));b.subscribe("size-change",this.dM,this);this.T(a,"fullscreentoggled",this.dM)};
g.iO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.RK({G:"div",L:"ytp-panel-menu",W:h});hO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)};
g.jO=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.iF,a);a.items=[];g.Bg(a.menuItems.element);a.menuItems.ea("size-change")};
ova=function(a,b){return b.priority-a.priority};
kO=function(a){var b=g.fO({"aria-haspopup":"true"});g.eO.call(this,b,a);this.Qa("keydown",this.i)};
lO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
mO=function(a,b){g.eO.call(this,g.fO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Qa("click",this.onClick)};
nO=function(a,b,c,d){var e;g.iO.call(this,a);this.I=a;this.Bb=c;this.xc=d;this.getVideoUrl=new kO(6);this.jj=new kO(5);this.gj=new kO(4);this.Ib=new kO(3);this.Uw=new g.eO(g.fO({href:"{{href}}",target:this.I.V().K},void 0,!0),2,"Troubleshoot playback issue");this.Fr=new g.RK({G:"div",Ga:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.wJ=new hO(this.I,this.Fr);this.Hn=null;this.I.V().Qj&&(this.zi=new mO("Loop",7),g.J(this,this.zi),this.Gc(this.zi,!0),this.zi.Qa("click",
this.yU,this),a.Wb(this.zi.element,this.zi,28661));g.J(this,this.getVideoUrl);this.Gc(this.getVideoUrl,!0);this.getVideoUrl.Qa("click",this.oU,this);a.Wb(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.jj);this.Gc(this.jj,!0);this.jj.Qa("click",this.pU,this);a.Wb(this.jj.element,this.jj,28660);g.J(this,this.gj);this.Gc(this.gj,!0);this.gj.Qa("click",this.nU,this);a.Wb(this.gj.element,this.gj,28658);g.J(this,this.Ib);this.Gc(this.Ib,!0);this.Ib.Qa("click",this.mU,this);g.J(this,this.Uw);
this.Gc(this.Uw,!0);this.Uw.Qa("click",this.nV,this);b=new g.eO(g.fO(),1,"Stats for nerds");g.J(this,b);this.Gc(b,!0);b.Qa("click",this.GV,this);g.J(this,this.Fr);this.Fr.Qa("click",this.bU,this);g.J(this,this.wJ);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.Si&&g.Dc(43)&&(c=!0);g.Ti&&!g.Dc(41)&&(c=!1);c&&(this.Hn=new g.U({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.J(this,this.Hn),this.Hn.Ea(this.element));null===(e=this.zi)||void 0===e?void 0:gO(e,{G:"svg",
W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});gO(this.Ib,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"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"}}]});gO(this.Uw,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"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"}}]});gO(b,Lsa());this.T(a,"loopchange",this.oM);this.T(a,"videodatachange",this.onVideoDataChange);pva(this);qva(this,this.I.getVideoData())};
pO=function(a,b){var c=!1;if(a.Hn){var d=a.Hn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Bb.Db():(a.Fr.kd(b,"text"),g.oO(a.Bb,a.wJ),yN(a.Fr.element),a.Hn&&(a.Hn=null,pva(a)));return c};
qva=function(a,b){var c,d=a.I.V(),e=2===a.I.getPresentingPlayerType(),f=!e||b.isListed;f=!d.S&&!!b.videoId&&f;"play"!==d.playerStyle?d="https://support.google.com/youtube/?p=report_playback":(d={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(d.fmt=b.u.lc()),b.clientPlaybackNonce&&(d.cpn=b.clientPlaybackNonce),b.Ka&&(d.partnerid=b.Ka),d=g.pi("//support.google.com/googleplay/",d));g.QK(a.gj,f&&b.allowEmbed);g.QK(a.getVideoUrl,f);g.QK(a.jj,f&&!b.isLivePlayback);
a.Uw.kd(d,"href");null===(c=a.zi)||void 0===c?void 0:g.QK(c,!b.isLivePlayback&&!e)};
pva=function(a){var b=!!a.Hn;g.dO(a.Ib,b?"Copy debug info":"Get debug info");lO(a.Ib,!b);g.dO(a.gj,b?"Copy embed code":"Get embed code");lO(a.gj,!b);g.dO(a.getVideoUrl,b?"Copy video URL":"Get video URL");lO(a.getVideoUrl,!b);g.dO(a.jj,b?"Copy video URL at current time":"Get video URL at current time");lO(a.jj,!b);gO(a.gj,b?Jsa():null);gO(a.getVideoUrl,b?ZK():null);gO(a.jj,b?ZK():null)};
g.qO=function(a,b){g.IN.call(this,a,{G:"div",Ga:["ytp-popup",b||""]},100,!0);this.i=[];this.J=this.C=null;this.Lx=this.maxWidth=0;this.size=new g.Wf(0,0);this.Qa("keydown",this.kP)};
rva=function(a){var b=a.i[a.i.length-1];if(b){g.Xl(a.element,a.maxWidth||"100%",a.Lx||"100%");g.Jl(b.element,"minWidth","250px");g.Jl(b.element,"width","");g.Jl(b.element,"height","");g.Jl(b.element,"maxWidth","100%");g.Jl(b.element,"maxHeight","100%");g.Jl(b.content.element,"height","");var c=g.Yl(b.element);c.width+=1;c.height+=1;g.Jl(b.element,"width",c.width+"px");g.Jl(b.element,"height",c.height+"px");g.Jl(b.element,"maxWidth","");g.Jl(b.element,"maxHeight","");var d=0;b.FK&&(d=b.Fa("ytp-panel-header"),
d=g.Yl(d).height);var e=0;b.pS&&(e=b.Fa("ytp-panel-footer"),g.Jl(e,"width",c.width+"px"),e=g.Yl(e).height);g.Jl(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.Jl(b.element,"width",c.width+"px")));a.size=c}};
g.oO=function(a,b){var c=a.i[a.i.length-1];a.i.push(b);rO(a,c,b)};
g.sO=function(a){if(!(1>=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];rO(a,b,c,!0)}};
rO=function(a,b,c,d){sva(a);b&&(b.unsubscribe("size-change",a.Ct,a),b.unsubscribe("back",a.lh,a));c.subscribe("size-change",a.Ct,a);c.subscribe("back",a.lh,a);if(a.Ab){g.N(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;rva(a);g.Xl(a.element,e);a.C=new g.M(function(){tva(a,b,c,d)},20,a);
a.C.start()}else c.Ea(a.element),b&&b.detach()};
tva=function(a,b,c,d){a.C.dispose();a.C=null;g.N(a.element,"ytp-popup-animating");d?(g.N(b.element,"ytp-panel-animate-forward"),g.Mq(c.element,"ytp-panel-animate-back")):(g.N(b.element,"ytp-panel-animate-back"),g.Mq(c.element,"ytp-panel-animate-forward"));g.Xl(a.element,a.size);a.J=new g.M(function(){g.Mq(a.element,"ytp-popup-animating");b.detach();g.Nq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a);
a.J.start()};
sva=function(a){a.C&&g.Eq(a.C);a.J&&g.Eq(a.J)};
g.tO=function(a,b,c){g.qO.call(this,a);this.Aa=b;this.xc=c;this.B=new g.wD(this);this.ma=new g.M(this.YV,1E3,this);this.ya=this.D=null;g.J(this,this.B);g.J(this,this.ma);a.Wb(this.element,this,28656);g.N(this.element,"ytp-contextmenu");uva(this);this.hide()};
uva=function(a){g.my(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.bb();a.B.T(b,"contextmenu",a.XT);a.B.T(b,"touchstart",a.mP,null,!0);a.B.T(b,"touchmove",a.KM,null,!0);a.B.T(b,"touchend",a.KM,null,!0)}};
vva=function(a){a.I.isFullscreen()?g.MM(a.I,a.element,9):a.Ea(document.body)};
g.uO=function(a,b,c){c=void 0===c?240:c;g.U.call(this,{G:"button",Ga:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.YE(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",va:"{{icon}}"},{G:"div",L:"ytp-copylink-title",va:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.u=c;this.visible=!1;this.tooltip=this.i.fc();b=a.V();aO(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.YE(b)&&!g.iF(b));a.Wb(this.element,this,86570);this.Qa("click",
this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.T(a,"appresize",this.Pa);this.Pa();g.qe(this,g.XN(this.tooltip,this.element))};
wva=function(a){a.Ra("icon",UK());if(a.api.V().i)vO(a.tooltip,a.element,"Link copied to clipboard");else{a.Ra("title-attr","Link copied to clipboard");wO(a.tooltip);vO(a.tooltip,a.element);var b=a.Qa("mouseleave",function(){a.jc(b);a.Pa();a.tooltip.cj()})}};
xva=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return ta(f,2),g.z(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);va(f);var h=f.return,l=!1,m=g.zg("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if($t){var p=window.getSelection();p.removeAllRanges();var q=document.createRange();q.selectNodeContents(m);p.addRange(q);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m);
return h.call(f,l)})})};
xO=function(){g.U.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ga:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",va:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",va:"{{seekTime}}"}]}]}]});this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,700,this);
g.J(this,this.u);g.J(this,this.i);this.hide()};
yO=function(a){g.U.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div",
L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.M(this.show,10,this);this.u=new g.M(this.hide,700,this);this.i=this.Fa("ytp-doubletap-static-circle");g.J(this,this.B);g.J(this,this.u);this.hide();this.C=this.Fa("ytp-doubletap-fast-forward-ve");this.D=this.Fa("ytp-doubletap-rewind-ve");this.I.Wb(this.C,this,28240);this.I.Wb(this.D,this,28239);this.I.ib(this.C,!0);this.I.ib(this.D,
!0)};
yva=function(a,b){b=g.qI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Ra("seekTime",b)};
zO=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
AO=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
zva=function(a,b){b=AO(a,b)+1;return b<a.length?b:-1};
Ava=function(a,b){return AO(a,b)-1};
g.CO=function(a,b,c,d,e,f,h){g.wD.call(this);var l=this;this.api=a;this.contextMenu=c;this.td=d;this.xc=e;this.i=f;this.C=h;this.B=new g.M(function(){Bva(l,!1)},1E3);
this.u="";g.J(this,this.B);this.T(b,"mousedown",function(){BO(l,!1)});
this.T(c.element,"mousedown",function(){BO(l,!1)});
this.T(b,"keydown",this.xK);this.T(c.element,"keydown",this.xK);this.T(b,"keyup",this.yK);this.T(c.element,"keyup",this.yK)};
BO=function(a,b){g.O(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.O(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
EO=function(a,b,c,d){var e=g.gN(a.api.ub());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.DO.length;h++){var l=g.DO[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);Bva(a,!0);a.B.start()}};
Cva=function(a,b){a.api.sf();if(g.T(a.api.vb(),4)){var c=a.api.getVideoData().u;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
Bva=function(a,b){g.gN(a.api.ub())&&a.api.setOption("captions","sampleSubtitles",b)};
FO=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-button","ytp-overflow-button"],W:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},U:[{G:"div",L:"ytp-overflow-icon",U:[{G:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},U:[{G:"path",W:{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.I=a;this.i=b;this.visible=!1;this.tooltip=this.i.fc();
a.Wb(this.element,this,16499);this.T(a,"appresize",this.Pa);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();g.qe(this,g.XN(this.tooltip,this.element));this.Qa("click",function(){a.Gb(d.element);JN(c,d.element,!1)})};
GO=function(a,b){g.IN.call(this,a,{G:"div",L:"ytp-overflow-panel",W:{id:MK(),role:"dialog"},U:[{G:"div",L:"ytp-overflow-panel-content",U:[{G:"div",L:"ytp-overflow-panel-action-buttons",va:"{{buttons}}"}]},{G:"button",Ga:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},U:[g.XK()]}]},250);this.actionButtons=[];this.tooltip=b.fc();this.i=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Db);g.qe(this,g.XN(this.tooltip,
this.closeButton));this.Qa("click",this.nP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
HO=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.Ra("buttons",a.actionButtons))};
Dva=function(a,b){a=g.r(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Yb(b)};
IO=function(a,b,c){var d=g.TM(b,c),e=a.V(),f=d.He("default.jpg");g.U.call(this,{G:"a",Ga:["ytp-video-menu-item","ytp-button"],W:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},U:[{G:"div",L:"ytp-video-menu-item-index",va:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",va:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",W:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",va:d.title},{G:"div",
L:"ytp-video-menu-item-author",va:d.author}]});this.api=a;this.index=c;this.Qa("click",this.onClick)};
JO=function(a){g.IN.call(this,a,{G:"div",L:"ytp-playlist-menu",W:{role:"dialog",id:MK()},U:[{G:"div",L:"ytp-playlist-menu-header",U:[{G:"div",L:"ytp-playlist-menu-title",U:[{G:"a",L:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},va:"{{title}}"},{G:"button",Ga:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.XK()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",va:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",W:{role:"menu"}}]},250);this.api=a;this.selected=this.C=
this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.B=new g.wD(this);this.i=[];a=this.Fa("ytp-playlist-menu-close");this.T(a,"click",this.Db);a=this.Fa("ytp-playlist-menu-title-name");this.T(a,"click",this.XV);g.J(this,this.B);this.hide()};
KO=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-playlist-menu-button","ytp-button"],W:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},U:[{G:"div",L:"ytp-playlist-menu-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",va:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.fc();a.Wb(this.element,this,70344);this.T(a,"videodatachange",this.i);this.T(a,"onPlaylistUpdate",this.i);this.T(a,"presentingplayerstatechange",this.Pa);this.T(a,"appresize",this.Pa);this.hide();this.i();g.qe(this,g.XN(this.tooltip,this.element));this.Qa("click",function(){a.Gb(d.element);JN(c,d.element,!1)})};
LO=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-promotooltip-wrapper",U:[{G:"div",L:"ytp-promotooltip-container",U:[{G:"div",L:"ytp-promotooltip-content",U:[{G:"div",L:"ytp-promotooltip-title",va:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",va:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",U:[{G:"div",L:"ytp-promotooltip-dismiss-button",va:"{{dismissButtonText}}",W:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",va:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.K=b;this.I=c;this.i=this.B=null;this.title=this.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.J=this.D=this.u=this.C=!1;g.QK(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.I.Rg(this.element,this,!0),this.I.xm(this.element,a);this.T(c,"onShowControls",
this.PB);this.T(c,"onHideControls",this.aU);this.T(c,"resize",this.wb);this.T(this.acceptButton,"click",this.kT);this.T(this.dismissButton,"click",this.gU);this.T(document,"click",this.oP)};
Eva=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
MO=function(a){g.QK(a,!1);a.u&&a.I.ib(a.element,a.Ab)};
NO=function(a,b){var c,d,e=a.tooltipRenderer.promoConfig;if(e){switch(b){case 0:if(null===(c=e.impressionEndpoints)||void 0===c?0:c.length)var f=e.impressionEndpoints[0];break;case 1:f=e.acceptCommand;break;case 2:f=e.dismissCommand}if(null===(d=null===f||void 0===f?void 0:f.feedbackEndpoint)||void 0===d?0:d.feedbackToken)b={feedbackTokens:[f.feedbackEndpoint.feedbackToken]},a=a.I.Ml(),(null===a||void 0===a?0:sta(f,a.B))&&dM(a,f,b)}};
Fva=function(a){var b,c,d,e,f,h,l,m,n,p,q=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text),t=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return q||t};
OO=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-replay-button","ytp-button"],W:{title:"Replay"},U:[g.bL()]});this.I=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Qa("click",this.onClick,this);a=a.vb();g.QK(this,g.T(a,2));g.XN(b.fc(),this.element)};
g.PO=function(a,b,c,d){d=void 0===d?240:d;g.U.call(this,{G:"button",Ga:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.YE(a.V()))},U:[{G:"div",L:"ytp-share-icon",va:"{{icon}}"},{G:"div",L:"ytp-share-title",va:"Share"}]});this.api=a;this.i=b;this.B=c;this.u=d;this.visible=!1;this.tooltip=this.i.fc();b=a.V();a.Wb(this.element,this,28664);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",
this.Pa);this.T(a,"appresize",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();g.O(this.element,"ytp-show-share-title",g.YE(b)&&!g.iF(b));g.qe(this,g.XN(this.tooltip,this.element))};
Gva=function(a){"InvalidStateError"!==a.name&&g.Ty(a)};
g.QO=function(a,b){var c=MK(),d=a.V();c={G:"div",L:"ytp-share-panel",W:{id:MK(),role:"dialog","aria-labelledby":c},U:[{G:"div",L:"ytp-share-panel-inner-content",U:[{G:"div",L:"ytp-share-panel-title",W:{id:c},va:"Share"},{G:"a",Ga:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.K,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",U:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox",
checked:!0}},"Include playlist"]},{G:"div",L:"ytp-share-panel-loading-spinner",U:[xN()]},{G:"div",L:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ga:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},U:[g.XK()]}]};g.IN.call(this,a,c,250);this.api=a;this.tooltip=b.fc();this.i=[];this.D=this.Fa("ytp-share-panel-inner-content");this.closeButton=this.Fa("ytp-share-panel-close");
this.T(this.closeButton,"click",this.Db);g.qe(this,g.XN(this.tooltip,this.closeButton));this.C=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Pa);this.B=this.Fa("ytp-share-panel-link");g.qe(this,g.XN(this.tooltip,this.B));this.Qa("click",this.pP);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.NS);this.hide()};
Iva=function(a,b){Hva(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Fm:e.Fm},f++){e.Fm=c[f];a:switch(e.Fm.img||e.Fm.iconId){case "facebook":var h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.U({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Fm.url,target:"_blank",title:e.Fm.sname||e.Fm.serviceName},U:[h]}),h.Qa("click",function(m){return function(n){if(g.NL(n)){var p=m.Fm.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";q||(q={});var t=window;var u=p instanceof g.mf?p:g.rf("undefined"!=typeof p.href?p.href:String(p));p=q.target||p.target;var x=[];for(y in q)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+q[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(q[y]?1:0))}var y=x.join(",");vc()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.zg("A"),g.Mf(y,u),y.setAttribute("target",p),q.noreferrer&&y.setAttribute("rel","noreferrer"),q=document.createEvent("MouseEvent"),q.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(q),t={}):q.noreferrer?(t=Nf("",t,p,y),q=g.nf(u),t&&(g.CF&&-1!=q.indexOf(";")&&(q="'"+q.replace(/'/g,"%27")+"'"),t.opener=null,q=g.Jf(g.cf("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.ag(q)+'">'),(u=t.document)&&u.write&&(u.write(g.Ff(q)),u.close()))):(t=Nf(u,t,p,y))&&q.noopener&&(t.opener=null);if(q=t)q.opener||(q.opener=window),q.focus();g.Cu(n)}}}(e)),g.qe(h,g.XN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink;
b=new g.U({G:"a",Ga:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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"}}]}]}],W:{href:l,target:"_blank",title:"More"}});b.Qa("click",function(m){g.wN(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")});
g.qe(b,g.XN(a.tooltip,b.element));a.i.push(b);a.Ra("buttons",a.i)};
Hva=function(a){for(var b=g.r(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.oe(c);a.i=[]};
TO=function(a,b,c){c=void 0===c?!0:c;g.U.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.kb=b;this.Sa=this.K=this.i=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.eb=!0;this.Ja=new g.M(function(){d.badge.element.style.width=""},200,this);
this.ma=new g.M(function(){RO(d);SO(d)},200,this);
this.dismissButton=new g.U({G:"button",Ga:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.J=new g.U({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.J);this.badge=new g.U({G:"button",Ga:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}:
"",this.J]});g.J(this,this.badge);this.badge.Ea(this.element);this.S=new g.zL(this.badge,250,!1,100);g.J(this,this.S);this.Aa=new g.zL(this.J,250,!1,100);g.J(this,this.Aa);this.La=new g.zq(this.bX,null,this);g.J(this,this.La);this.ya=new g.zq(this.yR,null,this);g.J(this,this.ya);g.J(this,this.Ja);g.J(this,this.ma);this.I.Rg(this.badge.element,this.badge,!0);this.I.Rg(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.i=!1;SO(d);RO(d);d.Vh()});
this.T(this.I,"onShowControls",function(){d.i=!0;SO(d);RO(d);d.Vh()});
this.T(this.badge.element,"click",this.SE);this.T(this.dismissButton.element,"click",this.TE);this.T(this.I,"pageTransition",this.qP);this.T(this.I,"appresize",this.Vh);this.T(this.I,"fullscreentoggled",this.kU);this.T(this.I,"cardstatechange",this.LT);this.T(this.I,"annotationvisibility",this.zX,this);this.T(this.I,"offlineslatestatechange",this.AX,this)};
RO=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.u)};
SO=function(a,b){var c=a.K||a.i||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.ya.stop(),a.Ja.stop(),a.La.start()):(g.QK(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Jva(a))};
Jva=function(a){a.C&&a.I.ib(a.badge.element,a.gx());a.D&&a.I.ib(a.dismissButton.element,a.gx()&&(a.K||a.i||!a.u))};
Kva=function(a){var b=a.text||"";g.Gg(g.og("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ua?a.Ua:"")};
Lva=function(a,b){b?a.D&&a.I.Gb(a.dismissButton.element):a.C&&a.I.Gb(a.badge.element)};
UO=function(a,b){TO.call(this,a,b);var c=this;this.Y=this.Da=this.Ka=!1;this.T(this.I,g.pA("shopping_overlay_visible"),function(){c.Ce(!0)});
this.T(this.I,g.qA("shopping_overlay_visible"),function(){c.Ce(!1)});
this.T(this.I,g.pA("shopping_overlay_expanded"),function(){c.K=!0;SO(c)});
this.T(this.I,g.qA("shopping_overlay_expanded"),function(){c.K=!1;SO(c)});
this.T(this.I,"changeProductsInVideoVisibility",this.WU);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.OU)};
VO=function(a){a.I.Ve("shopping_overlay_visible");a.I.Ve("shopping_overlay_expanded")};
WO=function(a){g.IN.call(this,a,{G:"button",Ga:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.M(function(){b.hide()},5E3);
this.i=this.B=NaN;g.J(this,this.C);this.ya=function(){b.show()};
this.ma=function(){b.hide()};
this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c<b.i/1E3&&b.show()};
this.T(this.I,"videodatachange",function(c,d){b.ds(c,d)});
this.T(this.element,"click",function(){b.I.seekTo(b.i/1E3)});
this.hide()};
XO=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay"},va:"{{icon}}"});this.I=a;this.Qa("click",this.onClick);this.T(a,"airplayactivechange",this.Pa);this.T(a,"airplayavailabilitychange",this.Pa);this.Pa();g.qe(this,g.XN(b.fc(),this.element))};
YO=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{G:"div",L:"ytp-autonav-toggle-button-container",U:[{G:"div",L:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.I=a;this.u=[];this.i=!1;this.isChecked=!0;a.Wb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.Zt);this.Qa("click",this.onClick);this.tooltip=b.fc();g.qe(this,g.XN(b.fc(),this.element));this.Zt()};
Mva=function(a){a.setValue(a.isChecked);var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.Ra("title",b);a.Ra("label",b);wO(a.tooltip)};
g.$O=function(a){g.U.call(this,{G:"div",L:"ytp-gradient-bottom"});this.i=g.zg("CANVAS");this.ctx=this.i.getContext("2d");this.B=NaN;this.i.width=1;this.u=g.iF(a.V());g.ZO(this,a.bb().getPlayerSize().height)};
g.ZO=function(a,b){if(a.ctx){b=Math.floor(b*(a.u?1:.4));b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.i.height=c;a.ctx.clearRect(0,0,1,c);var d=a.ctx.createLinearGradient(0,2,0,2+b);if(a.u)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.ctx.fillStyle=d;a.ctx.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.i.toDataURL()+")"}catch(f){}}}};
aP=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-chapter-container",U:[{G:"button",Ga:["ytp-chapter-title","ytp-button"],U:[{G:"span",W:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",va:"\u2022"},{G:"div",L:"ytp-chapter-title-content",va:"{{title}}",W:{title:"View chapter","aria-label":"View chapter"}},{G:"div",L:"ytp-chapter-title-chevron",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{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.I=a;this.K=c;this.C="";this.currentIndex=0;this.B=void 0;this.i=!0;this.D=this.Fa("ytp-chapter-container");this.u=this.Fa("ytp-chapter-title");this.J=this.Fa("ytp-chapter-title-content");this.updateVideoData("newdata",this.I.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.D,"click",this.onClick);this.T(a,g.pA("chapterCueRange"),this.Qb);this.T(a,"innertubeCommand",this.onClickCommand);g.qe(this,g.XN(b.fc(),this.J))};
Nva=function(a,b,c,d,e){var f=b.Rz/b.rows,h=Math.min(c/(b.Sz/b.columns),d/f),l=b.Sz*h,m=b.Rz*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"};
g.bP=function(a){g.U.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.wD(this);this.i=new g.zL(this,100);g.J(this,this.events);g.J(this,this.i);this.T(this.api,"presentingplayerstatechange",this.Lc)};
cP=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){cP(a,a.api.Hh())}),a.events.T(a.api,"progresssync",a.od),a.events.T(a.api,"appresize",a.D)),a.B=NaN,dP(a),a.i.show(200)):(c&&g.my(a.events),a.i.hide(),a.i.stop())};
dP=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=iG(b,d.width);c=voa(b,e,c);c!==a.B&&(a.B=c,toa(b,c,d.width),b=roa(b,c,d.width),Nva(a.C,b,d.width,d.height))};
eP=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ga:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{G:"div",Ga:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.i=new g.zL(this,250,void 0,100);this.C=this.u=!1;a.Wb(this.element,this,61214);this.B=b;g.J(this,this.i);this.T(a,
"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);this.Pa()};
g.fP=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.i=g.XN(this.u.fc(),this.element);this.B=new g.M(this.aR,2E3,this);g.J(this,this.B);this.T(a,"fullscreentoggled",this.Ii);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);g.fy()&&(b=this.I.bb(),this.T(b,Bia(),this.cF),this.T(b,iy(document),this.hm));a.V().Ya||a.V().D||this.disable();
this.Pa();this.Ii(a.isFullscreen())};
gP=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[Psa()]});this.I=a;this.visible=!1;this.Qa("click",this.onClick);this.T(a,"fullscreentoggled",this.Pa);this.Ra("title",zN(a,"Miniplayer","i"));g.qe(this,g.XN(b.fc(),this.element));a.Wb(this.element,this,62946);this.Pa()};
hP=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-multicam-button","ytp-button"],W:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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.I=a;this.i=!1;this.u=new g.M(this.B,400,this);this.tooltip=b.fc();aO(this.tooltip);g.J(this,this.u);this.Qa("click",function(){JN(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Pa(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Pa(!0);g.qe(this,g.XN(this.tooltip,this.element))};
iP=function(a){g.IN.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["Switch camera",{G:"button",Ga:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.XK()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.wD(this);this.items=this.Fa("ytp-multicam-menu-items");this.i=[];g.J(this,this.B);a=this.Fa("ytp-multicam-menu-close");this.T(a,"click",this.Db);this.hide()};
jP=function(){g.I.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.zq(this.i,null,this);g.J(this,this.delay)};
Ova=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c<b.U.length;c++){var d=b.U[c];if(d&&"string"!==typeof d&&(d=Ova(a,d)))return d}};
Rva=function(a,b,c){c=Ova(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=MK();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=Pva(e),m=Pva(c);kP(a,function(n){d.setAttribute("d",Qva(l,m,n))},200)};
kP=function(a,b,c){a.u=b;a.startTime=(0,g.Q)();a.duration=c;a.i()};
Pva=function(a){var b=[];a=a.match(Sva);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};
Qva=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.lP=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-mute-button","ytp-button"],W:a.V().ma?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.I=a;this.i=null;this.C=this.S=this.D=this.ma=NaN;this.ya=this.J=null;this.B=[];this.u=[];this.visible=!1;this.K=null;var c=this.I.V();this.Ra("icon",dL());this.tooltip=b.fc();this.i=new g.NK({G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",
W:{id:"ytp-svg-volume-animation-mask"},U:[{G:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},U:[{G:"path",L:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",Ob:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],
W:{"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"}},{G:"path",Ob:!0,Ga:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"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.J=this.i.Fa("ytp-svg-volume-animation-speaker");this.ya=this.J.getAttribute("d");this.B=g.ng("ytp-svg-volume-animation-mover",
this.i.element);this.u=g.ng("ytp-svg-volume-animation-hider",this.i.element);this.Aa=new jP;g.J(this,this.Aa);this.Y=new jP;g.J(this,this.Y);this.Qa("click",this.GU);this.T(a,"appresize",this.EH);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.ma)g.qe(this,g.XN(b.fc(),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.IN(a,{G:"span",Ga:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},U:[e[0],
{G:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",target:c.K},va:e[2]},e[4]]},100,!0);g.J(this,d);d.hide();d.subscribe("show",function(f){b.Lr(d,f)});
g.MM(a,d.element,4)}this.message=d;a.Wb(this.element,this,28662);this.EH(a.bb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Vva=function(a,b){a.ma=b;var c=a.ya;b&&(c+=Qva(Tva,Uva,b));a.J.setAttribute("d",c)};
Wva=function(a,b){a.S=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=dL():e=a.i;for(c=0;c<a.u.length;c++)if(d=a.u[c],null===d||void 0===d?0:d.style)d.style.display=0===b?"none":"";e!==a.K&&(a.Ra("icon",e),a.K=e)};
mP=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},U:[Psa()]});this.I=a;this.Ra("title","Picture in Picture");this.Qa("click",this.onClick);g.qe(this,g.XN(b.fc(),this.element))};
g.nP=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-play-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.I=a;this.i=null;this.transition=new jP;this.tooltip=b.fc();g.J(this,this.transition);this.u=!!c;a.Wb(this.element,this,36842);a.ib(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);Xva(this,a.vb());this.Qa("click",this.qt,
this);g.qe(this,g.XN(b.fc(),this.element))};
Yva=function(a){switch(a){case 1:return Qsa();case 2:return Osa();case 3:return g.bL();case 4:return Ssa();default:return null}};
Xva=function(a,b){var c=g.LG(a.I.getVideoData()),d=!1;g.$J(b)?b=c?4:2:g.T(b,2)?(b=3,d=c):b=1;a.element.disabled=d;if(a.i!==b){c=null;switch(b){case 2:c=zN(a.I,"Pause","k");break;case 3:c="Replay";break;case 1:c=zN(a.I,"Play","k");break;case 4:c="Stop live playback"}3===b?a.update({title:c,label:null,icon:Yva(b)}):(a.update({title:c,label:c}),(c=Yva(b))&&a.i&&3!==a.i?Rva(a.transition,a.element,c):a.Ra("icon",c));wO(a.tooltip);a.i=b}};
g.pP=function(a,b,c){g.U.call(this,{G:"a",Ga:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],W:{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?$K():Rsa()]});var d=this;this.I=a;this.i=c;this.playlist=this.videoData=null;this.isLinkable=!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.fc();c?a.Wb(this.element,this,6193):
a.Wb(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.i||this.T(a,"appresize",this.QB);this.T(a,"mdxpreviousnextchange",function(){oP(d);d.QB()});
this.onVideoDataChange()};
Zva=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
$va=function(a){return!!a.playlist&&!a.i&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
awa=function(a){var b=IM(a.I.ub());return b?a.i?b.hasNext():b.Ck():!1};
oP=function(a){var b,c,d={duration:null,preview:null,text:null,title:null,url:null},e=null!=a.playlist&&a.playlist.hasNext();e=g.JM(a.I)&&(!a.i||e);var f=a.i&&g.NM(a.I),h=awa(a),l=a.i&&5===a.I.getPresentingPlayerType(),m=zN(a.I,"Next","SHIFT+n"),n=zN(a.I,"Previous","SHIFT+p");if(l)d.title="Start video";else if(a.B)d.title="Replay";else if(e){var p=null;a.playlist&&(p=g.TM(a.playlist,a.i?lua(a.playlist):mua(a.playlist)));if(p){if(p.videoId){var q=a.playlist.listId;d.url=a.I.V().getVideoUrl(p.videoId,
q?q.toString():void 0)}d.text=p.title;d.duration=null!==(b=p.lengthText)&&void 0!==b?b:p.lengthSeconds?g.ML(p.lengthSeconds):null;d.preview=p.He("mqdefault.jpg")}d.title=a.i?m:n}else f&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(n=a.videoData.suggestions[0],d.url=n.Bk(),d.text=n.title,d.duration=null!==(c=n.lengthText)&&void 0!==c?c:n.lengthSeconds?g.ML(n.lengthSeconds):null,d.preview=n.He("mqdefault.jpg")),d.title=m);d.disabled=!f&&!e&&!h&&!l;a.update(d);a.isLinkable=
!!d.url;f||e||a.B||h||l?a.u||(a.u=g.XN(a.tooltip,a.element),a.D=a.Qa("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.jc(a.D),a.D=null);wO(a.tooltip)};
qP=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
bwa=function(a){g.U.call(this,{G:"div",L:"ytp-heat-map-chapter",U:[{G:"svg",L:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{G:"defs",U:[{G:"clipPath",W:{id:"{{id}}"},U:[{G:"path",L:"ytp-heat-map-path",W:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",L:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{G:"rect",L:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.J=this.Fa("ytp-heat-map-svg");this.D=this.Fa("ytp-heat-map-path");this.C=this.Fa("ytp-heat-map-graph");this.B=this.Fa("ytp-heat-map-play");this.u=this.Fa("ytp-heat-map-hover");this.isValid=!1;this.i=60};
dwa=function(a,b,c,d){d=void 0===d?!1:d;b=new cwa(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.u:b.u)}};
cwa=function(a,b){this.u=this.i=0;this.i=b.x-a.x;this.u=b.y-a.y};
rP=function(){g.U.call(this,{G:"div",L:"ytp-chapter-hover-container",U:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",U:[{G:"div",Ga:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",L:"ytp-progress-linear-live-buffer"},{G:"div",L:"ytp-load-progress"},{G:"div",L:"ytp-hover-progress"},{G:"div",L:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Fa("ytp-progress-linear-live-buffer");this.B=this.Fa("ytp-ad-progress-list");
this.D=this.Fa("ytp-load-progress");this.J=this.Fa("ytp-play-progress");this.u=this.Fa("ytp-hover-progress");this.i=this.Fa("ytp-chapter-hover-container")};
sP=function(a,b){g.Jl(a.i,"width",b)};
tP=function(a,b){g.Jl(a.i,"margin-right",b+"px")};
uP=function(a,b){return"PLAY_PROGRESS"===b?a.J:"LOAD_PROGRESS"===b?a.D:"LIVE_BUFFER"===b?a.C:a.u};
ewa=function(){this.B=this.position=this.C=this.i=this.D=this.u=this.width=NaN};
fwa=function(){g.U.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.vP=function(a,b){g.RK.call(this,{G:"div",L:"ytp-progress-bar-container",W:{"aria-disabled":"true"},U:[{G:"div",Ga:["ytp-heat-map-container"]},{G:"div",Ga:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{G:"div",L:"ytp-chapters-container"},{G:"div",L:"ytp-marker-crenellation-list"},{G:"div",L:"ytp-timed-markers-container"},{G:"div",L:"ytp-clip-start-exclude"},
{G:"div",L:"ytp-clip-end-exclude"},{G:"div",L:"ytp-scrubber-container",U:[{G:"div",Ga:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",L:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",W:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.ac=!1;this.C=this.bd=
0;this.Ja=1;this.cd=this.Y=0;this.J=null;this.ma=this.xb=0;this.uc=this.Fa("ytp-marker-crenellation-list");this.Da={};this.jb={};this.clipEnd=Infinity;this.Za=this.Fa("ytp-clip-end");this.Fb=new g.qy(this.Za,!0);this.kc=this.Fa("ytp-clip-end-exclude");this.xe=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.eb=this.Fa("ytp-clip-start");this.Mb=new g.qy(this.eb,!0);this.S=this.Sa=0;this.Nc=this.Fa("ytp-progress-bar");this.qb={};this.Eb=this.Fa("ytp-chapters-container");this.Md=this.Fa("ytp-timed-markers-container");
this.i=[];this.ya=[];this.rd={};this.La=-1;this.Ua=this.Aa=0;this.K=null;this.qd=this.Fa("ytp-scrubber-button");this.Fe=this.Fa("ytp-scrubber-container");this.kb=new g.Uf;this.Fc=new ewa;this.u=new QL(0,0);this.Rb=null;this.B=this.zb=!1;this.Sc=null;this.wc=this.Fa("ytp-heat-map-container");this.D=[];this.heatMarkersDecorations=[];this.tooltip=b.fc();g.qe(this,g.XN(this.tooltip,this.Za));g.J(this,this.Fb);this.Fb.subscribe("hoverstart",this.aM,this);this.Fb.subscribe("hoverend",this.ZL,this);this.T(this.Za,
"click",this.CA);g.qe(this,g.XN(this.tooltip,this.eb));g.J(this,this.Mb);this.Mb.subscribe("hoverstart",this.aM,this);this.Mb.subscribe("hoverend",this.ZL,this);this.T(this.eb,"click",this.CA);gwa(this);this.T(a,"resize",this.wb);this.T(a,"presentingplayerstatechange",this.sP);this.T(a,"videodatachange",this.ds);this.T(a,"videoplayerreset",this.YR);this.T(a,"cuerangesadded",this.sO);this.T(a,"cuerangesremoved",this.FW);this.T(a,"cuerangemarkersupdated",this.sO);this.T(a,"onLoopRangeChange",this.FH);
this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.pA("timedMarkerCueRange"),this.WV);this.updateVideoData(a.getVideoData(),!0);this.FH(a.getLoopRange())};
gwa=function(a){if(0===a.i.length){var b=new rP;a.i.push(b);g.J(a,b);b.Ea(a.Eb,0)}for(;1<a.i.length;)a.i.pop().dispose();sP(a.i[0],"100%");a.i[0].startTime=0;a.i[0].title=""};
hwa=function(a){for(;a.ya.length;)a.ya.pop().dispose()};
iwa=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.nA(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Ve("chapterCueRange");a.api.Ed(c)};
xP=function(a,b){var c,d,e,f,h,l,m=null===(c=a.qb[b])||void 0===c?void 0:c.chapters;m&&(jwa(a,m),a.api.getVideoData().ql=a.i,iwa(a));if((m=null===(d=a.qb[b])||void 0===d?void 0:d.markers)&&"HEATSEEKER"!==b){var n,p,q;hwa(a);m=g.r(m);for(var t=m.next();!t.done;t=m.next()){var u=t.value;t=new fwa;if(u=u.markerRenderer)t.title=(null===(n=u.title)||void 0===n?void 0:n.simpleText)||"",t.timeRangeStartMillis=null!==(p=u.timeRangeStartMillis)&&void 0!==p?p:NaN,t.onActiveCommand=null!==(q=null===u||void 0===
u?void 0:u.onActiveCommand)&&void 0!==q?q:void 0,a.ya.push(t),g.J(a,t),t.Ea(a.Md,a.Md.children.length)}kwa(a,a.ya);n=a.ya;p=a.rd;q=[];for(m=0;m<n.length;m++)!isNaN(n[m].timeRangeStartMillis)&&n[m].onActiveCommand&&(t=n[m].timeRangeStartMillis,t=new g.nA(t,m===n.length-1?Infinity:n[m+1].timeRangeStartMillis,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+t}),q.push(t),p[t.id]=n[m].onActiveCommand);a.api.Ed(q)}if(b=null===(f=null===(e=a.qb[b])||void 0===e?void 0:e.heatmap)||void 0===f?void 0:f.heatmapRenderer){n=
b.heatMarkers||[];p=null!==(h=b.minHeightDp)&&void 0!==h?h:0;q=null!==(l=b.maxHeightDp)&&void 0!==l?l:60;var x,y;m=a.i.length;t=null;for(u=0;u<m;u++){var A=a.i[u].startTime,F=u===m-1?Infinity:a.i[u+1].startTime;if(u===a.D.length){var G=void 0,E=a;G=void 0===G?NaN:G;var K=new bwa(E.api);E.D.push(K);g.J(E,K);K.Ea(E.wc);var V=K;E="hm_"+E.D.length;V.update({id:E});E="url(#"+E+")";V.C.setAttribute("clip-path",E);V.B.setAttribute("clip-path",E);V.u.setAttribute("clip-path",E);0<=G&&(K.element.style.width=
G+"px")}G=[];t&&G.push(t);K=g.r(n);for(V=K.next();!V.done;V=K.next())V=V.value,E=null!==(y=null===(x=null===V||void 0===V?void 0:V.heatMarkerRenderer)||void 0===x?void 0:x.timeRangeStartMillis)&&void 0!==y?y:-1,E>=A&&E<=F&&G.push(V);0<q&&(a.wc.style.height=q+"px");F=A=a.D[u];0<q&&(F.i=q,F.J.style.height=F.i+"px");F=void 0;K=A;V=1E3/G.length;E=[];E.push({x:0,y:100});for(var L=g.r(G.entries()),W=L.next();!W.done;W=L.next()){var oa=g.r(W.value);W=oa.next().value;oa=oa.next().value;oa=(null===(F=oa.heatMarkerRenderer)||
void 0===F?void 0:F.heatMarkerIntensityScoreNormalized)||0;oa=100-g.Qf(100*oa,p/K.i*100,q/K.i*100);E.push({x:(W+.5)*V,y:oa});W===G.length-1&&E.push({x:1E3,y:oa})}E.push({x:1E3,y:100});F=E;if(0===G.length)F="";else{K="";V=g.r(F.entries());for(E=V.next();!E.done;E=V.next())L=g.r(E.value),E=L.next().value,L=L.next().value,0===E?E="M "+L.x.toFixed(1)+","+L.y.toFixed(1):(W=dwa(F[E-1],F[E-2],L),E=dwa(L,F[E-1],F[E+1],!0),E=" C "+(W.x.toFixed(1)+","+W.y.toFixed(1)+" "+E.x.toFixed(1)+","+E.y.toFixed(1)+" "+
L.x.toFixed(1)+","+L.y.toFixed(1))),K+=E;F=K}A.D.setAttribute("d",F);A.isValid=""!==F;g.O(A.api.getRootNode(),"ytp-heat-map",A.isValid);g.O(A.api.getRootNode(),"ytp-heat-map-played_bar",A.api.N("web_player_heat_map_played_bar")&&""!==F);0<G.length&&(t=G[G.length-1])}g.wP(a);var wa,vb,ob;x=[];y=g.r(b.heatMarkersDecorations||[]);for(b=y.next();!b.done;b=y.next())(b=b.value.timedMarkerDecorationRenderer)&&x.push({visibleTimeRangeStartMillis:null!==(wa=b.visibleTimeRangeStartMillis)&&void 0!==wa?wa:-1,
visibleTimeRangeEndMillis:null!==(vb=b.visibleTimeRangeEndMillis)&&void 0!==vb?vb:-1,decorationTimeMillis:null!==(ob=b.decorationTimeMillis)&&void 0!==ob?ob:NaN,label:qP(b.label)});a.heatMarkersDecorations=x}};
kwa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=lwa(a,c.timeRangeStartMillis/(1E3*a.u.i),yP(a));g.Jl(c.element,"transform","translateX("+d+"px)")}};
jwa=function(a,b){var c=0,d=!1;b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0};f.title=qP(e.title);var h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);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 rP,a.i.push(f),g.J(a,f),f.Ea(a.Eb,a.Eb.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.wP(a);zP(a)};
g.wP=function(a){a.Aa=a.i.length-1;a.Ua=0;mwa(a,!0)&&mwa(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){tP(a.i[d],0);var e=Math.floor(a.i[d].width);a.i[d].width=e;sP(a.i[d],e+"px");break}a.i[c].width=0;sP(a.i[c],"0")}else c===a.i.length-1?(d=Math.floor(a.i[c].width+b),a.i[c].width=d,sP(a.i[c],d+"px")):(b=a.i[c].width+b,d=Math.round(b),b-=d,a.i[c].width=d,sP(a.i[c],d+"px"));c=0;if(a.D.length===a.i.length)for(b=0;b<
a.D.length;b++)d=a.i[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.B?3:2)};
mwa=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 h=a.C-(a.B?3:2)*a.Aa,l=0===a.Ua?3:h*a.Ua,m=g.r(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,tP(a.i[c],a.B?3:2));g.O(a.i[c].i,"ytp-exp-chapter-hover-container",1<a.i.length);n=(0===f?0:m/f*h)+a.i[c].width;if(n>l)a.i[c].width=n;else{a.i[c].width=0;var p=a,q=c,t=p.i[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.i.length-1&&(p.i[q+1].width+=n);tP(p.i[q],0);b&&(a.Aa--,m/f>a.Ua&&(a.Ua=m/f),d=!0)}c++}}return d};
zP=function(a){var b;if(a.C){var c=a.api.getProgressState();var d=(null===(b=a.api.getVideoData())||void 0===b?0:qH(b))&&c.airingStart&&c.airingEnd?nwa(a,c.airingStart,c.airingEnd):nwa(a,c.seekableStart,c.seekableEnd);var e=TL(d,c.loaded,0);c=TL(d,c.current,0);var f=a.u.u!==d.u||a.u.i!==d.i;a.u=d;AP(a,c,e);f&&BP(a);owa(a)}};
nwa=function(a,b,c){var d=a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.V().N("enable_expanded_clip_range_in_progress_bar");return CP(a)&&d?new QL(Math.max(b,a.Rb.startTimeMs/1E3),Math.min(c,a.Rb.endTimeMs/1E3)):CP(a)&&e?(d=a.Rb.startTimeMs/1E3,a=a.Rb.endTimeMs/1E3,e=(a-d)/20,new QL(Math.max(b,d-e),Math.min(c,a+e))):new QL(b,c)};
EP=function(a,b){var c=SL(a.u,b.B);if(1<a.i.length){c=DP(a,b.C,!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.C-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};
pwa=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.Aa)};
qwa=function(a,b,c,d){b=g.Qf(b,0,a.B?60:40);a.Y=b;var e=a.Ja;a.Ja=b/(a.B?60:40)*(Math.max(RL(a.u)/a.C,1)-1)+1;b=a.C*a.Ja;a.ma=g.Qf(d*b-c,0,b-a.C);e!==a.Ja&&BP(a)};
BP=function(a){var b=yP(a),c=-b.u/b.i,d=(-b.u+b.width)/b.i,e=bba(a.uc),f=0;if(a.Y>.2*(a.B?60:40)&&1===a.i.length)for(var h=RL(a.u)/60*d,l=Math.ceil(RL(a.u)/60*c);l<h;l++){var m=e[f];m||(m=g.zg("DIV"),a.uc.appendChild(m));f++;0===l%60?g.Jq(m,"ytp-60m-progress"):0===l%30?g.Jq(m,"ytp-30m-progress"):0===l%15?g.Jq(m,"ytp-15m-progress"):g.Jq(m,"ytp-1m-progress");m.style.left=(60*l/RL(a.u)-c)*b.i+"px"}b=a.zb?a.u.i:0;a.update({boundTimeLeft:g.ML(SL(a.u,c)-b),boundTimeRight:g.ML(SL(a.u,d)-b)});for(c=e.length-
1;c>=f;c--)g.Dg(e[c]);a.element.style.height=a.Y+(a.B?8:5)+"px";a.ea("height-change",a.Y);a.qd.style.height=a.Y+(a.B?20:13)+"px";e=g.r(Object.keys(a.Da));for(f=e.next();!f.done;f=e.next())rwa(a,f.value);FP(a);AP(a,a.S,a.Sa)};
yP=function(a){var b=a.kb.x,c=a.C*a.Ja;b=g.Qf(b,0,a.C);a.Fc.update(b,a.C,-a.ma,-(c-a.ma-a.C));return a.Fc};
AP=function(a,b,c){var d;a.S=b;a.Sa=c;var e=yP(a),f=a.u.i,h=SL(a.u,a.S),l=g.qI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ML(h,!0),DURATION:g.ML(f,!0)}),m=AO(a.i,1E3*h);m=a.i[m].title;a.update({ariamin:Math.floor(a.u.u),ariamax:Math.floor(f),arianow:Math.floor(h),arianowtext:m?m+" "+l:l});f=a.clipStart;h=a.clipEnd;a.Rb&&2!==a.api.getPresentingPlayerType()&&(f=a.Rb.startTimeMs/1E3,h=a.Rb.endTimeMs/1E3);f=TL(a.u,f,0);m=TL(a.u,h,1);l=a.api.getVideoData();h=g.Qf(b,f,m);c=(null===l||void 0===l?0:g.nH(l))?
1:g.Qf(c,f,m);b=lwa(a,b,e);g.Jl(a.Fe,"transform","translateX("+b+"px)");GP(a,e,f,h,"PLAY_PROGRESS");(null===l||void 0===l?0:qH(l))||GP(a,e,f,c,"LOAD_PROGRESS");(null===l||void 0===l?0:qH(l))&&(b=swa(a))&&GP(a,e,h,TL(a.u,b),"LIVE_BUFFER");a.api.N("web_player_heat_map_played_bar")&&(null===(d=a.D[0])||void 0===d?void 0:d.B.setAttribute("width",(100*h).toFixed(2)+"%"))};
GP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Aa*(a.B?3:2),l=c*h;c=DP(a,l);var m=d*h;h=DP(a,m);"HOVER_PROGRESS"===e&&(h=DP(a,b.i*d,!0),m=b.i*d-twa(a,b.i*d)*(a.B?3:2));b=Math.max(l-uwa(a,c),0);for(d=c;d<f;d++)uP(a.i[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.i[f].width,HP(a,uP(a.i[f],e),f===c?d-b:d,d);f=a.i[h].width;m=g.Qf(m-uwa(a,h),0,f);c===h&&(m-=b);HP(a,uP(a.i[h],e),m,f);m=a.i.length;for(h+=1;h<m;h++)HP(a,uP(a.i[h],e),0,a.i[h].width);for(h=0;h<c;h++)HP(a,uP(a.i[h],e),0,a.i[h].width)};
uwa=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};
HP=function(a,b,c,d,e){e||a.api.V().i?b.style.width=c+"px":g.Jl(b,"transform","scalex("+(d?c/d:0)+")")};
DP=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=twa(a,b)*(a.B?3:2));c=g.r(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};
lwa=function(a,b,c){for(var d=b*a.u.i*1E3,e=-1,f=g.r(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.i-(a.B?3:2)*a.Aa)+(a.B?3:2)*(0>e?0:e)+c.u};
twa=function(a,b){for(var c=a.i.length,d=0,e=g.r(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.IP=function(a,b,c,d){var e=a.C!==c;a.bd=b;a.C=c;a.B=d;BP(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.wP(a)};
FP=function(a){var b,c=!!a.Rb&&2!==a.api.getPresentingPlayerType(),d=a.clipStart,e=a.clipEnd,f=!0,h=!0;c&&a.Rb?(d=a.Rb.startTimeMs/1E3,e=a.Rb.endTimeMs/1E3):(f=d>a.u.u,h=0<a.u.i&&e<a.u.i);(null===(b=a.Rb)||void 0===b?0:b.postId)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(h=f=!1);g.O(a.element,"ytp-loop-range-enabled",c);g.O(a.element,"ytp-clip-start-enabled",f);g.O(a.element,"ytp-clip-end-enabled",h);c=f?TL(a.u,d,0):0;e=h?TL(a.u,e,1):1;a.eb.style.left=Math.round(1E3*c)/10+
"%";a.Za.style.left=Math.round(1E3*e)/10+"%";a.xe.style.width=Math.round(1E3*c)/10+"%";a.kc.style.left=Math.round(1E3*e)/10+"%";a.kc.style.width=Math.round(1E3*(1-e))/10+"%"};
owa=function(a){var b,c;if(null===(b=a.api.getVideoData())||void 0===b||!qH(b)){var d=yP(a);GP(a,d,a.S,Math.max(d.B,a.S),"HOVER_PROGRESS");for(var e=DP(a,d.i*a.S,!0),f=DP(a,d.C,!0),h=e;h<=f;h++)g.O(a.i[h].u,"ytp-hover-progress-light",d.B>a.S);g.O(a.qd,"ytp-scrubber-button-hover",e===f&&1<a.i.length);a.api.N("web_player_heat_map_played_bar")&&(null===(c=a.D[0])||void 0===c?void 0:c.u.setAttribute("width",(100*d.B).toFixed(2)+"%"))}};
rwa=function(a,b){var c=a.Da[b];b=a.jb[b];var d=yP(a),e=TL(a.u,c.start/1E3,0),f=Bja(c,a.B)/d.width;var h=TL(a.u,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Qf(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;e=!0;b.style.left=Math.max(c*d.i+d.u,0)+"px";HP(a,b,g.Qf((h-c)*d.i+d.u,0,d.width),d.width,void 0===e?!1:e)};
vwa=function(a,b){var c=b.getId();a.Da[c]===b&&(g.Dg(a.jb[c]),delete a.Da[c],delete a.jb[c])};
wwa=function(a,b){b?a.K||(a.element.removeAttribute("aria-disabled"),a.K=new g.qy(a.Nc,!0),a.K.subscribe("hovermove",a.ZU,a),a.K.subscribe("hoverend",a.YU,a),a.K.subscribe("dragstart",a.XU,a),a.K.subscribe("dragmove",a.bV,a),a.K.subscribe("dragend",a.aV,a),a.Sc=a.Qa("keydown",a.tP)):a.K&&(a.element.setAttribute("aria-disabled","true"),a.jc(a.Sc),a.K.cancel(),a.K.dispose(),a.K=null)};
g.xwa=function(a){var b=2*a.C*g.vF();return 1E3*RL(a.u)/a.api.getPlaybackRate()/b};
swa=function(a){var b,c=a.api.getVideoData();if((null===c||void 0===c?0:qH(c))&&(null===(b=null===c||void 0===c?void 0:c.progressBarStartPosition)||void 0===b?0:b.utcTimeMillis)&&(c=Number(c.progressBarStartPosition.utcTimeMillis),!isNaN(c)))return hpa(c)+a.u.u};
CP=function(a){var b;return!(null===(b=a.Rb)||void 0===b||!b.postId)&&2!==a.api.getPresentingPlayerType()};
JP=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true"},va:"{{icon}}"});this.I=a;this.Bb=c;this.i=null;this.T(a,"onMdxReceiversChange",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.T(a,"appresize",this.Pa);this.Pa();this.Qa("click",this.u,this);g.qe(this,g.XN(b.fc(),this.element))};
KP=function(a,b,c){g.U.call(this,{G:"button",Ga:["ytp-button","ytp-settings-button"],W:{"aria-haspopup":"true","aria-owns":MK(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.cL()]});this.I=a;this.Bb=c;this.u=!0;this.Qa("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.i);g.qe(this,g.XN(b.fc(),this.element));this.I.Wb(this.element,this,
28663);this.updateBadge();this.i(a.bb().getPlayerSize())};
LP=function(a,b){a.u=!!b;a.i(a.I.bb().getPlayerSize())};
MP=function(a,b){mO.call(this,"Annotations",6);this.I=a;this.Bb=b;this.i=!1;this.T(a,"videodatachange",this.Pa);this.T(a,"onApiChange",this.Pa);this.subscribe("select",this.u,this);this.Pa()};
g.NP=function(a,b,c,d,e,f,h){g.eO.call(this,g.fO({"aria-haspopup":"true"}),b,a);this.Bb=d;this.C=!1;this.u=null;this.options={};this.B=new g.iO(c,void 0,a,e,f,h);g.J(this,this.B);this.Qa("keydown",this.uP);this.Qa("click",this.open)};
ywa=function(a){if(a.u){var b=a.options[a.u];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.u=null}};
g.OP=function(a,b){g.jO(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.u;l&&(d=!0);h&&h.priority===-e?(l=a,g.dO(l.options[f],l.bj(f,!0)),delete a.options[f]):h=a.JC(f,-e,l);c[f]=h;a.B.Gc(h,!0)}d||(a.u=null);b=g.r(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
PP=function(a,b){g.NP.call(this,"Audio track",3,a,b);this.I=a;this.tracks={};this.i=new g.U({G:"div",U:[{G:"span",va:"Audio track"},{G:"span",L:"ytp-menuitem-label-count",va:"{{content}}"}]});g.J(this,this.i);g.dO(this,this.i);this.T(a,"videodatachange",this.Pa);this.T(a,"onPlaybackAudioChange",this.Pa);this.Pa()};
QP=function(a,b){mO.call(this,"Autoplay",7);this.I=a;this.Bb=b;this.i=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.D,this);a.Wb(this.element,this,113682);this.u()};
RP=function(a,b,c,d){d=new g.U({G:"div",Ga:["ytp-linked-account-popup-button"],va:d,W:{role:"button",tabindex:"0"}});b=new g.U({G:"div",L:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{G:"div",L:"ytp-linked-account-popup-title",va:b},{G:"div",L:"ytp-linked-account-popup-description",va:c},{G:"div",L:"ytp-linked-account-popup-buttons",U:[d]}]});g.IN.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",U:[b]},100);var e=this;this.dialog=b;g.J(this,this.dialog);
d.Qa("click",function(){e.Db()});
g.J(this,d);g.MM(this.I,this.element,4);this.hide()};
SP=function(a,b){g.eO.call(this,g.fO({"aria-haspopup":"true"}),1);this.I=a;this.Bb=b;this.u=this.i=!1;this.T(this.I,"videodatachange",this.C);this.Qa("click",this.onClick);this.C()};
TP=function(a){return a?g.uA(a):""};
UP=function(a,b){g.NP.call(this,"Quality",2,a,b);this.I=a;this.D={};this.i="unknown";g.N(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.au);this.T(a,"videoplayerreset",this.au);this.T(a,"onPlaybackQualityChange",this.GH);this.au()};
zwa=function(a,b,c){a=a.D[b];var d=g.gB[b];c={G:"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({G:"sup",L:"ytp-swatch-color",va:e}));return c};
VP=function(a,b,c,d,e,f,h){g.U.call(this,{G:"div",L:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-slider",U:[{G:"div",L:"ytp-slider-handle"}]}]});this.J=a;this.D=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.ma=f;this.range=this.maximumValue-this.minimumValue;this.ya=this.Fa("ytp-slider-section");this.u=this.Fa("ytp-slider");this.S=this.Fa("ytp-slider-handle");
this.C=new g.qy(this.u,!0);this.i=h?h:c;g.J(this,this.C);this.C.subscribe("dragmove",this.wP,this);this.T(this.element,"keydown",this.xP);this.T(this.element,"wheel",this.vP);this.init()};
XP=function(a){VP.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.B=g.zg("P");this.Aa=Jaa(this.Y,this);g.N(this.u,"ytp-speedslider");g.N(this.B,"ytp-speedslider-text");a=this.B;var b=this.u;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);WP(this);this.T(this.I,"onPlaybackRateChange",this.Da)};
WP=function(a){a.B.textContent=YP(a,a.i)+"x"};
YP=function(a,b){a=Number(g.Qf(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))};
ZP=function(a){g.RK.call(this,{G:"div",L:"ytp-speedslider-component"});this.i=new XP(a);g.J(this,this.i);this.element.appendChild(this.i.element)};
Awa=function(a){var b=new ZP(a);hO.call(this,a,b,"Custom");g.J(this,b)};
$P=function(a,b){var c=new Awa(a);g.NP.call(this,"Playback speed",5,a,b,"Custom",function(){g.oO(b,c)});
g.J(this,c);this.I=a;this.D=this.i=this.K=null;this.J=this.I.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Pa);this.Pa()};
Bwa=function(a,b){var c=aQ(b);a.options[c]?a.Xh(c):b===a.D&&a.i&&(a.Xh(a.i),a.kd(b.toString()))};
Dwa=function(a){g.OP(a,a.J.map(aQ));a.i=null;a.D=null;var b=a.I.getPlaybackRate();a.J.includes(b)||(Cwa(a,b),g.NP.prototype.Bf.call(a,a.i))};
Cwa=function(a,b){a.D=b;a.i=g.qI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.J.map(aQ);b.unshift(a.i);g.OP(a,b)};
aQ=function(a){return a.toString()};
bQ=function(a,b,c,d){var e=new g.iO(b,void 0,"Video Override");g.NP.call(this,d.text||"",a,b,c,"Video Override",function(){g.oO(c,e)});
var f=this;g.N(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Pb(a,this.getKey,this);this.J=e;g.J(this,this.J);b=new g.eO({G:"div",L:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.J(this,b);this.J.Gc(b,!0);this.D=new g.eO({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",va:"On"}]},-1);g.J(this,this.D);this.J.Gc(this.D,!0);this.T(this.D.element,
"click",function(){Ewa(f,!0)});
this.i=new g.eO({G:"div",L:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},U:[{G:"div",L:"ytp-menuitem-label",va:"Off"}]},-2);g.J(this,this.i);this.J.Gc(this.i,!0);this.T(this.i.element,"click",function(){Ewa(f,!1)});
g.OP(this,g.lm(a,this.getKey))};
Ewa=function(a,b){a.ea("settingChange",a.setting+"Override",!b);a.Bb.lh()};
cQ=function(a,b){g.iO.call(this,a,void 0,"Options");var c=this;this.Pn={};for(var d=0;d<g.DO.length;d++){var e=g.DO[d],f=new bQ(-d,a,b,e);g.J(this,f);f.subscribe("settingChange",this.jh,this);this.Pn[e.option.toString()]=f;this.Gc(f,!0)}a=new g.eO(g.fO(),-g.DO.length,"Reset");g.J(this,a);a.Qa("click",function(){c.jh("reset",!0)});
this.Gc(a,!0)};
dQ=function(a,b){g.NP.call(this,"Auto-translate",0,a,b);this.I=a;this.languages={};a.Wb(this.element,this,127301);a.ib(this.element,!0)};
Fwa=function(a,b){a.languages=g.Pb(b,a.getKey,a);g.OP(a,g.lm(b,a.getKey))};
eQ=function(a,b){var c=new cQ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.AF(a.V())&&(e={G:"div",L:"ytp-panel-footer-content",U:[{G:"span",va:d[0]},{G:"a",L:"ytp-panel-footer-content-link",va:"Settings",W:{href:"/account_playback"}},{G:"span",va:d[1]}]});g.NP.call(this,"Subtitles/CC",4,a,b,"Options",function(){g.oO(b,c)},e);
var f=this;this.I=a;this.Bb=b;this.tracks={};this.J=new g.M(function(){Gwa(f,!1)},3E3);
g.J(this,this.J);this.K=new g.U({G:"div",U:[{G:"span",va:"Subtitles/CC"},{G:"span",L:"ytp-menuitem-label-count",va:"{{content}}"}]});g.J(this,this.K);g.dO(this,this.K);this.i=new dQ(a,b);g.J(this,this.i);this.i.subscribe("select",this.yP,this);this.D=c;g.J(this,this.D);this.D.subscribe("settingChange",this.jh,this);b.subscribe("show",this.FV,this);this.T(a,"videodatachange",this.Pa);this.T(a,"onApiChange",this.Pa);this.T(a,"onCaptionsTrackListChanged",this.Pa);this.T(a,"captionschanged",this.Pa);
a.Wb(this.element,this,127300);this.Pa()};
Gwa=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
fQ=function(a){g.qO.call(this,a,"ytp-settings-menu");var b=this;this.Vd=new g.iO(this.I);this.xE=this.settingsButton=null;this.Yd=!1;g.J(this,this.Vd);this.hide();g.oO(this,this.Vd);a.Wb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Ce(c)})};
Hwa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
gQ=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-size-button","ytp-button"],W:{title:"{{title}}"},va:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new jP;this.tooltip=b.fc();g.J(this,this.transition);this.T(a,"sizestylechange",this.Pa);this.T(a,"fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Pa();this.Qa("click",this.onClick);g.qe(this,g.XN(this.tooltip,this.element))};
g.hQ=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-subtitles-button","ytp-button"],W:{"aria-pressed":"{{pressed}}",title:zN(a,"Subtitles/closed captions","c")},U:[Sua()]});this.I=a;this.T(a,"videodatachange",this.Pa);this.T(a,"appresize",this.Pa);this.T(a,"promotooltipacceptbuttonclicked",this.i);this.T(a,"onApiChange",this.Pa);this.T(a,"onCaptionsTrackListChanged",this.Pa);this.T(a,"captionschanged",this.Pa);this.I.Wb(this.element,this,127299);this.Pa();this.Qa("click",this.onClick);g.qe(this,
g.XN(b.fc(),this.element))};
g.iQ=function(a,b,c){c=void 0===c?350:c;g.U.call(this,{G:"div",Ga:["ytp-time-display","notranslate"],U:[{G:"span",L:"ytp-time-clip-icon",va:"{{clipicon}}"},{G:"span",U:[{G:"span",L:"ytp-time-current",va:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",va:" / "},{G:"span",L:"ytp-time-duration",va:"{{duration}}"}]},{G:"span",L:"ytp-clip-watch-full-video-button-separator",va:"\u2022"},{G:"span",L:"ytp-clip-watch-full-video-button",va:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.U({G:"button",
Ga:["ytp-live-badge","ytp-button"],W:{disabled:"true"},va:"{{content}}"});this.i=null;this.isLiveVideo=this.u=!1;this.J=this.D=null;this.isPremiere=!1;this.Rb=this.C=this.B=null;this.S=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.kd("Live");g.J(this,this.liveBadge);this.liveBadge.Ea(this.element);this.tooltip=b.fc();this.Qa("click",this.onClick);this.T(this.S,"click",this.lW);this.T(a,"presentingplayerstatechange",this.Qb);this.T(a,"appresize",this.Qb);this.T(a,"onLoopRangeChange",this.RB);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Qb();this.RB(a.getLoopRange())};
Iwa=function(a){a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(a.Ra("clipicon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}),
a.isLiveVideo&&!a.u?a.Ra("watchfullvideo","Watch live stream"):a.Ra("watchfullvideo","Watch full video"),g.O(a.element,"ytp-clip",jQ(a)),g.O(a.element,"ytp-live",kQ(a)))};
kQ=function(a){var b=jQ(a)&&a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar");return a.isLiveVideo&&!a.u&&!b};
jQ=function(a){return!!a.Rb&&!!a.Rb.postId&&2!==a.api.getPresentingPlayerType()};
nQ=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-volume-panel",W:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{G:"div",L:"ytp-volume-slider",U:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.i=b;this.K=c;this.ri=!1;this.Y=this.volume=0;this.J=null;this.B=this.u=this.isDragging=!1;this.i=b;this.K=c;this.C=b.Qe();this.S=this.Fa("ytp-volume-slider");this.ma=this.Fa("ytp-volume-slider-handle");
this.D=new g.qy(this.S,!0);g.J(this,this.D);this.D.subscribe("dragstart",this.JV,this);this.D.subscribe("dragmove",this.AP,this);this.D.subscribe("dragend",this.IV,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.HH);this.T(a,"fullscreentoggled",this.hm);this.T(a,"onShowControls",this.rJ);this.T(a,"onHideControls",this.rJ);this.T(this.element,"keydown",this.BP);this.T(this.element,"focus",function(){lQ(d,d.u,d.isDragging,!0,d.i.ri())});
this.T(this.element,"blur",function(){lQ(d,d.u,d.isDragging,!1,d.i.ri())});
this.HH(a.bb().getPlayerSize());mQ(this,a.getVolume(),a.isMuted())};
mQ=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.Ra("valuenow",d);a.Ra("valuetext",e);a.ma.style.left=(a.C?60:40)*c+"px";a.volume=b};
Jwa=function(a,b){g.O(a.element,"ytp-volume-control-hover",b);lQ(a,b,a.isDragging,a.B,a.i.ri())};
lQ=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.ri;a.u=b;a.isDragging=c;a.B=d;a.ri=e;b=a.u||a.isDragging||a.B||a.ri;f!==b&&(b?a.J=a.T(a.element,"wheel",a.zP):(a.jc(a.J),a.J=null),g.O(a.K,"ytp-volume-slider-active",b))};
g.oQ=function(a,b){var c=a.V(),d=g.sF(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];g.iF(c)&&e.push("ytp-youtube-music-button");g.U.call(this,{G:"a",Ga:e,W:{href:"{{url}}",target:c.K,title:g.qI("Watch on $WEBSITE",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},va:"{{logoSvg}}"});this.api=a;this.visible=!1;a.Wb(this.element,this,28666);this.Qa("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onLoopRangeChange",
this.onVideoDataChange);this.T(a,"appresize",this.wb);this.onVideoDataChange();g.qe(this,g.XN(b.fc(),this.element));this.wb()};
qQ=function(a,b,c){g.wD.call(this);var d=this;this.I=a;this.u=b;this.td=c;this.Ja=NaN;this.La=this.Ka=null;this.settingsMenu=new fQ(this.I);this.Nc=new g.vP(this.I,this.u);this.muteButton=null;this.Gg=new g.iQ(this.I,this.u);this.K=this.C=this.B=this.S=this.Aa=null;this.Z=new mP(this.I,this.u);this.Da=new g.fP(this.I,this.u);this.Id=new g.zq(this.gq,null,this);this.J=null;c=a.V();this.td.subscribe("autohideupdate",this.xj,this);var e=!a.vb().isCued(),f=this.I.V().N("html5_player_bottom_linear_gradient");
f||!g.iF(c)&&!a.V().N("html5_player_dynamic_bottom_gradient")?f=f?new g.U({G:"div",L:"ytp-gradient-bottom-container",U:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.U({G:"div",L:"ytp-gradient-bottom"}):this.La=f=new g.$O(a);g.J(this,f);g.MM(a,f.element,8);this.ma=new g.zL(f,250,e,100);g.J(this,this.ma);this.i=new g.U({G:"div",L:"ytp-chrome-bottom",U:[{G:"div",L:"ytp-chrome-controls"}]});g.J(this,this.i);g.MM(a,this.i.element,8);this.Y=new g.zL(this.i,250,
e,100);g.J(this,this.Y);this.ya=this.i.element.children[0];g.qe(this.settingsMenu,function(){a.An()===d.settingsMenu&&(a.settingsMenu=null)});
g.J(this,this.settingsMenu);a.settingsMenu=this.settingsMenu;g.MM(a,this.settingsMenu.element,6);this.settingsMenu.subscribe("show",function(m){var n=d.u.fc(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:pQ(n);n.D.show();break;default:n.D.show()}else n.D.hide();n.K=p;b.OA(d.settingsMenu,m)});
g.J(this,this.Nc);this.Nc.Ea(this.i.element,0);e=new g.bP(a);g.J(this,e);g.MM(a,e.element,4);f=new g.NK({G:"div",L:"ytp-left-controls"});g.J(this,f);f.Ea(this.ya);e=new g.pP(a,b,!1);g.J(this,e);e.Ea(f.element);c.ya||(e=new g.nP(a,b),g.J(this,e),e.Ea(f.element),BF(c)&&(e=new g.NK({G:"div",L:"ytp-hybrid-controls"}),g.J(this,e),this.K=new g.nP(a,b,!0),g.J(this,this.K),this.K.Ea(e.element),g.MM(a,e.element,4)));e=new g.pP(a,b,!0);g.J(this,e);e.Ea(f.element);e=new g.U({G:"span",L:"ytp-volume-area"});g.J(this,
e);e.Ea(f.element);if(!c.xb&&(this.muteButton=new g.lP(a,b),g.J(this,this.muteButton),this.muteButton.Ea(e.element),c.ma)){var h=new nQ(a,b,this.i.element);g.J(this,h);h.Ea(e.element);e=new g.qy(e.element);g.J(this,e);e.subscribe("hoverstart",function(){Jwa(h,!0)});
e=new g.qy(f.element);g.J(this,e);e.subscribe("hoverend",function(){Jwa(h,!1)})}g.J(this,this.Gg);
this.Gg.Ea(f.element);e=new g.NK({G:"div",L:"ytp-right-controls"});g.J(this,e);this.Aa=new aP(a,b,this.Nc);g.J(this,this.Aa);this.Aa.Ea(f.element);e.Ea(this.ya);a.V().Zb&&c.N("web_player_move_autonav_toggle")&&(f=new YO(a,b),g.J(this,f),f.Ea(e.element));c.N("external_fullscreen_with_edu")&&c.externalFullscreen&&uF(c)&&(this.S=new eP(a,b),g.J(this,this.S),this.S.Ea(e.element));f=new g.hQ(a,b);g.J(this,f);f.Ea(e.element);f=new KP(a,b,this.settingsMenu);g.J(this,f);Hwa(this.settingsMenu,f);f.Ea(e.element);
var l=new iP(a);g.J(this,l);g.MM(a,l.element,5);l.subscribe("show",function(m){b.Xm(l,m)});
f=new hP(a,b,l);g.J(this,f);f.Ea(e.element);f=a.getVideoData();if(c.Pj||f.D&&"1"===c.controlsType)this.B=new g.oQ(a,b),g.J(this,this.B),this.B.Ea(e.element);c.showMiniplayerButton&&!a.V().N("web_player_pip")&&(this.C=new gP(a,b),g.J(this,this.C),this.C.Ea(e.element));g.J(this,this.Z);this.Z.Ea(e.element);f.EB||this.Z.hide();c.Og||(f=new gQ(a,b),g.J(this,f),f.Ea(e.element));c.Nf&&(f=new JP(a,b,this.settingsMenu),g.J(this,f),f.Ea(e.element));c.Ti&&(c=new XO(a,b),g.J(this,c),c.Ea(e.element));g.J(this,
this.Da);this.Da.Ea(e.element);g.J(this,this.Id);this.T(a,"appresize",this.wb);this.T(a,"fullscreentoggled",this.wb);this.T(a,"presentingplayerstatechange",this.SB);this.T(a,"videodatachange",this.onVideoDataChange);this.wb()};
Kwa=function(a,b){a.I.vb().isCued()||b?b&&(a.Y.hide(),a.ma.hide(),a.muteButton&&a.muteButton.Yb(!1),a.B&&a.B.Yb(!1),a.C&&a.C.Yb(!1),a.u.fc().cj(a.i.element)):b||(a.Y.show(),a.ma.show(),a.muteButton&&a.muteButton.Yb(!0),a.B&&a.B.Yb(!0),a.C&&a.C.Yb(!0),a.xj())};
Lwa=function(a){var b=a.I.bb().getPlayerSize().width;return Math.max(b-2*rQ(a),100)};
rQ=function(a){var b=a.u.Qe();return 12*(a.I.getVideoData().D?0:b?2:1)};
sQ=function(a){var b=a.u.Qe()?72:50;a=a.I.V();g.wF(a)&&(b=54,a.N("web_player_bigger_buttons_like_mobile")&&(b=62));return b};
tQ=function(a,b){TO.call(this,a,b,!1);var c=this;this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.pA("suggested_action_button_visible"),function(){c.Ce(!0)});
this.T(this.I,g.qA("suggested_action_button_visible"),function(){c.Ce(!1)})};
uQ=function(a){a.I.Ve("suggested_action_button_visible")};
wQ=function(a){g.U.call(this,{G:"div",L:vQ.TITLE,U:[{G:"div",L:vQ.TEXT,U:[{G:"a",Ga:[vQ.LINK,vQ.SESSIONLINK],W:{target:a.V().K,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},va:"{{title}}"},{G:"div",L:vQ.SUBTEXT,U:[{G:"a",L:vQ.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"}]}]}]});this.api=a;this.i=null;this.link=this.Fa(vQ.LINK);a.Wb(this.element,this,23851);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",
this.Pa);this.Pa()};
Mwa=function(a){a.Ra("channelLink","");a.Ra("channelName","");a.Ra("channelTitleFocusable","-1")};
g.xQ=function(a,b){g.U.call(this,{G:"div",U:[{G:"div",L:"ytp-tooltip-text-wrapper",U:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"g",U:[{G:"rect",W:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",U:[{G:"g",U:[{G:"polygon",W:{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"}},{G:"polygon",W:{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"}},{G:"path",
W:{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"}}]}]}]},{G:"span",va:"{{title}}"}]},{G:"span",L:"ytp-tooltip-text",va:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",U:[{G:"div",L:"ytp-tooltip-duration",va:"{{duration}}"}]}]});var c=this;this.api=a;this.Ka=b;this.env=this.api.V();this.Da=this.env.i;this.bg=this.Fa("ytp-tooltip-bg");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");
this.title=this.Fa("ytp-tooltip-title");this.Y=function(d){(d=Au(d))&&g.Fg(c.u,d)||c.Wj()};
this.C=function(d){3===c.type&&c.Wj();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.C),d.addEventListener("mouseout",c.Y),d.removeEventListener("focus",c.C),d.addEventListener("blur",c.Y),Nwa(c,d,2))};
this.ma=function(){c.Wj()};
this.u=null;this.D=new g.zL(this,100);this.type=null;this.S=!1;this.i=null;this.B=NaN;this.J="";this.TB=this.api.bb().getPlayerSize().width;this.K=!0;this.scale=1;this.ya=new g.M(this.JS,250,this);this.Aa=new g.M(this.Wj,5E3,this);g.J(this,this.D);g.J(this,this.ya);g.J(this,this.Aa);UE&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"))};
aO=function(a){a.element.setAttribute("aria-live","polite")};
Qwa=function(a,b,c,d,e,f,h,l){if(!a.Da||a.env.D){3===a.type&&a.Wj();1!==a.type&&(g.Jq(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.K&&a.D.show(),a.i&&a.i.dispose(),a.i=a.api.Hh(),a.i&&a.i.subscribe("l",a.kM,a));a.update({text:d,title:null!==h&&void 0!==h?h:""});g.O(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.O(a.element,"ytp-text-detail",!!e);d=-1;a.i&&(d=iG(a.i,160*a.scale),a.env.N("web_l3_storyboard")&&4===a.i.levels.length&&(d=a.i.levels.length-1),d=voa(a.i,d,c));Owa(a,d);if(l)switch(c=
g.Yl(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"}Pwa(a,!!e,b,f)}};
g.yQ=function(a){1===a.type&&a.Wj()};
g.XN=function(a,b){if(a.Da)return g.Ha;b.addEventListener("mouseover",a.C);b.addEventListener("focus",a.C);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.u===b&&a.Wj();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
vO=function(a,b,c){if(a.type)if(3===a.type)a.Wj();else return;Nwa(a,b,3,c)};
Nwa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.$v("showElementTooltip called with non-element.",b.toString()),g.Ty(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.u=b;a.S=!!d;d?a.J=d:(a.J=b.getAttribute("title"),b.removeAttribute("title"));g.Jq(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.O(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.O(a.element,"ytp-tooltip-opaque",!!b);a.type=
c;a.api.addEventListener("appresize",a.ma);a.K&&(pQ(a),a.D.show(0))}};
pQ=function(a){var b;a.u&&(b=a.u.getAttribute("data-tooltip-text"));if(b&&!a.S){var c=a.u;a.Ra("text",b);var d=c.getAttribute("data-duration");a.update({title:a.J,duration:d});c=c.getAttribute("data-preview");var e=160*a.scale,f=90*a.scale,h=160*a.scale,l=90*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=c?"url("+c+")":"";a.bg.style.backgroundPosition=(e-h)/2+"px "+(f-l)/2+"px";a.bg.style.backgroundSize=h+"px "+l+"px";g.Lq(a.element,["ytp-text-detail","ytp-preview"]);
g.O(a.element,"ytp-has-duration",!!d)}else a.Ra("text",a.J),g.Nq(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Pwa(a,!!b)};
Pwa=function(a,b,c,d){var e=Math.min(a.TB,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ka.oq(a.element,a.u,c,1===a.type,d);a.element.style.top?g.N(a.element,"ytp-bottom"):a.element.style.bottom&&g.N(a.element,"ytp-top");3===a.type&&a.Aa.start()};
wO=function(a){a.u&&!a.S&&a.u.hasAttribute("title")&&(a.J=a.u.getAttribute("title")||"",a.u.removeAttribute("title"),a.K&&pQ(a))};
Owa=function(a,b){g.O(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=roa(a.i,a.B,b);Nva(a.bg,d,b,c,!0);a.ya.start()}};
Rwa=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ma);a.S||b.setAttribute("title",a.J);a.J="";a.u=null};
g.zQ=function(a,b){g.U.call(this,{G:"button",Ga:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.YE(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",va:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",va:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.fc();aO(this.tooltip);a.Wb(this.element,this,28665);this.Qa("click",this.onClick,this);this.T(a,"videoplayerreset",this.CP);
this.T(a,"appresize",this.Mx);this.T(a,"videodatachange",this.Mx);this.T(a,"presentingplayerstatechange",this.Mx);this.Mx();a=this.I.V();var c=g.Rz("yt-player-watch-later-pending");a.u&&c?(qma(),Swa(this)):this.Pa(2);g.O(this.element,"ytp-show-watch-later-title",g.YE(a));g.qe(this,g.XN(b.fc(),this.element))};
Twa=function(a,b){g.rta(function(){qma({videoId:b});window.location.reload()},"wl_button",g.rF(a.I.V()))};
Swa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Pa(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.Ml(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Pa(2);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0;
a.isRequestPending=!1;a.Pa(1);a.I.V().i&&vO(a.tooltip,a.element);a.I.V().B&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")};
dM(c,b).then(d,function(){a.isRequestPending=!1;Uwa(a,"An error occurred. Please try again later.")})}};
Uwa=function(a,b){a.Pa(4,b);a.I.V().B&&a.I.Oa("WATCH_LATER_ERROR",b)};
Vwa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=xN();break;case 1:d=UK();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.N("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Ra("icon",d);a.icon=b}};
AQ=function(a){g.MN.call(this,a);var b=this;this.sz=(this.Op=g.YE(this.api.V()))&&(this.api.V().i||cu()||au());this.SC=48;this.TC=69;this.qk=null;this.Sn=[];this.xc=new g.SN(this.api);this.ev=this.api.N("web_player_deprecate_double_tap_ux")?new xO:new yO(this.api);this.Th=new g.U({G:"div",L:"ytp-chrome-top"});this.vx=[];this.tooltip=new g.xQ(this.api,this);this.backButton=this.Ms=null;this.channelAvatar=new cO(this.api,this);this.title=new wQ(this.api,this);this.Hg=new g.NK({G:"div",L:"ytp-chrome-top-buttons"});
this.qh=null;this.ji=new WN(this.api,this,this.Th.element);this.overflowButton=this.Xf=null;this.ag="1"===this.api.V().controlsType?new qQ(this.api,this,this.td):null;this.contextMenu=new g.tO(this.api,this,this.xc);this.GC=!1;this.Ly=new g.U({G:"div",W:{tabindex:"0"}});this.Ky=new g.U({G:"div",W:{tabindex:"0"}});this.Mw=null;this.bG=this.vy=!1;var c=a.bb(),d=a.V(),e=a.getVideoData();this.Op&&(g.N(a.getRootNode(),"ytp-embed"),g.N(a.getRootNode(),"ytp-embed-playlist"),this.sz&&(g.N(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.N(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.SC=60,this.TC=89);this.api.V().i&&(g.N(a.getRootNode(),"ytp-mobile"),this.api.V().D&&g.N(a.getRootNode(),"ytp-embed-mobile-exp"));this.jg=e&&e.jg;g.J(this,this.xc);BF(d)||g.MM(a,this.xc.element,4);g.J(this,this.ev);g.MM(a,this.ev.element,4);e=new g.U({G:"div",L:"ytp-gradient-top"});g.J(this,e);g.MM(a,e.element,1);this.yG=new g.zL(e,250,!0,100);g.J(this,this.yG);g.J(this,this.Th);g.MM(a,this.Th.element,
1);this.xG=new g.zL(this.Th,250,!0,100);g.J(this,this.xG);g.J(this,this.tooltip);g.MM(a,this.tooltip.element,4);var f=new JO(a);g.J(this,f);g.MM(a,f.element,5);f.subscribe("show",function(l){b.Xm(f,l)});
this.vx.push(f);this.Ms=new KO(a,this,f);g.J(this,this.Ms);d.showBackButton&&(this.backButton=new RN(a),g.J(this,this.backButton),this.backButton.Ea(this.Th.element));this.Op||this.Ms.Ea(this.Th.element);this.channelAvatar.Ea(this.Th.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.Ea(this.Th.element);g.J(this,this.Hg);this.Hg.Ea(this.Th.element);this.qh=new g.zQ(a,this);g.J(this,this.qh);this.qh.Ea(this.Hg.element);var h=new g.QO(a,this);g.J(this,h);g.MM(a,h.element,5);h.subscribe("show",
function(l){b.Xm(h,l)});
this.vx.push(h);this.shareButton=new g.PO(a,this,h);g.J(this,this.shareButton);this.shareButton.Ea(this.Hg.element);this.Qg=new g.uO(a,this);g.J(this,this.Qg);this.Qg.Ea(this.Hg.element);d.bk&&(e=new WO(a),g.J(this,e),g.MM(a,e.element,4));this.Op&&this.Ms.Ea(this.Hg.element);g.J(this,this.ji);this.ji.Ea(this.Hg.element);e=new YN(a,this,this.ji);g.J(this,e);e.Ea(this.Hg.element);this.Xf=new GO(a,this);g.J(this,this.Xf);g.MM(a,this.Xf.element,5);this.Xf.subscribe("show",function(){b.Xm(b.Xf,b.Xf.Uf())});
this.vx.push(this.Xf);this.overflowButton=new FO(a,this,this.Xf);g.J(this,this.overflowButton);this.overflowButton.Ea(this.Hg.element);this.ag&&g.J(this,this.ag);"3"===d.controlsType&&(e=new OO(a,this),g.J(this,e),g.MM(a,e.element,8));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.wO,this);e=new UL(a,new QN(a));g.J(this,e);g.MM(a,e.element,4);this.Ly.Qa("focus",this.FR,this);g.J(this,this.Ly);this.Ky.Qa("focus",this.GR,this);g.J(this,this.Ky);(this.Yl=d.rd?null:new g.CO(a,c,this.contextMenu,
this.td,this.xc,this.ev,function(){return b.xk()}))&&g.J(this,this.Yl);
this.Op||(this.GN=new UO(this.api,this),g.J(this,this.GN),g.MM(a,this.GN.element,4));this.SN=new tQ(this.api,this);g.J(this,this.SN);g.MM(a,this.SN.element,4);this.Rn.push(this.xc.element);this.T(a,"fullscreentoggled",this.hm);this.T(a,"offlineslatestatechange",function(){b.api.bw()&&rN(b.td,128,!1)});
this.T(a,"cardstatechange",function(){b.Ri()});
this.T(a,"resize",this.ZT);this.T(a,"showpromotooltip",this.AU)};
Wwa=function(a){var b=a.api.V(),c=g.T(a.api.vb(),128);return b.u&&c&&!a.api.isFullscreen()};
BQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Nl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=BQ(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};
Xwa=function(a,b,c){var d;if(a.api.V().N("web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.Mw){if(!(b=!b)){var h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null===(h=e.tooltipDisplayStrategy)||void 0===h?void 0:h.type)&&"dtip-edu-player-iseecaptions"!==(null===(l=e.promoConfig)||void 0===l?void 0:l.promoId)}f=b}f&&(a.Mw=new LO(e,a,a.api),g.J(a,a.Mw),g.MM(a.api,a.Mw.element,8));null===(d=a.Mw)||
void 0===d?void 0:d.PB(e,c)}}};
g.CQ=function(a){g.ZM.call(this,a);this.chrome=null;this.load()};
DQ=function(){var a=Ywa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Lr.apply(null,[cha.apply(null,g.v(b))].concat(g.v(c)));this.store=Or(a,void 0,b)};
EQ=function(a){this.u=a;this.C=this.i=0;this.B=-1};
FQ=function(a){var b=cD(a.u,a.i);++a.i;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=cD(a.u,a.i),++a.i,d*=128,c+=(b&127)*d;return c};
GQ=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.i+1<=a.u.totalLength;){0>c&&(c=FQ(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:FQ(a);break;case 1:a.i+=8;break;case 2:d=FQ(a);a.i+=d;break;case 5:a.i+=4}}return!1};
HQ=function(a,b,c){c=void 0===c?0:c;return GQ(a,b)?FQ(a):c};
IQ=function(a,b){var c=void 0===c?"":c;if(!GQ(a,b))return c;b=FQ(a);if(!b)return"";c=bD(a.u,a.i,b);a.i+=b;return g.C.TextDecoder?(new TextDecoder).decode(c):g.Ya(c)};
JQ=function(a,b){var c=void 0===c?null:c;if(!GQ(a,b))return c;b=FQ(a);c=bD(a.u,a.i,b);a.i+=b;return c};
Zwa=function(){this.i=0;this.B=void 0;this.C=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer);g.C.TextEncoder&&(this.B=new TextEncoder)};
KQ=function(a,b){b=a.i+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;c<b;)c*=2;b=new Uint8Array(c);b.set(a.u);a.u=b;a.view=new DataView(a.u.buffer)}};
LQ=function(a,b){if(268435455<b){KQ(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(KQ(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};
MQ=function(a,b,c){LQ(a,b<<3|0);LQ(a,c)};
NQ=function(a,b,c){LQ(a,b<<3|2);b=c.length;LQ(a,b);KQ(a,b);a.u.set(c,a.i);a.i+=b};
PQ=function(a,b,c){c=a.B?a.B.encode(c):new Uint8Array(OQ(g.Xa(c)).buffer);NQ(a,b,c)};
$wa=function(a){LQ(a,18);a.C.push(a.i);a.i+=2};
axa=function(a){var b=a.C.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)};
QQ=function(a){var b=new EQ(new YC([Lc(decodeURIComponent(a))]));a=IQ(b,2);b=HQ(b,4);var c=bxa[b];if("undefined"===typeof c)throw a=new g.$v("Failed to recognize field number",{name:"EntityKeyHelperError",taa:b}),g.Ty(a),a;return{AR:b,entityType:c,entityId:a}};
RQ=function(a,b){var c=new Zwa;PQ(c,2,a);a=cxa[b];if("undefined"===typeof a)throw b=new g.$v("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Ty(b),b;MQ(c,4,a);MQ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.i);return encodeURIComponent(g.Hc(b))};
SQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a};
TQ=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);h<f.length;h++)0>e.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))};
ZQ=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.i=16;if(!dxa){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);UQ=new Uint8Array(256);VQ=[];WQ=[];XQ=[];YQ=[];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;UQ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;VQ.push(b<<24|e<<16|e<<8|h);WQ.push(h<<24|VQ[f]>>>8);XQ.push(e<<24|WQ[f]>>>8);YQ.push(e<<24|XQ[f]>>>8)}dxa=!0}e=[];for(c=0;4>c;c++)e.push(a[4*c]<<
24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(UQ[a>>16&255]^d)<<24|UQ[a>>8&255]<<16|UQ[a&255]<<8|UQ[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e};
exa=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};
fxa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(h=4;40>h;){var l=VQ[c>>>24]^WQ[d>>16&255]^XQ[e>>8&255]^YQ[f&255]^b[h++];var m=VQ[d>>>24]^WQ[e>>16&255]^XQ[f>>8&255]^YQ[c&255]^b[h++];var n=VQ[e>>>24]^WQ[f>>16&255]^XQ[c>>8&255]^YQ[d&255]^b[h++];f=VQ[f>>>24]^WQ[c>>16&255]^XQ[d>>8&255]^YQ[e&255]^b[h++];c=l;d=m;e=n}a=a.u;c=[c,d,e,f];for(d=0;16>d;)a[d++]=UQ[c[0]>>>24]^b[h]>>>24,a[d++]=UQ[c[1]>>
16&255]^b[h]>>16&255,a[d++]=UQ[c[2]>>8&255]^b[h]>>8&255,a[d++]=UQ[c[3]&255]^b[h++]&255,c.push(c.shift())};
$Q=function(){var a;if(!gxa&&!g.Vw){var b=null===(a=window.crypto)||void 0===a?void 0:a.subtle;if((null===b||void 0===b?0:b.importKey)&&(null===b||void 0===b?0:b.sign)&&(null===b||void 0===b?0:b.encrypt))return b}};
aR=function(a){this.B=a};
bR=function(a){this.u=a};
cR=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
ixa=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],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,q,t=0;64>t;t++)p=n+hxa[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),q=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
p+q;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]=h+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};
kxa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.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;jxa(a);return b};
jxa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.C=0;a.u=0};
dR=function(a,b){b=void 0===b?{}:b;g.$v.call(this,lxa[a],Object.assign({name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,dR.prototype)};
mxa=function(a){return new dR("WRONG_DATA_TYPE",{wR:a})};
nxa=function(a){return a instanceof Error?new dR("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new dR("UNKNOWN_ENCODE_ERROR")};
oxa=function(a){return a instanceof Error?new dR("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new dR("UNKNOWN_DECODE_ERROR")};
pxa=function(a,b){a=a instanceof dR?a:b(a);g.Ty(a);throw a;};
qxa=function(){};
rxa=function(a,b,c){try{return a.u(b,c)}catch(d){pxa(d,oxa)}};
eR=function(a){a=(new TextEncoder).encode(a).slice(0,16);var b=new Uint8Array(16);b.set(a);return b};
fR=function(a){this.i=a};
gR=function(){};
sxa=function(){this.i={};this.i[0]=new gR;if(!g.vs("aes_pes_encoder_killswitch")){var a=this.i;try{var b=aw();var c=eR(b);var d=new fR(new bR(c),new aR(c))}catch(e){throw a=new dR("KEY_CREATION_FAILED"),g.Ty(a),a;}a[1]=d}};
hR=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new dR("INVALID_ENCODER_VERSION",{wR:b}),g.Ty(b),b;return a};
uxa=function(a){var b=txa[a];if(b)return b;g.Bz(new g.$v("Entity model not found.",{entityType:a}))};
vxa=function(a){var b=new sxa,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");Fw(c,{},function(e){var f=e.getValue(),h=rxa(hR(b,f.version),f.data,f.key),l=QQ(f.key).entityType;l=uxa(l);if(!l)return e.continue();l=(new l(h)).oe();h=[];l=g.r(l);for(var m=l.next();!m.done;m=l.next())h.push(Aw(d,{parentEntityKey:f.key,childEntityKey:m.value}));return kw.all(h).then(function(){return e.continue()})})};
wxa=function(){if(iR)return iR();var a={};iR=sx("PersistentEntityStoreDb",{Gs:(a.EntityStore={Mm:1},a.EntityAssociationStore={Mm:2},a),dx:!1,upgrade:function(b,c,d){c(1)&&Ew(ww(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=ww(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Ew(b,"byParentEntityKey","parentEntityKey"),Ew(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&vxa(d)},
version:g.vs("pes_migrate_association_data")?3:2});return iR()};
xxa=function(a,b){this.i=a;this.B=b;this.u={}};
yxa=function(a,b){return rxa(hR(a.B,b.version),b.data,b.key)};
jR=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 yxa(a,d)}})};
kR=function(a,b,c){return c?(c=c.map(function(d){return jR(a,d,b)}),kw.all(c)):Kw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return yxa(a,e)})})};
mR=function(a,b,c){var d=SQ(b),e=hR(a.B,1);a:{try{var f=e.B(b,d);break a}catch(l){pxa(l,nxa)}f=void 0}var h={key:d,entityType:c,data:f,version:1};return a.i.objectStore("EntityStore").get(d).then(function(l){if(l&&l.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return kw.all([Aw(a.i.objectStore("EntityStore"),h),
zxa(a,b,c)])}).then(function(){lR(a,d,c);
return d})};
nR=function(a,b,c){b=b.map(function(d){return mR(a,d,c)});
return kw.all(b)};
oR=function(a,b,c){if(null===c||void 0===c?0:c.gJ){var d=new Set;return Axa(a,b,d).then(function(){for(var f=[],h=g.r(d),l=h.next();!l.done;l=h.next())f.push(oR(a,l.value));return kw.all(f).then(function(){})})}var e=QQ(b).entityType;
return kw.all([a.i.objectStore("EntityStore").delete(b),pR(a,b)]).then(function(){lR(a,b,e)})};
Bxa=function(a,b){return Lw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return kw.all([c.delete(),pR(a,c.bz())]).then(function(){lR(a,c.bz(),b);return c.continue()})})};
lR=function(a,b,c){var d=a.u[c];d||(d=new Set,a.u[c]=d);d.add(b)};
Cxa=function(a,b,c){var d=SQ(b);c=uxa(c);if(!c)return kw.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.r(c.oe());for(var e=c.next();!e.done;e=c.next())b.push(Aw(a,{parentEntityKey:d,childEntityKey:e.value}));return kw.all(b).then(function(f){return f.map(function(h){return h[1]})})};
pR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
zxa=function(a,b,c){var d=SQ(b);return pR(a,d).then(function(){return Cxa(a,b,c)})};
Axa=function(a,b,c){if(c.has(b))return kw.resolve(void 0);c.add(b);return Dxa(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=kw.resolve(void 0),f={};
d=g.r(d);for(var h=d.next();!h.done;f={uB:f.uB},h=d.next())f.uB=h.value,e=e.then(function(l){return function(){return Axa(a,l.uB,c)}}(f));
return e}).then(function(){})};
Dxa=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return Kw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(Kw(c.index("byChildEntityKey"),f.childEntityKey));return kw.all(e)}).then(function(d){var e=[];
d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})};
qR=function(a,b){g.I.call(this);this.token=a;this.u=b;this.i=[];a=new g.C.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+aw());a.onmessage=this.B.bind(this);this.channel=a};
rR=function(a,b,c){return g.H(a,function e(){var f=this,h,l,m,n,p;return g.B(e,function(q){if(1==q.i)return h=f,g.z(q,wxa().open(),2);if(3!=q.i)return l=q.u,g.z(q,yw(l,["EntityStore","EntityAssociationStore"],b,function(t){m=new xxa(t,h.u);return c(m)}),3);
n=q.u;m&&(p=m.u,0<Object.keys(p).length&&(f.channel.postMessage(p),Exa(f,p)));return q.return(n)})})};
sR=function(a,b){a.i.push(b);return function(){var c=a.i.indexOf(b);0<=c&&a.i.splice(c,1)}};
tR=function(a,b,c){return rR(a,"readwrite",function(d){return mR(d,b,c)})};
Fxa=function(a,b){return rR(a,"readwrite",function(c){return nR(c,b,"offlineOrchestrationActionWrapperEntity")})};
Gxa=function(a,b){return rR(a,"readwrite",function(c){return oR(c,b,void 0)})};
uR=function(a,b,c){return rR(a,"readonly",function(d){return jR(d,b,c)})};
vR=function(a,b,c){return rR(a,"readonly",function(d){return kR(d,b,c)})};
Exa=function(a,b){a=g.r(a.i);for(var c=a.next();!c.done;c=a.next())c=c.value,c=c(b),Hxa&&c&&Hxa.push(c)};
xR=function(){wR||(wR=Ixa());return wR};
Ixa=function(){return g.H(this,function b(){var c,d,e;return g.B(b,function(f){if(1==f.i)return ta(f,2),g.z(f,g.Yw(),4);if(2!=f.i){c=f.u;if(!c||!bw()||"undefined"===typeof g.C.BroadcastChannel)return f.return();d=new sxa;return f.return(new qR(c,d))}e=va(f);e instanceof Error&&g.Ty(e);return f.return()})})};
Lxa=function(a){var b=Jxa;return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i){e=a.mutations;if(!e||0>=e.length)return f.return();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return g.z(f,Kxa(e),2)}e.length=0;g.sa(f)})})};
Kxa=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){return 1==e.i?g.z(e,xR(),2):(d=e.u)?g.z(e,rR(d,"readwrite",function(f){for(var h=[],l=g.r(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=Yb(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(mR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"===
m.type&&h.push(oR(f,m.entityKey)))}return kw.all(h)}),0):e.return()})})};
Mxa=function(a){return void 0!==a};
Nxa=function(){this.locks=navigator.locks};
Oxa=function(){try{var a=g.Ga("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 Nxa,g.Fa("ytglobal.locks_",a,void 0),a}catch(d){}};
yR=function(a,b,c){g.Bz(new g.$v("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.Bz(b)};
zR=function(){};
AR=function(){};
BR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+aw("CacheStorage get")};
Pxa=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){d=c;if(void 0!==CR)return e.return(CR);CR=new Promise(function(f){return g.H(d,function l(){var m;return g.B(l,function(n){switch(n.i){case 1:return ta(n,2),g.z(n,DR.open("test-only"),4);case 4:return g.z(n,DR.delete("test-only"),5);case 5:ua(n,3);break;case 2:if(m=va(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})});
return e.return(CR)})})};
FR=function(){return g.H(this,function b(){return g.B(b,function(c){if(1==c.i)return g.z(c,Pxa(),2);if(!c.u)return c.return(void 0);ER||(ER=new AR);return c.return(ER)})})};
Qxa=function(){return g.H(this,function b(){var c;return g.B(b,function(d){return 1==d.i?g.z(d,FR(),2):(c=d.u)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})};
Rxa=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,FR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.z(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.z(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})};
Sxa=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.z(f,FR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.z(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.z(f,e.addAll(a),0)})})};
GR=function(a,b){var c=b.ut,d,e;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;a.isRefresh=null!==(d=c.isRefresh)&&void 0!==d?d:!1;a.softErrorCount=null!==(e=c.transferRetryCount)&&void 0!==e?e:0;g.Vv("offlineTransferStatusChanged",a)};
Txa=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"}};
HR=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)};
IR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey};
JR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey};
LR=function(a,b,c){return g.H(this,function e(){var f,h,l,m,n,p,q,t,u,x,y,A,F,G,E,K,V,L,W,oa,wa,vb,ob;return g.B(e,function($b){switch($b.i){case 1:return f=RQ(a,"ytMainVideoEntity"),h=RQ(a,"ytMainChannelEntity"),l=RQ(a,"transfer"),g.z($b,rR(b,"readonly",function(Uc){return kw.all([jR(Uc,f,"ytMainVideoEntity"),jR(Uc,h,"ytMainChannelEntity"),jR(Uc,l,"transfer"),kR(Uc,"ytMainChannelEntity"),kR(Uc,"offlineOrchestrationActionWrapperEntity")])}),2);
case 2:m=$b.u;n=g.r(m);p=n.next().value;q=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;y=p;A=q;F=t;G=u;E=x;if(!y&&!A){$b.fb(3);break}K=y?KR(y.thumbnail):[];if(!A){V=[];$b.fb(4);break}return g.z($b,Uxa(A,G),5);case 5:V=$b.u;case 4:return L=V,g.z($b,Rxa(K.concat(L)),3);case 3:W=[];g.vs("orchestration_use_cascading_delete")||W.push(RQ(a,"ytMainDownloadedVideoEntity"),f,h,RQ(a,"playbackData"),l,RQ(a,"offlineVideoPolicy"),RQ(a,"offlineVideoStreams"));oa=g.r(E);for(wa=oa.next();!wa.done;wa=
oa.next())vb=wa.value,ob=QQ(vb.key).entityId,ob!==a||Vxa(c,vb.actionProto)||W.push(vb.key);return g.z($b,rR(b,"readwrite",function(Uc){var bd=W.map(function(Se){return oR(Uc,Se)});
g.vs("orchestration_use_cascading_delete")&&bd.push(oR(Uc,RQ(a,"ytMainDownloadedVideoEntity"),{gJ:!0}));return kw.all(bd)}),7);
case 7:Wxa(F),g.sa($b)}})})};
Yxa=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){if(1==m.i)return g.z(m,rR(a,"readwrite",function(n){var p=kR(n,"transfer"),q=kR(n,"offlineOrchestrationActionWrapperEntity"),t=g.vs("orchestration_use_cascading_delete");return kw.all([p,q]).then(function(u){u=g.r(u);var x=u.next().value,y=u.next().value;u=Xxa.map(function(E){return Bxa(n,E)});
y=g.r(y);for(var A=y.next();!A.done;A=y.next()){A=A.value;var F="ytMainDownloadedVideoEntity"===QQ(A.actionProto.entityKey).entityType,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===A.actionProto.actionType;Vxa(b,A.actionProto)||F&&(!F||G)||u.push(oR(n,A.key,{gJ:t}))}return kw.all(u).then(function(){return x})})}),2);
e=m.u;f=g.r(e);for(h=f.next();!h.done;h=f.next())l=h.value,Wxa(l);return g.z(m,Qxa(),0)})})};
Vxa=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey};
Wxa=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=QQ(a.key).entityId;GR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,ut:a})}};
KR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
Uxa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q;return g.B(d,function(t){e=KR(a.avatar);f=g.r(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.r(KR(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,q=e.indexOf(p),-1!==q&&e.splice(q,1);return t.return(e)})})};
$xa=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.z(e,Zxa(a),2);d=e.u;g.Vv("offlineStateSnapshot",d);g.sa(e)})})};
Zxa=function(a){return g.H(this,function c(){var d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G,E;return g.B(c,function(K){if(1==K.i)return g.z(K,rR(a,"readonly",function(V){return kR(V,"playbackData").then(function(L){var W=L.map(function(wa){return wa.transfer}).filter(function(wa){return!!wa}),oa=L.map(function(wa){return wa.offlineVideoPolicy}).filter(function(wa){return!!wa});
W=kR(V,"transfer",W);oa=kR(V,"offlineVideoPolicy",oa);return kw.all([W,oa]).then(function(wa){var vb=g.r(wa);wa=vb.next().value;vb=vb.next().value;return[L,wa,vb]})})}),2);
d=K.u;e=g.r(d);f=e.next().value;h=e.next().value;l=e.next().value;m=f;n=h;p=l;q={};t={};u=g.r(n);for(x=u.next();!x.done;x=u.next())(y=x.value)&&(q[y.key]=y);A=g.r(p);for(F=A.next();!F.done;F=A.next())(G=F.value)&&(t[G.key]=G);E=m.map(function(V){var L=q[V.transfer],W=t[V.offlineVideoPolicy];V=QQ(W.key).entityId;if("OFFLINE_VIDEO_POLICY_ACTION_DISABLE"===W.action){var oa="OFFLINE_VIDEO_STATE_DISABLED";W.expirationTimestamp&&Number(W.expirationTimestamp)<Date.now()/1E3&&(oa="OFFLINE_VIDEO_STATE_EXPIRED");
L=oa}else if("OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED"===W.action)L="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(null===L||void 0===L?void 0:L.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":oa="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":oa="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":oa="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":oa="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":oa=
"OFFLINE_VIDEO_STATE_PLAYABLE";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":oa="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:oa="OFFLINE_VIDEO_STATE_UNKNOWN"}if("OFFLINE_VIDEO_STATE_OFFLINE_FAILED"===oa)switch(null===L||void 0===L?void 0:L.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":oa="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":oa="OFFLINE_VIDEO_STATE_STREAMS_MISSING";
break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":oa="OFFLINE_VIDEO_STATE_NETWORK_ERROR"}L=oa}return{id:V,videoState:L}});
return K.return({offlineVideos:E})})})};
bya=function(a,b,c,d){var e=this,f;this.S=a;this.Z=b;this.visibility=c;this.N=d;this.C=this.J=this.D=this.u=this.i=!1;this.K=new g.M(function(){aya(e)});
null===(f=this.visibility)||void 0===f?void 0:f.subscribe("visibilitystatechange",function(){e.Ce()})};
cya=function(a){if(!a.u&&!a.i){var b=Oxa();if(b){a.u=!0;var c=aw("OfflineLockManager");b.request("woffle_orchestration_leader:"+c,{},function(){return g.H(a,function e(){var f,h=this,l,m;return g.B(e,function(n){switch(n.i){case 1:return ta(n,2),h.B=new Ek,h.i=!0,h.u=!1,g.z(n,h.S(),4);case 4:return g.z(n,h.B.promise,5);case 5:ua(n,0);break;case 2:l=va(n),(null===(f=h.N)||void 0===f?0:f.call(h,"wo_relinquish_leadership_on_lock_request_error"))||aya(h),l instanceof Error&&(m=l,m.args=[{name:"WoLockManagerError",
iA:l.name}],g.Ty(m)),g.sa(n)}})})})}}};
dya=function(a){a.i&&(a.C=!0,MR(a))};
eya=function(a,b){a.i&&(a.J=b,MR(a))};
MR=function(a){a.visibility&&(a.J&&a.D&&a.C&&a.visibility.isBackground()?g.Dq(a.K,6E4):a.K.stop())};
aya=function(a){a.B&&a.B.resolve();a.i=!1;a.u=!1;a.Z()};
NR=function(a){g.I.call(this);this.api=a;"undefined"!==typeof g.C.BroadcastChannel&&(this.channel=new g.C.BroadcastChannel("PLAYER_OFFLINE_ERROR_SYNC:"+aw()),this.channel.onmessage=this.i.bind(this))};
OR=function(a,b){var c;a.api.Oa("onOfflineOperationFailure",b);null===(c=a.channel)||void 0===c?void 0:c.postMessage(b)};
PR=function(a){this.i=a};
QR=function(a,b,c,d){this.status=a;this.i=b;this.u=c;this.failureReason=d};
fya=function(a){return new Promise(function(b){Bha(Nu(),function(){b()},a)})};
RR=function(){PR.apply(this,arguments)};
SR=function(a,b){this.i=a;this.X=b};
iya=function(a,b){var c,d;return g.H(a,function f(){var h,l,m=this,n,p,q;return g.B(f,function(t){switch(t.i){case 1:h=b.entityKey;l=null===(d=null===(c=b.actionMetadata)||void 0===c?void 0:c.playbackDataActionMetadata)||void 0===d?void 0:d.isEnqueuedForExpiredStreamUrlRefetch;ta(t,2);var u;var x=null!==(u=b.actionMetadata)&&void 0!==u&&u.playbackDataActionMetadata?{maximumDownloadQuality:b.actionMetadata.playbackDataActionMetadata.maximumDownloadQuality}:void 0;return g.z(t,gya(m,h,{isEnqueuedForExpiredStreamUrlRefetch:l,
yO:x}),4);case 4:return(n=t.u)?g.z(t,hya(m,n,b),5):t.return(TR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 5:return t.return(TR(b,!0,n.orchestrationActions));case 2:return p=va(t),q="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",p instanceof fw&&"QUOTA_EXCEEDED"===p.type&&(q="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),yR("PDE handleAdd error"),t.return(TR(b,!1,void 0,q))}})})};
jya=function(a,b){return g.H(a,function d(){var e,f=this,h,l,m,n,p,q,t,u,x,y,A,F,G;return g.B(d,function(E){switch(E.i){case 1:return e=b.entityKey,g.z(E,rR(f.i,"readonly",function(K){var V=jR(K,e,"playbackData"),L=jR(K,RQ(QQ(b.entityKey).entityId,"offlineVideoPolicy"),"offlineVideoPolicy");K=jR(K,RQ(QQ(b.entityKey).entityId,"transfer"),"transfer");return kw.all([V,L,K])}),2);
case 2:h=E.u;l=g.r(h);m=l.next().value;n=l.next().value;p=l.next().value;q=m;t=n;u=p;if(!q||!t)return E.return(TR(b,!0));x={lastPlayerResponseTimestampSeconds:q.playerResponseTimestamp,offlineToken:t.offlineToken};y={};if(null===u||void 0===u?0:u.maximumDownloadQuality)y.maximumDownloadQuality=u.maximumDownloadQuality;ta(E,3);return g.z(E,gya(f,e,{refreshData:x,yO:y}),5);case 5:return(A=E.u)?g.z(E,hya(f,A,b),6):E.return(TR(b,!1,void 0,"OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED"));case 6:return E.return(TR(b,
!0,A.orchestrationActions));case 3:return F=va(E),G="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",F instanceof fw&&"QUOTA_EXCEEDED"===F.type&&(G="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),E.return(TR(b,!1,void 0,G))}})})};
gya=function(a,b,c){return g.H(a,function e(){var f,h=this,l,m;return g.B(e,function(n){f=g.mM();var p=h.X,q=c.refreshData,t=c.isEnqueuedForExpiredStreamUrlRefetch,u=c.yO,x={entityKey:b};q&&(x.refreshData=q);t&&(x.isExpiredStreamUrlRefetch=t);u&&(x.downloadParameters=u);l={context:nua(p),signatureTimestamp:18900,videos:[x]};m=g.XL(kya);return n.return(g.tK(f,l,m))})})};
hya=function(a,b,c){return g.H(a,function e(){var f,h=this;return g.B(e,function(l){if(1==l.i){if(!b.frameworkUpdates||!b.frameworkUpdates.entityBatchUpdate)return l.return();if(!(b.frameworkUpdates.entityBatchUpdate.mutations&&0<b.frameworkUpdates.entityBatchUpdate.mutations.length&&"ENTITY_MUTATION_TYPE_DELETE"===b.frameworkUpdates.entityBatchUpdate.mutations[0].type))return l.fb(2);f=QQ(b.frameworkUpdates.entityBatchUpdate.mutations[0].entityKey).entityId;return g.z(l,LR(f,h.i,c),2)}return g.z(l,
Lxa(b.frameworkUpdates.entityBatchUpdate),0)})})};
TR=function(a,b,c,d){return new QR(b?"OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS":"OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",HR(a),c,d)};
UR=function(){PR.apply(this,arguments)};
mya=function(a,b){return g.H(a,function d(){var e,f=this,h;return g.B(d,function(l){switch(l.i){case 1:return e=HR(b),g.z(l,uR(f.i,b.entityKey,"transfer"),2);case 2:if(h=l.u)return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(l,3);return g.z(l,lya(f,b),5);case 5:ua(l,4);break;case 3:return va(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",
e))}})})};
nya=function(a,b){return g.H(a,function d(){var e,f=this,h;return g.B(d,function(l){switch(l.i){case 1:return e=HR(b),g.z(l,uR(f.i,b.entityKey,"transfer"),2);case 2:h=l.u;if(!h||"TRANSFER_STATE_COMPLETE"!==h.transferState)return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(l,3);return g.z(l,lya(f,b,!0),5);case 5:ua(l,4);break;case 3:return va(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));
case 4:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
lya=function(a,b,c){c=void 0===c?!1:c;var d;return g.H(a,function f(){var h,l,m,n=this;return g.B(f,function(p){if(1==p.i)return h=null===(d=b.actionMetadata)||void 0===d?void 0:d.transferEntityActionMetadata,l={key:b.entityKey,transferState:"TRANSFER_STATE_TRANSFER_IN_QUEUE",cotn:zy(),enqueuedTimestampMs:Date.now().toString(),maximumDownloadQuality:null===h||void 0===h?void 0:h.maximumDownloadQuality,preferredAudioTrack:null===h||void 0===h?void 0:h.preferredAudioTrack,transferRetryCount:0,isRefresh:c},
m=QQ(l.key).entityId,g.z(p,rR(n.i,"readwrite",function(q){var t=[];c&&t.push(oR(q,RQ(m,"offlineVideoStreams")));t.push(mR(q,l,"transfer"));return kw.all(t)}),2);
GR({transferStatusType:"TRANSFER_STATUS_TYPE_ENQUEUED",statusType:"ADDED_TO_QUEUE"},{videoId:m,ut:l});g.sa(p)})})};
pya=function(a){return g.H(this,function c(){var d,e,f,h,l;return g.B(c,function(m){if(1==m.i)return d=g.mM(),e={context:nK(),videoIds:[a]},f=g.XL(oya),g.z(m,g.tK(d,e,f),2);h=m.u;if(!h)throw Error("Network request failed");if(!h.videos||1!==h.videos.length)throw Error("No data");l=h.videos[0].offlineVideoData;if(!l)throw Error("No data");return m.return(l)})})};
VR=function(a,b){this.i=a;this.X=b};
sya=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m,n,p;return g.B(d,function(q){switch(q.i){case 1:return e=HR(b),f=QQ(b.entityKey),h=f.entityId,ta(q,2),g.z(q,qya(l,h),4);case 4:ua(q,3);break;case 2:return m=va(q),n="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",m instanceof fw&&"QUOTA_EXCEEDED"===m.type&&(n="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),q.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,n));case 3:var t;var u=null!==(t=b.actionMetadata)&&
void 0!==t&&t.ytMainDownloadedVideoEntityActionMetadata?{playbackDataActionMetadata:{maximumDownloadQuality:b.actionMetadata.ytMainDownloadedVideoEntityActionMetadata.maximumDownloadQuality}}:void 0;p=rya("OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",h,u);return q.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,[p]))}})})};
tya=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m,n,p,q;return g.B(d,function(t){switch(t.i){case 1:return e=HR(b),f=QQ(b.entityKey),h=f.entityId,g.z(t,uR(l.i,b.entityKey,"ytMainDownloadedVideoEntity"),2);case 2:m=t.u;if(!m)return t.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e));ta(t,3);return g.z(t,qya(l,h,m.addedTimestampMillis),5);case 5:n=rya("OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",h);ua(t,4);break;case 3:return p=va(t),p instanceof Error&&"No data"===p.message?
g.z(t,LR(h,l.i,b),4):(q="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN",p instanceof fw&&"QUOTA_EXCEEDED"===p.type&&(q="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),t.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,q)));case 4:return t.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e,n?[n]:void 0))}})})};
uya=function(a,b){return g.H(a,function d(){var e,f,h=this;return g.B(d,function(l){switch(l.i){case 1:return e=HR(b),ta(l,2),f=QQ(b.entityKey).entityId,"!*$_ALL_VIDEOS_!*$"===f?g.z(l,Yxa(h.i,b),5):g.z(l,LR(f,h.i,b),5);case 5:ua(l,3);break;case 2:return va(l),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",e,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 3:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",e))}})})};
qya=function(a,b,c){return g.H(a,function e(){var f,h=this,l,m,n,p;return g.B(e,function(q){switch(q.i){case 1:return g.z(q,pya(b),2);case 2:return f=q.u,g.z(q,vya(h,f,c),3);case 3:l=q.u;m=l.videoEntity;n=l.channelEntity;ta(q,4);var t=KR(m.thumbnail),u=KR(n.avatar);return g.z(q,Sxa(t.concat(u)),6);case 6:ua(q,0);break;case 4:p=va(q);if(!h.X.N("woffle_disable_thumbnails"))throw p;g.sa(q)}})})};
vya=function(a,b,c){var d;return g.H(a,function f(){var h,l,m,n,p=this;return g.B(f,function(q){if(1==q.i){if(!(b&&b.channel&&b.channel.offlineChannelData&&b.videoId))throw Error("Invalid OfflineVideoData");c||(c=Date.now().toString());h=null===(d=b.channel)||void 0===d?void 0:d.offlineChannelData;l={id:RQ(b.videoId,"ytMainChannelEntity"),channelId:h.channelId,title:h.title,avatar:h.thumbnail};m={id:RQ(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:l.id};n={id:RQ(b.videoId,"ytMainDownloadedVideoEntity"),video:m.id,playbackData:RQ(b.videoId,"playbackData"),offlineVideoPolicy:RQ(b.videoId,"offlineVideoPolicy"),addedTimestampMillis:c};return g.z(q,rR(p.i,"readwrite",function(t){var u=mR(t,l,"ytMainChannelEntity"),x=mR(t,m,"ytMainVideoEntity");
t=mR(t,n,"ytMainDownloadedVideoEntity");return kw.all([u,x,t])}),2)}return q.return({videoEntity:m,
channelEntity:l,qaa:n})})})};
rya=function(a,b,c){b=RQ(b,"playbackData");c=Object.assign(Object.assign({},c),{priority:1,retryScheduleIntervalsInSeconds:wya});return{actionType:a,entityKey:b,actionMetadata:c}};
xya=function(a,b,c){return new pG(a,{cotn:b,raw_player_response:c,download_media:!0,start:Infinity,disable_watch_next:!0})};
yya=function(){return{priority:1,retryScheduleIntervalsInSeconds:[1,2,4]}};
WR=function(a,b,c,d,e,f,h,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=h;this.postreqActionIds=l;this.hasChildActionFailed=n;this.retryScheduleIndex=0;this.i=p||Date.now();this.retryScheduleIndex=m||0};
YR=function(a){return{key:RQ(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()}};
zya=function(){this.i=new Map};
Aya=function(){ZR||(ZR=new zya);return ZR};
Bya=function(a,b){return{eventType:{flowEventNamespace:"FLOW_EVENT_NAMESPACE_OFFLINE_ORCHESTRATION",flowEventType:a},metadata:b,statusCode:void 0,csn:void 0}};
Cya=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=zy(),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.Vv("flowEvent",a,void 0)};
Dya=function(a,b,c){if(!a.action.entityKey)throw Error("entityKey is missing.");var d=QQ(a.action.entityKey);a={entityType:d.AR,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};
$R=function(a,b){var c={offlineOrchestrationContext:Dya(a)};b=Bya(b,c);Cya(Aya(),b,a.rootActionId)};
aS=function(a,b,c){c=void 0===c?[]:c;b={offlineOrchestrationContext:Dya(a,b,c)};b=Bya(3,b);Cya(Aya(),b,a.rootActionId)};
Eya=function(){this.actions=[]};
Fya=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,$R(c,1),a.actions.push(c);a.actions.sort(a.i)};
Gya=function(a,b){a=g.r(a.actions);for(var c=a.next();!c.done;c=a.next())if(c.value.actionId===b)return!0;return!1};
bS=function(a,b,c,d){g.I.call(this);var e=this;this.i=a;this.ma=b;this.Z=c;this.D=d;this.u=new Eya;this.S=new Jx;this.B=new g.M(function(){Hya(e)});
this.J=NaN;g.J(this,this.B);this.K=sR(this.i,this.Y.bind(this))};
Kya=function(a,b,c,d){return g.H(this,function f(){var h;return g.B(f,function(l){if(1==l.i)return h=new bS(a,b,c,d),g.z(l,Iya(h),2);Jya(h);return l.return(h)})})};
Jya=function(a){return a.C?Promise.resolve():cS(a)};
cS=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m;return g.B(c,function(n){switch(n.i){case 1:if(d.C)throw Error("Already processing an action");if(d.isDisposed())return n.return();e=d.u.actions.shift();var p=d.Z;p.i&&(p.D=!e,MR(p));if(void 0===e)return n.return();d.C=e;if(f=d.ma[e.entityType]){n.fb(2);break}d.C=void 0;return g.z(n,cS(d),3);case 3:return n.return();case 2:return ta(n,4,5),$R(e,2),g.z(n,f.u(e.action),7);case 7:return h=n.u,g.z(n,Lya(d,e,h),5);case 5:xa(n);d.C=void 0;ya(n,
6);break;case 4:return l=va(n),yR("Orchestration error",l),ta(n,9),g.z(n,Mya(d,e),11);case 11:ua(n,5);break;case 9:m=va(n);yR("Orchestration retry error",m);3>e.retryScheduleIndex&&Fya(d.u,[e]);n.fb(5);break;case 6:return g.z(n,cS(d),0)}})})};
Lya=function(a,b,c){var d;return g.H(a,function f(){var h=this,l,m,n,p,q;return g.B(f,function(t){if(1==t.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){p=void 0;try{p=null===(d=c.u)||void 0===d?void 0:d.map(function(u){return l.createAction(u,b)})}catch(u){return aS(b,c),q={entityKey:b.action.entityKey,
failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},OR(h.D,q),yR("Orchestration subactions creation error",u),t.return()}aS(b,c,p);return g.z(t,rR(h.i,"readwrite",function(u){var x=[];if(p){var y=p.map(function(A){return YR(A)});
x.push(nR(u,y,"offlineOrchestrationActionWrapperEntity"))}y=YR(b);x.push(oR(u,y.key));return kw.all(x)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return t.fb(0);
aS(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.z(t,Mya(h,b),0);m=(null===c||void 0===c?0:c.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";n={entityKey:b.action.entityKey,failureReason:m};OR(h.D,n);yR("Orchestration result is not retryable, deleting action");return g.z(t,Gxa(h.i,YR(b).key),0)}$R(b,4);g.sa(t)})})};
dS=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t,u,x,y,A;return g.B(d,function(F){f=[];h=Infinity;l=4E3;m=g.r(b);for(n=m.next();!n.done;n=m.next())p=n.value,q=Number(p.enqueueTimeSec),t=Nya(q),u=p.retryScheduleIndex,x=null!=u&&0<u,0<t&&x?(h=Math.min(h,q),l=Math.min(t,l)):f.push(p);isFinite(h)&&(!e.B.isActive()||h<e.J)&&(e.J=h,e.B.start(l));e.S.Se()||(y=f.length,f=f.filter(function(G){var E;G=(null===(E=G.actionProto)||void 0===E?void 0:E.actionType)||"OFFLINE_ORCHESTRATION_ACTION_TYPE_UNKNOWN";
return!Oya.includes(G)}),A=f.length<y,!e.B.isActive()&&A&&e.B.start(1));
0<f.length&&Pya(e,f);return g.z(F,Jya(e),0)})})};
Hya=function(a){g.H(a,function c(){var d=this,e,f,h,l,m,n,p;return g.B(c,function(q){if(1==q.i)return g.z(q,Qya(d),2);e=q.u;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=QQ(m.key),p=n.entityId,Gya(d.u,p)||f.push(m);return g.z(q,dS(d,f),0)})})};
Nya=function(a){a=1E3*a-Date.now();return 4E3<a?4E3:a};
Mya=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){var h,l,m=(null===(l=null===(h=b.action)||void 0===h?void 0:h.actionMetadata)||void 0===l?void 0:l.retryScheduleIntervalsInSeconds)||[1,2,4];h=1;b.retryScheduleIndex<m.length&&(h=m[b.retryScheduleIndex]);b.i=1E3*h+Date.now();b.retryScheduleIndex++;return g.z(f,Rya(e,[b]),0)})})};
Iya=function(a){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return g.z(f,vR(d.i,"offlineOrchestrationActionWrapperEntity"),2);e=f.u;return g.z(f,dS(d,e),0)})})};
Pya=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=QQ(c.key),e=QQ(c.actionProto.entityKey);c=new WR(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&&Fya(a.u,[c])})};
Qya=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return g.z(h,vR(e.i,"offlineOrchestrationActionWrapperEntity",b),2);f=h.u;return h.return(f.filter(Mxa))})})};
Rya=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return YR(c)});
return Fxa(a.i,b)};
Sya=function(){var a=Math.floor(3*Math.random());return 1>a?{bucket:"SHORT",duration:Math.floor(Pf(5,30))}:2>a?{bucket:"MEDIUM",duration:Math.floor(Pf(80,500))}:{bucket:"LONG",duration:Math.floor(Pf(5E3,3E4))}};
Tya=function(a,b,c){var d=void 0===d?Sya:d;var e=void 0===e?bha:e;this.u=a;this.C=c;this.J=d;this.D=e;this.i=0};
Uya=function(){for(var a=Math.floor(10*Math.random()),b=[],c=0;c<a;c++)b.push(RQ("child"+c,"offlineabilityEntity"));return b};
Vya=function(){this.i=void 0};
Xya=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m,n,p;return g.B(d,function(q){f=e;h=b.videoId;l=b.V();m=!0;if(b.captionTracks.length)n=dpa(b),e.i=new g.cN(l,b,n);else if(b.Zb)p=g.kpa(b),e.i=new g.eN(l,b.Zb,h,p,b.Qj),m=b.Qj;else return q.return();return q.return(new Promise(function(t){var u;null===(u=f.i)||void 0===u?void 0:u.Bs(function(){return g.H(f,function y(){var A=this;return g.B(y,function(F){if(1==F.i)return g.z(F,Wya(A,h,m),2);t();g.sa(F)})})})}))})})};
Wya=function(a,b,c){c=void 0===c?!0:c;return g.H(a,function e(){var f=this,h,l,m,n,p,q,t,u,x,y,A,F,G,E;return g.B(e,function(K){switch(K.i){case 1:if(!f.i)return K.return();h=[];l=g.$M(f.i.u,c);m=[];n={};p=g.r(l.entries());for(q=p.next();!q.done;n={qB:n.qB},q=p.next())t=q.value,u=g.r(t),x=u.next().value,y=u.next().value,n.qB=x,A=y,F=f.i.Hp(A,"json3"),G=g.jh(g.Dt(F,{withCredentials:!0},3,500).then(function(V){return function(L){L={metadata:g.cG(l[V.qB]),trackData:L.xhr.responseText};m.push(L)}}(n)),
function(V){yR("Caption fetch error",V)}),h.push(G);
return g.z(K,gba(h),2);case 2:return ta(K,3),g.z(K,Ona(b,m),5);case 5:ua(K,0);break;case 3:E=va(K),yR("Caption DB transaction error",E),g.sa(K)}})})};
Yya=function(a,b){return g.H(a,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.z(f,Pna(b),2);e=f.u;return f.return(!!e&&0<e.length)})})};
Zya=function(){this.tag="woffle"};
$ya=function(a,b){this.api=a;this.i=b;this.logger=new Zya;this.u=!1};
aza=function(a){return g.H(this,function c(){return g.B(c,function(d){return d.return(Wna(a))})})};
bza=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.z(e,Tna(a),2);d=e.u;return e.return(d.filter(function(f){return!!f.url}).map(function(f){return f.url}))})})};
eS=function(a,b){var c=WF(b);if(1===c||0===c)return Promise.resolve();(c=cza(a,b))&&c.stopVideo();a.B=0;return aza(b)};
fza=function(a,b,c){c=void 0===c?!1:c;var d="string"===typeof b?b:b.videoDetails.videoId;2===WF(d)&&((b=cza(a,d))?b.stopVideo():a.logger.info(function(){return"Corresponding player for "+d+" not found. Pausing anyway"}),XF(d,2),a.B=2,c?dza(a.i):eza(a.i))};
cza=function(a,b){var c;return(null===(c=a.player)||void 0===c?void 0:c.getVideoData().videoId)===b?a.player:null};
gza=function(a){switch(a){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
fS=function(a){g.I.call(this);this.i=a;this.u=sR(this.i,this.B.bind(this))};
hza=function(a,b){return g.H(a,function d(){var e,f=this,h,l,m,n,p,q;return g.B(d,function(t){switch(t.i){case 1:if(0===b.length)return t.return([]);e=b.map(function(u){return RQ(u,"transfer")});
return g.z(t,vR(f.i,"transfer",e),2);case 2:h=t.u;l=h.filter(Mxa).map(function(u){return QQ(u.key).entityId});
m=b.filter(function(u){return-1===l.indexOf(u)});
if(0===m.length)return t.return([]);n=g.r(m);p=n.next();case 3:if(p.done){t.fb(5);break}q=p.value;return g.z(t,aza(q),4);case 4:p=n.next();t.fb(3);break;case 5:return t.return(m)}})})};
jza=function(a,b,c,d,e,f){return g.H(this,function l(){var m,n,p;return g.B(l,function(q){m="STREAM_TYPE_UNKNOWN";c.video&&c.audio?(m="STREAM_TYPE_AUDIO_AND_VIDEO",yR("unexpected stream type")):c.video&&!c.audio?m="STREAM_TYPE_VIDEO":!c.video&&c.audio&&(m="STREAM_TYPE_AUDIO");n=RQ(b,"offlineVideoStreams");p={numBytesDownloaded:e.toFixed(),numTotalBytes:f.toFixed(),streamType:m,streamState:"DOWNLOAD_STREAM_STATE_IN_PROGRESS",formatStreamBytes:JSON.stringify(d),itag:"STREAM_TYPE_AUDIO_AND_VIDEO"===
m?Number(c.lc()):void 0};return g.z(q,rR(a,"readwrite",function(t){var u=jR(t,n,"offlineVideoStreams"),x=jR(t,RQ(b,"transfer"),"transfer");return kw.all([u,x]).then(function(y){var A=g.r(y);y=A.next().value;A=A.next().value;if(!A)return oR(t,n).then(function(){});
y=[mR(t,iza(y,d,p,n),"offlineVideoStreams")];A.offlineVideoStreams||(A.offlineVideoStreams=[]);-1===A.offlineVideoStreams.indexOf(n)&&(A.offlineVideoStreams.push(n),y.push(mR(t,A,"transfer")));return kw.all(y)})}),0)})})};
kza=function(a,b){return g.H(this,function d(){var e,f,h,l,m;return g.B(d,function(n){if(1==n.i)return e=RQ(b,"offlineVideoStreams"),g.z(n,uR(a,e,"offlineVideoStreams"),2);f=n.u;if(!f||!f.streamsProgress)return n.return();h=g.r(f.streamsProgress);for(l=h.next();!l.done;l=h.next())m=l.value,m.streamState="DOWNLOAD_STREAM_STATE_COMPLETE",m.numTotalBytes!==m.numBytesDownloaded&&(m.numBytesDownloaded=m.numTotalBytes);return g.z(n,tR(a,f,"offlineVideoStreams"),0)})})};
iza=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 h=JSON.parse(e[f].formatStreamBytes);if(h.itag+";"+h.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};
gS=function(a,b,c,d){g.I.call(this);var e=this;this.u=a;this.api=b;this.Da=c;this.Aa=d;this.D=new Jx;this.B=new g.M(function(){e.i&&"TRANSFER_STATE_TRANSFERRING"===e.i.transferState&&e.D.Se()&&(eS(e.J,e.C.videoDetails.videoId),e.hq("TRANSFER_FAILURE_REASON_INTERNAL"))});
this.Z=0;this.K=sR(this.u,this.DP.bind(this));this.J=new $ya(b,this);this.Y=new Vya;this.S=new fS(this.u);this.ya=this.D.Qa("publicytnetworkstatus-online",this.MW.bind(this));this.ma=this.D.Qa("publicytnetworkstatus-offline",this.sW.bind(this))};
lza=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)e=g.z(e,Nna(),2);else{var f=d.S;var h=VF();h=Object.keys(h);f=hza(f,h);e=g.z(e,f,0)}return e})})};
hS=function(a,b){b=void 0===b?!1:b;return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i){if(e.i)throw Error("Already downloading a video");return g.z(h,mza(e),2)}return 4!=h.i?(f=h.u,eya(e.Da,!f),f&&e.D.Se()?b?g.z(h,new Promise(function(l){g.pt(l,1E3)}),4):h.fb(4):h.fb(0)):g.z(h,nza(e,f),0)})})};
oza=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.C?g.z(e,eS(d.J,d.C.videoDetails.videoId),3):e.fb(0);iS(d);g.sa(e)})})};
pza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return ta(h,2),g.z(h,Xya(e.Y,b),4);if(2!=h.i)return ua(h,0);f=va(h);yR("Caption downloading error",f,b.cotn);g.sa(h)})})};
nza=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m;return g.B(d,function(n){switch(n.i){case 1:return e.i=b,g.z(n,jS(e),2);case 2:return f=null,ta(n,3),g.z(n,qza(e,b),5);case 5:f=n.u;e.C=f;ua(n,4);break;case 3:return h=va(n),yR("error getting player response",h,b.cotn),g.z(n,e.hq("TRANSFER_FAILURE_REASON_INTERNAL"),6);case 6:return n.return();case 4:return l=xya(e.api.V(),b.cotn,f),g.z(n,pza(e,l),7);case 7:return m=l,g.z(n,bza(l.videoId),8);case 8:m.jl=n.u;var p=e.J,q=b.maximumDownloadQuality,
t;l.getPlayerResponse()&&YG(l);XF(l.videoId,2);p.B=2;p.u=!1;null===(t=p.player)||void 0===t?void 0:t.dispose();p.player=p.api.Gl(9,l);t={};ny(p.player,(t.localmediachange=p.Hs,t.signatureexpired=p.fF,t.statechange=p.iU,t),p);q=gza(q);p.N("hoffle_lmqf_killswitch")||(q=hB(q,q,!0,"m"),rza(p.player,q,!1));kS(p.player,!1);e.B.start(6E4);g.sa(n)}})})};
mza=function(a){return g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){if(1==h.i)return g.z(h,vR(d.u,"transfer"),2);e=h.u;f=e.filter(sza).sort(tza);return 0===f.length?h.return():h.return(f[0])})})};
jS=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){d.B.start(6E4);return g.z(e,lS(d,"TRANSFER_STATE_TRANSFERRING"),0)})})};
dza=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){d.B.stop();return g.z(e,lS(d,"TRANSFER_STATE_PAUSED_BY_USER"),0)})})};
eza=function(a){g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.B.stop(),g.z(e,lS(d,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),2);iS(d);g.sa(e)})})};
uza=function(a){g.H(a,function c(){var d=this,e,f,h,l;return g.B(c,function(m){switch(m.i){case 1:d.B.stop();if(!d.i||!d.C){m.fb(2);break}e=xya(d.api.V(),d.i.cotn,d.C);if(!(f=!!e.captionTracks.length||!!e.Zb)){m.fb(3);break}return g.z(m,Yya(d.Y,e.videoId),4);case 4:f=!m.u;case 3:if(!f){m.fb(2);break}return g.z(m,pza(d,e),2);case 2:return g.z(m,lS(d,"TRANSFER_STATE_COMPLETE","DOWNLOAD_STREAM_STATE_COMPLETE"),7);case 7:return h=QQ(d.i.key),l=h.entityId,g.z(m,kza(d.u,l),8);case 8:GR({transferStatusType:"TRANSFER_STATUS_TYPE_COMPLETED",
statusType:"SUCCESS"},{videoId:l,ut:d.i}),iS(d),hS(d),g.sa(m)}})})};
vza=function(a,b,c){g.H(a,function e(){var f=this,h;return g.B(e,function(l){switch(l.i){case 1:if("TRANSFER_STATE_TRANSFERRING"===f.i.transferState){l.fb(2);break}return g.z(l,jS(f),2);case 2:h=Date.now();if(!(1E3<h-f.Z)){l.fb(4);break}f.Z=h;return g.z(l,jza(f.u,c.videoId,c.u,c.formatStream,c.bytesDownloaded,c.i),5);case 5:var m=Math.floor(c.bytesDownloaded/1024).toFixed();GR({transferStatusType:"TRANSFER_STATUS_TYPE_PROCESSING",statusType:"OFFLINING_STARTED",alreadyDownloadedKbytes:m,totalFetchedKbytes:m,
totalContentKbytes:Math.floor(c.i/1024).toFixed()},{videoId:b,ut:f.i});case 4:f.B.start(6E4),g.sa(l)}})})};
wza=function(a){a=a.i;var b=3>(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b};
xza=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i)return f="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN","TRANSFER_FAILURE_REASON_NETWORK"===b?f="OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"===b&&(f="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),g.z(l,lS(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);OR(e.Aa,{entityKey:e.i.key,
failureReason:f});h=QQ(e.i.key).entityId;var m={videoId:h,ut:e.i},n=b,p={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};n&&(p.transferFailureReason=n,p.failureReason=Txa(n));GR(p,m);g.sa(l)})})};
lS=function(a,b,c,d){return g.H(a,function f(){var h=this,l,m;return g.B(f,function(n){if(1==n.i)return l=h,h.i.transferState=b,h.i.failureReason=d,ta(n,2),g.z(n,yza(h,function(p){return c?kR(p,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(q){for(var t=g.r(q),u=t.next();!u.done;u=t.next())if((u=u.value)&&u.streamsProgress){u=g.r(u.streamsProgress);for(var x=u.next();!x.done;x=u.next())x.value.streamState=c}return nR(p,q.filter(function(y){return!!y}),"offlineVideoStreams")}):kw.resolve(void 0)}),
4);
if(2!=n.i)return ua(n,0);m=va(n);return m instanceof fw&&"QUOTA_EXCEEDED"===m.type?g.z(n,h.hq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):n.fb(0)})})};
yza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(!e.i)return h.return();f=e.i;return g.z(h,rR(e.u,"readwrite",function(l){var m=[mR(l,f,"transfer")];b&&m.push(b(l));return kw.all(m)}),0)})})};
iS=function(a){a.i=void 0;a.C=void 0;a.B.stop()};
qza=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m;return g.B(d,function(n){if(1==n.i)return e=QQ(b.key),f=e.entityId,h=RQ(f,"playbackData"),g.z(n,uR(l.u,h,"playbackData"),2);m=n.u;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})};
sza=function(a){return void 0!==mS[a.transferState]};
tza=function(a,b){var c=mS[a.transferState],d=mS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)};
Cza=function(a,b){var c=this;this.X=a;this.api=b;this.J=new Jx;this.u=new bya(function(){return zza(c)},function(){Aza(c)},this.api.Jp(),this.api.N.bind(this.api));
this.K=new NR(this.api);this.B=new Ek;this.UB();this.api.N("wo_job_sampling_with_lock_api")&&g.Lu(Nu(),function(){Bza(c)})};
zza=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){d.api.Oa("onOrchestrationBecameLeader");d.i&&d.C||Dza(d).then(d.B.resolve).catch(d.B.reject);var f=d.B.promise;return g.z(e,f,0)})})};
Bza=function(a){g.H(a,function c(){var d,e=this;return g.B(c,function(f){if(1==f.i)return g.z(f,xR(),2);d=f.u;if(!d)return f.return();e.S=new Tya(d,Nu(),e.UB.bind(e));return g.z(f,e.S.B(),0)})})};
Dza=function(a){return g.H(a,function c(){var d,e=this,f,h;return g.B(c,function(l){if(1==l.i)return g.z(l,xR(),2);if(3!=l.i){d=l.u;if(!d)return yR("PES is undefined"),l.return();e.i=new gS(d,e.api,e.u,e.K);f={};h=(f.ytMainDownloadedVideoEntity=new VR(d,e.X),f.playbackData=new SR(d,e.X),f.transfer=new UR(d),f);e.api.N("wo_job_sampling_with_lock_api")&&(h.orchestrationWebSamplingEntity=new RR(d));return g.z(l,Kya(d,h,e.u,e.K),3)}e.C=l.u;return g.z(l,Eza(e),0)})})};
Eza=function(a){return g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){switch(h.i){case 1:e=d;if(!d.i)return yR("transferManager is undefined"),h.return();if(!d.api.N("woffle_orch_init_killswitch")&&d.i.i){h.fb(2);break}return g.z(h,hS(d.i),2);case 2:return g.z(h,nS(d),4);case 4:d.D=qt(function(){nS(e)},9E5);
Ku(Nu(),function(){e.i&&lza(e.i)});
if(!d.api.N("web_player_offline_state_logging")){h.fb(5);break}return g.z(h,xR(),6);case 6:return f=h.u,g.z(h,$xa(f),5);case 5:dya(d.u),g.sa(h)}})})};
Aza=function(a){var b,c;g.H(a,function e(){var f=this;return g.B(e,function(h){if(1==h.i)return f.i||f.C?g.z(h,f.B.promise,2):h.return();void 0!==f.D&&(window.clearInterval(f.D),f.D=void 0);null===(b=f.i)||void 0===b?void 0:b.dispose();f.i=void 0;null===(c=f.C)||void 0===c?void 0:c.dispose();f.C=void 0;f.api.Oa("onOrchestrationLostLeader");f.B=new Ek;g.sa(h)})})};
Fza=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){var l=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return h.return(f.Nw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l))})})};
Gza=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){return f.return(e.Nw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
Hza=function(a){return g.H(a,function c(){var d,e,f;return g.B(c,function(h){if(1==h.i)return g.z(h,xR(),2);if(3!=h.i)return(d=h.u)?g.z(h,vR(d,"transfer"),3):h.return([]);e=h.u;f=e.map(function(l){return QQ(l.key).entityId});
return h.return(f)})})};
nS=function(a,b){b=void 0===b?43200:b;return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i)return e.J.Se()?g.z(u,xR(),2):u.return(Iza(e));if(3!=u.i){f=u.u;if(!f)return u.return([]);h=Date.now()/1E3;return g.z(u,vR(f,"offlineVideoPolicy"),3)}l=u.u;m=[];n=g.r(l);for(p=n.next();!p.done;p=n.next())q=p.value,Number(q.lastUpdatedTimestampSeconds)+b<=h&&(t=QQ(q.key).entityId,m.push(t));return m.length?u.return(Gza(e,m)):u.return([])})})};
Iza=function(a){return g.H(a,function c(){var d,e,f,h,l,m;return g.B(c,function(n){switch(n.i){case 1:return g.z(n,xR(),2);case 2:d=n.u;if(!d)return n.return([]);e=Date.now()/1E3;return g.z(n,vR(d,"offlineVideoPolicy"),3);case 3:f=n.u,h=g.r(f),l=h.next();case 4:if(l.done){n.fb(6);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)<e)){n.fb(5);break}m.action="OFFLINE_VIDEO_POLICY_ACTION_DISABLE";return g.z(n,tR(d,m,"offlineVideoPolicy"),5);case 5:l=h.next();n.fb(4);break;case 6:return n.return(f.map(function(p){return p.key}))}})})};
Jza=function(){var a=void 0===a?!1:a;try{var b=g.C.parent===g.C.top,c=!!Oxa()||a;return b&&c&&"undefined"!==typeof g.C.BroadcastChannel&&"undefined"!==typeof g.C.indexedDB}catch(d){return!1}};
Lza=function(){g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return c=[],g.z(e,xR(),2);(d=e.u)&&c.push(rR(d,"readwrite",function(f){var h=Kza.map(function(l){return Bxa(f,l)});
return kw.all(h)}));
c.push(Qxa(),Ina().then(function(f){return f?Xna():Promise.resolve()}));
return g.z(e,Promise.all(c),0)})})};
Mza=function(){for(var a=oS.length;4>a;a++){var b=g.zg("VIDEO");b.load();oS.push(new g.qN(b))}};
Nza=function(){this.u=200;this.i=12};
Oza=function(a){var b=new Nza;b.u=g.sE(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.sE(a.experiments,"html5_gapless_max_played_ranges");return b};
g.pS=function(a,b,c,d){d=void 0===d?!1:d;QJ.call(this);this.ra=a;this.start=b;this.end=c;this.i=d};
Pza=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.C;if(b.Dh()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.jd())&&b.isView()&&(b=b.ra),b&&b.Gp().length>a.i&&g.GG(e)))return"played-ranges";if(!e.C)return null;if(!e.C.i||!c.i)return"non-dash";if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.GG(f)&&g.GG(e))return"content-protection";a=c.i[0].audio;
e=e.C.i[0].audio;return a.sampleRate===e.sampleRate||g.Si?(a.numChannels||2)!==(e.numChannels||2)?"channel-count":null:"sample-rate"};
rS=function(){this.B=this.i=0;this.u=Array.from({length:qS.length}).fill(0)};
Qza=function(){};
Rza=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.i=!1};
Sza=function(){this.profiles=new Qza};
sS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new rS),a.profiles[b].Qk(c,d))};
tS=function(){};
uS=function(){var a=this;this.i=this.u=haa;this.promise=new Zg(function(b,c){a.u=b;a.i=c})};
vS=function(a,b,c,d){g.I.call(this);var e=this;this.policy=a;this.i=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Wk=new uS;this.Kj=d-1E3*b.Tc();this.Wk.then(void 0,function(){});
this.timeout=new g.M(function(){e.Ke("timeout")},1E4);
g.J(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.oa()};
Xza=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u;return g.B(c,function(x){if(1==x.i){e=d;if(d.isDisposed())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.oa();d.timeout.start();f=g.wS.Co("gtfta");return g.z(x,d.Wk,2)}g.wS.fn(f);h=d.i.jd();if(h.Ik())return d.Ke("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.C||!SD(d.C))return d.Ke("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.u.Ep()!==
d.C)return d.Ke("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=Tza(d);m=l.QL;n=l.FJ;p=l.PL;d.i.Cg(!1,!0);q=Uza(h,m,p,!d.u.getVideoData().isAd());d.u.setMediaElement(q);d.K&&(d.u.seekTo(d.u.getCurrentTime()+.001,{Mp:!0,wG:3,Sd:"gapless_pseudo"}),q.play()||Gt());t=h.Ib();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.u.Ba("gapless",g.LD(t));d.i.Ba("gaplessTo",d.u.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.u.getPlayerType();Vza(d.i,n,
!1,u,d.u.getVideoData().clientPlaybackNonce);Vza(d.u,d.u.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.Ug(function(){!e.u.getVideoData().qb&&g.$J(e.u.getPlayerState())&&Wza(e.u)});
xS(d,6);d.dispose();return x.return(Promise.resolve())})})};
$za=function(a){if(a.u.getVideoData().C){yS(a.u,a.C);xS(a,3);Yza(a);var b=Zza(a),c=b.FN;b=b.YW;c.subscribe("updateend",a.gr,a);b.subscribe("updateend",a.gr,a);a.gr(c);a.gr(b)}};
Yza=function(a){a.i.unsubscribe("internalvideodatachange",a.bp,a);a.u.unsubscribe("internalvideodatachange",a.bp,a);a.i.unsubscribe("mediasourceattached",a.bp,a);a.u.unsubscribe("statechange",a.Lc,a)};
Uza=function(a,b,c,d){a=a.isView()?a.ra:a;return new g.pS(a,b,c,d)};
xS=function(a,b){a.oa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Wk.resolve(void 0))};
Tza=function(a){var b=a.i.jd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:zS(a.i,!0);c=Math.min(a.Kj/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Dh()+d;return{mR:b,QL:a,FJ:c,PL:Infinity}};
Zza=function(a){return{FN:a.B.i.xd,YW:a.B.u.xd}};
AS=function(a){g.I.call(this);var b=this;this.app=a;this.D=this.i=this.u=null;this.K=!1;this.C=null;this.S=Oza(this.app.V());this.B=null;this.J=function(){g.Ug(function(){aAa(b)})}};
bAa=function(a,b,c,d){d=void 0===d?0:d;a.oa();a.xs()||BS(a);a.C=new uS;a.u=b;var e=c,f=a.app.Jc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*zS(f,!0);e>h&&(e=h-a.S.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.i=f,f=e,e=a.i,a.app.Ta.addEventListener(g.pA("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.nA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,zS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,zS(b)+l));f=hma(e,h)||d;f!==d&&a.u.Ba("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.u;d.getVideoData().rd=!0;d.getVideoData().Ja=!0;kS(d,!0);e="";a.i&&(e=g.CS(a.i.Xb.u),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ba("queued",e);0!==b&&d.seekTo(b+.01,{Mp:!0,wG:3,Sd:"videoqueuer_queued"});a.B=new vS(a.S,a.app.Jc(),a.u,c);c=a.B;c.oa();Infinity!==c.status.status&&(xS(c,1),c.i.subscribe("internalvideodatachange",
c.bp,c),c.u.subscribe("internalvideodatachange",c.bp,c),c.i.subscribe("mediasourceattached",c.bp,c),c.u.subscribe("statechange",c.Lc,c),c.i.subscribe("newelementrequired",c.qM,c),c.bp());return a.C};
aAa=function(a){g.H(a,function c(){var d=this,e,f,h,l;return g.B(c,function(m){switch(m.i){case 1:e=d;if(d.isDisposed())return m.return();d.oa();if(!d.C||!d.u)return d.oa(),m.return();d.K&&DS(d.app.Jc(),!0,!1);f=null;if(!d.B){m.fb(2);break}ta(m,3);return g.z(m,Xza(d.B),5);case 5:ua(m,2);break;case 3:f=h=va(m);case 2:if(!d.u)return d.oa(),m.return();d.app.Ru(d.u);g.wS.EF("vqsp",function(){e.app.Hj(e.u.getPlayerType())});
g.wS.EF("vqpv",function(){e.app.playVideo()});
f&&cAa(d.u,f.message);l=d.C;BS(d);return m.return(l.resolve(void 0))}})})};
BS=function(a){if(a.i){var b=a.i;a.app.Ta.removeEventListener(g.pA("vqueued"),a.J);b.removeCueRange(a.D);a.i=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Ke("Canceled")),a.B=null);a.C=null;a.u=null;a.K=!1};
dAa=function(){var a=ou();return!(!a||"visible"===a)};
fAa=function(a){var b=eAa();b&&document.addEventListener(b,a,!1)};
gAa=function(a){var b=eAa();b&&document.removeEventListener(b,a,!1)};
eAa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[nu+"VisibilityState"])return"";a=nu+"visibilitychange"}return a};
ES=function(){g.R.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.i=this.B=this.inline=!1;this.C=function(){a.Ce()};
fAa(this.C);this.D=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Ie(),this.isInline(),this.us(),this.qs())};
hAa=function(a){this.end=this.start=a};
g.IS=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.Ca=c;this.Aa=new Map;this.Sa=new Map;this.B=new Map;this.C=[];this.u=[];this.Ya=NaN;this.ya=this.Y=null;this.Ua=new g.M(function(){GS(d,d.Ya)});
this.events=new g.wD(this);this.isLiveNow=!0;this.eb=g.sE(this.X.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.D=new g.M(function(){d.K=!0;d.Ca.Ba("sdai",{aftimeout:d.eb});HS(d);d.Pv(!1)},this.eb);
this.K=!1;this.ma=new Map;this.La=[];this.J=null;this.Zb=new Set;this.Z=[];this.kb=[];this.Eb=[];this.xb=[];this.i=void 0;this.Za=0;this.Ja=!0;this.S=!1;this.Da=[];this.zb=new Set;this.Mb=new Set;this.Fb=new Set;this.ac=g.sE(this.X.experiments,"html5_server_stitched_dai_decorated_url_retry_limit");this.Wu=0;this.Ka=new Set;this.qb=0;this.jb=!1;this.Ca.getPlayerType();iAa(this.Ca,this);g.J(this,this.Ua);g.J(this,this.events);g.J(this,this.D);this.events.T(this.api,g.pA("serverstitchedcuerange"),this.onCueRangeEnter);
this.events.T(this.api,g.qA("serverstitchedcuerange"),this.onCueRangeExit)};
lAa=function(a,b,c,d,e,f,h){var l=jAa(a,e,e+d);a.K&&a.Ca.Ba("sdai","adaftto");var m=a.X.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Ca;f=void 0===f?e+d:f;e===f&&!d&&a.X.N("html5_allow_zero_duration_ads_on_timeline")&&a.Ca.Ba("sdai","attl0d");if(e>f&&(a.Zd("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(e<p&&(a.Zd("Invalid_playback_enterTimeMs_"+e+"_is_less_than_parentMinSeekableTimeMs_"+p),m))return"";n=1E3*n.getDuration();
if(f>n&&(a.Zd("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;p=g.r(a.u);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Hc&&e<q.pd&&(a.Zd("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_overlaps_existing_ChildPlayback_"+JS(q))),m)||f<=q.pd&&f>q.Hc&&(a.Zd("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+
f+"_overlaps_existing_ChildPlayback_"+JS(q))),m)||f===q.Hc&&(a.Zd("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+JS(q))),m))return"";e===q.pd&&(n=q)}if(l&&n)for(m=g.r(a.Z.entries()),p=m.next();!p.done;p=m.next()){if(q=g.r(p.value),p=q.next().value,q=q.next().value,q.identifier===l.identifier){a.Z.splice(p,1);break}}else if(l&&a.X.N("web_player_ss_timeout_skip_ads"))return a.Ca.Ba("sdai",
"rejectAttl"),h&&!on(a.xb,function(t){return t===h})&&(a.Ca.Ba("sdai","rejectAdBreakAttl"),a.xb.push(h)),"";
l="ss_childplayback_"+kAa++;m=b.raw_player_response;m||a.X.N("web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=zy());p=b.cpn;b=new pG(a.X,b);b.Dc=l;c={Dc:l,playerType:c,durationMs:d,Hc:e,pd:f,playerResponse:m,cpn:p,videoData:b,errorCount:0};a.u=a.u.concat(c).sort(function(t,u){return t.Hc-u.Hc});
a.Ca.Ba("sdai",{attlDone:f-e});h?c.gg=h:n?c.gg=n.gg:c.gg=c.cpn;a.D.isActive()&&(a.K=!1,a.D.stop(),HS(a),a.Pv(!0));a.oa();return l};
mAa=function(a,b){return new g.nA(a,b,{namespace:"serverstitchedcuerange",priority:9})};
LS=function(a,b,c){var d=a.S,e=a.Ca.getVideoData().clientPlaybackNonce,f={cpn:e,durationMs:0,Hc:0,playerType:1,pd:0,videoData:a.Ca.getVideoData(),errorCount:0},h=b.Kf-c.Kf;.5<Math.abs(h)&&a.Ca.Ba("sdai",{ttdtb:1,delta:h,cpn:e,enter:b.adCpn,exit:c.adCpn});b.isAd&&c.isAd?(f=a.u.find(function(l){return l.cpn===b.adCpn}),(e=a.u.find(function(l){return l.cpn===c.adCpn}))&&f&&(a.api.ea("serverstitchedvideochange",f.Dc,f.Gu),a.Ca.Ba("sdai",{ssvc:"a2a"}),a.Wu++,KS(a.Ca,e,f,c.Kf,b.Kf,d))):!b.isAd&&c.isAd?
(a.api.ea("serverstitchedvideochange"),a.Ca.Ba("sdai",{ssvc:"a2c"}),a.Wu=0,a.Za=c.Ad.end,(e=a.u.find(function(l){return l.cpn===c.adCpn}))&&KS(a.Ca,e,f,c.Kf,b.Kf,d)):b.isAd&&!c.isAd&&(e=a.u.find(function(l){return l.cpn===b.adCpn}))&&(a.Za=0,a.api.ea("serverstitchedvideochange",e.Dc,e.Gu),a.Ca.Ba("sdai",{ssvc:"c2a"}),a.Wu=1,KS(a.Ca,f,e,c.Kf,b.Kf,d))};
MS=function(a,b,c){c=void 0===c?0:c;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.Hc/1E3>b+c)break;if(d.pd/1E3>b)return{El:d,fq:b}}return{El:void 0,fq:b}};
NS=function(a,b){var c=nAa(a,b);if(c)return a.u.find(function(d){return d.cpn===a.B.get(c)})};
nAa=function(a,b){a=g.r(a.B.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
GS=function(a,b){var c=a.ya||a.api.Jc().getPlayerState();OS(a,!0);var d=b;a.X.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=MS(a,b).fq);a.Ca.seekTo(d);a=a.api.Jc();b=a.getPlayerState();g.$J(c)&&!g.$J(b)?a.playVideo():g.T(c,4)&&!g.T(b,4)&&a.pauseVideo()};
OS=function(a,b){a.Ya=NaN;a.Ua.stop();a.Y&&b&&PS(a.Y);a.ya=null;a.Y=null};
QS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=[],h=g.r(a.u),l=h.next();!l.done;l=h.next())l=l.value,(l.Hc<d||l.pd>e)&&f.push(l);a.u=f;d=b;e=c;f=g.r(a.B.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.Ca.removeCueRange(h),a.B.delete(h),a.Ca.Ba("sdai","rmAdCR"));d=MS(a,b/1E3);b=d.El;d=d.fq;b&&(d=1E3*d-b.Hc,e=b.Hc+d,a.oa(),b.durationMs=d,b.pd=e,oAa(a,b));(b=MS(a,c/1E3).El)&&a.Zd("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+JS(b)+
"._Child_playbacks_can_only_have_duration_updated_not_their_start.")};
oAa=function(a,b){for(var c=null,d=g.r(a.B),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;f===b.cpn&&(c=e)}if(c){a=g.r(a.C);for(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}};
JS=function(a){var b;return"playback_timelinePlaybackId_"+a.Dc+"_video_id_"+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Hc+"_parentReturnTimeMs_"+a.pd};
SS=function(a,b,c){c=a.ma.get(c);c||(b+=RS(a),c=MS(a,b,1).El);return c};
pAa=function(a,b,c,d){var e,f;if(3===d)return"";if(!a.X.N("html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Aa.has(b))return a.Aa.get(b);if(2===d&&a.Sa.has(b))return a.Sa.get(b)}d=null===(f=null===(e=a.Ca.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.Ca.Ba("sdai",{gdu:"nodaist",seg:b,itag:c}),"")};
TS=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;qAa(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.Ca.removeCueRange(e);if(a.Da.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else qAa(a,b,c)};
qAa=function(a,b,c){b=mAa(b,c);c=!0;g.Nb(a.C,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.C.length;){if(0<d){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Ca.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}c&&a.Ca.addCueRange(b)};
US=function(a,b,c){if(void 0===c||!c){c=g.r(a.La);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.La.push(new hAa(b))}};
g.rAa=function(a,b){a=g.r(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
RS=function(a){var b=0;a.X.N("web_player_ss_media_time_offset")&&(b=0===a.Ca.getStreamTimeOffset()?a.Ca.Tc():a.Ca.getStreamTimeOffset());return b};
sAa=function(a,b){var c=[];a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.gg===b&&d.cpn&&c.push(d.cpn);return c};
tAa=function(a,b,c){var d=0;a=g.r(a.u);for(var e=a.next();!e.done;e=a.next())if(e=e.value,e.gg===c){if(e.cpn===b)return d;d++}return-1};
uAa=function(a,b){var c,d=[];a=g.r(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.gg===b&&f&&d.push(f)}return d};
vAa=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.gg===b&&0!==d.durationMs&&d.pd!==d.Hc&&c++;return c};
wAa=function(a,b,c){for(var d=!1,e=g.r(a.u),f=e.next();!f.done;f=e.next())f=f.value,f.gg===c&&0!==f.durationMs&&f.pd!==f.Hc&&(f=f.cpn,b===f&&(d=!0),d&&!a.Mb.has(f)&&(a.Ca.Ba("sdai","decoratedAd"),a.Mb.add(f)))};
HS=function(a){a.X.N("html5_high_res_logging")&&a.Ca.Ba("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.qb)+"_isTimeout_"+a.K})};
jAa=function(a,b,c){if(a.Z.length)for(var d={},e=g.r(a.Z),f=e.next();!f.done;d={Jo:d.Jo},f=e.next()){d.Jo=f.value;f=1E3*d.Jo.startSecs;var h=1E3*d.Jo.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return on(a.Eb,function(l){return function(m){return m.identifier===l.Jo.identifier}}(d))||(a.Ca.Ba("sdai","adskip_"+b),a.Eb.push(d.Jo)),d.Jo}};
VS=function(a){a.K=!1;a.D.isActive()&&HS(a);a.D.stop();a.Pv(!1)};
WS=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.u=c;this.J=new Map;this.i=[];this.B=this.K=null;this.Z=NaN;this.D=this.C=null;this.S=new g.M(function(){xAa(d,d.Z)});
this.Y=[];this.ma=new g.M(function(){var e=d.Y.pop();if(e){var f=e.Dc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Y.length&&g.Dq(d.ma,4500))}});
this.events=new g.wD(this);c.getPlayerType();g.J(this,this.S);g.J(this,this.ma);g.J(this,this.events);this.events.T(this.api,g.pA("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Nh)};
BAa=function(a,b,c,d,e,f){var h=a.u;f=void 0===f?e+d:f;if(e>f)return a.Zd("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(e<l)return a.Zd("e.enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+l),"";l=1E3*h.getDuration();if(f>l)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Tc(),a.Zd(h),"";l=null;
for(var m=g.r(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Hc&&e<n.pd)return a.Zd("e.overlappingEnter"),a.oa(),"";if(f<=n.pd&&f>n.Hc)return a.Zd("e.overlappingReturn"),a.oa(),"";if(f===n.Hc)return a.Zd("e.outOfOrder"),a.oa(),"";e===n.pd&&(l=n)}m="cs_childplayback_"+yAa++;n={Ad:XS(d,!0),Kj:Infinity,target:null};var p={Dc:m,playerVars:b,playerType:c,durationMs:d,Hc:e,pd:f,Zm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Hc-x.Hc});
l?zAa(a,l,{Ad:XS(l.durationMs,!0),Kj:a.X.N("timeline_manager_transition_killswitch")?Infinity:l.Zm.Kj,target:p}):(b={Ad:XS(e,!1),Kj:e,target:p},a.J.set(b.Ad,b),a.oa(),h.addCueRange(b.Ad));b=a.X.N("html5_gapless_preloading");if(a.u===a.api.Jc()&&(h=1E3*h.getCurrentTime(),h>=p.Hc&&h<p.pd)){var q=a.api.Jc().getPlayerState(),t=h-p.Hc;Mg(function(){AAa(a,p,t/1E3,q)});
b=!1}b&&(a.Y.unshift(p),g.Dq(a.ma,0));a.oa();return m};
XS=function(a,b){return new g.nA(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
CAa=function(a,b,c,d){a.oa();a.B=d;a.api.Cy(a.u,c,b)};
DAa=function(a,b,c,d){a.oa();a.B=d;d=b.Dc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
zAa=function(a,b,c){var d=b.Zm;b.Zm=c;YS(a,b)&&(c=a.api.Jc(),d.Ad===a.B&&ZS(a),a.oa(),c.removeCueRange(d.Ad),b=b.Zm,a.oa(),c.addCueRange(b.Ad))};
ZS=function(a){a.K=null;a.B=null;a.api.xs()||a.api.clearQueue()};
EAa=function(a,b){YS(a,b)||a.Zd("e.childPlaybackIsNotPresenting");return b.pd===b.Hc+b.durationMs?(a=a.api.Jc(),b.Hc+1E3*a.getCurrentTime()):b.pd};
$S=function(a,b){var c=0;a=g.r(a.i);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{El:d,fq:b-e};c=f-d.pd/1E3}return{El:null,fq:b-c}};
xAa=function(a,b){var c=a.D||a.api.Jc().getPlayerState();aT(a,!0);b=a.X.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.u.hj();var d=$S(a,b);b=d.El;d=d.fq;var e=b&&!YS(a,b)||!b&&a.u!==a.api.Jc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||ZS(a);a.oa();b?(a.oa(),AAa(a,b,d,c)):(a.oa(),bT(a,d,c))};
bT=function(a,b,c){var d=a.u,e=a.api.Jc();d!==e&&a.api.Hj(d.getPlayerType());d.seekTo(b,{Sd:"application_timelinemanager"});FAa(a,c)};
AAa=function(a,b,c,d){var e=YS(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new pG(a.X,b.playerVars);a.X.N("html5_match_codecs_for_gapless")||a.api.Hj(b.playerType);f.Dc=b.Dc;a.api.Mn(f,b.playerType)}f=a.api.Jc();e||(b=b.Zm,a.oa(),f.addCueRange(b.Ad));f.seekTo(c,{Sd:"application_timelinemanager"});FAa(a,d)};
FAa=function(a,b){a=a.api.Jc();var c=a.getPlayerState();g.$J(b)&&!g.$J(c)?a.playVideo():g.T(b,4)&&!g.T(c,4)&&a.pauseVideo()};
aT=function(a,b){a.Z=NaN;a.S.stop();a.C&&b&&PS(a.C);a.D=null;a.C=null};
YS=function(a,b){a=a.api.Jc();return!!a&&a.getVideoData().Dc===b.Dc};
GAa=function(a){var b=a.i.find(function(e){return YS(a,e)});
if(b){var c=a.api.Jc();ZS(a);var d=new g.UJ(8);b=EAa(a,b)/1E3;bT(a,b,d);c.Ba("forceParentTransition","childPlayback");a.u.Ba("forceParentTransition","parentPlayback")}};
cT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=g.r(a.J),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Kj>=d&&l.target&&l.target.pd<=e&&(a.u.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.r(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Hc>=d&&l.pd<=e){var m=a;m.K===l&&ZS(m);YS(m,l)&&m.api.qo(l.playerType)}else f.push(l);a.i=f;d=$S(a,b/1E3);b=d.El;d=d.fq;b&&(d*=1E3,HAa(a,b,d,b.pd===b.Hc+b.durationMs?b.Hc+d:b.pd));
(b=$S(a,c/1E3).El)&&a.Zd("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Dc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Hc+" parentReturnTimeMs="+b.pd+"}.Child playbacks can only have duration updated not their start."))};
HAa=function(a,b,c,d){a.oa();b.durationMs=c;b.pd=d;d={Ad:XS(c,!0),Kj:c,target:null};zAa(a,b,d);YS(a,b)&&1E3*a.api.Jc().getCurrentTime()>c&&(b=EAa(a,b)/1E3,c=a.api.Jc().getPlayerState(),bT(a,b,c))};
JAa=function(a){a&&"web"!==a&&IAa.includes(a)};
fT=function(a,b){g.I.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.i=new g.M(function(){dT(c);eT(c)});
g.J(this,this.i)};
dT=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire<b&&gT(a,c,!0)});
a.data=g.Do(a.data,function(c){return!(c.expire<b)})};
gT=function(a,b,c){c&&a.u&&a.u(b.value)};
eT=function(a){a.i.stop();var b=Infinity;for(var c=g.r(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.i.start(b))};
CT=function(){g.nr.call(this);this.D=new Map};
MT=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.i=a-1};
KAa=function(a){return a.data[a.i]||0};
OT=function(a){g.I.call(this);this.B=a;this.i=new Map;this.u=new g.M(this.sample,250,this);g.J(this,this.u);this.start()};
PT=function(a,b){var c;if(null===(c=a.i.get(b))||void 0===c)a=void 0;else{a=c.buffer;for(b=[];a.u!==a.i;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
QT=function(a,b){var c;return(null===(c=a.i.get(b))||void 0===c?void 0:KAa(c.buffer))||0};
RT=function(a){this.u=a;this.i=NaN;this.buffer=new MT(100)};
LAa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.lc()+")":a.lc()};
ST=function(a,b){g.I.call(this);var c=this;this.i=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.u=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.u.observe(a)};
MAa=function(a,b){by(a,"version",b)};
UT=function(a){g.U.call(this,{G:"div",Ga:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.TT.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.Tu=this.Fa(g.TT.VIDEO_CONTAINER);this.Os=new g.Cl(0,0,0,0);this.Jb=null;this.uA=new g.Cl(0,0,0,0);this.OD=this.HE=this.GE=NaN;this.mz=this.rA=this.xF=this.lJ=!1;this.XC=NaN;this.mE=!1;this.gw=null;this.bF=function(){b.element.focus()};
this.mB=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.V();e.transparentBackground&&this.Lm("ytp-transparent");"0"===e.controlsType&&this.Lm("ytp-hide-controls");g.N(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.N(this.element,"ytp-linear-gradient-bottom-experiment");e.N("web_player_bigger_buttons_like_mobile")&&g.N(this.element,"ytp-exp-bigger-button-like-mobile");e.N("enable_new_paid_product_placement")&&!g.zF(e)&&g.N(this.element,"ytp-exp-ppp-update");MAa(this.element,NAa(a));this.HN=!1;uF(e)&&
"blazer"!==e.playerStyle&&window.matchMedia&&(this.mB="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Wf(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Wf(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Wf(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Wf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Wf(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Wf(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Wf(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Wf(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Wf(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Wf(640,360)}]);this.PG=e.useFastSizingOnWatchDefault;this.xv=new g.Wf(NaN,NaN);OAa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
OAa=function(a){function b(){a.Jb&&VT(a);WT(a)!==a.mE&&a.resize()}
function c(h,l){a.ds(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.uA=new g.Cl(0,0,0,0);a.Os=new g.Cl(0,0,0,0)}
var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.qe(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
PAa=function(a){var b=g.OM(a.app);if(b=b?b.getVideoData():null){if(g.NG(b)||g.OG(b)||g.QG(b))return 16/9;if(wG(b)&&b.C.i)return a=b.C.videoInfos[0].video,XT(a.width,a.height)}return(a=a.Jb)?XT(a.videoWidth,a.videoHeight):16/9};
QAa=function(a,b,c,d){var e=c,f=XT(b.width,b.height);a.lJ?e=c<f?Infinity:0:isNaN(a.OD)?isNaN(a.HE)||(e=a.HE):e=a.OD;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};
XT=function(a,b){return 1>Math.abs(ZT*b-a)||1>Math.abs(ZT/a-b)?ZT:a/b};
WT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.OM(a.app);if(!b||b.Tl())return!1;var c=a.app.Ta.vb();a=!g.T(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ja;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
VT=function(a){var b="3"===a.app.V().controlsType&&!a.mz&&WT(a)&&!a.app.mw||!1;a.Jb.controls=b;a.Jb.tabIndex=b?0:-1;b?a.Jb.removeEventListener("focus",a.bF):a.app.V().N("disable_focus_redirect")||a.Jb.addEventListener("focus",a.bF)};
RAa=function(a){var b=a.rg(),c=1,d=!1,e=QAa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),h=Zt(),l=f&&a.xF&&768<a.getPlayerSize().width;if(WT(a)){var m=PAa(a);var n=isNaN(m)||g.Vw||$T&&g.Ui||l;$t&&!g.Dc(601)?m=e.aspectRatio:n=n||"3"===a.app.V().controlsType;n?l?(n=a.app.V().N("place_shrunken_video_on_left_of_player"),m=(.5-.46)/2,m*=a.getPlayerSize().width,n=n?m:a.getPlayerSize().width-b.width-m,n=new g.Cl(n,0,b.width,b.height)):n=new g.Cl(0,0,b.width,b.height):(c=e.aspectRatio/
m,n=new g.Cl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Ui&&(m=n.width-b.height*m,0<m&&(n.width+=m,n.height+=m)));if(h||a.HN)a.Jb.style.display="";a.mE=!0}else{n=-b.height;$t?n*=window.devicePixelRatio:g.CF&&(n-=window.screen.height);n=new g.Cl(0,n,b.width,b.height);if(h||a.HN)a.Jb.style.display="none";a.mE=!1}Dl(a.uA,n)||(a.uA=n,g.fF(a.app.V())?(a.Jb.style.setProperty("width",n.width+"px","important"),a.Jb.style.setProperty("height",n.height+"px","important")):g.Xl(a.Jb,
new g.Wf(n.width,n.height)),d=new g.Uf(n.left,n.top),g.Ql(a.Jb,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Cl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Dl(a.Os,b)||(a.Os=b,d=!0);g.Jl(a.Jb,"transform",1===c?"":"scaleX("+c+")");f&&l!==a.rA&&(a.rA=l,a.app.Ta.ea("playerUnderlayVisibilityChange",a.rA));return d};
SAa=function(){this.csn=g.Iy();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.i=new Set;this.u=new Set};
TAa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.i.delete(b);a.u.delete(b)};
UAa=function(a){if(a.csn!==g.Iy())if("UNDEFINED_CSN"===a.csn)a.csn=g.Iy();else{var b=g.Iy(),c=g.Gy();if(b&&c){a.csn=b;for(var d=g.r(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Gz(void 0,b,c,[e])}if(b)for(a=g.r(a.i),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.Hz(b,c,void 0)}};
aU=function(a,b,c,d,e){g.U.call(this,{G:"div",L:"ytp-horizonchart"});this.D=b;this.sampleCount=c;this.B=d;this.C=e;this.index=0;this.heightPx=-1;this.u=this.ctx=null;this.i=Math.round(a/c);this.element.style.width=this.i*this.sampleCount+"px";this.element.style.height=this.D+"em"};
bU=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.zg("CANVAS"),a.ctx=c.getContext("2d")}catch(e){}if(a.ctx){var d=a.i*a.sampleCount;a.u=c;a.u.width=d;a.u.style.width=d+"px";a.element.appendChild(a.u)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.i*=4,c=0;c<a.sampleCount;c++)d=g.zg("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.u.height=a.heightPx*
c,a.u.style.height=a.heightPx+"px",a.ctx.scale(1,c)));b=g.r(b);for(c=b.next();!c.done;c=b.next())a.setValue(a.index,c.value),a.index=(a.index+1)%a.sampleCount;b=a.index;a.ctx?a.ctx.clearRect(b*a.i,0,a.i,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
cU=function(a){var b=null;b={G:"button",Ga:["html5-video-info-panel-close","ytp-button"],W:{title:"close"},va:"[x]"};g.U.call(this,{G:"div",L:"html5-video-info-panel",U:[b,{G:"div",L:"html5-video-info-panel-content",U:[{G:"div",U:[{G:"div",va:"Video ID / sCPN"},{G:"span",va:"{{video_id_and_cpn}}"}]},{G:"div",U:[{G:"div",va:"Viewport / Frames"},{G:"span",va:"{{dims_and_frames}}"}]},{G:"div",U:[{G:"div",va:"Current / Optimal Res"},{G:"span",va:"{{resolution}}"}]},{G:"div",U:[{G:"div",va:"Volume / Normalized"},
{G:"span",va:"{{volume}}"}]},{G:"div",U:[{G:"div",va:"Codecs"},{G:"span",va:"{{codecs}}"}]},{G:"div",W:{style:"{{shader_info_style}}"},U:[{G:"div",va:"Shader Info"},{G:"span",va:"{{shader_info}}"}]},{G:"div",W:{style:"{{color_style}}"},U:[{G:"div",va:"Color"},{G:"span",va:"{{color}}"}]},{G:"div",W:{style:"{{drm_style}}"},U:[{G:"div",va:"Protected"},{G:"span",va:"{{drm}}"}]},{G:"div",W:{style:"{{bandwidth_style}}"},U:[{G:"div",va:"Connection Speed"},{G:"span",U:[{G:"span",va:"{{bandwidth_chart}}"},
{G:"span",va:"{{bandwidth_kbps}}"}]}]},{G:"div",W:{style:"{{network_activity_style}}"},U:[{G:"div",va:"Network Activity"},{G:"span",U:[{G:"span",va:"{{network_activity_chart}}"},{G:"span",va:"{{network_activity_bytes}}"}]}]},{G:"div",U:[{G:"div",va:"Buffer Health"},{G:"span",U:[{G:"span",va:"{{buffer_health_chart}}"},{G:"span",va:"{{buffer_health_seconds}}"}]}]},{G:"div",W:{style:"{{live_latency_style}}"},U:[{G:"div",va:"Live Latency"},{G:"span",U:[{G:"span",va:"{{live_latency_chart}}"},{G:"span",
va:"{{live_latency_secs}}"}]}]},{G:"div",W:{style:"{{live_mode_style}}"},U:[{G:"div",va:"Live Mode"},{G:"span",va:"{{live_mode}}"}]},{G:"div",W:{style:"{{playback_categories_style}}"},U:[{G:"div",va:"Playback Categories"},{G:"span",va:"{{playback_categories}}"}]},{G:"div",U:[{G:"div",va:"Mystery Text"},{G:"span",va:"{{debug_info}}"}]},{G:"div",W:{style:"{{cotn_and_local_media_style}}"},U:[{G:"div",va:"COTN / Local Media"},{G:"span",va:"{{cotn_and_local_media}}"}]},{G:"div",W:{style:"{{release_style}}"},
U:[{G:"div",va:"Player Release"},{G:"span",va:"{{release_name}}"}]}]}]});b&&(b=this.Fa("html5-video-info-panel-close"),this.T(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 aU(300,1,150,b,c);g.J(this,this.i);this.Ra("bandwidth_chart",this.i);this.B=new aU(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.J(this,this.B);this.Ra("live_latency_chart",this.B);this.u=new aU(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.J(this,this.u);this.Ra("buffer_health_chart",this.u);this.C=new aU(300,1,150,d,c);g.J(this,this.C);this.Ra("network_activity_chart",this.C);this.delay=new g.M(this.Pa,
500,this);g.J(this,this.delay);this.Ta=a};
VAa=function(a){a=void 0===a?{}:a;var b=a.dg,c=a.Fg,d=a.getLastSegmentNumber,e=a.Vr;this.Il=a.Il;this.dg=b;this.Fg=c;this.getLastSegmentNumber=d;this.Vr=e};
WAa=function(a,b){if(0>b)return!0;var c=a.getLastSegmentNumber();return b<c||b===c&&!a.Il||b===c&&(a=a.Vr())&&b===a.Ma?!0:!1};
XAa=function(a,b,c){if(!WAa(a,b))return 0;if(!a.dg||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.getLastSegmentNumber();return b<c||b===c&&(a=a.Vr())&&b===a.Ma&&!a.pending?2:1};
dU=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
YAa=function(a,b){var c=Math.min(2.5,HE(a.schedule));a=eU(a);return b-c*a};
fU=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.cd&&(d=Math.abs(d));d/=a.playbackRate;var f=1/JE(a.schedule);var h=.9*(d-a.policy.Ug);h=Math.max(h,HE(a.schedule)+2048*f);c=h/f*a.policy.yp/(b+c);c=Math.min(c,d);a.policy.Md&&e&&(c=Math.max(c,a.policy.Md));return ZAa(a,c,b)};
ZAa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.tp*c),Math.min(Math.min(a.policy.Ja,31*c),Math.ceil(b*c))))||65536};
eU=function(a){return JE(a.schedule,!a.policy.Sj,a.policy.Uo)};
gU=function(a){return eU(a)/a.playbackRate};
hU=function(a,b,c,d,e){this.Wa=a;this.u=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.B=0;this.i=!1;this.C=this.u.isManifestless&&!this.u.Ze;this.D=null};
$Aa=function(a,b,c){var d=b.i.index,e=b.u.Ma;TC(d,e)||c&&c.Ma===e?(a.oa(),b.D=!TC(d,e),b.S=!TC(d,e)):(a.oa(),b.D=!0,b.S=!0)};
bBa=function(a,b,c,d){a.oa();if(!b.i.Re())return 0!==c&&iU(b),c;var e=jU(b,c);if(!isNaN(e))return a.oa(),e;iU(b);kU(b.C);return d&&(a=HD(d.kf(),c),!isNaN(a))?(lU(b,a+aBa),c):lU(b,c)};
fBa=function(a,b,c,d){if(a.i&&a.B){var e=cBa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.C=!0;g.Ug(function(){a.Wa.Ba("seekreason","reason.behindMinSq;tgt."+e);dBa(a,e)});
return}}c?a.videoTrack.S=!1:a.audioTrack.S=!1;var f=a.policy.Wq||!a.C;if(0<=jU(a.videoTrack,a.B)&&0<=jU(a.audioTrack,a.B)&&f){if(a.videoTrack.D||a.audioTrack.D)a.oa(),a.Wa.Ba("iterativeSeeking","done;count."+a.seekCount);a.videoTrack.D=!1;a.audioTrack.D=!1}else d&&g.Ug(function(){if(a.C||!a.policy.Ua)eBa(a);else{var h=b.startTime,l=b.duration,m=-1!==a.videoTrack.J&&-1!==a.audioTrack.J,n=!a.videoTrack.S&&!a.audioTrack.S;(c?a.videoTrack.D:a.audioTrack.D)&&m&&n&&(a.B>=h&&a.B<h+l+.1?((c?a.videoTrack:
a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.oa(),a.Wa.Ba("iterativeSeeking","done;count."+a.seekCount),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.oa(),a.Wa.Ba("iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.B+";actual."+h+";duration."+l+";isVideo."+c),a.seek(a.B)):(a.oa(),a.Wa.Ba("iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.B+";actual."+h),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Wa.Ca.seekTo(h+.1,{Mp:!0,Sd:"chunkSelectorSynchronizeMedia",
ep:!0})))}})};
cBa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.B);return(TC(c,a.u.ue)||b.Ma===a.u.ue)&&d<a.u.ue?(a.oa(),a.u.getMinSeekableTime()):-1};
dBa=function(a,b){a.C&&-1!==a.videoTrack.J&&-1!==a.audioTrack.J&&(a.C=!1,a.oa(),a.Wa.Ca.seekTo(b+.1,{Mp:!0,Sd:"chunkSelectorSynchronize",ep:!0}))};
eBa=function(a){var b=-1!==a.videoTrack.J,c=-1!==a.audioTrack.J;if(!b||!c)if(b=!b&&a.videoTrack.Yf(),c=!c&&a.audioTrack.Yf(),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.J=c.Yf().info.Ma,-1!==b.J){var d=Math.max(b.i.index.getStartTime(b.J),c.i.index.getStartTime(c.J));a.policy.lr&&dE(a.u)&&432E3<Math.abs(d-dE(a.u))&&kma(a.u);a.Wa.Ba("seekreason","reason.initManifestlessSync;tgt."+d);g.Ug(function(){return dBa(a,d)});
a.D&&(a.D.resolve(d+.1),a.D=null)}};
gBa=function(){this.B=this.C=0;this.ticks={}};
mU=function(a,b,c,d,e,f){g.R.call(this);this.Wa=a;this.K=b;this.policy=c;this.D=d;this.Y=e;this.Z=this.u=null;this.B=this.C=NaN;this.J=0;this.S=null;this.i=f?1:0};
nU=function(a,b,c){a.policy.Lh&&(b.startSecs+=isNaN(a.J)?0:a.J);a=a.K;a.Y.push(b);a.ea("cuepointsadded",c)};
hBa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.C)?a.C:b};
jBa=function(a,b,c,d){iBa(a.D,d,c,b);iBa(a.Y,d,c,b);fE(a.K,d,!0);fE(a.K,d,!1);a.Ba("sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))};
kBa=function(a,b){if(a.u){var c=a.u.me.durationSecs-(b.startTime+a.J-a.u.me.startSecs);0>=c||(c=new fA(a.u.me.startSecs-(a.policy.Lh&&!isNaN(a.J)?a.J:0),c,a.u.me.context,a.u.me.identifier,"stop",a.u.me.i+1E3*b.duration),a.Ba("cuepointdiscontinuity","segNum."+b.Ma),nU(a,c,b.Ma))}};
lBa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ba("sdai","rststate_skth")):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)};
oU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
pU=function(a,b,c,d,e,f){f=void 0===f?[]:f;this.Wa=a;this.ya=b;this.policy=c;this.D=d;this.J=e;this.Za=f;this.B=oG;this.i=this.K=null;this.Z=-1;this.Ja=!1;this.nextVideo=this.u=null;this.C=[];this.Da={};this.videoIndex=0;this.Ua=this.Y=this.S=!1;this.Aa=0;this.Sa=new Set;this.Ya=!1;this.ma=new Map;this.La=0;this.eb=!1;this.Ka=null};
qBa=function(a,b,c){qU(a,b);mBa(a,c);a.K=a.u;nBa(a);oBa(a);a.i=a.nextVideo;a.K=a.u;return pBa(a)};
rBa=function(a,b){if(fB(a.B,b))return null;if("m"===b.reason&&b.isLocked())return a.oa(),qU(a,b),a.videoIndex=a.C.length-1,rU(a),sU(a),a.Y=a.Y||a.i!==a.nextVideo,a.i=a.nextVideo,new oU(a.u,a.i,b.reason);"r"===b.reason&&(a.Z=-1);qU(a,b);sU(a);if("r"===b.reason&&a.nextVideo===a.i)return new oU(a.u,a.nextVideo,b.reason);a.i&&a.nextVideo&&tU(a,a.i.info)<tU(a,a.nextVideo.info)&&(b=a.B.reason,a.S=a.S||"r"===b||"u"===b||"v"===b);return null};
sBa=function(a,b){if(b.info.video){if(a.i!==b)return a.i=b,pBa(a)}else a.Ua=a.K!==b,a.K=b;return null};
uU=function(a,b,c){a.La+=1;if(void 0===c?0:c)a.eb=!0;c=6E4*Math.pow(2,a.La);a.ma.set(b.info.id,(0,g.Q)()+c);a.Z=-1;qU(a,a.B)};
vU=function(a){if(a.ma.size){for(var b=(0,g.Q)(),c=g.r(a.ma.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ma.clear()}return!1};
tBa=function(a,b){return new oU(a.K,a.i,b||a.B.reason)};
wU=function(a){return a.B.isLocked()};
pBa=function(a){a.Ja?a.Ja=!1:a.Z=(0,g.Q)();a.S=!1;return new oU(a.K,a.i,a.B.reason)};
uBa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],h=f&&sD(f)&&f.video.i>a.policy.S,l=e<=a.policy.S?sD(d):qD(d);if(!f||h||l)c[e]=d}return c};
qU=function(a,b){var c;a.B=b;var d=a.J.videoInfos;if(!wU(a)){var e=(0,g.Q)();d=g.Do(d,function(p){if(p.Nb>this.policy.Nb)return this.oa(),!1;var q=this.D.i[p.id],t=q.info.i;return this.policy.qr&&this.Sa.has(t)||this.ma.get(p.id)>e?!1:4<q.u.u||4<q.S?(this.oa(),!1):q.D?!1:!0},a);
a.eb&&vU(a)&&(d=g.Do(d,function(p){return 480>=p.video.i}))}d.length||(d=a.J.videoInfos);
var f=g.Do(d,b.C,b),h="m"===b.reason||"s"===b.reason;a.policy.Rj&&$T&&g.Ui&&(!h||1080>b.i)&&(f=f.filter(function(p){return p.video&&(!p.u||p.u.powerEfficient)}));
if(0<f.length)if(PD()){var l=uBa(a,f);f=f.filter(function(p){return!!p&&!!p.video&&p.i===l[p.video.i].i})}else{b=f[0];
var m=null===(c=null===b||void 0===b?void 0:b.video)||void 0===c?void 0:c.i;if(m){b=f.filter(function(p){return!!p&&!!p.video&&p.video.i===m});
var n=uBa(a,b)[m].i;f=f.filter(function(p){return!!p&&!!p.video&&p.i===n})}}f.length||(f=[d[0]]);
f.sort(function(p,q){return tU(a,p)-tU(a,q)});
for(d=1;d<f.length;d++)b=f[d-1],h=f[d],b.video.width>h.video.width?(a.oa(),g.yb(f,d),d--):tU(a,b)*a.policy.B>tU(a,h)&&(a.oa(),g.yb(f,d-1),d--);d=f[f.length-1];a.Ya=!!a.i&&!!a.i.info&&a.i.info.i!==d.i;a.oa();a.C=f;Dua(a.policy,d)};
mBa=function(a,b){b?a.u=a.D.i[b]:(b=(b=g.rb(a.J.i,function(c){return!!c.Bc&&c.Bc.isDefault}))||a.J.i[0],a.u=a.D.i[b.id]);
rU(a)};
vBa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=gU(a.ya)/a.policy.B;return tU(a,b.info)+tU(a,a.C[c])>d};
rU=function(a){if(!a.u||!a.policy.u)if(!a.u||!a.u.info.Bc)if(a.u=a.D.i[a.J.i[0].id],1<a.J.i.length){var b=!1;if(a.policy.Sa){if(b=!0,a.policy.wl){var c=qb(a.J.i,function(d){return"250"===d.lc()});
0<=c&&(a.u=a.D.i[a.J.i[c].id],b=vBa(a,a.u))}}else b=a.B.isLocked()?240>a.B.i:vBa(a,a.u);b&&(a.u=a.D.i[g.pb(a.J.i).id])}};
sU=function(a){a.policy.Og&&(a.Ka=a.Ka||new g.M(function(){a.policy.Og&&a.i&&!vU(a)&&1===Math.floor(10*Math.random())?(uU(a,a.i),a.S=!0):a.Ka.start()},6E4),g.Dq(a.Ka));
if(!a.nextVideo||!a.policy.u)if(wU(a))a.nextVideo=360>=a.B.i?a.D.i[a.C[0].id]:a.D.i[g.pb(a.C).id],a.oa();else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=gU(a.ya),d=tU(a,a.u.info),e=c/a.policy.C-d;0<b&&!(tU(a,a.C[b])<=e);b--);for(c=c/a.policy.B-d;b<a.C.length-1&&!(tU(a,a.C[b+1])>=c);b++);a.nextVideo=a.D.i[a.C[b].id];a.videoIndex!==b&&a.oa();a.videoIndex=b}};
nBa=function(a){var b=a.policy.C,c=gU(a.ya)/b-tU(a,a.u.info);b=g.sb(a.C,function(d){return tU(this,d)<c},a);
0>b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.i[a.C[b].id];a.oa()};
oBa=function(a){if(a.Za.length){var b=a.Za,c=function(d,e){if("f"===d.info.i||b.includes(xC(d,a.D.isLive)))return d;for(var f=0;f<e.length;f++){var h=a.D.i[e[f].id],l=xC(h,a.D.isLive);if(b.includes(l)){l=d.info.i;var m=h.info.i;if(l===m||PD())return d=d.info.lc(),e=h.info.lc(),a.Wa.Ba("ombifa","f."+d+";t."+e),a.oa(),a.Ja=!0,h;a.Wa.Ba("ombifa","mismatch.efficient;fc."+l+";tc."+m)}}a.Wa.Ba("ombifa","mismatch.unselectable;fmts."+b.join("."));return d};
a.nextVideo=c(a.nextVideo,a.J.videoInfos);a.u=c(a.u,a.J.i)}};
tU=function(a,b){if(!a.Da[b.id]){var c=a.D.i[b.id].index.getLocalMaxByterate(a.Aa,15);c=b.Lu&&a.i&&a.i.index.isLoaded()?c||b.Lu:c||b.Nb;a.Da[b.id]=c}c=a.Da[b.id];a.policy.ac&&b.video&&b.video.i>a.policy.ac&&(c*=1.5);return c};
wBa=function(a,b){a=hc(a.D.i,function(c){return c.info.lc()===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
xBa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Sla(a.D)){for(var c=Math.max(0,a.videoIndex-2);c<a.videoIndex&&c<a.C.length;c++){var d=a.C[c].lc();b.push(d)}b.reverse()}return b};
yBa=function(a,b){this.u=(new TextEncoder).encode(a);this.i=(new TextEncoder).encode(b)};
Qna=function(a,b){return g.H(a,function d(){var e,f=this,h,l;return g.B(d,function(m){if(1==m.i){if(!b)return m.return(b);e=xU.Co("woe");h=new aR(f.u);return g.z(m,h.encrypt(b,f.i),2)}l=m.u;xU.fn(e,Math.ceil(b.byteLength/16));return m.return(l)})})};
Una=function(a,b){return g.H(a,function d(){var e,f=this,h,l;return g.B(d,function(m){if(1==m.i){if(!b)return m.return(b);e=xU.Co("wod");h=new aR(f.u);return g.z(m,h.decrypt(b,f.i),2)}l=m.u;xU.fn(e,Math.ceil(b.byteLength/16));return m.return(l)})})};
yU=function(a,b,c){this.policy=a;this.i=b;this.ya=c;this.B=this.u=0;this.Te=null;this.S=[];this.indexRange=this.initRange=null;this.Z=new uS;this.Y=this.ma=!1;a:{if(this.policy.Fc&&this.policy.pu){b={};c=g.r(this.policy.Fc);for(var d=c.next();!d.done;b={Cx:b.Cx,Dx:b.Dx},d=c.next())if(d=g.Hs(d.value),b.Cx=+d.clen,b.Dx=+d.csz,0<b.Cx&&0<b.Dx&&this.policy.u===d.docid&&this.i.info.id===d.fmtid&&this.i.info.lastModified===+d.lmt){c={};b=(c.clen=b.Cx,c.csz=b.Dx,c.ck=d.ck,c.civ=d.civ,c);break a}}b=void 0}b?
(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.K=b.ck,this.J=b.civ):(this.chunkSize=a.ou,this.C=0,this.policy.Wi&&(this.K=zy(),this.J=zy()));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new yBa(this.K,this.J))};
zU=function(a){return!!a.Te&&a.Te.B};
ABa=function(a,b){if(!zU(a)&&!a.isDisposed()){if(!(a.ma||(a.ma=!0,0<a.C))){var c=AU(a);c=$F(a.policy.u,a.i.info,BU(a),c);CU(a,c)}if(1===b.info.type)a.initRange=AC(0,b.i.totalLength);else if(2===b.info.type){if(!a.Te||1!==a.Te.type)throw Error("deprecated use case");a.indexRange=AC(a.initRange.end+1,b.i.totalLength)}else if(3===b.info.type){if(3===a.Te.type&&!FC(a.Te,b.info)&&(a.S=[],c=a.Te,b.info.Ma!==c.Ma+(c.Qd?1:0)||0!==b.info.Cb))return;if(b.info.Qd){c=g.r(a.S);for(var d=c.next();!d.done;d=c.next())zBa(a,
d.value);a.S=[]}else{a.S.push(b);a.Te=b.info;return}}a.Te=b.info;zBa(a,b);zU(a)&&(b=new Uint8Array(a.D.buffer,0,a.u),c={downloadedEndTime:-1,maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Lu)},b=$F(a.policy.u,a.Te.i.info,BU(a),c,a.B,b,a.crypto),CU(a,b,!0))}};
zBa=function(a,b){var c,d=0,e=bD(b.i);if(a.B<a.C){d=a.C*a.chunkSize;var f=((null===(c=b.info.range)||void 0===c?void 0:c.start)||0)+b.info.Cb;d-=f;if(d>=e.length)return;if(0>d)throw Error("Missing data");a.B=a.C;a.u=0}for(f={};d<e.length;){f.Kt=Math.min(e.length-d,a.D.byteLength-a.u);var h=new Uint8Array(e.buffer,e.byteOffset+d,f.Kt);a.D.set(h,a.u);a.u+=f.Kt;d+=f.Kt;if(a.u===a.D.length){if(b.info===a.Te&&zU(a)&&d===e.length)break;h=AU(a);h=$F(a.policy.u,a.i.info,BU(a),h,a.B,a.D,a.crypto);CU(a,h);
a.isDisposed()||(h=AU(a),a.ya(BU(a),void 0!==h?(h.downloadedEndTime||0)*h.averageByteRate:h.maxKnownEndTime*h.averageByteRate,h.maxKnownEndTime*h.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.B+=1}f={Kt:f.Kt}}};
AU=function(a){return{downloadedEndTime:Math.round(a.Te?a.Te.D:0),maxKnownEndTime:Math.round(a.i.index.getMaxKnownEndTime()),averageByteRate:Math.round(a.i.info.Lu)}};
BU=function(a){var b,c,d={lmt:a.i.info.lastModified,docid:a.policy.u,fmtid:a.i.info.id,type:a.i.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.B*a.chunkSize+a.u};a.crypto&&(d.ck=a.K,d.civ=a.J);var e="local://localhost/videoplayback?"+Es(d);d={itag:+a.i.info.lc(),mimeType:a.i.info.mimeType,bitrate:8*a.i.info.Nb,lastModified:String(a.i.info.lastModified),initRange:null===(b=a.initRange)||void 0===b?void 0:Tka(b),indexRange:null===(c=a.indexRange)||void 0===c?void 0:Tka(c),url:e};e=a.i.info;if(e=
0<e.id.indexOf(";")?e.id.split(";")[1]:null)d.xtags=e;if(e=a.i.info.video)if(d.quality=e.quality,d.qualityLabel=e.qualityLabel,d.width=e.width,d.height=e.height,e=e.fps)d.fps=e;if(a=a.i.info.audio){if(e=a.sampleRate)d.audioSampleRate=String(e);if(a=a.numChannels)d.audioChannels=a}return d};
CU=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
BBa=function(a){a=g.aC(a,1886614376);g.Ob(a,function(b){return!b.u});
return g.lm(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
CBa=function(a){var b=nm(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Ob(a,function(e){c.set(e,d);d+=e.length});
return c};
DBa=function(a,b,c,d,e){this.ids=a;this.u=b;this.B=c;this.C=d;this.i=e};
DU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.i=this.cryptoPeriodIndex=NaN;this.u=[];this.re=!1;if("webm"===(null===b||void 0===b?void 0:b.toLowerCase())||16===a.length)this.re=!0};
EBa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=b.subarray(c+f,c+f+l);b:{for(var n=new Qr,p=new Yc(m);Zc(p);)switch(p.D){case 18:var q=dd(p);Kd(n,2).push(q);break;case 34:var t=dd(p);Jd(n,4,t);break;case 56:var u=Xc(p.i);Jd(n,7,u);break;case 72:var x=Xc(p.i);Jd(n,9,x);break;case 80:var y=
Xc(p.i);Jd(n,10,y);break;case 88:var A=Wc(p.i);Jd(n,11,A);break;case 96:var F=Xc(p.i);Jd(n,12,F);break;case 106:var G=dd(p);Kd(n,13).push(G);break;case 114:f=p;var E=new Rr,K=gha,V=f.i.B,L=Xc(f.i),W=f.i.i+L;f.i.B=W;K(E,f);f.i.i=W;f.i.B=V;f=n;K=E;var oa=Rr,wa=Rd(f,oa,14),vb=K?K:new oa,ob=Kd(f,14);wa.push(vb);ob.push(vb.ph(!1));break;case 122:var $b=cd(p);Jd(n,15,$b);break;case 130:var Uc=cd(p);Jd(n,16,Uc);break;case 136:var bd=Xc(p.i);Jd(n,17,bd);break;case 8:var Se=Wc(p.i);Jd(n,1,Se);break;case 26:var ac=
cd(p);Jd(n,3,ac);break;case 42:var vk=cd(p);Jd(n,5,vk);break;case 50:var Wi=cd(p);Jd(n,6,Wi);break;case 66:var Xi=dd(p);Jd(n,8,Xi);break;default:if(!ae(n,p)){var Ph=n;break b}}Ph=n}f=Ph;if(null!==f){var Ia=f;break a}}catch(Dd){}}c+=e}Ia=null}catch(Dd){Ia=null}}if(null!=Ia)for(b=Id(Ia,7),null==b||a.re||(a.cryptoPeriodIndex=b),b=Id(Ia,10),null!=b&&0<b&&!a.re&&(a.i=b),Ia=Kd(Ia,2),Ia=!Ia.length||Ia[0]instanceof Uint8Array?Ia:g.lm(Ia,wd),Ia=g.r(Ia),b=Ia.next();!b.done;b=Ia.next())a.u.push(g.Hc(b.value,
4))};
FBa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Hc(a.initData):""+a.cryptoPeriodIndex};
EU=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;d=void 0===d.Lw?void 0:d.Lw;this.videoId=a;this.status=b;this.videoDuration=c;this.Lw=d};
GBa=function(a,b,c,d,e){this.videoId=a;this.formatStream=b;this.u=c;this.bytesDownloaded=d;this.i=e};
FU=function(a){this.i=a;this.offset=0};
GU=function(a){if(a.offset>=a.i.totalLength)throw Error();return cD(a.i,a.offset++)};
HBa=function(a,b){b=void 0===b?!1:b;var c=GU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=GU(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+GU(a),d*=128;return b?c:c-d};
HU=function(a,b,c){var d=this;this.Wa=a;this.policy=b;this.D=c;this.u=[];this.i=null;this.ma=-1;this.S=0;this.Aa=NaN;this.Z=0;this.B=NaN;this.Da=0;this.La=-1;this.Ja=this.J=this.K=this.ya=null;this.Sa=this.Ka=NaN;this.C=this.Y=this.Ua=null;this.Ya=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.C=new yU(this.policy,e,function(h,l,m){h=new EU(d.policy.u,2,{Lw:new GBa(f,h,e.info,l,m)});a.Ca.Hs(h)});
this.C.Z.promise.then(function(h){d.C=null;1===h&&(h=new EU(d.policy.u,h),a.Ca.Hs(h))},function(h){h=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
d.oa();d.Wa.Ba("dldbwerr",h);IBa(d);h=new EU(d.policy.u,4);a.Ca.Hs(h)})}};
JBa=function(a){return a.u.length?a.u[0]:null};
IU=function(a){return a.u.length?a.u[a.u.length-1]:null};
OBa=function(a,b,c){if(a.J){var d=a.J.Cb+a.J.u;if(0<c.info.Cb)if(c.info.Ma===a.J.Ma&&c.info.Cb<d){if(c.info.Cb+c.info.u<=d)return;c=tla(c,d-c.info.Cb)[1]}else if(0<=c.info.Ma&&0<=a.J.Ma&&!FC(a.J,c.info))throw new g.$v("improper_continuation",BC(a.J),BC(c.info));if(a.policy.Xq){d=a.J;var e=c.info;d=d.Ma!==e.Ma&&e.Ma!==d.Ma+1||d.type!==e.type||Tf(d.C,e.C)&&d.Ma===e.Ma?!1:GC(d,e)}else d=GC(a.J,c.info);d||KBa(a)}else if(0<c.info.Cb)throw new g.$v("continuation_of_null",BC(c.info));a.J=c.info;a.D=c.info.i;
if(0===c.info.Cb){if(a.i)throw new g.$v("slice_not_fully_processed",BC(a.i.info),BC(c.info));JU(a)}else!c.info.i.Pg()&&a.K&&Yka(c.info,a.K);if(a.i){d=ula(a.i,c);if(!d)throw new g.$v("failed_to_merge",BC(a.i.info),BC(c.info));a.i=d}else a.i=c;a:{c=g.fD(a.i.info.i.info);if(3!==a.i.info.type){if(!a.i.info.Qd)break a;6===a.i.info.type?LBa(a,b,a.i):KU(a,a.i);a.i=null}for(;a.i;){d=a.i.i.totalLength;if(0>=a.ma&&0===a.S){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8<f.totalLength;){var m=rla(f,l),n=rla(f,l+
4);l+=m||1;if(1836019558===n)h=l;else if(1835295092===n){e=l;break}}0>e&&(h=-1)}else{f=new FU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=HBa(p,!0),t=HBa(p,!1);var u=q;var x=t}catch(A){x=u=-1}p=u;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>h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.S=e-h}if(a.ma>d)break;
a.ma?(d=MBa(a,a.ma),d.B&&!d.info.i.Pg()&&NBa(a,d),LBa(a,b,d),LU(a,d),a.ma=0):a.S&&(d=MBa(a,0>a.S?Infinity:a.S),a.S-=d.i.totalLength,LU(a,d))}}a.i&&a.i.info.Qd&&(LU(a,a.i),a.i=null)};
KU=function(a,b){!b.info.i.Pg()&&0===b.info.Cb&&(g.fD(b.info.i.info)||b.info.i.info.re())&&Ala(b);if(1===b.info.type)try{NBa(a,b),PBa(a,b)}catch(d){g.Ty(d);var c=HC(b.info);c.hms="1";a.Wa.handleError(!0,"fmt.unparseable",c||{})}b.info.i.TD(b);a.C&&ABa(a.C,b)};
kU=function(a){a.u=[];JU(a);IBa(a)};
IBa=function(a){var b;null===(b=a.C)||void 0===b?void 0:b.dispose();a.C=null};
QBa=function(a){var b=a.u.reduce(function(c,d){return c+d.i.totalLength},0);
a.i&&(b+=a.i.i.totalLength);return b};
MU=function(a){return g.lm(a.u,function(b){return b.info})};
MBa=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=tla(c,b);a.i=c[1];return c[0]};
NBa=function(a,b){var c=eD(b);if(!a.policy.So&&rD(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new bC(c);dC(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;qD(d)&&!rD(d)&&(d=eD(b),iC(new bC(d)),hC([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.B&&(g.fD(d.info)?d.B=Aka(c):d.info.re()&&(d.B=Gka(c))));b.info.i.info.re()&&
b.info.isVideo()&&(c=eD(b),iC(new bC(c)),hC([408125543,374648427,174,224],30320,c)&&hC([408125543,374648427,174,224],21432,c));if(a.policy.yu&&b.info.i.info.re()){c=eD(b);var e=new bC(c);if(dC(e,[408125543,374648427,174,29637])){d=gC(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.Gk()&&g.fD(b.info.i.info)){d=eD(b);c=g.SB(d,0,1701606260);f=g.SB(d,0,1836476516);if(c&&f){c.skip(2);var h=JB(c),l=LB(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(MB(c)),e.push(MB(c)),
m.push(JB(c)),n.push(JB(c));else for(h=0;h<l;++h)d.push(KB(c)),e.push(KB(c)),m.push(JB(c)),n.push(JB(c));c=g.TB(f);c=new xka(e[0]/c,d[0]/c)}else c=null;if(c){if(g.fD(b.info.i.info))for(d=eD(b),e=g.SB(d,0,1701082227);e;)e.markAsSkip(),e=g.SB(d,e.offset+e.size,1701082227);a.Ya=!0;b.info.i.J=c}}b.info.i.Pg()||b.info.i.i||b.info.i.indexRange||(g.fD(b.info.i.info)?(a=eD(b),(c=VB(a,0,1836019574))?(c=c.offset+c.size,d=new Uint8Array(c),d.set(new Uint8Array(a.buffer,a.byteOffset,c)),a=d):a=null):a=Ika(new bC(eD(b))),
a&&(b.info.i.i=a))};
LBa=function(a,b,c){if(c.info.i.Pg()){if(a.Ya&&RBa(c)&&(b=eD(c),b=g.SB(b,0,1953658222))){b.skip(1);var d=IB(b)<<16|JB(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=LB(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=LB(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.ya&&!!a.ya.D.J)if(b=c.info.isVideo())b=zla(c),h=a.ya,NU?(l=1/b,b=OU(a,b)>=OU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&RBa(c)&&(b=a.ya,NU?(l=zla(c),h=1/l,l=OU(a,l),b=OU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,zka(eD(c),b))}else{h=!1;a.K||(Ala(c),c.u&&(a.K=c.u,h=!0,Yka(c.info,c.u),l=c.info.i.info,f=eD(c),g.fD(l)?$B(f,1701671783):l.re()&&hC([408125543],307544935,f)));a:{if(f=l=gD(c,a.policy.Ka))f=c.info.i.info.re()&&160===cD(c.i,0);if(f)a.Z+=l,a.B=a.policy.Mb?a.B+l:NaN;else{if(a.policy.Hq){var n=a.Wa.ep(vla(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Mb&&isNaN(a.Ka)){g.Bz(new g.$v("Missing duration while processing previous chunk",BC(c.info)));KBa(a);break a}f=
n-a.B;var p=f-a.Da;d=c.info.Ma;var q=a.Ja?a.Ja.Ma:-1,t=a.Sa,u=a.Ka;m=a.policy.Fe&&f>a.policy.Fe;var x=a.policy.xe&&p>a.policy.xe;1E-4<Math.abs(p)&&(n={audio:""+ +a.Gk(),sq:d.toFixed(),sliceStart:n,lastSq:q.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+(+m||x)},a.Wa.handleError(!1,"qoe.avsync",n),a.La=d);n=0;a.policy.Xp&&(m||x||(e=a.B),a.policy.mq&&a.ya&&!a.Gk()&&g.fD(c.info.i.info)&&(x=a.ya,m=x.La,x=x.Da,p=.02<Math.abs(x-f),(d===
m||d>m&&d>a.La)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),zka(eD(c),d),d=gD(c,a.policy.Ka),n=l-d,l=d)));a.Da=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;wla(c,e)?(isNaN(a.Aa)&&(a.Aa=e),a.Z+=l,a.B=e+l):(l=HC(c.info),l.smst="1",a.Wa.handleError(!0,"fmt.unparseable",l||{}))}}a.Ja=c.info;a.Ka=yla(c);0<=c.C&&(a.Sa=c.C);if(h&&a.K){h=SBa(a,!0);IC(c.info,h);a.i&&IC(a.i.info,h);b=g.r(b.info.i);for(l=b.next();!l.done;l=b.next())IC(l.value,h);(c.info.Qd||a.i&&a.i.info.Qd)&&6!==c.info.type||(a.Y=h,b=
a.Wa,b.i.isManifestless&&TBa(b,h,!!a.D.info.video),a.policy.wc||UBa(a))}}PBa(a,c);a.timestampOffset&&xla(c,a.timestampOffset)};
LU=function(a,b){if(b.info.Qd){a.Ua=b.info;if(a.K){var c=SBa(a,!1);a.Wa.hF(a.D,c);a.Y||a.policy.wc||UBa(a);a.Y=null}JU(a)}a.C&&ABa(a.C,b);if(c=IU(a))if(c=ula(c,b,a.policy.Ti)){a.u.pop();a.u.push(c);return}a.u.push(b)};
JU=function(a){a.i=null;a.ma=-1;a.S=0;a.K=null;a.Aa=NaN;a.Z=0;a.Y=null};
KBa=function(a){a.B=NaN;a.Da=0;a.La=-1;a.Ja=null;a.Sa=NaN;a.Ka=NaN};
PBa=function(a,b){if(a.D.info.zd){if(b.info.i.info.re()){var c=new bC(eD(b));if(dC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=gC(c,!0);c=16!==d?null:mC(c,d)}else c=null;d="webm"}else b.info.S=BBa(eD(b)),c=CBa(b.info.S),d="cenc";c&&c.length&&(c=new DU(c,d),c.re=b.info.i.info.re(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.Pj&&b.u&&b.u.B&&(c.i=b.u.B),a.Wa.Is(c))}};
UBa=function(a){var b=a.K,c=vka(b);c&&(c.startSecs+=a.Aa,a.Wa.gF(a.D,c,b.i,b.Tv()))};
SBa=function(a,b){var c,d=a.K;if(c=vka(d))c.startSecs+=a.Aa;if(d.Tv()){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.r(d.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(d.data["Stitched-Video-Start-Frame-Index"]){m=g.r(d.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(d.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(d.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 DBa(e,f,h,l,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new CB(d.i,a.Aa,b?d.Mi:a.Z,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)};
RBa=function(a){return a.info.i.Pg()&&a.info.Ma===a.info.i.index.getLastSegmentNumber()};
OU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.J&&b&&(b+=a.D.J.i);return b+a.getDuration()};
VBa=function(a,b){0>b||(a.u.forEach(function(c){xla(c,b)}),a.timestampOffset=b)};
PU=function(a,b){this.info=a;this.callback=b;this.state=1;this.S=!1;this.C=0;this.D=!1;this.i=null};
WBa=function(a){return g.mm(a.info.i,function(b){return 3===b.type})};
QU=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)};
RU=function(a,b){b&&a.state<b?QU(a,b):a.callback&&a.callback(a,a.state)};
XBa=function(a){a.i&&a.i.C?(a=a.i.C,a=new CC(a.type,a.i,a.range,"getEmptyStubAfter"+a.J,a.Ma,a.startTime+a.duration,0,a.Cb+a.u,0,!1)):(a=a.info.i[0],a=new CC(a.type,a.i,a.range,"getEmptyStubBefore"+a.J,a.Ma,a.startTime,0,a.Cb,0,!1));return a};
YBa=function(a,b){this.i=a;this.u=0;this.B=null;this.je=[];this.C=null;(this.length=b?b:0)?1!==this.i.length||this.i[0].u||(this.i[0].u=this.length):1===this.i.length||g.mm(this.i,function(c){return!!c.range})};
ZBa=function(a,b,c){a.B&&(ZC(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=0,l=g.r(a.i),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.u<=a.u)f+=m.u;else{if(DC(m)&&!c&&a.u+b.totalLength-h<f+m.u){a.B=b.split(h).Fq;break}var n=3===m.type||4===m.type,p=a.u-f,q=a,t=h,u=b,x=m.i.Tt()&&!p||n&&d&&!e&&1===b.i.length,y=!!c,A=u.totalLength-t;m.range&&(A=Math.min(m.u-p,A));y=m.range?m.Cb+p+A===m.range.length:y;p=new CC(m.type,m.i,m.range,"reslice"+m.J,m.Ma,m.startTime,m.duration,m.Cb+p,A,y&&m.B,y);
y=A;t=u.split(t).Fq.split(y).lz;q.je.push(new dD(p,t,x));q=A;a.u+=q;h+=q;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);if(h===b.totalLength)break}};
$Ba=function(a){if(!a.je.length)return[];var b=a.je;a.je=[];a.C=g.pb(b).info;return b};
aCa=function(a){return a.length-a.u+a.je.reduce(function(b,c){return b+c.i.totalLength},0)};
TU=function(a,b,c,d){var e;PU.call(this,b,d);var f=this;this.u=a;this.Be=c;this.B=new g.M(function(){f.isComplete()||QU(f,5)},3E3);
this.od=function(){f.isDisposed()||(SU(f.Be,f.u)?(f.isComplete()||f.B.start(),f.Be.Vf(f.u)&&RU(f,2),f.Be.rf(f.u)&&(bCa(f.Be,f.u)?QU(f,4):QU(f,5))):QU(f,5))};
this.B.start();this.i=new YBa(this.info.i,null===(e=this.info.range)||void 0===e?void 0:e.length);cCa(this.Be,this.u,this.od);g.Ug(this.od)};
UU=function(a,b,c){this.Wa=a;this.policy=b;this.i=c;this.B=[];this.u=this.Vb=null;this.Y=this.ma=0;this.J=-1;this.S=!1;this.Z=-1;this.C=new HU(a,b,c);this.Nb=c.info.Nb;this.K=c.Zv();this.isManifestless=c.Zv();this.D=this.K};
VU=function(a,b){b&&NU&&VBa(a.C,b.KD());a.Vb=b};
WU=function(a){return a.Vb&&a.Vb.Uy()};
XU=function(a,b){a.B.push(b);a.u=g.pb(b.info.i)};
YU=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();dCa(a,b);a.ma=b.cK()}a.B.length&&(b=a.B[0],b.Ns()&&(!b.info.dj()||b instanceof TU)&&dCa(a,b))};
dCa=function(a,b){if(b.Ns()){var c=b.VB();c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.Aa&&b instanceof TU&&a.Wa.Ba("omblss","s."+BC(d.info)),eCa(a,b,d)}};
eCa=function(a,b,c){switch(c.info.type){case 1:case 2:KU(a.C,c);break;case 4:var d=c.info.i.uH(c);c=c.info;var e=a.u;e&&e.i===c.i&&e.type===c.type&&(c.range&&e.range?e.range.start===c.range.start&&e.range.end===c.range.end:e.range===c.range)&&e.Ma===c.Ma&&e.Cb===c.Cb&&e.u===c.u&&(a.u=g.pb(d).info);d=g.r(d);for(c=d.next();!c.done;c=d.next())eCa(a,b,c.value);break;case 3:OBa(a.C,b,c);break;case 6:OBa(a.C,b,c),a.u=c.info}};
jU=function(a,b,c){c=void 0===c?!1:c;if(a.Vb){var d=a.Vb.kf(),e=HD(d,b),f=NaN,h=WU(a);h&&(f=HD(d,h.i.index.getStartTime(h.Ma)));if(e===f&&a.u&&a.u.u&&fCa(ZU(a),0))return b}a=gCa(a,b,c);return 0<=a?a:NaN};
lU=function(a,b){a.i.Re();var c=gCa(a,b);if(0<=c)return c;c=Math;var d=c.min,e=a.C;if(e.C)if(e=e.C,e.Te&&3===e.Te.type)e=e.Te.startTime;else if(0<e.C){var f=e.i.index;f=g.Jb(f.offsets.subarray(0,f.count),e.C*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.u=a.i.Pl(b).i[0];$U(a)&&a.Vb&&a.Vb.abort();a.Y=0;return a.u.startTime};
hCa=function(a){a.K=!0;a.D=!0;a.J=-1;lU(a,Infinity)};
aV=function(a){var b=0;g.Ob(a.B,function(c){var d=b;c=c.i&&c.i.length?aCa(c.i):Zka(c.info);b=d+c},a);
return b+=QBa(a.C)};
bV=function(a,b){if(!a.Vb)return 0;var c=WU(a);if(c&&c.B)return c.D;a=a.Vb.kf(!0);return Gla(a,b)};
iBa=function(a,b,c,d){iU(a);for(var e=a.C,f=!1,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ma>=b&&(e.u.pop(),e.B-=gD(l,e.policy.Ka),f=!0)}f&&(e.J=0<e.u.length?e.u[e.u.length-1].info:null);d>c?lU(a,d):a.u=a.i.Hm(b-1,!1).i[0]};
eV=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)cV(a,b);else{for(;c<a.B.length;)cV(a,a.B.pop());var d=dV(a);d&&d.i.Pg()&&on(b.info.i,function(e){return Xka(e,d)})?a.u=d:EC(b.info.i[0])?a.u=XBa(b):a.u=null}};
$U=function(a){var b;!(b=!a.policy.Vq&&"f"===a.i.info.i)&&(b=a.policy.u)&&(b=a.C,b=!!b.C&&zU(b.C));if(b)return!0;b=WU(a);if(!b)return!1;var c=b.B&&b.Qd;return a.isManifestless&&0<a.Z?c||b.Ma>=a.Z:c};
iCa=function(a){var b;return $U(a)||!(null===(b=IU(a.C))||void 0===b||!b.info.B)};
ZU=function(a){var b=[],c=WU(a);c&&b.push(c);b=g.Cb(b,MU(a.C));g.Ob(a.B,function(d){g.Ob(d.info.i,function(e){d.S&&(b=g.Do(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Cb>=e.range.start+e.Cb&&f.range.start+f.Cb+f.u<=e.range.start+e.Cb+e.u:f.Ma===e.Ma&&f.Cb>=e.Cb&&(f.Cb+f.u<=e.Cb+e.u||e.Qd))}));
(EC(e)||4===e.type)&&b.push(e)})});
a.u&&!Vka(a.u,g.pb(b),a.u.i.Pg())&&b.push(a.u);return b};
fCa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!GC(a[b-1],a[b]))return!1;return!0};
gCa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=ZU(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:fCa(a,c?b:0)?a[b].startTime:NaN};
fV=function(a){return!(!a.u||a.u.i===a.i)};
gV=function(a){return fV(a)&&a.i.Re()&&a.u.i.info.Nb<a.i.info.Nb};
jCa=function(a,b,c){return(a=dV(a))&&!a.B?a.D>b&&a.D<b+c:!1};
dV=function(a){var b=IU(a.C);return b?b.info:WU(a)};
iU=function(a){g.Ob(a.B,function(b){cV(this,b)},a);
a.B=[];a.u=null};
cV=function(a,b){var c=b.info.i[0].i.Pg();b.S&&!c&&(a=a.C,a.oa(),a.Y&&!a.policy.Of&&(c=a.Wa,c.i.isManifestless&&fE(c.i,a.Y.Ma,!!a.D.info.video)),a.Y=null,a.K=null,a.J=a.Ua,a.B-=a.Z,JU(a));b.dispose()};
kCa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.i.index.getFirstSegmentNumber()};
lCa=function(a){var b=a.u;b&&-1===b.Ma&&(a=IU(a.C))&&EC(a.info)&&(a=a.info.Ma,b.J="updateLastSliceRequested",b.Ma=a)};
mCa=function(a){return on(a.B,function(b){return b.D})};
hV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.C=c;this.status=0;this.i=new YC;this.B=0;this.isDisposed=this.D=!1;this.J=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.Js()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.i.append(e.u);e.u=f;e.B+=f.length;f=(0,g.Q)();10<f-e.J&&(e.C.iq(f,e.B),e.J=f)},function(){},d.body||null)};
oCa=function(a,b){var c=this;this.i=a;this.B=b;this.loaded=this.status=0;this.error="";a=zC(this.i.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new YC;nCa(this).then(function(){c.B.Zn()},function(d){c.error=""+d||"unknown_err";
c.B.Zn()})};
nCa=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G;return g.B(c,function(E){if(1==E.i){d.status=200;e=d.i.get("docid");f=$f(d.i.get("fmtid")||"");h=d.i.get("lmt")||"0";l=+(d.i.get("csz")||0);if(!e||!f||!l)throw Error("Invalid local URL");d.i.get("ck")&&d.i.get("civ")&&(m=new yBa(d.i.get("ck"),d.i.get("civ")));n=d.range;p=Math.floor(n.start/l);q=Math.floor(n.end/l);t=p}if(5!=E.i)return t<=q?g.z(E,Vna(e,f,h,t,m),5):E.fb(0);u=E.u;if(void 0===u)throw Error("invariant: data is undefined");
x=t*l;y=(t+1)*l;A=Math.max(0,n.start-x);F=Math.min(n.end+1,y)-(A+x);G=new Uint8Array(u.buffer,A,F);d.u.append(G);d.loaded+=F;d.loaded<n.length&&d.B.iq((0,g.Q)(),d.loaded);t++;return E.fb(2)})})};
iV=function(a,b){var c=b.Ng,d=void 0===b.yk?1:b.yk,e=void 0===b.jA?d:b.jA,f=void 0===b.dj?!1:b.dj,h=void 0===b.Vl?!1:b.Vl,l=void 0===b.jD?!1:b.jD,m=b.hh,n=b.Ma;b=b.Oe;this.K=a;this.requestNumber=++pCa;this.i=this.now();this.Aa=this.Sa=NaN;this.Ja=0;this.C=this.i;this.u=0;this.Ua=this.i;this.Da=0;this.Ya=this.La=this.isActive=!1;this.B=0;this.S=NaN;this.Y=this.D=Infinity;this.ma=NaN;this.Ka=!1;this.J=NaN;this.Z=void 0;this.Ng=c;this.policy=this.Ng.ma;this.yk=d;this.jA=e;this.dj=f;this.Vl=h;l&&(this.Z=
[]);this.hh=m;this.Ma=n;this.Oe=b;this.snapshot=KE(this.Ng);qCa(this);rCa(this,this.i);this.S=(this.J-this.i)/1E3};
jV=function(a){return{rn:""+a.requestNumber,rt:(a.now()-a.i).toFixed(),lb:a.u.toFixed(),pt:(1E3*a.S).toFixed(),pb:a.yk.toFixed(),stall:(1E3*a.B).toFixed(),hrt:(a.Sa-a.i).toFixed(),elt:(a.Aa-a.i).toFixed(),elb:a.Ja.toFixed()}};
tCa=function(a,b,c,d){if(!a.La){a.La=!0;if(!a.Vl){kV(a,b,c);sCa(a,b,c);var e=a.un();if(2===e&&d)lV(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.i)/1E3,(d<=a.policy.i||!a.policy.i)&&!a.Ya&&mV(a)&&lV(a,d,c),mV(a)&&(d=a.Ng,c=Math.max(c,2048),d.i.Mg(1,a.B/c),LE(d));c=a.Ng;b=(b-a.i)/1E3||.05;d=a.S;e=a.dj;c.J.Mg(b,a.u/b);c.C=GE();e||c.u.Mg(1,b-d)}a.deactivate()}};
sCa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.un();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&lV(a,.05,e)):lV(a,d,e),a.Ya=!0);else if(nV(a,c)){if(1===f&&(f=(b-a.i)/1E3,!uCa(a)&&!a.Vl)){var h=a.Ng;h.K.Mg(1,f);LE(h)}a.Aa=b;a.Ja=c;a.isActive=!0}a.Vl||Oma(a.Ng,d,e);a.C=b;a.u=c};
lV=function(a,b,c){if(!a.Vl){b=Math.max(b,.05);a=a.Ng;var d=b;a.B.Mg(void 0===b?d:b,c/d);a.C=GE()}};
kV=function(a,b,c){c=Math.round(c/1024);a.Z&&a.Z.push(oV(b-a.Ua,c-a.Da));a.Ua=b;a.Da=c};
vCa=function(a){return a.Z?a.Z.join(""):""};
nV=function(a,b){return b?a.hh&&1!==a.un()?!0:2048<=b:!1};
mV=function(a){return nV(a,a.u)};
wCa=function(a){return(a.C-a.i)/1E3};
qCa=function(a){a.ma=a.i+1E3*a.snapshot.delay;a.Ka=!1};
pV=function(a,b){if(a.hh&&void 0!==a.Ma&&void 0!==a.Oe){var c=Math,d=c.min,e=a.D;var f=a.hh;var h=a.i;if(WAa(f,a.Ma))f=b;else{var l=0;f.dg&&(l=.2);f=h+1E3*(f.Fg+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.Y;f=a.hh;h=a.i;l=XAa(f,a.Ma,a.Oe);2!==l&&(b=l?b:h+1E3*f.Fg,f.dg&&(b+=1E3*f.Fg));a.Y=d.call(c,e,b);a.D<=a.i?qCa(a):(a.ma=a.D,a.Ka=!0)}};
uCa=function(a){a.hh&&pV(a,a.now());return a.Ka};
rCa=function(a,b){b=void 0===b?a.now():b;if(a.hh){pV(a,b);var c=a.ya?a.hh?1!==a.un():!1:a.D!==a.Y;if(c){if(c=a.Y,b<c){a.J=a.Y;return}}else c=a.D;c=Math.max(c,a.ma)}else c=a.ma;var d=a.yk-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=mV(a)?d+b:d+Math.max(b,c);a.J=d};
oV=function(a,b){for(var c="";4095<a;)c+=oV(4095,0),a-=4095;for(;4095<b;)c+=oV(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))};
qV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.D=c;this.Da=d;this.status=0;this.response=void 0;this.Aa=!1;this.u=0;this.ya=NaN;this.ma=0;this.Z=this.J=this.Y=!1;this.errorMessage="";this.Ja=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.S=f.headers,e.D.Ks(),xCa(e));
else e.onDone()};
this.Ka=function(f){var h=(0,g.Q)();if(!e.isDisposed())if(e.K&&(e.i.append(e.K),e.K=void 0),f.done)e.B=void 0,e.onDone();else{f=f.value;e.u+=f.length;yCa(e)?e.i.append(f):e.K=f;f=(0,g.Q)();if(!e.policy.i||10<f-e.ma)e.ma=f,e.D.iq(h,e.u);xCa(e)}};
this.onError=function(f){e.oa();e.errorMessage=String(f);e.J=!0;e.onDone()};
this.i=new YC;this.id=zCa++;this.C=window.AbortController||cB()?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
xCa=function(a){a.B.read().then(a.Ka,a.onError).then(void 0,Uv)};
yCa=function(a){if(a.policy.i)return!1;var b=a.getResponseHeader("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.u&&a.policy.dg&&bB(a)&&b};
rV=function(a,b,c){var d=this;c=void 0===c?{}:c;this.B=b;this.u=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.r(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.Js(f)};
a=As(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",As(function(f){d.od(f)}),!1)};
uV=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.Iw?[]:h.Iw;var l=void 0===h.lx?!1:h.lx,m=void 0===h.hp?0:h.hp;h=void 0===h.poToken?"":h.poToken;PU.call(this,b,e);var n=this;this.policy=a;this.lastError=null;this.Y=this.B=0;this.Da=!1;this.K=this.J=null;this.Aa=!1;this.timing=new iV(this,c);this.ma=d;this.lx=l;this.u=g.MC(this.info,this.policy,this.ma);this.u.set("rn",this.timing.requestNumber.toString());this.u.set("rbuf",(1E3*m).toFixed().toString());this.lx&&this.u.set("smb","1");this.policy.Ni&&
h&&this.u.set("pot",h);this.Iw=f||null;this.D=ACa(this);this.ya=1*this.policy.bd;this.Z=new g.M(this.IW,this.ya,this);this.info.u.J=(0,g.Q)();Oka(sV(this));try{this.xhr=BCa(this),this.Z.start(),this.oa("Sent, itag="+this.u.get("itag")+(" seg="+this.info.i[0].Ma)+(" range="+this.u.get("range"))+(" time="+Math.round(this.info.i[0].C)+"-"+Math.round(g.pb(this.info.i).D))+(" rtp="+(this.timing.J-Date.now()).toFixed(0)))}catch(p){g.Bz(p),this.lastError="net.ssl",g.Ug(function(){tV(n)})}};
ACa=function(a){if(!(LC(a.info)&&a.info.dj()&&a.policy.Kg&&a.Iw)||2<=a.info.u.u||0<gE()||!rma())return!1;var b=a.u.get("aitags");if(!b)return!1;b=$f(b).split(",");for(var c=[],d=g.r(a.Iw),e=d.next();!e.done;e=d.next())e=e.value,g.ub(b,e)&&c.push(e);if(!c.length)return!1;a.u.set("altitags",Zf(c.join(",")));return!0};
sV=function(a){return sC(a.ma,yB(a.u.hg))};
ECa=function(a,b){if(400<=b.status)return a.lastError="net.badstatus",5;if(!b.Pw())return a.lastError=204===b.status?"net.nocontent":"net.connect",5;var c="";if(CCa(a)){var d=b.Yf();d.totalLength<=a.policy.ai&&(c=bD(d),c=GB(c),jA(c)?a.oa():c="")}if(c){var e=sV(a);(0,g.Q)();e.started=0;e.timedOut=0;e.i=0;a.info.lj(a.u,c);return 3}c=b.Ol();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.zA())return a.lastError="net.closed",5;a.En(!0);if(!d&&a.i&&(d=a.i.je,d.length&&!sla(d[0])))return a.lastError=
"net.closed",5;d=WBa(a)?b.getResponseHeader("X-Bandwidth-Est"):0;if(b=WBa(a)?b.getResponseHeader("X-Bandwidth-Est3"):0)a.Da=!0,a.policy.xl&&(d=b);tCa(a.timing,(0,g.Q)(),c,d?Number(d):0);b=sV(a);(0,g.Q)();b.started=0;b.timedOut=0;b.i=0;b=a.info.u;b.u=0;b.C=0;(0,g.Q)()<DCa+3E5||!a.u||zB(a.u.hg)||!(b=yB(a.u.hg))||0>b.indexOf("googlevideo.com")||(oka(a.u.hg)&&(e=yB(AB(a.u.hg))),g.Qz("yt-player-bandaid-host",{primary:b,secondary:e},864E3),DCa=(0,g.Q)());e=a.timing;a.oa("Succeeded, rtpd="+(1E3*e.S+e.i-
Date.now()).toFixed(0));return 4};
tV=function(a){var b;a.oa("Request failed, itag="+a.u.get("itag")+(" seg="+a.info.i[0].Ma)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.u))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.Q)();if(!c.Vl){kV(c,d,1024*c.Da);var e=(d-c.i)/1E3;if(2!==c.un())if(mV(c)){c.B+=(d-c.C)/1E3;var f=c.Ng,h=c.u;h=Math.max(h,2048);f.i.Mg(1,c.B/h);LE(f)}else uCa(c)||c.Vl||(f=c.Ng,f.K.Mg(1,e),LE(f)),c.Aa=d;f=c.Ng;h=c.S;var l=c.dj;f.J.Mg(e,c.u/e);f.C=GE();l||f.u.Mg(1,e-h);Oma(c.Ng,
(d-c.C)/1E3,0)}}"net.nocontent"!==a.lastError&&((c="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)?(d=sV(a),d.timedOut+=1):(d=sV(a),d.i+=1),a.timing.u||(d=a.info.u,++d.u,c&&++d.C));QU(a,5)};
FCa=function(a,b){b&&(b=sV(a),b.u+=1);vV(a);a.lastError="net.timeout";tV(a)};
vV=function(a){a.oa();a.xhr&&a.xhr.abort();a.timing.deactivate()};
CCa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.Av();c=!c||c<=a.policy.ai;return(!a.xhr.nt()||!b||-1!==b.indexOf("text/plain"))&&c};
BCa=function(a){if(zB(a.u.hg))return new oCa(a.u,a.timing);var b=a.u.Wd();return a.policy.La&&(a.policy.Vp&&!isNaN(a.info.Oe)&&a.info.Oe>a.policy.dk||a.D?0:aB())?cB()?new hV(b,a.policy.D,a.timing):new qV(b,a.policy.D,a.timing):new rV(b,a.timing)};
GCa=function(a){if(!a.policy.D.dg||!isNaN(a.info.Oe)&&0<a.info.Oe)return!1;if(!a.xhr.Gn())return a.oa(),!0;if(!bB(a.xhr))return!1;if(isNaN(a.info.Oe)){var b=a.xhr.getResponseHeader("x-head-seqnum");if(!b)a.oa();else if(Number(b)>a.info.i[0].Ma)return!1}return!0};
wV=function(a,b,c,d,e){this.Wa=a;this.policy=b;this.schedule=c;this.S=d;this.Y=e;this.ma=NaN;this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.Z=NaN};
HCa=function(a,b,c,d,e){return b.Za&&b.ma&&3===lka(b)?new wV(a,b,c,d,e):null};
ICa=function(a,b){if(a.policy.Lq){var c=b.info.Nb,d=JE(a.schedule);b=b.index.Fg;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.Y)/c,b-a.policy.uc));a.oa()}};
LCa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.Kh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.Nq&&(h=!0);a.oa();a.J=c}c=d>=a.policy.uc&&!a.B;if(!f&&!c&&JCa(a,b))return NaN;c&&(a.B=!0,a.oa());a:{d=h;c=Date.now()/1E3-(a.S.qg()||0)-a.K.u-a.policy.Y;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.oa();xV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.kc;d<c&&(a.oa(),c=d)}else a.B&&(d=c+a.policy.Y-a.ma+a.policy.Lo,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.kc))),
c=d);c=Math.max(c,f);a.oa();f=c}a.i=f;if(isNaN(a.i))return a.oa(),a.clear(),NaN;if(!h&&JCa(a,b))return KCa(a,b),NaN;if(a.i<=a.u.startTime)return xV(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.i,!1))return!KCa(a,b)&&h&&(xV(a,NaN,"t",b),a.clear()),NaN;a.oa();h=a.i;xV(a,h,"s",b);a.clear();return h};
KCa=function(a,b){return a.Y(a.i,!0)?!1:(xV(a,NaN,"ns",b),a.oa(),a.clear(),!0)};
JCa=function(a,b){return isNaN(b)?!0:isNaN(a.i)?!1:b<a.i+(a.B?a.policy.kc:a.policy.Mq)};
xV=function(a,b,c,d){var e=a.C.du();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.K.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.S.qg()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.i.index;TC(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Wa.Ba("ssr",g.LD(e))};
MCa=function(){if(!window.performance)return{};var a=window.performance.memory;return a?{jsTotal:a.totalJSHeapSize,jsUsed:a.usedJSHeapSize,msUsed:a.usedMediaSourceMemorySize}:{}};
g.yV=function(a,b,c,d,e,f,h,l,m){l=void 0===l?!1:l;g.I.call(this);var n=this;this.Ca=a;this.schedule=b;this.policy=c;this.i=d;this.Y=m;this.timing=new gBa;this.J=new dU(this.schedule,this.policy);this.mediaSource=null;this.jb=new g.M(this.wh,0,this);this.Ja=new g.M(this.wh,1E3,this);this.qb=new g.M(this.wh,void 0,this);this.kb=new g.M(this.wh,1E4,this);this.S=this.currentTime=NaN;this.ma=this.Ya=0;this.ya=this.Sa=this.isSuspended=!1;this.Ka="";this.Da=new DE(5);this.Aa={};this.Za=this.Oe=NaN;this.hh=
null;this.timestampOffset=NaN;this.eb=!1;this.Ua=0;this.Z=!1;this.K=null;a=m&&Array.from(m.Me.keys());this.u=new pU(this,this.J,c,this.i,e,a);c=qBa(this.u,f,h&&h.id);this.audioTrack=new UU(this,this.policy,c.audio);this.videoTrack=new UU(this,this.policy,c.video);this.videoTrack.C.ya=this.audioTrack.C;this.La={updateend:this.EP,error:this.BT};g.J(this,this.jb);g.J(this,this.Ja);g.J(this,this.qb);g.J(this,this.kb);this.D=HCa(this,this.policy,this.schedule,this.Da,function(p,q){return NCa(n,p,q)});
this.B=new mU(this,this.i,this.policy,this.videoTrack,this.audioTrack,l);this.C=new hU(this,this.i,this.videoTrack,this.audioTrack,this.policy);this.oa()};
PCa=function(a,b){var c=b.i,d=a.i.isLive;if(a.Y&&SU(a.Y,xC(c,d))){d=xC(c,a.i.isLive);if(a.i.isLive&&a.policy.Bu)var e=c.Pl(Infinity);else{if(!c.indexRange||!c.initRange)return;e=c.indexRange.length+c.initRange.length;var f=OCa(a.Y,d);if(!f){a.Ba("ombooo","1");return}e=c.Fp(f-e)}e&&(f=function(h){h.isFailed()?(a.Ba("ombf","1"),eV(b,h),LC(h.info)&&zV(a,b,c,!0),a.wh()):AV(a,h)&&a.wh()},c.C=!0,KC(e)&&(b.K=!1,XU(b,new TU(d,e,a.Y,f))))}};
QCa=function(a){var b=a.videoTrack.i.index;a.hh=new VAa({Il:a.policy.Il,dg:a.policy.D.dg,Fg:b.Fg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()},
Vr:function(){return b.Vr()}})};
CV=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.u;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.Aa!==b&&(d.Da={},d.Aa=b,qU(d,d.B));b=!wU(d)&&-1<d.Z&&8E3>(0,g.Q)()-d.Z;var e=d.nextVideo&&3*tU(d,d.nextVideo.info)<gU(d.ya);if(!b||e)rU(d),sU(d),d.Y=d.Y||d.nextVideo!==d.i;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Aa=-1);BV(a,c,d.nextVideo);BV(a,a.audioTrack,a.u.u)};
DV=function(a,b){a.Sa=b;a.Z||(a.oa(),a.isSuspended=!0)};
SCa=function(a){a.policy.Zb=!1;a.policy.qd?EV(a):a.mediaSource&&RCa(a)};
TCa=function(a){a.mediaSource&&a.mediaSource.i&&a.mediaSource.u&&(oy(a.mediaSource.i,a.La,a),oy(a.mediaSource.u,a.La,a));VU(a.audioTrack,null);VU(a.videoTrack,null);a.mediaSource=null};
GV=function(a,b){b=void 0===b?!1:b;a.oa();TCa(a);b?(a.oa(),a.Z=!0):a.policy.Sc?DV(a,a.eb):DV(a,!1);FV(a)};
HV=function(a){a.mediaSource&&a.mediaSource.rf()&&(GV(a),a.policy.Up&&a.handleError(!0,"fmt.unplayable",{unexpected:1}))};
JV=function(a,b,c){var d=a.B;if(2===d.i||3===d.i||a.isSuspended&&(!Pma(a.schedule)||a.Sa))return!1;if(!a.policy.tu&&a.policy.u&&5<=ZF)return g.Dq(a.Ja),!1;if(a.i.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma||b.B.length>=a.policy.Zj&&!a.policy.dh||!a.policy.ql&&0<b.B.length&&!a.policy.D.dg)return!1;if(b.K)return!a.i.isLive||!isNaN(a.Oe)}if(mCa(b))return a.oa(),!1;if(!(b.u||a.i.isManifestless&&a.policy.dh&&b.K)){if(!b.i.Re())return!1;lU(b,a.currentTime)}d=b.B.length+c.B.length;(b.B.length&&b.B[0].fu()||
c.B.length&&c.B[0].fu()||a.i.isLive&&(!a.policy.dh||!b.B.length))&&--d;if(d+1>=a.policy.ek)return!1;if(!b.u)return!0;d=b.u;if(!Ska(d.i.u,a.policy))return!1;4===d.type&&d.i.Re()&&(b.u=g.pb(d.i.Ww(d)),d=b.u);if(!d.B&&!d.i.Gm(d))return!1;var e=a.i.Ze||a.i.S;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.Ut&&0<e&&d.Ma>=e)return b.Z=e,c.Z=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(gV(b)&&!a.policy.Ya)return!0;if(d.B||
aV(b)&&aV(b)+aV(c)>a.policy.jb)return!1;e=!b.D&&!c.D;f=b===a.videoTrack&&a.Z;if(!(c=!!(c.u&&!c.u.B&&c.u.D<d.D)&&(!a.i.isManifestless||c.u&&c.u.D&&d.D)&&e&&!f||a.policy.Ua&&!b.D&&c.D)&&(c=EC(d))){c=d.D;a:if(d=a.B,d=d.u?d.u.me:null,a.Z&&d)a=d.startSecs+d.durationSecs+(a.policy.Yi?15:0);else{d=IV(a,b,!0);!wU(a.u)&&0<a.policy.ya&&(e=((0,g.Q)()-a.Ya)/1E3,d=Math.min(d,a.policy.ya+a.policy.yh*e));d=a.currentTime+d;if(a.policy.vl&&(e=UCa(a)+a.policy.vl,e<d)){a.Ba("mrl","ori."+d+";mod."+e,!0);a.policy.Tj&&
(a.Ya=(0,g.Q)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.Vb)&&b.isLocked()?!1:!0};
WCa=function(a,b,c){if(JV(a,b,c)){if(b.K){if(a.i.isLive){var d=a.i.ue&&a.i.S?b.i.Hm(a.i.ue,!1):b.i.Pl(Infinity);d.Oe=a.Oe}else d=b.i.Hm(0,!1);a.D?0===d.Oe&&(d.D=a.D.Z):d.D=a.Za}else if(d=b.u,d.i.Re()){var e=d.D-a.currentTime,f=!d.range||0===d.u&&0===d.Cb?0:d.range.length-(d.Cb+d.u),h=d.i;if(fV(b)&&b.i.Re()){var l=Math.min(15,.5*IV(a,b,!0));var m=gV(b)||e<=l||a.u.S;a.oa("ready to adapt: "+m+", upgrade pending: "+gV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h=
b.i:(h=d.startTime+VCa,d.u&&(h+=d.duration),lU(b,h),d=b.u,h=d.i));h.Pg()?(f=a.u,c=fU(a.J,h.info.Nb,c.i.info.Nb,e,0<f.C.length&&0===f.videoIndex&&a.ya),e=fV(b),c=d.i.Yq(d,c),c.range&&1<c.i.length&&(e||c.u.u||c.i[0].i!==d.i?c=d.i.Yq(d,c.i[0].u):(e=c.i[c.i.length-1],h=e.u/c.range.length,!e.Qd&&.4>h&&(c=d.i.Yq(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=HC(d),c.pr=""+b.B.length,a.C.i&&(c.sk="1"),a.Ba("nosq",d.J+";"+g.LD(c))),d=h.St(d));if(a.Z)for(c=g.r(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Pg()?
(c=fU(a.J,b.i.info.Nb,c.i.info.Nb,0),d=d.i.Yq(d,c)):d=d.i.St(d);if(a.K&&(c=a.B,e=d.i[0].Ma,e=0>e&&!isNaN(c.B)?c.B:e,h=hBa(a.B,d.i[0].C,e),c=a.K.Pr(h,e,d.i[0].i.info.id,b===a.audioTrack?1:2),0>e&&lBa(a.B,0,0,!0),c)){h="decurl_itag"+d.i[0].i.info.lc()+"_sg"+e+"_st"+h.toFixed(3)+".";if(a.policy.uq&&b.isRequestPending(e-1)){a.Ba("sdai","wt_daistate_on_sg"+(e-1));return}a.Ba("sdai",h);e=d;c&&(e.B=new g.wB(c))}a.policy.Vi&&-1!==d.i[0].Ma&&d.i[0].Ma<a.i.ue&&(d=b.i.Hm(a.i.ue,!1));XU(b,KV(a,d))}};
KV=function(a,b){EC(b.i[b.i.length-1])&&XCa(a,sBa(a.u,b.i[0].i));var c=Zka(b);c={Ng:a.schedule,yk:c,jA:YAa(a.J,c),dj:DC(b.i[0]),Vl:zB(b.u.i),jD:a.policy.Aa};a.hh&&(c.Ma=b.i[0].Ma,c.Oe=b.Oe,c.hh=a.hh);var d={hp:Math.max(0,b.i[0].C-a.currentTime),Iw:a.policy.Kg&&LC(b)&&b.i[0].i.info.video?xBa(a.u):void 0,lx:a.Z,poToken:YCa(a.Ca)};return new uV(a.policy,b,c,a.Aa,function(e,f){a:{var h=e.info.i[0].i,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.C||!(!a.mediaSource||a.isSuspended||
3<bV(l,a.currentTime))){var m=a.policy.Eb;!m||e.isComplete()||e.C<m||uC(e.info.u,a.Aa)||(m=sC(a.Aa,vC(e.info.u,!0)),m.i||m.timedOut||m.started||(m=$ka(e.info,!0))&&KV(a,m));if(e.isComplete()||e.isDisposed()&&3>f)a.policy.eb&&(f=Object.assign(jV(e.timing),{rst:""+e.state,strm:""+e.xhr.nt(),d:vCa(e.timing)}),a.Ba("rqs",g.LD(f))),e.Da&&a.Ba("sbwe3","1",!0);if(!a.isDisposed()&&2<=e.state){f=a.timing;var n=e.info.i[0].i;m=!f.u&&n.info.video;n=!f.i&&n.info.audio;3===e.state?m?f.tick("vrr"):n&&f.tick("arr"):
4===e.state?m?(f.u=e.Wd(),Nu(),Qu(4)):n&&(f.i=e.Wd()):e.fu()&&m&&(Nu(),Qu(4));if(3===e.state)eV(l,e),LC(e.info)&&zV(a,l,h,!0),a.K&&(l=e.info.Pr())&&a.K.lj(e.info.i[0].Ma,h.info.id,l),a.wh();else if(e.isComplete()&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).B[0]||null)&&h instanceof uV&&h.C&&FCa(h,!0),e.dispose();else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.oa();h=wBa(a.u,h);l=e.info.range.length-
h.GD();h.C=!0;e.info.i[0].i.C=!1;f=h.Fp(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=bD(l.je[0].i);bD(g.pb(l.je).i);for(var p=0;p<l.je.length;p++){l.je[p].info=f[p];var q=f[p].range;l.je[p].i=new YC([new Uint8Array(n.buffer,q.start-m.start,q.length)])}}e.D=!1;BV(a,a.videoTrack,h);l=a.videoTrack;l.u&&(l.u.i=h);l=a.Ca;l.videoData.Oo=hB("auto",h.info.video.quality,!1,"u");LV(l);(l=e.xhr.getResponseHeader("X-Segment-Lmt"))&&h.info.lastModified&&h.info.lastModified!==+l&&eV(a.videoTrack,e)}else e.D=
!1;if(4===e.state){if(AV(a,e),a.B&&(h=a.B,l=e.info,f=a.K,0!==h.i&&f&&l.i[0].isVideo()))if(l.i[0].Ma>h.B&&(h.B=NaN,h.C=NaN),h.u&&h.u.Ma===l.i[0].Ma)if(m=h.u.me.event,"start"===m||"continue"===m){if(1===h.i||5===h.i)h.policy.ll||!h.u.Tv?(h.B=l.i[0].Ma,h.C=l.i[0].C,h.Ba("sdai","joinad"+h.i+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.i=2,f.QD(h.u.me)):(h.Ba("sdai","ignore."+m+";sq."+l.i[0].Ma),h.i=4)}else"stop"!==m||1!==h.i&&5!==h.i||h.Ba("sdai","joinstop;st."+h.i+";sg."+h.B+";"),h.i=5;else 1===h.i&&(h.i=5)}else if(a.policy.La&&
e.Ns()&&!e.isComplete()&&!AV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Rv(e);a.wh();a.policy.zb&&e.isComplete()&&e.canRetry()&&uC(e.info.u,a.Aa)&&(h=sC(a.Aa,vC(e.info.u,!1)),h.B+a.policy.zb*Pka(h,a.policy,!0)>(0,g.Q)()||(e=$ka(e.info,!1))&&KV(a,e))}}}}},d)};
XCa=function(a,b){b&&(a.oa(),a.Ca.Zz(b));a.policy.Vj&&a.u.Ua&&(b=tBa(a.u,"a"),MV(a.Ca,b.reason,b.audio.info))};
AV=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.Ns(),c.K=!1);b.zD()&&a.Da.Mg(1,b.zD());var d=b.JH(),e=b.gK(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.jk&&(d&&(l.Ut=Math.max(l.Ut,d)),e&&(l.i=Math.max(l.i||0,e)))}}if(b.info.dj()&&!KC(b.info))for(var m=g.r(b.VB()),n=m.next();!n.done;n=m.next())KU(c.C,n.value);YU(c);return!!c.Yf()}catch(p){return p instanceof Error&&(g.Bz(p),b=b.du(),b.origin="hrhs",b.msg||
(b.msg=""+p.message),a.handleError(!0,"fmt.unplayable",b)),!1}};
EV=function(a){g.Dq(a.jb)};
RCa=function(a){var b=a.mediaSource.i,c=a.mediaSource.u,d=ZCa(a);if(d){if(a.policy.Uq){if(!b.Bp()){var e=a.audioTrack.Yf();e&&NV(a,b,e)}c.Bp()||(b=a.videoTrack.Yf())&&NV(a,c,b)}a.ma||(a.ma=(0,g.Q)(),a.oa(),a.policy.Aa&&a.Ba("apdps","r."+d))}else{if(a.ma){d=(0,g.Q)()-a.ma;e=bV(a.audioTrack,a.currentTime);var f=bV(a.videoTrack,a.currentTime);a.oa();a.policy.Aa&&a.Ba("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ma=0}if(a.D){d=a.D;e=a.audioTrack;f=ID(a.mediaSource.u.kf());
if(d.C)d=LCa(d,f);else{if(f=e.Yf()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Oe&&(d.C=e,d.K=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.oa())}d=NaN}d&&a.Ca.seekTo(d,{Mp:!0,Sd:"pollSubsegmentReadahead",ep:!0})}d=!1;$Ca(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=Date.now(),e.tick("vda"),YA("vda",void 0,"video_to_ad"),e.B&&(Nu(),Qu(4))));if(a.mediaSource&&!a.mediaSource.rf()&&($Ca(a,a.audioTrack,b)&&(d=a.timing,
d.B||(d.B=Date.now(),d.tick("ada"),YA("ada",void 0,"video_to_ad"),d.C&&(Nu(),Qu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Zb&&$U(a.videoTrack)&&$U(a.audioTrack)&&SD(a.mediaSource)&&!a.mediaSource.bh()&&(e=WU(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.oa(),e=a.mediaSource,SD(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Je.webkitSourceEndOfStream(e.Je.EOS_NO_ERROR)),e=a.schedule,mma(KE(e)),e.D=GE()));e=a.policy.uu;f=a.policy.Au;d||!(0<e||f)||!SD(a.mediaSource)||$U(a.videoTrack)||$U(a.audioTrack)||
(b.dB(a.currentTime,f,e),c.dB(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.i?c.i.supports(0):UD());c&&EV(a)}}};
ZCa=function(a){if(mCa(a.videoTrack))return a.oa(),"ssf";var b=a.B;if(1===b.i||2===b.i||3===b.i)return"cpm";if(a.policy.Nf||iCa(a.videoTrack)||iCa(a.audioTrack))return"";if(a.C.i){b=a.J;var c=a.videoTrack,d=a.audioTrack;if(c.B.length||d.B.length){var e=0,f=MU(c.C).concat(MU(d.C));f=g.r(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.u;c=c.i.info.Nb+d.i.info.Nb;e/=c;b=e<b.policy.jl?!1:10<e?!0:10>c*(10-e)/gU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.B.length&&1===b.C.u.length&&JBa(b.C).info.K<
b.ma)return"seek"}if(!a.ya||!a.policy.xb||10>a.currentTime||360<a.videoTrack.i.info.video.i)return"";b=jCa(a.videoTrack,a.currentTime,a.policy.xb)||jCa(a.audioTrack,a.currentTime,a.policy.xb);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||JV(a,a.videoTrack,a.audioTrack)||JV(a,a.audioTrack,a.videoTrack))&&b?"nord":""};
$Ca=function(a,b,c){if(c.bh())return!0;if(!c.gy())return!1;var d=b.Yf(),e;if(!(e=!d||6===d.info.type)&&(e=a.B)){e=a.B;var f;if(f=0!==e.i&&b===e.Y)e=dV(e.D),f=d.info.Ma>(e?e.Ma:-1);e=!!f}if(e)return!1;e=d.info;f=WU(b);!f||f.Qd||FC(f,e)||c.abort();!c.Ev()||PD()?c.KG(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Ev()&&a.Ba("ctu","ct."+PD()+";prev_c."+c.Ev()+";curr_c."+e.i.info.containerType);f=e.i.J;a.policy.Qj&&f&&(e=0+f.duration,f=-f.i,0===c.Ry()&&e===c.wD()||c.VF(0,e),f!==c.Tc()&&
(c.QA(f),NU&&VBa(a.audioTrack.C,c.KD())));if(a.i.B&&0===d.info.Cb&&(g.fD(d.info.i.info)||a.policy.Oo)){if(null==c.Bp()){e=WU(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Mb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Bp(),f=d.info.i.i,e=e!==f&&!g.Mb(e,f);e&&a.Ba("initchg","it."+d.info.i.info.id+".ty."+d.info.type+".seg."+d.info.Ma);a.policy.Fb&&!e&&(g.fD(d.info.i.info)?($B(eD(d),1836019574),$B(eD(d),1718909296)):(e=new bC(eD(d)),
Kka(e),fC(e,524531317,!0),d.i=d.i.split(e.start+e.i).Fq),d.B=!1)}a.policy.Wg&&d.B&&(d.B=!1);e=a.D&&!!a.D.C&&b.i.info.audio;f=a.i.isManifestless||d.B;if(!(a.i.B&&0!==d.info.Cb||f&&!e)&&NV(a,c,d))return!0;if(e)return!1;e=a.currentTime+IV(a,b,!1);(e=d.info.C>e)||(a.policy.kb&&(!d.info.Cb||d.info.Qd||10>d.info.C)&&a.Ba("sba",c.Ib({as:BC(d.info)})),e=d.B?d.info.i.i:null,f=bD(d.i),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=aDa(a,c,f,d.info,e),"s"===e?(a.Ua=0,e=!0):("i"===e||"x"===e?bDa(a,
"checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.K=Math.floor(.8*f.K),f.Da=Math.floor(.8*f.Da),f.J=Math.floor(.8*f.J)):(f=a.policy,f.Z=Math.floor(.8*f.Z),f.qb=Math.floor(.8*f.qb),f.J=Math.floor(.8*f.J)),uU(a.u,d.info.i)),OV(a.Ca,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Sh(d);a.oa("Appended "+BC(d.info)+", buffered: "+ED(c.kf()));return!0};
bDa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.D=e,d.i.info.video&&!vU(a.u)&&uU(a.u,d.i)):"i"===c&&(15>a.Ua?(a.Ua++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=HC(d);d.mrs=TD(a.mediaSource);d.origin=b;d.reason=c;a.handleError(f,e,d)};
TBa=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=uD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!TC(l,b.Ma))l.LB(b),e=!0;else if(d.Za){e=b;var m=l.ej(e.Ma);m&&m.startTime!==e.startTime?(l.segments=[],l.LB(e),e=!0):e=!1;e&&(f=b.Ma)}}0<=f&&d.ea("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);fBa(a.C,b,c,e);a.B.hF(b,c)};
NV=function(a,b,c){c.info.i.Re();var d=c.info.i.i;if(!d||!b.gy()||b.Bp()===d)return!1;var e=d,f=b.Ty();if(a.policy.Wg&&f&&b.isView()&&g.fD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Eka(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ba("fenc","1")}f=null;(h=c.info.i.Fp(0))&&(f=h.i[0]);a.policy.kb&&a.Ba("sbi",b.Ib({as:BC(c.info)}));a.policy.Hi&&b.abort();d=aDa(a,b,e,f,d);if("s"!==d)return bDa(a,"sepInit",d,c.info),!0;a.oa();return b.bh()};
aDa=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:ED(b.kf()).replace(/,/g,"_"),message:g.Hc(g.Wa(f.message),3),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},MCa()),a.handleError(!1,"player.exception",b),"q";g.Ty(f)}return"u"}return a.mediaSource.rf()?"m":"s"};
IV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.Z:a.policy.K;!a.policy.Ya&&wU(a.u)&&(d=Math.max(d,b.i.info.audio?a.policy.qb:a.policy.Da));c&&(d+=a.policy.jb);var e=wU(a.u)?b.u?b.u.i.info.Nb:b.i.info.Nb:b.Nb;d/=e;0<a.policy.gk&&a.mediaSource&&SD(a.mediaSource)&&(b=b.i.info.video?a.mediaSource.u:a.mediaSource.i)&&!b.bh()&&(b=b.kf(),e=FD(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.gk,a.policy.vu))));0<a.policy.J&&(d=Math.min(d,a.policy.J));
a.policy.fk&&c&&!wU(a.u)&&(c=a.u,c=tU(c,g.pb(c.C))+tU(c,c.J.i[0]),c=a.policy.fk*(c/eU(a.J)),c<d&&15>c&&a.Ba("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
UCa=function(a){var b=g.Do(a.Ca.vn(),function(d){return"ad"===d.namespace});
b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
cDa=function(a,b){(new BE(b,"cms",null,function(c){a.Ca.handleError(c)})).send()};
dDa=function(a,b){a.K=b;a.B&&(a.B.S=b);a.K.aG(a.videoTrack.i.info.re())};
eDa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=!isNaN(a.timestampOffset)&&a.policy.Lh?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.C.i&&!a.mediaSource.rf()){var c=a.currentTime<=b&&b<a.currentTime+10,d=GD(a.mediaSource.u.kf(),a.currentTime+VCa);c&&d&&(a.C.i=!1)}a.C.i||(a.currentTime=b);g.Dq(a.Ja)}};
fDa=function(a,b){var c=ZU(a.videoTrack).find(function(d){return d.startTime>=b&&NCa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
NCa=function(a,b,c){if(!(a.videoTrack.i.Re()&&a.audioTrack.i.Re()&&a.mediaSource&&a.mediaSource.u&&a.mediaSource.i))return!1;if(c&&a.i.isManifestless&&(-1===a.videoTrack.J||-1===a.audioTrack.J))return!0;var d=jU(a.videoTrack,b,c);if(isNaN(d))return!1;a=jU(a.audioTrack,a.policy.ma?b:d,c);return isNaN(a)?!1:!0};
BV=function(a,b,c){b.i!==c&&(a.oa(),b.i=c)};
zV=function(a,b,c,d){if(!c.Re()&&!c.C&&Ska(c.u,a.policy)&&"f"!==c.info.i){if(d){d=a.J;var e=c.info,f=ZAa(d,e.video?d.policy.No:d.policy.Pi,e.Nb);d=d.policy.Rh&&e.video?Math.max(f,d.policy.Rh):f}else d=0;d=c.Fp(d);a=KV(a,d);KC(d)&&XU(b,a);c.C=!0}};
FV=function(a){try{var b=a.audioTrack;iU(b);kU(b.C);var c=a.videoTrack;iU(c);kU(c.C)}catch(d){g.Ty(d)}a.policy.u=""};
gDa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.oa(),a.B.J=a.timestampOffset,a.Ca.nF(a.timestampOffset),a.i.isManifestless&&(b=a.i,a=a.timestampOffset,b.Ka?b.timestampOffset=a:b.u=a))};
hDa=function(a){a=a?a.B.length?a.B[0]:null:null;return!!a&&!a.isComplete()};
g.PV=function(a){this.Dd=a};
QV=function(){g.R.apply(this,arguments)};
RV=function(a,b,c,d){QV.call(this);var e=this;this.B=-1;this.i={};this.C=new g.M(this.D,0,this);g.J(this,this.C);this.u=new g.M(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.J(this,this.u);d.subscribe("fairplay_next_need_key_info",this.J,this)};
iDa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
jDa=function(a){var b=a.interval,c=a.Xw;this.url=a.url;this.interval=b;this.Xw=c};
kDa=function(a,b){this.statusCode=a;this.message=b;this.i=this.heartbeatParams=this.errorMessage=null;this.u={};this.nextFairplayKeyId=null};
mDa=function(a){var b=FB(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=RB(b.slice(d+2));if(null==b)return null;a=new kDa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.Lqa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new jDa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Xw:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.i=c.split(",");if(c=b["Key-Ids"])a.u=lDa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
lDa=function(a){if(!a)return{};a=a.split(";");var b={};g.Ob(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
SV=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.u=c;this.onError=this.onSuccess=null;this.i=new g.ge(5E3,2E4,.2)};
nDa=function(a,b,c){a.onSuccess=b;a.onError=c};
pDa=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.oa(),0!==e.status&&e.response)if(VA("drm_net_r",void 0,a.u),e=new Uint8Array(e.response),e=mDa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else oDa(a,e)},
onError:function(e){oDa(a,e)}};
c&&(b=vi(b,"access_token",c));g.xt(b,d);a.oa()};
oDa=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)};
rDa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){a.oa();VA("drm_net_r",void 0,a.u);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Lc(f.license)}catch(x){g.Ty(x)}if(0!==h||l){l=new kDa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.r(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var t=qDa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+=
"HDR");h[t]||(m.push(t),h[t]=!0);var u=null;try{u=Lc(q.keyId)}catch(x){g.Ty(x)}u&&(n[g.Hc(u,4)]=t)}}l.i=m;l.u=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.SI="Bearer "+d);g.wv(c,"player/get_drm_license",b,e)};
UV=function(a,b,c,d){g.R.call(this);this.videoData=a;this.X=b;this.Da=c;this.sessionId=d;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.Z=!1;this.B=null;this.ya=[];this.D=[];this.Y=!1;this.i={};this.ma=NaN;this.status="";this.J=NaN;this.u=a.J;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.Y&&(a.authuser=this.X.Y);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.Qb))?e[1]:"";"ATV"===e&&(a.cdt=e);this.C=a;this.C.session_id=d;this.S=!0;"widevine"===this.u.flavor&&(this.C.hdr="1");"playready"===this.u.flavor&&(b=Number(g.kE(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.C.mfpe=""+b),this.S=!1);this.baseUrl=g.rE(this.u)?iDa(c.initData).replace("skd://",
"https://"):this.u.C;this.fairplayKeyId=ti(this.baseUrl,"ek")||"";if(b=ti(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Aa=this.videoData.N("html5_use_drm_retry");this.ya=c.u;this.oa();TV(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
vDa=function(a,b){TV(a,"createkeysession");a.status="gr";VA("drm_gk_s",void 0,a.videoData.xb);a.url=sDa(a);try{a.B=b.createSession(a.Da,function(c){TV(a,c)})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ea("licenseerror","drm.unavailable",!0,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(tDa(a.B,function(c,d){uDa(a,c,d)},function(c,d,e){if(!a.isDisposed()){a.oa();
d=void 0;var f=!0;g.rE(a.u)&&g.fF(a.X)&&a.X.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=!a.X.N("html5_safari_fairplay_ignore_hdcp"));a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(a.oa(),TV(a,"onkyadd"),a.K||(a.ea("sessionready"),a.K=!0))},function(c){a.Xn(c)}),g.J(a,a.B))};
sDa=function(a){var b=a.baseUrl;vja(b)||a.error("drm.net",!0,"t.x");if(!ti(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.experiments.experiments[e]});
0<c.length&&(a.C.fexp=c.join())}c=g.r(Object.keys(a.C));for(var d=c.next();!d.done;d=c.next())d=d.value,b=vi(b,d,a.C[d]);return b};
uDa=function(a,b,c){if(!a.isDisposed())if(b){a.oa();TV(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":wDa(a,b);return;default:a.ea("ctmp","message_type","t."+c+";l."+b.byteLength)}a.Z||(VA("drm_gk_f",void 0,a.videoData.xb),a.Z=!0,a.ea("newsession",a));if(oE(a.u)&&(b=xDa(b),!b))return;g.rE(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=EB(g.Hc(b)));b=new SV(b,++a.requestNumber,a.videoData.xb);nDa(b,
function(d,e){yDa(a,d,e)},function(d,e,f){if(!a.isDisposed()){var h=!1,l;
(l=3<=d.i.u)||(l=a.Aa&&36E4<(0,g.Q)()-a.ma);l&&(h=!0,e="drm.net.retryexhausted");a.oa();TV(a,"onlcsrqerr."+e+";"+f);a.error(e,h,f);a.shouldRetry(h,d)&&zDa(a,d)}});
g.J(a,b);ADa(a,b)}else a.error("drm.unavailable",!1,"km.empty")};
wDa=function(a,b){a.oa();TV(a,"sdpvrq");a.J=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.deviceParams);c=g.pi("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:FB(b)}),responseType:"arraybuffer"};
g.Dt(c,b,3,500).then(As(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=FB(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ea("ctmp","drminfo","provisioning"),f=(Date.now()-a.J)/1E3,a.J=NaN,a.ea("ctmp","provs",""+f.toFixed(3)),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",!0,d))}}),As(function(d){a.isDisposed()||a.error("drm.provision",!0,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
VV=function(a){var b;if(b=a.S&&null!=a.B)a=a.B,b=!(!a.i||!a.i.keyStatuses);return b};
ADa=function(a,b){var c,d;a.status="km";VA("drm_net_s",void 0,a.videoData.xb);if(a.videoData.useInnertubeDrmService()){var e=new g.$x(a.X.Tg),f={context:g.uv(e.config_||g.vv())};f.drmSystem=BDa[a.u.flavor];f.videoId=a.videoData.videoId;f.cpn=a.videoData.clientPlaybackNonce;f.sessionId=a.sessionId;f.licenseRequest=g.Hc(b.message);f.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=a.cryptoPeriodIndex);var h=!(null===(d=null===(c=a.videoData.u)||void 0===
c?void 0:c.video)||void 0===d||!d.isHdr());f.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(!f.context||!f.context.client){a.oa();a.error("drm.net",!0,"t.r;ic.0");return}if(h=a.X.deviceParams)f.context.client.deviceMake=h.cbrand,f.context.client.deviceModel=h.cmodel,f.context.client.browserName=h.cbr,f.context.client.browserVersion=h.cbrver,f.context.client.osName=h.cos,f.context.client.osVersion=h.cosver;f.context.user=f.context.user||{};f.context.request=f.context.request||
{};a.videoData.La&&(f.context.user.credentialTransferTokens=[{token:a.videoData.La,scope:"VIDEO"}]);f.context.request.mdxEnvironment=a.videoData.mdxEnvironment||f.context.request.mdxEnvironment;a.videoData.zb&&(f.context.user.kidsParent={oauthToken:a.videoData.zb});if(g.rE(a.u)){h=a.fairplayKeyId;for(var l=[],m=0;m<h.length;m+=2)l.push(parseInt(h.substring(m,m+2),16));f.fairplayKeyId=g.Hc(l)}rDa(b,f,e,a.videoData.mf())}else pDa(b,a.url,a.videoData.oauthToken);a.status="rs"};
yDa=function(a,b,c){if(!a.isDisposed()){if(a.requestNumber!==c&&"widevine"===a.u.flavor&&((a.X.N("html5_drm_ignore_out_of_order_responses")||a.X.N("html5_drm_ignore_out_of_order_responses_cfl"))&&TV(a,"drmOOO."+a.requestNumber+"."+c,!0),a.X.N("html5_drm_ignore_out_of_order_responses")))return;TV(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(VA("drm_kr_s",void 0,a.videoData.xb),b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")&&
(c=a.u.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.ea("newlicense",b.heartbeatParams),b.i&&(a.D=b.i,a.X.N("html5_heartbeat_wait_for_drm_killswitch")||(a.videoData.useInnertubeDrmService()&&!a.videoData.dD&&a.ea("newlicense",new jDa({})),a.videoData.dD=!0),a.Y=on(a.D,function(d){return d.includes("HDR")})),b.u&&(a.i=Vb(b.u,function(d){return{type:d,
status:"unknown"}})),pE(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=Lc(FB(b.message)):qE(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=EB(g.Hc(b.message))),a.B&&(a.oa(),TV(a,"updtks"),a.status="ku",a.B.update(b.message).then(function(){VA("drm_kr_f",void 0,a.videoData.xb);
VV(a)||(TV(a,"ksApiUnsup"),a.ea("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Hc(g.Wa(d.message),3);
a.error("drm.keyerror",!0,d)})),a.K&&(a.ma=(0,g.Q)()),g.rE(a.u)&&a.ea("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
zDa=function(a,b){var c=b.i.getValue();c=new g.M(function(){ADa(a,b)},c);
g.J(a,c);c.start();g.he(b.i);a.oa();TV(a,"rtyrq")};
CDa=function(a,b){for(var c=[],d=g.r(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)};
DDa=function(a){var b=a.status+".";return VV(a)?b+CDa(a,"."):b+a.D.join(".")};
EDa=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};
WV=function(a,b){for(var c in a.i)if("usable"===a.i[c].status&&a.i[c].type===b)return!0;return!1};
TV=function(a,b,c){c=void 0===c?!1:c;a.oa();(c||a.videoData.Y)&&a.ea("ctmp","drmlog",b)};
FDa=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};
xDa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Ok(new DOMParser,g.Jf(g.cf("Uses only text content."),b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(OQ(Jc(a.childNodes[0].nodeValue)).buffer):null:null};
GDa=function(a,b,c,d){if(a=EB(g.Hc(a)))a={format:"RAW",method:"POST",postBody:a,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=wba(c,d),g.Dt(c,a,3,500).then(function(e){e=new Uint8Array(e.xhr.response);(e=mDa(e))&&e.message&&b.update(e.message)})};
XV=function(a,b,c,d,e){g.I.call(this);this.element=a;this.S=b;this.initData=c;this.i=d;this.u=e;this.sessionId="";this.K=this.J=this.B=this.D=null;this.C=new g.wD(this);g.J(this,this.C);HDa(this)};
HDa=function(a){a.i?(a.C.T(a.i,"message",a.FP),a.C.T(a.i,"keystatuseschange",a.Xn),a.i.closed&&a.i.closed.then(As(function(){a.isDisposed()||Pt("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(ky(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.yM),ky(a.C,a.u,["mskeyerror","webkitkeyerror"],a.xM),ky(a.C,a.u,["mskeyadded","webkitkeyadded"],a.wM))};
tDa=function(a,b,c,d,e){a.D=b;a.B=c;a.J=d;a.K=e};
IDa=function(a,b,c){g.zs(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
YV=function(a,b){g.I.call(this);this.element=a;this.i=b;this.J={};this.C=null;this.D=new g.wD(this);this.B=this.u=null;g.J(this,this.D)};
ZV=function(a){if(a.i.keySystemAccess)return a.i.keySystemAccess.createMediaKeys().then(function(b){a.isDisposed()||(a.u=b,a.element.setMediaKeys(b))});
nE(a.i)?a.B=new (mE())(a.i.keySystem):pE(a.i)?(a.B=new (mE())(a.i.keySystem),a.element.webkitSetMediaKeys(a.B)):JDa(a);return null};
JDa=function(a){ky(a.D,a.element,["keymessage","webkitkeymessage"],a.IP);ky(a.D,a.element,["keyerror","webkitkeyerror"],a.HP);ky(a.D,a.element,["keyadded","webkitkeyadded"],a.GP)};
LDa=function(a,b){b=KDa(b,a.i.u);a=a.B.createSession("video/mp4",b);return new XV(null,null,null,null,a)};
MDa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new XV(null,null,null,null,a)};
$V=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c};
KDa=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};
aW=function(a,b){g.I.call(this);this.i=g.zg("video");this.u=null;this.D=[];this.C=new g.wD(this);this.B=new lE("fairplay","com.youtube.fairplay","",b);this.B.u=a;g.J(this,this.C);this.init()};
bW=function(a,b,c,d){QV.call(this);var e=this;this.D=a;this.C=b;this.B=c;this.i=[];this.u=new g.M(function(){e.ea("log_qoe","wvagt.timer;reqlen."+(e.i?e.i.length:-1));if(e.i){if(0<e.i.length){var f=e.i.shift();NDa(e,f.info)}0<e.i.length&&(f=e.i[0].time-(0,g.Q)(),e.u.start(Math.max(0,f)))}},0);
g.J(this,this.u);d.subscribe("widevine_set_need_key_info",this.J,this)};
NDa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.r(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ea("log_qoe","wvagt.reqnews;canskip."+c);c||a.ea("rotated_need_key_info_ready",b)};
cW=function(){this.keys=[];this.values=[]};
dW=function(a){a.keys=[];a.values=[]};
eW=function(a,b){return g.sb(a.keys,function(c){return g.Mb(b,c)})};
fW=function(a,b,c){g.R.call(this);this.element=a;this.videoData=b;this.X=c;this.i=this.videoData.J;this.drmSessionId=this.videoData.drmSessionId||g.Ay();this.u=new Map;this.J=new cW;this.K=new cW;this.B=[];this.Ka=2;this.ma=new g.wD(this);this.Ja=this.Aa=!1;this.heartbeatParams=null;this.ya=this.Z=!1;this.D=null;this.Da=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||mE()||tE(c.experiments);c=this.videoData.Og;this.S="fairplay"===this.i.flavor||c?oG:ODa;this.C=new YV(this.element,this.i);g.J(this,
this.C);nE(this.i)&&(this.Y=new YV(this.element,this.i),g.J(this,this.Y));g.J(this,this.ma);c=this.element;this.i.keySystemAccess?this.ma.T(c,"encrypted",this.JP):ky(this.ma,c,nE(this.i)?["msneedkey"]:["needkey","webkitneedkey"],this.IU);PDa(this);a:switch(c=this.i,a=this.X.experiments,b=this.u,c.flavor){case "fairplay":19.2999<Ot()?(a=c.K,c=c.J,c>=a&&(c=.75*a),b=.5*(a-c),c=new RV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new bW(a.ob("disable_license_delay"),!a.ob("h5_widevine_keyrotationagent_optimization_killswitch"),
b,this);break a;default:c=null}if(this.D=c)g.J(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.OI,this),this.D.subscribe("log_qoe",this.Jg,this);this.oa("Created, key system "+this.i.keySystem+", final EME "+tE(this.X.experiments));this.Jg("cks"+this.i.lf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new aW(this.videoData.Fc,this.X.experiments),g.J(this,this.La))};
PDa=function(a){var b=ZV(a.C);b?b.then(As(function(){QDa(a)}),As(function(c){if(!a.isDisposed()){a.oa();
g.zs(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.oa(),a.Jg("mdkrdy"),a.Z=!0);
a.Y&&(b=ZV(a.Y))};
SDa=function(a,b,c){a.Ja=!0;c=new DU(b,c);a.X.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));RDa(a,c)};
RDa=function(a,b){if(!a.isDisposed()){a.Jg("onInitData");if(a.X.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.i){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.oa();a.Jg("initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Aa&&!a.videoData.isLivePlayback)gW(a);else{if(!(a.X.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.re)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.i;EBa(b);b.re||(d&&b.i!==d?a.ea("ctmp",
"cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.ea("widevine_set_need_key_info",b)}}else a.OI(b)}};
QDa=function(a){if(!a.isDisposed())if(a.X.N("html5_drm_set_server_cert")&&!g.mF(a.X)){var b=a.C.setServerCertificate();b?b.then(As(function(c){a.videoData.Y&&a.ea("ctmp","ssc",c)}),As(function(c){a.ea("ctmp","ssce","n."+c.name+";m."+c.message)})).then(As(function(){hW(a)})):hW(a)}else hW(a)};
hW=function(a){a.isDisposed()||(a.Z=!0,a.oa(),a.Jg("onmdkrdy"),gW(a))};
TDa=function(a){return"widevine"===a.i.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
gW=function(a){if(a.Ja&&a.Z&&!a.ya){for(;a.B.length;){var b=a.B[0],c=TDa(a)?FBa(b):g.Hc(b.initData);if(a.u.get(c))if("fairplay"===a.i.flavor)a.u.delete(c);else{a.B.shift();continue}EBa(b);break}a.B.length&&a.createSession(a.B[0])}};
UDa=function(a){var b;if(b=g.St()){var c;b=!(null===(c=a.C.u)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.C.TextDecoder?(new TextDecoder).decode(b):g.Ya(b),a.ea("ctmp","drm",b))};
jW=function(a){g.I.call(this);var b=this;this.Ca=a;this.i=this.Ca.V();this.videoData=this.Ca.getVideoData();this.Cz=0;this.K=this.B=!1;this.J=this.D=0;this.C=g.sE(this.i.experiments,"html5_delayed_retry_count");this.u=new g.M(function(){iW(b.Ca)},g.sE(this.i.experiments,"html5_delayed_retry_delay_ms"));
g.J(this,this.u)};
lW=function(a,b,c){var d=a.videoData.u;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Ca.Wf.C&&d&&"22"===d.lc())return a.Ca.Wf.C=!0,a.Rd("qoe.restart",{reason:"fmt.unplayable.22"}),kW(a.Ca),!0;var e=!1,f=a.Cz+3E4<(0,g.Q)()||a.u.isActive();if(a.i.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Rd("auth",c),!0;var h;if(h=!f)h=a.Ca.Jp(),h=!!(h.Ie()||h.isInline()||h.isBackground()||h.us()||h.qs());
h&&(c.nonfg="paused",f=!0,a.Ca.pauseVideo());!f&&0<a.C&&(a.u.start(),f=!0,c.delayed="1",--a.C);h=a.Ca.Wa;if(!f&&!a.videoData.N("html5_disable_codec_on_platform_errors_cfl")&&((null===d||void 0===d?0:sD(d))||(null===d||void 0===d?0:qD(d)))){if(a.videoData.N("html5_disable_codec_on_platform_errors")){a.i.C.i.set(d.i,{SJ:1,NF:Number.MAX_SAFE_INTEGER});var l="cfalls"}else if(a.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")){l=a.i.C;var m=d.i,n=0;l.i.has(m)&&(n=l.i.get(m).SJ);l.i.set(m,
{SJ:n+1,NF:Math.pow(2,n+1)});l="cfallexp"}else a.videoData.N("html5_disable_codec_for_playback_on_error")&&h&&(m=h.u,n=d.i,m.Sa.has(n)?m=!1:(m.Sa.add(n),m.Z=-1,qU(m,m.B),m=!0),m&&(l="cfallp"));l&&(e=f=!0,c[l]=d.i)}if(!f)return VDa(a,c);a.Cz=(0,g.Q)();f=a.videoData;f.Za?(f=f.Za.dK(),l=Date.now()/1E3+1800,f=f<l):f=!1;c.e=b;f&&(c.staleprog="1");a.Rd("qoe.restart",c);if(f&&WDa(a))return XDa(a),!0;Pt("philips")&&YDa(a);!a.videoData.N("html5_disable_codec_on_platform_errors")&&d&&sD(d)?(a.i.C.disableAv1(),
e=!0):h?(b=(b=WU(h.videoTrack)||h.videoTrack.u)?b.i:h.videoTrack.i,b.S+=1,uU(h.u,b,!0)):a.videoData.Za&&a.videoData.Za.SF();a.u.isActive()||iW(a.Ca,e);return!0};
VDa=function(a,b){if(a.videoData.qb)return!1;a.i.Za+=1;if(10>=a.i.Za)return!1;b.exiled=""+a.i.Za;a.Rd("qoe.start15s",b);a.Ca.ea("playbackstalledatstart");return!0};
YDa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}};
WDa=function(a){return a.B?!0:"yt"!==a.i.Aa?!1:a.videoData.qb?25>a.videoData.Eb:!a.videoData.Eb};
XDa=function(a){if(!a.B){a.B=!0;var b=a.Ca.getPlayerState();b=g.T(b,4)||b.isSuspended();a.Ca.nm();b&&!ZG(a.videoData)||a.Ca.ea("signatureexpired")}};
ZDa=function(a,b){if((a=a.Ca.jd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.aj();b.details.merr=c?c.toString():"0";b.details.msg=a.pe()}};
aEa=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.B)return!1;b.details.sts="18900";if(WDa(a))return b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.MD("qoe.restart",!1,b)),a.Rd(b.errorCode,b.details),XDa(a),!0;6048E5<(0,g.Q)()-a.i.qb&&$Da(a,"signature");return!1};
$Da=function(a,b){try{window.location.reload();a.Rd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.N("tvhtml5_retire_old_players")&&g.mF(a.i)&&YDa(a)};
bEa=function(a,b){a.i.C.C=!1;a.Rd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});kW(a.Ca)};
cEa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.u=d};
mW=function(a,b,c){this.X=a;this.ix=b;this.Ca=c;this.Z=this.J=this.K=this.u=this.i=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1};
eEa=function(a,b,c){!a.X.N("html5_tv_ignore_capable_constraint")&&g.mF(a.X)&&(c=c.compose(dEa(a,b)));return c};
iEa=function(a,b){return fEa(a).compose(gEa(a)).compose(hEa(a,b))};
fEa=function(a){a=jEa(a);return hB("auto",a,!1,"s")};
jEa=function(a){var b;a.N("html5_exponential_memory_for_sticky")?b=.5>ME(a.X.wc,"sticky-lifetime")?"auto":jB[gE()]:b=jB[gE()];return b};
kEa=function(a,b){return 1<a.playbackRate?(a=Fma(a.X.C,b.i.videoInfos,a.playbackRate),new eB(0,a,!0,"o")):new eB(0,0,!1,"o")};
lEa=function(a){var b=a.videoData.sD;if(b&&b.i.length&&iB(a.videoData.Oo)){for(var c=new Map,d=g.r(a.i.videoInfos),e=d.next();!e.done;e=d.next())e=e.value,c.set(+e.lc(),e.video.i);d=[];b=g.r(b.i);for(e=b.next();!e.done;e=b.next())(e=c.get(e.value))&&d.push(e);c=Math.min.apply(Math,g.v(d));d=Math.max.apply(Math,g.v(d));a.videoData.Oo=new eB(c,d,!1,"u")}return a.videoData.Oo};
dEa=function(a,b){if(g.mF(a.X)&&qB(a.X.C,rB.HEIGHT))var c=b.i.videoInfos[0].video.i;else{var d=!!b.i.i;var e;cF(a.X)&&(e=window.screen&&window.screen.width?new g.Wf(window.screen.width,window.screen.height):null);e||(e=a.X.Xi?a.X.Xi.clone():a.ix.rg());(eF||$T||d)&&e.scale(g.vF());d=e;b.videoData.Kn()||ZG(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||aF||(e=.45);a=g.sE(a.X.experiments,"html5_viewport_undersend_maximum");
for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c="93"===c.lc()?g.gB[kD(d.width,d.height)]:d.i;c=new eB(0,c,!1,"r")}else c=oG;c=c.i}c&&(c=Math.max(c,360));return new eB(0,c,!1,"r")};
mEa=function(a,b){return g.H(a,function d(){var e,f,h;return g.B(d,function(l){switch(l.i){case 1:return b.i.i&&navigator.mediaCapabilities?g.z(l,Promise.resolve(),2):l.return(Promise.resolve());case 2:e=g.r(b.i.videoInfos),f=e.next();case 3:if(f.done){l.fb(0);break}h=f.value;return g.z(l,Cla(h),4);case 4:f=e.next(),l.fb(3)}})})};
oEa=function(a,b){if(!b.videoData.u||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.Qa()-a.S&&(a.B=0);a.B++;a.S=g.Qa();if(4!==a.B)return!1;nEa(a,b.videoData.u);return!0};
qEa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.sE(a.X.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.sE(a.X.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.Q)()-a.D?0:f||0<e||0<h))return!1;a.D=(0,g.Q)();c=c.Jx();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.Z;a.J=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&b.videoData.Y&&a.Ca.Ba("ddf",
"dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";comp."+n);if(d)return a.i=0,a.u=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.u=0<h&&60*d>h?a.u+1:0;if(!e||g.mF(a.X))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;nEa(a,b.videoData.u);a.Ca.Ba("dfd","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";"+pEa());return!0};
rEa=function(a,b){return 0>=g.sE(a.X.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
nEa=function(a,b){var c=b.i,d=b.video.fps;b=b.video.i-1;var e=hE();c=pma(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Qz("yt-player-performance-cap",e,604800));a.Ca.zt()};
sEa=function(a,b){if(!b.i.i)return a.C?new eB(0,360,!1,"b"):oG;for(var c=!1,d=!1,e=g.r(b.i.videoInfos),f=e.next();!f.done;f=e.next())sD(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.sE(a.X.experiments,"html5_performance_cap_floor");a=a.X.i?240:f;b=g.r(b.i.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!sD(e))if(f=iE(e.i,e.video.fps),e=e.video.i,Math.max(f,a)>=e){d=e;break}return new eB(0,d,!1,"b")};
gEa=function(a){var b=a.Ca.Jp(),c=g.sE(a.X.experiments,"html5_inline_quality_cap"),d=g.sE(a.X.experiments,"html5_background_quality_cap"),e=g.sE(a.X.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new eB(0,c,!1,"v"):!d||"auto"!==jEa(a)||Vu()/1E3<e?oG:b.isBackground()?new eB(0,d,!1,"v"):oG};
hEa=function(a,b,c){if(g.mF(a.X)&&(1080<=gE(-1)||b.osid))return oG;var d=g.sE(a.X.experiments,"html5_autonav_quality_cap"),e=g.sE(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.Hk&&Vu()/1E3>e?(c&&(d=tEa(a,c,d)),new eB(0,d,!1,"e")):oG};
tEa=function(a,b,c){if(a.N("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};
uEa=function(a,b){a.N("html5_log_media_perf_info")&&(a.Ca.Ba("perfdb",pEa()),a.Ca.Ba("hwc",""+navigator.hardwareConcurrency,!0),b&&a.Ca.Ba("mcdb",b.i.videoInfos.filter(function(c){var d;return!1===(null===(d=c.u)||void 0===d?void 0:d.smooth)}).map(function(c){return c.lc()}).join("-")))};
pEa=function(){var a=Vb(hE(),function(b){return""+b});
return g.LD(a)};
nW=function(a,b){g.I.call(this);this.i=a;this.K=b;this.u=-1;this.J=!1;this.B=-1;this.playerState=new g.UJ;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.M(this.send,6E4,this);this.C=!1;g.J(this,this.delay)};
vEa=function(a){0<=a.u||(3===a.i.Ca.getVisibilityState()?a.J=!0:(a.u=g.CS(a.i),a.delay.start()))};
wEa=function(a){if(!(0>a.B)){var b=g.CS(a.i),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.bK(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
xEa=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"}};
yEa=function(a){return(!a.N("html5_health_to_gel")||a.X.qb+36E5<(0,g.Q)())&&(a.N("html5_health_to_gel_canary_killswitch")||a.X.qb+36E5<(0,g.Q)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===xEa(a))?a.N("html5_health_to_qoe"):!0};
AEa=function(a,b){b?zEa.test(a):(a=g.Hs(a),Object.keys(a).includes("cpn"))};
oW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Ls(a)&&Ms()){if(h){var n;2!==(null===(n=BEa.uaChPolyfill)||void 0===n?void 0:n.state.type)?h=null:(h=BEa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c);
e&&(m.Authorization="Bearer "+e);d||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&zEa.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};
pW=function(a,b,c,d,e,f,h,l){Ms()&&c.token&&(a=Js(a,{ctt:c.token,cttype:c.vG,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:AEa(a,d.N("html5_assert_cpn_with_regex")),h?d.N("use_new_nwl")?Zx().sendAndWrite(a,b):Rx(a,b):d.N("use_new_nwl")?Zx().sendThenWrite(a,b,l):Qx(a,b,l)):b?(AEa(a,d.N("html5_assert_cpn_with_regex")),g.xt(a,b)):g.Xu(a,e)};
CEa=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.v(new Uint8Array(c))));a.close()}return b};
g.rW=function(a){g.I.call(this);var b=this;this.i=a;this.u={};this.sequenceNumber=1;this.Ya=NaN;this.ud="N";this.S=this.qb=this.eb=this.Ua=this.C=0;this.Da=this.xb="";this.kb=this.ma=NaN;this.Za=0;this.zb=-1;this.jb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.La=this.Aa=this.isOffline=this.ya=!1;this.Fb=[];this.Y=null;this.D=this.Ja=this.J=!1;this.B=-1;this.Ka=!1;this.Eb=new g.M(this.aS,750,this);this.Z=this.adCpn="";this.adFormat=void 0;this.Mb=0;g.J(this,this.Eb);(a="function"===typeof navigator.getBattery?
navigator.getBattery():null)&&a.then&&a.then(function(c){b.Y=c});
g.qW(this,0,"vps",["N"])};
g.qW=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
sW=function(a,b){var c=a.i.Ca.getCurrentTime();g.qW(a,b,"cmt",[c.toFixed(3)]);c=a.i.Ca.Dh();if(a.K&&1E3*c>a.K.RL+100&&a.K){var d=a.K,e=d.isAd;a.Sa=1E3*b-d.OW-(1E3*c-d.RL)-d.DW;a.Ba("gllat",{l:a.Sa.toFixed(),prev_ad:+e});delete a.K}};
tW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.CS(a.i);var c=a.i.Ca.ez();if(!isNaN(a.ma)&&!isNaN(c.u)){var d=c.u-a.ma;0<d&&g.qW(a,b,"bwm",[d,(c.C-a.kb).toFixed(3)])}isNaN(a.ma)&&c.u&&a.isOffline&&DEa(a,!1);a.ma=c.u;a.kb=c.C;isNaN(c.bandwidthEstimate)||g.qW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.i.videoData.Y&&c.i&&a.Ba("bwinfo",c.i);if(a.i.videoData.Y||a.i.X.N("html5_log_meminfo"))d=MCa(),Object.values(d).some(function(e){return void 0!==e})&&a.Ba("meminfo",d);
a.Y&&g.qW(a,b,"bat",[a.Y.level,a.Y.charging?"1":"0"]);d=a.i.Ca.getVisibilityState();a.zb!==d&&(g.qW(a,b,"vis",[d]),a.zb=d);sW(a,b);(d=EEa(a.i))&&d!==a.Za&&(g.qW(a,b,"conn",[d]),a.Za=d);FEa(a,b,c)};
FEa=function(a,b,c){if(!isNaN(c.hp)){var d=c.hp;c.B<d&&(d=c.B);g.qW(a,b,"bh",[d.toFixed(3)])}};
uW=function(a){for(var b=0,c=g.r(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(nm(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.M(a.reportStats,0,a)).start()};
GEa=function(a){a.i.videoData.rd&&vW(a,"prefetch");a.i.videoData.Eb&&a.Ba("reload",{r:a.i.videoData.reloadReason,ct:a.i.videoData.Eb});a.i.videoData.kb&&vW(a,"monitor");a.i.videoData.isLivePlayback&&vW(a,"live");a.i.videoData.Bg&&a.Ba("ctrl",a.i.videoData.Bg,!0);if(a.i.videoData.Ff){var b=a.i.videoData.Ff.replace(/,/g,"_");a.Ba("ytp",b,!0)}a.i.videoData.BI&&(b=a.i.videoData.BI.replace(/,/g,"."),a.Ba("ytrexp",b,!0));if(!a.i.X.N("html5_disable_gpu_reporting")){var c=a.i.videoData;b=a.i.X.N("enable_white_noise")||
a.i.X.N("enable_webgl_noop")||a.i.X.N("enable_gpu_logging");var d=g.PG(c)||g.NG(c)||g.OG(c)||g.QG(c),e=c.C&&sD(g.pb(c.C.videoInfos))&&/^g/.test(c.clientPlaybackNonce);c=/^gp/.test(c.clientPlaybackNonce);(b||d||c||e)&&(b=(0,g.wW)())&&(a.u.gpu=[b])}ZG(a.i.videoData)&&g.qW(a,g.CS(a.i),"dt",["1"]);a.D=!0;a.Ya=qt(function(){a.reportStats()},1E4)};
HEa=function(a){0<=a.B||(a.i.X.Fc||3!==a.i.Ca.getVisibilityState()?a.B=g.CS(a.i):a.Ka=!0)};
vW=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
DEa=function(a,b){a.isOffline=b;g.qW(a,g.CS(a.i),"is_offline",[a.isOffline?"1":"0"])};
IEa=function(a,b,c,d,e){var f=g.CS(a.i);1===b&&g.qW(a,f,"vps",[a.ud]);var h=a.u.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.u.xvt=h};
JEa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
KEa=function(a){this.i=a;this.S=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.K=this.J=0;this.Y=this.i.Eh().volume;this.Z=this.i.Eh().muted;this.C=xW(this.i)};
yW=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.pb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.J+=a.u-a.B;a.C=xW(a.i);a.B=a.u};
LEa=function(a){a.segments.length&&a.u===a.B||yW(a);var b=a.segments;a.segments=[];return b};
NEa=function(a){MEa(a);a.K=qt(function(){a.update()},100);
a.lastUpdateTime=g.CS(a.i);a.C=xW(a.i)};
MEa=function(a){window.clearInterval(a.K);a.K=NaN};
OEa=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
zW=function(a,b,c,d){this.X=b;this.segments=[];this.experimentIds=[];this.Ja=this.zb=this.isFinal=this.yh=this.jb=this.autoplay=this.autonav=!1;this.Mb="yt";this.J=this.K=null;this.sendVisitorIdHeader=this.La=!1;this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.xb="delayplay"===c;this.qb="atr"===c;this.rd="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.qb?"/api/stats/"+c:"//"+b.Yi+"/api/stats/"+c;this.Nf=!b.N("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.C&&
b.pfpChazalUi&&a.D;this.kc=b.N("embeds_enable_intersection_observer_v2");d&&(this.zb=d.fs,d.rtn&&(this.J=d.rtn),this.D?(this.playerState=d.state,0<d.rti&&(this.K=d.rti)):(this.Md=d.mos,this.ai=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.ac=d.inview),d.size&&(this.Zb=d.size));this.deviceParams=g.mc(b.deviceParams);this.qd=b.Sc;b.N("embeds_js_api_set_1p_cookie")&&b.embedsTokenValue&&(this.embedsTokenValue=b.embedsTokenValue);this.experimentIds=b.experiments.experimentIds;
this.Ka=b.xe;this.Mb=b.Aa;this.region=b.region;this.userAge=b.userAge;this.Za=b.Fe;this.Of=Vu();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Y=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.xe=b.N("vss_final_ping_send_and_write");this.ma=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.Fe=b.N("vss_playback_use_send_and_write");this.ya=b.N("use_new_nwl");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.bd=b.u&&b.N("embeds_append_synth_ch_headers");
this.accessToken=a.mf();this.u=a.HS;this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=WG(a);this.autonav=a.Hk||this.autonav;this.cd=UG(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.jb=a.D;a.jb&&(this.S=a.jb,this.kb=a.Wh);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.i=a.pu;this.Da=a.Mb;a.u&&(this.videoFormat=a.u.lc(),a.K&&a.K.lc()!==this.videoFormat&&(this.eb=a.K.lc()));a.i&&mB(a.i)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Nf?"embedded_unbranded":
TG(a);this.Ja=a.gf;this.uc=a.Oj;if(b=IG(a))this.Xe=b;this.wc=a.ll;this.eventId=a.eventId;this.playlistId=a.ZI||a.playlistId;this.Bg=a.Bg;this.Ff=a.Ff;this.Sc=a.uu;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Fc=a.zW;this.referrer=a.referrer;this.Sa=a.zI||a.CI;this.Ua=a.wu;this.Ya=a.NW;this.userGenderAge=a.userGenderAge;this.Aa=a.ES};
AW=function(a,b){return oW(a.uri,a.X,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b,a.bd)};
PEa=function(a,b){return function(){var c=a.uri,d=BW(a),e=AW(a),f=a.Y,h=a.ma,l=a.ya;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.pi(c,d);f?(null==e&&(e={}),h?l?Zx().sendAndWrite(c,e):Rx(c,e):l?Zx().sendThenWrite(c,e):Qx(c,e)):e?g.xt(c,e):g.Xu(c)}};
BW=function(a){var b={ns:a.Mb,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.B(a.i),ei:a.eventId,fmt:a.videoFormat,fs:a.zb?"1":"0",rt:a.B(a.gf),of:a.Fc,adformat:a.adFormat,content_v:a.cd,etv:a.embedsTokenValue,euri:a.qd,lact:a.Of,live:a.Xe,cl:(399829848).toString(),mos:a.Md,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.ai};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");Object.assign(b,a.deviceParams);a.autonav&&(b.autonav=
"1");a.autoplay&&(b.autoplay="1");a.jb&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Ja&&(b.splay="1");a.Da&&(b.delay=a.Da);a.Ka&&(b.hl=a.Ka);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Za&&(b.uga=a.Za+a.userAge);void 0!==a.Fb&&(b.len=a.B(a.Fb));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.J&&(b.rtn=a.B(a.J));a.Sa&&(b.feature=a.Sa);a.playlistId&&(b.list=a.playlistId);a.Bg&&(b.ctrl=a.Bg);a.Ff&&(b.ytr=a.Ff);a.Sc&&(b.ssrt="1");
a.eb&&(b.afmt=a.eb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Eb&&(b.lio=a.B(a.Eb));a.D?(b.idpj=a.uc,b.ldpj=a.wc,null!=a.K&&(b.rti=a.B(a.K)),a.Aa&&(b.ald=a.Aa)):void 0!==a.adType&&(b.at=a.adType);a.Zb&&(a.C||a.xb||a.D&&a.kc)&&(b.size=a.Zb);null!=a.ac&&(a.C||a.xb||a.D&&a.kc)&&(b.inview=a.B(a.ac));a.D&&(b.volume=CW(a,g.lm(a.segments,function(d){return d.volume})),b.st=CW(a,g.lm(a.segments,function(d){return d.startTime})),b.et=CW(a,g.lm(a.segments,function(d){return d.endTime})),
on(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=CW(a,g.lm(a.segments,function(d){return d.playbackRate}))),on(a.segments,function(d){return"-"!==d.i})&&(b.als=g.lm(a.segments,function(d){return d.i}).join(",")));
b.muted=CW(a,g.lm(a.segments,function(d){return d.muted?1:0}));
on(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=CW(a,g.lm(a.segments,function(d){return d.visibilityState})));
on(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=CW(a,g.lm(a.segments,function(d){return d.connectionType})));
on(a.segments,function(d){return 0!==d.u})&&(b.blo=CW(a,g.lm(a.segments,function(d){return d.u})));
on(a.segments,function(d){return"-"!==d.C})&&(b.cc=g.lm(a.segments,function(d){return d.C}).join(","));
on(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.lm(a.segments,function(d){return d.clipId}).join(","));
if(on(a.segments,function(d){return!!d.B})){var c="au";
a.C&&(c="au_d");b[c]=g.lm(a.segments,function(d){return d.B}).join(",")}Ms()&&a.S&&(b.ctt=a.S,b.cttype=a.kb,b.mdx_environment=a.mdxEnvironment);
a.rd&&(b.etype=void 0!==a.Z?a.Z:0);a.Ua&&(b.uoo=a.Ua);a.Ya&&(b.upt=a.Ya);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=QEa[a.livingRoomAppMode]||a.livingRoomAppMode);a.C&&a.X.N("html5_log_server_url_param")&&REa(a,b);return b};
REa=function(a,b){if(b){var c=new Set("aqi docid ei feature ns of osid ssrt subscribed upt vm el live uga autonav list referrer".split(" ")),d=new Set(["sdetail","sourceid","plid"]),e=new Set(["autoplay","cl","len","fexp","delay"]),f;for(f in a.u)d.has(f)||e.has(f)||(b[f]?b[f]!==a.u[f]?g.Bz(new g.$v("b161906944_diff",f,b[f],a.u[f])):c.has(f)||g.Bz(new g.$v("b161906944_same",f,b[f])):g.Bz(new g.$v("b161906944_pass",f,a.u[f])));c=new Set("cpn ver cmt fmt fs rt content_v etv euri lact live state volume cbrand cbr cbrver c cver cplayer cos cosver hl cr rtn afmt cplatform muted ctheme lio au_d uoo".split(" "));
e=g.r(Object.keys(b));for(f=e.next();!f.done;f=e.next())f=f.value,c.has(f)||b[f]&&a.u&&!a.u[f]&&g.Bz(new g.$v("b161906944_missing",f,b[f]));for(var h in d)a.u&&a.u[h]&&(b[h]=a.u[h])}};
CW=function(a,b){return g.lm(b,a.B).join(",")};
DW=function(a){g.I.call(this);this.i=a;this.currentPlayerState="paused";this.B=NaN;this.J=[10,10,10,40];this.S=this.K=0;this.ya=this.ma=this.Da=this.Aa=this.Y=this.Z=this.C=!1;this.D=NaN;this.u=new KEa(a)};
TEa=function(a){if(!a.C){a.i.X.N("disable_embedpage_playback_logging")||16623!==a.i.videoData.Yw||g.Bz(Error("Playback for EmbedPage"));var b=EW(a,"playback");a:{var c;if(a.i.X.N("web_player_use_server_vss_schedule")){var d=null===(c=a.i.videoData.getPlayerResponse())||void 0===c?void 0:c.playbackTracking,e=null===d||void 0===d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null===d||void 0===d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.i.videoData.Oj,h=a.i.videoData.ll,
l=-f;e=g.r(e);for(var m=e.next();!m.done;m=e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.J=c;break a}}a.J=[10+a.i.videoData.Oj,10,10,40+a.i.videoData.ll-a.i.videoData.Oj,40]}NEa(a.u);b.J=FW(a,!0);0<a.D&&(b.i-=a.D);b.send();a.i.videoData.Hq&&(b=a.i.X,d=a.i.videoData,d={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Hq,oid:d.jH,ptchn:d.iH,pltype:d.kH,content_v:UG(d)},b=g.pi(b.Ka+"ptracking",d),GW(a,b));a.i.videoData.Mb||SEa(a);a.C=!0;a=a.u;a.u=a.i.Ca.getCurrentTime();
a.i.X.N("html5_vss_media_time_killswitch")||(a.u=a.i.Ca.Dh());a.lastUpdateTime=g.CS(a.i);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.S=!0}};
FW=function(a,b,c){c=void 0===c?NaN:c;var d=g.CS(a.i);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.J[a.K];a.K+1<a.J.length&&a.K++;var f=c+e;a.B=g.pt(function(){if(!a.isDisposed()){a.B=NaN;a.u.update();var h=LEa(a.u),l=UEa(a,h);b&&(l.K=f);var m=1E3<a.S;!(1<h.length)&&h[0].isEmpty()||m||(l.J=FW(a,!0,f));l.send();a.S++}},1E3*(f-d));
return f};
EW=function(a,b){var c=a.i;c=Object.assign(c.Eh(),c.videoData.Eh());Object.assign(c,{state:a.currentPlayerState});b=new zW(a.i.videoData,a.i.X,b,c);b.i=a.i.Ca.getCurrentTime();a.i.X.N("html5_vss_media_time_killswitch")||(b.i=a.i.Ca.Dh());a.i.videoData.isLivePlayback||(b.Fb=a.i.Ca.getDuration());a.i.videoData.i&&(c=a.i.videoData.i.getIngestionTime(b.i))&&(b.Eb=c-b.i);b.gf=g.CS(a.i);b.segments=[xW(a.i)];return b};
UEa=function(a,b){var c=EW(a,"watchtime");if(0<a.D){for(var d=g.r(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.i-=a.D}else c.i=a.u.u;c.segments=b;return c};
HW=function(a){a.u.update();return UEa(a,LEa(a.u))};
SEa=function(a){a.i.videoData.remarketingUrl&&!a.Aa&&(GW(a,a.i.videoData.remarketingUrl),a.Aa=!0);a.i.videoData.youtubeRemarketingUrl&&!a.Da&&(GW(a,a.i.videoData.youtubeRemarketingUrl),a.Da=!0);a.i.videoData.googleRemarketingUrl&&!a.ma&&(GW(a,a.i.videoData.googleRemarketingUrl),a.ma=!0);a.i.videoData.ppvRemarketingUrl&&!a.ya&&(GW(a,a.i.videoData.ppvRemarketingUrl),a.ya=!0);a.Bt()};
IW=function(a){if(!a.isDisposed()&&a.C){a.currentPlayerState="paused";var b=HW(a);b.isFinal=!0;b.send();a.dispose()}};
VEa=function(a,b,c){if(!a.Z){c||(c=EW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
GW=function(a,b){var c=a.i.videoData.mf(),d=a.i.X,e=a.i.N("web_player_vss_pageid_header")?a.i.X.pageId:void 0,f=a.i.X.sendVisitorIdHeader?a.i.videoData.visitorData:void 0,h=a.i.X.N("vss_pings_using_networkless")||a.i.X.N("kevlar_woffle"),l=a.i.X.N("allow_skip_networkless");c=oW(b,d,e,f,c,void 0);pW(b,c,{token:a.i.videoData.jb,vG:a.i.videoData.Wh,mdxEnvironment:a.i.videoData.mdxEnvironment},d,void 0,h&&!l,!1,!0)};
WEa=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.B="";this.volume=this.connectionType=this.u=0;this.muted=!1;this.i=this.clipId="-"};
JW=function(a,b,c,d){this.videoData=a;this.X=b;this.Ca=c;this.Eh=d;this.i=void 0};
g.CS=function(a){return XEa(a)()};
XEa=function(a){if(!a.i){var b=g.Pa(function(d){var e=(0,g.Q)();d&&631152E6>=e&&(g.Ty(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.X.N("html5_validate_yt_now")),c=b();
a.i=function(){return Math.round(b()-c)/1E3};
a.Ca.lF()}return a.i};
EEa=function(a){if(navigator.connection&&navigator.connection.type)return YEa[navigator.connection.type]||YEa.other;if(g.mF(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
xW=function(a){var b=new WEa;b.C=a.Eh().cc||"-";b.playbackRate=a.Ca.getPlaybackRate();var c=a.Ca.getVisibilityState();0!==c&&(b.visibilityState=c);a.X.Mb&&(b.u=1);c=a.Ca.getAudioTrack();c.Bc&&c.Bc.id&&"und"!==c.Bc.id&&(b.B=c.Bc.id);b.connectionType=EEa(a);b.volume=a.Eh().volume;b.muted=a.Eh().muted;b.clipId=a.Eh().clipid||"-";b.i=a.videoData.kI||"-";return b};
g.KW=function(a){g.I.call(this);var b=this;this.u=a;this.B=this.qoe=this.i=null;this.Qf=void 0;this.C=new Map;this.u.videoData.isValid()&&!this.u.videoData.Fi&&(this.i=new DW(this.u),g.J(this,this.i),this.qoe=new g.rW(this.u),g.J(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Qf=this.u.videoData.clientPlaybackNonce)&&this.C.set(this.Qf,this.i));yEa(this.u)&&(this.B=new nW(this.u,function(c){b.Ba("h5h",c)}),g.J(this,this.B))};
ZEa=function(a){a.B&&vEa(a.B);a.qoe&&HEa(a.qoe)};
$Ea=function(a){var b;a.u.videoData.enableServerStitchedDai&&a.Qf?null===(b=a.C.get(a.Qf))||void 0===b?void 0:yW(b.u):a.i&&yW(a.i.u)};
aFa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.ud&&(b.ud="N");var c=g.CS(b.i);g.qW(b,c,"vps",[b.ud]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())IW(c.value);else a.i&&IW(a.i);a.dispose()};
bFa=function(a,b){a.i&&VEa(a.i,b)};
cFa=function(a){if(!a.i)return null;var b=EW(a.i,"atr");return function(c){a.i&&VEa(a.i,c,b)}};
dFa=function(a,b,c,d){c.adFormat=c.uc;var e=b.Ca;b=new DW(new JW(c,b.X,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Dh:function(){return e.Dh()},
ez:function(){return e.ez()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
Ov:function(){return e.Ov()},
getVisibilityState:function(){return e.getVisibilityState()},
lF:function(){e.lF()},
zw:function(){e.zw()}},b.Eh));
b.D=d;g.J(a,b);return b};
eFa=function(){this.hp=0;this.D=this.C=this.u=this.B=NaN;this.i="";this.bandwidthEstimate=NaN};
fFa=function(){this.u=g.oA;this.i=[]};
hFa=function(a,b,c){var d=[];for(b=gFa(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};
iFa=function(a,b){var c=[];a=g.r(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};
jFa=function(a){return a.i.slice(gFa(a,0x7ffffffffffff),a.i.length)};
gFa=function(a,b){a=Kb(a.i,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
kFa=function(a,b){var c=NaN;a=g.r(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};
lFa=function(a,b){a.i=a.i.filter(function(c){return!b.has(c)})};
LW=function(a,b,c,d){g.I.call(this);this.Y=a;this.ma=b;this.K=c;this.S=d;this.B=NaN;this.D=this.J=this.started=!1;this.u=[];this.Z=new g.M(this.bl,250,this);g.J(this,this.Z);this.C=new g.M(this.bl,0,this);g.J(this,this.C);this.i=new fFa};
mFa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.S(g.pA(d.namespace),d):a.S(g.qA(d.namespace),d)}};
nFa=function(a){this.u=this.mediaTime=NaN;this.B=this.i=!1;this.C=.001;g.mF(a)&&g.sE(a.experiments,"tvhtml5_min_has_advanced_secs_float")&&(this.C=g.sE(a.experiments,"tvhtml5_min_has_advanced_secs_float"))};
MW=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
NW=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.i)b!==a.mediaTime&&(a.i=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
oFa=function(a,b){this.videoData=a;this.i=b};
pFa=function(a,b,c){return Yoa(b,c).then(function(){return Gt(new oFa(b,b.C))},function(d){d instanceof Error&&Bs(d);
d=b.isLivePlayback&&!g.zE(a.C,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.eb,drm:""+ +xG(b),f18:""+ +(0<=b.Hi.indexOf("itag=18")),c18:""+ +yD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(xG(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +zD('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +zD('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +zD('video/webm; codecs="vp9"'));if(b.J){e.drmsys=b.J.keySystem;var f=0;b.J.i&&(f=Object.keys(b.J.i).length);e.drmst=""+f}return new g.MD(d,!0,e)})};
qFa=function(a){this.D=a;this.B=this.u=0;this.C=new MT(50)};
PW=function(a,b,c){g.R.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new rFa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.kb?c.u=3:g.LG(a)&&(c.u=2);b.ob("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=Qoa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===EG(a)&&(c.J=g.sE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Pt("trident/")||Pt("edge/"))d=g.sE(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B,
d);g.sE(b,"html5_minimum_readahead_seconds")&&(c.B=g.sE(b,"html5_minimum_readahead_seconds"));g.sE(b,"html5_maximum_readahead_seconds")&&(c.Z=g.sE(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);g.sE(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.sE(b,"html5_allowable_liveness_drift_chunks"));g.sE(b,"html5_readahead_ratelimit")&&(c.Y=g.sE(b,"html5_readahead_ratelimit"));switch(EG(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.K=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.kb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(EG(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.i=OW(this,b);this.oa()};
sFa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.K&&3===Qoa(a.videoData)&&--c;return QW(a)*c};
RW=function(a,b){var c=a.hj(),d=a.policy.i;a.D||(d=Math.max(d-1,0));a=d*QW(a);return b>=c-a};
tFa=function(a,b,c){b=RW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
uFa=function(a,b){b=RW(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b};
QW=function(a){return a.videoData.i?eE(a.videoData.i)||5:5};
OW=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/QW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/QW(a))),b)};
rFa=function(){this.ma=1;this.B=0;this.Z=Infinity;this.Y=0;this.C=!0;this.i=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.S=!1};
UW=function(a){g.I.call(this);this.Ca=a;this.X=this.Ca.V();this.C=this.i=0;this.B=new g.M(this.D,1E3,this);this.Da=new SW({delayMs:g.sE(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Z=new SW({delayMs:g.sE(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Ka=TW(this,"html5_seek_set_cmt");this.ma=TW(this,"html5_seek_jiggle_cmt");this.ya=TW(this,"html5_seek_new_elem");this.Ua=TW(this,"html5_unreported_seek_reseek");this.K=TW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new SW({delayMs:2E4});
this.J=TW(this,"html5_ads_preroll_lock_timeout");this.Ja=new SW({delayMs:g.sE(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Gr:!this.X.N("html5_report_slow_ads_as_error")});this.La=new SW({delayMs:g.sE(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Gr:!this.X.N("html5_skip_slow_buffering_ad")});this.Aa=TW(this,"html5_seek_over_discontinuities");this.Sa=new SW({delayMs:g.sE(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Y=TW(this,"html5_slow_start_no_media_source");
this.u={};g.J(this,this.B)};
TW=function(a,b){var c=g.sE(a.X.experiments,b+"_delay_ms");a=a.X.N(b+"_cfl");return new SW({delayMs:c,Gr:a})};
vFa=function(a,b,c,d,e,f,h){var l=FD(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1<c.length&&11>c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1<c.length?c.start(l+1):d;VW(a,a.Aa,m&&!e,f&&!h,"qoe.longrebuffer",function(){b.seekTo(n+.2)},"seekover")};
VW=function(a,b,c,d,e,f,h){wFa(b,c)?(a.Rd(e,b,h),b.Gr||f()):(b.HA&&b.triggerTimestamp&&!b.B?(c=(0,g.Q)(),d?b.i||(b.i=c):b.i=0,f=!d&&c-b.triggerTimestamp>b.HA,c=b.i&&c-b.i>b.GF||f?b.B=!0:!1):c=!1,c&&(c=a.Ib(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.LD(c),a.Ca.Ba("workaroundReport",h),d&&(b.reset(),a.u[e]=!1)))};
SW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.GF?1E3:b.GF,d=void 0===b.HA?3E4:b.HA;b=void 0===b.Gr?!1:b.Gr;this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.GF=c;this.HA=d;this.Gr=b};
wFa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.Q)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1};
XW=function(a){g.I.call(this);var b=this;this.Ca=a;this.X=this.Ca.V();this.videoData=this.Ca.getVideoData();this.policy=new xFa(this.X);this.Y=new UW(this.Ca);this.playbackData=null;this.Ja=new g.wD;this.J=this.u=this.Wa=this.ra=null;this.i=NaN;this.B=0;this.C=null;this.Aa=NaN;this.D=this.K=null;this.Z=this.S=!1;this.ya=new g.M(function(){yFa(b,!1)},2E3);
this.Ya=new g.M(function(){WW(b)});
this.Ka=new g.M(function(){b.oa();b.S=!0;zFa(b)});
this.Sa=this.timestampOffset=0;this.La=!0;this.Da=0;this.Ua=NaN;this.ma=new g.M(function(){var c=b.X.wc;c.i+=1E4/36E5;c.i-c.B>1/6&&(Sma(c),c.B=c.i);b.ma.start()},1E4);
g.J(this,this.Y);g.J(this,this.Ja);g.J(this,this.ya);g.J(this,this.Ka);g.J(this,this.Ya);g.J(this,this.ma)};
AFa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new qFa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(DG(a.videoData)&&a.Wa){var c=a.Wa.Da.qg()||0;break a}if(a.videoData.i){c=a.videoData.i.ya;break a}}c=0}return c}),a.u=new PW(a.videoData,a.X.experiments,function(){return a.hd(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.B=a.B||a.videoData.startSeconds||0)};
$W=function(a,b){(a.Wa=b)?YW(a,!0):ZW(a)};
BFa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.i&&!(c>=e.u&&c<e.B)){var f=e.i.getSegmentNumberForTime(c);-1!==f&&(e.u=e.i.getStartTime(f),e.B=e.u+e.i.getDuration(f),f=Date.now()/1E3-e.i.getIngestionTime(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(d=a.u,e=a.ra?SJ(a.ra):0,d.C++,3>d.C||g.Qa()-d.J<d.policy.Y||(d.J=g.Qa(),d.u.push(e),50<d.u.length&&d.u.shift(),d.oa())),d=a.u,tFa(d,c,void 0===b?!0:b),uFa(d,c),b&&yFa(a,!0))};
yFa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!RW(c,d)&&c.Wl()?(c.oa(),c.policy.S&&(c.policy.i=Math.max(c.policy.i+1,10)),c=Infinity):d<c.videoData.getMinSeekableTime()?(c.oa(),c=Math.min(c.videoData.getMinSeekableTime()+10,c.hj())):c=NaN;if(!isNaN(c)){if(a.Wa&&b&&(b=a.ya.isActive(),d=a.u.hj(),(d=fDa(a.Wa,d-a.Tc()))&&!b)){a.ya.start();a.Ca.Ba("inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(d+a.Tc()));a.seekTo(d+a.Tc(),{Sd:"playbacktimeline_inBufferSeek"});return}a.N("html5_peg_to_live_logging")&&
a.Ca.Ba("ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.Tc()));a.seekTo(c,{Sd:"playbacktimeline_pegToLive"})}}};
YW=function(a,b){if(a.u&&a.Wa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.i;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){b.oa();var d=OW(b,b.i-1);break b}if(b.policy.C){b.oa();d=OW(b,b.i+1);break b}}d=b.i}b.i=d;if(c=c!==b.i)b.oa(),b.u=[],b.C=0}else c=!1;c&&(c=a.Ca.Xb,b=sFa(a.u),c.qoe&&(c=c.qoe,g.qW(c,g.CS(c.i),"lra",[b]),c.Ba("live-readahead-seconds",b.toString())));b=a.Wa;c=a.u.i;
d=a.u;d=(d.i-1+d.policy.i)*QW(d);a=a.u.policy.J;b.Oe=Math.max(c-1,0);b.D&&(b.D.ma=d);b.Za=a}};
CFa=function(a,b){a.B=b};
aX=function(a){return a.videoData.isLivePlayback&&!!a.videoData.C&&!a.videoData.C.i};
zFa=function(a){DFa(a).then(void 0,function(){ZW(a)});
bX(a).then(function(c){EFa(a,c)},function(){ZW(a)});
PS(a.Ca);if(g.zG(a.videoData)){var b=a.Ib();b["native"]=""+ +a.Z;b.tgt=""+a.i;a.Ca.Ba("startSeek",g.LD(b))}};
DFa=function(a){if(!a.K)if(a.Wa)if(isFinite(a.i))a.oa(),a.K=a.Wa.seek(a.i-a.timestampOffset);else{a.oa();var b=a.Wa;FV(b);b.C.i&&b.oa();b.D&&ICa(b.D,b.videoTrack.i);EV(b);b=b.C;var c=Math.max(b.videoTrack.C.B||0,b.audioTrack.C.B||0);hCa(b.videoTrack);hCa(b.audioTrack);var d=b.u,e;for(e in d.i)ska(d.i[e].index,Infinity);b.u.isManifestless&&(b.C=!0);b.Wa.currentTime=c;b.i=!0;b.D=new uS;a.K=b.D;a.i=a.Wa.getCurrentTime()+a.timestampOffset}else a.K=ch(a.i-a.timestampOffset);return a.K};
bX=function(a){var b=a.C;b||(a.C=new uS,b=a.C,WW(a));return b};
FFa=function(a,b,c){return isNaN(b)?NaN:g.Qf(b,a.getMinSeekableTime(),a.hd(c))};
WW=function(a){if(a.C)if(!a.N("html5_nondash_live_seek_killswitch")&&aX(a)&&a.ra&&0<a.ra.uh()&&0<RJ(a.ra)&&(a.i=FFa(a,a.i,!1)),!a.ra||!GFa(a))a.Ya.start(750);else if(!isNaN(a.i)&&isFinite(a.i)&&a.Aa!==a.i-a.timestampOffset){var b=a.ra.getCurrentTime()-a.i;if(Math.abs(b)<=a.Da)HFa(a);else if(!a.videoData.isLivePlayback&&a.i>=a.hd()-.1)a.i=a.hd(),a.C.resolve(a.hd()),DS(a.Ca);else try{var c=a.i-a.timestampOffset;a.oa();a.ra.seekTo(c);a.Y.i=c;a.Aa=c;a.B=a.i}catch(d){a.oa()}}};
GFa=function(a){if(!a.ra||0===a.ra.uh()||0<a.ra.aj())return!1;var b=0<a.ra.getCurrentTime();if(!(a.N("html5_nondash_mediaelementready_killswitch")||a.videoData.C&&a.videoData.C.i||a.videoData.isLivePlayback)&&xG(a.videoData))return b;if(0<=a.i){var c=a.ra.Mv();if(c.length||!b)return GD(c,a.i-a.timestampOffset)}return b};
HFa=function(a){a.C?a.C.resolve(a.ra.getCurrentTime()):a.oa()};
EFa=function(a,b){a.oa();a.D&&(a.D.resolve(b),a.Ca.ea("SEEK_COMPLETE"),g.zG(a.videoData)&&(b=a.Ib(),b["native"]=""+ +a.Z,a.Ca.Ba("seekEnd",g.LD(b))));IFa(a)};
IFa=function(a){a.i=NaN;a.Aa=NaN;a.C=null;a.K=null;a.D=null;a.S=!1;a.Z=!1;a.Da=0;a.ya.stop();a.Ka.stop()};
ZW=function(a){a.D&&a.oa();IFa(a)};
JFa=function(a){if(a.ra){for(var b=g.r(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ja.T(a.ra,c.value,function(d){var e=a.ra;d=d.type;a.oa();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.C||a.Z&&d!==a.i)a.C=new uS,a.Aa=d,e=e.getCurrentTime(),a.Y.i=e,a.seekTo(d,{Sd:"playbacktimeline_mediaElementEvent"}),a.Z=!0;break;case "seeked":HFa(a);break;case "loadedmetadata":a.La?(e="ss.",d=0,(MG(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.kc,e="utc.",d=a.hd()-a.getIngestionTime(a.hd())+d):a.videoData.i&&a.videoData.i.isManifestless&&a.videoData.kc?(e="mss.",d=a.videoData.kc+a.Tc()):a.N("html5_unrewrite_timestamps")&&a.videoData.Lo&&(e="stss.",d=a.videoData.Lo),d?(a.seekTo(d,{Sd:"playbacktimeline_startSeconds"}),a.Ca.Ba("startSeconds",e+String(d)),a.La=!1):a.videoData.kc&&a.Ca.Ba("startSeconds",
""+e+(a.videoData.kc+a.Tc())),e=!!d):e=!1;a.N("html5_nondash_live_seek_killswitch")&&!e&&aX(a)&&(a.i=isFinite(a.i)?g.Qf(a.i,a.getMinSeekableTime(),a.hd()):a.hd());WW(a);break;case "progress":WW(a)}});
a.D||a.B||a.policy.u||!a.ra.JF()||a.seekTo(.01,{Sd:"playbacktimeline_setupMediaElement"})}};
KFa=function(a,b){a.i=b;a.B=b;bX(a).then(function(c){EFa(a,c)},function(){ZW(a)})};
xFa=function(a){this.i=a.N("html5_live_smoothly_extend_max_seekable_time");this.B=a.N("html5_seek_over_discontinuities");this.u=a.N("html5_requires_seek_for_playback_at_zero_killswitch")};
cX=function(){this.i=this.started=!1};
dX=function(){aR.apply(this,arguments)};
eX=function(){bR.apply(this,arguments)};
fX=function(a){this.i=a;this.iv=OQ(yy(16))};
LFa=function(a,b,c){return g.H(a,function e(){var f=this,h;return g.B(e,function(l){h=new dX(f.i.i);return l.return(h.decrypt(b,c))})})};
gX=function(a){g.I.call(this);this.i=a;this.Me=new Map};
SU=function(a,b){return a.Me.has(b)};
cCa=function(a,b,c){a.Me.get(b).od=c};
MFa=function(a,b){SU(a,b)&&(a.Me.get(b).je=new YC,hX(a,b))};
NFa=function(a){for(var b=g.r(a.Me),c=b.next();!c.done;c=b.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;d.od||MFa(a,c)}};
OCa=function(a,b){var c;return(null===(c=a.Me.get(b))||void 0===c?void 0:c.yk)||0};
bCa=function(a,b){a=a.Me.get(b);return a.bytesReceived===a.yk&&a.KC+a.je.totalLength===a.bytesReceived};
hX=function(a,b){a.oa();if((b=a.Me.get(b))&&!b.rf){b.rf=!0;b.od&&b.od();a:{b=g.r(a.Me.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.rf){b=!1;break a}b=!0}if(b){a=a.i;var d;a.playerResponse&&(null===(d=a.xhr)||void 0===d?void 0:d.abort())}}};
OFa=function(a){this.iv=JQ(new EQ(a),5)};
PFa=function(a){a=JQ(new EQ(a),4);this.i=new OFa(new YC([a]))};
QFa=function(a){this.i=[];for(a=new EQ(a);;){var b=HQ(a,2);if(!b)break;this.i.push(b)}};
SFa=function(a){a=new EQ(a);this.B=HQ(a,1);this.itag=HQ(a,3);this.lastModifiedTime=HQ(a,4);this.xtags=IQ(a,5);HQ(a,6);GQ(a,8)&&FQ(a);HQ(a,9,-1);HQ(a,10);this.i=HQ(a,14);this.u=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.Gk="audio"===RFa[oD[""+this.itag]]};
TFa=function(a){a=new EQ(a);a=JQ(a,23);a=new EQ(new YC([a]));this.videoId=IQ(a,2)};
UFa=function(a){this.body=null;a=new EQ(a);this.onesieProxyStatus=HQ(a,1,-1);this.httpStatus=HQ(a,2,-1);this.body=JQ(a,4)};
VFa=function(a){a=new EQ(a);this.startTimeMs=HQ(a,1);this.endTimeMs=HQ(a,2)};
WFa=function(a){var b=new EQ(a);a=IQ(b,3);var c=HQ(b,5);this.u=HQ(b,7);var d=JQ(b,14);new VFa(new YC([d]));b=IQ(b,15);this.i=a+";"+c+";"+b};
XFa=function(a){this.eq=a;this.u=!1;this.i=[]};
iX=function(a){for(;a.i.length&&!a.i[0].pj;){var b=a.i.shift(),c=b.mG;if(b=b.buffer)YFa(a.eq.yd,c,b);else{var d=a.eq;d.i[c].EK=!0;var e=b=void 0;d=d.yd;if(null===(e=d.Be)||void 0===e?0:SU(e,c))null===(b=d.Be)||void 0===b?void 0:hX(b,c)}}};
ZFa=function(a,b){a.i.push({mG:b,pj:!1});a.u||iX(a)};
jX=function(a){this.yd=a;this.B={};this.i={};this.u=this.iv=null;this.queue=new XFa(this)};
$Fa=function(a){var b=a.queue;b.i.length&&b.i[0].pj&&!b.u&&(b.i.length=0);b=g.r(Object.keys(a.i));for(var c=b.next();!c.done;c=b.next())c=c.value,a.i[c].EK||ZFa(a.queue,c)};
aGa=function(a,b){var c=b.totalLength;a.oa();var d=!1;switch(a.u){case 0:a.ZE(b).then(function(e){var f=a.yd;f.We("oprr");f.playerResponse=e;f.X.N("html5_onesie_use_media_promise")&&!f.EE&&(f.Vw=!1);kX(f)},function(e){a.yd.Ch(e)});
break;case 2:a.yd.We("ormk");b=bD(b);a.queue.decrypt(b);a.oa();break;default:d=!0,a.oa()}a.yd.mj&&a.yd.Ba("ombup","id.11;pt."+a.u+";len."+c+(d?";ignored.1":""));a.u=null};
bGa=function(a,b,c){var d=cD(b,0);a.yd.mj&&a.yd.Ba("ombup","id."+(c?12:21)+";len."+b.totalLength+";hid."+d);1!==b.totalLength&&(b=bD(b,1),d=a.B[d]||null,a.oa(),d&&(a=a.queue,a.i.push({mG:d,buffer:b,pj:c}),a.u||iX(a)))};
lX=function(){};
mX=function(a){var b=new Zwa;a.u(b);return new Uint8Array(b.u.buffer,0,b.i)};
nX=function(a){var b=a.value;this.name=a.name;this.value=b};
oX=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
pX=function(a){this.i=a};
qX=function(a,b,c,d){this.i=a;this.encryptedClientKey=b;this.iv=c;this.hmac=d;this.serializeResponseAsJson=!0};
rX=function(a,b,c){this.B=a;this.i=b;this.onesieUstreamerConfig=c};
cGa=function(a,b){if(b+1<=a.totalLength){var c=cD(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=cD(a,b++);else if(2===c)c=cD(a,b++),a=cD(a,b++),a=(c&63)+64*a;else if(3===c){c=cD(a,b++);var d=cD(a,b++);a=cD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=cD(a,b++);d=cD(a,b++);var e=cD(a,b++);a=cD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),aD(a,c,4)?a=ola(a).getUint32(c-a.B,!0):(d=cD(a,c+2)+256*cD(a,c+3),a=cD(a,c)+256*(cD(a,c+1)+
256*d)),b+=5;return[a,b]};
sX=function(a){this.u=a;this.i=new YC};
dGa=function(a){var b=g.r(cGa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.r(cGa(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).Fq.split(b),b=d.lz,d=d.Fq,a.u.eq.feed(c,b),a.i=d,dGa(a))};
hGa=function(a,b,c){var d=a.getVideoData().isAd()?.5:.9;c=c*d-16E3;a=iEa(a.Wf,a.videoData);d=[];b=g.r(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=eGa[e]||0;if(!(f&&f>c)){var h=fGa[e]||0;a.i&&h>a.i||d.push({itag:e,byterate:f})}}return d.sort(function(l,m){return gGa.indexOf(oD[l.itag])-gGa.indexOf(oD[m.itag])||m.byterate-l.byterate}).map(function(l){return l.itag})};
kGa=function(a){var b=yG(a);a=iGa(b,a.V());var c=a.video.map(jGa).flat();0<b.B&&!b.S&&(c=c.filter(function(d){return"1"!==oD[d]||fGa[d]<b.B}));
return{video:c,audio:a.audio.map(jGa).flat()}};
jGa=function(a){var b=lGa[a]||[];"9"===oD[a]&&(b=[].concat(g.v(b),["278"]));return[a].concat(g.v(b))};
iGa=function(a,b){function c(l){return l.id}
function d(l){return(l=f[l])?(tB(l,[]),[l[0]]):[]}
var e=Xla(mGa,null,0,!1,!1,void 0),f=oB(a,b.C,e,function(){return!0},!1);
b=gka(a).map(d).flat();e=ika(a);var h=["1","1h"];0<a.B&&!a.S&&(e=h.concat(e));return{video:e.map(d).flat().map(c),audio:b.map(c)}};
pGa=function(a){return g.H(this,function c(){var d,e,f,h;return g.B(c,function(l){return 1==l.i?(d=a.V().bd,null!==d&&void 0!==d&&d.baseUrl?g.z(l,nGa(),3):l.fb(2)):2!=l.i&&(e=l.u)?(f=""+e+d.baseUrl,h=new g.wB(f),l.return(oGa(h,a))):l.return(null)})})};
oGa=function(a,b){var c,d=null===(c=b.Gq)||void 0===c?void 0:c.urlQueryOverride;if(d){d=BB(d);d=g.r(Object.entries(d));for(var e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;a.set(e,f)}}if(!a.get("id")){d=CE(b.videoId);b=[];if(d)for(d=g.r(d),e=d.next();!e.done;e=d.next())b.push(e.value.toString(16).padStart(2,"0"));b=b.join("");if(!b)return null;a.set("id",b)}return a};
nGa=function(){return g.H(this,function b(){var c,d,e,f,h;return g.B(b,function(l){if(1==l.i)return c={format:"RAW",method:"GET",timeout:5E3},g.z(l,Ct("https://redirector.googlevideo.com/initplayback?alr=yes&id=%s",c),2);d=l.u;if(200!==d.xhr.status||!d.xhr.responseText)return l.return(null);e=d.xhr.responseText;f=/https:\/\/(.*)\.googlevideo.com/g;h=e.match(f);return l.return(h?h[0]:null)})})};
tX=function(a,b){g.I.call(this);this.Ca=a;this.playerRequest=b;this.X=this.Ca.V();this.videoData=this.Ca.getVideoData();this.mj=g.zG(this.videoData);this.DJ=this.X.bd;this.pF=new fX(this.DJ.i);this.xhr=null;this.Wk=new uS;this.DK=!1;this.playerResponse="";this.mO=new sX(this);this.eq=new jX(this);this.hA=new g.M(this.AK,1E4,this);this.PM=g.sE(this.X.experiments,"html5_onesie_progress_timeout_ms");this.gA=new g.M(this.AK,this.PM,this);this.XK=!1;this.aE=this.X.rl;this.Fw="";this.Vw=this.X.N("html5_onesie_wait_for_media_availability");
this.EE=this.cL=!1;g.J(this.videoData,this);g.J(this,this.hA);g.J(this,this.gA);this.X.N("html5_onesie_media_bytes")&&aB()&&(this.Be=new gX(this),g.J(this,this.Be))};
YFa=function(a,b,c){var d;null===(d=a.Be)||void 0===d?void 0:(d.oa(),(a=d.Me.get(b))&&!a.rf&&(a.je.append(c),a.bytesReceived+=c.length,a.od&&a.od()))};
kX=function(a){if(!a.playerResponse||a.cL)return!1;var b=a.videoData.N("html5_onesie_audio_only_playback")&&a.videoData.Kn(),c;if(c=a.Vw&&a.Be){c=a.Be;for(var d=!1,e=g.r(c.Me.keys()),f=e.next();!f.done;f=e.next())f=c.Me.get(f.value),(null===f||void 0===f?0:f.yk)&&0<(null===f||void 0===f?void 0:f.yk)&&(f.Gk?d=!0:b=!0);c=!(b&&d)}if(c)return!1;a.We("ofr");a.Wk.resolve(a.playerResponse);a.hA.stop();return a.cL=!0};
qGa=function(a){if(!a.Rk)return{};var b=jV(a.Rk);b.d=vCa(a.Rk);b.ty="o";return b};
vGa=function(a){function b(e){return(d.Ug&&!c.N("web_player_no_force_gvi")||!(c.Rh?0:c.N("web_player_gvi_wexit")||(g.mF(c)?"TVHTML5"===c.deviceParams.c?kna(c)?c.N("web_player_gvi_wexit_living_room_pangea"):c.N("web_player_gvi_wexit_living_room_bedrock"):"TVHTML5_KIDS"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_kids"):"TVHTML5_SIMPLY"===c.deviceParams.c||TE(c)?c.N("web_player_gvi_wexit_living_room_simply"):xF(c)||"TV_UNPLUGGED_CAST"===c.deviceParams.c?c.N("web_player_gvi_wexit_living_room_unplugged"):
c.N("web_player_gvi_wexit_living_room_other"):1))&&!YG(d)?0:"yt"!==c.Aa?38===d.Ka&&"books"===c.playerStyle||30===d.Ka&&"docs"===c.playerStyle||33===d.Ka&&"google-live"===c.playerStyle?0:c.N("web_player_gvi_wexit_all_player_styles"):"adunit"!==TG(d)||c.N("web_player_gvi_wexit_adunit"))?rGa(a,d).then(function(){uX(a,d)},function(f){uX(a,d,!0);
throw f;}):sGa(a,d,e)}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.Da=!0;return tGa(a)?uGa(a,d).then(function(){uX(a,d)},function(e){e=ND(e);
if(e.i)return uX(a,d,!0),Promise.reject(e);a.handleError(e);return b("onesie")}):b("gvi")};
tGa=function(a){var b=a.V();if(!b.N("html5_onesie")||"yt"!==b.Aa)return!1;b=b.bd;if(!b||!b.i)return a.handleError(new g.MD("onesie.unavailable.hotconfig",!1,{key:"0"})),!1;b={};window.Uint8Array||(b.uint8="0");return 0<Object.keys(b).length?(b.onesie="0",a.handleError(new g.MD("html5.missingapi",!1,b)),!1):!0};
wGa=function(a){var b=rK();fra(b,a.mf());return g.mM(b,Dta())};
uGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q;return g.B(d,function(t){if(1==t.i)return b.fetchType="onesie",e=uua(b,a.getPlayerSize(),a.getVisibilityState()),f=new tX(a,e),g.z(t,f.fetch(),2);h=t.u;l={player_response:h};b.Da=!1;b.ol=f.Be;b.sD=f.sD;g.sG(b,l,!0);if(b.Da||qG(b))return t.return(Promise.resolve());b.ol=void 0;m={};n="onesie.response";p=!1;b.errorCode?(n="auth",m.ec=b.errorCode,m.ed=b.errorDetail,m.es=b.oi||"",p=!0):(m.successButUnplayable="1",m.disposed=""+ +b.isDisposed(),
m.afmts=""+ +/adaptiveFormats/.test(h),m.cpn=b.clientPlaybackNonce);q=new g.MD(n,p,m);return t.return(Promise.reject(q))})})};
rGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t;return g.B(d,function(u){switch(u.i){case 1:e=b.isAd(),f=!e,h=e?1:3,l=0;case 2:if(!(l<h)){u.fb(4);break}if(!(0<l)){u.fb(5);break}return g.z(u,th(5E3),6);case 6:m=new g.$v("Retrying OnePlatform request",{attempt:l}),g.Bz(m);case 5:return ta(u,7),g.z(u,xGa(a,b),9);case 9:return u.return();case 7:n=va(u);p=ND(n);q=p.errorCode;f&&"manifest.net.badstatus"===q&&"401"===p.details.rc&&(f=!1,l===h-1&&(h+=1));if("auth"===q||"manifest.net.retryexhausted"===
q)return u.return(Promise.reject(p));a.handleError(p);if(p.i){u.fb(4);break}case 3:l++;u.fb(2);break;case 4:return t=e?"auth":"manifest.net.retryexhausted",u.return(Promise.reject(new g.MD(t,!0,{backend:"op"})))}})})};
xGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t,u,x,y,A,F,G,E,K,V;return g.B(d,function(L){if(1==L.i)return b.fetchType="gp",e=wGa(b),f=uua(b,a.getPlayerSize(),a.getVisibilityState()),h=g.XL(yGa),l=b.mf(),m=(0,g.Q)(),n=!1,p="empty",q=0,a.We("ps_s"),t=function(W){2===W.readyState&&a.We("ps_c")},u={Js:t},g.z(L,g.tK(e,f,h,void 0,u),2);
x=L.u;a.We("ps_r");if(b.isDisposed())return L.return();x?x.error?(n=!0,p="esf:"+x.error.message,q=x.error.code):x.errorMetadata&&(n=!0,p="its",q=x.errorMetadata.status):n=!0;if(n)return y=a.V(),A=400===q||429===q,F=((0,g.Q)()-m).toFixed(),G={backend:"op",rc:""+q,rt:F,reason:p,has_kpt:b.zb?"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:y.pageId?"1":"0",has_token:l?"1":"0",has_vvt:b.La?"1":"0",is_mdx:b.isMdxPlayback?
"1":"0",mdx_ctrl:b.Bg||"",token_eq:l===b.mf()?"1":"0"},E="manifest.net.connect",429===q?E="auth":200<q&&(E="manifest.net.badstatus"),L.return(Promise.reject(new g.MD(E,A,G)));b.Da=!1;g.sG(b,{raw_player_response:x},!0);if(b.errorCode)return K={ec:b.errorCode,ed:b.errorDetail,es:b.oi||""},L.return(Promise.reject(new g.MD("auth",!0,K)));if(!b.Da&&!qG(b))return V=b.isAd()?"auth":"manifest.net.retryexhausted",L.return(Promise.reject(new g.MD(V,!0,{successButUnplayable:"1",hasMedia:KG(b)?"1":"0"})));g.sa(L)})})};
sGa=function(a,b,c){return g.H(this,function e(){var f,h,l,m,n,p,q,t,u,x;return g.B(e,function(y){switch(y.i){case 1:f=Tta(a.V(),b,a.getPlayerSize(),a.getVisibilityState(),a.isFullscreen()),h=function(){return!0},l=function(A){A=ND(A);
if(A.i)return Promise.reject(A);a.handleError(A);return!1},n=(m=b.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.fb(4);break}q=f;if(!(0<p)){y.fb(5);break}return g.z(y,th(5E3),6);case 6:t={playerretry:p,playerretrysrc:c},m||(t.recover="embedded"),q=Ks(f,t);case 5:return g.z(y,zGa(b,q).then(h,l),7);case 7:if(u=y.u)return y.return();p++;y.fb(2);break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.Bz(new g.$v("b/152131571",btoa(f)))}catch(A){}return y.return(Promise.reject(new g.MD(x,!0,{backend:"gvi"})))}})})};
zGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t,u,x,y,A;return g.B(d,function(F){if(1==F.i)return a.fetchType="gvi",e=a.V(),(l=Uta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Ks(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.kE(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0<
Object.keys(m).length&&(f.headers=m),p=(0,g.Q)(),q=function(G){if(!a.isDisposed()){G=G?G.status:-1;var E=400===G||429===G,K=((0,g.Q)()-p).toFixed();K={backend:"gvi",rc:""+G,rt:K};var V="manifest.net.connect";429===G?V="auth":200<G&&(V="manifest.net.badstatus");return Promise.reject(new g.MD(V,E,K))}},t=function(G){return q(G.xhr)},g.z(F,VD(Ct,h,f).then(void 0,t),2);
u=F.u;if(!u||!u.responseText)return F.return(q(u));a.Da=!1;x=g.Fs(u.responseText);g.sG(a,x,!0,void 0);if(a.errorCode)return y={ec:a.errorCode,ed:a.errorDetail,es:a.oi||""},F.return(Promise.reject(new g.MD("auth",!0,y)));if(!a.Da&&!qG(a))return A=a.isAd()?"auth":"manifest.net.retryexhausted",F.return(Promise.reject(new g.MD(A,!0,{successButUnplayable:"1"})));g.sa(F)})})};
uX=function(a,b,c){c=void 0===c?!1:c;g.H(this,function e(){var f,h,l,m,n;return g.B(e,function(p){if(1==p.i){f=a.V();if(c&&(!g.zF(f)||"embedded"!==TG(b))||b.yp||"adunit"!==TG(b)&&(g.mF(f)||nF(f)||g.gF(f)||g.fF(f)||"WEB_CREATOR"===f.deviceParams.c))return p.return();ta(p,2);h=wGa(b);var q=b.V();g.Dv.getInstance();var t={context:g.WM(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===TG(b)&&(t.isAdPlayback=!0);q.embedConfig&&(t.serializedThirdPartyEmbedConfig=
q.embedConfig);q.Vi&&(t.showContentOwnerOnly=!0);g.Fv(0,141)&&(t.autonavState=g.Fv(0,140)?"STATE_OFF":"STATE_ON");if(g.AF(q)){q=g.Fv(0,65);q=null!=q?!q:!1;var u=!!g.Rz("yt-player-sticky-caption");t.captionsRequested=q&&u}l=t;m=g.XL(AGa);a.We("wn_s");return g.z(p,g.tK(h,l,m),4)}if(2!=p.i)return n=p.u,a.We("wn_r"),n&&!n.error&&g.sG(b,{raw_watch_next_response:n},!1),ua(p,0);va(p);g.sa(p)})})};
BGa=function(a){function b(){a.We("virc");YA("virc",void 0,"video_to_ad")}
a.We("vir");YA("vir",void 0,"video_to_ad");var c=vGa(a);c.then(b,b);return c};
g.yX=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new pG(a):m;n=void 0===n?!0:n;g.R.call(this);var p=this;this.X=a;this.playerType=b;this.Pb=c;this.ix=d;this.getVisibilityState=f;this.visibility=h;this.Wx=l;this.videoData=m;this.XQ=n;this.Nu=new nFa(this.X);this.Gd=null;this.Ls=new cW;this.vk=null;this.Wf=new mW(this.X,this.ix,this);this.CK=!0;this.mediaSource=this.Wa=null;this.Fj=[];this.jm=new cX;this.De=this.Hw=null;this.lm=new cX;this.nA=null;this.GK=this.ws=!1;this.oA=NaN;this.YA=new g.M(this.VV,
500,this);this.playerState=new g.UJ;this.qA=[];this.Et=new g.wD;this.wk=new jW(this);this.ra=null;this.aq=new g.M(this.wU,15E3,this);this.QF=this.Vz=!1;this.tq=NaN;this.Xx=!1;this.EC=0;this.FC=new g.M(this.TF,4500,this);this.Xv=!1;this.zz=NaN;this.kG=new OT(new Map([["bufferhealth",function(){var q=p.Mc;return q.ra?SJ(q.ra):0}],
["bandwidth",function(){return p.xD()}],
["networkactivity",function(){return p.X.schedule.Z}],
["livelatency",function(){return p.isAtLiveHead()&&p.Ac()?vX(p):NaN}],
["rawlivelatency",function(){return vX(p)}]]));
this.Cz=0;this.loop=!1;this.playbackRate=1;this.kL=0;this.Mc=new XW(this);this.WI=!1;this.pA=[];this.rE=this.VM=0;this.OF=this.rO=!1;this.uC=new g.M(this.PR,0,this);this.Dd=null;this.SL=new g.M(this.bR,0,this);this.vA=new g.M(this.rN,3E4,this);this.iT=[this.YA,this.Et,this.uC,this.aq,this.vA,this.YA,this.FC,this.kG,this.SL];this.Ce=function(){var q=p.Xb;q.u.X.Fc||3===q.u.Ca.getVisibilityState()||(q.u.X.Fc=!0);$Ea(q);if(q.B){var t=q.B;t.J&&0>t.u&&3!==t.i.Ca.getVisibilityState()&&vEa(t)}q.qoe&&(q=q.qoe,
q.Ka&&0>q.B&&q.i.X.Fc&&HEa(q));g.sE(p.X.experiments,"html5_background_quality_cap")&&p.Wa&&LV(p);p.X.fk&&!p.videoData.backgroundable&&p.ra&&!p.qf()&&(p.isBackground()&&p.ra.Hx()?(p.Ba("bgmobile","suspend"),p.nm(!0)):p.isBackground()||wX(p)&&p.Ba("bgmobile","resume"))};
this.oa();this.Bh=new LW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.pA("endcr")||g.T(p.playerState,32)||DS(p);
e(q,t,p.playerType)});
g.J(this,this.Bh);g.J(this,this.Mc);CGa(this,m);this.videoData.subscribe("dataupdated",this.hW,this);this.videoData.subscribe("dataloaded",this.RC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ba,this);DGa(this);fAa(this.Ce);this.visibility.subscribe("visibilitystatechange",this.Ce);this.videoData.Ja&&EGa(this);!cpa(this.videoData)&&ipa(this.videoData)||FGa(this);1===this.playerType&&xX.isActive()&&this.vA.start()};
CGa=function(a,b){if(2===a.playerType||a.X.jl)b.ZG=!0;var c=coa(b.uc,b.Tq,a.X.u,a.X.B);c&&(b.adFormat=c);2===a.playerType&&(b.Ok=!0);if(a.isFullscreen()||a.X.u)c=g.Rz("yt-player-autonavstate"),b.autonavState=c||(a.X.u?2:a.videoData.autonavState);GGa(a,b)};
DGa=function(a){!a.Xb||a.Xb.isDisposed();a.Xb=new g.KW(new JW(a.videoData,a.X,a,function(){return a.Wx.Eh()}))};
bI=function(a){return a.ra&&a.ra.Qo()?a.ra.Le():null};
zX=function(a){if(a.videoData.isValid())return!0;a.Hf("api.invalidparam",void 0,"invalidVideodata.1");return!1};
EGa=function(a){var b=a.Wx.Jc();a.videoData.rl=a.videoData.rl||(null===b||void 0===b?void 0:b.AD());a.videoData.ul=a.videoData.ul||(null===b||void 0===b?void 0:b.BD())};
kS=function(a,b){(b=void 0===b?!1:b)||ZEa(a.Xb);a.ws=b;!zX(a)||a.jm.started?g.mF(a.X)&&a.videoData.isLivePlayback&&a.jm.started&&!a.jm.isFinished()&&!a.ws&&a.RC():(a.jm.start(),b=a.Xb,g.CS(b.u),b.qoe&&GEa(b.qoe),a.RC())};
HGa=function(a){var b=a.videoData;BGa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=ND(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Hf("auth",unescape(a.videoData.errorReason),g.LD(c.details),a.videoData.errorDetail,a.videoData.oi||void 0):a.handleError(c))})};
iAa=function(a,b){a.Dd=b;a.Wa&&dDa(a.Wa,new g.PV(b))};
IGa=function(a){if(!g.T(a.playerState,128))if(a.videoData.isLoaded(),a.oa(),4!==a.playerType&&(a.Fj=g.Db(a.videoData.ya)),KG(a.videoData)){AX(a).then(function(){a.isDisposed()||(a.ws&&(a.Tb(WJ(WJ(a.playerState,512),1)),wX(a)),GGa(a,a.videoData),a.jm.i=!0,BX(a,"dataloaded"),a.lm.started&&CX(a),uEa(a.Wf,a.De))});
a.N("html5_log_media_perf_info")&&a.Ba("loudness",""+a.videoData.xe.toFixed(3),!0);var b=jpa(a.videoData);b&&a.Ba("playerResponseExperiment",b,!0);a.DC()}else BX(a,"dataloaded")};
AX=function(a){DX(a);a.De=null;var b=pFa(a.X,a.videoData,a.qf());a.Hw=b;a.Hw.then(function(c){JGa(a,c)},function(c){a.isDisposed()||(c=ND(c),a.visibility.isBackground()?(EX(a,"vp_none_avail"),a.Hw=null,a.jm.reset()):(a.jm.i=!0,a.Hf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.LD(c.details))))});
return b};
kW=function(a){a.oa();AX(a).then(function(){return wX(a)});
g.$J(a.playerState)&&a.playVideo()};
JGa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.oa(),a.De=b,AFa(a.Mc,a.De),a.videoData.isLivePlayback&&(0<a.videoData.kc&&!DG(a.videoData)||a.seekTo(a.hd(),{Sd:"videoplayer_playbackData"})),a.videoData.C.i?a.Wa?g.Bz(Error("Duplicated Loader")):KGa(a):!a.videoData.C.i&&ZG(a.videoData)&&a.Hs(new EU(a.videoData.videoId||"",4)),FX(a),mEa(a.Wf,b).then(function(){a.zt();GX(a)}))};
HX=function(a){a.oa();a.ra&&a.ra.vr();kS(a);zX(a)&&!g.T(a.playerState,128)&&(a.lm.started||(a.lm.start(),a.Tb(WJ(WJ(a.playerState,8),1))),CX(a))};
CX=function(a){a.isDisposed();a.oa();if(a.lm.isFinished())a.oa();else if(a.jm.isFinished())if(g.T(a.playerState,128))a.oa();else if(a.Fj.length)a.oa();else{if(!a.Bh.started){var b=a.Bh;b.started=!0;b.bl()}if(a.Tl())a.oa();else{a.Wa&&(b=a.Wa.timing,a.GK=!!b.i&&!!b.u);a.lm.isFinished()||(a.lm.i=!0);if(b=a.N("html5_onesie_live")&&a.Wa){b=a.Wa;var c=b.videoTrack.u&&-1===b.videoTrack.u.Ma,d=b.audioTrack.u&&-1===b.audioTrack.u.Ma;b=(hDa(b.videoTrack)||hDa(b.audioTrack))&&(c||d)}!a.videoData.isLivePlayback||
0<a.videoData.kc&&!DG(a.videoData)||b||(a.oa(),a.seekTo(Infinity,{Sd:"videoplayer_readying"}),a.isBackground()&&(a.QF=!0));b=a.Xb;b.qoe&&(b=b.qoe,b.i.videoData.Tj&&vW(b,b.i.videoData.Tj),b.i.videoData.isLivePlayback&&(c=b.i.videoData.i,DG(b.i.videoData)&&vW(b,"manifestless"),c&&eE(c)&&vW(b,"live-segment-"+eE(c).toFixed(1))),"yt"!==b.i.X.Aa&&(b.u.len=[b.i.videoData.lengthSeconds.toFixed(2)]),b.i.videoData.cotn&&!ZG(b.i.videoData)&&DEa(b,!0),b.i.videoData.Y&&(c=CEa())&&b.Ba("cblt",c),XG(b.i.videoData)?
vW(b,b.i.videoData.enableServerStitchedDai?"ssdai":"csdai"):b.i.videoData.wE&&vW(b,"dsdai"));a.oa();a.ea("playbackready",a);XA("pbr",a.Pb.timerName)||(a.Pb.tick("pbr"),YA("pbr",void 0,"video_to_ad"))}}else a.oa()};
DS=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.ra&&a.ra.pause();b=b?new g.UJ(14):new g.UJ;a.Tb(b)};
GGa=function(a,b){b.endSeconds&&b.endSeconds>b.startSeconds&&(b=b.endSeconds,a.vk&&(a.removeCueRange(a.vk),a.vk=null),a.vk=new g.nA(1E3*b,0x7ffffffffffff),a.vk.namespace="endcr",a.addCueRange(a.vk))};
JX=function(a,b,c,d){a.videoData.u=c;d&&MV(a,b,d);d=(d=g.IX(a))?d.lc():"";a.Xb.Ew(new cEa(a.videoData,c,b,d));c=a.Wf;c.B=0;c.i=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)};
g.IX=function(a){var b=KX(a);return iB(b)||!a.De?null:g.rb(a.De.i.videoInfos,function(c){return b.C(c)})};
MV=function(a,b,c){if(c!==a.videoData.K){var d=!a.videoData.K;a.videoData.K=c;"m"!==b&&(b=d?"i":"a");a.Xb.xw(new cEa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}};
OV=function(a,b){a.oa();b&&a.Rd(new g.MD("qoe.restart",!1,b));LX(a);b=a.videoData.i&&sB(a.videoData.i);var c=a.ra&&a.ra.isView();b||c?(a.Wa&&SCa(a.Wa),iW(a)):(a.Tb(WJ(a.playerState,16)),wX(a),g.$J(a.playerState)&&a.playVideo())};
KX=function(a){if(a.De){var b=a.Wf;var c=a.De;a=a.Wr();var d=fEa(b);if(iB(d)){d=kEa(b,c);var e=lEa(c),f=sEa(b,c),h=hEa(b,c.videoData,c),l=gEa(b);var m=4320;!b.X.i||g.dF(b.X)||Zt()||b.X.N("hls_for_vod")||(m=g.gB.medium);var n=g.sE(b.X.experiments,"html5_default_quality_cap");if(n){var p=!!c.i.i&&!c.videoData.Bg&&!c.videoData.zd,q=g.sE(b.X.experiments,"html5_quality_cap_min_age_secs");p&&q&&(p=b.X.schedule.S,p=(0,g.Q)()-p>1E3*q);p&&(m=Math.min(m,n))}n=g.sE(b.X.experiments,"html5_random_playback_cap");
q=/[a-h]$/;n&&q.test(c.videoData.clientPlaybackNonce)&&(m=Math.min(m,n));(n=g.sE(b.X.experiments,"html5_not_vp9_supported_quality_cap"))&&!zD('video/webm; codecs="vp9"')&&(m=Math.min(m,n));if(q=n=g.sE(b.X.experiments,"html5_hfr_quality_cap"))a:{q=c.i;if(q.i)for(q=g.r(q.videoInfos),p=q.next();!p.done;p=q.next())if(32<p.value.video.fps){q=!0;break a}q=!1}q&&(m=Math.min(m,n));(n=g.sE(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(m=Math.min(m,n));m=tEa(b,c,m);m=new eB(0,4320===
m?0:m,!1,"d");n=dEa(b,c);q=n.compose;var t;a:if((p=c.i)&&p.videoInfos.length){for(var u=g.r(p.videoInfos),x=u.next();!x.done;x=u.next())if(x=x.value,null===(t=x.u)||void 0===t?0:t.smooth){t=x.video.i;break a}t=p.videoInfos[0].video.i}else t=0;Rt()&&!g.mF(b.X)&&qD(c.i.videoInfos[0])&&(t=Math.min(t,g.gB.large));t=new eB(0,t,!1,"o");d=q.call(n,t).compose(m).compose(l).compose(h).compose(f).compose(e).compose(d)}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(sEa(b,c))),b.N("html5_ustreamer_cap_override_sticy")&&
(d=d.compose(lEa(c)));b.N("html5_varispeed_playback_rate")&&(d=d.compose(kEa(b,c)));b=c.videoData.No.compose(d).compose(c.videoData.DL).compose(a)}else b=oG;return b};
rza=function(a,b,c){a.videoData.No=b;if(a.De&&c){c=a.Wf;var d=a.De,e,f;if(d.i.i){var h=gE(),l=d.i.videoInfos[0].video.i;if(!(h>l&&0!==l&&b.i===l)){1<c.playbackRate&&c.N("html5_varispeed_playback_rate")&&(h=Fma(c.X.C,d.i.videoInfos,c.playbackRate),0!==b.i&&h<b.i&&c.Ca.setPlaybackRate(1));d=(null===(f=null===(e=d.videoData.u)||void 0===e?void 0:e.video)||void 0===f?void 0:f.i)||0;g.Qz("yt-player-quality",{quality:g.gB[kB(b)],previousQuality:d},31104E3);c.X.schedule.policy.C=480<=gE();if(c.N("html5_exponential_memory_for_sticky")){b=
c.X.wc;e=1;var m=void 0===m?!1:m;Uma(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Rl["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Rl["sticky-lifetime"]=0);m&&.0625<ME(b,"sticky-lifetime")&&(e=2*b.Rl["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.i/e);b.Rl["sticky-lifetime"]=e;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){m=hE();c=g.r(Object.keys(m));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(m[b]=0);
g.Qz("yt-player-performance-cap",m,604800)}else g.Sz("yt-player-performance-cap")}}}FX(a)};
FX=function(a){if(!a.isDisposed()&&!g.T(a.playerState,128)&&a.videoData.C){if(a.videoData.C.i)GX(a);else{var b=KX(a),c=a.videoData;a:{var d=a.videoData.Fb;if(b.i){for(var e=g.r(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.lf(),l=g.gB[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.i){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.Za=d;JX(a,b.reason,LGa(a,a.videoData.Za))}if(a.N("html5_check_unstarted")?g.$J(a.playerState):a.Ac())a.Mc.La=!1,a.playVideo()}};
GX=function(a){if(a.videoData.C&&a.videoData.C.i){var b=KX(a);if(a.Wa&&(a=a.Wa,!a.isDisposed()&&!fB(a.u.B,b)&&a.videoTrack)){a.oa();var c=a.u.B;XCa(a,rBa(a.u,b));CV(a);var d=wU(a.u)&&"m"===b.reason&&a.u.Y,e=a.policy.Oj&&"l"===b.reason&&fV(a.videoTrack);b=c.i>b.i&&"b"===b.reason;c=a.u.Ya&&!PD();d||e||b||c?OV(a.Ca,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):EV(a)}}};
LV=function(a){a.N("html5_update_constraint")?GX(a):FX(a)};
NGa=function(a){var b=MGa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Bc.getName()===b})};
MGa=function(a){var b;if(a=null===(b=a.ra)||void 0===b?void 0:b.audioTracks())for(var c=0;c<a.length;++c){var d=a[c];if(d.enabled)return d.label}};
KGa=function(a){ima(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.Cua(b),e=Bua(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Dk:c.Dk});d.D=e;d.Y=g.sE(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");d.uc=g.sE(b.experiments,"html5_subsegment_readahead_timeout_secs");d.Mq=g.sE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.kc=g.sE(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");
d.Nq=g.sE(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Kh=g.sE(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.Lo=g.sE(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Kg=b.N("html5_peak_shave");d.Vp=b.N("html5_restrict_streaming_xhr_on_sqless_requests");d.dk=g.sE(b.experiments,"html5_max_headm_for_streaming_xhr");d.ql=b.N("html5_pipeline_manifestless_allow_nonstreaming");d.xl=b.N("html5_prefer_server_bwe3");d.Rh=1024*g.sE(b.experiments,"html5_video_tbd_min_kb");
d.Uj=b.N("html5_last_slice_transition");d.Kq=b.N("html5_store_xhr_headers_readable");d.zb=g.sE(b.experiments,"html5_probe_primary_delay_base_ms")||d.zb;d.Of=b.N("html5_no_placeholder_rollbacks");d.Lq=b.N("html5_subsegment_readahead_enable_mffa");b.N("html5_allow_video_keyframe_without_audio")&&(d.ma=!0);d.Tg=b.N("html5_reattach_on_stuck");d.Oo=b.N("html5_webm_init_skipping");d.Ug=g.sE(b.experiments,"html5_request_size_padding_secs")||d.Ug;d.cd=b.N("html5_abs_buffer_health");d.Tj=b.N("html5_interruption_resets_seeked_time");
d.Xe=g.sE(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Xe;d.rd=b.N("html5_explicitly_dispose_xhr");d.Up=b.N("html5_restart_on_unexpected_detach");d.Xp=b.N("html5_rewrite_manifestless_for_continuity");d.xe=g.sE(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Fe=g.sE(b.experiments,"html5_max_drift_per_track_secs");d.mq=b.N("html5_rewrite_manifestless_for_sync");d.ac=g.sE(b.experiments,"html5_static_abr_resolution_shelf");d.Ti=!b.N("html5_encourage_array_coalescing");d.Pj=
b.N("html5_crypto_period_secs_from_emsg");d.Rj=b.N("html5_filter_non_efficient_formats_for_safari");d.Tq=b.N("html5_format_hybridization");d.Hi=b.N("html5_abort_before_separate_init");d.uq=b.N("html5_serialize_server_stitched_ad_request");d.Nf=b.N("html5_never_pause_appends");d.jl=g.sE(b.experiments,"html5_min_startup_buffered_media_duration_secs");d.Yi=b.N("html5_mfl_extend_max_request_time");d.Gq=b.N("html5_enable_server_stitched_alr");d.Ni=b.N("html5_attach_po_token_to_bandaid");b.N("html5_allow_video_keyframe_without_audio")&&
(d.ma=!0);0<g.sE(b.experiments,"html5_max_redirect_response_length")&&(d.ai=g.sE(b.experiments,"html5_max_redirect_response_length"));e=g.sE(b.experiments,"html5_resource_bad_status_delay_scaling");0<e&&(d.Lp=e);d.Mb=b.N("html5_rewrite_timestamps_for_webm");d.Ka=b.N("html5_only_media_duration_for_discontinuities");b.N("html5_server_stitch_on_content_only_killswitch")&&(d.ll=!0);b.N("html5_media_common_config_killswitch")||(d.J=c.maxReadAheadMediaTimeMs/1E3||d.J,e=b.schedule,e.B.qg()===e.policy.B?
d.ya=10:d.ya=c.minReadAheadMediaTimeMs/1E3||d.ya,d.yh=c.readAheadGrowthRateMs/1E3||d.yh);Ll&&(d.Da=41943040);d.Ya=!UD();g.mF(b)||!UD()?(e=b.experiments,d.K=8388608,d.Z=524288,d.Pi=5,d.jb=2097152,d.Ja=1048576,d.tp=1.5,d.ol=!1,d.Nb=4587520,Ut()&&(d.Nb=786432),d.B*=1.1,d.C*=1.1,d.Fb=!0,d.Da=d.K,d.qb=d.Z,d.Sc=e.ob("persist_disable_player_preload_on_tv")||e.ob("persist_disable_player_preload_on_tv_for_living_room")||!1):b.i&&(d.B*=1.3,d.C*=1.3);g.Si&&Pt("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,
d.K=20971520,d.Z=1572864,e&&(d.Nb=812500,d.bd=1E3,d.No=5,d.Ja=2097152));!b.N("html5_disable_firefox_init_skipping")&&g.Ti&&(d.Fb=!0);b.supportsGaplessAudio()||(d.Qj=!1);VE&&(d.Sa=!0);var f;e=null===(f=c.i)||void 0===f?void 0:sB(f);if(DG(c)){d.wc=!0;d.Sj=!0;d.Ka=!0;d.Mb=!0;d.Hq=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.N("html5_disable_low_pipeline"))d.Zj=2,d.ek=4;d.Il=c.defraggedFromSubfragments;c.Pd&&(d.yl=!0);g.LG(c)&&(d.Ua=!1);d.Vi=g.yF(b)}c.isAd()&&(d.xb=0,d.Md=0);Poa(c)&&
(d.La=!0,b.N("html5_aggressive_timeout_for_streaming_xhr")&&(d.bd=400,d.Eb*=3,d.bk=2,d.gf=3,d.Zg=1.4));d.Za=b.N("html5_enable_subsegment_readahead_v3")||b.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.eb=c.Y;d.Aa=d.eb&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||g.zG(c));du()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.N("html5_disable_move_pssh_to_moov")&&e&&(d.Fb=!1);e&&(d.Tg=!1);var h=0;b.N("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,
c.isLivePlayback&&(h=g.sE(b.experiments,"ULTRALOW"===c.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":c.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||h));f=b.schedule;f.ma.i=DG(c)?.5:0;if(!f.policy.i&&h&&(f=f.B,h=Math.round(h*f.resolution),h!==f.i)){var l=Array(h),m=Math.min(h,f.u?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<h;++p)l[p]=Infinity;f.i=h;f.values=l;f.valueIndex=
m%h;f.u=m===h;f.C=!0;f.J=Mma(f)}d.Nf=c.isLivePlayback;switch(EG(c)){case 21530001:d.Fi=b.N("html5_live_smoothly_extend_max_seekable_time");d.Za=!0;"LOW"===c.latencyClass?d.Y=g.sE(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.Y=g.sE(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.Of=!0;break;case 2153E4:d.Za=!1}d.Sa=d.Sa||c.tu;d.Zb=c.Ja;g.zG(c)&&(d.kb=!0);c.Ja&&!e&&b.N("html5_hack_gapless_init")&&(d.Wg=!0);(e=g.sE(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&
c.Ja&&c.isAd()&&(d.B*=e,d.C*=e);ZG(c)&&(d.u=c.videoId,b.N("html5_wofflec")&&(d.Wi=!0),d.cd=!0,d.Mo=4,c.jl&&0<c.jl.length&&(d.Fc=c.jl));d.Oj=c.Og;d.S=jE(b,{},c.C||void 0);c=480<=gE();e=g.sE(b.experiments,"html5_deadzone_multiplier")||1;(f=g.sE(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(e-=f);d.B*=e;d.C*=e;if(e=g.sE(b.experiments,"html5_request_sizing_multiplier"))d.yp=e;qB(b.C,rB.BITRATE)&&(d.Nb=NaN);b.C.u&&(d.Xi="; "+rB.EXPERIMENTAL.name+"=allowed");c&&(d.ac=0);d.So=b.N("html5_rec_2020_matrix_correction_killswitch");
b.N("html5_prefer_low_quality_audio_means_64k")&&VE&&(d.wl=!0);b.N("debug_html5_random_stun_format")&&(d.Og=!0);b.N("html5_log_audio_abr")&&(d.Vj=!0);b=a.getAudioTrack();b=b.Bc.isDefault?void 0:b;dW(a.Ls);c=a.X.schedule;e=a.videoData.i;f=a.videoData.C;h=KX(a);l=a.videoData.enableServerStitchedDai;m=a.videoData;n=m.ol;delete m.ol;a.Wa=new g.yV(a,c,d,e,f,h,b,l,n);d=OGa(a)?!0:a.ws&&g.mF(a.X)&&a.videoData.isLivePlayback;a.Wa.initialize(a.getCurrentTime(),KX(a),d);a.videoData.probeUrl&&(a.Wa.Ka=a.videoData.probeUrl);
(a.Fj.length||a.ws)&&MX(a,!1);$W(a.Mc,a.Wa);a.Dd&&dDa(a.Wa,new g.PV(a.Dd));g.nH(a.videoData)&&(a.Wa.policy.Zi=2)};
DX=function(a){a.Wa&&(a.Wa.dispose(),a.Wa=null,$W(a.Mc,null));LX(a)};
LX=function(a){if(a.mediaSource){a.oa();if(a.Wa){var b=DG(a.videoData)&&a.videoData.Pd&&!a.videoData.isAd();GV(a.Wa,b)}a.mediaSource.dispose();a.mediaSource=null}};
PGa=function(a){if(a.mediaSource)return a.mediaSource.jw;a.oa();a:if(a.N("html5_application_media_source"))a.ea("requestmediasource",a);else{try{var b=a.ra.Ep()}catch(c){if(lW(a.wk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",c);a.Hf("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}yS(a,b)}return a.mediaSource?a.mediaSource.jw:null};
yS=function(a,b){QGa(a);a.mediaSource=b;Hla(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.oa();var d=a.getDuration();!d&&DG(a.videoData)&&(d=25200);a.mediaSource.isView?(c=d,a.oa(),c>a.mediaSource.getDuration()&&a.mediaSource.Gj(c)):a.mediaSource.Gj(d);var e=a.Wa,f=a.mediaSource;e.Z&&(e.oa(),FV(e),e.Z=!1);e.oa();TCa(e);if(!f.i&&!f.u){var h=e.videoTrack.i.info.mimeType+e.policy.Xi,l=e.audioTrack.i.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),
q="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Je&&(f.Je.webkitSourceAddId("0",l),f.Je.webkitSourceAddId("1",h));var t=new OD(p,f.Je,"0",nD(l),!1),u=new OD(q,f.Je,"1",nD(h),!0);f.i=t;f.u=u;g.J(f,t);g.J(f,u)}VU(e.videoTrack,f.u||null);VU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();ny(f.i,e.La,e);ny(f.u,e.La,e);e.policy.qd?EV(e):e.wh();a.ea("mediasourceattached")}}catch(x){g.Bz(x),a.handleError(new g.MD("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
QGa=function(a){a.Wa?g.jh(a.Wa.seek(a.getCurrentTime()-a.Tc()),function(){}):KGa(a)};
iW=function(a,b){b=void 0===b?!1:b;return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return e.Wa&&e.Wa.isDisposed()&&DX(e),e.ea("newelementrequired"),b?g.z(f,AX(e),2):f.fb(2);g.T(e.playerState,8)&&e.playVideo();g.sa(f)})})};
cAa=function(a,b){a.Ba("newelem",b);iW(a)};
NX=function(a){a.Pb.B.UE();g.T(a.playerState,32)||(a.Tb(WJ(a.playerState,32)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Qb()};
PS=function(a){g.T(a.playerState,32)?(a.Tb(YJ(a.playerState,16,32)),a.ea("endseeking",a)):g.T(a.playerState,2)||a.Tb(WJ(a.playerState,16));a.Pb.B.aF(a.videoData.clientPlaybackNonce,g.T(a.playerState,4))};
FGa=function(a){var b=a.videoData.errorDetail;a.Hf("auth",unescape(a.videoData.errorReason),b,b,a.videoData.oi||void 0)};
BX=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
RGa=function(a){g.Ob("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Et.T(this.ra,b,this.oF,this)},a);
a.X.Ti&&a.ra.Qo()&&(a.Et.T(a.ra,"webkitplaybacktargetavailabilitychanged",a.wT,a),a.Et.T(a.ra,"webkitcurrentplaybacktargetiswirelesschanged",a.xT,a))};
TGa=function(a){a.N("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&SGa(a)&&a.YA.start()};
SGa=function(a){if(!a.ra)return!1;var b=a.ra.getCurrentTime();a=a.ra.getDuration();return!!(1<b&&b>a-.3)};
UGa=function(a){window.clearInterval(a.oA);OX(a)||(a.oA=qt(function(){return OX(a)},100))};
OX=function(a){var b=a.ra;b&&a.Vz&&!a.videoData.qb&&!XA("vfp",a.Pb.timerName)&&2<=b.uh()&&!b.Ik()&&0<ID(b.Sf())&&a.Pb.tick("vfp");return(b=a.ra)&&!a.videoData.qb&&0<b.getDuration()&&(!XA("pbp",a.Pb.timerName)&&b.Im()&&2<=b.uh()&&0<ID(b.Sf())&&a.Pb.tick("pbp"),b=b.getCurrentTime(),MW(a.Nu,b))?(Wza(a),!0):!1};
Wza=function(a){window.clearInterval(a.oA);a.aq.stop();a.videoData.qb=!0;a.X.Rj=!0;a.X.Za=0;var b=a.wk,c=b.videoData.u;c&&b.videoData.N("html5_disable_codec_on_errors_with_exp_backoff")&&b.i.C.i.delete(c.i);b.u.stop();a.X.Kh=a.videoData.vu;a.videoData.II=!0;VGa(a);g.T(a.playerState,8)&&a.Tb(XJ(a.playerState,65));b=a.Xb;b.i&&TEa(b.i);b.B&&(b=b.B,c=g.CS(b.i),0>b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);g.Dq(a.FC);a.ea("playbackstarted");g.Ou()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))?
a():Qu(0))};
VGa=function(a){var b=a.getCurrentTime(),c=a.videoData;!XA("pbs",a.Pb.timerName)&&AA.measure&&AA.getEntriesByName&&(AA.getEntriesByName("mark_nr")[0]?Yja("mark_nr"):Yja());c.videoId&&a.Pb.info("docid",c.videoId);c.eventId&&a.Pb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Pb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Pb.info("start",c.startSeconds.toString());a.ra&&a.ra.Im()&&a.Pb.info("paused",1);c.u?a.Pb.info("fmt",c.u.lc()):a.Pb.info("fmt","-1");c.rd&&a.Pb.info("yt_pre",a.GK?"2":"1");
a.isFullscreen()&&a.Pb.info("yt_fs","1");a.Pb.info("cmt",b.toFixed(3));if(a.Wa){b=a.Wa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.u&&(c=window.performance.getEntriesByName(b.u),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 d in b)b.hasOwnProperty(d)&&a.Pb.tick(d,b[d])}};
WGa=function(a){a.Xb.od();if(a.videoData.isLivePlayback&&Date.now()>a.kL+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&bE(a.videoData.i))){var b=a.Xb;if(b.qoe){b=b.qoe;var c=b.i.Ca.ez(),d=g.CS(b.i);FEa(b,d,c);c=c.D;isNaN(c)||g.qW(b,d,"e2el",[c.toFixed(3)])}}g.yF(a.X)&&a.Ba("rawlat","l."+QT(a.kG,"rawlivelatency").toFixed(3));a.kL=Date.now()}a.videoData.u&&tD(a.videoData.u)&&(b=bI(a))&&b.videoHeight!==a.rE&&(a.rE=b.videoHeight,JX(a,"a",LGa(a,a.videoData.Za)))};
LGa=function(a,b){if("auto"===b.i.video.quality&&tD(b.lf())&&a.videoData.Fb)for(var c=g.r(a.videoData.Fb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.rE&&"auto"!==d.i.video.quality)return d.lf();return b.lf()};
vX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Wa&&a.videoData.i&&(b=DG(a.videoData)?a.Wa.Da.qg()||0:a.videoData.i.ya);return Date.now()/1E3-a.getIngestionTime()-b};
XGa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.ra&&a.ra.qf()&&(a.zz=(0,g.Q)());a.X.vl?g.pt(function(){PX(a)},0):PX(a)};
PX=function(a){if(a.ra)try{a.nA=a.ra.playVideo()}catch(c){EX(a,"err."+c)}if(a.nA){var b=a.nA;b.then(void 0,function(c){a.oa();if(!g.T(a.playerState,4)&&!g.T(a.playerState,256)&&a.nA===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.oa();else{var d="promise";c&&c.name&&(d+=";m."+c.name);EX(a,d);a.WI=!0;a.X.N("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.qK=!0)}})}};
EX=function(a,b){g.T(a.playerState,128)||(a.Tb(YJ(a.playerState,1028,9)),a.Ba("dompaused",b),a.ea("onDompaused"),a.ea("onAutoplayBlocked"))};
wX=function(a){if(!a.ra||!a.videoData.C)return!1;var b,c,d=null;(null===(c=a.videoData.C)||void 0===c?0:c.i)?(d=PGa(a),null===(b=a.Wa)||void 0===b?void 0:b.resume()):(DX(a),a.videoData.Za&&(d=a.videoData.Za.Vt()));b=d;d=a.ra.Hx();c=!1;d&&null!==b&&b.i===d.i||(YGa(a,b),c=!0);g.T(a.playerState,2)||(b=a.Mc,b.D||!(0<b.B)||b.ra&&0<b.ra.getCurrentTime()||b.seekTo(b.B,{Sd:"playbacktimeline_resumeTime"}));a:if(b=c,g.GG(a.videoData)&&a.ra)if((d=a.videoData.J)&&a.ra.Qo()){var e=a.ra.Le();if(a.Gd)if(e!==a.Gd.element)QX(a);
else if(b&&"fairplay"===d.flavor&&!Tt())QX(a);else break a;a.Gd=new fW(e,a.videoData,a.X);a.Gd.subscribe("licenseerror",a.Yz,a);a.Gd.subscribe("qualitychange",a.tU,a);a.Gd.subscribe("heartbeatparams",a.Bw,a);a.Gd.subscribe("keystatuseschange",a.Xn,a);a.Gd.subscribe("ctmp",a.Ba,a);b=g.r(a.Ls.keys);for(d=b.next();!d.done;d=b.next())d=a.Ls.get(d.value),a.Gd.Is(d);a.N("html5_eme_loader_sync")||dW(a.Ls)}else a.Hf("fmt.unplayable","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
YGa=function(a,b){var c;a.Pb.tick("vta");YA("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&CFa(a.Mc,a.getCurrentTime());a.ra.vr(b);a.mediaSource&&Qu(4);!a.videoData.qb&&g.$J(a.playerState)&&a.aq.start();a.N("html5_native_audio_track_switching")&&(b=null===(c=a.ra)||void 0===c?void 0:c.audioTracks())&&(b.onchange=function(){a.ea("internalaudioformatchange",a.videoData,!0)})};
QX=function(a){a.Gd&&(a.Gd.dispose(),a.Gd=null)};
zS=function(a,b){b=void 0===b?!1:b;return a.videoData.isLivePlayback&&(a.isAtLiveHead()&&(a.N("html5_videoplayer_getmaxseekabletimeforux_check_pause_killswitch")||!g.T(a.playerState,4))||a.Wl()||g.LG(a.videoData))?a.getCurrentTime():a.hd(b)};
ZGa=function(a){a.oa();a.ra&&(a.mediaSource?(QX(a),LX(a),PGa(a)):(a.videoData.Za&&a.videoData.Za.SF(),a.ra.stopVideo()),a.playVideo())};
RX=function(a,b){a.X.N("html5_log_rebuffer_reason")&&a.Ba("bufreason","r."+b+";lact."+Vu())};
KS=function(a,b,c,d,e,f){var h;if(null===(h=a.videoData.i)||void 0===h?0:h.isLive){var l=2===c.playerType?c:b,m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.Xb;if(p.qoe){p=p.qoe;var q=b.cpn,t=c.cpn,u=l.videoData.uc,x=p.i.videoData.clientPlaybackNonce,y=p.i.videoData.videoId,A=t!==x&&n!==y;x=q!==x&&m!==y;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=x?q:"",p.Z=x?m:"",p.adFormat=x?u:void 0,IEa(p,f?2:0,t,n,e),p.reportStats(),p.adCpn=A?t:"",p.Z=A?n:"",p.adFormat=A?u:void 0,IEa(p,f?3:1,
q,m,d),p.reportStats())}d=a.Xb;b=b.cpn;d.C.has(b)?(f=d.C.get(b),HW(f).send(),g.rt(f.B),f.B=NaN,d.u.X.N("watch_time_greater_than_playback_time_fix_killswitch")||b===d.u.videoData.clientPlaybackNonce||(IW(f),d.C.delete(b))):(d.Qf=d.u.videoData.clientPlaybackNonce,d.Qf&&d.i&&d.C.set(d.Qf,d.i));a=a.Xb;c=c.cpn;l=l.videoData;var F;a.C.has(c)?null===(F=a.C.get(c))||void 0===F?void 0:F.C&&isNaN(F.B)&&FW(F,!1):(e=dFa(a,a.u,l,e),a.C.set(c,e),TEa(e));a.Qf=c}}};
$Ga=function(a,b){if(a.videoData.Y){var c=g.sE(a.X.experiments,"html5_log_rebuffer_events");if(c&&a.ra){var d=a.ra.Ib();d.rt=(1E3*g.CS(a.Xb.u)).toFixed();d.e=b.substr(0,3);a.pA[a.VM++%c]=d}}"timeupdate"!==b&&"progress"!==b&&a.oa()};
aHa=function(a){if(a.videoData.Y){a.pA.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.r(a.pA),c=b.next();!c.done;c=b.next())c=c.value,a.Ba("vpe","t."+c.rt+";"+g.LD(c));a.pA=[];a.VM=0}};
bHa=function(a){if(Pt("cobalt")&&Pt("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.Ba("nxdock",""+ +b)}};
Vza=function(a,b,c,d,e){a.Ba("xvt","m."+b+";g.1;tt."+(c?1:0)+";np."+(d?1:0)+";c."+e)};
MX=function(a,b){DV(a.Wa,b||OGa(a))};
OGa=function(a){var b=a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.mF(a.X),c=a.N("disable_prefetch_when_ad_pending_for_web");return(b||c)&&g.ub(a.Fj,"ad")};
YCa=function(a){var b=a.X.Ug||"";oF(a.X);return b};
g.VX=function(a,b,c){g.I.call(this);var d=this;this.mw=this.pg=!1;this.yx={};this.zC={};this.wA={};this.Vs=[];this.NK=!1;this.hE=null;this.VK=!1;this.Sp=!0;this.dG=!1;this.pL=this.tE=null;this.vL=!0;this.ra=this.Rb=null;this.Gw=!1;this.zN=this.Ow=this.tb=this.playlist=null;this.fx=void 0;this.Go=0;this.Xc=this.Ht=this.Ui=null;this.oa();this.config=Cia(b||{});this.webPlayerContextConfig=c;Kha();b=this.config.args||{};this.X=new pF(b,c,c?c.canaryState:this.config.assets.player_canary_state);g.J(this,
this.X);this.DC();this.X.i&&!cHa&&(window.addEventListener(UE?"touchstart":"click",Mza,{capture:!0,passive:!0}),cHa=!0);this.JN=NE($E(this.X)&&!0,b.enablesizebutton);this.nE=NE(!1,b.player_wide);this.visibility=new ES;g.J(this,this.visibility);this.setIsExternalPlaylist(b.external_list);this.events=new g.wD(this);g.J(this,this.events);this.mm=new CT;g.J(this,this.mm);this.Kl=new CT;g.J(this,this.Kl);this.Jn=new SAa;this.Ta=new g.FM(this);g.J(this,this.Ta);this.template=new UT(this);g.J(this,this.template);
this.appState=1;this.eg=this.X.storeUserVolume?lma():{volume:100,muted:this.X.mute};this.I=this.X.B?new EM(this,1):new yM(this,1);g.J(this,this.I);c={};this.CC=(c.internalvideodatachange=this.AT,c.playbackready=this.CT,c.playbackstarted=this.DT,c.statechange=this.ET,c);this.Vc=dHa(this);this.IE=new g.wD(this);g.J(this,this.IE);this.N("html5_enable_web_assembly")&&this.Vc&&Oua(this.Vc).then(function(e){d.X.Zi=e});
this.Pb=new QM(this.X,this.Vc);this.sb=eHa(this);c={};this.XM=(c.airplayactivechange=this.onAirPlayActiveChange,c.airplayavailabilitychange=this.onAirPlayAvailabilityChange,c.beginseeking=this.UE,c.endseeking=this.aF,c.internalAbandon=this.eF,c.internalaudioformatchange=this.xw,c.internalvideodatachange=this.onVideoDataChange,c.internalvideoformatchange=this.Ew,c.liveviewshift=this.vU,c.playbackstalledatstart=this.MV,c.progresssync=this.dV,c.onLoadProgress=this.onLoadProgress,c.SEEK_COMPLETE=this.cA,
c.SEEK_TO=this.BV,c.onVideoProgress=this.onVideoProgress,c.onLoadedMetadata=this.onLoadedMetadata,c.onDompaused=this.onDompaused,c.onAutoplayBlocked=this.onAutoplayBlocked,c.playbackready=this.SU,c.statechange=this.OM,c.connectionissue=this.zw,c.newelementrequired=this.rM,c.heartbeatparams=this.Bw,c.videoelementevent=this.oF,c.drmoutputrestricted=this.onDrmOutputRestricted,c.requestmediasource=this.oV,c.signatureexpired=this.HV,c.nonfatalerror=this.JU,c);this.On=new g.wD(this);g.J(this,this.On);c=
10;g.mF(this.X)&&(c=3);xF(this.X)&&(c=g.sE(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Jw=new fT(c,function(e){e!==g.OM(d,e.getPlayerType())&&e.dispose()});
g.J(this,this.Jw);this.qD=this.Fy=-1;this.KA=new g.M(this.template.resize,16,this.template);g.J(this,this.KA);fHa(this);this.Dd=new WS(this.Ta,this.X,this.sb);this.Ft=new AS(this);g.J(this,this.Ft);JAa(this.X.deviceParams.c);this.events.T(this.Ta,g.pA("appapi"),this.yT);this.events.T(this.Ta,g.qA("appapi"),this.zT);this.events.T(this.Ta,g.pA("appad"),this.WL);this.events.T(this.Ta,g.qA("appad"),this.WL);this.events.T(this.Ta,g.pA("appprogressboundary"),this.cV);this.events.T(this.Ta,g.qA("applooprange"),
this.LA);this.events.T(this.Ta,"presentingplayerstatechange",this.Nh);this.events.T(this.Ta,"resize",this.pV);this.template.Ea(kg(a));this.events.T(this.Ta,"offlineslatestatechange",this.LU);this.QG=gHa(this,this.template.element);g.J(this,this.QG);this.X.Tj&&(this.N("woffle_orchestration")||this.N("web_player_orchestration")||this.N("wo_job_sampling_with_lock_api")?(a=Jza()?new Cza(this.X,this.Ta):void 0,this.Kk=a):Lza());this.X.zb&&g.YM("ux",g.CQ);SX(this).isValid()&&(g.Tz()&&SX(this).ya.push("remote"),
TX(this),!this.X.N("html5_delay_initial_loading")&&UX(this)&&(this.X.Zg||this.X.qd)&&kS(this.sb));this.Pb.tick("fs");hHa(this);this.Oc=null;this.X.zb&&Lua(this.Vc);g.iF(this.Vc.I.V())&&iN(this.Vc,"music");g.YE(this.Vc.I.V())&&iN(this.Vc,"embed");this.N("web_player_sentinel_is_uniplayer")||g.Bz(new g.$v("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");c=g.vs("web_player_sentinel_yt_experiments_sync");a!==c&&g.Bz(new g.$v("b/195699950",
{yt:a,player:c}));this.nO=iHa(this);if(a=g.sE(this.X.experiments,"html5_block_pip_safari_delay"))this.tD=new g.M(this.eJ,a,this),g.J(this,this.tD);this.X.N("embeds_enable_pem_cookie_blocking_killswitch")||(Ht=this.X.Sa);a=g.sE(this.X.experiments,"html5_performance_impact_profiling_timer_ms");0<a&&(this.RM=new g.rh(a),g.J(this,this.RM),this.events.T(this.RM,"tick",function(){d.SM&&jHa.fn(d.SM);d.SM=jHa.Co("apit")}));
this.oa()};
iHa=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.tb||a.sb).Xb.Rd("player.exception",g.LD({n:c.name,m:c.message}))}
Dz.subscribe("handleError",b);ys.push(b);return function(){Dz.unsubscribe("handleError",b);var c=ys.indexOf(b);-1!==c&&ys.splice(c,1)}};
eHa=function(a){var b=new pG(a.X,a.config.args);b=a.Gl(1,b);b.setPlaybackRate(a.X.u?1:kHa(a,Number(g.Rz("yt-player-playback-rate"))||1));ny(b,a.CC,a);return b};
lHa=function(a,b){if(a.sb!==b){a.N("html5_skip_setPresenting")&&(b.getVideoData().autonavState=a.sb.getVideoData().autonavState);oy(a.sb,a.CC,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);ny(b,a.CC,a);TX(a)}};
dHa=function(a){var b="",c=NAa(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.Bz(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new fN(a.Ta,b);mHa(a,b);return b};
mHa=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
nHa=function(a,b){var c=a.isVideoInfoVisible();a.Ui||(a.Ui=new cU(a.Ta),g.J(a,a.Ui),g.MM(a.Ta,a.Ui.element,4));g.QK(a.Ui,b);WX(a)&&c!==b&&IM(a.Vc).uG();a=a.tb;b&&a&&a.Ba("sfn","1",!0)};
XX=function(a){a.ra=a.X.deviceHasDisplay?oS.pop()||new g.qN(g.zg("VIDEO")):new g.qN(g.zg("AUDIO"));g.J(a,a.ra);a.tb&&a.tb.setMediaElement(a.ra);try{a.X.xb?(a.Ht&&a.events.jc(a.Ht),a.Ht=a.events.T(a.ra,"volumechange",a.DU)):(a.ra.Xs(a.eg.muted),a.ra.setVolume(a.eg.volume/100))}catch(d){a.Ke("html5.missingapi","UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")));return}g.my(a.On);oHa(a);var b=a.template;b.Jb=a.ra.Le();b.mz=!1;b.Jb.parentNode||g.Cg(b.Tu,b.Jb,0);b.uA=
new g.Cl(0,0,0,0);RAa(b);VT(b);g.N(b.Jb,"video-stream");g.N(b.Jb,g.TT.MAIN_VIDEO);var c=b.app.V();c.Kg&&b.Jb.setAttribute("data-no-fullscreen","true");c.Pi&&(b.Jb.setAttribute("webkit-playsinline",""),b.Jb.setAttribute("playsinline",""));c.ul&&b.Jb&&b.T(b.Jb,"click",b.Jb.play,b.Jb);try{a.ra.vr()}catch(d){a.Ke("html5.missingapi","UNSUPPORTED_DEVICE","activate.1;emsg."+(d.message&&d.message.replace(/[;:,]/g,"_")))}};
$X=function(a,b){if(a.tb!==b){a.oa("start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);var c=null;a.tb&&(c=a.tb.getPlayerState(),a.oa(),jN(a.Vc,3),YX(a,"cuerangesremoved",a.tb.vn()),a.Ft&&!b.isGapless()&&a.tb.isGapless()&&a.ra&&a.ra.stopVideo(),pHa(a));1===b.getPlayerType()&&lHa(a,b);qHa(a,b);a.tb=b;a.ra&&b.setMediaElement(a.ra);ny(b,a.XM,a);if(b.xz())ZX(a,"setPresenting",!1,!0);else{a.onVideoDataChange("newdata",b,b.getVideoData());c&&!g.ZJ(c,b.getPlayerState())&&
a.OM(new g.cI(b.getPlayerState(),c));if(b.jm.isFinished())a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&a.Ta.Oa("onPlaybackQualityChange",c.quality);YX(a,"cuerangesadded",a.tb.vn());c=b.getPlayerState();g.T(c,2)?rHa(a):g.T(c,8)&&b.playVideo();a.oa()}}};
rHa=function(a){if(!sHa(a)){var b=a.sb.jd();b&&(b=b.tv(),b instanceof Promise&&b.catch(function(){}));
aY(a,cK(a.vb()))}};
oHa=function(a){var b=a.ra;BD()?a.On.T(b,"webkitpresentationmodechanged",a.yV):AD()&&(a.On.T(b,"enterpictureinpicture",function(){a.Ys(!0)}),a.On.T(b,"leavepictureinpicture",function(){a.Ys(!1)}));
eF&&(a.On.T(b,"webkitbeginfullscreen",function(){a.Ii(3)}),a.On.T(b,"webkitendfullscreen",function(){a.Ii(0)}))};
qHa=function(a,b){var c,d=b.getPlayerType();b!==a.sb&&b!==a.yx[d]&&(null===(c=a.yx[d])||void 0===c?void 0:c.dispose(),a.yx[d]=b)};
bY=function(a,b){a.oa("release presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId);b!==a.sb?$X(a,a.sb):a.N("html5_skip_setPresenting")||pHa(a)};
pHa=function(a){a.oa();var b;if(b=a.Xc)b=a.ra,b=!!b&&b===a.Xc.ra;b&&(a.Cg(),XX(a));a.tb&&(a.tb.Cg(),oy(a.tb,a.XM,a),a.N("html5_skip_setPresenting")&&1!==a.tb.getPlayerType()&&a.tb.dispose());a.tb=null;a.oa()};
g.OM=function(a,b){var c;return b?1===b?a.sb:a.getVideoData().enableServerStitchedDai&&2===b?a.tb:a.N("html5_skip_setPresenting")&&b===(null===(c=a.tb)||void 0===c?void 0:c.getPlayerType())?a.tb:a.yx[b]||null:a.tb};
cY=function(a,b){return a.Pd(b)?a.sb:b};
dY=function(a,b){var c=a.tb;return c&&b===a.sb&&a.Pd(b)&&a.Pd(c)?c:b};
tHa=function(a){a.oa();var b=a.getVideoData(),c=10<b.lengthSeconds,d=a.Vc;d.xJ();iN(d,"attribution",!1,!0);iN(d,"embed");iN(d,"inline_preview");iN(d,"kids");iN(d,"remote");iN(d,"miniplayer");iN(d,"music");iN(d,"captions",!0);iN(d,"unplugged");iN(d,"ypc",!1,!0);iN(d,"ypc_clickwrap",!1,!0);iN(d,"yto",!1,!0);iN(d,"webgl",!1,!0);d.B&&c?d.I.Ld("endscreen"):iN(d,"endscreen");d.B&&c?(d.I.Ld("annotations_module"),d.I.Ld("creatorendscreen")):(d.bD(),iN(d,"creatorendscreen",!0));d.yJ();Kua(d);c&&VG(b)?a.IE.T(a.Ta,
"presentingplayerstatechange",a.UU):Jua(a.Vc);a.Ta.ea("videoready",b)};
SX=function(a){return a.sb.getVideoData()};
UX=function(a){a=SX(a);a.isValid();return VG(a)};
hHa=function(a){a.oa();a.eD();var b=a.config.args;XX(a);var c=SX(a);a.Ta.Oa("onVolumeChange",a.eg);if(b&&SM(b)){var d=uF(a.X);d&&!a.pg&&(b.fetch=0);var e=g.YE(a.X);e&&!a.pg&&(b.fetch=0);eY(a,b);g.YE(a.X)&&a.Pb.tick("ep_pr_s");if(d&&!a.pg)fY(a);else if(e&&!a.pg)gY(a);else if(!c.isValid())a.playlist.onReady(function(){hY(a)})}$X(a,a.sb);
g.T(a.sb.getPlayerState(),128)||(b=Ela(a.X.deviceHasDisplay),"fmt.noneavailable"===b?a.Ke("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Ke(b,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.isValid()&&UX(a)&&(a.X.Zg||a.X.qd)?iY(a):g.Rz("yt-player-playback-on-reload")?(g.Vv("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.Y}),sma(!1),iY(a)):EF(a.X)||uHa(a),g.wF(a.X)||"MWEB"===a.X.deviceParams.c?(Ku(Nu(),function(){jY(a)}),Ku(Nu(),function(){Fta()})):
(jY(a),Fta()),a.oa())};
jY=function(a){var b=a.getVideoData().botguardData;if(b){var c=a.getVideoData().Aa||"";g.Pta(b,a.X.cspNonce,c?"c1b"in g.Fs(c):!1)}};
uHa=function(a){a.oa();a.Ta.ea("initializingmode");a.Uk(2);iN(a.Vc,"remote");a.X.N("player_cued_miniplayer_module_killswitch")||iN(a.Vc,"miniplayer");a.oa()};
iY=function(a){a.oa();if(g.T(a.sb.getPlayerState(),128))return!1;UX(a)&&a.X.qd&&(oS.length&&a.mw?(AM(a,{muted:!1,volume:a.eg.volume},!1),kY(a,!1)):oS.length||a.eg.muted||(AM(a,{muted:!0,volume:a.eg.volume},!1),kY(a,!0)));var b=a.sb.getVideoData();b.gL&&AM(a,{muted:!0,volume:a.eg.volume},!1);lY(a,1,b,!1);a.Ta.ea("initializingmode");$X(a,a.sb);a.Uk(3);if(!(b=!a.X.Wi)){if(b=a.Xc)b=a.ra,b=!!b&&b===a.Xc.ra;b=b&&a.NK}b&&(a.Cg(),XX(a),a.sb.setMediaElement(a.ra));HX(a.sb);if(g.T(a.sb.getPlayerState(),128))return!1;
aY(a,3);return a.NK=!0};
WX=function(a){a=IM(a.Vc);return!!a&&a.loaded};
vHa=function(a,b){if(!a.Rb)return!1;var c=.001*a.Rb.startTimeMs-1;a=.001*a.Rb.endTimeMs;return Tf(b,c)||Tf(b,a)||b>=c&&b<=a};
wHa=function(a){g.T(a.sb.getPlayerState(),64)&&SX(a).isLivePlayback&&5E3>a.Rb.startTimeMs||a.sb.seekTo(.001*a.Rb.startTimeMs,{Sd:"application_loopRangeStart"})};
kHa=function(a,b){var c=a.Ta.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.Pd(c)){c=c.getVideoData();if(a.Oc)c=b;else{a=a.Dd;for(var d=g.r(a.i),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.r(a.i);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.pd/1E3;else break}c=d}return c}return b};
xHa=function(a,b){var c;return 3===a.getPresentingPlayerType()?cK(IM(a.Vc).ud):a.getVideoData().enableServerStitchedDai&&2===b?(null===(c=a.Oc)||void 0===c?0:c.isAdPlaying(a.getCurrentTime()))?a.Fy:-1:2!==b||a.Pd()?a.Fy:a.qD};
yHa=function(a){if(g.mF(a.X))return!1;var b=g.KM(a.ub()),c="none"===a.ra.getStyle("display")||0===Yf(a.ra.dr()),d=WT(a.template),e=a.tb.getVideoData(),f=g.gF(a.X)||g.iF(a.X);e=e.Kn();a=!d||b||f||e||a.X.Mb;return c&&!a};
TX=function(a){a.oa();nY(a);a.setLoopVideo(!1);a.setLoopRange(null);a.zC={};a.wA={};a.Vs=[];var b=a.Pb;if(b.i){var c=b.i;c.i={};c.Uu={}}b.u=!1;a.Oc?(b=a.Oc,a=a.sb,a.getPlayerType(),b.oa(),OS(b,!1),QS(b),b.Ca=a):(b=a.Dd,a=a.sb,1!==a.getPlayerType()&&b.Zd("e.invalidParentVideoPlayerType"),b.oa(),aT(b,!1),cT(b),b.u=a)};
fY=function(a){var b=zHa();if(b)if(!b.list)a.Br();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ta.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.TM(a.playlist).videoId||(b.index=a.playlist.index));VM(a.playlist,b);a.Ow&&oY(a,a.Ow)}else a.Ow=null};
gY=function(a,b){var c=(b?b:SX(a)).nN;a.Pb.tick("ep_pr_r");if(null!=c&&(VM(a.playlist,c),a.dG))a.playlist.onReady(function(){hY(a,b)})};
eY=function(a,b){a.playlist&&(a.playlist.unsubscribe("error",a.Br,a),g.oe(a.playlist),a.playlist=null);b&&(a.pg&&(b.fetch=0),a.playlist=new RM(a.X,b),a.playlist.subscribe("error",a.Br,a))};
pY=function(a,b,c,d){b in a.zC||(c=new g.nA(c,d,{id:b,priority:2,namespace:"appad"}),a.sb.addCueRange(c),a.zC[b]=c)};
DHa=function(a,b){if(!(b in a))return!1;a=a[b];Array.isArray(a)||(a=[a]);a.forEach(function(c){var d=void 0===d?!1:d;if(!(d=gA(hA(c,AHa,null),c,d,"Active View 3rd Party Integration URL"))){var e=void 0===e?!1:e;d=gA(hA(c,BHa,null),c,e,"Google/YouTube Brand Lift URL")}if(!(e=d)){var f=void 0===f?!1:f;e=gA(hA(c,CHa,null),c,f,"Nielsen OCR URL")}g.Xu(c,void 0,e)});
return!0};
aY=function(a,b){a.oa();if(a.tb){var c=a.tb.getPlayerType();if(2===c&&!a.Pd()){a.qD!==b&&(a.qD=b,a.Ta.Oa("onAdStateChange",b));return}if(2===c&&a.Pd()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}a.Fy!==b&&(a.Fy=b,a.Ta.Oa("onStateChange",b))};
lY=function(a,b,c,d){if(!f){var e=b+"_"+c.videoId+"_"+c.Dc;var f=a.Jw.get(e);if(!f)return null;a.Jw.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null}if(f===g.OM(a,b))return f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||a.Ru(f);return f};
qY=function(a,b,c){c=g.OM(a,c);b&&c===a.sb&&(c.getVideoData().gf=!0)};
rY=function(a,b,c){c=void 0===c?1:c;a.oa();if(b.isValid()){var d=a.Gl(c,b);a.cancelPlayback(4,c);$X(a,d);2===c&&a.sb.Qs(b.clientPlaybackNonce,b.uc||"",b.breakType||0,b.xe);1===c&&(a.Uk(1),uHa(a));a.oa()}else a.oa(),b.dispose(),g.oe(g.OM(a,c))};
EHa=function(a,b,c,d,e){b=$ta(b,c,d,e);(c=g.YE(a.X)&&!a.X.S)&&!a.pg&&(b.fetch=0);eY(a,b);g.YE(a.X)&&a.Pb.tick("ep_a_pr_s");if(c&&!a.pg)c=SX(a),xua(c,b).then(function(f){a.dG=!0;gY(a,f)});
else a.playlist.onReady(function(){hY(a)});
g.YE(a.X)&&a.Pb.tick("ep_a_pr_r")};
hY=function(a,b){var c=g.YE(a.X)&&!a.X.S,d=c&&b?b:g.TM(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Ok&&(a.X.Zg||a.X.qd)||!a.Sp?(b=b.gf,d=a.Mn(d,1),b&&qY(a,d)):rY(a,d,1));g.YE(a.X)&&a.Pb.tick("ep_p_l");a.dG=!1;a.Ta.Oa("onPlaylistUpdate")};
sHa=function(a){if(a.playlist&&g.dF(a.X)&&a.yv()){var b=a.X.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
oY=function(a,b){var c=g.Ga(b);c?((b=zHa())&&b.list&&c(),a.Ow=null):a.Ow=b};
zHa=function(){var a=g.Ga("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=mA.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=mA.AD_MARKER:(b.style=mA.TIME_MARKER,b.color=e),b.visible=!0);a.Hu([new g.nA(1E3*c,1E3*d,b)],1);return!0};
FHa=function(a,b,c,d,e){e=void 0===e?!0:e;var f=a.getIngestionTime();if(!f)return e&&a.getVideoData().isLivePlayback&&a.Vs.push({id:b,HX:c,GX:d}),!1;e=f-a.getCurrentTime();return sY(a,b,c-e,d-e)};
GHa=function(a,b){a.Vs=g.Do(a.Vs,function(f){return f.id!==b});
for(var c=a.sb.vn(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.sb.removeCueRange(e),YX(a,"cuerangesremoved",[e]),!0}return!1};
HHa=function(a){var b=(0,g.Q)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
AM=function(a,b,c){a.X.ma&&(a.eg=b,b.muted||kY(a,!1),c&&a.X.storeUserVolume&&!a.X.xb&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Qz("yt-player-volume",c),g.Qz("yt-player-volume",c,2592E3))),IHa(a),c=g.Si&&a.ra&&!a.ra.Cf(),a.X.xb&&!c||a.Ta.Oa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
IHa=function(a){var b=a.getVideoData();if(!b.Kg){b=a.X.xb?1:gpa(b);var c=a.ra;c.Xs(a.eg.muted);try{c.setVolume(a.eg.volume*b/100)}catch(d){g.Bz(new g.$v("b183742307","multiplier: "+b+", volume: "+a.eg.volume))}}};
kY=function(a,b){b!==a.mw&&(a.mw=b,a.Ta.Oa("onMutedAutoplayChange",b))};
tY=function(a){var b=gy(!0);return b&&(b===a.template.element||a.ra&&b===a.ra.Le())?b:null};
KHa=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.N("lock_fullscreen2")||a.X.D)&&c&&c.lock&&(!g.Si||!JHa))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.Gw||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](g.Ha);a.Gw=!0}}else a.Gw&&(a.Gw=!1,c.unlock())};
YX=function(a,b,c){a.Ta.ea(b,c);var d=g.mF(a.X)||g.fF(a.X)||g.gF(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ta.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 h=g.OM(a,e);if(!h||(2!==h.getPlayerType()||a.Pd(h)||f)&&!g.LG(h.getVideoData()))3===a.getPresentingPlayerType()?IM(a.Vc).Lk("control_seek",b,c):(h===a.sb&&a.Rb&&!vHa(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
ZX=function(a,b,c,d){c&&(a.Cg(),XX(a));c=g.OM(a);c.Rd(new g.MD("staleconfig",!1,{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;a.N("propagate_aqi_on_player_reload")&&e.adQueryId&&(f.ad_query_id=e.adQueryId);e.isLivePlayback?DG(e)&&g.yF(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.jb&&(f.vss_credentials_token=e.jb,f.vss_credentials_token_type=e.Wh);e.oauthToken&&(f.oauth_token=e.oauthToken);
e.Ug&&(f.force_gvi=e.Ug);f.autoplay=1;f.reload_count=e.Eb+1;f.reload_reason=b;e.wu&&(f.unplugged_partner_opt_out=e.wu);e.Sc&&(f.ypc_is_premiere_trailer=e.Sc);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,d)};
LHa=function(a,b){SX(a).autonavState=b;g.Qz("yt-player-autonavstate",b);a.Ta.ea("autonavchange",b)};
MHa=function(a){var b=a.getVideoData().Kg,c=a.X.Mb,d=a.ra;b||c?d.gD():(d.iD(),AM(a,a.eg))};
gHa=function(a,b){return a.X.N("html5_enable_embedded_player_visibility_signals")&&g.YE(a.X)?new ST(b,a.X.N("embeds_enable_intersection_observer_v2")):null};
nY=function(a){var b=kN(a.ub());b&&b.created&&(a.oa(),b.destroy())};
NHa=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.r(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Nl(a,d);b.hidden=!!a.hidden};
fHa=function(a){var b=a.X,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.N("embeds_enable_request_storage_access_safari_itp")&&g.Ui&&d&&b.u?au()||b.Sa?(g.Vv("embedsStorageAccessNotChecked",{isIosWebview:au(),isPemPlayer:b.Sa}),a.fx=!1):c.hasStorageAccess().then(function(e){g.Vv("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.fx=!e},function(e){g.Vv("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.Bz(Error("Embeds ITP Error: "+e));a.fx=!1}):a.fx=!1};
vY=function(a,b){var c=void 0;g.mF(a.X)&&Ns(b)&&Ms(b)&&(a=a.getVideoData().mf())&&(c={Authorization:"Bearer "+a});g.Xu(b,void 0,void 0,c)};
wY=function(a,b){b.forEach(function(c){vY(a,c)})};
NAa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
OHa=function(a){var b;a=null===(b=BM(a.ub()))||void 0===b?void 0:b.zv();if(!(a instanceof g.MN))return null;a=a.oK();return(null===a||void 0===a?void 0:a.S)||null};
xY=function(a){this.controller=a};
yY=function(a){this.ZC=a};
zY=function(a,b,c){this.ZC=a;this.eh=b;this.Ai=c};
PHa=function(a,b,c){var d=a.ZC();switch(b.type){case "SKIP":dsa(d,a.eh,a.Ai,c)}};
AY=function(){};
BY=function(){};
CY=function(){};
DY=function(a,b){this.Yo=a;this.Va=b};
EY=function(a){this.I=a};
FY=function(a,b){this.Ph=a;this.Va=b};
RHa=function(a){g.I.call(this);this.i=a;this.KP=QHa(this)};
QHa=function(a){var b=new FK(a.i.Ic);g.J(a,b);a=g.r([new xY(a.i.PQ),new DY(a.i.Yo,a.i.Va),new EY(a.i.I),new FY(a.i.Ph,a.i.Va),new zY(a.i.eT,a.i.eh,a.i.Ai),new yY(a.i.eR),new BY,new CY,new AY]);for(var c=a.next();!c.done;c=a.next())c=c.value,Wra(b,c),Xra(b,c);a=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())DK(b,c.value,function(){});
return b};
GY=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.r(b);for(c=b.next();!c.done;c=b.next())if(!bA(a.Ia,c.value))return!1;return!0};
SHa=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}};
HY=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.i=b};
bA=function(a,b){return a.i.has(b)};
X=function(a,b){a=a.i.get(b);if(void 0!==a)return a.get()};
IY=function(a){return Array.from(a.i.keys())};
UHa=function(a){var b;return(null===(b=THa.get(a))||void 0===b?void 0:b.kt)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
KY=function(a,b){var c={type:b.rb,controlFlowManagerLayer:VHa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Ub&&(c.entryTriggerType=b.Ub.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.Ub)c.debugData.slotEntryTriggerData=JY(a);a=b.qc;c.debugData.fulfillmentTriggerData=[];a=g.r(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(JY(d.value));b=b.pc;c.debugData.expirationTriggerData=
[];b=g.r(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(JY(a.value))}return c};
WHa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:VHa.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
JY=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.Ig&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.Ig);null!=a.Ee&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.Ee);return c};
XHa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.lm(d||[],function(e){return KY(a,e)}),b.debugData=Object.assign(Object.assign({},c&&0<c.length?{associatedSlotId:c}:{}),0<d.length?{slots:d}:{}));
return b};
MY=function(a,b){return function(c){return YHa(LY(a),b.slotId,b.rb,b.slotPhysicalPosition,b.gb,b.Ub,b.qc,b.pc,c.layoutId,c.layoutType,c.gb)}};
YHa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:KY(a,{slotId:b,rb:c,slotPhysicalPosition:d,gb:e,Ub:f,qc:h,pc:l,Ia:new HY([])}),layoutData:WHa(a,{layoutId:m,layoutType:n,gb:p,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],tc:new Map,Ia:new HY([]),Ec:{}})}}};
NY=function(a){this.Na=a;this.i=.1>Math.random()};
LY=function(a){var b;(b=a.i)||(a=a.Na.get(),b=a.I.V().N("html5_force_debug_data_for_client_tmp_logs")||a.I.V().N("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b};
OY=function(a,b,c,d){g.I.call(this);this.Od=b;this.dc=c;this.Na=d;this.i=a(this,this,this,this,this);g.J(this,this.i);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)};
PY=function(a,b){a.Od.add(b);a.Na.get().I.V().N("html5_not_register_disposables_when_core_listens")||g.J(a,b)};
rqa=function(a,b){FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.Oh(b)};
sqa=function(a,b){FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.xf(b)};
Ppa=function(a,b){FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Od);for(var c=a.next();!c.done;c=a.next())c.value.yf(b)};
RY=function(a,b,c){S(c,b,void 0,void 0,c.Zo);QY(a,b,!0)};
$Ha=function(a,b,c){if(SY(a.i,b))if(TY(a.i,b).C=c?"filled":"not_filled",null===c){UY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Od);for(var d=c.next();!d.done;d=c.next())d.value.Mk(b);QY(a,b,!1)}else{UY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.r(a.Od);for(d=e.next();!d.done;d=e.next())d.value.Nk(b);if(SY(a.i,b))if(TY(a.i,b).D)QY(a,b,!1);else{UY(a.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!TY(f,b))throw new VY("Unknown slotState for onLayout");
if(!f.Kd.Zl.get(b.rb))throw new VY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.rb);if(g.wb(c.wd)&&g.wb(c.Qc)&&g.wb(c.Pc)&&g.wb(c.Rc)&&g.wb(c.Uc))throw new VY("Layout has no exit triggers.");WY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);WY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);WY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);WY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);WY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Uc)}catch(n){a.wf(b,
c,n);QY(a,b,!0);return}TY(a.i,b).J=!0;try{var h=a.i,l=TY(h,b),m=h.Kd.Zl.get(b.rb).get().Ne(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new VY("Already had LayoutRenderingAdapter registered for slot");l.B=m;XY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);XY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Qc);XY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Pc);XY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Rc);XY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Uc)}catch(n){YY(a,
b,!0);QY(a,b,!0);a.wf(b,c,n);return}UY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.r(a.Od);for(d=e.next();!d.done;d=e.next())d.value.Aj(b,c);YY(a,b,!1);ZHa(a,b)}else ZY(a.Na.get())&&S("slot is unscheduled after been fulfilled.",b,c)}};
$Y=function(a,b,c){UY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Od);for(var d=a.next();!d.done;d=a.next())d.value.Aj(b,c)};
tqa=function(a,b,c){a=g.r(a.Od);for(var d=a.next();!d.done;d=a.next())d.value.Bj(b,c)};
aZ=function(a,b,c){UY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Od);for(var d=a.next();!d.done;d=a.next())d.value.Kc(b,c)};
EJ=function(a,b,c,d){UY(a.dc,UHa(d),b,c);a=g.r(a.Od);for(var e=a.next();!e.done;e=a.next())e.value.Wc(b,c,d)};
YY=function(a,b,c){SY(a.i,b)&&(TY(a.i,b).J=!1,c?a.Na.get().I.V().N("html5_enable_deferred_triggers_on_error")?bZ(a,aIa(a.i,b)):ZY(a.Na.get())&&S("Ignore deferred triggers due to error",b):bZ(a,aIa(a.i,b)))};
bZ=function(a,b){b.sort(function(f,h){function l(m){S("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):SHa(f.category,l)-SHa(h.category,l)});
var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,SY(a.i,d.slot))if(TY(a.i,d.slot).J)TY(a.i,d.slot).S.push(d);else{bIa(a.dc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(cIa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&dIa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&eIa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&fIa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
gIa(a,c)};
dIa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&cZ(a.i,d.slot)&&hIa(a,d.slot,d.layout,c)};
eIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())QY(a,c.value.slot,!1)};
fIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(TY(a.i,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.vv(c.slot))}};
gIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Od),e=d.next();!e.done;e=d.next())e.value.Dj(c.slot);try{var f=a.i,h=c.slot,l=TY(f,h);if(!l)throw new dZ("Got enter request for unknown slot");if(!l.u)throw new dZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new dZ("Tried to enter a slot from stage: "+l.i);if(eZ(l))throw new dZ("Got enter request for already active slot");
for(var m=g.r(fZ(f,h.rb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&eZ(p))throw new dZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(q){S(q,c.slot,gZ(a.i,c.slot),void 0,q.Zo);QY(a,c.slot,!0);continue}c=TY(a.i,c.slot);"scheduled"!==c.i&&hZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.u.Dy()}};
ZHa=function(a,b){var c;SY(a.i,b)&&eZ(TY(a.i,b))&&gZ(a.i,b)&&!cZ(a.i,b)&&(UY(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=gZ(a.i,b))&&void 0!==c?c:void 0),a=TY(a.i,b),"entered"!==a.i&&hZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.B.startRendering(a.layout))};
hIa=function(a,b,c,d){if(SY(a.i,b)){var e=a.dc,f;var h=(null===(f=THa.get(d))||void 0===f?void 0:f.Ts)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";UY(e,h,b,c);a=TY(a.i,b);"rendering"!==a.i&&hZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.B.df(c,d)}};
QY=function(a,b,c){if(SY(a.i,b)){a:switch(TY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(TY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(TY(a.i,b).D=!0,!c))return;if(eZ(TY(a.i,b)))TY(a.i,b).D=!0,iIa(a,b,c);else{a:switch(TY(a.i,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)TY(a.i,b).D=!0,SY(a.i,b)&&(FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=TY(a.i,b),b.C="fill_cancel_requested",b.K.MC());else{c=
gZ(a.i,b);FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=TY(a.i,b);var e=b.Ub,f=d.ya.get(e.triggerId);f&&(f.Qi(e),d.ya.delete(e.triggerId));e=g.r(b.qc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Y.get(f.triggerId);h&&(h.Qi(f),d.Y.delete(f.triggerId))}e=g.r(b.pc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.Z.get(f.triggerId))h.Qi(f),d.Z.delete(f.triggerId);null!=d.layout&&(e=d.layout,iZ(d,e.wd),iZ(d,e.Qc),iZ(d,e.Pc),iZ(d,e.Rc),iZ(d,e.Uc));d.K=void 0;null!=d.u&&(d.u.release(),
d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.i;TY(d,b)&&(d=fZ(d,b.rb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Od);for(d=a.next();!d.done;d=a.next())d=d.value,d.Ej(b),c&&d.Bj(b,c)}}}};
iIa=function(a,b,c){if(SY(a.i,b)&&eZ(TY(a.i,b))){var d=gZ(a.i,b);if(d&&cZ(a.i,b))hIa(a,b,d,c?"error":"abandoned");else{FJ(a.dc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=TY(a.i,b);if(!e)throw new dZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&hZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.u)throw e.i="scheduled",new dZ("Cannot exit slot because adapter is not defined");e.u.Ey()}catch(f){S(f,b,void 0,void 0,f.Zo)}}}};
jIa=function(a){this.slot=a;this.ya=new Map;this.Y=new Map;this.Z=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.S=[];this.i="not_scheduled";this.C="not_filled"};
eZ=function(a){return"enter_requested"===a.i||a.isActive()};
VY=function(a,b,c){c=void 0===c?!1:c;Ta.call(this,a);this.Zo=c;this.args=[];b&&this.args.push(b)};
dZ=function(a,b,c){c=void 0===c?!1:c;Ta.call(this,a);this.Zo=c;this.args=[];b&&this.args.push(b)};
jZ=function(a,b,c,d,e,f){g.I.call(this);this.Kd=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Na=f;this.i=new Map};
fZ=function(a,b){return(a=a.i.get(b))?a:new Map};
TY=function(a,b){return fZ(a,b.rb+"_"+b.slotPhysicalPosition).get(b.slotId)};
kIa=function(a){var b=[];a.i.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
SY=function(a,b){return null!=TY(a,b)};
aIa=function(a,b){a=TY(a,b);b=[].concat(g.v(a.S));xb(a.S);return b};
cZ=function(a,b){a=TY(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};
gZ=function(a,b){if(!kZ(a.Na.get()))return b=TY(a,b),null!=b.layout?b.layout:null;(a=TY(a,b))?null!=a.layout&&!a.layout&&S("Unexpected empty layout",b):S("Unexpected undefined slotState",b);return(null===a||void 0===a?void 0:a.layout)||null};
lZ=function(a,b,c){if(g.wb(c))throw new dZ("No "+lIa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Kd.Uh.get(d.triggerType))throw new dZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
WY=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Kd.Uh.get(d.triggerType))throw new VY("No trigger adapter registered for "+lIa.get(b)+" trigger of type: "+d.triggerType);};
XY=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Kd.Uh.get(e.triggerType);f.Gi(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}};
iZ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ma.get(c.triggerId);d&&(d.Qi(c),a.ma.delete(c.triggerId))}};
hZ=function(a,b,c){S("Slot stage was "+b+" when calling method "+c,a)};
mIa=function(a){return mZ(a.jq).concat(mZ(a.Uh)).concat(mZ(a.Ll)).concat(mZ(a.ym)).concat(mZ(a.Zl))};
mZ=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.nj&&b.push(c);return b};
nZ=function(a){g.I.call(this);this.i=a;this.u=nIa(this)};
nIa=function(a){var b=new OY(function(c,d,e,f){return new jZ(a.i.Kd,c,d,e,f,a.i.Na)},new Set(mIa(a.i.Kd).concat(a.i.listeners)),a.i.dc,a.i.Na);
g.J(a,b);return b};
oZ=function(a){g.I.call(this);var b=this;this.u=a;this.i=null;g.qe(this,function(){g.oe(b.i);b.i=null})};
Y=function(a){return new oZ(a)};
oIa=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
pIa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
sIa=function(a,b,c,d,e,f,h){b=qIa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof dZ?b:rIa(a,d,e,b,c);return a instanceof dZ?a:[a]};
tIa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)};
xIa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,pZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return uIa(n)});
a=[];b={};f=g.r(f);for(var h=f.next();!h.done;b={Oq:b.Oq},h=f.next()){b.Oq=h.value;h={};for(var l=g.r(b.Oq.wC),m=l.next();!m.done;h={Dm:h.Dm},m=l.next())h.Dm=m.value,m=function(n,p){return function(q){return n.Dm.zJ(q,p.Oq.instreamVideoAdRenderer.elementId,n.Dm.MI)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Dm.wr?a.push(vIa(c,d,h.Dm.NI,e,b.Oq.instreamVideoAdRenderer.elementId,h.Dm.adSlotLoggingData,m)):a.push(wIa(c,d,e,b.Oq.instreamVideoAdRenderer.elementId,h.Dm.adSlotLoggingData,m))}return a};
pZ=function(a,b,c){if(b=yIa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=zIa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.pz=c)}else S("InstreamVideoAdRenderer without externalVideoId")}};
yIa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.r(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
uIa=function(a){if(void 0===a.instreamVideoAdRenderer)return S("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.wC),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.zJ)return!1;if(void 0===c.MI)return S("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.pz||void 0===c.wr||a.pz!==c.wr&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.wr)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return S("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.pz,"matching APSR kind":c.wr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.wr&&void 0===c.NI)return S("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
zIa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,pz:void 0,adVideoId:b,wC:[]});return a.get(b)};
qZ=function(a,b,c,d,e,f,h){d?zIa(a,d).wC.push({NI:b,wr:c,MI:e,adSlotLoggingData:f,zJ:h}):S("Companion AdPlacementSupportedRenderer without adVideoId")};
rZ=function(a){var b,c=0;a=g.r(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c};
sZ=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G,E,K,V,L=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon),W=[].concat(g.v((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.v((null===L||void 0===L?void 0:L.timeoutCommands)||
[]));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(q=a.playbackCommands)||void 0===q?void 0:q.rewindCommands,resumeCommands:null===
(t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,jaa:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(A=a.playbackCommands)||void 0===A?void 0:A.fullscreenCommands,activeViewViewableCommands:null===(F=a.playbackCommands)||void 0===F?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:null===
(G=a.playbackCommands)||void 0===G?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(E=a.playbackCommands)||void 0===E?void 0:E.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(K=a.playbackCommands)||void 0===K?void 0:K.endFullscreenCommands,abandonCommands:null===(V=a.playbackCommands)||void 0===V?void 0:V.abandonCommands,completeCommands:W}};
BIa=function(a,b,c,d,e,f,h){return function(l,m){return AIa(a,m.slotId,l,f,function(n,p){n=h(n);return tZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new MI(c),d],c.adLayoutLoggingData)})}};
EIa=function(a,b,c,d,e,f,h){if(!CIa(a))return new dZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[DIa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=uZ(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},q=new vZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",tc:new Map,wd:[q],Qc:[],
Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new NI(l)]),Ec:n(p)}})]};
CIa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
HIa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!dqa(a))return function(){return new dZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=rZ(h);return 0>=l?function(){return new dZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=FIa(m,c,d,function(q){var t=n(q),u=q.slotId;
q=sZ(h);u=uZ(e.u.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new vZ(e.i,d),A=new wZ(e.i,u),F=new xZ(e.i,u),G=new GIa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",tc:new Map,wd:[y,G],Qc:[A],Pc:[],Rc:[F],Uc:[],gb:"core",Ia:new HY([new LI(h),new CI(b),new kJ(l/1E3),new nJ(q)]),Ec:t(x),adLayoutLoggingData:h.adLayoutLoggingData}});
m=EIa(a,c,p.slotId,d,e,m,n);return m instanceof dZ?m:[p].concat(g.v(m))}};
PIa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=IIa(u.slotId,c,b,e(u),d);h=u.hX;return u.nR};
else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y,A=c.config.adPlacementConfig,F=JIa(A),G=F.OJ;F=F.RJ;var E=c.renderer.instreamVideoAdRenderer;if(null===(y=null===E||void 0===E?void 0:E.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var K=KIa(E);y=Math.min(G+1E3*K.videoLengthSeconds,F);F=new BH(0,[K.videoLengthSeconds],y);var V=K.videoLengthSeconds,L=K.playerVars,W=K.instreamAdPlayerOverlayRenderer,
oa=K.adVideoId,wa=LIa(c);K=new Map([].concat(g.v(K.tc),g.v(spa(c))));var vb=null===E||void 0===E?void 0:E.adLayoutLoggingData;E=null===E||void 0===E?void 0:E.sodarExtensionData;x=uZ(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var ob={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,wd:[new yZ(b.i)],Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new GI(d),new XI(V),new YI(L),new $I(G),new aJ(y),W&&new HI(W),new CI(A),new EI(oa),new DI(F),new fJ(wa),E&&new ZI(E),
new TI({current:null})].filter(MIa)),Ec:u(ob),adLayoutLoggingData:vb}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=NIa(a,d,l);f.push(m);for(var n=g.r(h),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof dZ)return t;f.push.apply(f,g.v(t))}}catch(u){return new dZ(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:OIa(c)})}return f};
OIa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!==a&&void 0!==a&&a.length?a.filter(function(b){var c,d;return null!=(null===(d=null===(c=b.instreamVideoAdRenderer)||void 0===c?void 0:c.playerOverlay)||void 0===d?void 0:d.instreamSurveyAdRenderer)}).length:0};
IIa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=JIa(f),l=h.OJ,m=h.RJ;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={QN:l,RN:0,eX:n};h=h.map(function(t){return QIa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new BH(u,n,m);
return t(u)});
var q=h.map(function(t){return t.oR});
return{nR:RIa(c,a,l,q,f,spa(b),LIa(b),d,m),hX:h.map(function(t){return t.gX})}};
QIa=function(a,b,c,d,e,f,h,l){var m,n,p=KIa(b.instreamVideoAdRenderer),q=c.QN,t=c.RN,u=Math.min(q+1E3*p.videoLengthSeconds,l);c.QN=u;c.RN++;c.eX.push(p.videoLengthSeconds);var x=null===(n=null===(m=b.instreamVideoAdRenderer)||void 0===m?void 0:m.playerOverlay)||void 0===n?void 0:n.instreamSurveyAdRenderer;if("nPpU29QrbiU"===p.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var A,F,G=p.playerVars;2<=y.u&&(G.slot_pos=y.i);G.autoplay="1";G=p.videoLengthSeconds;
var E=p.playerVars,K=p.tc,V=p.instreamAdPlayerOverlayRenderer,L=p.adVideoId,W=null===(A=b.instreamVideoAdRenderer)||void 0===A?void 0:A.adLayoutLoggingData,oa=null===(F=b.instreamVideoAdRenderer)||void 0===F?void 0:F.sodarExtensionData,wa=uZ(d.u.get(),"LAYOUT_TYPE_MEDIA",a),vb={layoutId:wa,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:wa,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:"adapter",Ia:new HY([new GI(h),new XI(G),new YI(E),new $I(q),new aJ(u),new bJ(t),
new TI({current:null}),V&&new HI(V),new CI(f),new EI(L),new DI(y),oa&&new ZI(oa),x&&new qJ(x)].filter(MIa)),Ec:e(vb),adLayoutLoggingData:W};G=HIa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{oR:y,gX:G}}};
KIa=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=g.Fs(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,tc:a.pings?CH(a.pings):new Map}};
LIa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
JIa=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{OJ:b,RJ:a}};
TIa=function(a,b,c,d,e,f,h,l){a=SIa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=uZ(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",tc:q,wd:[new zZ(b.i,n)],Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new eJ(e),new CI(c)]),Ec:m(p)}});
return a instanceof dZ?a:[a]};
VIa=function(a,b,c,d,e,f,h,l){a=UIa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=uZ(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,BZ(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=uZ(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,BZ(b,n,p))):q.imageOverlayAdContentRenderer?(q=uZ(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=BZ(b,n,p),n.push(new CZ(b.i,q)),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new VY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new VY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof dZ?a:[a]};
YIa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new dZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return WIa(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,h(m),function(n){return XIa(a,n,e,function(p,q){var t=p.slotId;p=h(p);t=uZ(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return tZ(b,
t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new JI(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}};
ZIa=function(a,b,c,d){if(!c.playerVars)return new dZ("No playerVars available in AdIntroRenderer.");var e=g.Fs(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=uZ(a.u.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Eq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",tc:new Map,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:"adapter",Ia:new HY([new dJ({}),new CI(b),new TI({current:null}),new YI(e)]),Ec:f(l)},Dr:[new DZ(a.i,h)],mp:[],uy:[],sy:[]}}};
aJa=function(a,b,c,d,e,f,h,l){var m=rZ(e);if(!rJ(e))return new dZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new dZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=BIa(a,b,e,f,c,d,h);return n instanceof dZ?n:function(p){return $Ia(b,p.slotId,c,m,sZ(e),h(p),n,l)}};
bJa=function(a,b,c,d,e,f,h){function l(p){return XIa(a,p,d,m)}
function m(p,q){var t=p.slotId;p=h(p);t=uZ(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return tZ(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new KI(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 dZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=
h(p);p=EZ(b,p.slotId,c,n,q,new Map,t,l);q=new PI(p.rF);return{Eq:{layoutId:p.layoutId,layoutType:p.layoutType,tc:p.tc,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:p.gb,Ia:new HY([].concat(g.v(p.Su),[q])),Ec:p.Ec,adLayoutLoggingData:p.adLayoutLoggingData},Dr:[],mp:p.Pc,uy:p.Rc,sy:p.Uc,kh:p.kh}}};
fJa=function(a,b,c,d,e,f,h,l,m,n,p){function q(u){var x=new BH(0,[t.Ux]),y=cJa(t.playerVars,t.mN,l,p,x);u=m(u);var A=n.get(t.jB.externalVideoId);x=dJa(b,"core",t.jB,c,y,t.Ux,f,x,u,A);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,tc:x.tc,wd:x.wd,Qc:x.Qc,Pc:x.Pc,Rc:x.Rc,Uc:x.Uc,gb:x.gb,Ia:x.Ia,Ec:x.Ec,adLayoutLoggingData:x.adLayoutLoggingData},im:[]}}
var t=FZ(e);if(t instanceof VY)return new dZ(t);if(q instanceof dZ)return q;a=eJa(a,c,f,h,d,l.tf,q);return a instanceof dZ?a:a.im.concat(a.vF)};
FZ=function(a){if(!a.playerVars)return new VY("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new VY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=g.Fs(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new VY("Expected valid length seconds in player vars"):
{jB:a,playerVars:b,mN:a.playerVars,Ux:c}};
cJa=function(a,b,c,d,e){a.iv_load_policy=d;b=g.Fs(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){S(f)}c.Bg&&(a.ctrl=c.Bg);c.Ff&&(a.ytr=c.Ff);c.Fl&&(a.ytrcc=c.Fl);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Wh&&(a.vss_credentials_token_type=c.Wh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.i);a.autoplay="1";return a};
iJa=function(a,b,c,d,e,f,h,l,m,n,p){b=gJa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=hJa(a,c,f,h),c instanceof dZ?d=c:(f=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER"),h=uZ(a.u.get(),"LAYOUT_TYPE_SURVEY",f),c.pc.push(new HZ(a.i,h)),a=b({slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Ub:c.Ub,qc:c.qc,pc:c.pc},{slotId:f,layoutId:h}),d=a instanceof dZ?a:{vF:{slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,
Ub:c.Ub,qc:c.qc,pc:c.pc,gb:c.gb,Ia:new HY([new gJ(a.layout)]),adSlotLoggingData:d},im:a.im})):d=eJa(a,c,f,h,d,l.tf,b);return d instanceof dZ?d:d.im.concat(d.vF)};
gJa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=FZ(u.instreamVideoAdRenderer);if(u instanceof VY){q=new dZ(u);break b}q.push(u.Ux)}}if(q instanceof dZ)p=q;else{t=0;u=[];for(var x=[],y=[],A=[],F=[],G=[],E=new UI({current:null}),K=[],V=g.r(d),L=V.next();!L.done;L=V.next())if(L=L.value,L.adIntroRenderer){L=ZIa(b,c,L.adIntroRenderer,h);if(L instanceof dZ){p=L;break a}L=L(n);u.push(L.Eq);x=[].concat(g.v(L.Dr),
g.v(x));y=[].concat(g.v(L.mp),g.v(y));L.kh&&(K=[L.kh].concat(g.v(K)))}else if(L.instreamVideoAdRenderer){var W=FZ(L.instreamVideoAdRenderer);if(W instanceof VY){p=new dZ(W);break a}var oa=new BH(t,q);L=b;var wa=W.jB,vb=cJa(W.playerVars,W.mN,f,m,oa),ob=h(n),$b=l.get(W.jB.externalVideoId);W=dJa(L,"adapter",wa,c,vb,W.Ux,e,oa,ob,$b);oa=W.Qc;wa.isCritical&&(oa=[new DZ(L.i,W.layoutId)].concat(g.v(oa)));L={layoutId:W.layoutId,layoutType:W.layoutType,tc:W.tc,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:W.gb,Ia:W.Ia,
Ec:W.Ec,adLayoutLoggingData:W.adLayoutLoggingData};wa=oa;W=W.Pc;t++;u.push(L);x=[].concat(g.v(wa),g.v(x));y=[].concat(g.v(W),g.v(y))}else if(L.adActionInterstitialRenderer){L=YIa(a,b,c,L.adActionInterstitialRenderer,e,t,h);if(L instanceof dZ){p=L;break a}L=L(n);u.push(L.Eq);x=[].concat(g.v(L.Dr),g.v(x));y=[].concat(g.v(L.mp),g.v(y));L.kh&&(K=[L.kh].concat(g.v(K)))}else if(L.instreamSurveyAdRenderer){if(void 0===p){p=new dZ("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:L.instreamSurveyAdRenderer});break a}L=aJa(a,b,c,e,L.instreamSurveyAdRenderer,E,h,p);if(L instanceof dZ){p=L;break a}L=L(n);u.push(L.Eq);L.kh&&K.push(L.kh);x=[].concat(g.v(L.Dr),g.v(x));y=[].concat(g.v(L.mp),g.v(y));A=[].concat(g.v(L.uy),g.v(A));F=[].concat(g.v(L.sy),g.v(F));G=[E].concat(g.v(G))}else if(L.surveyTextInterstitialRenderer){L=bJa(a,b,c,e,L.surveyTextInterstitialRenderer,E,h);if(L instanceof dZ){p=L;break a}L=L(n);u.push(L.Eq);L.kh&&K.push(L.kh);y=[].concat(g.v(L.mp),
g.v(y))}else{p=new dZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={fX:u,Qc:x,Rc:A,Uc:F,Pc:y,Su:G,im:K}}}p instanceof dZ?n=p:(A=n.slotId,q=p.fX,t=p.Qc,u=p.Pc,x=p.Rc,y=p.Su,n=h(n),A=uZ(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",A),F={layoutId:A,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:A,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:new Map,wd:[new zZ(b.i,A)],Qc:t,Pc:u,Rc:x,Uc:[],gb:"core",Ia:new HY([new VI(q)].concat(g.v(y))),Ec:n(F)},
im:p.im});return n}};
kJa=function(a,b,c,d,e,f,h){if(!rJ(c))return new dZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=rZ(c);if(0>=l)return new dZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new UI({current:null}),n=BIa(a,b,c,m,d,f,h);return jJa(a,d,f,l,e,function(p,q){var t=p.slotId,u=sZ(c);p=h(p);t=uZ(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,q);
X(y.Ia,"metadata_type_fulfilled_layout")||S("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new CI(d),new lJ(l),new nJ(u),new oJ(!0),m,new QI("LAYOUT_TYPE_SURVEY")];return{RS:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:new Map,wd:[new zZ(b.i,t)],Qc:[new wZ(b.i,q.layoutId)],Pc:[],Rc:[new xZ(b.i,q.layoutId)],Uc:[],gb:"core",Ia:new HY(u),Ec:p(x)},sS:y}})};
IZ=function(a,b,c,d,e,f,h){this.u=a;this.i=b;this.Na=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===h?1:h};
gja=function(a,b,c,d,e,f,h){var l,m,n,p,q,t,u,x,y,A,F,G=[];if(0===b.length)return G;b=b.filter(oIa);for(var E=new Map,K=new Map,V=g.r(b),L=V.next();!L.done;L=V.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&K.set(L.hostElementId,L);V=g.r(b);for(L=V.next();!L.done;L=V.next()){L=L.value;var W=lJa(a,E,L,d,e,f,h,K);W instanceof dZ?S(W,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):G.push.apply(G,
g.v(W))}if(null===a.D||f&&!h.GJ)return a=h.tf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(q=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===q?void 0:q.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),G;c=c.filter(oIa);G.push.apply(G,g.v(xIa(E,c,a.u.get(),a.D,d,a.Na.get())));G.length||S("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(A=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===A?void 0:A.kind,renderer:null===
(F=b[0])||void 0===F?void 0:F.renderer});return G};
lJa=function(a,b,c,d,e,f,h,l){function m(x){return MY(a.B.get(),x)}
var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,u=h.GJ&&"AD_PLACEMENT_KIND_START"===q;u=f&&!u;if(null!=n.actionCompanionAdRenderer)qZ(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,A){var F=a.i.get(),G=n.actionCompanionAdRenderer,E=MY(a.B.get(),x);return JZ(F,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new uI(G),y,A,G.impressionPings,E,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)qZ(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,A){var F=a.i.get(),G=n.imageCompanionAdRenderer,E=MY(a.B.get(),x);return JZ(F,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new yI(G),y,A,G.impressionPings,E,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)qZ(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,A){var F=a.i.get(),G=n.shoppingCompanionCarouselRenderer,E=MY(a.B.get(),x);return JZ(F,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new zI(G),y,A,G.impressionPings,E,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else if(n.adBreakServiceRenderer){if(!tIa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return sIa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!(f||h.tf&&KZ(a.Na.get())))return new dZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED AdBreakServiceRenderer but cue point event is unsupported",{kind:q,adPlacementConfig:p,daiEnabled:String(f),isServedFromLiveInfra:String(h.tf),clientPlaybackNonce:h.clientPlaybackNonce});if(!a.C)return new dZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
mJa(a.C,{adPlacementRenderer:c,contentCpn:d,vJ:e})}else{if(n.clientForecastingAdRenderer)return TIa(a.u.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return VIa(a.u.get(),a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return PIa(a.u.get(),a.i.get(),c,d,m);if(n.linearAdSequenceRenderer&&!u)return pZ(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?iJa(a.u.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,
d,e,h,m,l,a.loadPolicy):new dZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return pZ(b,n,q),fJa(a.u.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return kJa(a.u.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!=n.sandwichedLinearAdRenderer)return pIa(n.sandwichedLinearAdRenderer)?iJa(a.u.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],
d,e,h,m,l,a.loadPolicy):new dZ("Received invalid SandwichedLinearAdRenderer.")}}return[]};
LZ=function(a){g.I.call(this);this.i=a};
$z=function(a,b,c,d){a.i().Di(b,d);c=c();a=a.i();MZ(a.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;FJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.ab(c.slotId))throw new dZ("Slot ID was empty");if(TY(e,c))throw new dZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Ub.triggerType});if(!e.Kd.Ll.has(c.rb))throw new dZ("No fulfillment adapter factory registered for slot of type: "+
c.rb);if(!e.Kd.ym.has(c.rb))throw new dZ("No SlotAdapterFactory registered for slot of type: "+c.rb);lZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Ub?[c.Ub]:[]);lZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);lZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.pc);var f=d.i,h=c.rb+"_"+c.slotPhysicalPosition,l=fZ(f,h);if(TY(f,c))throw new dZ("Duplicate slots not supported");l.set(c.slotId,new jIa(c));f.i.set(h,l)}catch(oa){S(oa,c,void 0,void 0,oa.Zo);break a}TY(d.i,c).J=!0;try{var m=d.i,n=TY(m,c),p=c.Ub,q=m.Kd.Uh.get(p.triggerType);
q&&(q.Gi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var t=g.r(c.qc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.Kd.Uh.get(x.triggerType);y&&(y.Gi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var A=g.r(c.pc),F=A.next();!F.done;F=A.next()){var G=F.value,E=m.Kd.Uh.get(G.triggerType);E&&(E.Gi("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.Z.set(G.triggerId,E))}var K=m.Kd.Ll.get(c.rb).get().Ne(m.B,c);n.K=K;var V=m.Kd.ym.get(c.rb).get().Ne(m.D,
c);V.init();n.u=V}catch(oa){S(oa,c,void 0,void 0,oa.Zo);QY(d,c,!0);break a}FJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.Oh(c);for(var L=g.r(d.Od),W=L.next();!W.done;W=L.next())W.value.Oh(c);YY(d,c,!1)}};
NZ=function(a,b,c,d){this.Ho=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
OZ=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.i=new Map;d.get().addListener(this);g.qe(this,function(){d.get().removeListener(e)})};
dja=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.qc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof NZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):S("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new kr(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)};
PZ=function(){g.I.apply(this,arguments);this.nj=!0;this.Li=new Map;this.i=new Map};
nJa=function(a,b){a=g.r(a.Li.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
oJa=function(a,b){a=g.r(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}S("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ab(b)),layoutId:b})};
QZ=function(){this.u=new Map;this.i=new Map;this.B=new Map};
GZ=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 zy()};
uZ=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 zy()};
RZ=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return zy()};
HZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
DZ=function(a,b){this.Ee=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
vZ=function(a,b){this.Ee=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
yZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
SZ=function(a,b){this.i=b;this.rb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
TZ=function(a,b){this.i=b;this.rb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
zZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
pJa=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)};
GIa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
wZ=function(a,b){this.Ee=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
xZ=function(a,b){this.Ee=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
CZ=function(a,b){this.durationMs=45E3;this.Ee=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
qJa=function(a){return[new OI(a.vt),new HI(a.instreamAdPlayerOverlayRenderer),new SI(a.UM),new CI(a.adPlacementConfig),new XI(a.videoLengthSeconds),new kJ(a.DE)]};
rJa=function(a,b,c,d,e,f){a=c.dE?c.dE:uZ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tc:new Map,wd:[new vZ(function(l){return RZ(f,l)},c.vt)],
Qc:[],Pc:[],Rc:[],Uc:[],gb:b,Ia:d,Ec:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
UZ=function(a){var b=this;this.u=a;this.i=function(c){return RZ(b.u.get(),c)}};
sJa=function(a,b,c,d,e,f){c=new HY([new II(c),new CI(d)]);b=uZ(a.u.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",tc:new Map,wd:[new vZ(function(h){return RZ(a.u.get(),h)},e)],
Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:c,Ec:f(d),adLayoutLoggingData:void 0}};
VZ=function(a,b,c,d,e){return rJa(b,c,d,new HY(qJa(d)),e,a.u.get())};
tJa=function(a,b,c,d,e){var f=qJa(d);f.push(new AI(d.OQ));f.push(new BI(d.QQ));return rJa(b,c,d,new HY(f),e,a.u.get())};
JZ=function(a,b,c,d,e,f,h,l,m){b=uZ(a.u.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,tc:p,wd:[new zZ(a.i,b),new SZ(a.i,e)],Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([d,new CI(f),new OI(e)]),Ec:l(n),adLayoutLoggingData:m}};
BZ=function(a,b,c){var d=[];d.push(new TZ(a.i,c));b&&d.push(b);return d};
AZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,tc:new Map,wd:h,Qc:[new HZ(a.i,b)],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new xI(d),new CI(e)]),Ec:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
tZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,tc:new Map,wd:[new vZ(a.i,c)],Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new CI(d)].concat(g.v(h))),Ec:e(m),adLayoutLoggingData:l}};
WIa=function(a,b,c,d,e,f,h,l,m,n){a=EZ(a,b,c,d,e,f,h,l,m,n);return{Eq:{layoutId:a.layoutId,layoutType:a.layoutType,tc:a.tc,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:a.gb,Ia:new HY(a.Su),Ec:a.Ec,adLayoutLoggingData:a.adLayoutLoggingData},Dr:a.Qc,mp:a.Pc,uy:a.Rc,sy:a.Uc,kh:a.kh}};
$Ia=function(a,b,c,d,e,f,h,l){b=EZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0);
a=new xZ(a.i,b.rF);c=new PI(b.rF);d=new QI("LAYOUT_TYPE_SURVEY");return{Eq:{layoutId:b.layoutId,layoutType:b.layoutType,tc:b.tc,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:b.gb,Ia:new HY([].concat(g.v(b.Su),[c,d])),Ec:b.Ec,adLayoutLoggingData:b.adLayoutLoggingData},Dr:b.Qc,mp:b.Pc,uy:[].concat(g.v(b.Rc),[a]),sy:b.Uc,kh:b.kh}};
EZ=function(a,b,c,d,e,f,h,l,m,n){b=uZ(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=X(l.Ia,"metadata_type_fulfilled_layout");q||S("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new CI(c),new lJ(d),new nJ(e)];n&&c.push(new bJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:f,wd:[],Qc:[new wZ(a.i,q)],Pc:[],Rc:[],Uc:[],gb:"adapter",
Su:c,Ec:h(p),adLayoutLoggingData:m,kh:l,rF:q}};
dJa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new CI(d),new DI(l),new EI(c.externalVideoId),new GI(h),new HI(c.playerOverlay.instreamAdPlayerOverlayRenderer),new nJ({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new YI(e),new TI({current:null}),new XI(f)];e=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:uZ(a.u.get(),
"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new PI(f));d.push(new RI(e));d.push(new bJ(l.i));c.adNextParams&&d.push(new vI(c.adNextParams));c.clickthroughEndpoint&&d.push(new wI(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new mJ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new ZI(c.sodarExtensionData));n&&d.push(new jJ(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",tc:CH(c.pings),wd:[new zZ(a.i,p)],Qc:c.skipOffsetMilliseconds?[new wZ(a.i,f)]:[],Pc:[new wZ(a.i,
f)],Rc:[],Uc:[],gb:b,Ia:new HY(d),Ec:m(q),adLayoutLoggingData:c.adLayoutLoggingData}};
RIa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return GY(p,[],["LAYOUT_TYPE_MEDIA"])})||S("Unexpect subLayout type for DAI composite layout");
b=uZ(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:f,wd:[new yZ(a.i)],Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new $I(c),new aJ(m),new VI(d),new CI(e),new fJ(h)]),Ec:l(n)}};
MIa=function(a){return null!=a};
WZ=function(a,b,c){this.Ho=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
XZ=function(a,b,c){this.Ee=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
YZ=function(a,b){this.Ee=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
uJa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
ZZ=function(a,b,c){this.Ho=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
$Z=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
a_=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
b_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
c_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
d_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
e_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
f_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
qIa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Pk:new kr(-0x8000000000000,-0x8000000000000),xA:d},null!=c&&(d.Mr=new kr(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Pk:new kr(0x7ffffffffffff,0x8000000000000),xA:d},null!=c&&(d.Mr=new kr(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||S("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||S("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 dZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Pk:new kr(a,e),xA:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Mr=new kr(a,e)}return d;default:return new dZ("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
g_=function(a){var b=this;this.u=a;this.i=function(c){return RZ(b.u.get(),c)}};
rIa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=GZ(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Mr&&d.Mr.start!==d.Pk.start&&l.push(new NZ(a.i,c,new kr(d.Mr.start,d.Pk.start),!1));l.push(new NZ(a.i,c,new kr(d.Pk.start,d.Pk.end),d.xA));d={getAdBreakUrl:b.getAdBreakUrl,lN:d.Pk.start,kN:d.Pk.end};b=new e_(a.i,h);f=[new hJ(d)].concat(g.v(f));return{slotId:h,rb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Ub:b,qc:l,pc:[new $Z(a.i,c),new c_(a.i,h),new d_(a.i,h)],gb:"core",Ia:new HY(f),adSlotLoggingData:e}};
wJa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(vJa(a,b,e.value));return d};
vJa=function(a,b,c){return null!=c.Ig&&c.Ig===a?c.clone(b):c};
AIa=function(a,b,c,d,e){return xJa(a,b,c,d,e)};
XIa=function(a,b,c,d){var e=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");return xJa(a,e,b,c,d)};
xJa=function(a,b,c,d,e){var f=new YZ(a.i,c),h=[new b_(a.i,b)];a=[new c_(a.i,b),new $Z(a.i,d)];return{slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ub:f,qc:h,pc:a,gb:"core",Ia:new HY([new gJ(e({slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Ub:f,qc:h,pc:a},c))]),adSlotLoggingData:void 0}};
jJa=function(a,b,c,d,e,f){var h=GZ(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=uZ(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=h_(a,b,c,d);d=[new b_(a.i,h)];a=[new c_(a.i,h),new $Z(a.i,c),new HZ(a.i,m)];if(b instanceof dZ)return b;f=f({slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Ub:b,qc:d,pc:a},{slotId:l,layoutId:m});l=f.sS;return[{slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ub:b,qc:d,pc:a,gb:"core",Ia:new HY([new gJ(f.RS)]),adSlotLoggingData:e},
l]};
yJa=function(a,b,c,d,e){e=e?e:GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new YZ(a.i,c);var f=[new b_(a.i,e)];a=[new $Z(a.i,b),new c_(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ub:c,qc:f,pc:a,gb:"core",Ia:new HY([new gJ(d({slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Ub:c,qc:f,pc:a}))])}};
zJa=function(a,b,c,d){var e=GZ(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new YZ(a.i,c);var f=[new b_(a.i,e)];a=[new $Z(a.i,b),new c_(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ub:c,qc:f,pc:a,gb:"core",Ia:new HY([new gJ(d({slotId:e,rb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Ub:c,qc:f,pc:a}))])}};
UIa=function(a,b,c,d,e,f){b=h_(a,b,c,d);if(b instanceof dZ)return b;var h=b instanceof NZ?new ZZ(a.i,c,b.i):null;d=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new b_(a.i,d)];a=[new $Z(a.i,c),new c_(a.i,d)];f=f({slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Ub:b,qc:l,pc:a},h);return f instanceof VY?new dZ(f):{slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ub:b,qc:l,pc:a,gb:"core",Ia:new HY([new gJ(f)]),adSlotLoggingData:e}};
FIa=function(a,b,c,d){var e=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new YZ(a.i,c);var f=[new b_(a.i,e)],h=[new c_(a.i,e),new $Z(a.i,b)];f={slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Ub:c,qc:f,pc:h};return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ub:c,qc:[new b_(a.i,e)],pc:[new $Z(a.i,b),new c_(a.i,e)],gb:"core",Ia:new HY([new gJ(d(f))])}};
DIa=function(a,b,c,d,e){var f=GZ(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new XZ(a.i,d,c);d=[new b_(a.i,f)];a=[new $Z(a.i,b)];return{slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ub:c,qc:d,pc:a,gb:"core",Ia:new HY([new gJ(e({slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Ub:c,qc:d,pc:a}))])}};
wIa=function(a,b,c,d,e,f){var h=GZ(a.u.get(),b);return AJa(a,h,b,new YZ(a.i,d),c,e,d,f)};
vIa=function(a,b,c,d,e,f,h){return AJa(a,c,b,new a_(a.i,c),d,f,e,h)};
NIa=function(a,b,c){var d=GZ(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new uJa(a.i),f=[new f_(a.i,d)];a=[new $Z(a.i,b)];return{slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ub:e,qc:f,pc:a,gb:"core",Ia:new HY([new gJ(c({slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Ub:e,qc:f,pc:a})),new cJ({})])}};
eJa=function(a,b,c,d,e,f,h){a=hJa(a,b,c,d);if(a instanceof dZ)return a;h=h({slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Ub:a.Ub,qc:a.qc,pc:a.pc,gb:a.gb});if(h instanceof dZ)return h;b=[new gJ(h.layout)];f&&b.push(new pJ({}));return{vF:{slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Ub:a.Ub,qc:a.qc,pc:a.pc,gb:a.gb,Ia:new HY(b),adSlotLoggingData:e},im:h.im}};
hJa=function(a,b,c,d){var e=GZ(a.u.get(),"SLOT_TYPE_PLAYER_BYTES");b=h_(a,b,c,d);if(b instanceof dZ)return b;d=[new b_(a.i,e)];a=[new c_(a.i,e),new $Z(a.i,c)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ub:b,qc:d,pc:a,gb:"core"}};
SIa=function(a,b,c,d,e,f){var h=GZ(a.u.get(),"SLOT_TYPE_FORECASTING");b=h_(a,b,c,d);if(b instanceof dZ)return b;d=[new b_(a.i,h)];a=[new c_(a.i,h),new $Z(a.i,c)];return{slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ub:b,qc:d,pc:a,gb:"core",Ia:new HY([new gJ(f({slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Ub:b,qc:d,pc:a}))]),adSlotLoggingData:e}};
BJa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new dA(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=qIa(b,d),a instanceof dZ?a:e(a.Pk,f);case "AD_PLACEMENT_KIND_END":return new WZ(a.i,c,f);default:return new dZ("Cannot construct entry trigger",{kind:b.kind})}};
h_=function(a,b,c,d){return BJa(a,b,c,d,function(e,f){return new NZ(a.i,c,e,f)})};
AJa=function(a,b,c,d,e,f,h,l){var m=[new f_(a.i,b)];a=[new $Z(a.i,e),new c_(a.i,b),new DZ(a.i,h)];return{slotId:b,rb:c,slotPhysicalPosition:1,Ub:d,qc:m,pc:a,gb:"core",Ia:new HY([new gJ(l({slotId:b,rb:c,slotPhysicalPosition:1,gb:"core",Ub:d,qc:m,pc:a}))]),adSlotLoggingData:f}};
i_=function(a,b,c){g.I.call(this);this.Na=a;this.u=b;this.i=c;this.eventCount=0};
FJ=function(a,b,c){MZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
UY=function(a,b,c,d){MZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
bIa=function(a,b,c,d){var e=a.Na.get();(e.I.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&MZ(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)};
MZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Na.get();if((p.I.V().N("html5_enable_ads_client_monitoring_log")||p.I.V().N("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Na.get().I.V().N("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=LY(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var q,t={organicPlaybackContext:{contentCpn:aA(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=aA(a.i.get(),1).tf;if(a=null===(q=aA(a.i.get(),2))||void 0===
q?void 0:q.clientPlaybackNonce)t.adVideoPlaybackContext={adVideoCpn:a};q={};f&&(q.slotData=KY(p,f));h&&(q.layoutData=WHa(p,h));l&&(q.triggerData=JY(l.trigger,l.category));c&&(q.opportunityData=XHa(p,c,d,e));t&&(q.externalContext=t);b.adClientData=q;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Vv("adsClientStateChange",{adsClientEvent:b})}};
j_=function(){this.i=new Map};
k_=function(a,b,c,d,e){g.I.call(this);this.I=a;this.B=b;this.Ha=c;this.C=d;this.u=e;this.listeners=[];var f=new jy(this);g.J(this,f);f.T(a,"internalAbandon",this.eF);g.qe(this,function(){g.my(f)})};
l_=function(a){g.I.call(this);this.I=a;this.i=new Map;this.u=new jy(this);g.J(this,this.u);this.u.T(this.I,g.pA("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.qA("ad"),this.onCueRangeExit,this)};
CJa=function(a,b,c,d,e){g.nA.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
m_=function(a){this.I=a};
n_=function(a){this.I=a};
o_=function(a){var b,c,d;return(null===(d=null===(c=null===(b=a.I.getVideoData(1).getPlayerResponse())||void 0===b?void 0:b.playerConfig)||void 0===c?void 0:c.daiConfig)||void 0===d?void 0:d.enableServerStitchedDai)||!1};
kZ=function(a){return a.I.V().N("html5_recover_from_non_fatal_errors_in_player_bytes")};
ZY=function(a){return g.yF(a.I.V())?!1:lF(a.I.V())?a.I.V().N("html5_enable_non_notify_composite_vod_lsar_pacf"):g.mF(a.I.V())?a.I.V().N("html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1};
DJa=function(a){return a.I.V().N("html5_recognize_predict_start_cue_point")};
KZ=function(a){return a.I.V().N("html5_pacf_enable_non_dai_live_video_ads")};
p_=function(a){return a.I.V().N("html5_enable_common_timer_for_survey_web")};
EJa=function(a){return a.I.V().experiments.ob("enable_desktop_player_underlay")};
q_=function(a,b){this.Ha=a;this.I=b;this.i=new Map;AH().subscribe("adactiveviewmeasurable",this.uw,this);AH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.qw,this);AH().subscribe("adviewableimpression",this.ww,this)};
s_=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?S("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),opa(AH(),b,{Dv:function(){return c?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:c,Ac:2===a.Ha.get().getPresentingPlayerType()&&1===r_(a.Ha.get(),2),Baa:!1,Caa:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))};
t_=function(a,b){a.i.has(b)?(a.i.delete(b),delete AH().i[b]):S("Unexpected unregistration of layout in LidarApi")};
u_=function(a,b){this.u=a;this.B=b};
v_=function(a,b,c,d){var e=void 0===e?new u_(function(){var f=a.getVideoData(1);return f?f.mf():""},function(){return a.V().pageId}):e;
this.I=a;this.u=b;this.B=c;this.C=d;this.Yo=e;this.WA=null;this.i=new Map;this.Ph=new SH(e)};
GJa=function(a,b,c,d){d=void 0===d?[]:d;var e=oJa(a.u.get(),c);e?(c=w_(a,FJa(e),e),b.hasOwnProperty("baseUrl")?a.Yo.send(b,c):a.Ph.send(b,c,{},d)):S("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
x_=function(a,b){g.Vv("adsClientStateChange",b)};
y_=function(a,b){a.i.has(b.Gv())?S("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.Gv(),b)};
z_=function(a,b){a.i.delete(b.Gv())||S("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
FJa=function(a){var b=X(a.Ia,"metadata_type_ad_placement_config");a=X(a.Ia,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,EL:a}};
w_=function(a,b,c,d){var e=c?HJa(a):{};c=c?IJa(a,c.layoutId):{};var f={},h={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},NH(a.I,d)),zpa(b.adPlacementConfig)),(f.SLOT_POS=MH(function(){return(b.EL||0).toString()}),f)),c),e),(h.FINAL=MH(function(){return"1"}),h.AD_CPN=MH(function(){var l;
return(null===(l=aA(a.C.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),h));
e={};c=g.r(Object.values(JJa));for(f=c.next();!f.done;f=c.next())f=f.value,h=d[f],null!=h&&(e[f]=h.toString());return e};
HJa=function(a){var b,c={},d=null===(b=a.WA)||void 0===b?void 0:KJa(b);null!=d&&(c.SURVEY_ELAPSED_MS=MH(function(){return Math.round(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=MH(function(){return Math.round(Date.now()/1E3).toString()});
return c};
IJa=function(a,b){a=a.i.get(b);if(!a)return{};a=a.uD();if(!a)return{};b={};return b.YT_ERROR_CODE=a.oB.toString(),b.ERRORCODE=a.xx.toString(),b.ERROR_MSG=a.errorMessage,b};
A_=function(a,b,c){g.I.call(this);var d=this;this.I=a;this.i=b;this.Na=c;this.listeners=[];this.vE=null;this.xC=new Map;b=new g.wD(this);g.J(this,b);b.T(a,"videodatachange",this.gW);b.T(a,"serverstitchedvideochange",this.CV);a.addEventListener("serverstitchedvideochange",function(){var e=d.I.getPresentingPlayerType(!0);d.I.getVideoData(1).Ba("ads_rssvc","pt."+e)});
this.rp=aA(this)};
aA=function(a,b){var c=a.I.getVideoData(b);return c?LJa(a,c,b||a.I.getPresentingPlayerType(!0)):null};
MJa=function(a,b,c){var d=LJa(a,b,c);a.rp=d;a.listeners.forEach(function(e){e.vM(d)})};
LJa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.Dc,q=b.title,t=b.Bg,u=b.Ff,x=b.isMdxPlayback,y=b.Wh,A=b.mdxEnvironment,F=b.Hk,G=b.Ok,E=b.ip,K=b.videoId||"",V=b.Qh||"",L=b.Si||"";b=b.Fl||void 0;p=a.i.get().i.get(p)||{layoutId:null,slotId:null};var W=a.I.getVideoData(1),oa=W.tf();W=W.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var wa=(null===(e=null===(d=null===W||void 0===W?void 0:W.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0===
e?void 0:e.enableDai)||!1;W=(null===(h=null===(f=null===W||void 0===W?void 0:W.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enablePreroll)||!1;return Object.assign(Object.assign({},p),{videoId:K,author:l,clientPlaybackNonce:m,playbackDurationMs:c,vJ:a,daiEnabled:wa,GJ:W,isListed:n,tf:oa,Qh:V,title:q,Si:L,Bg:t,Ff:u,Fl:b,isMdxPlayback:x,Wh:y,mdxEnvironment:A,Hk:F,Ok:G,ip:E})};
B_=function(a,b){g.I.call(this);this.I=a;this.i=b;this.listeners=[];this.wp=function(){S("Called 'doUnlockPreroll' before it's initialized.")};
b=new jy(this);g.J(this,b);b.T(a,"progresssync",this.eV);b.T(a,"presentingplayerstatechange",this.VU);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.yg);b.T(a,"resize",this.wb)};
C_=function(a,b){var c;b=null!==(c=a.i.get().xC.get(b))&&void 0!==c?c:null;if(null===b)return S("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a<b?0:a-b};
r_=function(a,b){return a.I.vb(b)};
NJa=function(a){var b=a.I.bb().rg();a=a.I.ij(!0,!0);return b.height-(a.height+a.top)};
OJa=function(a,b){var c=a.I.V();cF(c)||"3"!==c.controlsType||a.I.bb().ax(b)};
D_=function(a,b){g.N(a.I.getRootNode(),b)};
E_=function(a,b){g.Mq(a.I.getRootNode(),b)};
PJa=function(a,b,c){g.I.call(this);var d=this;this.J=Y(function(){return new QZ});
g.J(this,this.J);this.Z=Y(function(){return new UZ(d.J)});
g.J(this,this.Z);this.K=Y(function(){return new PZ});
g.J(this,this.K);this.u=Y(function(){return new LZ(a)});
g.J(this,this.u);this.B=Y(function(){return new g_(d.J)});
g.J(this,this.B);this.ya=Y(function(){return new j_});
g.J(this,this.ya);this.S=Y(function(){return new l_(b)});
g.J(this,this.S);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.C=Y(function(){return new NY(d.Na)});
g.J(this,this.C);this.D=Y(function(){return new IZ(d.B,d.Z,d.Na,d.C,null,null)});
g.J(this,this.D);this.i=Y(function(){return new A_(b,d.ya,d.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.C,this.i);g.J(this,this.dc);this.Ha=Y(function(){return new B_(b,d.i)});
g.J(this,this.Ha);this.Y=Y(function(){return new q_(d.Ha,b)});
g.J(this,this.Y);this.Va=Y(function(){return new v_(b,d.K,d.Y,d.i)});
g.J(this,this.Va);this.yc=new eA(this.u,this.D,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var e=new k_(b,this.yc,this.Ha,this.i);this.Aa=Y(function(){return e});
this.Un=e;this.ma=new OZ(this.u,this.B,this.S,this.Aa);g.J(this,this.ma);this.zc=new Zz(this.u,this.B,this.D,this.i,this.ma,c);g.J(this,this.zc);this.Kd={jq:new Map,Ll:new Map,Uh:new Map,ym:new Map,Zl:new Map};this.listeners=[];this.Yp={zc:this.zc,hk:null,dm:null,Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:null,Ai:{UD:function(){}},
eh:this.K.get()}};
F_=function(a){this.i=a};
G_=function(){};
QJa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&al(b.siub,b.scs,b.bgub,b.bgp)};
RJa=function(a,b,c,d){this.callback=a;this.slot=b;this.B=c;this.u=d;this.i=null};
SJa=function(a,b,c,d){a.i&&S("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.ot?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=MY(a.u.get(),{slotId:a.slot.slotId,rb:a.slot.rb,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,Ub:a.slot.Ub,qc:a.slot.qc,pc:a.slot.pc}),n=uZ(h.u.get(),f,l),p={layoutId:n,layoutType:f,gb:"core"};e={layoutId:n,layoutType:f,
tc:new Map,wd:[new pJa(h.i,l)],Qc:[],Pc:[],Rc:[],Uc:[],gb:"core",Ia:new HY([new iJ(e)]),Ec:m(p)};$Ha(a.callback,a.slot,e)},function(e){a.i=null;
c&&c();e instanceof oh||RY(a.callback,a.slot,new dZ(e,void 0,!0))})};
TJa=function(a){if(null==a.i)a.callback.dA(a.slot);else try{a.i.cancel(),a.i=null,a.callback.dA(a.slot)}catch(b){a.i=null,RY(a.callback,a.slot,new dZ(b))}};
H_=function(a,b,c,d,e,f){this.slot=b;this.u=c;this.B=f;this.i=new RJa(a,b,d,e)};
UJa=function(a){var b;null===(b=a.B)||void 0===b?void 0:b.get().Yn(X(a.slot.Ia,"metadata_type_cue_point").identifier)};
I_=function(a,b,c,d,e){this.callback=a;this.slot=b;this.u=c;this.i=new RJa(a,b,d,e)};
J_=function(a,b){this.callback=a;this.slot=b};
K_=function(a,b){return cA(a,b.Ud,b.rb)?!0:!1};
L_=function(){};
M_=function(a,b,c,d){this.i=a;this.B=b;this.u=c;this.D=d};
N_=function(){};
VJa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.i=d};
O_=function(a,b){return GY(a,b.Ud,b.bf)?!0:!1};
P_=function(a){this.i=a};
Q_=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Va=b;this.layoutId=d;this.u=0;this.C=null;this.i=new Set;this.B=Array.from(this.D.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.J={adPlacementConfig:c,EL:e}};
R_=function(){return["metadata_type_ad_placement_config"]};
S_=function(a){var b=a.Va.get();return w_(b,a.J)};
T_=function(a,b){a.i.has(b)||a.Jf(b)};
XJa=function(a,b,c){for(c=void 0===c?!1:c;a.u<a.B.length;){var d=a.B[a.u];if(d.offsetMilliseconds<=b||c)WJa(a,"progress",[d]),a.u++;else break}};
WJa=function(a,b,c){var d,e=a.Va.get(),f=a.layoutId;a=null!==(d=a.C)&&void 0!==d?d:void 0;c=void 0===c?[]:c;var h=oJa(e.u.get(),f);if(h)for(b=e.B.get().Jf(f,b),f=w_(e,FJa(h),h,a),c=g.r(c),a=c.next();!a.done;a=c.next())a=a.value,a.baseUrl&&e.Ph.send(a.baseUrl,f,b,a.headers);else S("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
YJa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Va=d;this.i=e;a=X(this.layout.Ia,"metadata_type_ad_placement_config");this.u=new Q_(c.tc,this.Va,a,c.layoutId)};
ZJa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];R_().forEach(function(b){a.push(b)});
return{Ud:a,bf:["LAYOUT_TYPE_FORECASTING"]}};
U_=function(a,b){this.Va=a;this.i=b};
V_=function(a,b,c,d){g.R.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.i=[]};
W_=function(a,b,c,d,e,f,h){e=X(c.Ia,e);a=S_(a);var l=We(function(){d.Kc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Ec},function(){l()}))};
X_=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.r(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.rb&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():S("Tried to call engagePingCallback but it is null",h,l)}}else S("Companion AdUxClick received without a layoutId",h,l)};
$Ja=function(a,b,c,d,e){wH.call(this,"action-companion",a,b,c,d,e)};
Y_=function(a,b,c,d,e,f,h,l){V_.call(this,a,b,c,d);this.Va=e;this.Ye=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");PY(this.Ye(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new Q_(c.tc,this.Va,a,c.layoutId)};
aKa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];R_().forEach(function(b){a.push(b)});
return{Ud:a,bf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Z_=function(a,b,c,d,e){V_.call(this,a,b,c,d);a=X(c.Ia,"metadata_type_ad_placement_config");this.B=new Q_(c.tc,e,a,c.layoutId)};
bKa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];R_().forEach(function(b){a.push(b)});
return{Ud:a,bf:["LAYOUT_TYPE_ENDCAP"]}};
$_=function(a,b,c,d,e,f,h,l){V_.call(this,a,b,c,d);this.Ha=e;this.Va=f;this.C=h;this.Nd=l;this.B=!1;this.D=X(this.layout.Ia,"metadata_type_linked_player_bytes_layout_id")};
cKa=function(){return{Ud:["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"],bf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
a0=function(a,b,c,d,e,f,h,l){return O_(c,cKa())?new $_(a,b,c,d,e,f,h,l):O_(c,bKa())?new Z_(a,b,c,d,f):null};
b0=function(a,b,c,d,e){this.i=a;this.Ha=b;this.Va=c;this.u=d;this.Nd=e};
c0=function(a,b,c,d,e,f){g.I.call(this);this.callback=a;this.Fd=b;this.Ha=c;this.dd=d;this.Ye=e;this.Na=f;this.nj=!0;this.cE=!1};
d0=function(a,b,c,d,e,f,h,l,m,n){c0.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.J=l;this.u=[];this.i=-1;this.C=!1};
e0=function(a,b,c){var d=X(a.Kb().Ia,"metadata_type_linked_in_player_layout_id");return d?d:(S("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Bd(),a.Kb(),{requestingSlot:b,requestingLayout:c}),null)};
f0=function(a,b,c,d){if(!a.C){var e=a.u[a.i];e?(e.Kb().layoutId!==c.layoutId&&S("SubLayout mismatch in exitSubLayoutAndPlayNext",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:e.Kb().layoutId}),a.C=!0,e.df(e.Kb(),d),EJ(a.B,b,c,d),a.C=!1,a.D?(a.D(),PJ(a.dd.get())):dKa(a)):S("No active adapter when exitSubLayoutAndPlayNext in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
dKa=function(a){if(a.i===a.u.length-1)a.i++,g0(a.J,a.layout.layoutId),PJ(a.dd.get());else{-1===a.i&&a.callback.Kc(a.slot,a.layout);a.i++;var b=a.u[a.i];0<a.i&&Iqa(a.dd.get());b.startRendering(b.Kb())}};
h0=function(a){return!a.Tn.Ac()&&a.state.Ac()};
i0=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
eKa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.percent)};
fKa=function(a){var b,c;return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null===(b=a.adVideoOffset)||void 0===b?void 0:b.kind)?!1:null!=(null===(c=a.adVideoOffset)||void 0===c?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
gKa=function(a,b,c,d){var e;this.D=a;this.layoutId=c;this.J=d;this.u=[];this.i=[];this.B=this.C=0;a=g.r(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,null===(e=b.adVideoOffset)||void 0===e?void 0:e.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":eKa(b)?this.u.push(b):S("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":fKa(b)?this.i.push(b):S("Invalid AdVideoProgressMillisecondsCommand");break;default:S("Unknown or invalid AdVideoProgressOffSet kind")}this.u.sort(function(f,
h){return f.adVideoOffset.percent-h.adVideoOffset.percent});
this.i.sort(function(f,h){return Number(f.adVideoOffset.milliseconds)-Number(h.adVideoOffset.milliseconds)})};
k0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){var x;g.I.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Va=d;this.ma=e;this.Ha=f;this.dd=h;this.Ja=l;this.B=m;this.K=n;this.position=q;this.Da=t;this.Na=u;this.nj=!0;this.Aa=!1;this.u="not_rendering";a=X(this.layout.Ia,"metadata_type_ad_placement_config");this.i=new Q_(c.tc,this.Va,a,c.layoutId);a=(null===(x=j0(this))||void 0===x?void 0:x.progressCommands)||[];this.Ua=new gKa(m,a,c.layoutId,function(){return y.Nl()});
this.ya=We(function(){y.callback.Kc(y.slot,y.layout)});
this.S=We(function(){"rendering_stop_requested"!==y.u&&p(y);y.Z?y.callback.Wc(y.slot,y.layout,y.Z):S("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
j0=function(a){return X(a.layout.Ia,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
l0=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.u){XJa(a.i,1E3*b,c);var d=a.Nl();if(d&&(d/=1E3,(b>=.25*d||c)&&T_(a.i,"first_quartile"),(b>=.5*d||c)&&T_(a.i,"midpoint"),(b>=.75*d||c)&&T_(a.i,"third_quartile"),a=a.Ua,b*=1E3,c=a.J())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.D.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.i.length;)if(c=a.i[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.D.get().executeCommand(c.command,a.layoutId),a.B++;else break}}};
n0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){k0.call(this,a,b,c,d,e,f,h,m,n,p,q,t,u,x);var y=this;this.Ic=l;this.vz=!0;this.Y=this.C=0;p_(this.Na.get())?(this.J=new uJ(this.Nl(),function(A){l0(y,A/1E3);m0(y,A)},function(){l0(y,y.Nl()/1E3,!0);
m0(y,y.Nl());y.S()}),g.J(this,this.J)):(this.D=new g.rh(200),this.D.Qa("tick",function(){y.Qb()}),g.J(this,this.D))};
hKa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.r(R_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ud:a,bf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
iKa=function(a){p_(a.Na.get())?a.J.start():(a.Y=Date.now(),m0(a,a.C),a.D.start())};
KJa=function(a){return p_(a.Na.get())?a.J.i/1E3:a.C/1E3};
m0=function(a,b){b={current:b/1E3,duration:a.Nl()/1E3};a.Ic.get().Oa("onAdPlaybackProgress",b)};
o0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G,E){k0.call(this,a,b,c,d,e,m,p,t,u,y,A,F,G,E);var K=this;this.Sa=f;this.Fd=h;this.Y=l;this.J=n;this.Ic=q;this.La=x;this.adCpn="";this.D=new g.M(function(){K.ow("load_timeout",new VY("Media layout load timeout.",{},!0))},1E4)};
jKa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.r(R_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ud:a,bf:["LAYOUT_TYPE_MEDIA"]}};
p0=function(a,b,c,d,e,f,h){c0.call(this,a,b,c,d,f,h);this.i=e};
lKa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G){if(O_(d,{Ud:["metadata_type_sub_layouts"],bf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var E=X(d.Ia,"metadata_type_sub_layouts");a=new d0(a,n,q,u,b,c,d,f,e,G);e=[];for(b={Ko:0};b.Ko<E.length;b={Ko:b.Ko},b.Ko++){var K=kKa({Kc:a.OV.bind(a),Wc:a.QV.bind(a),wf:a.PV.bind(a)},c,E[b.Ko],h,l,m,n,p,q,t,u,x,y,A,F,function(V){return function(L){L.df(E[V.Ko],"normal")}}(b),b.Ko,E.length,G);
if(!K)return;e.push(K)}a.u=e;return a}if(O_(d,{Ud:[],bf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=kKa({Kc:a.Kc.bind(a),Wc:a.Wc.bind(a),wf:a.wf.bind(a)},c,d,h,l,m,n,p,q,t,u,x,y,A,F,function(){g0(f,d.layoutId)},0,1,G))?new p0(a,n,q,u,c,e,G):c};
kKa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G){if(O_(c,hKa()))return new n0(a,b,c,d,e,m,p,q,t,u,function(){},y,A,F,G);
if(O_(c,jKa()))return bA(c.Ia,"metadata_type_ad_intro")?new o0(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,function(E){q.get().Oa("onAdIntroStateChange",E)},y,A,F,G):new o0(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,function(E){q.get().Ei(E)},y,A,F,G)};
q0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x){this.Ye=a;this.J=b;this.Va=c;this.D=d;this.S=e;this.Fd=f;this.K=h;this.Ha=l;this.B=m;this.dd=n;this.Ic=p;this.i=q;this.u=t;this.C=u;this.Na=x};
r0=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.D=a;this.J=b;this.B=c;this.u=e;this.Ha=f;this.Na=h;this.C=l;this.i=null;d.get().addListener(this);g.qe(this,function(){d.get().removeListener(m)});
e.get().addListener(this);g.qe(this,function(){e.get().removeListener(m)})};
mJa=function(a,b){if(aA(a.B.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind||KZ(a.Na.get()))if(a.i)S("Unexpected multiple fetch instructions for the current content");else{a.i=b;b=g.r(a.u.get().cB);for(var c=b.next();!c.done;c=b.next())mKa(a,a.i,c.value)}};
mKa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);$z(a.D.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.J.get(),f=o_(a.Na.get());var h=1E3*c.startSecs;h={Pk:new kr(h,h+1E3*c.durationSecs),xA:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new kr(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new kr(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Mr=f;return[rIa(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new WI(c)])]})};
s0=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.J=a;this.S=b;this.K=c;this.D=d;this.u=e;this.B=f;this.i=h;this.Na=l;this.C=m;this.nj=!0};
nKa=function(a,b,c){return zJa(a.u.get(),b.contentCpn,b.vt,function(d){return sJa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.vt,MY(a.i.get(),d))})};
t0=function(a){var b,c=null===(b=X(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=X(a.Ia,"metadata_type_content_cpn"),f=X(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),h=X(a.Ia,"metadata_type_player_underlay_renderer"),l=X(a.Ia,"metadata_type_ad_placement_config"),m=X(a.Ia,"metadata_type_video_length_seconds");var n=bA(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?X(a.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):bA(a.Ia,
"metadata_type_layout_enter_ms")&&bA(a.Ia,"metadata_type_layout_exit_ms")?(X(a.Ia,"metadata_type_layout_exit_ms")-X(a.Ia,"metadata_type_layout_enter_ms"))/1E3:void 0;a={vt:d,contentCpn:e,UM:c,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,DE:n,dE:X(a.Ia,"metadata_type_linked_in_player_layout_id"),KK:X(a.Ia,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
pKa=function(a,b){return oKa(a,b)};
qKa=function(a,b){var c;b=oKa(a,b);if(!b)return null;b.DE=null===(c=X(a.Ia,"metadata_type_ad_pod_info"))||void 0===c?void 0:c.adBreakRemainingLengthSeconds;return b};
oKa=function(a,b){var c,d=null===(c=X(a.Ia,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(bA(a.Ia,"metadata_ad_video_is_listed"))var e=X(a.Ia,"metadata_ad_video_is_listed");else b?e=b.isListed:(S("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);bA(a.Ia,"metadata_type_ad_info_ad_metadata")?b=X(a.Ia,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Si,channelThumbnailUrl:b.Qh,channelTitle:b.author,videoTitle:b.title}:(S("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{OQ:b,adPlacementConfig:X(a.Ia,"metadata_type_ad_placement_config"),QQ:e,contentCpn:X(a.Ia,"metadata_type_content_cpn"),dE:X(a.Ia,"metadata_type_linked_in_player_layout_id"),KK:X(a.Ia,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:X(a.Ia,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,DE:void 0,UM:d,vt:a.layoutId,videoLengthSeconds:X(a.Ia,"metadata_type_video_length_seconds")}};
rKa=function(a,b){this.callback=a;this.slot=b};
u0=function(){};
sKa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
tKa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.u=!1;this.i=0};
uKa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
v0=function(a){this.Ha=a};
w0=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
x0=function(a){g.I.call(this);this.WB=a;this.Hb=new Map};
vKa=function(a,b){for(var c=[],d=g.r(a.Hb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof xZ&&f.Ee===b&&c.push(e)}c.length?bZ(a.WB(),c):S("Survey is submitted but no registered triggers can be activated.")};
y0=function(a,b){x0.call(this,a);var c=this;b.get().addListener(this);g.qe(this,function(){b.get().removeListener(c)})};
z0=function(a){g.I.call(this);this.i=a;this.nj=!0;this.Hb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set};
A0=function(a,b){g.I.call(this);var c=this;this.i=a;this.Hb=new Map;b.get().addListener(this);g.qe(this,function(){b.get().removeListener(c)})};
wKa=function(a,b,c,d){var e=[];a=g.r(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof $Z){var h=f.trigger.i===b;h===c?e.push(f):d&&h&&(S("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
B0=function(a,b,c,d){g.I.call(this);var e=this;this.u=a;this.B=b;this.Ha=c;this.C=d;this.Hb=new Map;this.i=new Set;c.get().addListener(this);g.qe(this,function(){c.get().removeListener(e)})};
C0=function(a,b,c,d,e,f,h,l,m,n){if(aA(a.C.get(),1).clientPlaybackNonce!==m)throw new dZ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Hb.set(c.triggerId,{bundle:new w0(b,c,d,e),wy:f});a.B.get().addCueRange(f,h,l,n,a)};
xKa=function(a,b){a=g.r(a.Hb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;if(b===d.wy)return c}return""};
D0=function(a){g.I.call(this);this.B=a;this.nj=!0;this.Hb=new Map;this.u=this.i=null};
g0=function(a,b){for(var c=[],d=g.r(a.Hb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof zZ){var f;if(f=e.trigger.layoutId===b)f=(f=cIa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&bZ(a.B(),c)};
E0=function(a){g.I.call(this);this.i=a;this.nj=!0;this.Hb=new Map};
F0=function(a,b,c,d,e,f){g.I.call(this);this.B=a;this.D=b;this.J=c;this.S=d;this.K=e;this.Na=f;this.i=this.u=null;this.C=!1;this.D.get().addListener(this)};
qqa=function(a,b,c,d,e){var f=GZ(a.K.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ub:void 0,qc:[],pc:[],gb:"surface",Ia:new HY([])};a.i={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",tc:new Map,wd:[],Qc:[],Pc:[],Rc:[],Uc:[],gb:"surface",Ia:new HY(c),Ec:YHa(LY(a.J.get()),f,"SLOT_TYPE_PLAYER_BYTES",1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};d&&($Y(a.B(),a.u,a.i),a.C=!0,aZ(a.B(),a.u,a.i))};
G0=function(a){this.Vo=a};
yKa=function(a,b){if(!a)return{zl:[],ot:!0};a.trackingParams&&Zqa(jK(),a.trackingParams);if(a.adThrottled)return{zl:[],ot:!0};a=a.playerAds;if(!a||!a.length)return{zl:[],ot:!1};a=a.map(function(d){return d.adPlacementRenderer}).filter(function(d){return!(!d||!d.renderer)});
if(!a.length)return{zl:[],ot:!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{zl:a,
ot:!1}};
H0=function(a){g.I.call(this);this.I=a;this.listeners=[];this.i=new jy(this);g.J(this,this.i);this.i.T(this.I,"aduxclicked",this.onAdUxClicked);this.i.T(this.I,"aduxmouseover",this.QE);this.i.T(this.I,"aduxmouseout",this.PE);this.i.T(this.I,"muteadaccepted",this.uT)};
zKa=function(a,b,c){b=g.lm(b,function(d){return new tA(d,c,d.id)});
a.I.Oa("onAdUxUpdate",b)};
I0=function(a,b){a=g.r(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
J0=function(a,b,c,d){g.I.call(this);this.I=a;this.C=b;this.Na=c;this.Va=d;this.listeners=[];this.u=new Set;this.cB=[];this.B=new IJ(this,DJa(c.get()));this.i=new JJ;AKa(this)};
AKa=function(a){var b,c=a.I.getVideoData(1);c.subscribe("cuepointupdated",a.XE,a);a.u.clear();a.cB.length=0;c=(null===(b=c.i)||void 0===b?void 0:Zla(b,0))||[];a.XE(c)};
BKa=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");}};
K0=function(a){this.I=a};
L0=function(a){this.I=a};
M0=function(){this.listeners=[]};
CKa=function(a){this.I=a};
N0=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.K=e;this.D=f;this.Ha=h;this.i=l;this.Va=m;this.S=n;this.driftRecoveryMs=X(this.layout.Ia,"metadata_type_drift_recovery_ms")||null};
DKa=function(a){var b=X(a.layout.Ia,"metadata_type_layout_enter_ms"),c=X(a.layout.Ia,"metadata_type_layout_exit_ms");a=a.D.get();b=KJ(a.i,b,c);return Math.min(c,null!==b?b:Infinity)};
O0=function(a,b){var c;x_(a.Va.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.B.get().rp)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ec.adClientDataEntry},b)})};
P0=function(a,b,c,d,e,f,h,l,m,n,p){N0.call(this,a,b,c,d,e,f,h,l,m,n);this.J=p;this.C=this.u=null;a=g.r(this.J);for(b=a.next();!b.done;b=a.next())b=b.value,bA(b.Kb().Ia,"metadata_type_survey_overlay")&&(this.C=b.Kb().layoutId)};
FKa=function(a,b){var c=EKa(a,b);a.u={ci:c};c?c.startRendering(c.Kb()):b===a.C&&S("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
EKa=function(a,b){return null==b?null:a.J.find(function(c){return c.Kb().layoutId===b})||null};
GKa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=bA(b.Ia,"metadata_type_survey_overlay");if(!p)return h.Vv(c,2,f,d,e,a.slotId),n.gh("ads_iraot","d."+p+";sid."+a.slotId+";vl."+f+";hso."+q),null;c=h.xr(c,2,f,d,e,a.slotId);n.gh("ads_atct","d."+p+";sid."+a.slotId+";vl."+f+";hso."+q);if(!c)return S("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;c?(l.i.has(c)&&S("Unexpected remap of timeline playback"),l.i.set(c,{slotId:a,layoutId:b})):S("Invalid timeline playback ID");
d+f>e&&h.At(c,e-d);return c};
HKa=function(a,b){var c=X(b.Ia,"metadata_type_sodar_extension_data");if(c)try{QJa(0,c)}catch(d){S("Unexpected error when loading Sodar",a,b,{error:d})}};
IKa=function(a,b,c,d,e,f){c=new g.cI(c,new g.UJ);Q0(a,b,c,d,e,!1,f)};
Q0=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;h0(c)&&i0(e,0,null)&&(!a.i.has("impression")&&h&&h(),T_(a,"impression"));a.i.has("impression")&&(g.eI(c,4)&&!g.eI(c,2)&&a.Jf("pause"),0>dI(c,4)&&!(0>dI(c,2))&&a.Jf("resume"),g.eI(c,16)&&.5<=e&&a.Jf("seek"),f&&g.eI(c,2)&&R0(a,c.state,b,d,e))};
R0=function(a,b,c,d,e){if(a.i.has("impression")){var f=1>=Math.abs(d-e);S0(a,b,f?d:e,c,d);f&&T_(a,"complete")}};
S0=function(a,b,c,d,e){XJa(a,1E3*c);0>=e||0>=c||(null===b||void 0===b?0:g.T(b,16))||(null===b||void 0===b?0:g.T(b,32))||(i0(c,.25*e,d)&&T_(a,"first_quartile"),i0(c,.5*e,d)&&T_(a,"midpoint"),i0(c,.75*e,d)&&T_(a,"third_quartile"))};
JKa=function(a,b){a.i.has("impression")&&a.Jf(b?"fullscreen":"end_fullscreen")};
KKa=function(a){a.i.has("impression")&&a.Jf("clickthrough")};
LKa=function(a){a.Jf("active_view_measurable")};
MKa=function(a){a.i.has("impression")&&!a.i.has("seek")&&a.Jf("active_view_fully_viewable_audible_half_duration")};
NKa=function(a){a.i.has("impression")&&!a.i.has("seek")&&a.Jf("active_view_viewable")};
OKa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.u=e;this.Ha=f;this.K=h;this.B=l;this.J=m;this.Na=n;this.Va=p;this.C=q;this.vz=!0;this.Dc=this.i=null};
PKa=function(a,b){var c;a.Va.get().gh("ads_imp","acpn."+(null===(c=aA(a.C.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
T0=function(a){return{enterMs:X(a.Ia,"metadata_type_layout_enter_ms"),exitMs:X(a.Ia,"metadata_type_layout_exit_ms")}};
U0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){N0.call(this,a,b,c,d,e,h,l,m,n,q);this.Z=f;this.J=p;this.C=t;this.Na=u;this.Dc=this.u=null};
QKa=function(a,b){var c;a.Va.get().gh("ads_imp","acpn."+(null===(c=aA(a.B.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)};
V0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,A,F,G){this.Ye=a;this.ya=b;this.i=c;this.B=d;this.Ha=e;this.Va=f;this.K=h;this.D=l;this.u=m;this.C=n;this.Fd=p;this.Y=q;this.dd=t;this.Ic=u;this.S=x;this.Z=y;this.ma=A;this.Na=F;this.J=G};
W0=function(a){g.I.call(this);this.i=a;this.Hb=new Map};
X0=function(a,b){for(var c=[],d=g.r(a.Hb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&bZ(a.i(),c)};
Y0=function(a,b){var c;g.I.call(this);var d=this;this.C=a;this.u=new Map;this.B=new Map;this.i=null;b.get().addListener(this);g.qe(this,function(){b.get().removeListener(d)});
this.i=(null===(c=b.get().rp)||void 0===c?void 0:c.slotId)||null};
RKa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
Z0=function(a){this.I=a};
$0=function(){this.listeners=new Set};
SKa=function(a,b,c,d,e){wH.call(this,"image-companion",a,b,c,d,e)};
a1=function(a,b,c,d,e,f,h,l){V_.call(this,a,b,c,d);this.Va=e;this.Ye=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");PY(this.Ye(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new Q_(c.tc,this.Va,a,c.layoutId)};
TKa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];R_().forEach(function(b){a.push(b)});
return{Ud:a,bf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
UKa=function(a,b,c,d,e){wH.call(this,"shopping-companion",a,b,c,d,e)};
b1=function(a,b,c,d,e,f,h,l){V_.call(this,a,b,c,d);this.Va=e;this.Ye=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");PY(this.Ye(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new Q_(c.tc,this.Va,a,c.layoutId)};
VKa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];R_().forEach(function(b){a.push(b)});
return{Ud:a,bf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
WKa=function(a,b,c,d,e){this.i=a;this.Va=b;this.Ye=c;this.u=d;this.B=e};
c1=function(a,b,c){wH.call(this,"player-underlay",a,{},b,c);this.yb=c};
d1=function(a,b,c,d){V_.call(this,a,b,c,d)};
XKa=function(a){this.i=a};
e1=function(a,b,c,d,e){V_.call(this,c,a,b,d);this.Va=e;a=X(b.Ia,"metadata_type_ad_placement_config");this.B=new Q_(b.tc,e,a,b.layoutId)};
f1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
h1=function(a,b,c){c=void 0===c?g1:c;c.width<g1.width&&(c=g1);if(a.width<c.width||a.height<c.height)return{oB:3,xx:501,errorMessage:"ad("+f1(c)+") larger than container("+f1(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{oB:3,xx:501,errorMessage:"ad("+f1(c)+") to container("+f1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{oB:3,xx:501,errorMessage:"ad("+f1(c)+") covers container("+f1(a)+") center."}};
YKa=function(a,b){var c=X(a.Ia,"metadata_type_ad_placement_config");return new Q_(a.tc,b,c,a.layoutId)};
i1=function(a){return X(a.Ia,"metadata_type_invideo_overlay_ad_renderer")};
j1=function(a,b,c,d){wH.call(this,"invideo-overlay",a,b,c,d);this.yb=d};
k1=function(a,b,c,d,e,f,h,l,m,n,p,q){V_.call(this,f,a,b,e);this.Va=c;this.B=h;this.Ha=l;this.J=m;this.Na=n;this.Nd=p;this.C=q;this.K=YKa(b,c)};
ZKa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];R_().forEach(function(b){a.push(b)});
return{Ud:a,bf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
l1=function(a,b,c,d,e,f,h,l,m,n,p,q,t){V_.call(this,f,a,b,e);this.Va=c;this.B=h;this.J=l;this.Ha=m;this.K=n;this.Na=p;this.Nd=q;this.C=t;this.S=YKa(b,c)};
$Ka=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(R_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ud:a,bf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
m1=function(a){this.Ha=a;this.i=!1};
n1=function(a,b,c,d,e,f,h){V_.call(this,c,a,b,d);this.B=e;this.Ha=f;this.Na=h};
aLa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ha=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Na=m;this.Nd=n};
o1=function(a){g.I.call(this);this.B=a;this.nj=!0;this.Hb=new Map;this.i=new Map;this.u=new Map};
bLa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
p1=function(a,b,c){g.I.call(this);this.B=a;this.C=b;this.D=c;this.i=this.u=void 0;this.C.get().addListener(this)};
cLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ma=Y(function(){return new QZ});
g.J(this,this.ma);this.ya=Y(function(){return new UZ(f.ma)});
g.J(this,this.ya);this.B=Y(function(){return new PZ});
g.J(this,this.B);this.S=Y(function(){return new LZ(a)});
g.J(this,this.S);this.Z=Y(function(){return new g_(f.ma)});
g.J(this,this.Z);this.Mb=Y(function(){return new j_});
g.J(this,this.Mb);this.uc=Y(function(){return new xH(b.V())});
g.J(this,this.uc);this.Y=Y(function(){return new H0(b)});
g.J(this,this.Y);this.Za=Y(function(){return new F_(e)});
g.J(this,this.Za);this.dd=Y(function(){return new OJ(b)});
g.J(this,this.dd);this.Ja=Y(function(){return new l_(b)});
g.J(this,this.Ja);this.Fd=Y(function(){return new K0(b)});
g.J(this,this.Fd);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.Zb=Y(function(){return new G0(d)});
g.J(this,this.Zb);this.C=Y(function(){return new NY(f.Na)});
g.J(this,this.C);this.Ua=Y(function(){return new IZ(f.Z,f.ya,f.Na,f.C,"SLOT_TYPE_ABOVE_FEED",f.jb)});
g.J(this,this.Ua);this.Sc=Y(function(){return new L0(b)});
g.J(this,this.Sc);this.xb=Y(function(){return new M0});
g.J(this,this.xb);this.qb=Y(function(){return new $0});
g.J(this,this.qb);this.i=Y(function(){return new A_(b,f.Mb,f.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.C,this.i);g.J(this,this.dc);this.Ka=Y(function(){return new J0(b,f.i,f.Na,f.Va)});
g.J(this,this.Ka);this.Sa=Y(function(){return new Z0(b)});
g.J(this,this.Sa);this.Ha=Y(function(){return new B_(b,f.i)});
g.J(this,this.Ha);this.gf=Y(function(){return new G_});
this.Aa=Y(function(){return new q_(f.Ha,b)});
g.J(this,this.Aa);this.Va=Y(function(){return new v_(b,f.B,f.Aa,f.i)});
g.J(this,this.Va);this.qd=new s0(t0,q1,function(l,m,n,p){return VZ(f.ya.get(),l,m,n,p)},this.S,this.Z,this.ya,this.C,this.Na,this.i);
g.J(this,this.qd);this.yc=new eA(this.S,this.Ua,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var h=new k_(b,this.yc,this.Ha,this.i,this.Ka);this.eb=Y(function(){return h});
this.Un=h;this.jb=new r0(this.S,this.Z,this.i,this.eb,this.Ka,this.Ha,this.Na,this.Sa);g.J(this,this.jb);this.Eb=new OZ(this.S,this.Z,this.Ja,this.eb);g.J(this,this.Eb);this.zc=new Zz(this.S,this.Z,this.Ua,this.i,this.Eb,c);g.J(this,this.zc);this.kc=Y(function(){return new M_(f.Zb,f.ya,f.C,f.Sa)});
g.J(this,this.kc);this.D=Y(function(){return new N_});
g.J(this,this.D);this.Da=new y0(a,this.Y);g.J(this,this.Da);this.u=new z0(a);g.J(this,this.u);this.Ya=new W0(a);g.J(this,this.Ya);this.kb=new A0(a,this.eb);g.J(this,this.kb);this.La=new B0(a,this.Ja,this.Ha,this.i);g.J(this,this.La);this.zb=new Y0(a,this.i);g.J(this,this.zb);this.K=new D0(a);g.J(this,this.K);this.bd=new E0(a);g.J(this,this.bd);this.Fb=new o1(a);g.J(this,this.Fb);this.J=Y(function(){return new u0});
g.J(this,this.J);this.rd=Y(function(){return new v0(f.Ha)});
g.J(this,this.rd);this.Md=Y(function(){return new WKa(f.Y,f.Va,a,f.B,f.Aa)});
g.J(this,this.Md);this.ac=Y(function(){return new P_(f.zc)});
g.J(this,this.ac);this.wc=Y(function(){return new U_(f.Va,f.K)});
g.J(this,this.wc);this.cd=Y(function(){return new V0(a,f.K,f.i,f.Sa,f.Ha,f.Va,f.Mb,f.Ka,f.Aa,f.gf,f.Fd,f.Ja,f.dd,f.Ic,f.uc,f.Za,f.Sc,f.Na,f.B)});
g.J(this,this.cd);this.Fc=Y(function(){return new aLa(f.Y,f.Ha,f.Va,f.B,f.Aa,f.Ya,f.Fb,f.Za,f.Na,c)});
g.J(this,this.Fc);this.xe=Y(function(){return new XKa(f.Y)});
g.J(this,this.xe);this.Fe=new p1(a,this.qb,this.ma);g.J(this,this.Fe);this.Xe=new F0(a,this.xb,this.C,this.i,this.ma,this.Na);g.J(this,this.Xe);this.Kd={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eb]]),Ll:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.kc],["SLOT_TYPE_ABOVE_FEED",this.D],["SLOT_TYPE_FORECASTING",this.D],["SLOT_TYPE_IN_PLAYER",this.D],["SLOT_TYPE_PLAYER_BYTES",this.D],["SLOT_TYPE_PLAYER_UNDERLAY",this.D]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Da],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Da],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",
this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ya],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",
this.zb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.bd],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Fb]]),ym:new Map([["SLOT_TYPE_ABOVE_FEED",this.J],["SLOT_TYPE_AD_BREAK_REQUEST",this.J],["SLOT_TYPE_FORECASTING",this.J],["SLOT_TYPE_IN_PLAYER",this.J],["SLOT_TYPE_PLAYER_BYTES",this.rd],["SLOT_TYPE_PLAYER_UNDERLAY",
this.J]]),Zl:new Map([["SLOT_TYPE_ABOVE_FEED",this.Md],["SLOT_TYPE_AD_BREAK_REQUEST",this.ac],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.cd],["SLOT_TYPE_IN_PLAYER",this.Fc],["SLOT_TYPE_PLAYER_UNDERLAY",this.xe]])};this.listeners=[this.B.get()];this.Yp={zc:this.zc,hk:this.K,dm:this.xb.get(),Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:this.qb.get(),Ai:this.Da,eh:this.B.get()}};
dLa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ha=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Na=m;this.Nd=n};
eLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.J=Y(function(){return new QZ});
g.J(this,this.J);this.K=Y(function(){return new UZ(f.J)});
g.J(this,this.K);this.S=Y(function(){return new PZ});
g.J(this,this.S);this.C=Y(function(){return new LZ(a)});
g.J(this,this.C);this.D=Y(function(){return new g_(f.J)});
g.J(this,this.D);this.cd=Y(function(){return new j_});
g.J(this,this.cd);this.Mb=Y(function(){return new xH(b.V())});
g.J(this,this.Mb);this.Ja=Y(function(){return new H0(b)});
g.J(this,this.Ja);this.Ua=Y(function(){return new F_(e)});
g.J(this,this.Ua);this.dd=Y(function(){return new OJ(b)});
g.J(this,this.dd);this.Y=Y(function(){return new l_(b)});
g.J(this,this.Y);this.Fd=Y(function(){return new K0(b)});
g.J(this,this.Fd);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.zb=Y(function(){return new G0(d)});
g.J(this,this.zb);this.B=Y(function(){return new NY(f.Na)});
g.J(this,this.B);this.Ka=Y(function(){return new IZ(f.D,f.K,f.Na,f.B,null,f.eb)});
g.J(this,this.Ka);this.kc=Y(function(){return new L0(b)});
g.J(this,this.kc);this.jb=Y(function(){return new M0});
g.J(this,this.jb);this.kb=Y(function(){return new $0});
g.J(this,this.kb);this.i=Y(function(){return new A_(b,f.cd,f.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.B,this.i);g.J(this,this.dc);this.rd=Y(function(){return new J0(b,f.i,f.Na,f.Va)});
this.Ha=Y(function(){return new B_(b,f.i)});
g.J(this,this.Ha);this.Da=Y(function(){return new q_(f.Ha,b)});
g.J(this,this.Da);this.Va=Y(function(){return new v_(b,f.S,f.Da,f.i)});
g.J(this,this.Va);this.bd=Y(function(){return new G_});
g.J(this,this.bd);this.Fc=new s0(t0,q1,function(l,m,n,p){return VZ(f.K.get(),l,m,n,p)},this.C,this.D,this.K,this.B,this.Na,this.i);
g.J(this,this.Fc);this.yc=new eA(this.C,this.Ka,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var h=new k_(b,this.yc,this.Ha,this.i);this.Ya=Y(function(){return h});
this.Un=h;this.eb=new r0(this.C,this.D,this.i,this.Ya,this.rd,this.Ha,this.Na);g.J(this,this.eb);this.qb=new OZ(this.C,this.D,this.Y,this.Ya);g.J(this,this.qb);this.zc=new Zz(this.C,this.D,this.Ka,this.i,this.qb,c);g.J(this,this.zc);this.Fb=Y(function(){return new M_(f.zb,f.K,f.B)});
g.J(this,this.Fb);this.ya=Y(function(){return new N_});
g.J(this,this.ya);this.La=new y0(a,this.Ja);g.J(this,this.La);this.u=new z0(a);g.J(this,this.u);this.Sa=new W0(a);g.J(this,this.Sa);this.Za=new A0(a,this.Ya);g.J(this,this.Za);this.ma=new B0(a,this.Y,this.Ha,this.i);g.J(this,this.ma);this.Z=new D0(a);g.J(this,this.Z);this.uc=new E0(a);g.J(this,this.uc);this.xb=new o1(a);g.J(this,this.xb);this.Aa=Y(function(){return new u0});
g.J(this,this.Aa);this.Sc=Y(function(){return new v0(f.Ha)});
g.J(this,this.Sc);this.Eb=Y(function(){return new P_(f.zc)});
g.J(this,this.Eb);this.Zb=Y(function(){return new U_(f.Va,f.Z)});
g.J(this,this.Zb);this.ac=Y(function(){return new dLa(f.Ja,f.Ha,f.Va,f.S,f.Da,f.Sa,f.xb,f.Ua,f.Na,c)});
g.J(this,this.ac);this.wc=Y(function(){return new q0(a,f.Z,f.Va,f.Da,f.bd,f.Fd,f.i,f.Ha,f.Y,f.dd,f.Ic,f.Mb,f.Ua,f.kc,f.Na)});
g.J(this,this.wc);this.qd=new p1(a,this.kb,this.J);g.J(this,this.qd);this.Md=new F0(a,this.jb,this.B,this.i,this.J,this.Na);g.J(this,this.Md);this.Kd={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.eb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),Ll:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Fb],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.ya]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Sa],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Za],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ma],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ma],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ma],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Z],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Z],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Za],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.xb]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.Sc]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Eb],["SLOT_TYPE_FORECASTING",this.Zb],["SLOT_TYPE_IN_PLAYER",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.wc]])};this.listeners=[this.S.get()];this.Yp={zc:this.zc,hk:null,dm:this.jb.get(),
Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:this.kb.get(),Ai:this.La,eh:this.S.get()}};
fLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ya=Y(function(){return new QZ});
g.J(this,this.ya);this.D=Y(function(){return new UZ(f.ya)});
g.J(this,this.D);this.J=Y(function(){return new PZ});
g.J(this,this.J);this.S=Y(function(){return new LZ(a)});
g.J(this,this.S);this.Z=Y(function(){return new g_(f.ya)});
g.J(this,this.Z);this.uc=Y(function(){return new j_});
g.J(this,this.uc);this.jb=Y(function(){return new xH(b.V())});
g.J(this,this.jb);this.Da=Y(function(){return new H0(b)});
g.J(this,this.Da);this.qb=Y(function(){return new F_(e)});
g.J(this,this.qb);this.dd=Y(function(){return new OJ(b)});
g.J(this,this.dd);this.Y=Y(function(){return new l_(b)});
g.J(this,this.Y);this.Fd=Y(function(){return new K0(b)});
g.J(this,this.Fd);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.Za=Y(function(){return new G0(d)});
g.J(this,this.Za);this.B=Y(function(){return new NY(f.Na)});
g.J(this,this.B);this.Aa=Y(function(){return new IZ(f.Z,f.D,f.Na,f.B,null,null)});
g.J(this,this.Aa);this.Eb=Y(function(){return new L0(b)});
g.J(this,this.Eb);this.Sa=Y(function(){return new M0});
g.J(this,this.Sa);this.i=Y(function(){return new A_(b,f.uc,f.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ha=Y(function(){return new B_(b,f.i)});
g.J(this,this.Ha);this.Ua=Y(function(){return new q_(f.Ha,b)});
g.J(this,this.Ua);this.Va=Y(function(){return new v_(b,f.J,f.Ua,f.i)});
g.J(this,this.Va);this.kc=Y(function(){return new G_});
g.J(this,this.kc);this.Zb=new s0(t0,q1,function(l,m,n,p){return VZ(f.D.get(),l,m,n,p)},this.S,this.Z,this.D,this.B,this.Na,this.i);
g.J(this,this.Zb);this.yc=new eA(this.S,this.Aa,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var h=new k_(b,this.yc,this.Ha,this.i);this.xb=Y(function(){return h});
this.Un=h;this.Ya=new OZ(this.S,this.Z,this.Y,this.xb);g.J(this,this.Ya);this.zc=new Zz(this.S,this.Z,this.Aa,this.i,this.Ya,c);g.J(this,this.zc);this.kb=Y(function(){return new M_(f.Za,f.D,f.B)});
g.J(this,this.kb);this.ma=Y(function(){return new N_});
g.J(this,this.ma);this.Ka=new y0(a,this.Da);g.J(this,this.Ka);this.u=new z0(a);g.J(this,this.u);this.Ja=new A0(a,this.xb);g.J(this,this.Ja);this.La=new B0(a,this.Y,this.Ha,this.i);g.J(this,this.La);this.K=new D0(a);g.J(this,this.K);this.Fb=new E0(a);g.J(this,this.Fb);this.C=Y(function(){return new u0});
g.J(this,this.C);this.ac=Y(function(){return new v0(f.Ha)});
g.J(this,this.ac);this.eb=Y(function(){return new P_(f.zc)});
g.J(this,this.eb);this.zb=Y(function(){return new U_(f.Va,f.K)});
g.J(this,this.zb);this.wc=Y(function(){return new b0(f.Da,f.Ha,f.Va,f.J,c)});
g.J(this,this.wc);this.Mb=Y(function(){return new q0(a,f.K,f.Va,f.Ua,f.kc,f.Fd,f.i,f.Ha,f.Y,f.dd,f.Ic,f.jb,f.qb,f.Eb,f.Na)});
g.J(this,this.Mb);this.Fc=new F0(a,this.Sa,this.B,this.i,this.ya,this.Na);g.J(this,this.Fc);this.Kd={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Ll:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",
this.ma]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fb]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.ac]]),
Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.zb],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.Mb]])};this.listeners=[this.J.get()];this.Yp={zc:this.zc,hk:null,dm:this.Sa.get(),Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:null,Ai:this.Ka,eh:this.J.get()}};
gLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ya=Y(function(){return new QZ});
g.J(this,this.ya);this.C=Y(function(){return new UZ(f.ya)});
g.J(this,this.C);this.D=Y(function(){return new PZ});
g.J(this,this.D);this.K=Y(function(){return new LZ(a)});
g.J(this,this.K);this.S=Y(function(){return new g_(f.ya)});
g.J(this,this.S);this.wc=Y(function(){return new j_});
g.J(this,this.wc);this.kb=Y(function(){return new xH(b.V())});
g.J(this,this.kb);this.Da=Y(function(){return new H0(b)});
g.J(this,this.Da);this.jb=Y(function(){return new F_(e)});
g.J(this,this.jb);this.dd=Y(function(){return new OJ(b)});
g.J(this,this.dd);this.Z=Y(function(){return new l_(b)});
g.J(this,this.Z);this.Fd=Y(function(){return new K0(b)});
g.J(this,this.Fd);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.Ya=Y(function(){return new G0(d)});
g.J(this,this.Ya);this.B=Y(function(){return new NY(f.Na)});
g.J(this,this.B);this.Aa=Y(function(){return new IZ(f.S,f.C,f.Na,f.B,null,null)});
g.J(this,this.Aa);this.Fb=Y(function(){return new L0(b)});
g.J(this,this.Fb);this.La=Y(function(){return new M0});
g.J(this,this.La);this.i=Y(function(){return new A_(b,f.wc,f.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ha=Y(function(){return new B_(b,f.i)});
g.J(this,this.Ha);this.Sa=Y(function(){return new q_(f.Ha,b)});
g.J(this,this.Sa);this.Va=Y(function(){return new v_(b,f.D,f.Sa,f.i)});
g.J(this,this.Va);this.uc=Y(function(){return new G_});
g.J(this,this.uc);this.ac=new s0(t0,q1,function(l,m,n,p){return VZ(f.C.get(),l,m,n,p)},this.K,this.S,this.C,this.B,this.Na,this.i);
g.J(this,this.ac);this.yc=new eA(this.K,this.Aa,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var h=new k_(b,this.yc,this.Ha,this.i);this.qb=Y(function(){return h});
this.Un=h;this.Ua=new OZ(this.K,this.S,this.Z,this.qb);g.J(this,this.Ua);this.zc=new Zz(this.K,this.S,this.Aa,this.i,this.Ua,c);g.J(this,this.zc);this.eb=Y(function(){return new M_(f.Ya,f.C,f.B)});
g.J(this,this.eb);this.Y=Y(function(){return new N_});
g.J(this,this.Y);this.Ka=new y0(a,this.Da);g.J(this,this.Ka);this.u=new z0(a);g.J(this,this.u);this.Ja=new A0(a,this.qb);g.J(this,this.Ja);this.xb=new B0(a,this.Z,this.Ha,this.i);g.J(this,this.xb);this.J=new D0(a);g.J(this,this.J);this.Mb=new E0(a);g.J(this,this.Mb);this.ma=Y(function(){return new u0});
g.J(this,this.ma);this.kc=Y(function(){return new v0(f.Ha)});
g.J(this,this.kc);this.Za=Y(function(){return new P_(f.zc)});
g.J(this,this.Za);this.zb=Y(function(){return new U_(f.Va,f.J)});
g.J(this,this.zb);this.Eb=Y(function(){return new b0(f.Da,f.Ha,f.Va,f.D,c)});
g.J(this,this.Eb);this.Zb=Y(function(){return new q0(a,f.J,f.Va,f.Sa,f.uc,f.Fd,f.i,f.Ha,f.Z,f.dd,f.Ic,f.kb,f.jb,f.Fb,f.Na)});
g.J(this,this.Zb);this.Fc=new F0(a,this.La,this.B,this.i,this.ya,this.Na);g.J(this,this.Fc);this.Kd={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ac],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ua]]),Ll:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",
this.Y]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ja],["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.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mb]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ma],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Za],["SLOT_TYPE_FORECASTING",
this.zb],["SLOT_TYPE_IN_PLAYER",this.Eb],["SLOT_TYPE_PLAYER_BYTES",this.Zb]])};this.listeners=[this.D.get()];this.Yp={zc:this.zc,hk:null,dm:this.La.get(),Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:null,Ai:this.Ka,eh:this.D.get()}};
r1=function(a,b,c,d,e,f,h,l,m){$_.call(this,a,b,c,d,e,f,h,m);this.J=l};
hLa=function(){var a=cKa();a.Ud.push("metadata_type_ad_info_ad_metadata");return a};
iLa=function(a,b,c,d,e,f){this.u=a;this.Ha=b;this.Va=c;this.B=d;this.i=e;this.Nd=f};
jLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.ya=Y(function(){return new QZ});
g.J(this,this.ya);this.C=Y(function(){return new UZ(f.ya)});
g.J(this,this.C);this.D=Y(function(){return new PZ});
g.J(this,this.D);this.K=Y(function(){return new LZ(a)});
g.J(this,this.K);this.S=Y(function(){return new g_(f.ya)});
g.J(this,this.S);this.wc=Y(function(){return new j_});
g.J(this,this.wc);this.jb=Y(function(){return new CKa(b)});
g.J(this,this.jb);this.qb=Y(function(){return new xH(b.V())});
g.J(this,this.qb);this.Da=Y(function(){return new H0(b)});
g.J(this,this.Da);this.xb=Y(function(){return new F_(e)});
g.J(this,this.xb);this.dd=Y(function(){return new OJ(b)});
g.J(this,this.dd);this.Z=Y(function(){return new l_(b)});
g.J(this,this.Z);this.Fd=Y(function(){return new K0(b)});
g.J(this,this.Fd);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.Za=Y(function(){return new G0(d)});
g.J(this,this.Za);this.B=Y(function(){return new NY(f.Na)});
g.J(this,this.B);this.Aa=Y(function(){return new IZ(f.S,f.C,f.Na,f.B,null,null)});
g.J(this,this.Aa);this.Fb=Y(function(){return new L0(b)});
g.J(this,this.Fb);this.Sa=Y(function(){return new M0});
g.J(this,this.Sa);this.i=Y(function(){return new A_(b,f.wc,f.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ha=Y(function(){return new B_(b,f.i)});
g.J(this,this.Ha);this.Ua=Y(function(){return new q_(f.Ha,b)});
g.J(this,this.Ua);this.Va=Y(function(){return new v_(b,f.D,f.Ua,f.i)});
g.J(this,this.Va);this.uc=Y(function(){return new G_});
g.J(this,this.uc);this.ac=new s0(pKa,q1,function(l,m,n,p){return tJa(f.C.get(),l,m,n,p)},this.K,this.S,this.C,this.B,this.Na,this.i);
g.J(this,this.ac);this.yc=new eA(this.K,this.Aa,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var h=new k_(b,this.yc,this.Ha,this.i);this.zb=Y(function(){return h});
this.Un=h;this.Ya=new OZ(this.K,this.S,this.Z,this.zb);g.J(this,this.Ya);this.zc=new Zz(this.K,this.S,this.Aa,this.i,this.Ya,c);g.J(this,this.zc);this.kb=Y(function(){return new M_(f.Za,f.C,f.B)});
g.J(this,this.kb);this.Y=Y(function(){return new N_});
g.J(this,this.Y);this.Ka=new y0(a,this.Da);g.J(this,this.Ka);this.u=new z0(a);g.J(this,this.u);this.Ja=new A0(a,this.zb);g.J(this,this.Ja);this.La=new B0(a,this.Z,this.Ha,this.i);g.J(this,this.La);this.J=new D0(a);g.J(this,this.J);this.Mb=new E0(a);g.J(this,this.Mb);this.ma=Y(function(){return new u0});
g.J(this,this.ma);this.kc=Y(function(){return new v0(f.Ha)});
g.J(this,this.kc);this.eb=Y(function(){return new P_(f.zc)});
g.J(this,this.eb);this.Eb=Y(function(){return new U_(f.Va,f.J)});
g.J(this,this.Eb);this.Zb=Y(function(){return new q0(a,f.J,f.Va,f.Ua,f.uc,f.Fd,f.i,f.Ha,f.Z,f.dd,f.Ic,f.qb,f.xb,f.Fb,f.Na)});
g.J(this,this.Zb);this.Fc=Y(function(){return new iLa(f.Da,f.Ha,f.Va,f.D,f.jb,c)});
g.J(this,this.Fc);this.Sc=new F0(a,this.Sa,this.B,this.i,this.ya,this.Na);g.J(this,this.Sc);this.Kd={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ac],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Ll:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.Y],["SLOT_TYPE_IN_PLAYER",this.Y],["SLOT_TYPE_PLAYER_BYTES",
this.Y]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["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.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mb]]),ym:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ma],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.eb],["SLOT_TYPE_FORECASTING",this.Eb],["SLOT_TYPE_IN_PLAYER",this.Fc],["SLOT_TYPE_PLAYER_BYTES",this.Zb]])};this.listeners=[this.D.get()];this.Yp={zc:this.zc,hk:null,dm:this.Sa.get(),Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:null,Ai:this.Ka,eh:this.D.get()}};
kLa=function(a,b,c,d,e,f){this.i=a;this.Ha=b;this.Va=c;this.u=d;this.B=e;this.Nd=f};
lLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.Aa=Y(function(){return new QZ});
g.J(this,this.Aa);this.K=Y(function(){return new UZ(f.Aa)});
g.J(this,this.K);this.C=Y(function(){return new PZ});
g.J(this,this.C);this.D=Y(function(){return new LZ(a)});
g.J(this,this.D);this.J=Y(function(){return new g_(f.Aa)});
g.J(this,this.J);this.xb=Y(function(){return new j_});
g.J(this,this.xb);this.Mb=Y(function(){return new CKa(b)});
g.J(this,this.Mb);this.Zb=Y(function(){return new xH(b.V())});
g.J(this,this.Zb);this.Ja=Y(function(){return new H0(b)});
g.J(this,this.Ja);this.ac=Y(function(){return new F_(e)});
g.J(this,this.ac);this.dd=Y(function(){return new OJ(b)});
g.J(this,this.dd);this.Y=Y(function(){return new l_(b)});
g.J(this,this.Y);this.Fd=Y(function(){return new K0(b)});
g.J(this,this.Fd);this.Ic=Y(function(){return new m_(b)});
g.J(this,this.Ic);this.Na=Y(function(){return new n_(b)});
g.J(this,this.Na);this.zb=Y(function(){return new G0(d)});
g.J(this,this.zb);this.B=Y(function(){return new NY(f.Na)});
g.J(this,this.B);this.Ka=Y(function(){return new IZ(f.J,f.K,f.Na,f.B,null,f.Ya,3)});
g.J(this,this.Ka);this.wc=Y(function(){return new L0(b)});
g.J(this,this.wc);this.eb=Y(function(){return new M0});
g.J(this,this.eb);this.i=Y(function(){return new A_(b,f.xb,f.Na)});
g.J(this,this.i);this.dc=new i_(this.Na,this.B,this.i);g.J(this,this.dc);this.Z=Y(function(){return new J0(b,f.i,f.Na,f.Va)});
g.J(this,this.Z);this.Da=Y(function(){return new Z0(b)});
g.J(this,this.Da);this.Ha=Y(function(){return new B_(b,f.i)});
g.J(this,this.Ha);this.rd=Y(function(){return new G_});
this.kb=Y(function(){return new q_(f.Ha,b)});
g.J(this,this.kb);this.Va=Y(function(){return new v_(b,f.C,f.kb,f.i)});
g.J(this,this.Va);this.yc=new eA(this.D,this.Ka,c,this.Na,a,this.i,this.Ha);g.J(this,this.yc);var h=new k_(b,this.yc,this.Ha,this.i,this.Z);this.Sa=Y(function(){return h});
this.Un=h;this.bd=new s0(qKa,q1,function(l,m,n,p){return tJa(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.Na,this.i);
g.J(this,this.bd);this.Ya=new r0(this.D,this.J,this.i,this.Sa,this.Z,this.Ha,this.Na,this.Da);g.J(this,this.Ya);this.qb=new OZ(this.D,this.J,this.Y,this.Sa);g.J(this,this.qb);this.zc=new Zz(this.D,this.J,this.Ka,this.i,this.qb,c);g.J(this,this.zc);this.Fb=Y(function(){return new M_(f.zb,f.K,f.B,f.Da)});
g.J(this,this.Fb);this.ma=Y(function(){return new N_});
g.J(this,this.ma);this.La=new y0(a,this.Ja);g.J(this,this.La);this.u=new z0(a);g.J(this,this.u);this.Ua=new A0(a,this.Sa);g.J(this,this.Ua);this.Za=new B0(a,this.Y,this.Ha,this.i);g.J(this,this.Za);this.jb=new Y0(a,this.i);g.J(this,this.jb);this.S=new D0(a);g.J(this,this.S);this.Fc=new E0(a);g.J(this,this.Fc);this.ya=Y(function(){return new u0});
g.J(this,this.ya);this.cd=Y(function(){return new v0(f.Ha)});
g.J(this,this.cd);this.Eb=Y(function(){return new P_(f.zc)});
g.J(this,this.Eb);this.kc=Y(function(){return new U_(f.Va,f.S)});
g.J(this,this.kc);this.Sc=Y(function(){return new V0(a,f.S,f.i,f.Da,f.Ha,f.Va,f.xb,f.Z,f.kb,f.rd,f.Fd,f.Y,f.dd,f.Ic,f.Zb,f.ac,f.wc,f.Na,f.C)});
g.J(this,this.Sc);this.uc=Y(function(){return new kLa(f.Ja,f.Ha,f.Va,f.C,f.Mb,c)});
g.J(this,this.uc);this.qd=new F0(a,this.eb,this.B,this.i,this.Aa,this.Na);g.J(this,this.qd);this.Kd={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),Ll:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Fb],["SLOT_TYPE_FORECASTING",this.ma],
["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES",this.ma]]),Uh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ua],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Za],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Za],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ua],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fc]]),ym: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]]),Zl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Eb],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.Sc],["SLOT_TYPE_IN_PLAYER",this.uc]])};this.listeners=[this.C.get()];this.Yp={zc:this.zc,hk:null,dm:this.eb.get(),Rf:this.Na.get(),ao:this.Ha.get(),yc:this.yc,cm:null,Ai:this.La,eh:this.C.get()}};
s1=function(a,b,c,d){g.I.call(this);var e=this;this.i=mLa(function(){return e.u},a,b,c,d);
g.J(this,this.i);this.u=(new nZ(this.i)).B();g.J(this,this.u)};
t1=function(a){return a.i.Yp};
mLa=function(a,b,c,d,e){try{var f=b.V();if(g.wF(f))var h=new cLa(a,b,c,d,e);else if(g.zF(f))h=new eLa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)h=new gLa(a,b,c,d,e);else if(nF(f))h=new fLa(a,b,c,d,e);else if(g.gF(f))h=new jLa(a,b,c,d,e);else if(g.fF(f))h=new lLa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.V(),S("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c,
yaa:e.deviceParams.cver,xaa:e.deviceParams.ctheme,waa:e.deviceParams.cplayer,Jaa:e.playerStyle}),new PJa(a,b,c,d)}};
u1=function(a,b){this.i=a;this.hk=b};
v1=function(a){pL.call(this,a)};
w1=function(a,b,c,d,e){wL.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI);
this.hide()};
x1=function(a,b,c,d,e,f){SK.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",c,d);this.Eg=e;this.Ki=f;this.navigationEndpoint=this.i=this.skipButton=this.u=this.actionButton=null;this.Ja=this.Fa("ytp-ad-action-interstitial-image-container");this.C=new lL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-action-interstitial-image");g.J(this,this.C);this.C.Ea(this.Ja);this.Da=this.Fa("ytp-ad-action-interstitial-headline-container");this.Y=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-action-interstitial-headline");g.J(this,this.Y);this.Y.Ea(this.Da);
this.Aa=this.Fa("ytp-ad-action-interstitial-description-container");this.K=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-action-interstitial-description");g.J(this,this.K);this.K.Ea(this.Aa);this.Ua=this.Fa("ytp-ad-action-interstitial-background-container");this.D=new lL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-action-interstitial-background",!0);g.J(this,this.D);this.D.Ea(this.Ua);this.La=this.Fa("ytp-ad-action-interstitial-action-button-container");this.B=new jy;g.J(this,this.B);this.hide()};
nLa=function(a){var b=g.og("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
y1=function(a,b,c,d){SK.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.K=[];this.Za=this.Aa=this.C=this.Ua=this.Ja=null;this.La=!1;this.D=null;this.Y=0;a=this.Fa("ytp-ad-overlay-container");this.Da=new FL(a,45E3,6E3,.3,.4);g.J(this,this.Da);this.B=oLa(this);g.J(this,this.B);this.B.Ea(a);this.u=pLa(this);g.J(this,this.u);this.u.Ea(a);this.i=qLa(this);g.J(this,this.i);this.i.Ea(a);this.hide()};
oLa=function(a){var b=new g.RK({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[eL(z1)]}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return A1(a,b.element,
c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ci);b.hide();return b};
pLa=function(a){var b=new g.RK({G:"div",Ga:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[eL(z1)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ga:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ci);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.TV);b.hide();return b};
qLa=function(a){var b=new g.RK({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[eL(z1)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){return A1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.Ci);b.hide();return b};
B1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Ty(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.og("video-ads ytp-ad-module")||null,null==b)g.Ty(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.RK({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Aa),a.Aa.Ea(b),b=new tL(a.api,a.Xa,a.layoutId,a.yb,a.Aa.element,!1),g.J(a,b),b.init(vH("ad-info-hover-text-button"),c,
a.macros),a.D){b.Ea(a.D,0);b.subscribe("f",a.nT,a);b.subscribe("e",a.jF,a);a.T(a.D,"click",a.oT);var d=g.og("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.Za=b}else g.Ty(Error("Ad info button container within overlay ad was not present."))}else g.Bz(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
rLa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
sLa=function(a,b){if(C1(a,D1)||a.api.Ie())return!1;var c=TK(b.title),d=TK(b.description);if(g.ab(c)||g.ab(d))return!1;a.Rg(a.B.element,b.trackingParams||null);a.B.Ra("title",TK(b.title));a.B.Ra("description",TK(b.description));a.B.Ra("displayUrl",TK(b.displayUrl));b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);a.B.show();a.Da.start();a.ib(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Y++});
return!0};
tLa=function(a,b){if(C1(a,D1)||a.api.Ie())return!1;var c=TK(b.title),d=TK(b.description);if(g.ab(c)||g.ab(d))return!1;a.Rg(a.u.element,b.trackingParams||null);a.u.Ra("title",TK(b.title));a.u.Ra("description",TK(b.description));a.u.Ra("displayUrl",TK(b.displayUrl));a.u.Ra("imageUrl",Dsa(b.image));b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);a.Ua=b.imageNavigationEndpoint||null;a.u.show();a.Da.start();a.ib(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Y++});
return!0};
uLa=function(a,b){if(a.api.Ie())return!1;var c=Esa(b.image),d=c;c.width<D1.width&&(d=D1);if(0===c.width||0===c.height||C1(a,d))return!1;a.Rg(a.i.element,b.trackingParams||null);a.i.Ra("imageUrl",Dsa(b.image));a.i.Ra("width",c.width);a.i.Ra("height",c.height);b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);b=a.i.Fa("ytp-ad-image-overlay");g.Jl(b,"max-width",c.width+"px");a.i.show();a.ib(a.i.element,!0);a.T(a.i.element,"mouseover",function(){a.Y++;a.api.QE("invideo-overlay",a.layoutId)});
a.T(a.i.element,"mouseout",function(){a.api.PE("invideo-overlay",a.layoutId)});
return!0};
C1=function(a,b){var c=a.api.bb().rg(),d=a.api.ij(!0,!1);return(b=h1(c,c.height-(d.height+d.top),b))?(a.Ja&&b&&(c=g.mc(a.macros),c.ERRORCODE=b.xx.toString(),c.ERROR_MSG=b.errorMessage,a.Xa.executeCommand(a.Ja,c)),!0):!1};
A1=function(a,b,c){var d=g.mc(a.macros),e=g.Yl(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Wl(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()}};
a.K.forEach(function(h){return a.Xa.executeCommand(h,d)});
a.api.pauseVideo()};
vLa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
E1=function(a,b,c,d,e){wL.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",U:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.Y=-1;this.B=0;this.K=!1;this.Aa=this.Fa("ytp-ad-message-slot");this.u=new g.RK({G:"span",L:"ytp-ad-message-container"});this.u.Ea(this.Aa);g.J(this,this.u);this.messageText=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-message-text");g.J(this,this.messageText);this.messageText.Ea(this.u.element);this.D=new g.zL(this.u,400,!1,100,function(){return f.hide()});
g.J(this,this.D);this.hide()};
wLa=function(a,b){a=a.api.getRootNode();g.O(a,"ytp-ad-overlay-open",b);g.O(a,"ytp-ad-overlay-closed",!b)};
F1=function(a,b,c,d){SK.call(this,a,b,{G:"div",L:"player-underlay-companion"},"player-underlay",c,d);this.actionButton=null;this.hide()};
G1=function(a,b,c,d){SK.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.i=null;this.toggledLoggingParams="";this.answer=this.Fa("ytp-ad-survey-answer");this.hide()};
H1=function(a,b,c,d){SK.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.button=null;this.i=this.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
I1=function(a,b,c,d){fL.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
J1=function(a,b,c,d,e,f){SK.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",U:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",U:[{G:"div",L:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",L:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",c,d);this.B=e;this.Ki=f;this.u=this.i=null;this.C=this.Fa("ytp-ad-survey-player-overlay-instream-info");
this.D=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.J(this,this.B);this.hide()};
K1=function(a,b,c,d,e,f,h,l){SK.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",U:[{G:"div",Ga:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ga:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ga:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.Eg=f;this.Ki=h;this.B=l;this.D=null;this.u=[];this.i=null;this.question=this.Fa("ytp-ad-survey-question");this.Y=
this.Fa("ytp-ad-survey-question-background");this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.Qa()};
xLa=function(a,b,c){var d=new G1(a.api,a.Xa,a.layoutId,a.yb);d.Ea(a.answers);d.init(vH("survey-answer"),b,c);a.u.push(d)};
zLa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&kL(c)||"",g.ab(c)?g.Bz(Error("Found ThumbnailDetails without valid image URL")):g.Jl(a.Y,"backgroundImage","url("+c+")"));yLa(a,b)}else g.Ty(Error("addCommonComponents() needs to be called before starting countdown."))};
yLa=function(a,b){if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.Ty(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Qa();a.i=a.Eg||a.B?new KL(a.api,b.durationMilliseconds):new LL(b.durationMilliseconds,a.Xa,a.B,!0);g.J(a,a.i);if(b.timeoutCommands&&!a.Eg&&!a.B){var c=b.timeoutCommands;a.i.subscribe("g",function(){c.forEach(function(e){return a.Xa.executeCommand(e,a.macros)})})}if(a.i&&b.instreamAdPlayerOverlay&&
b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=new J1(a.api,a.Xa,a.layoutId,a.yb,a.i,a.Ki);
d.Ea(a.playerOverlay);d.init(vH("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.D=d;g.J(a,d);a.oN()}catch(e){g.Ty(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.Ty(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.i&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new UL(a.api,a.i),b.Ea(a.playerOverlay),g.J(a,b)):g.Ty(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
ALa=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.Qa()-a.C).toString()})};
L1=function(a,b,c,d,e,f,h){K1.call(this,a,b,c,d,"survey-question-multi-select",e,f,h);this.noneOfTheAbove=null;this.submitEndpoints=[];this.K=null;this.hide()};
BLa=function(a,b,c){a.noneOfTheAbove=new H1(a.api,a.Xa,a.layoutId,a.yb);a.noneOfTheAbove.Ea(a.answers);a.noneOfTheAbove.init(vH("survey-none-of-the-above"),b,c)};
CLa=function(a){a.u.forEach(function(b){b.i.toggleButton(!1)});
M1(a,!0)};
M1=function(a,b){var c=a.D;a=DLa(a);b=void 0===b?!1:b;c.i&&(a?c.i.hide():c.i.show(),b&&c.i instanceof HL&&!c.i.D&&nta(c.i,!1));c.u&&(a?c.u.show():c.u.hide())};
DLa=function(a){return a.u.some(function(b){return b.i.isToggled()})||a.noneOfTheAbove.button.isToggled()};
N1=function(a,b,c,d,e,f,h){K1.call(this,a,b,c,d,"survey-question-single-select",e,f,h);this.hide()};
O1=function(a,b,c,d,e,f,h){SK.call(this,a,b,{G:"div",L:"ytp-ad-survey",U:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.Eg=e;this.Ki=f;this.i=h;this.questions=[];this.u=this.Fa("ytp-ad-survey-questions");this.hide()};
P1=function(a,b,c,d,e,f){SK.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",U:[{G:"div",L:"ytp-ad-survey-interstitial-contents",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo",U:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.Eg=e;this.eG=f;this.i=this.actionButton=null;this.interstitial=this.Fa("ytp-ad-survey-interstitial");this.u=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.zL(this,500,!1,300);g.J(this,this.transition)};
ELa=function(a,b){b=b&&kL(b)||"";if(g.ab(b))g.Bz(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Kc&&10>document.documentMode)c=xf;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.zg("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Sga(d.style)}b=Paa(c,yf({"background-image":'url("'+b+'")'}));a.style.cssText=vf(b)}};
FLa=function(a){var b=g.og("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)};
Q1=function(a,b,c){pL.call(this,a);this.api=a;this.u={};this.K=b;a=new g.U({G:"div",Ga:["video-ads","ytp-ad-module"]});g.J(this,a);VE&&g.N(a.element,"ytp-ads-tiny-mode");this.J=new LK(a.element);g.J(this,this.J);g.MM(this.api,a.element,4);EJa(c)&&(c=new g.U({G:"div"}),g.J(this,c),this.B=new LK(c.element),g.J(this,this.B),g.MM(this.api,c.element,0));g.J(this,Usa())};
GLa=function(a,b){a=kc(a.u,b.id,null);null==a&&g.Bz(Error("Component not found for element id: "+b.id));return a||null};
R1=function(a){g.ZM.call(this,a);var b=this;this.u=this.Xa=null;this.created=!1;this.Vo=new sK(this.player);this.B=function(){function d(){return b.Xa}
if(null!=b.u)return b.u;var e=esa({np:a.getVideoData(1)});e=new RHa({PQ:new u1(function(){return b.Xa},t1(b.i).hk),
Yo:e.HR(),eR:d,eT:d,Ai:t1(b.i).Ai,Ph:e.ID(),I:b.player,Rf:t1(b.i).Rf,Va:b.i.i.Va,eh:t1(b.i).eh,Ic:b.i.i.Ic});b.u=e.KP;return b.u};
this.i=new s1(this.player,this,this.Vo,this.B);g.J(this,this.i);var c=a.V();!lF(c)||g.fF(c)||nF(c)||(g.J(this,new Q1(a,function(){return b.Xa},t1(this.i).Rf)),g.J(this,new v1(a)))};
HLa=function(a){a.created!==a.loaded&&S("Created and loaded are out of sync")};
S1=function(a,b){b===a.To&&(a.To=void 0)};
ILa=function(a){a.Xa?t1(a.i).yc.XD()||a.Xa.XD()||t1(a.i).ao.wp():S("AdService is null when calling maybeUnlockPrerollIfReady")};
JLa=function(a){a=g.r(t1(a.i).eh.Li.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.rb&&"core"===b.gb)return!0;return!1};
KLa=function(a){a=g.r(t1(a.i).eh.Li.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
eja=function(a,b,c){c=void 0===c?"":c;var d=t1(a.i).Rf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.tf()||!1;d=LLa(b,d,f,e);hja(t1(a.i).zc,c,d.lA,b);a.Xa&&0<d.Pu.length&&(a=a.Xa,b=d.Pu,b=lsa(a,b),b=msa(a,b),JK(a,b))};
LLa=function(a,b,c,d){var e={Pu:[],lA:[]};a=g.r(a);for(var f=a.next();!f.done;f=a.next())if((f=f.value)&&null!=f.renderer){var h=f.renderer,l=f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind,m=b,n=d;c?m=!0:null!=h.instreamSurveyAdRenderer?m=!!h.instreamSurveyAdRenderer.controlflowEnabled:null!=h.sandwichedLinearAdRenderer&&null!=h.sandwichedLinearAdRenderer.linearAd&&null!=h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer?m=!!h.sandwichedLinearAdRenderer.linearAd.instreamSurveyAdRenderer.controlflowEnabled:
n&&!KZ(m)?m=!1:null!=h.clientForecastingAdRenderer||null!=h.actionCompanionAdRenderer||null!=h.imageCompanionAdRenderer||null!=h.shoppingCompanionCarouselRenderer||null!=h.invideoOverlayAdRenderer||null!=h.adBreakServiceRenderer&&("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==l||KZ(m))?m=!0:null!=h.instreamVideoAdRenderer||null!=h.remoteSlotsRenderer?((h=n)||(h=g.yF(m.I.V())?!1:lF(m.I.V())?m.I.V().N("html5_enable_single_video_vod_ivar_on_pacf"):g.mF(m.I.V())?m.I.V().N("html5_enable_single_video_vod_ivar_on_pacf_tv"):
!1),m=h):m=h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds?h.linearAdSequenceRenderer.adStart?m.I.V().N("html5_enable_vod_lasr_with_notify_pacf"):n||ZY(m):null!=h.sandwichedLinearAdRenderer?m.I.V().N("html5_enable_vod_slar_with_notify_pacf"):!1;m?e.lA.push(f):e.Pu.push(f)}return e};
MLa=function(){if(!g.Kc)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.T1=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=br(a);return b.parseFromString(g.Ff(a),"application/xml")}if(NLa){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.U1=function(a,b){var c="ytp-miniplayer-button-bottom-right",d={G:"svg",W:{height:"18px",version:"1.1",viewBox:"0 0 22 18",width:"22px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(-1.000000, -3.000000)"},U:[{G:"polygon",W:{points:"0 0 24 0 24 24 0 24"}},{G:"path",W:{d:"M19,7 L5,7 L5,17 L19,17 L19,7 Z M23,19 L23,4.98 C23,3.88 22.1,3 21,3 L3,3 C1.9,3 1,3.88 1,4.98 L1,19 C1,20.1 1.9,21 3,21 L21,21 C22.1,21 23,20.1 23,19 Z M21,19.02 L3,19.02 L3,4.97 L21,4.97 L21,19.02 Z",
fill:"#fff","fill-rule":"nonzero"}}]}]}]},e="Open video page";a.V().N("kevlar_miniplayer_expand_top")&&(c="ytp-miniplayer-button-top-left",d={G:"svg",W:{height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px"},U:[{G:"g",W:{fill:"none","fill-rule":"evenodd",stroke:"none","stroke-width":"1"},U:[{G:"g",W:{transform:"translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000) "},U:[{G:"path",W:{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.U.call(this,{G:"button",Ga:["ytp-miniplayer-expand-watch-page-button","ytp-button",c],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-expand-watch-page-button"},U:[d]});this.I=a;this.Qa("click",this.onClick,this);this.Ra("title",zN(a,e,"i"));g.qe(this,g.XN(b.fc(),this.element))};
aa=[];fa="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};
ea=aaa(this);ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.i=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.i};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ha("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=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(da(this))}})}return a});
var OLa="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)la(d,e)&&(a[e]=d[e])}return a};
ha("Object.assign",function(a){return a||OLa});
var ma="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},PLa=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=ma(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),V1;
if("function"==typeof Object.setPrototypeOf)V1=Object.setPrototypeOf;else{var W1;a:{var QLa={a:!0},RLa={};try{RLa.__proto__=QLa;W1=RLa.a;break a}catch(a){}W1=!1}V1=W1?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=V1;
pa.prototype.S=function(a){this.u=a};
pa.prototype.return=function(a){this.B={return:a};this.i=this.C};
pa.prototype.fb=function(a){this.i=a};
ha("Reflect",function(a){return a?a:{}});
ha("Reflect.construct",function(){return PLa});
ha("Reflect.setPrototypeOf",function(a){return a?a:na?function(b,c){try{return na(b,c),!0}catch(d){return!1}}:null});
ha("WeakMap",function(a){function b(m){this.i=(l+=Math.random()+1).toString();if(m){m=g.r(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!la(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!la(m,h))throw Error("WeakMap key fail: "+m);m[h][this.i]=n;return this};
b.prototype.get=function(m){return d(m)&&la(m,h)?m[h][this.i]:void 0};
b.prototype.has=function(m){return d(m)&&la(m,h)&&la(m[h],this.i)};
b.prototype.delete=function(m){return d(m)&&la(m,h)&&la(m[h],this.i)?delete m[h][this.i]:!1};
return b});
ha("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.i;return ia(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=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&la(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.i=b();this.size=0;if(l){l=g.r(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.r([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.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 h=0;return e});
ha("Array.prototype.find",function(a){return a?a:function(b,c){return Ba(this,b,c).zO}});
ha("Array.prototype.entries",function(a){return a?a:function(){return Ca(this,function(b,c){return[b,c]})}});
ha("Object.setPrototypeOf",function(a){return a||na});
ha("Promise",function(a){function b(h){this.i=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.i=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.i){this.i=[];var l=this;this.B(function(){l.D()})}this.i.push(h)};
var e=ea.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=function(){for(;this.i&&this.i.length;){var h=this.i;this.i=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.C(n)}}}this.i=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.ya),reject:h(this.D)}};
b.prototype.ya=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Da(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.ma(h):this.J(h)}};
b.prototype.ma=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ka(l,h):this.J(h)};
b.prototype.D=function(h){this.S(2,h)};
b.prototype.J=function(h){this.S(1,h)};
b.prototype.S=function(h,l){if(0!=this.i)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.i);this.i=h;this.B=l;2===this.i&&this.Aa();this.Z()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.Y()){var l=ea.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.Y=function(){if(this.K)return!1;var h=ea.CustomEvent,l=ea.Event,m=ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.Z=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Da=function(h){var l=this.C();h.ey(l.resolve,l.reject)};
b.prototype.Ka=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,u){return"function"==typeof t?function(x){try{n(t(x))}catch(y){p(y)}}:u}
var n,p,q=new b(function(t,u){n=t;p=u});
this.ey(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.ey=function(h,l){function m(){switch(n.i){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.i);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.r(h),p=n.next();!p.done;p=n.next())d(p.value).ey(l,m)})};
b.all=function(h){var l=g.r(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(x){return function(y){t[x]=y;u--;0==u&&n(t)}}
var t=[],u=0;do t.push(void 0),u++,d(m.value).ey(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
ha("Array.prototype.keys",function(a){return a?a:function(){return Ca(this,function(b){return b})}});
ha("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Da(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}});
ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(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}});
ha("Set",function(a){function b(c){this.i=new Map;if(c){c=g.r(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.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.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});
ha("Array.prototype.values",function(a){return a?a:function(){return Ca(this,function(b,c){return c})}});
ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ha("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ha("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ba(this,b,c).JK}});
ha("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)la(b,d)&&c.push([d,b[d]]);return c}});
ha("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}});
ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ha("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}});
ha("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Da(this,b,"includes").indexOf(b,c||0)}});
ha("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}});
ha("Int8Array.prototype.fill",Ea);ha("Uint8Array.prototype.fill",Ea);ha("Uint8ClampedArray.prototype.fill",Ea);ha("Int16Array.prototype.fill",Ea);ha("Uint16Array.prototype.fill",Ea);ha("Int32Array.prototype.fill",Ea);ha("Uint32Array.prototype.fill",Ea);ha("Float32Array.prototype.fill",Ea);ha("Float64Array.prototype.fill",Ea);
ha("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}});
ha("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ha("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ha("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)la(b,d)&&c.push(b[d]);return c}});
ha("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Da(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}});
ha("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}});
ha("WeakSet",function(a){function b(c){this.i=new WeakMap;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.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});
ha("Number.parseInt",function(a){return a||parseInt});
ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
Bi=Bi||{};g.C=this||self;Na="closure_uid_"+(1E9*Math.random()>>>0);eaa=0;g.Ra(Ta,Error);Ta.prototype.name="CustomError";var ig;g.Ra(Ua,Ta);Ua.prototype.name="AssertionError";var ad,uaa="undefined"!==typeof TextDecoder;var kb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},bb=/&/g,cb=/</g,db=/>/g,eb=/"/g,fb=/'/g,gb=/\x00/g,jaa=/[\x00&<>"']/;var tb,nm,on;tb=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.SLa=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.Ob=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.Do=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.lm=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
nm=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Ob)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
on=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.mm=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};a:{var TLa=g.C.navigator;if(TLa){var ULa=TLa.userAgent;if(ULa){g.Qb=ULa;break a}}g.Qb=""};var oc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");xc[" "]=g.Ha;var Ll,$T,JHa,VLa,WLa,XLa,UE,VE,X1;g.WE=Sb("Opera");g.Kc=Sb("Trident")||Sb("MSIE");g.Vw=Sb("Edge");g.CF=g.Vw||g.Kc;Ll=Sb("Gecko")&&!(jb(g.Qb,"WebKit")&&!Sb("Edge"))&&!(Sb("Trident")||Sb("MSIE"))&&!Sb("Edge");g.ug=jb(g.Qb,"WebKit")&&!Sb("Edge");$T=Sb("Macintosh");JHa=Sb("Windows");g.bu=Sb("Android");VLa=uc();WLa=Sb("iPad");XLa=Sb("iPod");UE=vc();VE=jb(g.Qb,"KaiOS");
a:{var Y1="",Z1=function(){var a=g.Qb;if(Ll)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Vw)return/Edge\/([\d\.]+)/.exec(a);if(g.Kc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ug)return/WebKit\/(\S+)/.exec(a);if(g.WE)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Z1&&(Y1=Z1?Z1[1]:"");if(g.Kc){var $1=Bc();if(null!=$1&&$1>parseFloat(Y1)){X1=String($1);break a}}X1=Y1}var Cc=X1,raa={},a2;if(g.C.document&&g.Kc){var YLa=Bc();a2=YLa?YLa:parseInt(Cc,10)||void 0}else a2=void 0;var saa=a2;var eF,oH;g.Ti=rc();eF=uc()||Sb("iPod");oH=Sb("iPad");g.XE=Sb("Android")&&!(sc()||rc()||Sb("Opera")||Sb("Silk"));g.Si=sc();g.Ui=tc()&&!vc();var Gc={},Mc=null;var taa="function"===typeof Uint8Array.prototype.slice,Nc,ld=0,md=0;Rc.prototype.clone=function(){return Tc(this.u,this.C,this.B-this.C)};
Rc.prototype.clear=function(){this.u=null;this.i=this.B=this.C=0;this.Cl=this.D=!1};
Rc.prototype.reset=function(){this.i=this.C};
Rc.prototype.advance=function(a){this.i+=a};
var Sc=[];Yc.prototype.reset=function(){this.i.reset();this.u=this.C=-1};
Yc.prototype.advance=function(a){this.i.advance(a)};ed.prototype.push=function(a){if(!(this.u+1<this.i.length)){var b=this.i;this.i=new Uint8Array(Math.ceil(1+2*this.i.length));this.i.set(b)}this.i[this.u++]=a};
ed.prototype.length=function(){return this.u};
ed.prototype.end=function(){var a=this.i,b=this.u;this.u=0;return Oc(a,0,b)};var rd="function"===typeof Uint8Array,xaa={CS:{value:!0,configurable:!0}},Ud;g.k=yd.prototype;g.k.isFrozen=function(){return!1};
g.k.toJSON=function(){var a=this.ph(!1);return Ud?a:sd(a,vd,g.Hc)};
g.k.ph=function(a){if(this.u){if(this.B){var b=this.map,c;for(c in b)if(Object.prototype.hasOwnProperty.call(b,c)){var d=b[c].i;d&&d.ph(a)}}}else{this.i.length=0;b=Ad(this);b.sort();for(c=0;c<b.length;c++){d=this.map[b[c]];var e=d.i;e&&e.ph(a);this.i.push([d.key,d.value])}this.u=!0}return this.i};
g.k.clear=function(){this.map={};this.u=!1};
g.k.paa=function(a){a=a.toString();var b=this.map.hasOwnProperty(a);delete this.map[a];this.u=!1;return b};
g.k.entries=function(){var a=[],b=Ad(this);b.sort();for(var c=0;c<b.length;c++){var d=this.map[b[c]];a.push([d.key,zd(this,d)])}return new Bd(a)};
g.k.keys=function(){var a=[],b=Ad(this);b.sort();for(var c=0;c<b.length;c++)a.push(this.map[b[c]].key);return new Bd(a)};
g.k.values=function(){var a=[],b=Ad(this);b.sort();for(var c=0;c<b.length;c++)a.push(zd(this,this.map[b[c]]));return new Bd(a)};
g.k.forEach=function(a,b){var c=Ad(this);c.sort();for(var d=0;d<c.length;d++){var e=this.map[c[d]];a.call(b,zd(this,e),e.key,this)}};
g.k.set=function(a,b){var c=new xd(a);this.B?(c.i=b,c.value=b.ph(!1)):c.value=b;this.map[a.toString()]=c;this.u=!1;return this};
g.k.get=function(a){if(a=this.map[a.toString()])return zd(this,a)};
g.k.has=function(a){return a.toString()in this.map};
yd.prototype[Symbol.iterator]=function(){return this.entries()};
Bd.prototype.next=function(){return this.u<this.i.length?{done:!1,value:this.i[this.u++]}:{done:!0,value:void 0}};
Bd.prototype[Symbol.iterator]=function(){return this};var Cd;var Fd=Object.freeze(ud([]));Hd.prototype.toJSON=function(){var a=this.ph(!1);return Ud?a:sd(a,vd,g.Hc)};
Hd.prototype.ph=function(a){if(this.i)for(var b in this.i){var c=this.i[b];if(Array.isArray(c))for(var d=0;d<c.length;d++)c[d]&&c[d].ph(a);else c&&c.ph(a)}return this.u};
Hd.prototype.toString=function(){return this.ph(!1).toString()};
Hd.prototype.clone=function(){var a=this.constructor,b=sd(this.ph(!1),waa,vaa);a=Ed(a,b);Wd(a,this);return a};g.w(be,Hd);g.w(ce,Hd);g.w(de,Hd);g.w(ee,Hd);var Yd=[1,2,3];var kca={xN:5,MK:100,CL:6E5},gca={xN:10,MK:500,CL:6E5};g.w(fe,Error);g.ge.prototype.u=0;g.ge.prototype.reset=function(){this.i=this.B=this.C;this.u=0};
g.ge.prototype.getValue=function(){return this.B};g.k=le.prototype;g.k.RQ=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(d=this.yD(c))?d.push(new je(a)):this.CN(a,c)};
g.k.CN=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.Ar.set(this.jK(c),[new je(a)])};
g.k.yD=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=this.jK(b);return this.Ar.has(b)?this.Ar.get(b):void 0};
g.k.KR=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return(b=this.yD(b))&&b.length?b[0]:void 0};
g.k.clear=function(){this.Ar.clear()};
g.k.jK=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return b?b.join(","):"key"};g.w(me,le);me.prototype.B=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=0;var e=this.KR(c);e&&(d=e.kJ);this.CN(d+a,c)};g.w(ne,le);ne.prototype.Qk=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.RQ(a,c)};g.I.prototype.ai=!1;g.I.prototype.isDisposed=function(){return this.ai};
g.I.prototype.dispose=function(){this.ai||(this.ai=!0,this.xa())};
g.I.prototype.xa=function(){if(this.yh)for(;this.yh.length;)this.yh.shift()()};g.re.prototype.stopPropagation=function(){this.u=!0};
g.re.prototype.preventDefault=function(){this.defaultPrevented=!0};var te={};var Haa=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.Ha,b),g.C.removeEventListener("test",g.Ha,b)}catch(c){}return a}();var mva;mva=g.ug?"webkitAnimationEnd":"animationend";g.Ra(ve,g.re);var ZLa={2:"touch",3:"pen",4:"mouse"};
ve.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)?Ll&&(zc(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:ZLa[a.pointerType]||"";this.state=a.state;this.i=a;a.defaultPrevented&&ve.ke.preventDefault.call(this)};
ve.prototype.stopPropagation=function(){ve.ke.stopPropagation.call(this);this.i.stopPropagation?this.i.stopPropagation():this.i.cancelBubble=!0};
ve.prototype.preventDefault=function(){ve.ke.preventDefault.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var we="closure_listenable_"+(1E6*Math.random()|0);var Eaa=0;ze.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.i++);var h=Be(a,b,d,e);-1<h?(b=a[h],c||(b.dy=!1)):(b=new Faa(b,this.src,f,!!d,e),b.dy=c,a.push(b));return b};
ze.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Be(e,b,c,d);return-1<b?(ye(e[b]),g.yb(e,b),0==e.length&&(delete this.listeners[a],this.i--),!0):!1};
ze.prototype.Hv=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Be(a,b,c,d));return-1<e?a[e]:null};var He="closure_lm_"+(1E6*Math.random()|0),Me={},Je=0,Ne="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ra(g.Oe,g.I);g.Oe.prototype[we]=!0;g.k=g.Oe.prototype;g.k.addEventListener=function(a,b,c,d){De(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){Ke(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.qb;d=a.type||a;if("string"===typeof a)a=new g.re(a,b);else if(a instanceof g.re)a.target=a.target||b;else{var e=a;a=new g.re(d,b);g.pc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Pe(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Pe(h,d,!0,a)&&e,a.u||(e=Pe(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Pe(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.Oe.ke.xa.call(this);if(this.B){var a=this.B,b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,ye(d[e]);delete a.listeners[c];a.i--}}this.La=null};
g.k.Qa=function(a,b,c,d){return this.B.add(String(a),b,!1,c,d)};
g.k.Dz=function(a,b,c,d){return this.B.add(String(a),b,!0,c,d)};
g.k.jc=function(a,b,c,d){this.B.remove(String(a),b,c,d)};
g.k.Hv=function(a,b,c,d){return this.B.Hv(String(a),b,c,d)};Qe.prototype.get=function(){if(0<this.u){this.u--;var a=this.i;this.i=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var cba=g.Kc||g.ug;var $La={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 Xe;af.prototype.Ek=!0;af.prototype.Ih=function(){return this.i};
var $e={},Ze={};g.cf("");var df={};ef.prototype.Ih=function(){return this.i.toString()};
ef.prototype.toString=function(){return this.i.toString()};var Vga,Uga,Tga,Wga;Vga=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.aMa=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.bMa=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.gr=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]");Uga=/^http:\/\/.*/;g.cMa=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Tga=/\s+/;Wga=/[\d\u06f0-\u06f9]/;g.k=gf.prototype;g.k.Ek=!0;g.k.Ih=function(){return this.i.toString()};
g.k.bE=!0;g.k.Qr=function(){return 1};
g.k.toString=function(){return this.i+""};
var Laa=/%{(\w+)}/g,Kaa=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),ff={};g.k=g.mf.prototype;g.k.Ek=!0;g.k.Ih=function(){return this.i.toString()};
g.k.bE=!0;g.k.Qr=function(){return 1};
g.k.toString=function(){return this.i.toString()};
var Oaa=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"),Naa=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,pf=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,lf={},qf=new g.mf("about:invalid#zClosurez",lf);var tf={};uf.prototype.Ih=function(){return this.i};
uf.prototype.toString=function(){return this.i.toString()};
var xf=new uf("",tf),Raa=RegExp("^[-,.\"'%_!# a-zA-Z0-9\\[\\]]+$"),Af=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),zf=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-z.%\\[\\], ]+\\)","g"),Saa=/\/\*/;var Bf={};Ef.prototype.Qr=function(){return this.u};
Ef.prototype.Ih=function(){return this.i.toString()};
Ef.prototype.toString=function(){return this.i.toString()};
var dMa=/^[a-zA-Z0-9-]+$/,eMa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},fMa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},If=new Ef(g.C.trustedTypes&&g.C.trustedTypes.emptyHTML||"",0,Bf);var Yaa=Ve(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.Ff(If);return!b.parentElement}),Zaa=/^[\w+/_-]+[=]{0,2}$/;g.k=g.Uf.prototype;g.k.clone=function(){return new g.Uf(this.x,this.y)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Wf.prototype;g.k.clone=function(){return new g.Wf(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!Yf(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.gMa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var pg={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=gg.prototype;g.k.getElementsByTagName=function(a,b){return(b||this.i).getElementsByTagName(String(a))};
g.k.Fa=function(a){return g.og(a,this.i)};
g.k.createElement=function(a){return wg(this.i,a)};
g.k.appendChild=function(a,b){a.appendChild(b)};
g.k.append=function(a,b){xg(hg(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.Dg;g.k.contains=g.Fg;var Lg;Og.prototype.add=function(a,b){var c=Wg.get();c.set(a,b);this.u?this.u.next=c:this.i=c;this.u=c};
Og.prototype.remove=function(){var a=null;this.i&&(a=this.i,this.i=this.i.next,this.i||(this.u=null),a.next=null);return a};
var Wg=new Qe(function(){return new Pg},function(a){return a.reset()});
Pg.prototype.set=function(a,b){this.i=a;this.scope=b;this.next=null};
Pg.prototype.reset=function(){this.next=this.scope=this.i=null};var Qg,Sg=!1,Tg=new Og;$g.prototype.reset=function(){this.context=this.onRejected=this.u=this.i=null;this.B=!1};
var ah=new Qe(function(){return new $g},function(a){a.reset()});
Zg.prototype.then=function(a,b,c){return ih(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
Zg.prototype.$goog_Thenable=!0;Zg.prototype.cancel=function(a){if(0==this.i){var b=new oh(a);g.Ug(function(){kh(this,b)},this)}};
Zg.prototype.Z=function(a){this.i=0;Yg(this,2,a)};
Zg.prototype.Y=function(a){this.i=0;Yg(this,3,a)};
Zg.prototype.S=function(){for(var a;a=lh(this);)mh(this,a,this.i,this.K);this.J=!1};
var qh=Ng;g.Ra(oh,Ta);oh.prototype.name="cancel";g.Ra(g.rh,g.Oe);g.k=g.rh.prototype;g.k.enabled=!1;g.k.Lb=null;g.k.setInterval=function(a){this.Tf=a;this.Lb&&this.enabled?(this.stop(),this.start()):this.Lb&&this.stop()};
g.k.nX=function(){if(this.enabled){var a=g.Qa()-this.qL;0<a&&a<.8*this.Tf?this.Lb=this.tx.setTimeout(this.aJ,this.Tf-a):(this.Lb&&(this.tx.clearTimeout(this.Lb),this.Lb=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Lb||(this.Lb=this.tx.setTimeout(this.aJ,this.Tf),this.qL=g.Qa())};
g.k.stop=function(){this.enabled=!1;this.Lb&&(this.tx.clearTimeout(this.Lb),this.Lb=null)};
g.k.xa=function(){g.rh.ke.xa.call(this);this.stop();delete this.tx};g.k=uh.prototype;g.k.SW=function(a){this.D=a;this.C=1};
g.k.KN=function(){var a=this.i.values();a=[].concat(g.v(a)).filter(function(b){return b.Ar.size});
a.length&&this.K.flush(a,this.D);jba(a);this.B=0;this.u.enabled&&this.u.stop()};
g.k.TQ=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new me(a,c))};
g.k.QI=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.i.has(a)||this.i.set(a,new ne(a,c))};
g.k.UO=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.VO.apply(this,[a,1].concat(g.v(c)))};
g.k.VO=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=wh(this,a))&&e instanceof me&&(e.B(b,d),vh(this))};
g.k.Qk=function(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];(e=wh(this,a))&&e instanceof ne&&(e.Qk(b,d),vh(this))};xh.prototype.Qk=function(a,b,c,d,e){this.i.Qk("/client_streamz/po/w/rl",a,b,c,d,e)};
yh.prototype.Qk=function(a,b,c){this.i.Qk("/client_streamz/po/w/el",a,b,c)};g.w(zh,Hd);g.w(Ah,Hd);g.w(Bh,Hd);g.w(Ch,Hd);var lba=[3,6,4],mba=[1],b2=[1,2,3],hMa=[1,2,3];g.w(Dh,Hd);var nba=[1];var qba={};g.k=Hh.prototype;g.k.isEnabled=function(){if(!g.C.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Hz:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Oaa;d=c.RW||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.Hz}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;e<d.length;e++){f=kb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{Hz:0,path:b,domain:c});return d};
g.k.Ur=function(){return Ih(this).keys};
g.k.Ip=function(){return Ih(this).values};
g.k.isEmpty=function(){return!this.i.cookie};
g.k.clear=function(){for(var a=Ih(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var It=new Hh("undefined"==typeof document?null:document);g.w(Nh,Hd);var rba=[2];var Xh={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},tba=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Yh.prototype.u=null;Yh.prototype.getOptions=function(){return this.u||(this.u=this.C())};var c2;g.Ra(Zh,Yh);Zh.prototype.i=function(){var a=$h(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Zh.prototype.C=function(){var a={};$h(this)&&(a[0]=!0,a[1]=!0);return a};
c2=new Zh;var ci=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),si=/#|$/,vba=/[?&]($|#)/;g.Ra(g.wi,g.Oe);var zba=/^https?$/i,iMa=["POST","PUT"],xi=[];g.k=g.wi.prototype;g.k.dR=function(){this.dispose();g.zb(xi,this)};
g.k.send=function(a,b,c,d){if(this.i)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Z+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Z=a;this.C="";this.u=0;this.Ua=b;this.Ka=!1;this.D=!0;this.i=this.Da?this.Da.i():c2.i();this.Aa=this.Da?this.Da.getOptions():c2.getOptions();this.i.onreadystatechange=(0,g.D)(this.BM,this);try{Oh(Di(this,"Opening Xhr")),this.Ja=!0,this.i.open(b,String(a),!0),this.Ja=!1}catch(h){Oh(Di(this,"Error opening Xhr: "+h.message));Ai(this,h);return}a=
c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.r(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.C.FormData&&a instanceof g.C.FormData;!g.ub(iMa,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.r(c);for(d=b.next();!d.done;d=b.next())c=g.r(d.value),d=c.next().value,c=c.next().value,this.i.setRequestHeader(d,c);this.Sa&&(this.i.responseType=this.Sa);"withCredentials"in this.i&&this.i.withCredentials!==this.S&&(this.i.withCredentials=this.S);try{Gi(this),0<this.K&&(this.ya=yba(this.i),Oh(Di(this,"Will abort after "+this.K+"ms if incomplete, xhr2 "+this.ya)),
this.ya?(this.i.timeout=this.K,this.i.ontimeout=(0,g.D)(this.oH,this)):this.ma=g.sh(this.oH,this.K,this)),Oh(Di(this,"Sending request")),this.Y=!0,this.i.send(a),this.Y=!1}catch(h){Oh(Di(this,"Send error: "+h.message)),Ai(this,h)}};
g.k.oH=function(){"undefined"!=typeof Bi&&this.i&&(this.C="Timed out after "+this.K+"ms, aborting",this.u=8,Di(this,this.C),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.i&&this.D&&(Di(this,"Aborting"),this.D=!1,this.J=!0,this.i.abort(),this.J=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zi(this))};
g.k.xa=function(){this.i&&(this.D&&(this.D=!1,this.J=!0,this.i.abort(),this.J=!1),zi(this,!0));g.wi.ke.xa.call(this)};
g.k.BM=function(){this.isDisposed()||(this.Ja||this.Y||this.J?Fi(this):this.gV())};
g.k.gV=function(){Fi(this)};
g.k.isActive=function(){return!!this.i};
g.k.isComplete=function(){return 4==g.Ci(this)};
g.k.getStatus=function(){try{return 2<g.Ci(this)?this.i.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.i&&this.isComplete())return a=this.i.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.w(Ji,Hd);g.w(Ki,Hd);g.w(Li,Hd);Li.prototype.N=function(){return null!=Id(this,7)};
var Dba=[3,20,27];g.w(Mi,Hd);var Eba=[3,5];g.w(Qi,Hd);var Fba=[5];g.w(Ri,Hd);var d2=new function(a,b,c,d,e){this.u=a;this.fieldName=b;this.i=c;this.isRepeated=e}(175237375,{Daa:0},Ri,function(a,b){if(null!=b){var c={Waa:Xd(b,1,-1)};
a&&(c.OX=b);return c}},0);g.w(bj,g.Oe);g.k=bj.prototype;g.k.xa=function(){this.wv();g.Oe.prototype.xa.call(this)};
g.k.dispatch=function(a){if(a instanceof Li)this.log(a);else{var b=new Li;a=Vd(a);b=Jd(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.xb++;Jd(a,21,b);this.Y&&Jd(a,26,this.Y);if(!Id(a,1)){b=a;var c=Date.now().toString();Jd(b,1,c)}null!=Id(a,15)||Jd(a,15,60*(new Date).getTimezoneOffset());this.C&&(b=this.C.clone(),Sd(a,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.K;this.u.push(a);this.dispatchEvent(new ej(a));this.Aa||this.i.enabled||this.i.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.Da)Hba(this);else{var d=Date.now();if(this.eb>d&&this.Ka<d)b&&b("throttled");else{var e=Pi(Oi(Ni(this.D.clone()),this.u),this.K);d={};var f=this.Ua();f&&(d.Authorization=f);var h=cj(this);this.Z&&(d["X-Goog-AuthUser"]=this.Z,h=qi(h,"authuser",this.Z));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=qi(h,"pageId",this.pageId));if(f&&this.Za===f)b&&b("stale-auth-token");else{this.u=[];this.i.enabled&&this.i.stop();this.K=0;var l=
Vd(e),m;this.S&&this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:h,body:l,WQ:1,wq:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(u){c.J.reset();c.i.setInterval(c.J.getValue());if(u){var x=null;try{var y=JSON.parse(u.replace(")]}'\n",""));x=new Qi(y)}catch(A){}x&&(u=Number(Ld(x,1,"-1")),0<u&&(c.Ka=Date.now(),c.eb=c.Ka+u),u=d2.u,y=d2.i,x=d2.isRepeated?y?Rd(x,y,u):Kd(x,u):y?Qd(x,y,u,0,!0):Id(x,u,!0))&&(x=Xd(x,1,-1),-1!=x&&(c.Sa||
dj(c,x)))}a&&a()},q=function(u){var x=Rd(e,Li,3);
g.he(c.J);c.i.setInterval(c.J.getValue());401===u&&f&&(c.Za=f);if(500<=u&&600>u||401===u||0===u)c.u=x.concat(c.u),c.Aa||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ja?c.Ja.send(n,p,q):c.jb(n,p,q)};
m?m.then(function(u){n.wq["Content-Encoding"]="gzip";n.wq["Content-Type"]="application/binary";n.body=u;n.WQ=2;t()},function(){t()}):t()}}}};
g.k.wv=function(){this.flush()};
g.w(ej,g.re);fj.prototype.Ne=function(){var a=new bj(1654,this.ma?this.ma:Mh,"0",this.J,this.B,this.C,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.Z){var b=this.Z;Id(b,1)||Jd(b,1,1);Sd(a.D,1,b)}if(this.u){b=this.u;var c=Qd(a.D,Ki,1),d=Qd(c,Ji,11);d||(d=new Ji);Jd(d,7,b);Sd(c,11,d);Id(c,1)||Jd(c,1,1);Sd(a.D,1,c)}this.D&&(a.S=this.D);this.i&&(a.Y=this.i);this.S&&((b=this.S)?(a.C||(a.C=new Nh),b=Vd(b),Jd(a.C,4,b)):a.C&&Jd(a.C,4,void 0));this.ya&&(b=this.ya,a.C||(a.C=new Nh),Md(a.C,2,b));this.Y&&(b=this.Y,
a.Sa=!0,dj(a,b));return a};gj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Dh,c=[],d=0;d<a.length;d++){var e=a[d],f=e;var h=new zh;h=Jd(h,1,f.u);for(var l=f,m=[],n=0;n<l.i.length;n++)m.push(l.i[n].cn);h=Md(h,3,m);l=[];m=[];n=g.r(f.Ar.keys());for(var p=n.next();!p.done;p=n.next())m.push(p.value.split(","));for(n=0;n<m.length;n++){p=m[n];var q=f.C;for(var t=f.yD(p)||[],u=[],x=0;x<t.length;x++){var y=t[x];y=y&&y.kJ;var A=new Ch;switch(q){case 3:Pd(A,1,hMa,Number(y));break;case 2:Pd(A,2,hMa,Number(y))}u.push(A)}q=
u;for(t=0;t<q.length;t++){u=q[t];x=new Ah;u=Sd(x,2,u);x=p;y=[];A=f;for(var F=[],G=0;G<A.i.length;G++)F.push(A.i[G].dn);A=F;for(F=0;F<A.length;F++){G=A[F];var E=x[F],K=new Bh;switch(G){case 3:Pd(K,1,b2,String(E));break;case 2:Pd(K,2,b2,Number(E));break;case 1:Pd(K,3,b2,"true"==E)}y.push(K)}Td(u,1,y);l.push(u)}}Td(h,4,l);c.push(h);e.clear()}Td(b,1,c);this.i.dispatch(b);this.i.flush()}};g.w(ij,Error);ij.prototype.name="RpcError";jj.prototype.Ez=function(){};
jj.prototype.ew=function(){};
jj.prototype.xL=function(){};
kj.prototype.Ez=function(a){this.clientError.i.UO("/client_streamz/po/w/cec",a,this.pm)};
kj.prototype.ew=function(a,b){this.u.Qk(b,a,this.pm)};
kj.prototype.xL=function(a,b,c){var d=this,e=Date.now();(function(){return g.H(d,function h(){var l,m,n=this,p;return g.B(h,function(q){if(1==q.i)return l=0,ta(q,2,3),g.z(q,c,3);if(2!=q.i)return xa(q),m=Date.now()-e,n.B.Qk(m,a,b,l,n.pm),ya(q,0);p=va(q);p instanceof ij?l=p.code:(l=-1,n.Ez(1));return q.fb(3)})})})()};g.w(lj,Hd);g.w(mj,Hd);g.w(nj,Hd);g.w(oj,Hd);oj.SS="bfkj";g.w(pj,Hd);qj.prototype.Vy=function(){return this.B};
qj.prototype.getMetadata=function(){return this.u};rj.prototype.getMetadata=function(){return this.i};
rj.prototype.Vy=function(){return this.u};
rj.prototype.getStatus=function(){return null};sj.prototype.getName=function(){return this.name};var jMa=new sj("/google.internal.waa.v1.Waa/Create",lj,pj,function(a){return Vd(a)},function(a){return Ed(pj,a?JSON.parse(a):null)});g.w(uj,Hd);g.w(vj,Hd);var Xba=new sj("/google.internal.waa.v1.Waa/GenerateIT",uj,vj,function(a){return Vd(a)},function(a){return Ed(vj,a?JSON.parse(a):null)});var Rba=Promise;g.w(wj,Hd);wj.prototype.getValue=function(){return Ld(this,2,"")};
wj.prototype.setValue=function(a){null!=a&&0!==a.length?Jd(this,2,a):Jd(this,2,void 0);return this};g.w(xj,Hd);var Jba=[3];yj.prototype.fm=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.J.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
yj.prototype.removeListener=function(a,b){"data"==a?Ej(this.B,b):"metadata"==a?Ej(this.D,b):"status"==a?Ej(this.J,b):"end"==a?Ej(this.C,b):"error"==a&&Ej(this.u,b);return this};
yj.prototype.cancel=function(){this.i.abort()};
yj.prototype.cancel=yj.prototype.cancel;yj.prototype.removeListener=yj.prototype.removeListener;yj.prototype.on=yj.prototype.fm;g.Ra(Fj,Yh);Fj.prototype.i=function(){return new Gj(this.D,this.B)};
Fj.prototype.C=Te({});g.Ra(Gj,g.Oe);g.k=Gj.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ma=a;this.Y=b;this.readyState=1;Ij(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.i=!0;var b={headers:this.Z,method:this.ma,credentials:this.J,cache:void 0};a&&(b.body=a);(this.ya||g.C).fetch(new Request(this.Y,b)).then(this.dS.bind(this),this.kz.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.");1<=this.readyState&&this.i&&4!=this.readyState&&(this.i=!1,Jj(this));this.readyState=0};
g.k.dS=function(a){if(this.i&&(this.D=a,this.u||(this.status=this.D.status,this.statusText=this.D.statusText,this.u=a.headers,this.readyState=2,Ij(this)),this.i&&(this.readyState=3,Ij(this),this.i)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.bS.bind(this),this.kz.bind(this));else if("undefined"!==typeof g.C.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.S=new TextDecoder;Hj(this)}else a.text().then(this.cS.bind(this),this.kz.bind(this))};
g.k.TR=function(a){if(this.i){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Jj(this):Ij(this);3==this.readyState&&Hj(this)}};
g.k.cS=function(a){this.i&&(this.response=this.responseText=a,Jj(this))};
g.k.bS=function(a){this.i&&(this.response=a,Jj(this))};
g.k.kz=function(){this.i&&Jj(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
Object.defineProperty(Gj.prototype,"withCredentials",{get:function(){return"include"===this.J},
set:function(a){this.J=a?"include":"same-origin"}});g.Kj.prototype.toString=function(){var a=[],b=this.C;b&&a.push(Rj(b,kMa,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.S)&&a.push(Rj(b,kMa,!0),"@"),a.push(Zf(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.B,null!=c&&a.push(":",String(c));if(c=this.getPath())this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Rj(c,"/"==c.charAt(0)?lMa:mMa,!0));(c=this.u.toString())&&a.push("?",c);(c=this.D)&&a.push("#",Rj(c,nMa));return a.join("")};
g.Kj.prototype.resolve=function(a){var b=this.clone(),c=!!a.C;c?g.Lj(b,a.C):c=!!a.S;c?b.S=a.S:c=!!a.i;c?g.Mj(b,a.i):c=null!=a.B;var d=a.getPath();if(c)g.Nj(b,a.B);else if(c=!!a.K){if("/"!=d.charAt(0))if(this.i&&!this.K)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=Za(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||
1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.K=d:c=""!==a.u.toString();c?Oj(b,a.u.clone()):c=!!a.D;c&&(b.D=a.D);return b};
g.Kj.prototype.clone=function(){return new g.Kj(this)};
g.Kj.prototype.getPath=function(){return this.K};
var kMa=/[#\/\?@]/g,mMa=/[#\?:]/g,lMa=/[#\?]/g,Nba=/[#\?@]/g,nMa=/#/g;g.k=Qj.prototype;g.k.add=function(a,b){Uj(this);this.B=null;a=Vj(this,a);var c=this.i.get(a);c||this.i.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Uj(this);a=Vj(this,a);return this.i.has(a)?(this.B=null,this.u=this.u-this.i.get(a).length,this.i.delete(a)):!1};
g.k.clear=function(){this.i=this.B=null;this.u=0};
g.k.isEmpty=function(){Uj(this);return 0==this.u};
g.k.forEach=function(a,b){Uj(this);this.i.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Ur=function(){Uj(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.k.Ip=function(a){Uj(this);var b=[];if("string"===typeof a)Wj(this,a)&&(b=b.concat(this.i.get(Vj(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.k.set=function(a,b){Uj(this);this.B=null;a=Vj(this,a);Wj(this,a)&&(this.u=this.u-this.i.get(a).length);this.i.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Ip(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;if(!this.i)return"";for(var a=[],b=Array.from(this.i.keys()),c=0;c<b.length;c++){var d=b[c],e=Zf(d);d=this.Ip(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+Zf(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Qj;a.B=this.B;this.i&&(a.i=new Map(this.i),a.u=this.u);return a};g.Ra(g.Yj,g.I);var oMa=[];g.k=g.Yj.prototype;g.k.Qa=function(a,b,c,d){Array.isArray(b)||(b&&(oMa[0]=b.toString()),b=oMa);for(var e=0;e<b.length;e++){var f=De(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.i[f.key]=f}return this};
g.k.Dz=function(a,b,c,d){return Zj(this,a,b,c,d)};
g.k.jc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.jc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ma(d)?!!d.capture:!!d,e=e||this.u||this,c=Ee(c),d=!!d,b=xe(a)?a.Hv(b,c,d,e):a?(a=Ge(a))?a.Hv(b,c,d,e):null:null,b&&(Le(b),delete this.i[b.key])};
g.k.xa=function(){g.Yj.ke.xa.call(this);g.ak(this)};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};bk.prototype.isInputValid=function(){return this.B};dk.prototype.isInputValid=function(){return 3!=this.u};
dk.prototype.pe=function(){return this.J};
dk.prototype.Tx=function(){return!0};
dk.prototype.parse=function(a){function b(m){m&128&&ek(f,h,l,"invalid tag");2!=(m&7)&&ek(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&ek(f,h,l,"unexpected tag");f.u=1;f.i=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&ek(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.C-1);m&128||(f.u=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.i):f.D=Array(f.i),0==f.i&&e())}
function d(m){f.D[f.S++]=m;f.S==f.i&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.u=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.u){case 3:ek(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.u);}f.Z++;l++}a=f.K;f.K=[];return 0<a.length?a:null};fk.prototype.isInputValid=function(){return null===this.i};
fk.prototype.pe=function(){return this.i};
fk.prototype.Tx=function(){return!1};
fk.prototype.parse=function(a){null!==this.i&&gk(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||ck(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=Jc(c.i.substr(0,4*d))}catch(h){ck(c,c.i,h.message)}c.u+=4*d;c.i=c.i.substr(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){gk(this,a,h.message)}this.u+=a.length;return b};var pMa={INIT:0,Du:1,mC:2,rr:3,Mt:4,Lt:5,STRING:6,gC:7,aI:8,rI:9,sI:10,tI:11,cH:12,dH:13,eH:14,fH:15,eI:16,fI:17,gI:18,DQ:19,kC:20};g.k=ik.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.pe=function(){return this.Z};
g.k.done=function(){return 2===this.D};
g.k.Tx=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(hk(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var x;;){x=a[t++];if(!x)break;f.B++;switch(f.i){case m.INIT:"{"===x?f.i=m.mC:"["===x?f.i=m.Mt:hk(x)||jk(f,a,t);continue;case m.gC:case m.mC:if(hk(x))continue;if(f.i===m.gC)h.push(m.aI);else if("}"===x){e("{}");f.i=d();continue}else h.push(m.rr);'"'===x?f.i=m.STRING:jk(f,a,t);continue;case m.aI:case m.rr:if(hk(x))continue;":"===x?(f.i===m.rr&&(h.push(m.rr),f.u++),f.i=m.Du):"}"===x?(f.u--,e(),f.i=d()):","===x?(f.i===m.rr&&h.push(m.rr),f.i=m.gC):jk(f,a,t);continue;case m.Mt:case m.Du:if(hk(x))continue;
if(f.i===m.Mt)if(f.u++,f.i=m.Du,"]"===x){f.u--;if(0===f.u){f.i=m.Lt;return}e("[]");f.i=d();continue}else h.push(m.Lt);'"'===x?f.i=m.STRING:"{"===x?f.i=m.mC:"["===x?f.i=m.Mt:"t"===x?f.i=m.rI:"f"===x?f.i=m.cH:"n"===x?f.i=m.eI:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.i=m.kC:jk(f,a,t));continue;case m.Lt:if(","===x)h.push(m.Lt),f.i=m.Du,1===f.u&&(q=t);else if("]"===x){f.u--;if(0===f.u)return;e();f.i=d()}else if(hk(x))continue;else jk(f,a,t);continue;case m.STRING:var y=t;a:for(;;){for(;0<f.S;)if(x=a[t++],
4===f.S?f.S=0:f.S++,!x)break a;if('"'===x&&!f.K){f.i=d();break}if("\\"===x&&!f.K&&(f.K=!0,x=a[t++],!x))break;if(f.K)if(f.K=!1,"u"===x&&(f.S=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.B+=t-y;continue;case m.rI:if(!x)continue;"r"===x?f.i=m.sI:jk(f,a,t);continue;case m.sI:if(!x)continue;"u"===x?f.i=m.tI:jk(f,a,t);continue;case m.tI:if(!x)continue;"e"===x?f.i=d():jk(f,a,t);continue;case m.cH:if(!x)continue;"a"===x?f.i=m.dH:
jk(f,a,t);continue;case m.dH:if(!x)continue;"l"===x?f.i=m.eH:jk(f,a,t);continue;case m.eH:if(!x)continue;"s"===x?f.i=m.fH:jk(f,a,t);continue;case m.fH:if(!x)continue;"e"===x?f.i=d():jk(f,a,t);continue;case m.eI:if(!x)continue;"u"===x?f.i=m.fI:jk(f,a,t);continue;case m.fI:if(!x)continue;"l"===x?f.i=m.gI:jk(f,a,t);continue;case m.gI:if(!x)continue;"l"===x?f.i=d():jk(f,a,t);continue;case m.DQ:"."===x?f.i=m.kC:jk(f,a,t);continue;case m.kC:if(-1!=="0123456789.eE+-".indexOf(x))continue;else t--,f.B--,f.i=
d();continue;default:jk(f,a,t)}}}
function d(){var x=h.pop();return null!=x?x:m.Du}
function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.Y?f.J.push(x):f.J.push(JSON.parse(x)),q=t)}
for(var f=this,h=f.ma,l=f.ya,m=pMa,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return jk(f,a,t),null;case 2:return b()&&jk(f,a,t),null;case 0:if(b()){var u=a[t++];f.B++;if("["===u){f.D=1;p=t;f.i=m.Mt;continue}else jk(f,a,t)}return null;case 1:return c(),0===f.u&&f.i==m.Lt?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.J.length?(u=f.J,f.J=[],u):null}return null};kk.prototype.isInputValid=function(){return null===this.D};
kk.prototype.pe=function(){return this.D};
kk.prototype.Tx=function(){return!1};
kk.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.i+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new ik({haa:!0,pR:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.J||1<m.length)&&b("extra status: "+m);f.J=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!hk(a[h])){l=!0;break a}h++;f.i++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.i++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.substr(h,5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.i++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.substr(h,5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.i++):"]"===a[h]&&(f.u=5,h++,f.i++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,f.i+=a.length-h-l.length,a=l,h=0):(f.i+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.C.length?(a=f.C,f.C=[],a):null};lk.prototype.getStatus=function(){return this.C};
lk.prototype.Y=function(a){a=a.target;try{if(a==this.i)a:{var b=g.Ci(this.i),c=this.i.u,d=this.i.getStatus(),e=g.Hi(this.i);a=[];if(Ii(this.i)instanceof Array){var f=Ii(this.i);0<f.length&&f[0]instanceof Uint8Array&&(this.Z=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?mk(this,7):7==c?mk(this,8):d||mk(this,3)),this.u||(this.u=Qba(this.i),null==this.u&&mk(this,5)),2<this.C)nk(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.Tx())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.J){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.J=new TextDecoder}for(l=0;l<h;l++)m+=this.J.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){mk(this,5);nk(this);break a}}else if(e.length>this.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){mk(this,5);nk(this);break a}}4==b?(0!=e.length||
this.Z?mk(this,2):mk(this,4),nk(this)):mk(this,1)}}}catch(p){mk(this,6),nk(this)}};g.k=ok.prototype;g.k.fm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.fm(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.zb(c,b);(a=this.i[a])&&g.zb(a,b);return this};
g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this};
g.k.dU=function(a){var b=this.u.data;b&&pk(a,b);(b=this.i.data)&&pk(a,b);this.i.data=[]};
g.k.NV=function(){switch(this.B.getStatus()){case 1:qk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:qk(this,"error");break;case 8:qk(this,"close");break;case 2:qk(this,"end")}};rk.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return sk(function(h){var l=h.Vy(),m=h.getMetadata(),n=uk(e,!1);m=Bk(e,m,n,f+l.getName());var p=Ck(n,l.u,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.C).call(this,tj(d,b,c))};Dk.prototype.create=function(a,b){return tk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},jMa)};Fk.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.u.then(function(b){var c=b.VQ;return new Promise(function(d){c(function(e){d(e)},[a.uJ,
a.Taa])})})};
Fk.prototype.dispose=function(){this.i=!0;this.u.then(function(a){(a=a.ZW)&&a()})};
Fk.prototype.isDisposed=function(){return this.i};var Rk={};var Gk;g.w(Ik,Hk);Ik.prototype.toString=function(){return this.i.toString()};g.w(Kk,Jk);Kk.prototype.toString=function(){return this.i};
var lqa=new Kk("about:invalid#zTSz",Rk);/*

 Copyright 2021 The Safevalues Authors
 SPDX-License-Identifier: Apache-2.0
*/
ea.Object.defineProperties(Sk.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.i.a}},
B:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.w(Uk,g.I);g.w(Vk,Uk);Vk.prototype.Qz=function(a){this.i+=1;var b=new Sk(this.J(a.uJ));a=b.u;b=Lc(b.B);var c=new de;a=Jd(c,1,a);a=Jd(a,2,b);b=new ee;c=Yd;b.i||(b.i={});var d=a?a.ph(!1):a;b.i[3]=a;a=Pd(b,3,c,d);b=new hd;qd(b,1,Zd(a,be,1),Aaa);qd(b,2,Zd(a,ce,2),Baa);qd(b,3,Zd(a,de,3),Caa);$d(a,b);return kd(b)};
Vk.prototype.B=function(){return this.i>=this.C};
Vk.prototype.dispose=function(){this.D.dispose()};
g.w(Wk,Uk);Wk.prototype.Qz=function(){return this.i};
Wk.prototype.B=function(){return!1};
Tk.prototype.isReady=function(){return!!this.Xu};
Tk.prototype.ready=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return g.z(d,c.GL,0)})})};
Tk.prototype.Qz=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.Xu,c=Date.now();void 0!==b.u&&this.logger.Ez(fca(b.u));try{var d=b.Qz(a)}catch(e){throw Zk(this,5,e);}b.B()&&Xk(this,1);this.logger.ew("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof fe?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Wa(a.substring(0,2048)))}};var In;In=["av.default","js","unreleased"].slice(-1)[0];var bm=document,ol=window;var ufa={NONE:0,l1:1},Mca={NO:0,g8:1,f8:2,h8:3};bl.prototype.isVisible=function(){return this.Qp?.3<=this.Yc:.5<=this.Yc};var Bm={rZ:0,C1:1},Kca={NONE:0,E2:1,Y1:2};cl.prototype.getValue=function(){return this.u};
g.w(dl,cl);dl.prototype.setValue=function(a){if(null!==this.u||!g.ec(this.B,a))return!1;this.u=a;return!0};
g.w(el,cl);el.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0};
g.w(fl,cl);fl.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};gl.prototype.disable=function(){this.u=!1};
gl.prototype.enable=function(){this.u=!0};
gl.prototype.isEnabled=function(){return this.u};
gl.prototype.reset=function(){this.i={};this.u=!0;this.B={}};var vfa=!g.Kc&&!tc();ll.prototype.now=function(){return 0};
ll.prototype.u=function(){return 0};
ll.prototype.B=function(){return 0};
ll.prototype.i=function(){return 0};g.w(nl,ll);nl.prototype.now=function(){return ml()&&ol.performance.now?ol.performance.now():ll.prototype.now.call(this)};
nl.prototype.u=function(){return ml()&&ol.performance.memory?ol.performance.memory.totalJSHeapSize||0:ll.prototype.u.call(this)};
nl.prototype.B=function(){return ml()&&ol.performance.memory?ol.performance.memory.usedJSHeapSize||0:ll.prototype.B.call(this)};
nl.prototype.i=function(){return ml()&&ol.performance.memory?ol.performance.memory.jsHeapSizeLimit||0:ll.prototype.i.call(this)};var qca=Ve(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.C.addEventListener("test",null,b)}catch(c){}return a});tl.prototype.isVisible=function(){return 1===sl(bm)};g.cf("csi.gstatic.com");g.cf("googleads.g.doubleclick.net");g.cf("pagead2.googlesyndication.com");g.cf("partner.googleadservices.com");g.cf("pubads.g.doubleclick.net");g.cf("securepubads.g.doubleclick.net");g.cf("tpc.googlesyndication.com");var tca=/https?:\/\/[^\/]+/,rca={jY:"allow-forms",kY:"allow-modals",lY:"allow-orientation-lock",mY:"allow-pointer-lock",nY:"allow-popups",oY:"allow-popups-to-escape-sandbox",pY:"allow-presentation",qY:"allow-same-origin",rY:"allow-scripts",sY:"allow-top-navigation",tY:"allow-top-navigation-by-user-activation"},wca=Ve(function(){return sca()});g.k=zl.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new zl(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof zl?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.k=g.Cl.prototype;g.k.clone=function(){return new g.Cl(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Uf?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Gl=[Fl("data"),Fl("http"),Fl("https"),Fl("mailto"),Fl("ftp"),new El(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var Kl={};var $l=!!window.google_async_iframe_id,am=$l&&window.parent||window;var Aca=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");gm.prototype.Wd=function(a,b,c,d){a=a+"//"+b+c;var e=Cca(this)-c.length-d.length;if(0>e)return"";this.i.sort(function(p,q){return p-q});
c=null;b="";for(var f=0;f<this.i.length;f++)for(var h=this.i[f],l=this.u[h],m=0;m<l.length;m++){if(!e){c=null==c?h:c;break}var n=jm(l[m],this.B,",$");if(n){n=b+n;if(e>=n.length){e-=n.length;a+=n;b=this.B;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};pm.prototype.setInterval=function(a,b){return ol.setInterval(a,b)};
pm.prototype.clearInterval=function(a){ol.clearInterval(a)};
pm.prototype.setTimeout=function(a,b){return ol.setTimeout(a,b)};
pm.prototype.clearTimeout=function(a){ol.clearTimeout(a)};ym.prototype.getContext=function(){if(!this.i){if(!ol)throw Error("Context has not been set and window is undefined.");this.i=om(pm)}return this.i};g.w(zm,Hd);var Lca={I7:1,KQ:2,Q5:3};jf(bf(g.cf("https://pagead2.googlesyndication.com/pagead/osd.js")));Cm.prototype.zF=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1<d.length?parseInt(d[1],10):1;isNaN(d)||(e=b.i[e])&&e.setValue(d)}}}};var e2=null;var Km=g.C.performance,qMa=!!(Km&&Km.mark&&Km.measure&&Km.clearMarks),Im=Ve(function(){var a;if(a=qMa){var b;if(null===e2){e2="";try{a="";try{a=g.C.top.location.hash}catch(c){a=g.C.location.hash}a&&(e2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=e2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Jm.prototype.disable=function(){this.i=!1;this.events!=this.u.google_js_reporting_queue&&(Im()&&g.Ob(this.events,Lm),this.events.length=0)};
Jm.prototype.start=function(a,b){if(!this.i)return null;var c=Hm()||Gm();a=new Oca(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Km&&Im()&&Km.mark(b);return a};
Jm.prototype.end=function(a){if(this.i&&"number"===typeof a.value){var b=Hm()||Gm();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Km&&Im()&&Km.mark(b);!this.i||2048<this.events.length||this.events.push(a)}};Om.prototype.AE=function(a,b,c,d,e){e=e||this.PJ;try{var f=new gm;f.i.push(1);f.u[1]=hm("context",a);b.error&&b.meta&&b.id||(b=new Pm(Qm(b)));if(b.msg){var h=b.msg.substring(0,512);f.i.push(2);f.u[2]=hm("msg",h)}var l=b.meta||{};if(this.yC)try{this.yC(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.i.push(3);f.u[3]=b;var m=fm();if(m.u){var n=m.u.url||"";f.i.push(4);f.u[4]=hm("top",n)}var p=[{url:m.i.url||""},{url:m.i.url?fi(m.i.url):""}];f.i.push(5);f.u[5]=p;Em(this.i,e,f,!1,c)}catch(q){try{Em(this.i,
e,{context:"ecmserr",rctx:a,msg:Qm(q),url:m&&m.i.url},!1,c)}catch(t){}}return this.gG};
g.w(Pm,Fm);var Nm,Sm,Mm=new Jm;(function(){Nm=new Nca;Sm=new Om;var a=cm();a&&a.document&&("complete"==a.document.readyState?Um():Mm.i&&ql(a,"load",function(){Um()}))})();var Qca=Date.now(),an=-1,Zm=-1,Eo,bn=-1,$m=!1;var rMa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},zo={GQ:"start",QO:"firstquartile",BQ:"midpoint",HQ:"thirdquartile",KO:"complete",AQ:"metric",PAUSE:"pause",EQ:"resume",FQ:"skip",JQ:"viewable_impression",CQ:"mute",IQ:"unmute",RO:"fullscreen",PO:"exitfullscreen",JO:"bufferstart",IO:"bufferfinish",SO:"fully_viewable_audible_half_duration_impression",zQ:"measurable_impression",GO:"abandon",OO:"engagedview",TO:"impression",LO:"creativeview",yQ:"loaded",Q7:"progress",CLOSE:"close",
iZ:"collapse",S6:"overlay_resize",T6:"overlay_unmeasurable_impression",U6:"overlay_unviewable_impression",W6:"overlay_viewable_immediate_impression",V6:"overlay_viewable_end_of_session_impression",MO:"custom_metric_viewable",N6:"verification_debug"},Fga="start firstquartile midpoint thirdquartile resume loaded".split(" "),Gga=["start","firstquartile","midpoint","thirdquartile"],Kfa=["abandon"],xp={UNKNOWN:-1,GQ:0,QO:1,BQ:2,HQ:3,KO:4,AQ:5,PAUSE:6,EQ:7,FQ:8,JQ:9,CQ:10,IQ:11,RO:12,PO:13,SO:14,zQ:15,
GO:16,OO:17,TO:18,LO:19,yQ:20,MO:21,JO:22,IO:23};var Sca={XX:"addEventListener",b2:"getMaxSize",d2:"getScreenSize",e2:"getState",f2:"getVersion",b8:"removeEventListener",L2:"isViewable"};if(bm&&bm.URL){var sMa,yl=bm.URL;sMa=!!yl&&0<vca().length;Sm.gG=!sMa};pn.prototype.update=function(a){a&&a.document&&(this.K=jn(!1,a,this.isMobileDevice),this.i=jn(!0,a,this.isMobileDevice),rn(this,a),qn(this,a))};un.prototype.cancel=function(){qm().clearTimeout(this.i);this.i=null};
un.prototype.schedule=function(){var a=this;this.i=qm().setTimeout(Am(Dm().i.i,Wm(143,function(){a.u++;a.B.sample()})),Rca())};g.k=vn.prototype;g.k.Ot=function(){return!1};
g.k.initialize=function(){return this.Yd=!0};
g.k.Rr=function(){return this.i.Aa};
g.k.Sv=function(){return this.i.Z};
g.k.Ch=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.Aa=a,this.K=0,this.i!=this||An(this)};
g.k.getName=function(){return this.i.Ja};
g.k.yn=function(){return this.i.hK()};
g.k.hK=function(){return{}};
g.k.Ql=function(){return this.i.K};
g.k.pH=function(){var a=sn();a.i=jn(!0,this.fg,a.isMobileDevice)};
g.k.qH=function(){qn(sn(),this.fg)};
g.k.pK=function(){return this.B.i};
g.k.sample=function(){};
g.k.isActive=function(){return this.i.D};
g.k.gs=function(a){var b=this.i;this.i=a.Ql()>=this.K?a:this;b!==this.i?(this.D=this.i.D,An(this)):this.D!==this.i.D&&(this.D=this.i.D,An(this))};
g.k.Fn=function(a){if(a.u===this.i){var b=this.B,c=this.S;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.B==a.B)b=b.i,c=a.i,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.B=a;!c&&zn(this)}};
g.k.Sk=function(){return this.S};
g.k.dispose=function(){this.ya=!0};
g.k.isDisposed=function(){return this.ya};g.k=Bn.prototype;g.k.JB=function(){return!0};
g.k.Pt=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.zb(a.C,this);a.S&&this.Sk()&&yn(a);this.Pt();this.Y=!0}};
g.k.isDisposed=function(){return this.Y};
g.k.yn=function(){return this.u.yn()};
g.k.Ql=function(){return this.u.Ql()};
g.k.Rr=function(){return this.u.Rr()};
g.k.Sv=function(){return this.u.Sv()};
g.k.gs=function(){};
g.k.Fn=function(){this.Qm()};
g.k.Sk=function(){return this.ma};g.k=Cn.prototype;g.k.Ql=function(){return this.i.Ql()};
g.k.Rr=function(){return this.i.Rr()};
g.k.Sv=function(){return this.i.Sv()};
g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Fx(a,b,c),wn(this.i,d));return d};
g.k.rH=function(){return this.Qt()};
g.k.Qt=function(){return!1};
g.k.init=function(a){return this.i.initialize()?(wn(this.i,this),this.C=a,!0):!1};
g.k.gs=function(a){0==a.Ql()&&this.C(a.Rr(),this)};
g.k.Fn=function(){};
g.k.Sk=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.yn=function(){return{}};Fn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.i,f=e.push;a=new Dn(a,b,c);d=new Dn(a.u,a.i,a.B+d);f.call(e,d);this.u=!0;return this};Jn.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Hn(this.i);0<b.length&&(a+="?"+b);return a};Mn.prototype.update=function(a,b,c){a&&(this.i+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var ada=[1,.75,.5,.3,0];Nn.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.i[e].update(f&&l,d,!f||h)}};Wn.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.Yc):b.Yc;this.ma=Math.max(this.ma,b.Yc);this.ya=-1!=this.ya?Math.min(this.ya,b.oh):b.oh;this.Da=Math.max(this.Da,b.oh);this.Za.update(b.oh,c.oh,b.i,a,d);this.u.update(b.Yc,c.Yc,b.i,a,d);c=d||c.Qp!=b.Qp?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)};
Wn.prototype.Tp=function(){return this.La.B>=this.Ya};var tMa=new zl(0,0,0,0);var mfa=new zl(0,0,0,0);g.w($n,g.I);g.k=$n.prototype;g.k.xa=function(){this.Sg.i&&(this.pp.ME&&(rl(this.Sg.i,"mouseover",this.pp.ME),this.pp.ME=null),this.pp.KE&&(rl(this.Sg.i,"mouseout",this.pp.KE),this.pp.KE=null));this.kx&&this.kx.dispose();this.Jd&&this.Jd.dispose();delete this.Lz;delete this.CE;delete this.oO;delete this.Sg.Nn;delete this.Sg.i;delete this.pp;delete this.kx;delete this.Jd;delete this.featureSet;g.I.prototype.xa.call(this)};
g.k.zn=function(){return this.Jd?this.Jd.i:this.position};
g.k.zF=function(a){Dm().zF(a)};
g.k.Sk=function(){return!1};
g.k.Yy=function(){return new Wn};
g.k.Xg=function(){return this.Lz};
g.k.kK=function(a){return co(this,a,1E4)};
g.k.Pa=function(a,b,c,d,e,f,h){this.ys||(this.Ay&&(a=this.IC(a,c,e,h),d=d&&this.vf.Yc>=(this.Qp()?.3:.5),this.MG(f,a,d),this.lastUpdateTime=b,0<a.Yc&&-1===this.WN&&(this.WN=b),-1==this.bO&&this.Tp()&&(this.bO=b),-2==this.yE&&(this.yE=Yn(this.zn())?a.Yc:-1),this.vf=a),this.CE(this))};
g.k.MG=function(a,b,c){this.Xg().update(a,b,this.vf,c)};
g.k.HD=function(){return new bl};
g.k.IC=function(a,b,c,d){c=this.HD();c.i=b;b=qm().u;b=0===sl(bm)?-1:b.isVisible()?0:1;c.u=b;c.Yc=this.WC(a);c.Qp=this.Qp();c.oh=d;return c};
g.k.WC=function(a){return 0===this.opacity&&1===jl(this.featureSet,"opac")?0:a};
g.k.Qp=function(){return!1};
g.k.SA=function(){return this.xS||this.AS};
g.k.Tz=function(){Ym()};
g.k.LE=function(){Ym()};
g.k.Ak=function(){return 0};
g.k.Tp=function(){return this.Lz.Tp()};g.Uq="StopIteration"in g.C?g.C.StopIteration:{message:"StopIteration",stack:""};g.eo.prototype.uj=function(){throw g.Uq;};
g.eo.prototype.Lg=function(){return this};g.w(fo,bl);io.prototype.getValue=function(){return this.u};
io.prototype.update=function(a,b){32<=a||(this.i&1<<a&&!b?this.u&=~(1<<a):this.i&1<<a||!b||(this.u|=1<<a),this.i|=1<<a)};g.w(jo,Wn);
jo.prototype.update=function(a,b,c,d){if(!b.paused){Wn.prototype.update.call(this,a,b,c,d);var e=go(b)&&go(c),f=.5<=(d?Math.min(b.Yc,c.Yc):c.Yc);nn(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.J=Math.max(this.J,b.volume));f&&(this.Aa+=a,this.Z+=e?a:0);this.i.update(b.Yc,c.Yc,b.i,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Y.update(c.fullscreen,a);this.eb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ka.update(a,b.isVisible());this.Ua.update(a,1<=b.Yc);this.Sa.update(a,
go(b))}};g.w(lo,Efa);lo.prototype.C=function(){return!0};
lo.prototype.D=function(){return!1};
lo.prototype.getId=function(){var a=this,b=fc(zo,function(c){return c==a.u});
return xp[b].toString()};
lo.prototype.toString=function(){var a="";this.D()&&(a+="c");this.i&&(a+="s");0<this.B&&(a+=":"+this.B);return this.getId()+a};g.w(oo,Bn);g.k=oo.prototype;g.k.LC=function(){if(this.element){var a=this.element,b=this.u.i.fg;try{try{var c=ln(a.getBoundingClientRect())}catch(n){c=new zl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Ul(a,b),h=f.x,l=f.y;var m=new zl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=tMa.clone()}this.i=m}};
g.k.cJ=function(){this.C=this.u.B.i};
g.k.aL=function(a){var b=1==jl(this.featureSet,"od");return lfa(a,this.C,this.element,b)};
g.k.dJ=function(){this.timestamp=Ym()};
g.k.Qm=function(){this.dJ();this.LC();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Wf(a.videoWidth,a.videoHeight);a=this.i;var c=Al(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.cJ();
a=this.i;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new zl(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 zl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new zl(0,0,0,0):a;a=this.u.B;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.aL(c)?c=new zl(0,0,0,0):(d=sn().C,b=new zl(0,d.height,d.width,0),d=Zn(c,this.i),e=Zn(c,sn().i),b=Zn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new zl(0,0,0,
0):Bl(c,-this.i.left,-this.i.top);tn()||(e=d=0);this.K=new dn(a,this.i,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var uMa=new zl(0,0,0,0);g.w(po,oo);g.k=po.prototype;g.k.JB=function(){this.B();return!0};
g.k.Fn=function(){oo.prototype.Qm.call(this)};
g.k.dJ=function(){};
g.k.LC=function(){};
g.k.Qm=function(){this.B();oo.prototype.Qm.call(this)};
g.k.gs=function(a){a=a.isActive();a!==this.J&&(a?this.B():(sn().i=new zl(0,0,0,0),this.i=new zl(0,0,0,0),this.C=new zl(0,0,0,0),this.timestamp=-1));this.J=a};var f2={},Jfa=(f2.firstquartile=0,f2.midpoint=1,f2.thirdquartile=2,f2.complete=3,f2);g.w(ro,$n);g.k=ro.prototype;g.k.Sk=function(){return!0};
g.k.Xl=function(){return 2==this.xg};
g.k.kK=function(a){return co(this,a,Math.max(1E4,this.B/3))};
g.k.Pa=function(a,b,c,d,e,f,h){var l=this,m=this.S(this)||{};g.pc(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.Ja=m.isYouTube||this.Ja;e=Ffa(this,b);1===vo(this)&&(f=e);$n.prototype.Pa.call(this,a,b,c,d,m,f,h);this.cq&&this.cq.i&&g.Ob(this.J,function(n){n.i||(n.i=no(n,l))})};
g.k.MG=function(a,b,c){$n.prototype.MG.call(this,a,b,c);uo(this).update(a,b,this.vf,c);this.Za=go(this.vf)&&go(b);-1==this.Da&&this.Ya&&(this.Da=this.Xg().B.i);this.hf.B=0;a=this.Tp();b.isVisible()&&ho(this.hf,"vs");a&&ho(this.hf,"vw");nn(b.volume)&&ho(this.hf,"am");go(b)&&ho(this.hf,"a");this.ls&&ho(this.hf,"f");-1!=b.u&&(ho(this.hf,"bm"),1==b.u&&ho(this.hf,"b"));go(b)&&b.isVisible()&&ho(this.hf,"avs");this.Za&&a&&ho(this.hf,"avw");0<b.Yc&&ho(this.hf,"pv");wo(this,this.Xg().B.i,!0)&&ho(this.hf,"gdr");
2E3<=Tn(this.Xg().u,1)&&ho(this.hf,"pmx")};
g.k.Yy=function(){return new jo};
g.k.Xg=function(){return this.Lz};
g.k.HD=function(){return new fo};
g.k.IC=function(a,b,c,d){a=$n.prototype.IC.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.ls;a.paused=this.Xl();a.volume=c.volume;nn(a.volume)||(this.eb++,b=this.vf,nn(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.WC=function(a){return sn(),this.ls?1:$n.prototype.WC.call(this,a)};
g.k.Ak=function(){return 1};
g.k.getDuration=function(){return this.B};var vMa=g.Qa();Go.prototype.reset=function(){this.i=[];this.u=[]};
var Jo=om(Go);g.w(Po,Cn);g.k=Po.prototype;g.k.getName=function(){return(this.u?this.u:this.i).getName()};
g.k.yn=function(){return(this.u?this.u:this.i).yn()};
g.k.Ql=function(){return(this.u?this.u:this.i).Ql()};
g.k.init=function(a){var b=!1;(0,g.Ob)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,wn(this.i,this));return b};
g.k.dispose=function(){(0,g.Ob)(this.B,function(a){a.dispose()});
Cn.prototype.dispose.call(this)};
g.k.rH=function(){return on(this.B,function(a){return a.Ot()})};
g.k.Qt=function(){return on(this.B,function(a){return a.Ot()})};
g.k.Fx=function(a,b,c){return new oo(a,this.i,b,c)};
g.k.Fn=function(a){this.u=a.u};var Wfa={threshold:[0,.3,.5,.75,1]};g.w(Qo,oo);g.k=Qo.prototype;g.k.JB=function(){var a=this;this.Z||(this.Z=Ym());if(Vm(298,function(){return Xfa(a)}))return!0;
this.u.Ch("msf");return!1};
g.k.Pt=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Qm=function(){var a=Ro(this);0<a.length&&So(this,a);oo.prototype.Qm.call(this)};
g.k.LC=function(){};
g.k.aL=function(){return!1};
g.k.cJ=function(){};
g.k.yn=function(){var a={};return Object.assign(this.u.yn(),(a.niot_obs=this.Z,a.niot_cbk=this.S,a))};
g.k.getName=function(){return"nio"};g.w(To,Cn);To.prototype.getName=function(){return"nio"};
To.prototype.Qt=function(){return!sn().u&&null!=this.i.i.fg.IntersectionObserver};
To.prototype.Fx=function(a,b,c){return new Qo(a,this.i,b,c)};g.w(Vo,vn);Vo.prototype.pK=function(){return sn().i};
Vo.prototype.Ot=function(){var a=Uo();this.K!==a&&(this.i!=this&&a>this.i.K&&(this.i=this,An(this)),this.K=a);return 2==a};Xo.prototype.sample=function(){ip(this,Ko(),!1)};
Xo.prototype.C=function(){var a=tn(),b=Ym();a?($m||(an=b,g.Ob(Jo.i,function(c){var d=c.Xg();d.Ja=ko(d,b,1!=c.xg)})),$m=!0):(this.K=kp(this,b),$m=!1,Eo=b,g.Ob(Jo.i,function(c){c.Ay&&(c.Xg().S=b)}));
ip(this,Ko(),!a)};
var gp=om(Xo);var lp=null,Xp="",Wp=!1;var g2=rp([void 0,1,2,3,4,8,16]),h2=rp([void 0,4,8,16]),wMa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:qp("p0",h2),p1:qp("p1",h2),p2:qp("p2",h2),p3:qp("p3",h2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:pp("mtos1",[0,2,4],!1,h2),mtos2:pp("mtos2",[0,2,4],!1,h2),mtos3:pp("mtos3",[0,2,4],!1,h2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:qp("a0",h2),a1:qp("a1",h2),a2:qp("a2",h2),a3:qp("a3",h2),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:qp("c0",h2),c1:qp("c1",h2),c2:qp("c2",h2),c3:qp("c3",h2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:qp("qmtos",g2),qnc:qp("qnc",g2),qmv:qp("qmv",g2),qnv:qp("qnv",g2),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:qp("ss0",h2),ss1:qp("ss1",h2),ss2:qp("ss2",h2),ss3:qp("ss3",h2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},xMa={c:mp("c"),
at:"at",atos:pp("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:op(),j:"dom",mtos:pp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:mp("ss"),vsv:Te("w2"),t:"t"},yMa={atos:"atos",avt:pp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:mp("ss"),t:"t"},zMa={a:"a",tos:op(),at:"at",c:mp("c"),mtos:pp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:Te("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},AMa={tos:op(),at:"at",c:mp("c"),mtos:pp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Te("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:pp("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.lm(b,function(e){return 0<d&&d>=e?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};var vp=tp().pk,up=tp().version;var fga={E1:"visible",AY:"audible",B9:"time",C9:"timetype"},Ap={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.w(Bp,lo);Bp.prototype.getId=function(){return this.J};
Bp.prototype.D=function(){return!0};
Bp.prototype.C=function(a){var b=a.Xg(),c=a.getDuration();return on(this.K,function(d){if(void 0!=d.i)var e=hga(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.i;break b;case "tos":e=d.u?b.D.i:b.B.i;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Cp,lo);Cp.prototype.C=function(a){var b=Rn(a.Xg().i,1);return wo(a,b)};g.w(Dp,lo);Dp.prototype.C=function(a){return a.Xg().Tp()};g.w(Gp,iga);Gp.prototype.i=function(a){var b=new Ep;b.i=Fp(a,wMa);b.B=Fp(a,yMa);return b};g.w(Hp,po);Hp.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=jl(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)};
Hp.prototype.getName=function(){return"gsv"};g.w(Ip,Cn);Ip.prototype.getName=function(){return"gsv"};
Ip.prototype.Qt=function(){var a=sn();Dm();return a.u&&!1};
Ip.prototype.Fx=function(a,b,c){return new Hp(this.i,b,c)};g.w(Jp,po);Jp.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=jl(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.ic(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=mn(d.opt_nativeViewBounds||{});var h=a.u.B;h.i=f?uMa.clone():mn(e);a.timestamp=d.opt_nativeTime||-1;sn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Jp.prototype.getName=function(){return"nis"};g.w(Kp,Cn);Kp.prototype.getName=function(){return"nis"};
Kp.prototype.Qt=function(){var a=sn();Dm();return a.u&&!1};
Kp.prototype.Fx=function(a,b,c){return new Jp(this.i,b,c)};g.w(Lp,vn);g.k=Lp.prototype;g.k.Ot=function(){return null!=this.u.tj};
g.k.hK=function(){var a={};this.Da&&(a.mraid=this.Da);this.ma&&(a.mlc=1);a.mtop=this.u.aX;this.J&&(a.mse=this.J);this.Ka&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.xo=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{return this.u.tj[a].apply(this.u.tj,c)}catch(e){Xm(538,e,.01,function(f){f.method=a})}};
g.k.initialize=function(){var a=this;if(this.Yd)return!this.Sv();this.Yd=!0;if(2===this.u.compatibility)return this.J="ng",this.Ch("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.Ch("w"),!1;sn().S=!0;this.fg.document.readyState&&"complete"==this.fg.document.readyState?Pp(this):gn(this.fg,"load",function(){qm().setTimeout(Wm(292,function(){return Pp(a)}),100)},292);
return!0};
g.k.pH=function(){var a=sn(),b=Sp(this,"getMaxSize");a.i=new zl(0,b.width,b.height,0)};
g.k.qH=function(){sn().C=Sp(this,"getScreenSize")};
g.k.dispose=function(){Qp(this);vn.prototype.dispose.call(this)};g.k=Tp.prototype;g.k.Zu=function(a){ao(a,!1);Tfa(a)};
g.k.fz=function(){};
g.k.Sw=function(a,b,c,d){var e=this;this.u||(this.u=this.AJ());b=c?b:-1;a=null==this.u?new ro(ol,a,b,7):new ro(ol,a,b,7,new lo("measurable_impression",this.u),oga(this));a.Ef=d;nca(a.featureSet);il(a.featureSet,"queryid",a.Ef);a.zF("");yfa(a,function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];return e.wK.apply(e,g.v(h))},function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];
return e.fS.apply(e,g.v(h))});
(d=om(No).i)&&bo(a,d);a.Sg.Nn&&om(Wo);return a};
g.k.gs=function(a){switch(a.Ql()){case 0:if(a=om(No).i)a=a.i,g.zb(a.C,this),a.S&&this.Sk()&&yn(a);Vp();break;case 2:hp()}};
g.k.Fn=function(){};
g.k.Sk=function(){return!1};
g.k.fS=function(a,b){a.ys=!0;switch(a.Ak()){case 1:aq(this,a,b);break;case 2:this.HF(a)}this.UF()};
g.k.nS=function(a){yo(a,0);return Bo(a,"start",tn())};
g.k.xt=function(a,b,c){ip(gp,[a],!tn());return this.Bn(a,b,c)};
g.k.Bn=function(a,b,c){return Bo(a,c,tn())};
g.k.iS=function(a){return bq(a,"firstquartile",1)};
g.k.kS=function(a){a.Ya=!0;return bq(a,"midpoint",2)};
g.k.oS=function(a){return bq(a,"thirdquartile",3)};
g.k.gS=function(a){var b=bq(a,"complete",4);so(a);return b};
g.k.vN=function(a,b,c){b=tn();if(a.Xl()&&!b){var d=Ym();a.Xg().S=d}ip(gp,[a],!b);a.Xl()&&(a.xg=1);return Bo(a,c,b)};
g.k.mS=function(a,b){b=this.xt(a,b||{},"skip");so(a);return b};
g.k.jS=function(a,b){ao(a,!0);return this.xt(a,b||{},"fullscreen")};
g.k.hS=function(a,b){ao(a,!1);return this.xt(a,b||{},"exitfullscreen")};
g.k.sF=function(a,b,c){b=a.Xg();var d=Ym();b.Ja=ko(b,d,1!=a.xg);ip(gp,[a],!tn());1==a.xg&&(a.xg=2);return Bo(a,c,tn())};
g.k.lS=function(a){ip(gp,[a],!tn());return a.u()};
g.k.WD=function(a){ip(gp,[a],!tn());this.qN(a);so(a);return a.u()};
g.k.wK=function(){};
g.k.HF=function(){};
g.k.qN=function(){};
g.k.sH=function(){};
g.k.UF=function(){};
g.k.AJ=function(){};var fq=g.Qa(),hq=!1,iq=!1,jq=!1,uga=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return gq(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return gq(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return gq(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return gq(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return gq(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return iq},
function(){return jq},
function(){return gq(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{DummyFunction1()}catch(b){a=!0}return a},
function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},
function(){return!1},
function(){return gq(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||eq(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return eq(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return gq(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return eq(a.CSS.supports)},
function(){return eq(Intl.Collator)},
function(a){return eq(a.document.createElement("dialog").show)},
function(){return gq(8)},
function(a){return eq(a.document.createElement("div").animate([{transform:"scale(1)",easing:"ease-in"},{transform:"scale(1.3)",easing:"ease-in"}],{duration:1300,iterations:1}).reverse)},
function(a){return eq(a.document.createElement("div").animate)},
function(a){return eq(a.document.documentElement.webkitRequestFullScreen)},
function(a){return eq(a.navigator.getBattery)},
function(a){return eq(a.navigator.permissions.query)},
function(){return!1},
function(){return gq(9)},
function(){return eq(webkitRequestAnimationFrame)},
function(a){return eq(a.BroadcastChannel.call)},
function(a){return eq(a.FontFace)},
function(a){return eq(a.Gamepad)},
function(){return gq(10)},
function(a){return eq(a.MutationEvent)},
function(a){return eq(a.MutationObserver)},
function(a){return eq(a.crypto.getRandomValues)},
function(a){return eq(a.document.body.createShadowRoot)},
function(a){return eq(a.document.body.webkitCreateShadowRoot)},
function(a){return eq(a.fetch)},
function(){return gq(11)},
function(a){return eq(a.navigator.serviceWorker.register)},
function(a){return eq(a.navigator.webkitGetGamepads)},
function(a){return eq(a.speechSynthesis.speak)},
function(a){return eq(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return gq(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return gq(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof InstallTrigger},
function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return gq(14)},
function(a){return"undefined"==typeof a.navigator.aba},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],vga=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],wga=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.Ra(kq,yga);kq.prototype.reset=function(){this.i[0]=1732584193;this.i[1]=4023233417;this.i[2]=2562383102;this.i[3]=271733878;this.B=this.u=0};
kq.prototype.update=function(a,b){void 0===b&&(b=a.length);for(var c=b-this.blockSize,d=this.C,e=this.u,f=0;f<b;){if(0==e)for(;f<=c;)lq(this,a,f),f+=this.blockSize;if("string"===typeof a)for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.blockSize){lq(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.blockSize){lq(this,d);e=0;break}}this.u=e;this.B+=b};
kq.prototype.digest=function(){var a=Array((56>this.u?this.blockSize:2*this.blockSize)-this.u);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.B;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.w(mq,Gp);mq.prototype.i=function(a){var b=Gp.prototype.i.call(this,a);var c=fq=g.Qa();var d=gq(5);c=(iq?!d:d)?c|2:c&-3;d=gq(2);c=(jq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=xga());b.D=this.u;b.J=Fp(a,xMa,c,"h",nq("kArwaWEsTs"));b.C=Fp(a,zMa,{},"h",nq("b96YPMzfnx"));b.u=Fp(a,AMa,{},"h",nq("yb8Wev6QDg"));return b};oq.prototype.u=function(){return g.Ga(this.i)};g.w(pq,Tp);g.k=pq.prototype;g.k.fz=function(a,b){var c=this,d=om(No);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Cga(this,a,b);break;case "gsv":e=Bga(this,a,b);break;case "exc":e=Dga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=rga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Ak()&&(e.S==g.Ha&&(e.S=function(f){return c.sH(f)}),Aga(this,e,b));
return e};
g.k.sH=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Dm();a.Ua&&(Dm(),"h"!=Zp(this)&&Zp(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Ef)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ef)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ef)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.ic(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.K=0;for(var d in rMa)null==b[d]&&(a.K|=rMa[d]);dq(b,"currentTime");dq(b,"duration");nn(c.volume)&&nn(void 0)&&(c.volume*=NaN);return c};
g.k.AJ=function(){Dm();"h"!=Zp(this)&&Zp(this);var a=Ega(this);return null!=a?new oq(a,this.C):null};
g.k.HF=function(a){!a.i&&a.ys&&$p(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)};
g.k.qN=function(a){a.IN&&(a.Tp()?$p(this,a,"overlay_viewable_end_of_session_impression"):$p(this,a,"overlay_unviewable_impression"),a.IN=!1)};
g.k.wK=function(){};
g.k.UF=function(){};
g.k.Sw=function(a,b,c,d){a=Tp.prototype.Sw.call(this,a,b,c,d);this.D&&(b=this.J,null==a.D&&(a.D=new zfa),b.i[a.Ef]=a.D,a.D.D=vMa);return a};
g.k.Zu=function(a){a&&1==a.Ak()&&this.D&&delete this.J.i[a.Ef];return Tp.prototype.Zu.call(this,a)};
var qq=new Ep;qq.D="stopped";qq.i="stopped";qq.B="stopped";qq.J="stopped";qq.C="stopped";qq.u="stopped";Object.freeze(qq);var BMa=Tm(193,tq,cq);g.Fa("Goog_AdSense_Lidar_sendVastEvent",BMa,void 0);var CMa=Wm(194,function(a,b){b=void 0===b?{}:b;a=rq(om(pq),a,b);return sq(a)});
g.Fa("Goog_AdSense_Lidar_getViewability",CMa,void 0);var DMa=Tm(195,function(){return xm()},void 0);
g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",DMa,void 0);var EMa=Wm(196,function(){return JSON.stringify(xm())});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",EMa,void 0);var mha=(new Date).getTime();var vq="://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(" "),Hga=/\bocr\b/;var Iga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var gna={L3:"LIVING_ROOM_APP_MODE_UNSPECIFIED",I3:"LIVING_ROOM_APP_MODE_MAIN",H3:"LIVING_ROOM_APP_MODE_KIDS",J3:"LIVING_ROOM_APP_MODE_MUSIC",K3:"LIVING_ROOM_APP_MODE_UNPLUGGED",G3:"LIVING_ROOM_APP_MODE_GAMING"};yq.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)};
yq.prototype.get=function(a){return!!this.data_[a]};g.Ra(g.zq,g.I);g.k=g.zq.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Bq(this),b=Cq(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.i=De(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.i=a&&b?a.call(this.u,this.B):this.u.setTimeout(Ue(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=Bq(this),b=Cq(this);a&&!b&&this.u.mozRequestAnimationFrame?Le(this.i):a&&b?b.call(this.u,this.i):this.u.clearTimeout(this.i)}this.i=null};
g.k.isActive=function(){return null!=this.i};
g.k.WO=function(){this.C&&this.i&&Le(this.i);this.i=null;this.J.call(this.D,g.Qa())};
g.k.xa=function(){this.stop();g.zq.ke.xa.call(this)};g.Ra(g.M,g.I);g.k=g.M.prototype;g.k.Rt=0;g.k.xa=function(){g.M.ke.xa.call(this);this.stop();delete this.i;delete this.u};
g.k.start=function(a){this.stop();this.Rt=g.sh(this.B,void 0!==a?a:this.Tf)};
g.k.stop=function(){this.isActive()&&g.C.clearTimeout(this.Rt);this.Rt=0};
g.k.isActive=function(){return 0!=this.Rt};
g.k.tH=function(){this.Rt=0;this.i&&this.i.call(this.u)};Gq.prototype[Symbol.iterator]=function(){return this};
Gq.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.u.call(void 0,a.value,this.B++),done:a.done}};Pq.prototype.Lg=function(){return new Qq(this.u())};
Pq.prototype[Symbol.iterator]=function(){return new Rq(this.u())};
Pq.prototype.i=function(){return new Rq(this.u())};
g.w(Qq,g.eo);Qq.prototype.uj=function(){var a=this.u.next();if(a.done)throw g.Uq;return a.value};
Qq.prototype[Symbol.iterator]=function(){return new Rq(this.u)};
Qq.prototype.i=function(){return new Rq(this.u)};
g.w(Rq,Pq);Rq.prototype.next=function(){return this.B.next()};g.k=g.Vq.prototype;g.k.Ip=function(){Xq(this);for(var a=[],b=0;b<this.i.length;b++)a.push(this.u[this.i[b]]);return a};
g.k.Ur=function(){Xq(this);return this.i.concat()};
g.k.has=function(a){return Wq(this.u,a)};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Io=this.size=this.i.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return Wq(this.u,a)?(delete this.u[a],--this.size,this.Io++,this.i.length>2*this.size&&Xq(this),!0):!1};
g.k.get=function(a,b){return Wq(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){Wq(this.u,a)||(this.size+=1,this.i.push(a),this.Io++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Ur(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.Vq(this)};
g.k.keys=function(){return Tq(this.Lg(!0)).i()};
g.k.values=function(){return Tq(this.Lg(!1)).i()};
g.k.entries=function(){var a=this;return Kga(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Lg=function(a){Xq(this);var b=0,c=this.Io,d=this,e=new g.eo;e.uj=function(){if(c!=d.Io)throw Error("The map has changed since the iterator was created");if(b>=d.i.length)throw g.Uq;var f=d.i[b++];return a?f:d.u[f]};
return e};g.Ra(g.Yq,g.Oe);g.k=g.Yq.prototype;g.k.Ac=function(){return 1==this.i};
g.k.Xz=function(){this.ni("begin")};
g.k.Aw=function(){this.ni("end")};
g.k.onFinish=function(){this.ni("finish")};
g.k.ni=function(a){this.dispatchEvent(a)};var FMa=Ve(function(){if(g.Kc)return g.Dc("10.0");var a=g.zg("DIV"),b=g.ug?"-webkit":Ll?"-moz":g.Kc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!dMa.test("div"))throw Error("");if("DIV"in fMa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!dMa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof af)f=bf(f);else if("style"==h.toLowerCase()){if(!g.Ma(f))throw Error("");
f instanceof uf||(f=yf(f));f=vf(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in eMa)if(f instanceof gf)f=hf(f).toString();else if(f instanceof g.mf)f=g.nf(f);else if("string"===typeof f)f=g.rf(f).Ih();else throw Error("");}f.Ek&&(f=f.Ih());h=h+'="'+ib(String(f))+'"';e+=" "+h}}var l="<div"+e;null==d?d=[]:Array.isArray(d)||(d=[d]);!0===$La.div?l+=">":(c=Waa(d),l+=">"+g.Ff(c).toString()+"</div>",c=c.Qr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Gf(l,c);g.Lf(a,b);return""!=
g.Ml(a.firstChild,"transition")});g.Ra(Zq,g.Yq);g.k=Zq.prototype;g.k.play=function(){if(this.Ac())return!1;this.Xz();this.ni("play");this.startTime=g.Qa();this.i=1;if(FMa())return g.Jl(this.u,this.K),this.C=g.sh(this.tW,void 0,this),!0;this.KB(!1);return!1};
g.k.tW=function(){g.Yl(this.u);Lga(this.u,this.S);g.Jl(this.u,this.D);this.C=g.sh((0,g.D)(this.KB,this,!1),1E3*this.J)};
g.k.stop=function(){this.Ac()&&this.KB(!0)};
g.k.KB=function(a){g.Jl(this.u,"transition","");g.C.clearTimeout(this.C);g.Jl(this.u,this.D);this.endTime=g.Qa();this.i=0;if(a)this.ni("stop");else this.onFinish();this.Aw()};
g.k.xa=function(){this.stop();Zq.ke.xa.call(this)};
g.k.pause=function(){};var ar=g.Ha;var Mga={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};dr("Element","attributes")||dr("Node","attributes");dr("Element","innerHTML")||dr("HTMLElement","innerHTML");dr("Node","nodeName");dr("Node","nodeType");dr("Node","parentNode");dr("Node","childNodes");dr("HTMLElement","style")||dr("Element","style");dr("HTMLStyleElement","sheet");var Qga=er("getPropertyValue"),Rga=er("setProperty");dr("Element","namespaceURI")||dr("Node","namespaceURI");var Pga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.ir.prototype.clone=function(){return new g.ir(this.i,this.D,this.B,this.J,this.C,this.K,this.u,this.S)};kr.prototype.clone=function(){return new kr(this.start,this.end)};var GMa=new WeakMap;(function(){if(JHa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Qb))?a[1]:"0"}return $T?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Qb))?a[0].replace(/_/g,"."):"10"):g.bu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Qb))?a[1]:""):VLa||WLa||XLa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Qb))?a[1].replace(/_/g,"."):""):""})();var Yga=function(){if(g.Ti)return lr(/Firefox\/([0-9.]+)/);if(g.Kc||g.Vw||g.WE)return Cc;if(g.Si){if(vc()||Sb("Macintosh")){var a=lr(/CriOS\/([0-9.]+)/);if(a)return a}return lr(/Chrome\/([0-9.]+)/)}if(g.Ui&&!vc())return lr(/Version\/([0-9.]+)/);if(eF||oH){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Qb))return a[1]+"."+a[2]}else if(g.XE)return(a=lr(/Android\s+([0-9.]+)/))?a:lr(/Version\/([0-9.]+)/);return""}();g.Ra(g.nr,g.I);g.k=g.nr.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.J=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.cg(a)}return!1};
g.k.cg=function(a){var b=this.i[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.i[a+1]=g.Ha):(c&&g.zb(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b};
g.k.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.K)for(e=0;e<c.length;e++){var h=c[e];Zga(this.i[h+1],this.i[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.i[h+1].apply(this.i[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.cg(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.cg,this),delete this.u[a])}else this.i.length=0,this.u={}};
g.k.xa=function(){g.nr.ke.xa.call(this);this.clear();this.B.length=0};g.or.prototype.set=function(a,b){void 0===b?this.i.remove(a):this.i.set(a,g.Vh(b))};
g.or.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.or.prototype.remove=function(a){this.i.remove(a)};g.Ra(pr,g.or);pr.prototype.set=function(a,b){pr.ke.set.call(this,a,rr(b))};
pr.prototype.u=function(a){a=pr.ke.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
pr.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ra(sr,pr);sr.prototype.set=function(a,b,c){if(b=rr(b)){if(c){if(c<g.Qa()){sr.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Qa()}sr.ke.set.call(this,a,b)};
sr.prototype.u=function(a,b){var c=sr.ke.u.call(this,a);if(c)if(!b&&g.tr(c))sr.prototype.remove.call(this,a);else return c};g.Ra(g.ur,sr);g.Ra(vr,$ga);vr.prototype[Symbol.iterator]=function(){return Tq(this.Lg(!0)).i()};
vr.prototype.clear=function(){var a=Array.from(this);a=g.r(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ra(wr,vr);g.k=wr.prototype;g.k.isAvailable=function(){if(!this.i)return!1;try{return this.i.setItem("__sak","1"),this.i.removeItem("__sak"),!0}catch(a){return!1}};
g.k.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.k.get=function(a){a=this.i.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeItem(a)};
g.k.Lg=function(a){var b=0,c=this.i,d=new g.eo;d.uj=function(){if(b>=c.length)throw g.Uq;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.k.clear=function(){this.i.clear()};
g.k.key=function(a){return this.i.key(a)};g.Ra(xr,wr);g.Ra(yr,wr);g.Ra(Ar,vr);var aha={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},zr=null;g.k=Ar.prototype;g.k.isAvailable=function(){return!!this.i};
g.k.set=function(a,b){this.i.setAttribute(Br(a),b);Cr(this)};
g.k.get=function(a){a=this.i.getAttribute(Br(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.i.removeAttribute(Br(a));Cr(this)};
g.k.Lg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.eo;d.uj=function(){if(b>=c.length)throw g.Uq;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e};
return d};
g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Cr(this)};g.Ra(Dr,vr);Dr.prototype.set=function(a,b){this.u.set(this.i+a,b)};
Dr.prototype.get=function(a){return this.u.get(this.i+a)};
Dr.prototype.remove=function(a){this.u.remove(this.i+a)};
Dr.prototype.Lg=function(a){var b=this.u.Lg(!0),c=this,d=new g.eo;d.uj=function(){for(var e=b.uj();e.substr(0,c.i.length)!=c.i;)e=b.uj();return a?e.substr(c.i.length):c.u.get(e)};
return d};Fr.prototype.getKey=function(){return this.i};
Fr.prototype.getValue=function(){return this.u};
Fr.prototype.clone=function(){return new Fr(this.i,this.u)};g.k=Gr.prototype;g.k.remove=function(){var a=this.i,b=a.length,c=a[0];if(!(0>=b)){if(1==b)xb(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,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Ip=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Ur=function(){for(var a=this.i,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new Gr(this)};
g.k.isEmpty=function(){return 0===this.i.length};
g.k.clear=function(){xb(this.i)};g.Ra(Ir,Gr);Ja(Jr);Jr.prototype.i=0;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var Kr="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");/*


 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 Nr="@@redux/INIT"+Mr(),eha="@@redux/REPLACE"+Mr();var Pr="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(Qr,Hd);Qr.prototype.getType=function(){return Ld(this,11,0)};
g.w(Rr,Hd);Rr.prototype.getKey=function(){return Id(this,3)};
var fha=[2,13,14];g.w(Tr,Sr);g.w(Ur,Tr);Ur.prototype.oe=function(){var a=[];this.i.alternateChannel&&a.push(this.i.alternateChannel);this.i.alternateChannelList&&a.push.apply(a,g.v(this.i.alternateChannelList));this.i.oneofChannelEntity&&a.push(this.i.oneofChannelEntity);return[].concat(g.v(new Set(a)))};g.w(Vr,Tr);Vr.prototype.oe=function(){var a=[];this.i.entryCollection&&a.push(this.i.entryCollection);return[].concat(g.v(new Set(a)))};
g.w(Wr,Tr);Wr.prototype.oe=function(){var a=[];this.i.parentPlaylist&&a.push(this.i.parentPlaylist);if(this.i.entries)for(var b=g.r(this.i.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,g.v((new Xr(c.value)).oe()));return[].concat(g.v(new Set(a)))};
g.w(Xr,Sr);Xr.prototype.oe=function(){var a=[];this.i.video&&a.push(this.i.video);return[].concat(g.v(new Set(a)))};g.w(Yr,Tr);Yr.prototype.oe=function(){var a=[];this.i.descriptionEntity&&a.push(this.i.descriptionEntity);this.i.creators&&a.push.apply(a,g.v(this.i.creators));this.i.theBiggestFan&&a.push(this.i.theBiggestFan);return[].concat(g.v(new Set(a)))};
g.w(Zr,Tr);Zr.prototype.oe=function(){return[]};g.w($r,Tr);$r.prototype.oe=function(){return[]};g.w(as,Tr);as.prototype.oe=function(){return[]};g.w(bs,Tr);bs.prototype.oe=function(){return[]};g.w(cs,Tr);cs.prototype.oe=function(){return[]};g.w(ds,Tr);ds.prototype.oe=function(){var a=[];this.i.fakeChildren&&a.push.apply(a,g.v(this.i.fakeChildren));return[].concat(g.v(new Set(a)))};g.w(es,Tr);es.prototype.oe=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.v(new Set(a)))};g.w(fs,Tr);fs.prototype.oe=function(){return[]};g.w(gs,Tr);gs.prototype.oe=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.v(new Set(a)))};g.w(hs,Tr);hs.prototype.oe=function(){return[]};g.w(is,Tr);is.prototype.oe=function(){return[]};g.w(js,Tr);js.prototype.oe=function(){return[]};g.w(ks,Tr);ks.prototype.oe=function(){return[]};g.w(ls,Tr);ls.prototype.oe=function(){return[]};g.w(ms,Tr);ms.prototype.oe=function(){var a=[];this.i.transfer&&a.push(this.i.transfer);this.i.adsPlaybackData&&a.push.apply(a,g.v(this.i.adsPlaybackData));this.i.drmLicense&&a.push(this.i.drmLicense);this.i.offlineVideoPolicy&&a.push(this.i.offlineVideoPolicy);return[].concat(g.v(new Set(a)))};g.w(ns,Tr);ns.prototype.oe=function(){var a=[];this.i.offlineVideoStreams&&a.push.apply(a,g.v(this.i.offlineVideoStreams));this.i.captionTrack&&a.push.apply(a,g.v(this.i.captionTrack));return[].concat(g.v(new Set(a)))};var i2,j2,k2=g.C.window,qs=(null===(i2=null===k2||void 0===k2?void 0:k2.yt)||void 0===i2?void 0:i2.config_)||(null===(j2=null===k2||void 0===k2?void 0:k2.ytcfg)||void 0===j2?void 0:j2.data_)||{};g.Fa("yt.config_",qs,void 0);var ys=[];var lha=/^[\w.]*$/,kha={q:!0,search_query:!0},jha=String(Ds);var Os=new function(){var a=window.document;this.i=window;this.u=a};
g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return Es(lt(a))},void 0);g.Qa();var mt="XMLHttpRequest"in g.C?function(){return new XMLHttpRequest}:null;var tt={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"},pha="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.v("client_dev_mss_url client_dev_regex_map client_dev_root_url expflag jsfeat jsmode client_rollout_override".split(" "))),zt=!1,lra=ut;g.w(Bt,Ta);Et.prototype.then=function(a,b,c){return 1===this.u&&a?(a=a.call(c,this.i),Xg(a)?a:Gt(a)):2===this.u&&b?(a=b.call(c,this.i),Xg(a)?a:Ft(a)):this};
Et.prototype.getValue=function(){return this.i};
Et.prototype.$goog_Thenable=!0;var Ht=!1;var $t=eF||oH;g.w(gu,Ta);gu.prototype.name="BiscottiError";g.w(fu,Ta);fu.prototype.name="BiscottiMissingError";var iu={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hu=null;var HMa=0,nu=g.ug?"webkit":Ll?"moz":g.Kc?"ms":g.WE?"o":"",IMa=g.Ga("ytDomDomGetNextId")||function(){return++HMa};
g.Fa("ytDomDomGetNextId",IMa,void 0);var xha={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};qu.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
qu.prototype.ZK=function(){return this.event?!1===this.event.returnValue:!1};
qu.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
qu.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var tu=g.C.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",tu,void 0);var uu=g.C.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",uu,void 0);var ly=Ve(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),vu=Ve(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var GE=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.Ra(Hu,g.I);Hu.prototype.Z=function(a){void 0===a.i&&ru(a);var b=a.i;void 0===a.u&&ru(a);this.i=new g.Uf(b,a.u)};
Hu.prototype.zn=function(){return this.i||new g.Uf};
Hu.prototype.Y=function(){if(this.i){var a=GE();if(0!=this.C){var b=this.J,c=this.i,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.i;this.B=(this.B+1)%4}};
Hu.prototype.xa=function(){window.clearInterval(this.S);g.xu(this.ma)};g.w(Mu,Iu);Mu.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()};
Mu.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};Nu();var Uu={};var Zu={},Dha=0;var JMa,av,cv;JMa=g.C.ytPubsubPubsubInstance||new g.nr;av=g.C.ytPubsubPubsubSubscribedKeys||{};cv=g.C.ytPubsubPubsubTopicToKeys||{};g.bv=g.C.ytPubsubPubsubIsSynchronous||{};g.nr.prototype.subscribe=g.nr.prototype.subscribe;g.nr.prototype.unsubscribeByKey=g.nr.prototype.cg;g.nr.prototype.publish=g.nr.prototype.ea;g.nr.prototype.clear=g.nr.prototype.clear;g.Fa("ytPubsubPubsubInstance",JMa,void 0);g.Fa("ytPubsubPubsubTopicToKeys",cv,void 0);g.Fa("ytPubsubPubsubIsSynchronous",g.bv,void 0);
g.Fa("ytPubsubPubsubSubscribedKeys",av,void 0);var l2;l2=window;g.Q=l2.ytcsi&&l2.ytcsi.now?l2.ytcsi.now:l2.performance&&l2.performance.timing&&l2.performance.now&&l2.performance.timing.navigationStart?function(){return l2.performance.timing.navigationStart+l2.performance.now()}:function(){return(new Date).getTime()};var Gha=ws("initial_gel_batch_timeout",2E3),xv=Math.pow(2,16)-1,lv=void 0,qv=0,rv=0,nv=0,tv=!0,kv=g.C.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",kv,void 0);var iv=g.C.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",iv,void 0);var yv=g.C.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",yv,void 0);var Cv=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",Cv,void 0);g.k=g.Dv.prototype;g.k.get=function(a,b){Hv(a);Gv(a);a=void 0!==Cv[a]?Cv[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Hv(a);Gv(a);if(null==b)throw Error("ExpectedNotNull");Cv[a]=b.toString()};
g.k.remove=function(a){Hv(a);Gv(a);delete Cv[a]};
g.k.save=function(){var a=!0;g.vs("web_secure_pref_cookie_killswitch")&&(a=!1);g.Jt(this.i,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.jc(Cv)};
g.k.dump=function(){var a=[],b;for(b in Cv)a.push(b+"="+encodeURIComponent(String(Cv[b])));return a.join("&")};
Ja(g.Dv);var Jv={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"},Lv={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Ov.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.Vh(b))}catch(f){return}else e=escape(b);g.Jt(a,e,c,this.u)};
Ov.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.Kt(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Ov.prototype.remove=function(a){this.i&&this.i.remove(a);g.Lt(a,"/",this.u)};var Pv=function(){var a;return function(){a||(a=new Ov("ytidb"));return a}}();
Rv.prototype.isSupported=function(){return this.i};var Wv=[],Sv,Xv=!1;g.w(g.$v,Error);var m2={},ew=(m2.AUTH_INVALID="No user identifier specified.",m2.EXPLICIT_ABORT="Transaction was explicitly aborted.",m2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",m2.MISSING_INDEX="Index not created.",m2.MISSING_OBJECT_STORE="Object store not created.",m2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",m2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",m2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",
m2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",m2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",m2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",m2),n2={},Lha=(n2.AUTH_INVALID="ERROR",n2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",n2.EXPLICIT_ABORT="IGNORED",n2.IDB_NOT_SUPPORTED="ERROR",n2.MISSING_INDEX="WARNING",n2.MISSING_OBJECT_STORE="ERROR",n2.DB_DELETED_BY_MISSING_OBJECT_STORE=
"WARNING",n2.QUOTA_EXCEEDED="WARNING",n2.QUOTA_MAYBE_EXCEEDED="WARNING",n2.UNKNOWN_ABORT="WARNING",n2.INCOMPATIBLE_DB_VERSION="WARNING",n2),o2={},Mha=(o2.AUTH_INVALID=!1,o2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,o2.EXPLICIT_ABORT=!1,o2.IDB_NOT_SUPPORTED=!1,o2.MISSING_INDEX=!1,o2.MISSING_OBJECT_STORE=!1,o2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,o2.QUOTA_EXCEEDED=!1,o2.QUOTA_MAYBE_EXCEEDED=!0,o2.UNKNOWN_ABORT=!0,o2.INCOMPATIBLE_DB_VERSION=!1,o2);g.w(fw,g.$v);g.w(gw,fw);g.w(hw,Error);
var Nha=["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"];kw.all=function(a){return new kw(new jw(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Pq:0};f.Pq<a.length;f={Pq:f.Pq},++f.Pq)kw.resolve(a[f.Pq]).then(function(h){return function(l){d[h.Pq]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
kw.resolve=function(a){return new kw(new jw(function(b,c){a instanceof kw?a.then(b,c):b(a)}))};
kw.reject=function(a){return new kw(new jw(function(b,c){c(a)}))};
kw.prototype.then=function(a,b){var c=this,d=null!==a&&void 0!==a?a:Qha,e=null!==b&&void 0!==b?b:Pha;return new kw(new jw(function(f,h){"PENDING"===c.state.status?(c.i.push(function(){mw(c,c,d,f,h)}),c.onRejected.push(function(){nw(c,c,e,f,h)})):"FULFILLED"===c.state.status?mw(c,c,d,f,h):"REJECTED"===c.state.status&&nw(c,c,e,f,h)}))};
kw.prototype.catch=function(a){return this.then(void 0,a)};g.k=rw.prototype;g.k.advance=function(a){this.cursor.advance(a);return tw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return tw(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return tw(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.bz=function(){return this.cursor.primaryKey};g.k=uw.prototype;g.k.add=function(a,b,c){return yw(this,[a],{mode:"readwrite",og:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return yw(this,[a],{mode:"readwrite",og:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){var a;this.i.close();(null===(a=this.options)||void 0===a?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return yw(this,[a],{mode:"readonly",og:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return yw(this,[a],{mode:"readwrite",og:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return yw(this,[a],{mode:"readonly",og:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.i.objectStoreNames)};
g.k.getName=function(){return this.i.name};
g.k=vw.prototype;g.k.add=function(a,b){return pw(this.i.add(a,b))};
g.k.autoIncrement=function(){return this.i.autoIncrement};
g.k.clear=function(){return pw(this.i.clear()).then(function(){})};
g.k.count=function(a){return pw(this.i.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Vha(this,a):pw(this.i.delete(a))};
g.k.get=function(a){return pw(this.i.get(a))};
g.k.index=function(a){try{return new Jw(this.i.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new hw(a,this.i.name);throw b;}};
g.k.getName=function(){return this.i.name};
g.k.keyPath=function(){return this.i.keyPath};
Bw.prototype.abort=function(){this.i.abort();this.u=!0;throw new fw("EXPLICIT_ABORT");};
Bw.prototype.objectStore=function(a){a=this.i.objectStore(a);var b=this.B.get(a);b||(b=new vw(a),this.B.set(a,b));return b};
g.k=Jw.prototype;g.k.count=function(a){return pw(this.i.count(a))};
g.k.delete=function(a){return Lw(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return pw(this.i.get(a))};
g.k.getKey=function(a){return pw(this.i.getKey(a))};
g.k.keyPath=function(){return this.i.keyPath};
g.k.unique=function(){return this.i.unique};
g.k=Mw.prototype;g.k.advance=function(a){this.cursor.advance(a);return Iw(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return Iw(this.request)};
g.k.delete=function(){return pw(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.bz=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return pw(this.cursor.update(a))};Pw.prototype.u=function(a,b,c){c=void 0===c?{}:c;return Nw(a,b,c)};
Pw.prototype.delete=function(a){a=void 0===a?{}:a;return Ow(this.name,a)};
Pw.prototype.open=function(){function a(){return g.H(c,function h(){var l,m,n=this,p,q,t,u,x;return g.B(h,function(y){switch(y.i){case 1:return m=null!==(l=Error().stack)&&void 0!==l?l:"",ta(y,2),g.z(y,n.u(n.name,n.options.version,e),4);case 4:p=y.u;a:{var A=n.options;for(var F=g.r(Object.keys(A.Gs)),G=F.next();!G.done;G=F.next()){G=G.value;var E=A.Gs[G],K=void 0===E.HW?Number.MAX_VALUE:E.HW;if(p.i.version>=E.Mm&&!(p.i.version>=K)&&!p.i.objectStoreNames.contains(G)){A=G;break a}}A=void 0}q=A;if(void 0===
q){y.fb(5);break}if(n.B){y.fb(6);break}n.B=!0;return g.z(y,n.delete(),7);case 7:return Yv(new fw("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:n.name,VS:q})),y.return(a());case 6:throw new gw(q);case 5:return y.return(p);case 2:t=va(y);if(t instanceof DOMException?"VersionError"!==t.name:"DOMError"in self&&t instanceof DOMError?"VersionError"!==t.name:!(t instanceof Object&&"message"in t)||"An attempt was made to open a database using a lower version than the existing version."!==t.message){y.fb(8);
break}return g.z(y,n.u(n.name,void 0,Object.assign(Object.assign({},e),{upgrade:void 0})),9);case 9:u=y.u;x=u.i.version;if(void 0!==n.options.version&&x>n.options.version+1)throw u.close(),n.C=!1,Qw(n,x);return y.return(u);case 8:throw b(),t instanceof Error&&(t.stack=t.stack+"\n"+m.substring(m.indexOf("\n")+1)),t;}})})}
function b(){c.i===d&&(c.i=void 0)}
var c=this;if(!this.C)throw Qw(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()},
closed:b,kX:b,upgrade:this.options.upgrade};return this.i=d=a()};var Rw=new Pw("YtIdbMeta",{Gs:{databases:{Mm:1}},upgrade:function(a,b){b(1)&&ww(a,"databases",{keyPath:"actualName"})}});var Ww,cia=new function(){}(new function(){});new Ek;g.k=cx.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.qe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.cf.set(d,this.databaseToken).then(function(e){d.id=e;c.Ue.Se()&&fx(c,d)}).catch(function(e){fx(c,d);
hx(c,e)})}else this.tm(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.databaseToken&&this.qe){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.Ue.Se()){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.H(d,function n(){var p=this,q;return g.B(n,function(t){if(1==t.i)return q=p,g.z(t,p.cf.set(e,p.databaseToken).catch(function(u){hx(q,u)}),2);
f(h,l);g.sa(t)})})}}this.tm(a,b,e.skipRetry)}else this.cf.set(e,this.databaseToken).catch(function(h){d.tm(a,b,e.skipRetry);
hx(d,h)})}else c=this.ob&&this.ob("nwl_skip_retry")&&c,this.tm(a,b,c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.qe){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.cf.Jr(d.id,c.databaseToken):e=!0;c.Ue.Qn&&c.ob&&c.ob("vss_network_hint")&&c.Ue.Qn(!0);f(h,l)};
this.tm(d.url,d.options);this.cf.set(d,this.databaseToken).then(function(h){d.id=h;e&&c.cf.Jr(d.id,c.databaseToken)}).catch(function(h){hx(c,h)})}else this.tm(a,b)};
g.k.qx=function(){var a=this;if(!this.databaseToken)throw g.iw("throttleSend");this.i||(this.i=g.Lu(0,function(){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return g.z(f,d.cf.lK("NEW",d.databaseToken),2);if(3!=f.i)return e=f.u,e?g.z(f,fx(d,e),3):(d.fJ(),f.return());d.i&&(d.i=0,d.qx());g.sa(f)})})},this.VN))};
g.k.fJ=function(){g.Pu(this.i);this.i=0};jx.prototype.toString=function(){return this.topic};var KMa=g.Ga("ytPubsub2Pubsub2Instance")||new g.nr;g.nr.prototype.subscribe=g.nr.prototype.subscribe;g.nr.prototype.unsubscribeByKey=g.nr.prototype.cg;g.nr.prototype.publish=g.nr.prototype.ea;g.nr.prototype.clear=g.nr.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",KMa,void 0);var mx=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",mx,void 0);var ox=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",ox,void 0);
var nx=g.Ga("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",nx,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.w(rx,Pw);rx.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.dx?eia:dia)(a,b,Object.assign({},c))};
rx.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.dx?ax:fia)(this.name,a)};var tx;var LMa={},Bx=sx("ServiceWorkerLogsDatabase",{Gs:(LMa.SWHealthLog={Mm:1},LMa),dx:!0,upgrade:function(a,b){b(1)&&Ew(ww(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Cx;var sia=ws("network_polling_interval",3E4);g.w(Fx,g.Oe);g.k=Fx.prototype;g.k.Se=function(){return this.i};
g.k.Qn=function(a,b){a!==this.i&&((void 0===b?0:b)?this.Tk():this.i=a)};
g.k.WS=function(a){this.u=!0;if(void 0===a?0:a)this.J||Hx(this)};
g.k.ND=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.uR=function(){this.K=!0};
g.k.Qa=function(a,b){return g.Oe.prototype.Qa.call(this,a,b)};
g.k.Tk=function(a){var b=this;return this.C?this.C:this.C=new Promise(function(c){return g.H(b,function e(){var f,h,l,m=this;return g.B(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ta(n,2,3),f&&(m.D=g.Lu(0,function(){f.abort()},a||2E4)),g.z(n,fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:l=!0;case 3:xa(n);m.C=void 0;m.D&&g.Pu(m.D);l!==m.i&&(m.i=l,m.i&&m.u?m.dispatchEvent("ytnetworkstatus-online"):m.u&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);ya(n,0);break;case 2:va(n),l=!1,n.fb(3)}})})})};
Fx.prototype.sendNetworkCheckRequest=Fx.prototype.Tk;Fx.prototype.listen=Fx.prototype.Qa;Fx.prototype.enableErrorFlushing=Fx.prototype.uR;Fx.prototype.getWindowStatus=Fx.prototype.ND;Fx.prototype.monitorNetworkStatusChange=Fx.prototype.WS;Fx.prototype.networkStatusHint=Fx.prototype.Qn;Fx.prototype.isNetworkAvailable=Fx.prototype.Se;Fx.getInstance=Gx;g.w(Jx,g.Oe);Jx.prototype.Se=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0};
Jx.prototype.Qn=function(a,b){b=void 0===b?!1:b;var c=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);c&&c(a,b)};
Jx.prototype.Tk=function(a){return g.H(this,function c(){var d=this,e;return g.B(c,function(f){return(e=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var Sx=0,Wx=0,Xx,Vx=g.C.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,databaseToken:void 0,potentialEsfErrorCounter:Wx,isIdbSupported:!1};g.Fa("ytNetworklessLoggingInitializationOptions",Vx,void 0);g.w(Yx,cx);Yx.prototype.writeThenSend=function(a,b){b||(b={});bw()||(this.qe=!1);cx.prototype.writeThenSend.call(this,a,b)};
Yx.prototype.sendThenWrite=function(a,b,c){b||(b={});bw()||(this.qe=!1);cx.prototype.sendThenWrite.call(this,a,b,c)};
Yx.prototype.sendAndWrite=function(a,b){b||(b={});bw()||(this.qe=!1);cx.prototype.sendAndWrite.call(this,a,b)};g.$x.prototype.isReady=function(){!this.config_&&Nv()&&(this.config_=g.vv());return!!this.config_};var yia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Aia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var dy={};g.w(jy,g.I);jy.prototype.T=function(a,b,c,d,e){c=As((0,g.D)(c,d||this.Sa));c={target:a,name:b,callback:c};var f;e&&ly()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.D.push(c);return c};
jy.prototype.jc=function(a){for(var b=0;b<this.D.length;b++)if(this.D[b]==a){this.D.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
jy.prototype.xa=function(){g.my(this);g.I.prototype.xa.call(this)};g.Ra(g.R,g.I);g.R.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Md.subscribe(a,b,c)};
g.R.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Md.unsubscribe(a,b,c)};
g.R.prototype.cg=function(a){return this.isDisposed()?!1:this.Md.cg(a)};
g.R.prototype.ea=function(a,b){return this.isDisposed()?!1:this.Md.ea.apply(this.Md,arguments)};g.w(g.qy,g.R);g.k=g.qy.prototype;g.k.cancel=function(){this.B&&(this.B=!1,this.ea("dragend",0,0,null));this.u&&(this.u=!1,this.ea("hoverend",0,0,null),sy(this),py(this))};
g.k.LL=function(a){sy(this);ry(this,ty("move"),this.JL);ry(this,ty("out"),this.KL);ry(this,"touchstart",this.BG);this.i&&ry(this,ty("down"),this.JE);var b=g.yu(a);a=Bu(a);this.u=!0;this.ea("hoverstart",a.x,a.y,b);this.ea("hovermove",a.x,a.y,b)};
g.k.JL=function(a){var b=g.yu(a);a=Bu(a);if(this.D){var c=this.D;this.D=null;if(Au(c)==b&&Vf(Bu(c),a))return}this.ea("hovermove",a.x,a.y,b)};
g.k.KL=function(a){var b=Bu(a),c=Au(a);try{if(c&&g.Fg(this.J,c)){this.D=a;this.ea("hovermove",b.x,b.y,c);return}}catch(d){}sy(this);py(this);this.u=!1;this.ea("hoverend",b.x,b.y,c)};
g.k.YS=function(a){this.LL(a);this.JE(a)};
g.k.JE=function(a){if("number"!==typeof a.button||0==a.button){sy(this);this.C.T(document,ty("move"),this.XS);this.C.T(document,ty("up"),this.cT);var b=g.yu(a);if(g.ug)ry(this,"dragstart",this.rR);else if(g.Cu(a),(g.CF||Ll)&&b)a:{for(var c=b;c;){if(Ig(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=Bu(a);this.ea("dragstart",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)}};
g.k.rR=function(a){g.Cu(a)};
g.k.XS=function(a){var b=g.yu(a);b==document&&(b=null);a=Bu(a);this.ea("hovermove",a.x,a.y,b);this.ea("dragmove",a.x,a.y,b)};
g.k.cT=function(a){sy(this);this.B=!1;var b=zu(a),c=g.yu(a);a=Bu(a);b&&g.Fg(this.J,b)?(ry(this,ty("move"),this.JL),ry(this,ty("out"),this.KL),ry(this,ty("down"),this.JE),ry(this,"touchstart",this.BG),this.ea("dragend",a.x,a.y,c)):(py(this),this.u=!1,this.ea("dragend",a.x,a.y,c),this.ea("hoverend",a.x,a.y,c))};
g.k.BG=function(a){var b=a.changedTouches[0];b&&(sy(this),ry(this,"touchmove",this.rX),ry(this,"touchend",this.dO),ry(this,"touchcancel",this.dO),this.K=b.identifier,a=g.yu(a),this.u||(this.u=!0,this.ea("hoverstart",b.pageX,b.pageY,a)),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&(this.B=!0,this.ea("dragstart",b.pageX,b.pageY,a),this.ea("dragmove",b.pageX,b.pageY,a)))};
g.k.rX=function(a){var b=uy(this,a);b&&(this.i&&g.Cu(a),a=g.yu(a),this.ea("hovermove",b.pageX,b.pageY,a),this.i&&this.ea("dragmove",b.pageX,b.pageY,a))};
g.k.dO=function(a){var b=uy(this,a);if(b){sy(this);py(this);this.u=!1;var c=g.yu(a);this.i&&(this.S||g.Cu(a),this.B=!1,this.ea("dragend",b.pageX,b.pageY,c));this.ea("hoverend",b.pageX,b.pageY,c)}};
g.k.xa=function(){this.i&&(g.ug&&this.J.removeAttribute("draggable"),this.J.style.touchAction="");sy(this);g.R.prototype.xa.call(this)};vy.prototype.clone=function(){var a=new vy,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Ka(c)?g.mc(c):c}return a};var wua=["embedded_player"],MMa=["share/get_web_player_share_panel"],NMa=["feedback"],OMa=["notification/modify_channel_preference"],oya=["offline"],kya=["offline/get_playback_data_entity"],yGa=["player"],PMa=["browse/edit_playlist"],QMa=["subscription/subscribe"],RMa=["subscription/unsubscribe"],AGa=["next","unplugged/watch_next"];var wy=Date.now().toString();var Ky,p2=g.C.ytLoggingDocDocumentNonce_;p2||(p2=zy(),g.Fa("ytLoggingDocDocumentNonce_",p2,void 0));Ky=p2;var cra={NO:0,dZ:1,sZ:2,z5:3,U0:4,G$:5,u6:6,D8:7,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE"};var Dia=1;By.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};
By.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
By.prototype.isClientVe=function(){return!this.i.trackingParams&&!!this.i.veType};g.Fa("yt_logging_screen.getRootVeType",Fy,void 0);g.Fa("yt_logging_screen.getCurrentCsn",g.Iy,void 0);g.Fa("yt_logging_screen.getCttAuthInfo",Jy,void 0);g.Fa("yt_logging_screen.setCurrentScreen",Ly,void 0);var Lia=[{FE:function(a){return"Cannot read property '"+a.key+"'"},
mA:{Error:[{Ag:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ag:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ag:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ag:/\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"]},{Ag:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ag:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ag:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{FE:function(a){return"Cannot call '"+a.key+"'"},
mA:{TypeError:[{Ag:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ag:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ag:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ag:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ag:/\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"]},
{Ag:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{FE:function(a){return a.key+" is not defined"},
mA:{ReferenceError:[{Ag:/(.*) is not defined/,groups:["key"]},{Ag:/Can't find variable: (.*)/,groups:["key"]}]}}];var Iia={em:[],Rm:[{callback:Gia,weight:500}]};var My;var Dz=new g.nr;var Mia=new Set,Cz=0,Oia=0,Nia=0,Kia=[],Pia=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.w(Ez,ix);var Uia=new jx("screen-created",Ez),Iz=[],bra=Tia,Jz=0;var SMa={cZ:3611,PX:27686,RX:85013,SX:23462,UX:42016,VX:62407,WX:26926,TX:43781,YX:51236,ZX:79148,aY:50160,bY:77504,vY:87907,wY:18630,yY:54445,zY:80935,EY:105675,FY:37521,GY:47786,IY:98349,JY:123695,OY:6827,PY:29434,aZ:7282,bZ:124448,kZ:32276,jZ:76278,lZ:93911,nZ:106531,oZ:27259,pZ:27262,qZ:27263,tZ:21759,uZ:27107,vZ:62936,wZ:49568,yZ:38408,zZ:80637,AZ:68727,BZ:68728,CZ:80353,DZ:80356,EZ:74610,FZ:45707,GZ:83962,HZ:83970,IZ:46713,JZ:89711,KZ:74612,LZ:93265,MZ:74611,NZ:131380,PZ:128979,QZ:128978,OZ:131391,
RZ:105350,TZ:134800,SZ:131392,VZ:113533,WZ:93252,XZ:99357,ZZ:94521,a_:114252,b_:113532,c_:94522,YZ:94583,d_:88E3,e_:93253,f_:93254,g_:94387,h_:94388,i_:93255,j_:97424,UZ:72502,k_:110111,l_:76019,n_:117092,o_:117093,m_:89431,p_:110466,q_:77240,r_:60508,s_:137401,t_:137402,u_:137046,v_:73393,w_:113534,x_:92098,y_:131381,z_:84517,A_:83759,B_:80357,C_:86113,D_:72598,E_:72733,F_:107349,G_:124275,H_:118203,I_:133275,J_:133274,K_:133272,L_:133273,M_:133276,O_:117431,N_:133797,P_:128572,Q_:133405,R_:117429,
S_:117430,T_:117432,U_:120080,V_:117259,W_:121692,X_:132972,Y_:133051,Z_:133658,b0:132971,d0:97615,e0:31402,g0:133624,h0:133623,j0:133622,f0:133621,k0:84774,l0:95117,m0:98930,n0:98931,o0:98932,q0:43347,r0:129889,s0:45474,t0:100352,u0:84758,v0:98443,w0:117985,x0:74613,y0:74614,z0:64502,A0:136032,B0:74615,C0:74616,D0:122224,E0:74617,F0:77820,G0:74618,H0:93278,I0:93274,J0:93275,K0:93276,L0:22110,M0:29433,P0:133798,Q0:132295,R0:120541,V0:82047,W0:113550,X0:75836,Y0:75837,b1:42352,g1:84512,h1:76065,k1:75989,
o1:16623,q1:32594,r1:27240,u1:32633,D1:74858,G1:3945,F1:16989,H1:45520,I1:25488,J1:25492,K1:25494,M1:55760,N1:14057,O1:18451,P1:57204,Q1:57203,R1:17897,S1:57205,T1:18198,U1:17898,V1:17909,W1:43980,X1:46220,h2:11721,k2:49954,q2:96369,r2:3854,y2:56251,z2:25624,F2:16906,G2:99999,I2:68172,J2:27068,M2:47973,N2:72773,O2:26970,P2:26971,Q2:96805,R2:17752,S2:73233,T2:109512,U2:22256,V2:14115,W2:22696,X2:89278,Y2:89277,Z2:109513,b3:43278,d3:43459,e3:43464,f3:89279,g3:43717,h3:55764,j3:22255,k3:89281,l3:40963,
m3:43277,n3:43442,q3:91824,s3:120137,u3:96367,v3:36850,w3:72694,x3:37414,y3:36851,A3:124863,z3:121343,B3:73491,C3:54473,D3:43375,E3:46674,R3:32473,V3:72901,W3:72906,X3:50947,Y3:50612,Z3:50613,a4:50942,b4:84938,d4:84943,e4:84939,f4:84941,g4:84944,h4:84940,i4:84942,j4:35585,k4:51926,l4:79983,m4:63238,n4:18921,o4:63241,p4:57893,q4:41182,r4:135732,s4:33424,t4:22207,u4:42993,v4:36229,w4:22206,x4:22205,y4:18993,z4:19001,A4:18990,B4:18991,C4:18997,D4:18725,E4:19003,F4:36874,G4:44763,H4:33427,I4:67793,J4:22182,
K4:37091,L4:34650,M4:50617,N4:47261,O4:22287,P4:25144,Q4:97917,S4:62397,T4:125598,U4:36961,V4:108035,W4:27426,X4:27857,Y4:27846,Z4:27854,a5:69692,b5:61411,c5:39299,d5:38696,e5:62520,f5:36382,g5:108701,h5:50663,i5:36387,j5:14908,k5:37533,l5:105443,m5:61635,n5:62274,o5:133818,p5:65702,q5:65703,r5:65701,s5:76256,u5:37671,v5:49953,C5:36216,D5:28237,E5:39553,F5:29222,G5:26107,H5:38050,I5:26108,K5:120745,J5:26109,L5:26110,M5:66881,N5:28236,O5:14586,S5:57929,U5:74723,V5:44098,W5:44099,Z5:23528,a6:61699,
X5:134104,Y5:134103,b6:59149,c6:101951,d6:97346,e6:118051,f6:95102,g6:64882,h6:119505,i6:63595,j6:63349,k6:95101,l6:75240,m6:27039,n6:68823,o6:21537,p6:83464,q6:75707,r6:83113,s6:101952,t6:101953,v6:79610,y6:125755,z6:24402,A6:24400,B6:32925,C6:57173,E6:122502,F6:64423,G6:64424,H6:33986,I6:100828,J6:129089,K6:21409,a7:135155,b7:135156,c7:135157,d7:135158,e7:135159,f7:135160,g7:135161,h7:135162,i7:135163,j7:135164,k7:135165,l7:135166,X6:11070,Y6:11074,Z6:17880,m7:14001,o7:30709,p7:30707,q7:30711,r7:30710,
s7:30708,n7:26984,t7:63648,u7:63649,x7:51879,C7:111059,E7:5754,F7:20445,K7:130975,J7:130976,L7:110386,N7:113746,O7:66557,U7:17310,V7:28631,X7:21589,Y7:68012,Z7:60480,a8:31571,e8:76980,i8:41577,j8:45469,o8:38669,p8:13768,q8:13777,t8:62985,u8:4724,v8:59369,w8:43927,x8:43928,A8:12924,C8:100355,F8:56219,G8:27669,H8:10337,E8:47896,I8:122629,J8:121258,K8:107598,L8:127991,M8:96639,N8:107536,O8:130169,P8:96661,Q8:96658,S8:116646,T8:121122,U8:96660,V8:127738,W8:127083,X8:104443,Y8:96659,Z8:106442,b9:134840,
e9:63667,f9:63668,g9:63669,h9:130686,m9:78314,p9:55761,q9:127098,r9:134841,v9:96368,w9:67374,x9:48992,A9:49956,E9:31961,F9:26388,K9:23811,L9:5E4,M9:126250,O9:96370,P9:47355,Q9:47356,R9:37935,S9:45521,T9:21760,U9:83769,V9:49977,W9:49974,X9:93497,Y9:93498,Z9:34325,b$:115803,c$:123707,d$:100081,e$:35309,f$:68314,g$:25602,h$:100339,j$:59018,k$:18248,l$:50625,m$:9729,n$:37168,o$:37169,p$:21667,q$:16749,r$:18635,s$:39305,t$:18046,v$:53969,w$:8213,y$:93926,B$:102852,C$:110099,D$:22678,E$:69076,H$:100856,
J$:17736,K$:3832,M$:55759,N$:64031,O$:93044,Q$:93045,S$:34388,T$:17657,U$:17655,V$:39579,W$:39578,X$:77448,Y$:8196,Z$:11357,aaa:69877,baa:8197,daa:82039};Nz.prototype.clear=function(){this.u.clear();this.i.clear();this.B.clear()};
Ja(Nz);var Pz;g.Oz=Ve(function(){var a=new xr;return a.isAvailable()?new g.ur(a):null});
Pz=Ve(function(){var a=new yr;return a.isAvailable()?new g.ur(a):null});var Xia=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Yia=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,aja={};g.w(Zz,g.I);var ija=!1;g.w(eA,g.I);eA.prototype.XD=function(){var a=this.C().JD("SLOT_TYPE_PLAYER_BYTES",1),b=aA(this.i.get(),1).clientPlaybackNonce,c=!1;a=g.r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.rb&&d.Ub instanceof dA?d.Ub.Ho:void 0;e&&e===b&&(c&&S("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
eA.prototype.ih=function(a,b,c,d,e,f){var h=this,l=aA(this.i.get(),1);l.ip?this.Ha.get().wp():($z(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return gja(h.u.get(),d,e,a,b,f,l)}),ILa(this.vC))};
eA.prototype.yj=function(){};var q2={},mA=(q2.AD_MARKER="ytp-ad-progress",q2.CHAPTER_MARKER="ytp-chapter-marker",q2.TIME_MARKER="ytp-time-marker",q2);var AHa=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/)"),mja=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/)"),
BHa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),wja=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)|$))"),
uja=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)|$))"),pja=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/)"),
CHa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),sja=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)"),nja=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/.*$)"),
oja=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(xfx7\\.com)[.]?(:[0-9]+)?/"),qja=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)"),
Yma=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)"),
Zma=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(class\\.photos\\.google\\.com)[.]?(:[0-9]+)?(/|$)"),TMa=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$)"),
UMa=RegExp("^(https://class\\.photos\\.google\\.com)$");var lja=!1;g.nA.prototype.getId=function(){return this.id};
g.nA.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Aja(this.start)+", "+Aja(this.end)+"]"};
g.nA.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 zja=1;g.nA.prototype.getId=g.nA.prototype.getId;g.w(rA,g.nA);rA.prototype.deactivate=function(){this.B=!0};
rA.prototype.Cv=function(){return this.end-this.start};var r2;var VMa=g.Qb,WMa=VMa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!WMa||2>WMa.length)r2=void 0;else{var s2=VMa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);r2=s2&&6==s2.length?Number(s2[5].replace("_",".")):0}var pH=r2,ON=0<=pH;ON&&0<=g.Qb.search("Safari")&&g.Qb.search("Version");g.w(wA,ix);g.w(xA,ix);var Jja=new jx("aft-recorded",wA),$A=new jx("timing-sent",xA);var t2=window,AA=t2.performance||t2.mozPerformance||t2.msPerformance||t2.webkitPerformance||new Eja;var Ija=!1,u2={'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"},
Wja=(0,g.D)(AA.clearResourceTimings||AA.webkitClearResourceTimings||AA.mozClearResourceTimings||AA.msClearResourceTimings||AA.oClearResourceTimings||g.Ha,AA);var MA=g.C.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",MA,void 0);KA.prototype.tick=function(a,b,c,d){NA(this,"tick_"+a+"_"+b)||g.Vv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
KA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");NA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Vv("latencyActionInfo",a,{cttAuthInfo:c}))};
KA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");NA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Vv("latencyActionSpan",a,{cttAuthInfo:c}))};var v2={},Uja=(v2.auto_search="LATENCY_ACTION_AUTO_SEARCH",v2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",v2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",v2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",v2.app_startup="LATENCY_ACTION_APP_STARTUP",v2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",v2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",v2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",v2.browse="LATENCY_ACTION_BROWSE",v2.channels="LATENCY_ACTION_CHANNELS",
v2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",v2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",v2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",v2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",v2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",v2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",v2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",v2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",
v2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",v2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",v2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",v2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",v2.chips="LATENCY_ACTION_CHIPS",v2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",v2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",v2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",v2.embed=
"LATENCY_ACTION_EMBED",v2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",v2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",v2.explore="LATENCY_ACTION_EXPLORE",v2.home="LATENCY_ACTION_HOME",v2.library="LATENCY_ACTION_LIBRARY",v2.live="LATENCY_ACTION_LIVE",v2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",v2.onboarding="LATENCY_ACTION_ONBOARDING",v2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",v2.parent_tools_collection=
"LATENCY_ACTION_PARENT_TOOLS_COLLECTION",v2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",v2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",v2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",v2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",v2.prebuffer="LATENCY_ACTION_PREBUFFER",v2.prefetch="LATENCY_ACTION_PREFETCH",v2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",v2.profile_switcher="LATENCY_ACTION_LOGIN",v2.reel_watch="LATENCY_ACTION_REEL_WATCH",v2.results="LATENCY_ACTION_RESULTS",
v2.search_ui="LATENCY_ACTION_SEARCH_UI",v2.search_suggest="LATENCY_ACTION_SUGGEST",v2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",v2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",v2.seek="LATENCY_ACTION_PLAYER_SEEK",v2.settings="LATENCY_ACTION_SETTINGS",v2.tenx="LATENCY_ACTION_TENX",v2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",v2.watch="LATENCY_ACTION_WATCH",v2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",v2["watch,watch7"]="LATENCY_ACTION_WATCH",v2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",
v2["watch,watch7ad"]="LATENCY_ACTION_WATCH",v2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",v2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",v2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",v2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",v2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",v2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",v2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",v2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",v2["video.live_settings"]=
"LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",v2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",v2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",v2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",v2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",v2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",v2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",v2),w2={},Oja=(w2.ad_allowed="adTypesAllowed",w2.yt_abt=
"adBreakType",w2.ad_cpn="adClientPlaybackNonce",w2.ad_docid="adVideoId",w2.yt_ad_an="adNetworks",w2.ad_at="adType",w2.aida="appInstallDataAgeMs",w2.browse_id="browseId",w2.p="httpProtocol",w2.t="transportProtocol",w2.cs="commandSource",w2.cpn="clientPlaybackNonce",w2.ccs="creatorInfo.creatorCanaryState",w2.ctop="creatorInfo.topEntityType",w2.csn="clientScreenNonce",w2.docid="videoId",w2.GetHome_rid="requestIds",w2.GetSearch_rid="requestIds",w2.GetPlayer_rid="requestIds",w2.GetWatchNext_rid="requestIds",
w2.GetBrowse_rid="requestIds",w2.GetLibrary_rid="requestIds",w2.is_continuation="isContinuation",w2.is_nav="isNavigation",w2.b_p="kabukiInfo.browseParams",w2.is_prefetch="kabukiInfo.isPrefetch",w2.is_secondary_nav="kabukiInfo.isSecondaryNav",w2.nav_type="kabukiInfo.navigationType",w2.prev_browse_id="kabukiInfo.prevBrowseId",w2.query_source="kabukiInfo.querySource",w2.voz_type="kabukiInfo.vozType",w2.yt_lt="loadType",w2.mver="creatorInfo.measurementVersion",w2.yt_ad="isMonetized",w2.nr="webInfo.navigationReason",
w2.nrsu="navigationRequestedSameUrl",w2.ncnp="webInfo.nonPreloadedNodeCount",w2.pnt="performanceNavigationTiming",w2.prt="playbackRequiresTap",w2.plt="playerInfo.playbackType",w2.pis="playerInfo.playerInitializedState",w2.paused="playerInfo.isPausedOnLoad",w2.yt_pt="playerType",w2.fmt="playerInfo.itag",w2.yt_pl="watchInfo.isPlaylist",w2.yt_pre="playerInfo.preloadType",w2.yt_ad_pr="prerollAllowed",w2.pa="previousAction",w2.yt_red="isRedSubscriber",w2.rce="mwebInfo.responseContentEncoding",w2.rc="resourceInfo.resourceCache",
w2.scrh="screenHeight",w2.scrw="screenWidth",w2.st="serverTimeMs",w2.ssdm="shellStartupDurationMs",w2.br_trs="tvInfo.bedrockTriggerState",w2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",w2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",w2.label="tvInfo.label",w2.is_mdx="tvInfo.isMdx",w2.preloaded="tvInfo.isPreloaded",w2.aac_type="tvInfo.authAccessCredentialType",w2.upg_player_vis="playerInfo.visibilityState",w2.query="unpluggedInfo.query",w2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",
w2.yt_vst="videoStreamType",w2.vph="viewportHeight",w2.vpw="viewportWidth",w2.yt_vis="isVisible",w2.rcl="mwebInfo.responseContentLength",w2.GetSettings_rid="requestIds",w2.GetTrending_rid="requestIds",w2.GetMusicSearchSuggestions_rid="requestIds",w2.REQUEST_ID="requestIds",w2),Pja="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(" "),
x2={},Qja=(x2.ccs="CANARY_STATE_",x2.mver="MEASUREMENT_VERSION_",x2.pis="PLAYER_INITIALIZED_STATE_",x2.yt_pt="LATENCY_PLAYER_",x2.pa="LATENCY_ACTION_",x2.ctop="TOP_ENTITY_TYPE_",x2.yt_vst="VIDEO_STREAM_TYPE_",x2),Rja="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 y2=window;y2.ytcsi&&(y2.ytcsi.info=g.UA,y2.ytcsi.tick=VA);var Boa={Z0:1,t1:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var ZT=16/9,XMa=[.25,.5,.75,1,1.25,1.5,1.75,2],YMa=XMa.concat([3,4,5,6,7,8,9,10,15]);var ZMa=["h","H"],$Ma=["9","("],aNa=["9h","(h"],bNa=["8","*"],cNa=["a","A"],dNa=["o","O"],eNa=["m","M"],fNa=["mac3","MAC3"],gNa=["meac3","MEAC3"],z2={},wma=(z2.h=ZMa,z2.H=ZMa,z2["9"]=$Ma,z2["("]=$Ma,z2["9h"]=aNa,z2["(h"]=aNa,z2["8"]=bNa,z2["*"]=bNa,z2.a=cNa,z2.A=cNa,z2.o=dNa,z2.O=dNa,z2.m=eNa,z2.M=eNa,z2.mac3=fNa,z2.MAC3=fNa,z2.meac3=gNa,z2.MEAC3=gNa,z2);dB.prototype.getLanguageInfo=function(){return this.Bc};
dB.prototype.toString=function(){return this.Bc.name};
dB.prototype.getLanguageInfo=dB.prototype.getLanguageInfo;var A2,jB;A2={};g.gB=(A2.auto=0,A2.tiny=144,A2.light=144,A2.small=240,A2.medium=360,A2.large=480,A2.hd720=720,A2.hd1080=1080,A2.hd1440=1440,A2.hd2160=2160,A2.hd2880=2880,A2.highres=4320,A2);jB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};eB.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.i};
eB.prototype.compose=function(a){if(a.B&&iB(a))return oG;if(a.B||iB(this))return a;if(this.B||iB(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.u&&c===this.i?this:new eB(b,c,!1,c===this.i?this.reason:a.reason)};
eB.prototype.C=function(a){return a.video?bka(this,a.video.quality):!1};
var hNa=hB("auto","hd1080",!1,"l"),ODa=hB("auto","large",!1,"l"),oG=hB("auto","auto",!1,"p");hB("small","auto",!1,"p");lB.prototype.qn=function(a){a=a||oG;for(var b=g.Do(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
lB.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var vB={wi:function(a,b){a.splice(0,b)},
Cu:function(a){a.reverse()},
bo:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};g.wB.prototype.set=function(a,b){this.i[a]!==b&&(this.i[a]=b,this.url="")};
g.wB.prototype.get=function(a){xB(this);return this.i[a]||null};
g.wB.prototype.Wd=function(){this.url||(this.url=qka(this));return this.url};
g.wB.prototype.clone=function(){var a=new g.wB(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.i=g.mc(this.i);a.url=this.url;return a};g.k=DB.prototype;g.k.LB=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.ej(a))?a.duration:0};
g.k.getDurationTicks=function(a){return this.getDuration(a)};
g.k.getFirstSegmentNumber=function(){return this.segments.length?this.segments[0].Ma:-1};
g.k.getIngestionTime=function(a){return(a=this.ej(a))?a.ingestionTime:NaN};
g.k.getStitchedVideoInfo=function(a){return(a=this.ej(a))?a.i:null};
g.k.getLastSegmentNumber=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.k.getMaxKnownEndTime=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.getMinSeekableTime=function(){return this.segments[0].startTime};
g.k.getNumberOfSegments=function(){return this.segments.length};
g.k.getOffset=function(){return 0};
g.k.getSegmentNumberForTime=function(a){return(a=this.Nr(a))?a.Ma:-1};
g.k.getSegmentURL=function(a){return(a=this.ej(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.ej(a))?a.startTime:0};
g.k.getStartTimeInPeriod=function(a){return(a=this.ej(a))?a.u:0};
g.k.isLoaded=function(){return 0<this.segments.length};
g.k.ej=function(a){a=g.Jb(this.segments,new CB(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return 0<=a?this.segments[a]:null};
g.k.Nr=function(a){a=g.Jb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Db(a),this.segments.length){var b=this.segments.length?g.pb(this.segments).endTime:0,c=a[0].Ma-this.getLastSegmentNumber();1<c&&xb(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.getLocalMaxByterate=function(){return 0};var OQ=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}();HB.prototype.skip=function(a){this.i+=a};
HB.prototype.markAsSkip=function(){this.type=1936419184;this.data.setUint32(this.offset+4,1936419184)};var B2={},iNa=(B2.predictStart="predictStart",B2.start="start",B2["continue"]="continue",B2.stop="stop",B2),uka={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};QB.prototype.Tv=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"])};
QB.prototype.toString=function(){for(var a="",b=g.r(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var Dka=!1;qC.prototype.set=function(a,b){this.hg.get(a);this.i[a]=b;this.url=""};
qC.prototype.get=function(a){return this.i[a]||this.hg.get(a)};
qC.prototype.Wd=function(){this.url||(this.url=Mka(this));return this.url};Qka.prototype.lj=function(a,b){a.hg===this.i&&(this.i=rC(a,b));a.hg===this.B&&(this.B=rC(a,b))};wC.prototype.Re=function(){return!!this.i&&this.index.isLoaded()};
wC.prototype.Tt=function(){return!1};
wC.prototype.uH=function(a){return[a]};
wC.prototype.Ww=function(a){return[a]};yC.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};CC.prototype.pj=function(){return this.i.info.pj()};
CC.prototype.isVideo=function(){return!!this.i.info.video};JC.prototype.Pr=function(){return this.B?this.B.Wd():""};
JC.prototype.dj=function(){return DC(this.i[0])};
JC.prototype.lj=function(a,b){this.u.lj(a,b);if(this.B){this.B=rC(a,b);b=g.r(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.B.set(c.value,null)}this.requestId=a.get("req_id")};g.w(NC,wC);g.k=NC.prototype;g.k.Pg=function(){return!1};
g.k.Zv=function(){return!1};
g.k.Tt=function(){return!this.Z};
g.k.Fp=function(){var a=new CC(1,this,this.initRange,"getMetadataRequestInfo");return new JC([a],this.Z)};
g.k.Yq=function(){return null};
g.k.St=function(a){this.Gm(a);return this.Hm(a.Qd?a.Ma+1:a.Ma,!1)};
g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);-1!==a||"386"===this.info.lc()||this.info.lc();b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return this.Hm(a,!0)};
g.k.TD=function(a){this.i=new Uint8Array(eD(a).buffer)};
g.k.Gm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.k.update=function(a,b,c){this.index.append(a);ska(this.index,c);this.K=b};
g.k.Re=function(){return this.Tt()?!0:wC.prototype.Re.call(this)};
g.k.Hm=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.Nb?this.info.Nb*e:1E3;b=!b;var h=f;f=a===this.index.getLastSegmentNumber()&&!this.K&&0<f;a=new CC(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,h,f,b);return new JC([a],c)};
g.k.GD=function(){return this.Tt()?0:this.initRange.length};
g.k.uF=function(){return!1};QC.prototype.update=function(a,b){var c=void 0;this.u&&(c=this.u);var d=new QC,e=Array.from(a.getElementsByTagName("S"));if(e.length){var f=+OC(a,"timescale")||1,h=(+e[0].getAttribute("t")||0)/f,l=+OC(a,"startNumber")||0;d.C=h;var m=h,n=+OC(a,"presentationTimeOffset")||0;b=c?c.startSecs+c.durationSecs:b?m-n/f:0;m=Date.parse(dla(OC(a,"yt:segmentIngestTime")))/1E3;d.D="SegmentTemplate"===a.parentElement.tagName;d.D&&(d.K=OC(a,"media"));a=c?l-c.Ma:1;d.J=0<a?0:-a+1;a=g.r(e);for(e=a.next();!e.done;e=a.next()){e=
e.value;n=+e.getAttribute("d")/f;for(var p=(+e.getAttribute("yt:sid")||0)/f,q=+e.getAttribute("r")||0,t=0;t<=q;t++)if(c&&l<=c.Ma)l++;else{var u=new ala(l,b,n,m+p,h);d.i.push(u);var x=u.startSecs;u=e.getAttribute("yt:cuepointTimeOffset");var y=e.getAttribute("yt:cuepointDuration");if(u&&y){u=Number(u);x=-u/f+x;y=Number(y)/f;var A=e.getAttribute("yt:cuepointContext")||null,F=e.getAttribute("yt:cuepointIdentifier")||"";var G=e.getAttribute("yt:cuepointEvent")||"";G=iNa[G]||"unknown";u=new fA(x,y,A,F,
G,u)}else u=null;u&&d.B.push(u);l++;b+=n;h+=n;m+=n+p}}d.i.length&&(d.u=g.pb(d.i))}this.J=d.J;this.u=d.u||this.u;Eb(this.i,d.i);Eb(this.B,d.B);this.D=d.D;this.K=d.K;-1===this.C&&(this.C=d.getStreamTimeOffset())};
QC.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(RC,DB);g.k=RC.prototype;g.k.getFirstSegmentNumber=function(){return this.jk?this.segments.length?this.Nr(this.getMinSeekableTime()).Ma:-1:DB.prototype.getFirstSegmentNumber.call(this)};
g.k.getMinSeekableTime=function(){if(this.Ze)return 0;if(!this.jk)return DB.prototype.getMinSeekableTime.call(this);if(!this.segments.length)return 0;var a=Math.max(g.pb(this.segments).endTime-this.Jl,0);return 0<this.ue&&this.Nr(a).Ma<this.ue?this.ej(this.ue).startTime:a};
g.k.getMaxKnownEndTime=function(){if(!this.segments.length)return DB.prototype.getMaxKnownEndTime.call(this);var a=this.getLastSegmentNumber();if(!this.jk||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new CB(a,Math.max(0,b.startTime-(b.Ma-a)*this.Fg),this.Fg,0,"sq/"+a,void 0,void 0,!0)}return null!==this.u&&a.pending&&3===this.u?this.Ze?Math.min(this.Jl,a.startTime):a.startTime:this.Ze?Math.min(this.Jl,a.endTime):
a.endTime};
g.k.getNumberOfSegments=function(){return this.jk?this.segments.length?this.getLastSegmentNumber()-this.getFirstSegmentNumber()+1:0:DB.prototype.getNumberOfSegments.call(this)};
g.k.getLastSegmentNumber=function(){var a=Math.min(this.wg,Math.max(DB.prototype.getLastSegmentNumber.call(this),this.Ut)),b=1E3*this.Jl;b=0<this.i&&this.i<b;this.Ze&&0<this.Jl&&0<this.Ut&&!b&&(b=this.Nr(this.Jl))&&(a=Math.min(b.Ma-1,a));return a};
g.k.Vr=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.LB=function(a){var b=SC(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.hw&&0===a.Ma%(300/this.Fg)){var c=this.segments[0].Ma,d=Math.floor(this.hw/this.Fg);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.Nr=function(a){if(!this.jk)return DB.prototype.Nr.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].Ma-Math.ceil((this.segments[0].startTime-a)/this.Fg));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Fg+1);else{b=Kb(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.Ma-b.Ma-1))+1)+b.Ma}return this.ej(b)};
g.k.ej=function(a){if(!this.jk)return DB.prototype.ej.call(this,a);if(!this.segments.length)return null;var b=SC(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Fg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new CB(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(UC,NC);g.k=UC.prototype;g.k.Zv=function(){return!0};
g.k.Re=function(){return!0};
g.k.Gm=function(a){return!a.B};
g.k.Fp=function(){};
g.k.Pl=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?NC.prototype.Pl.call(this,a,b):(a=new CC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Mi,void 0,this.Mi*this.info.Nb),new JC([a],""))};
g.k.Hm=function(a,b){var c=void 0===c?!1:c;if(TC(this.index,a))return NC.prototype.Hm.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Mi*this.info.Nb;b=!b;c=new CC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.K&&0<e,b);return new JC([c],0<=a?"sq/"+a:"")};g.w(VC,wC);g.k=VC.prototype;g.k.Pg=function(){return!1};
g.k.Zv=function(){return!1};
g.k.Fp=function(){var a=new CC(1,this,void 0,"otfInit");return new JC([a],this.K)};
g.k.Yq=function(){return null};
g.k.St=function(a){this.Gm(a);return lla(this,a.Ma+(a.Qd?1:0),!1)};
g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return lla(this,a,!0)};
g.k.TD=function(a){1===a.info.type&&(this.i||(this.i=qla(a.i)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&mla(this,a.u))};
g.k.Gm=function(a){return 0===a.u?!0:this.index.getLastSegmentNumber()>a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1};
g.k.GD=function(){return 0};
g.k.uF=function(){return!1};g.k=WC.prototype;g.k.getOffset=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.i[a]/this.B};
g.k.getStartTimeInPeriod=function(){return 0};
g.k.getIngestionTime=function(){return NaN};
g.k.getStitchedVideoInfo=function(){return null};
g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1};
g.k.getDurationTicks=function(a){return a+1<this.count||this.u?this.i[a+1]-this.i[a]:-1};
g.k.getByteLength=function(a){return a+1<this.count||this.u?this.offsets[a+1]-this.offsets[a]:-1};
g.k.getFirstSegmentNumber=function(){return 0};
g.k.getLastSegmentNumber=function(){return this.count-1};
g.k.getMaxKnownEndTime=function(){return this.u?this.i[this.count]/this.B:NaN};
g.k.getMinSeekableTime=function(){return 0};
g.k.getNumberOfSegments=function(){return this.count};
g.k.getTotalByteLength=function(){return this.u?this.offsets[this.count]:-1};
g.k.getSegmentURL=function(){return""};
g.k.getSegmentNumberForTime=function(a){a=g.Jb(this.i.subarray(0,this.count),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.getLastSegmentNumber()};
g.k.getLocalMaxByterate=function(a,b){if(a>=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.getLastSegmentNumber()&&b>this.getStartTime(a);a++)c=Math.max(c,this.getByteLength(a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.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.k.setTimebase=function(a){this.B=a};
g.k.setFirstSegmentStart=function(a,b){this.offsets[0]=a;this.i[0]=b;this.u=!0};
g.k.addSegmentBySize=function(a,b){this.count++;XC(this);this.offsets[this.count]=this.offsets[this.count-1]+a;this.i[this.count]=this.i[this.count-1]+b};
g.k.addSegmentByStart=function(a,b){XC(this);this.offsets[this.count]=a;this.i[this.count]=b;this.count++};
g.k.cap=function(a,b){XC(this);this.u=!0;this.i[this.count]=b;this.offsets[this.count]=a};YC.prototype.append=function(a){if(nla(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);$C(this)}else this.i.push(a);this.totalLength+=a.length};
YC.prototype.split=function(a){for(var b=new YC,c=new YC,d=g.r(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{lz:b,Fq:c}};
YC.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.i[this.u].length};
YC.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&$C(this);this.B+this.i[this.u].length<=a&&this.u<this.i.length;)this.B+=this.i[this.u].length,this.u+=1;this.C=void 0}};dD.prototype.verify=function(a){if(this.info.u!==this.i.totalLength)return a.slength=this.info.u.toString(),a.range=this.i.totalLength.toString(),!1;if(1===this.info.i.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=eD(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.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.u||4===this.info.type)return!0;c=eD(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.w(hD,wC);g.k=hD.prototype;g.k.Fp=function(a){var b=new CC(1,this,this.initRange,"initInfo"),c=new CC(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=AC(c,a),b.push(new CC(4,this,a,"tbdRange"))));return new JC(b)};
g.k.TD=function(a){if(1===a.info.type){if(this.i)return;this.i=qla(a.i)}else if(2===a.info.type){if(this.K||0<=this.index.getLastSegmentNumber())return;if(g.fD(this.info)){var b=this.index,c=eD(a);a=a.info.range.start;var d=g.SB(c,0,1936286840);c=Bka(d);b.setTimebase(c.tG);b.setFirstSegmentStart(c.DR+a+d.size,c.tR);a=c.oG.length;for(d=0;d<a;d++)b.addSegmentBySize(c.BW[d],c.oG[d])}else this.K=eD(a)}if(this.info.re()&&this.i&&this.K){a=new DataView(this.i.buffer);b=this.index;d=this.K;c=this.indexRange.end;
var e=new bC(a);a=e;e=a.i;var f={ZN:1E6,aO:1E9,duration:0,AN:0,RF:0};if(fC(a,408125543))if(f.AN=gC(a,!0),f.RF=a.start+a.i,fC(a,357149030)){for(var h=eC(a);!cC(h);){var l=gC(h,!1);2807729===l?f.ZN=jC(h):2807730===l?f.aO=jC(h):17545===l?f.duration=lC(h):kC(h)}a.i=e;a=f}else a.i=e,a=null;else a.i=e,a=null;if(null!==a){b.setTimebase(a.aO/a.ZN);e=new bC(d);d=e;h=a.RF;e=d.i;f=[];if(fC(d,475249515)){for(l=eC(d);fC(l,187);){var m=eC(l);if(fC(m,179)){var n=jC(m);if(fC(m,183)){m=eC(m);for(var p=h;fC(m,241);)p=
jC(m)+h;f.push({qy:p,lR:n})}}}if(0<f.length&&c===f[0].qy)for(c=0;c<f.length;c++)f[c].qy+=1;d.i=e;c=f}else d.i=e,c=null;if(null!==c){c=g.r(c);for(d=c.next();!d.done;d=c.next())d=d.value,b.addSegmentByStart(d.qy,d.lR);b.cap(a.AN+a.RF,a.duration)}}this.K=null}};
g.k.uH=function(a){for(var b=this.Ww(a.info),c=a.info.range.start+a.info.Cb,d=a.B,e=[],f=0;f<b.length;f++){var h=b[f].u;h=a.i.split(b[f].range.start+b[f].Cb-c).Fq.split(h).lz;e.push(new dD(b[f],h,d));d=!1}return e};
g.k.Ww=function(a){for(var b=a.range.start+a.Cb,c=0;c<this.index.getLastSegmentNumber()&&b>=this.index.getOffset(c+1);)c++;return iD(this,c,b,a.u).i};
g.k.Gm=function(a){return this.Re()?!0:a.range.end+1<this.info.contentLength};
g.k.Yq=function(a,b){this.Gm(a);if(!this.Re())return b=AC(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new yC(b.start,this.info.contentLength-1)),a=[new CC(4,a.i,b,"getNextRequestInfoByLength")],new JC(a);4===a.type&&(a=this.Ww(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Cb+a.u;3===a.type&&(c=a.Ma,d===a.range.end+1&&(c+=1));return iD(this,c,d,b)};
g.k.St=function(){return null};
g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return iD(this,a,this.index.getOffset(a),0)};
g.k.Pg=function(){return!0};
g.k.Zv=function(){return!1};
g.k.GD=function(){return this.indexRange.length+this.initRange.length};
g.k.uF=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var C2={},rB=(C2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},C2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},C2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},C2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},C2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},C2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},C2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},C2.DECODETOTEXTURE={name:"decode-to-texture",
video:!0,valid:"false",invalid:"nope"},C2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},C2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},C2);var Z={},oD=(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 mD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");lD.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=pD.prototype;g.k.lc=function(){return this.id.split(";",1)[0]};
g.k.re=function(){return 2===this.containerType};
g.k.pj=function(){return!!this.zd};
g.k.Gk=function(){return!!this.audio};
g.k.isVideo=function(){return!!this.video};vD.prototype.getName=function(){return this.name};
vD.prototype.getId=function(){return this.id};
vD.prototype.getIsDefault=function(){return this.isDefault};
vD.prototype.toString=function(){return this.name};
vD.prototype.getName=vD.prototype.getName;vD.prototype.getId=vD.prototype.getId;vD.prototype.getIsDefault=vD.prototype.getIsDefault;g.w(g.wD,jy);g.wD.prototype.T=function(a,b,c,d,e){return jy.prototype.T.call(this,a,b,c,d,e)};g.w(KD,g.R);g.k=KD.prototype;g.k.appendBuffer=function(a,b,c){if(this.xd.Ry()!==this.appendWindowStart+this.start||this.xd.wD()!==this.appendWindowEnd+this.start||this.xd.Tc()!==this.timestampOffset+this.start)this.xd.supports(1),this.xd.VF(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.xd.QA(this.timestampOffset+this.start);this.xd.appendBuffer(a,b,c)};
g.k.abort=function(){this.xd.abort()};
g.k.remove=function(a,b){this.xd.remove(a+this.start,b+this.start)};
g.k.VF=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.KD=function(){return this.timestampOffset+this.start};
g.k.Ry=function(){return this.appendWindowStart};
g.k.wD=function(){return this.appendWindowEnd};
g.k.QA=function(a){this.timestampOffset=a};
g.k.Tc=function(){return this.timestampOffset};
g.k.kf=function(a){a=this.xd.kf(void 0===a?!1:a);return JD(a,this.start,this.end)};
g.k.bh=function(){return this.xd.bh()};
g.k.Bp=function(){return this.xd.Bp()};
g.k.Ty=function(){return this.xd.Ty()};
g.k.KG=function(a,b){this.xd.KG(a,b)};
g.k.supports=function(a){return this.xd.supports(a)};
g.k.Uy=function(){return this.xd.Uy()};
g.k.isView=function(){return!0};
g.k.dB=function(a,b,c){return this.isActive?this.xd.dB(a,b,c):!1};
g.k.gy=function(){return this.xd.gy()?this.isActive:!1};
g.k.isLocked=function(){return this.Bx&&!this.isActive};
g.k.Ib=function(a){return this.xd.Ib(a)+(";vw."+this.start+"-"+this.end)};
g.k.Ev=function(){return this.xd.Ev()};
g.k.xa=function(){oy(this.xd,this.BK);g.R.prototype.xa.call(this)};var NU=!1;g.w(OD,g.R);g.k=OD.prototype;g.k.appendBuffer=function(a,b,c){var d;this.Zx=!1;c&&(this.Az=c);b&&(b.pj()&&(this.jL=this.Az),3===b.type&&(this.Te=b));(null===(d=this.Vb)||void 0===d?0:d.appendBuffer)?this.Vb.appendBuffer(a):this.Vb?this.Vb.append(a):this.Je&&this.Je.webkitSourceAppend(this.id,a)};
g.k.abort=function(){try{this.Vb?this.Vb.abort():this.Je&&this.Je.webkitSourceAbort(this.id)}catch(a){}this.Az=this.Te=null};
g.k.remove=function(a,b){var c;this.Zx=!1;(null===(c=this.Vb)||void 0===c?0:c.remove)&&this.Vb.remove(a,b)};
g.k.Ry=function(){var a;return NU&&this.isVideo?this.appendWindowStart:(null===(a=this.Vb)||void 0===a?void 0:a.appendWindowStart)||0};
g.k.wD=function(){var a;return(null===(a=this.Vb)||void 0===a?void 0:a.appendWindowEnd)||0};
g.k.VF=function(a,b){this.Vb&&(NU&&this.isVideo?(this.appendWindowStart=a,this.Vb.appendWindowEnd=b):a>this.Ry()?(this.Vb.appendWindowEnd=b,this.Vb.appendWindowStart=a):(this.Vb.appendWindowStart=a,this.Vb.appendWindowEnd=b))};
g.k.KD=function(){return this.timestampOffset};
g.k.QA=function(a){NU?this.timestampOffset=a:this.supports(1)&&(this.Vb.timestampOffset=a)};
g.k.Tc=function(){return NU?this.timestampOffset:this.supports(1)?this.Vb.timestampOffset:0};
g.k.kf=function(a){if(void 0===a?0:a)return this.Zx||this.bh()||(this.bJ=this.kf(!1),this.Zx=!0),this.bJ;try{return this.Vb?this.Vb.buffered:this.Je?this.Je.webkitSourceBuffered(this.id):DD([0],[Infinity])}catch(b){return DD([],[])}};
g.k.bh=function(){var a;return(null===(a=this.Vb)||void 0===a?void 0:a.updating)||!1};
g.k.Bp=function(){return this.Az};
g.k.Ty=function(){return this.jL};
g.k.KG=function(a,b){this.containerType!==a&&(this.supports(4),PD()&&this.Vb.changeType(b));this.containerType=a};
g.k.Uy=function(){return this.Te};
g.k.isView=function(){return!1};
g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Vb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Vb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Vb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Vb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Vb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Vb||!this.Vb.changeType);default:return!1}};
g.k.gy=function(){return!this.bh()};
g.k.isLocked=function(){return!1};
g.k.Ib=function(a){var b,c;a.to=""+this.Tc();a.up=""+ +this.bh();var d=(null===(b=this.Vb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Vb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=ED(this.kf())}catch(f){}return g.LD(a)};
g.k.xa=function(){this.supports(3)&&(this.Vb.removeEventListener("updateend",this.ze),this.Vb.removeEventListener("error",this.ze));g.R.prototype.xa.call(this)};
g.k.dB=function(a,b,c){if(!this.supports(2)||this.bh())return!1;var d=this.kf(),e=FD(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.oa();this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.oa(),this.remove(0,l),!0}catch(m){}return!1};
g.k.oa=function(){};
g.k.Ev=function(){return this.containerType};QD.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.i)}catch(a){}this.B=!0}};
QD.prototype.isDisposed=function(){return this.B};
QD.prototype.toString=function(){return"MediaResource {"+this.i+"}"};g.w(RD,g.I);g.k=RD.prototype;g.k.getDuration=function(){var a;return(null===(a=this.mediaSource)||void 0===a?void 0:a.duration)||this.B};
g.k.Gj=function(a){try{this.mediaSource?this.mediaSource.duration=a:(this.B=a,this.Je.webkitSourceSetDuration(a))}catch(b){}};
g.k.rf=function(){try{return"closed"===TD(this)}catch(a){return!0}};
g.k.bh=function(){return!!(this.i&&this.i.bh()||this.u&&this.u.bh())};
g.k.LV=function(){!this.isDisposed()&&SD(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.KV=function(){this.dispose()};var Lla=/action_display_post/;var Mla;g.w(WD,g.R);g.k=WD.prototype;g.k.isFailed=function(){return 3===this.state};
g.k.rW=function(a){var b,c=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.tf=this.B=!0;this.timeline||(this.timeline=new fla);jla(this.timeline,a,this.Ya);this.ea("refresh");for(a=0;a<c.length;a++){var d=cma(this,c[a]),e=this.isLive&&g.fD(d)&&this.eb;if(!this.i[d.id]){var f=ZD(PC(c[a],"BaseURL").textContent),h=PC(c[a],"Initialization"),l=OC(h,"sourceURL");h=zC(OC(h,"range"));e&&(l="",h=void 0);this.i[d.id]=
new NC(f,d,l,h)}d=this.i[d.id];f=OC(c[a],"id","AdaptationSet");f=""!==f?f:OC(c[a],"mimetype","AdaptationSet");l=this.timeline;l=l.B[d.info.id]||l.u[f]||l.i||null;f=l.i;!this.u&&l.getStreamTimeOffset()&&(this.u=l.getStreamTimeOffset());if(l.D)for(e=[],f=g.r(f),h=f.next();!h.done;h=f.next()){h=h.value;var m=d.info.id,n=8*d.info.Nb,p=h.Ma,q=h.startSecs;var t=l.K.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$",q.toString());e.push(new CB(h.Ma,h.startSecs,h.durationSecs,h.i,t.join("$"),null,h.u))}else{l=Fb(PC(c[a],"SegmentList").getElementsByTagName("SegmentURL"),l.J);h=[];for(m=0;m<l.length;m++){n=h;p=n.push;q=f[m];t=void 0;var u=l[m];b=u.getAttribute("media");if(!e&&(u=u.getAttribute("mediaRange"))){var x=u.split("-");x[1]&&0<=Number(x[1])?t=zC(u):b=b+"?range="+u}p.call(n,new CB(q.Ma,q.startSecs,q.durationSecs,q.i,b,t,q.u))}e=h}d.update(e,this.isLive,this.La)}kla(this.timeline);
return!0}this.duration=bla(OC(a,"mediaPresentationDuration"));a:{for(a=0;a<c.length;a++){f=c[a];d=cma(this,f);e=ZD(PC(f,"BaseURL").textContent);l=PC(f,"SegmentBase");f=zC(l.attributes.getNamedItem("indexRange").value);l=zC(l.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);d=new hD(e,d,l,f);if(!d){c=!1;break a}XD(this,d)}c=!0}return c};
g.k.refresh=function(){if(1!==this.state&&!this.isDisposed()){var a=g.pi(this.sourceUrl,{start_seq:gma(this).toString()});g.jh(ema(this,a),function(){})}};
g.k.resume=function(){dma(this)};
g.k.hd=function(){if(this.isManifestless&&this.S&&cE(this))return cE(this);var a=this.i,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.J&&(b=!0),h=h.getMaxKnownEndTime(),f.info.Gk()&&(isNaN(c)||h<c)?c=h:f.info.isVideo()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.getMinSeekableTime=function(){if(this.isManifestless){if(dE(this))return dE(this);if(this.K){var a=this.getIngestionTime(this.hd());if(a&&(a-=this.K,0<a))return this.hd()-a}}a=this.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getMinSeekableTime()}return 0};
g.k.getStreamTimeOffset=function(){return this.u};
g.k.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 $D=null,Yla=!!navigator.mediaCapabilities,bma={commentary:1,alternate:2,dub:3,main:4};lE.prototype.clone=function(a){return new lE(this.flavor,a,this.C,this.experiments)};
lE.prototype.Ib=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
lE.prototype.lf=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 D2={},uE=(D2.playready=["com.youtube.playready","com.microsoft.playready"],D2.widevine=["com.youtube.widevine.forcehdcp","com.youtube.widevine.l3","com.widevine.alpha"],D2),E2={},BDa=(E2.widevine="DRM_SYSTEM_WIDEVINE",E2.fairplay="DRM_SYSTEM_FAIRPLAY",E2.playready="DRM_SYSTEM_PLAYREADY",E2),F2={},jNa=(F2.widevine=1,F2.fairplay=2,F2.playready=3,F2);g.w(vE,g.I);
vE.prototype.initialize=function(a,b){for(var c=this,d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.zd)for(var h=g.r(Object.keys(f.zd)),l=h.next();!l.done;l=h.next())if(l=l.value,uE[l])for(var m=g.r(uE[l]),n=m.next();!n.done;n=m.next())n=n.value,this.u[n]=this.u[n]||new lE(l,n,f.zd[l],this.experiments),this.C[l]=this.C[l]||{},this.C[l][f.mimeType]=!0}Tt()&&(this.u["com.youtube.fairplay"]=new lE("fairplay","com.youtube.fairplay","",
this.experiments),this.C.fairplay={'video/mp4; codecs="avc1.4d400b"':!0,'audio/mp4; codecs="mp4a.40.5"':!0});this.i=xma(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),g.kE(this.experiments,"html5_hdcp_probing_stream_url")).filter(function(p){return!!c.u[p]})};
vE.prototype.oa=function(){};
vE.prototype.N=function(a){return this.experiments.ob(a)};var kNa={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},G2;a:{var H2=g.Qb;H2=H2.toLowerCase();if(-1!=H2.indexOf("android")){var lNa=H2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(lNa){var mNa=parseFloat(lNa[1]);if(100>mNa){G2=mNa;break a}}var nNa=H2.match("("+g.cc(kNa).join("|")+")");G2=nNa?kNa[nNa[0]]:0}else G2=void 0}var bF=G2,aF=0<=bF;var cna={RED:"red",P$:"white"};var ina={hY:"adunit",S0:"detailpage",j1:"editpage",m1:"embedded",n1:"embedded_unbranded",t3:"leanback",M7:"previewpage",P7:"profilepage",a$:"unplugged",D7:"playlistoverview",n9:"sponsorshipsoffer",a9:"shortspage"};Ema.prototype.ob=function(a){return"true"===this.flags[a]};xE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;$t?a=a||oNa[b]:2.2===bF?a=a||pNa[b]:Qt()&&(a=a||qNa[b]);return!!a};
xE.prototype.isTypeSupported=function(a){this.oa();return this.J?window.cast.receiver.platform.canDisplayType(a):zD(a)};
xE.prototype.disableAv1=function(){this.S=!0};
xE.prototype.oa=function(){};
var pNa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},qNa={"application/x-mpegURL":"maybe"},oNa={"application/x-mpegURL":"maybe"};g.w(AE,g.R);AE.prototype.add=function(a,b){!this.items[a]&&(b.Qu||b.jy||b.wx)&&(this.items[a]=qc(b),this.ea("vast_info_card_add",a))};
AE.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
AE.prototype.get=function(a){return this.items[a]||null};
AE.prototype.isEmpty=function(){return g.ic(this.items)};var jF={M3:1,N3:2,O3:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};BE.prototype.send=function(){g.xt(this.target,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:this.onComplete,onTimeout:this.onComplete,context:this});this.i=(0,g.Q)()};
BE.prototype.onComplete=function(a){var b,c={rc:a.status,lb:(null===(b=a.response)||void 0===b?void 0:b.byteLength)||0,rt:(((0,g.Q)()-this.i)/1E3).toFixed(3),shost:g.ei(this.target),trigger:this.trigger};204===a.status||200===a.status||a.response?this.u&&this.u(g.LD(c)):this.B(new g.MD("pathprobe.net",!1,c))};DE.prototype.Mg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.u+=a};
DE.prototype.qg=function(){return this.i/(1-Math.pow(this.alpha,this.u))};EE.prototype.Mg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.C=!0};
EE.prototype.qg=function(){return this.D?(FE(this,this.B-this.D)+FE(this,this.B)+FE(this,this.B+this.D))/3:FE(this,this.B)};g.w(Tma,g.I);var Wma=/^([0-9\.]+):([0-9\.]+)$/;var ana="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),hna={KY:"cbrand",LY:"cbr",MY:"cbrver",A2:"c",D2:"cver",C2:"ctheme",B2:"cplayer",P5:"cmodel",w6:"cnetwork",Q6:"cos",R6:"cosver",v7:"cplatform"};g.w(pF,g.I);g.k=pF.prototype;g.k.N=function(a){return this.experiments.ob(a)};
g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.sF(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.fF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,$t&&(a=os())&&(b.ebc=a));return g.pi(d,b)};
g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.sF(this)+"/embed/"+a;c&&(a=g.pi(a,{list:c}));c=b.width;b=b.height;a=g.ag(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.k.supportsGaplessAudio=function(){return g.Si&&!$t&&74<=Nt()||g.Ti&&g.Dc(68)?!0:!1};
g.k.getPlayerType=function(){return this.deviceParams.cplayer};
g.k.xa=function(){g.I.prototype.xa.call(this)};
var mna=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=HF.prototype;g.k.lf=function(){return this.i};
g.k.Vt=function(){return null};
g.k.dK=function(){var a=this.Vt();return a?(a=g.Hs(a.i),Number(a.expire)):NaN};
g.k.SF=function(){};
g.k.lc=function(){return this.i.lc()};
g.k.getHeight=function(){return this.i.video.height};nna.prototype.Ne=function(){qna(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Bc){if(e.Bc.getIsDefault()){c=e.Bc.getId();break a}c||(c=e.Bc.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Bc||e.Bc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.i])for(e=g.r(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Bc){p=f.Bc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=JF(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(pna(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=rNa,d=(h=d.Bc)?'#EXT-X-MEDIA:URI="'+JF(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?rNa:void 0;d=g.r(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.i],0<(null===h||void 0===h?void 0:h.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(pna(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.Gt&&(h+=",VIDEO-RANGE="+e.Gt),a.push(h),a.push(JF(this,e.url,"")));return a.join("\n")};
var rNa="text";g.w(KF,HF);KF.prototype.dK=function(){return this.expiration};
KF.prototype.Vt=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Ne();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new QD(a)}return this.u};g.w(LF,HF);LF.prototype.Vt=function(){return new QD(this.u.Wd())};
LF.prototype.SF=function(){this.u=AB(this.u)};g.w(MF,HF);MF.prototype.Vt=function(){return new QD(this.u)};NF.prototype.toString=function(){return this.type+this.id};var Cna={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Dna={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.RF.prototype.He=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.i)return tF(this.u,this.i,a)};
g.RF.prototype.Bk=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.SF.prototype.He=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:tF(this.i,this.videoId,a)};
g.SF.prototype.Bk=function(){return this.watchUrl||this.i.getVideoUrl(this.videoId)};var I2={},Jna=sx("yt-player-local-media",{Gs:(I2.index={Mm:2},I2.media={Mm:2},I2.captions={Mm:5},I2),dx:!1,upgrade:function(a,b){b(2)&&(ww(a,"index"),ww(a,"media"));b(5)&&ww(a,"captions");b(6)&&(xw(a,"metadata"),xw(a,"playerdata"))},
version:5});var TF=void 0;Fna().LMS=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(VF())})})};var ZF=0,Mna=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Fna().LMDB=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.z(e,g.Yw(),2);if(3!=e.i){c=e.u;if(!c)throw g.iw("edd");return g.z(e,(0,g.YF)(),3)}d=e.u;return e.return(yw(d,["index","media","captions"],"readonly",function(f){var h={};f=[Fw(f.objectStore("index"),{},function(l){h[l.getKey()]=l.getValue();return l.continue()}),
Gw(f.objectStore("media")),Gw(f.objectStore("captions"))];return kw.all(f).then(function(l){var m=g.r(l);m.next();l=m.next().value;m=m.next().value;return{index:h,media:Yna(l||[]),captions:m}})}))})})};g.k=g.aG.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.i};
g.k.Wd=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.bG(this)+" - "+this.vssId};
g.k.isValid=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var $na={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},aoa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},boa=/^(\d*)_((\d*)_?(\d*))$/;var J2={},Eoa=(J2.ALWAYS=1,J2.BY_REQUEST=3,J2.UNKNOWN=void 0,J2),K2={},poa=(K2.COLOR_PRIMARIES_BT709="bt709",K2.COLOR_PRIMARIES_BT2020="bt2020",K2.COLOR_PRIMARIES_UNKNOWN=null,K2.COLOR_PRIMARIES_UNSPECIFIED=null,K2),L2={},doa=(L2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",L2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",L2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",L2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",L2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,L2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=
null,L2),M2={},gG=(M2.FAIRPLAY="fairplay",M2.PLAYREADY="playready",M2.WIDEVINE="widevine",M2.CLEARKEY=null,M2.FLASHACCESS=null,M2.UNKNOWN=null,M2.WIDEVINE_CLASSIC=null,M2),N2={},Foa=(N2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",N2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",N2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",N2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",N2),O2={},moa=(O2.UNKNOWN=0,O2.RECTANGULAR=1,O2.EQUIRECTANGULAR=2,O2.EQUIRECTANGULAR_THREED_TOP_BOTTOM=
3,O2.MESH=4,O2),P2={},ooa=(P2.SPATIAL_AUDIO_TYPE_NONE=0,P2.SPATIAL_AUDIO_TYPE_AMBISONICS_5_1=1,P2.SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD=2,P2.SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC=3,P2),Q2={},noa=(Q2.STEREO_LAYOUT_UNKNOWN=0,Q2.STEREO_LAYOUT_LEFT_RIGHT=1,Q2.STEREO_LAYOUT_TOP_BOTTOM=2,Q2),R2={},loa=(R2.FORMAT_STREAM_TYPE_UNKNOWN=0,R2.FORMAT_STREAM_TYPE_OTF=3,R2);g.w(hG,g.R);hG.prototype.xa=function(){this.i&&(this.i=this.i.onload=null);g.R.prototype.xa.call(this)};g.k=g.kG.prototype;g.k.getHeight=function(){return this.height};
g.k.iK=ba(0);g.k.DD=function(){return this.B};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Wd=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.pi(b,{sigh:this.signature}));return lA(b)};
g.k.Gx=function(a){var b=this.DD()-1;return g.Qf(0===this.i?Math.round(a*this.B/this.videoLength):Math.round(1E3*a/this.i),0,b)};
g.k.Wt=function(){return this.B-1};
g.k.MB=function(){return this.B?0:-1};
g.k.vH=function(){};g.w(lG,hG);lG.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.J(e-1,d,a[e],b);(this.S||180>f.getHeight())&&c.push(f)}return c};
lG.prototype.J=function(a,b,c,d){return new g.kG(a,b,c,d)};g.w(mG,g.kG);g.k=mG.prototype;g.k.DD=function(){return this.u.getNumberOfSegments()};
g.k.Gx=function(a){var b=this.rows*this.columns*this.J,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a};
g.k.Wt=function(){return this.u.getLastSegmentNumber()};
g.k.MB=function(){return this.u.getFirstSegmentNumber()};
g.k.vH=function(a){this.u=a};g.w(nG,lG);nG.prototype.u=function(a,b){return lG.prototype.u.call(this,"$N|"+a,b)};
nG.prototype.J=function(a,b,c){return new mG(a,b,c,this.isLive)};g.w(pG,g.R);g.k=pG.prototype;g.k.V=function(){return this.B};
g.k.N=function(a){return this.B.N(a)};
g.k.sf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.iM=function(){this.isDisposed()||(this.i.B||this.i.unsubscribe("refresh",this.iM,this),this.qJ(-1))};
g.k.qJ=function(a){if(!this.isLivePlayback||!this.J||"fairplay"!=this.J.flavor){var b=Zla(this.i,this.pG);if(0<b.length&&(this.ea("cuepointupdated",b,a),this.pG+=b.length,DG(this)&&g.zG(this))){b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.Ba("cuepoint","segNum."+a+";event."+c.event+";startSecs."+c.startSecs+";id."+c.identifier.slice(-16)),"start"===c.event&&(c=c.startSecs,this.yu.start=this.pu,this.yu.end=c+3)}}};
g.k.Eh=function(){var a={};this.u&&(a.fmt=this.u.lc(),this.K&&this.K.lc()!=this.u.lc()&&(a.afmt=this.K.lc()));a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Kg&&(a.infringe=1);this.gf&&(a.splay=1);var b=IG(this);b&&(a.live=b);this.Ok&&(a.autoplay=1);this.AI&&(a.sdetail=this.AI);this.Ka&&(a.partnerid=this.Ka);this.osid&&(a.osid=this.osid);return a};
g.k.Hh=function(){if(this.cotn)return null;var a=g.yF(this.B)||this.N("web_l3_storyboard");if(!this.Of)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Of=new lG(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.i&&(c=Zb(this.i.i).index)&&(this.Of=new nG(b.spec,this.i.isLive,c,a))}else this.Nq?this.Of=new lG(this.Nq,this.lengthSeconds,void 0,!1,a):this.uq&&this.i&&
(b=Zb(this.i.i).index)&&(this.Of=new nG(this.uq,this.i.isLive,b,a));return this.Of};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Nq||this.uq};
g.k.hd=function(){return this.i&&!isNaN(this.i.hd())?this.i.hd():DG(this)?0:this.lengthSeconds};
g.k.getMinSeekableTime=function(){return this.i&&!isNaN(this.i.getMinSeekableTime())?this.i.getMinSeekableTime():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.i&&this.u){var b=this.i.i[this.u.id];if(!b)return null;var c=b.index.getSegmentNumberForTime(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.isValid=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Fi)};
g.k.isLoaded=function(){return qG(this)&&!this.cd&&!this.Rj};
g.k.He=function(a){if(30==this.Ka)return(a=this.Z["default.jpg"])?a:this.videoId?g.pi("//docs.google.com/vt",{id:this.videoId,authuser:this.mI,authkey:this.authKey}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.B.S||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:tF(this.B,this.videoId,a)};
g.k.tf=function(){return this.isLivePlayback||this.Ze||this.Zi||!(!this.liveUtcStartSeconds||!this.Wg)};
g.k.isOtf=function(){return!!this.i&&(this.i.isOtf||!this.Ze&&!this.isLivePlayback&&this.i.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.mq||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.K&&!tD(this.K))return g.rb(this.getAvailableAudioTracks(),function(d){return d.id==a.K.id})||this.Wi;
if(this.mq){if(!this.Uj)for(var b=g.r(this.mq),c=b.next();!c.done;c=b.next())if(c=c.value,c.Bc.getIsDefault()){this.Uj=c;break}return this.Uj||this.Wi}return this.Wi};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.Bk=function(){return this.watchUrl?this.watchUrl:this.B.getVideoUrl(this.videoId)};
g.k.isAd=function(){return!!this.adFormat};
g.k.mf=function(){return this.oauthToken||this.B.Xe};
g.k.Kn=function(){var a=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],b="TVHTML5_SIMPLY"===this.B.deviceParams.c&&"MUSIC"===this.B.deviceParams.ctheme;!this.Fe&&(g.gF(this.B)||b)&&a.includes(this.musicVideoType)&&(this.Fe=!0);if(a=g.St())a=/Starboard\/([0-9]+)/.exec(g.Qb),a=10>(a?parseInt(a[1],10):NaN);b=this.B;b=("TVHTML5_CAST"===b.deviceParams.c||"TVHTML5"===b.deviceParams.c&&(b.deviceParams.cver.startsWith("6.20130725")||b.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===
this.B.deviceParams.ctheme;!this.Fe&&(b||kna(this.B))&&!a&&(a="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===this.musicVideoType,b=(this.N("cast_prefer_audio_only_for_atv_and_uploads")||this.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===this.musicVideoType,a||b)&&(this.Fe=!0);return!this.B.deviceHasDisplay||this.Fe&&this.B.B};
g.k.cG=function(){return this.Pi||this.Sc};
g.k.ex=function(){return this.Xe||this.Sc};
g.k.AC=function(){return AG(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){if(!(this.J&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)};
g.k.Ba=function(a,b,c){this.ea("ctmp",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.xa=function(){g.R.prototype.xa.call(this);delete this.ol;this.vl=null;delete this.XW;delete this.accountLinkingConfig;delete this.i;this.C=this.playerResponse=this.watchNextResponse=null;this.Hi=this.adaptiveFormats="";delete this.botguardData;this.Kq={};this.suggestions=null};rH.prototype.Yv=function(){return!1};
rH.prototype.Da=function(){return function(){return null}};var zH=null;g.w(yH,g.R);yH.prototype.Dv=function(a){return this.i.hasOwnProperty(a)?this.i[a].Dv():{}};
g.Fa("ytads.bulleit.getVideoMetadata",function(a){return AH().Dv(a)},void 0);
g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=AH();c=npa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})},void 0);g.w(DH,rH);g.k=DH.prototype;g.k.rs=function(){return!0};
g.k.Po=function(){return!1};
g.k.isSkippable=function(){return null!=this.ya};
g.k.getVideoUrl=function(){return this.Y};
g.k.Yv=function(){return!0};g.w(KH,rH);KH.prototype.rs=function(){return!0};
KH.prototype.Po=function(){return!1};
KH.prototype.Yv=function(){return!0};
KH.prototype.Da=function(){return function(){return g.og("video-ads")}};wpa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var JJa={QX:"FINAL",cY:"AD_BREAK_LENGTH",dY:"AD_CPN",eY:"AH",fY:"AD_MT",gY:"ASR",iY:"AW",fZ:"NM",gZ:"NX",hZ:"NY",mZ:"CONN",xZ:"CPN",f1:"DV_VIEWABILITY",v1:"ERRORCODE",z1:"ERROR_MSG",B1:"EI",g2:"GOOGLE_VIEWABILITY",x2:"IAS_VIEWABILITY",r3:"LACT",F3:"LIVE_TARGETING_CONTEXT",P3:"I_X",Q3:"I_Y",t5:"MT",x5:"MIDROLL_POS",y5:"MIDROLL_POS_MS",A5:"MOAT_INIT",B5:"MOAT_VIEWABILITY",y7:"P_H",z7:"PV_H",A7:"PV_W",B7:"P_W",G7:"TRIGGER_TYPE",s8:"SDKV",k9:"SLOT_POS",z9:"SURVEY_LOCAL_TIME_EPOCH_S",y9:"SURVEY_ELAPSED_MS",
KQ:"VIS",z$:"VIEWABILITY",A$:"VED",F$:"VOL",I$:"WT",caa:"YT_ERROR_CODE"};var Epa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];QH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.xq(a.baseUrl,Apa(b,d,c)),f;if(a.headers)for(var h=g.r(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.mf();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.i();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.Xu(e,void 0,d,f)}catch(p){}};g.w(RH,QH);RH.prototype.mf=function(){return this.np?this.np.mf():""};
RH.prototype.i=function(){return this.np?this.np.V().pageId:""};SH.prototype.send=function(a,b,c){try{var d=a.match(ci);if("https"===d[1])var e=a;else d[1]="https",e=ai("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=wq(a);e=[];Ns(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.Yo.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.w(Fpa,g.I);g.w(fI,g.R);g.k=fI.prototype;g.k.Dv=function(){return{}};
g.k.MF=function(){};
g.k.ld=function(a){this.nk();this.ea(a)};
g.k.wH=function(){};
g.k.nk=function(){Lpa(this,this.ma,3);this.ma=[]};
g.k.getDuration=function(){return this.I.getDuration(2,!1)};
g.k.Cn=function(){var a=this.i;TH(a)||!aI(a,"impression")&&!aI(a,"start")||aI(a,"abandon")||aI(a,"complete")||aI(a,"skip")||(UH(a)?$H(a,"pause"):WH(a,"pause"))};
g.k.Dn=function(){this.ya||this.J||this.Df()};
g.k.rh=function(){XH(this.i,this.getDuration())};
g.k.vg=function(){var a=this.i;!aI(a,"impression")||aI(a,"skip")||aI(a,"complete")||$H(a,"abandon")};
g.k.Kp=function(){var a=this.i;UH(a)?WH(a,"skip"):!aI(a,"impression")||aI(a,"abandon")||aI(a,"complete")||WH(a,"skip")};
g.k.Df=function(){if(!this.J){var a=this.Qy();this.i.macros.AD_CPN=a;a=this.i;if(UH(a)){var b=a.i.getCurrentTime(2,!1);ZH(a,"impression",b,0)}else WH(a,"impression");WH(a,"start");TH(a)||a.i.isFullscreen()&&$H(a,"fullscreen");this.J=!0}};
g.k.Yg=function(a){a=a||"";var b="",c="",d="";sH(this.I)&&(b=this.I.vb(2).state,this.I.jd()&&(c=this.I.jd().uh(),null!=this.I.jd().aj()&&(d=this.I.jd().aj())));var e=this.i;e.macros=PH(e.macros,Dpa(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));WH(e,"error")};
g.k.nf=function(){};
g.k.bN=function(){this.ea("adactiveviewmeasurable")};
g.k.cN=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")};
g.k.dN=function(){this.ea("adoverlaymeasurableimpression")};
g.k.eN=function(){this.ea("adoverlayunviewableimpression")};
g.k.fN=function(){this.ea("adoverlayviewableendofsessionimpression")};
g.k.gN=function(){this.ea("adoverlayviewableimmediateimpression")};
g.k.hN=function(){this.ea("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.nk(),this.u.unsubscribe("adactiveviewmeasurable",this.bN,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.cN,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.dN,this),this.u.unsubscribe("adoverlayunviewableimpression",this.eN,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.fN,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.gN,this),this.u.unsubscribe("adviewableimpression",
this.hN,this),delete this.u.i[this.ad.K],g.R.prototype.dispose.call(this))};
g.k.Qy=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.NJ=function(){return""};g.w(iI,rH);iI.prototype.rs=function(){return!0};
iI.prototype.Po=function(){return!1};g.w(jI,wH);g.w(kI,fI);g.k=kI.prototype;g.k.Zq=function(){0<this.B&&this.Df()};
g.k.Df=function(){var a=this;this.Lb=new g.M(function(){a.rh();for(var b=g.r(a.C.i.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.ld("adended")},this.B,this);
g.J(this,this.Lb);this.Lb.start();gI(this,[new jI(this.C.i,this.macros)]);fI.prototype.Df.call(this)};
g.k.vg=function(){fI.prototype.vg.call(this);this.ld("adabandoned")};
g.k.rh=function(){fI.prototype.rh.call(this)};
g.k.ld=function(a){this.Lb&&this.Lb.stop();fI.prototype.ld.call(this,a)};g.w(lI,rH);lI.prototype.rs=function(){return!0};
lI.prototype.Po=function(){return!1};g.w(mI,rH);mI.prototype.rs=function(){return!0};
mI.prototype.Po=function(){return!1};g.w(nI,rH);nI.prototype.rs=function(){return!0};
nI.prototype.Po=function(){return!1};Npa.prototype.create=function(a,b){return a instanceof DH?this.J.create(a,b):a instanceof KH?this.C.create(a,b):a instanceof iI?this.i.create(a,b):a instanceof nI?this.D.create(a,b):a instanceof mI?this.B.create(a,b):a instanceof lI?this.u.create(a,b):null};g.w(oI,fI);g.k=oI.prototype;g.k.vg=function(){fI.prototype.vg.call(this);this.ld("adabandoned")};
g.k.Cn=function(){fI.prototype.Cn.call(this);this.ea("adpause",2)};
g.k.Dn=function(){fI.prototype.Dn.call(this);this.ea("adplay",1)};
g.k.Df=function(){fI.prototype.Df.call(this);this.B.stop();this.C.T(this.I,g.pA("bltplayback"),this.XO);var a=new g.nA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Ed([a],2);this.ea("adplay",1)};
g.k.rh=function(){fI.prototype.rh.call(this);this.ld("adended")};
g.k.Yg=function(a){fI.prototype.Yg.call(this,a);this.ld("aderror")};
g.k.Zq=function(){uH(this.I,!1);var a=this.D.u||{};a.autoplay="1";this.I.cueVideoByPlayerVars(a,2);this.B.start();this.I.playVideo(2);this.I.Oa("onAdIntroStateChange",1)};
g.k.ld=function(a){this.B.stop();uH(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");this.I.Oa("onAdEnd");this.ea(a);this.I.Oa("onAdIntroStateChange",0)};
g.k.XO=function(a){"bltcompletion"==a.getId()&&(this.I.Ve("bltplayback",2),XH(this.i,this.getDuration()))};g.w(Opa,wH);g.w(pI,fI);g.k=pI.prototype;
g.k.Zq=function(){if(this.D)for(var a=g.r(this.D.listeners),b=a.next();!b.done;b=a.next()){b=b.value;b.u={slotId:GZ(b.D.get(),"SLOT_TYPE_IN_PLAYER"),rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ub:void 0,qc:[],pc:[],gb:"surface",Ia:new HY([])};rqa(b.B(),b.u);var c=b.B();b=b.u;c=g.r(c.Od);for(var d=c.next();!d.done;d=c.next())d.value.Dj(b)}0>=this.S&&(g.zs(Error("durationMs was specified incorrectly with a value of: "+this.S)),this.rh());this.Df();this.I.addEventListener("progresssync",this.Y)};
g.k.vg=function(){fI.prototype.vg.call(this);this.ld("adabandonedreset")};
g.k.Df=function(){var a=this.I.V();fI.prototype.Df.call(this);this.B=a.N("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.C=this.B+this.S/1E3;g.mF(a)?this.I.Oa("onAdMessageChange",{renderer:this.K.i,startTimeSecs:this.B}):gI(this,[new Opa(this.K.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Iy(),c=this.K.i.videoAdBreakOffsetMsInt64;b&&g.Vv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.C),timeToAdBreakSec:Math.ceil(this.C-
this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.D)for(this.Z=!0,a=g.r(this.D.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u?b.i?S("Received AdNotify started event before another one exited"):(b.i=b.u,sqa(b.B(),b.i)):S("Received AdNotify started event without start requested event");g.T(this.I.vb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Iy(),c=this.K.i.videoAdBreakOffsetMsInt64,b&&g.Vv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.C),timeToAdBreakSec:Math.ceil(this.C-this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.rh())};
g.k.rh=function(){fI.prototype.rh.call(this);this.ld("adended")};
g.k.Yg=function(a){fI.prototype.Yg.call(this,a);this.ld("aderror")};
g.k.ld=function(a){this.I.removeEventListener("progresssync",this.Y);this.nk();this.ea(a);Qpa(this)};
g.k.dispose=function(){this.I.removeEventListener("progresssync",this.Y);Qpa(this);fI.prototype.dispose.call(this)};
g.k.nk=function(){g.mF(this.I.V())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.B}):fI.prototype.nk.call(this)};sI.prototype.sendAdsPing=function(a){this.J.send(a,$pa(this),{})};
sI.prototype.Hd=function(a){var b=this;if(a){var c=$pa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};tI.prototype.get=function(){return this.value};
g.w(uI,tI);uI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(vI,tI);vI.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(wI,tI);wI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(xI,tI);xI.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(yI,tI);yI.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(zI,tI);zI.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(AI,tI);AI.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(BI,tI);BI.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(CI,tI);CI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(DI,tI);DI.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(EI,tI);EI.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(FI,tI);FI.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w(GI,tI);GI.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(HI,tI);HI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(II,tI);II.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(JI,tI);JI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(KI,tI);KI.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(LI,tI);LI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(MI,tI);MI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(NI,tI);NI.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(OI,tI);OI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(PI,tI);PI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(QI,tI);QI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(RI,tI);RI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(SI,tI);SI.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(TI,tI);TI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(UI,tI);UI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(VI,tI);VI.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(WI,tI);WI.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(XI,tI);XI.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(YI,tI);YI.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(ZI,tI);ZI.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w($I,tI);$I.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(aJ,tI);aJ.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(bJ,tI);bJ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(cJ,tI);cJ.prototype.getType=function(){return"metadata_type_dai"};
g.w(dJ,tI);dJ.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(eJ,tI);eJ.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(fJ,tI);fJ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(gJ,tI);gJ.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(hJ,tI);hJ.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(iJ,tI);iJ.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(jJ,tI);jJ.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(kJ,tI);kJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(lJ,tI);lJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(mJ,tI);mJ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(nJ,tI);nJ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(oJ,tI);oJ.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"};
g.w(pJ,tI);pJ.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(qJ,tI);qJ.prototype.getType=function(){return"metadata_type_survey_overlay"};fqa.prototype.Hd=function(a){this.i.Hd(a)};g.w(sJ,g.R);sJ.prototype.getProgressState=function(){return this.B};
sJ.prototype.start=function(){this.C=Date.now();hqa(this,{current:this.i/1E3,duration:this.u/1E3});this.Lb.start()};
sJ.prototype.stop=function(){this.Lb.stop()};g.w(tJ,wH);g.w(uJ,g.R);uJ.prototype.start=function(){this.B||(this.B=!0,this.u.start(),this.C=Date.now())};
uJ.prototype.stop=function(){this.B&&(this.B=!1,this.u.stop())};
uJ.prototype.Qb=function(){var a=Date.now(),b=a-this.C;this.C=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.u.stop(),this.D(this.i),this.J()):this.D(this.i)};g.w(xJ,fI);g.k=xJ.prototype;g.k.Zq=function(){this.Df()};
g.k.Df=function(){var a=this,b=this.C.i;if(g.mF(this.I.V()))iqa(this,b),this.Z=Date.now(),this.B&&this.B.start();else if(gI(this,[new tJ(b)]),this.C.i.controlWithFixEnabled){var c=1E3*this.C.u;this.K=new uJ(c,function(d){var e={current:d/1E3,duration:c/1E3};hI(a,d/1E3);a.I.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3,
duration:c/1E3};wJ(a);a.I.Oa("onAdPlaybackProgress",d)});
g.J(this,this.K);this.K.start()}vJ();fI.prototype.Df.call(this)};
g.k.getDuration=function(){return this.C.u};
g.k.Cn=function(){fI.prototype.Cn.call(this);this.B&&this.B.stop()};
g.k.Dn=function(){fI.prototype.Dn.call(this);this.B&&this.B.start()};
g.k.vg=function(){fI.prototype.vg.call(this);this.ld("adabandoned")};
g.k.Kp=function(){fI.prototype.Kp.call(this);this.ld("adended")};
g.k.wH=function(){var a=this.I.V();this.C.i.controlWithFixEnabled&&!g.mF(a)&&(a=2===this.I.getPresentingPlayerType(!0),this.J&&!a&&(wJ(this),this.ld("adended")))};
g.k.Yg=function(a){this.I.V().experiments.ob("html5_block_player_errors_while_survey_active")?S("Unexpected Player Error while the Survey is playing."):(fI.prototype.Yg.call(this,a),this.ld("aderror"))};
g.k.ld=function(a){this.nk();this.ea(a)};
g.k.nf=function(a){switch(a){case "skip-button":this.Kp();break;case "survey-submit":this.ld("adended")}};
g.k.nk=function(){g.mF(this.I.V())?(this.B&&this.B.stop(),this.I.Oa("onAdInfoChange",null)):fI.prototype.nk.call(this)};g.w(yJ,wH);g.w(zJ,fI);zJ.prototype.Zq=function(){this.Df()};
zJ.prototype.Df=function(){vJ();gI(this,[new yJ(this.B.i,this.macros)]);fI.prototype.Df.call(this)};
zJ.prototype.vg=function(){fI.prototype.vg.call(this);this.ld("adabandoned")};
zJ.prototype.Yg=function(a){fI.prototype.Yg.call(this,a);this.ld("aderror")};g.w(CJ,wH);g.w(DJ,fI);g.k=DJ.prototype;g.k.Dv=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:lpa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
g.k.Zq=function(){if(this.B.Z)Mpa(this),this.ld("aderror");else{var a=this.B.i.legacyInfoCardVastExtension,b=this.B.D;a&&b&&this.I.V().Z.add(b,{Qu:a});try{var c=this.B.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{al(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.cf("//tpc.googlesyndication.com/sodar/%{path}");g.Bz(new g.$v("Load Sodar Error.",d instanceof af,d.constructor===af,{Message:e.message,"Escaped injector basename":g.ag(c.siub),"BG vm basename":c.bgub}));if(d.constructor===af)throw e;
}}catch(e){g.Ty(e)}uH(this.I,!1);a=upa(this.B);b=this.I.V();this.I.V().experiments.ob("disable_force_iv_load_policy_on_bulleit")||(a.iv_load_policy=b.i||g.mF(b)||g.yF(b)?3:1);b=this.I.getVideoData(1);b.Bg&&(a.ctrl=b.Bg);b.Ff&&(a.ytr=b.Ff);b.Fl&&(a.ytrcc=b.Fl);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Wh&&(a.vss_credentials_token_type=b.Wh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.Z?this.D.start():(this.I.cueVideoByPlayerVars(a,
2),this.D.start(),this.I.playVideo(2))}};
g.k.Cn=function(){fI.prototype.Cn.call(this);this.ea("adpause",2)};
g.k.Dn=function(){fI.prototype.Dn.call(this);this.ea("adplay",1)};
g.k.Df=function(){fI.prototype.Df.call(this);this.D.stop();this.Y.T(this.I,g.pA("bltplayback"),this.YO);var a=new g.nA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Ed([a],2);a=HJ(this);this.C.Ja=a;if(this.I.isMuted()){a=this.i;var b=this.I.isMuted();UH(a)||WH(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.S){a=null!==this.C.i.getVideoData(1)?this.C.i.getVideoData(1).clientPlaybackNonce:"";b=pqa(this);for(var c=this.B,d=oqa(this),e=g.r(this.S.listeners),
f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.D,q=l.getVideoUrl();p&&n.push(new EI(p));q&&n.push(new FI(q));(q=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new HI(q)),(q=q.elementId)&&n.push(new PI(q))):S("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new II(p));l.i.adNextParams&&n.push(new vI(l.i.adNextParams||""));(p=l.Aa)&&n.push(new wI(p));(p=aA(f.S.get(),2))?(n.push(new AI({channelId:p.Si,
channelThumbnailUrl:p.Qh,channelTitle:p.author,videoTitle:p.title})),n.push(new BI(p.isListed))):S("Expected meaningful PlaybackData on ad started.");n.push(new DI(l.B));n.push(new XI(l.u));n.push(new GI(a));n.push(new TI({current:this}));p=l.Sa;null!=p.kind&&n.push(new CI(p));(p=l.La)&&n.push(new jJ(p));void 0!==m&&n.push(new kJ(m));f.i?S(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):qqa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.K.To=
this;this.I.Oa("onAdStart",HJ(this));a=g.r(this.B.i.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.YO=function(a){"bltcompletion"==a.getId()&&(this.I.Ve("bltplayback",2),XH(this.i,this.getDuration()),GJ(this,"adended"),S1(this.K,this))};
g.k.rh=function(){fI.prototype.rh.call(this);this.ld("adended");for(var a=g.r(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.vg=function(){fI.prototype.vg.call(this);this.ld("adabandoned")};
g.k.GA=function(){var a=this.i;TH(a)||$H(a,"clickthrough")};
g.k.Dw=function(){this.Kp()};
g.k.Kp=function(){fI.prototype.Kp.call(this);this.ld("adended")};
g.k.Yg=function(a){fI.prototype.Yg.call(this,a);this.ld("aderror")};
g.k.ld=function(a){this.D.stop();uH(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");GJ(this,a);S1(this.K,this);this.I.Oa("onAdEnd",HJ(this));this.ea(a)};
g.k.nk=function(){var a=this.I.V();g.mF(a)&&(g.yF(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.mF(a))?this.I.Oa("onAdInfoChange",null):fI.prototype.nk.call(this)};
g.k.gm=function(){this.MF()};
g.k.MF=function(){this.DS&&this.I.playVideo()};
g.k.DS=function(){return 2==this.I.getPlayerState(2)};
g.k.nf=function(){};
g.k.NJ=function(a,b){if(this.B.Z)return Mpa(this),this.ld("aderror"),"";if(!Number.isFinite(a))return g.Ty(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Ty(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=upa(this.B);d=this.I.xr(d,2,c,a,b);a+c>b&&this.I.At(d,b-a);return d};
g.k.dispose=function(){lpa(this.I)&&!this.Z&&this.I.stopVideo(2);GJ(this,"adabandoned");S1(this.K,this);fI.prototype.dispose.call(this)};IJ.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={Yu:null,rL:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(c<b.rL))if(b.rL=c,b.Yu){if(c<b.Yu.end){a:{c=b.Yu;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.Yu.end=a,this.u.hM(a))}}else if(a=
vqa(a,this.B))c=a.vS,b.Yu=a.kR,this.u.kF(c)};
IJ.prototype.updateTime=function(){};LJ.prototype.Zf=function(a){var b=this.i;g.Ug(function(){return b.Zf(a,1)})};OJ.prototype.Ou=function(a,b,c,d,e){var f=this;Dqa(this,a,b,d,e,function(){Eqa(f);f.B=!b&&0===c})};
OJ.prototype.reset=function(){return new OJ(this.I)};var S2={},T2=(S2.BUFFERING="buffering-mode",S2.CUED="cued-mode",S2.ENDED="ended-mode",S2.PAUSED="paused-mode",S2.PLAYING="playing-mode",S2.SEEKING="seeking-mode",S2.UNSTARTED="unstarted-mode",S2);var sNa,U2,Kqa;
sNa={uY:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",BY:"AUTHENTICATION_MALFORMED",CY:"AUTHENTICATION_MISSING",HY:"BAD_REQUEST",TY:"CAST_SESSION_DEVICE_MISMATCHED",UY:"CAST_SESSION_VIDEO_MISMATCHED",VY:"CAST_TOKEN_EXPIRED",WY:"CAST_TOKEN_FAILED",XY:"CAST_TOKEN_MALFORMED",YY:"CGI_PARAMS_MALFORMED",ZY:"CGI_PARAMS_MISSING",T0:"DEVICE_FALLBACK",w1:"GENERIC_WITH_LINK_AND_CPN",x1:"ERROR_HDCP",y1:"LICENSE",A1:"VIDEO_UNAVAILABLE",L1:"FORMAT_UNAVAILABLE",Z1:"GEO_FAILURE",s2:"HTML5_AUDIO_RENDERER_ERROR",
t2:"GENERIC_WITHOUT_LINK",u2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",v2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",w2:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",H2:"INVALID_DRM_MESSAGE",S7:"PURCHASE_NOT_FOUND",T7:"PURCHASE_REFUNDED",c8:"RENTAL_EXPIRED",k8:"RETRYABLE_ERROR",y8:"SERVER_ERROR",o9:"STOPPED_BY_ANOTHER_PLAYBACK",s9:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",t9:"STREAMING_NOT_ALLOWED",u9:"STREAM_LICENSE_NOT_FOUND",G9:"TOO_MANY_REQUESTS",H9:"TOO_MANY_REQUESTS_WITH_LINK",I9:"TOO_MANY_STREAMS_PER_ENTITLEMENT",
J9:"TOO_MANY_STREAMS_PER_USER",i$:"UNSUPPORTED_DEVICE",u$:"VIDEO_FORBIDDEN",x$:"VIDEO_NOT_FOUND"};U2={};
g.CN=(U2.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.",U2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",U2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",U2.LICENSE="Sorry, there was an error licensing this video.",U2.VIDEO_UNAVAILABLE=
"Video unavailable",U2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",U2.GEO_FAILURE="This video isn't available in your country.",U2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",U2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",U2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",U2.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",
U2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",U2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",U2.PURCHASE_NOT_FOUND="This video requires payment.",U2.PURCHASE_REFUNDED="This video's purchase has been refunded.",U2.RENTAL_EXPIRED="This video's rental has expired.",U2.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",U2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
U2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",U2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",U2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",U2.SERVER_ERROR="There was an internal server error. Please try again later.",U2.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",U2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
U2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",U2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",U2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",U2.TOO_MANY_REQUESTS="Please log in to watch this video.",U2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",U2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
U2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",U2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",U2.VIDEO_FORBIDDEN="Access to this video is forbidden.",U2.VIDEO_NOT_FOUND="This video can not be found.",U2);
Kqa={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.w(QJ,g.I);g.k=QJ.prototype;g.k.Hx=function(){return this.u};
g.k.vr=function(a){var b="";a&&(Nqa(this,a),b=a.i);if(!this.Cf()||b)b&&this.Cf()!==b&&this.Kx(b),tNa||a&&a.u||this.load(),this.J||(this.addEventListener("volumechange",this.sJ),this.J=!0)};
g.k.Ep=function(){var a=this.Le();a=window.MediaSource?new RD(new window.MediaSource,void 0,!1):window.WebKitMediaSource?new RD(new window.WebKitMediaSource,void 0,!1):new RD(void 0,a,!1);this.vr(a.jw);return a};
g.k.playVideo=function(){var a=this;this.Ik()&&this.seekTo(0);!this.Cf()&&this.u&&(g.zs(Error("playVideo without src")),this.Kx(this.u.i),this.u.u||this.load());var b=this.play();!b&&uNa&&ON&&7<=(pH||0)&&g.Fu(this,"playing",function(){g.pt(function(){Mqa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.uh()&&(vNa&&ON&&4>pH&&(a=Math.max(.1,a)),this.MA(a))};
g.k.stopVideo=function(){this.Cf()&&(wNa&&$t&&0<this.getCurrentTime()&&this.seekTo(0),this.EA(),this.load(),Nqa(this,null))};
g.k.Xr=function(){var a=this.Sf();return 0<ID(a)&&this.getDuration()?HD(a,this.getCurrentTime()):0};
g.k.Cp=function(){var a=this.getDuration();return Infinity===a?1:a?this.Xr()/a:0};
g.k.Ib=function(){try{var a=this.dr();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:ED(this.Gp(),",",3),vbu:ED(this.Sf()),vpa:""+ +this.Im(),vsk:""+ +this.Xt(),ven:""+ +this.Ik(),vpr:""+this.getPlaybackRate(),vrs:""+this.uh(),vns:""+this.Xy(),vec:""+this.aj(),vemsg:this.pe(),vvol:""+this.getVolume(),vdom:""+ +this.iE(),vsrc:""+ +!!this.Cf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.B.Qa(a,b,!1,this);this.kD(a)};
g.k.removeEventListener=function(a,b){this.B.jc(a,b,!1,this)};
g.k.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.k.iD=function(){this.D=!1};
g.k.gD=function(){this.D=!0;this.Xs(!0)};
g.k.sJ=function(){this.D&&!this.Wy()&&this.Xs(!0)};
g.k.xa=function(){this.J&&this.removeEventListener("volumechange",this.sJ);g.I.prototype.xa.call(this)};
var tNa=!1,wNa=!0,uNa=!0,vNa=!0;g.k=g.UJ.prototype;g.k.getData=function(){return this.stateData};
g.k.Ac=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)};
g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.k.isError=function(){return g.T(this,128)};
g.k.isSuspended=function(){return g.T(this,512)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};g.w(dK,g.R);g.k=dK.prototype;g.k.Np=function(){var a=this.i;return a.u instanceof DH||a.u instanceof KH||a.u instanceof EH};
g.k.HB=function(){return this.i.u.Po()};
g.k.lH=function(){return this.i.i};
g.k.IB=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.mH=function(){return LH(this.i)};
g.k.rK=function(a){if(!sA(a)){this.Z&&(this.Aa=this.I.isAtLiveHead(),this.ya=Math.ceil(g.Qa()/1E3));var b=new LJ(this.Pf);a=xqa(a);b.Zf(a)}this.nH()};
g.k.dL=function(){return!0};
g.k.Jk=function(){return this.K instanceof KH};
g.k.cw=function(){return this.K instanceof DH};
g.k.nH=function(){var a=this.Pf;this.dL()&&(a.u&&gK(a,!1),a.u=this,this.Np()&&tsa(a));if(!this.i.D.hasOwnProperty("ad_placement_start")){a=g.r(this.i.ma);for(var b=a.next();!b.done;b=a.next())Rqa(b.value);this.i.D.ad_placement_start=!0}Hqa(this.C);this.TM()};
g.k.TM=function(){this.K?this.Yt(this.K):hK(this)};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.Ei(0);hK(this,a,b)};
g.k.UL=function(){this.onAdEnd()};
g.k.lT=function(){WH(this.u.i,"active_view_measurable")};
g.k.mT=function(){var a=this.u.i;TH(a)||Kpa(a)||WH(a,"active_view_fully_viewable_audible_half_duration")};
g.k.pT=function(){};
g.k.qT=function(){};
g.k.rT=function(){};
g.k.sT=function(){};
g.k.vT=function(){var a=this.u.i;TH(a)||Kpa(a)||WH(a,"active_view_viewable")};
g.k.aK=function(){return this.cw()?[this.Zy()]:[]};
g.k.Lc=function(a){if(null!==this.u){this.ma||(a=new g.cI(a.state,new g.UJ),this.ma=!0);this.u.wH();var b=this.I.V();if(null!==this.u||!this.Jk()||g.mF(b)||!this.I.V().experiments.ob("html5_use_normal_timer_for_survey")){b=a.state;if(g.eI(a,2))this.u.rh();else{var c=a;(this.I.V().experiments.ob("html5_bulleit_handle_gained_playing_state")?c.state.Ac()&&!c.Tn.Ac():c.state.Ac())?(Jqa(this.C),this.u.Dn()):b.isError()?this.u.Yg(b.getData().errorCode):g.eI(a,4)&&(this.Y||this.u.Cn())}if(null!==this.u){if(g.eI(a,
16)&&(b=this.u.i,!(TH(b)||.5>b.i.getCurrentTime(2,!1)&&!b.i.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;if(c.Yv()){var d=b.B.I.V().N("html5_dai_enable_active_view_creating_completed_adblock");uq(c.K,d)}b.ad.J.seek=!0}0>dI(a,4)&&!(0>dI(a,2))&&(b=this.u.i,TH(b)||(UH(b)?$H(b,"resume"):WH(b,"resume")));!this.I.V().experiments.ob("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.eI(a,512)&&!g.bK(a.state)&&PJ(this.C)}}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?Qqa(this):!1};
g.k.resume=function(){this.u&&this.u.MF()};
g.k.Ym=function(){this.u&&this.u.ld("adended")};
g.k.rk=function(){this.Ym()};
g.k.Ei=function(a){this.Pf.Ei(a)};
g.k.ZO=function(a){this.Pf.i.Oa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.u.nf(a)};
g.k.vD=function(){return 1};
g.k.DG=function(a){this.daiEnabled&&this.i.K&&this.i.i.start<=a&&a<fK(this)&&this.I.lp(a,this.i.i.end)};
g.k.Yt=function(a){g.oe(this.u);this.u=a=this.Wo.create(a,OH(Bpa(this.i)),this.i.i.i);a.subscribe("adabandoned",g.Pa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Pa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.lT,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.UL,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.mT,this);a.subscribe("adoverlaymeasurableimpression",this.pT,this);a.subscribe("adoverlayunviewableimpression",
this.qT,this);a.subscribe("adoverlayviewableendofsessionimpression",this.rT,this);a.subscribe("adoverlayviewableimmediateimpression",this.sT,this);a.subscribe("adpause",this.VD,this);a.subscribe("adplay",this.VD,this);a.subscribe("adunstarted",this.VD,this);a.subscribe("onAdUxUpdate",this.ZO,this);a.subscribe("adviewableimpression",this.vT,this);a.ya?a.Yg("ui_unstable"):a.Zq();Fqa(this.C,this.i.i.i,!1,this.vD(),this.isLiveStream())};
g.k.VD=function(a){this.Ei(a)};
g.k.Zy=function(){return this.K};
g.k.isLiveStream=function(){return this.Z};
g.k.reset=function(){return new dK(this.Pf,this.I,this.C.reset(),this.i,this.Hl,this.Ir,this.Wo,this.daiEnabled)};
g.k.xa=function(){g.oe(this.u);this.u=null;g.R.prototype.xa.call(this)};Xqa.prototype.create=function(a){return(a.u instanceof EH?this.B:""===a.J?this.i:this.u)(a)};iK.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.Iy(void 0===c?0:c))?(Sia(this.client,c,g.Cy(a),b),b=!0):b=!1:b=!1;return b};lK.prototype.handleResponse=function(a,b){var c,d,e;b=(null===(d=null===(c=b.Ul.context)||void 0===c?void 0:c.request)||void 0===d?void 0:d.consistencyTokenJars)||[];(a=null===(e=a.responseContext)||void 0===e?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
lK.prototype.replace=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())delete this.i[c.value.encryptedTokenJarContents];dra(this,b)};var V2;mK.getInstance=function(){V2=g.Ga("yt.clientLocationService.instance");V2||(V2=new mK,g.Fa("yt.clientLocationService.instance",V2,void 0));return V2};
mK.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)};
mK.prototype.handleResponse=function(a){var b;a=null===(b=a.responseContext)||void 0===b?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.i=void 0,"TVHTML5"===g.P("INNERTUBE_CLIENT_NAME")?(this.localStorage=era(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Jt("YT_CL",JSON.stringify({Eaa:a}),15552E3,void 0,!0))};
mK.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition)||!g.vs("web_enable_browser_geolocation_api")&&!g.vs("enable_handoff_location_2fa_on_mweb"))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.vs("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})})};
mK.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null===a||void 0===a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null===a||void 0===a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null===a||void 0===a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};oK.prototype.Sy=function(a,b){a={};var c=Mh([]);c&&(a.Authorization=c,c=b=null===b||void 0===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 qs||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in qs&&(a["X-Goog-PageId"]=g.P("DELEGATED_SESSION_ID")));return a};var qK;g.w(pK,oK);pK.prototype.Sy=function(a,b){a=oK.prototype.Sy.call(this,a,b);return Object.assign(Object.assign({},a),this.wq)};var sra=/[&\?]action_proxy=1/,rra=/[&\?]token=([\w-]*)/,tra=/[&\?]video_id=([\w-]*)/,ura=/[&\?]index=([\d-]*)/,vra=/[&\?]m_pos_ms=([\d-]*)/,yra=/[&\?]vvt=([\w-]*)/,mra="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(" "),wra="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(" "),ora={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"},pra={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xra={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};sK.prototype.Cs=function(a){this.player.Ap().tick(a)};
sK.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return uK(this,a,b);var d=1===this.i;d&&this.Cs("a_bid_s");var e=hra();if(null!==e)return d&&this.Cs("a_bid_f"),uK(this,a,b,e);e=ira();d&&hh(e,function(){c.Cs("a_bid_f")});
return e.then(function(f){return uK(c,a,b,f)})};
sK.prototype.reset=function(){this.u=this.i=1};g.w(vK,g.R);g.k=vK.prototype;g.k.lH=function(){return this.i.i};
g.k.IB=function(){return"AD_PLACEMENT_KIND_START"==this.i.i.i};
g.k.mH=function(){return LH(this.i)};
g.k.Np=function(){return!1};
g.k.HB=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.rK=function(a){var b=this;this.B.V().N("html5_pacf_enable_non_dai_live_video_ads")&&S("Fetching logic is still in use while live midroll is on PACF");if(1!==this.i.B&&2!==this.i.B){var c=[];this.IB()||(c=xqa(a));this.i.B=1;hh(this.D.fetch(this.i.J,{Vu:this.i.C||void 0,Ad:this.i.i}).then(function(d){if(!b.isDisposed()){var e=c;b.B.isFullscreen();d=Ara(b,d);var f=b.C;f.u&&d.isEmpty&&NJ("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.i);d.eL||(b.i.B=2,(new LJ(b.u)).Zf(e),d.isEmpty||eja(b.J,d.zl))}},function(){(new LJ(b.u)).Zf(c);
var d=b.C;d.u&&NJ("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.i)}),function(){2!==b.i.B&&(b.i.B=0);
b.IB()&&IK(b.u)})}};
g.k.nH=function(){};
g.k.DG=function(){};var Dra=Object.freeze([iI,lI,KH,nI,DH]);g.w(wK,dK);g.k=wK.prototype;g.k.aK=function(){for(var a=this.B.i,b=g.r(a),c=b.next();!c.done;c=b.next());return a};
g.k.dL=function(){return(0>=this.D?this.B.i:this.B.i.slice(this.D)).some(function(a){return a.rs()})};
g.k.Jk=function(){return this.J instanceof KH||this.J instanceof nI};
g.k.cw=function(){return this.J instanceof DH||this.J instanceof lI};
g.k.TM=function(){this.daiEnabled?sH(this.I)&&Qqa(this):Cra(this)};
g.k.Yt=function(a){var b=Bra(a);this.J&&b&&this.S!==b&&(b?tsa(this.Pf):vsa(this.Pf),this.S=b);this.J=a;this.daiEnabled&&(this.D=this.B.i.findIndex(function(c){return c===a}));
dK.prototype.Yt.call(this,a)};
g.k.rk=function(){this.D=this.B.i.length;this.u&&this.u.ld("adended");hK(this)};
g.k.Ym=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ei(0),a?hK(this,a,b):Cra(this))};
g.k.UL=function(){if(1==this.B.u)hK(this);else this.onAdEnd()};
g.k.Zy=function(){var a=0>=this.D?this.B.i:this.B.i.slice(this.D);return 0<a.length?a[0]:null};
g.k.Np=function(){return this.S};
g.k.HB=function(){return this.B.i.every(function(a){return a.Po()})};
g.k.reset=function(){return new wK(this.Pf,this.I,this.C.reset(),this.i,this.Hl,this.Ir,this.Wo,this.daiEnabled)};
g.k.vD=function(){return this.B.i.length};Era.prototype.XJ=function(){return this.i};g.w(Fra,EH);g.w(Hra,EH);Ira.prototype.create=function(a,b){function c(l){return new DH(l,d.B,b,d.i,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.instreamSurveyAdRenderer,h=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new KH(f):null!=h?new Hra(h,c,this.i):null!=a?new Fra(a,c):null};Jra.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new kja(h.B,h.u,h.daiEnabled,h.C),m=h.me;m&&(l.me=new fA(m.startSecs,m.durationSecs,m.context,m.identifier,m.event,m.i));h.i&&(l.i=h.i);l.visible=h.visible;h=l;h.me=f;e.push(Kra(this,a[0],c,h));c++}}else for(a=g.r(a),d=a.next();!d.done;d=a.next())e.push(Kra(this,d.value,c,b)),c++;return e};g.w(xK,g.I);xK.prototype.addEventListener=function(a,b){this.i=b};
xK.prototype.removeEventListener=function(){this.i=null};
g.w(yK,g.I);yK.prototype.addEventListener=function(a,b,c){this.i.addEventListener(a,b,c)};
yK.prototype.removeEventListener=function(a,b){this.i.removeEventListener(a,b)};g.w(Nra,g.I);var zK=null,Pra=null,AK=null,BK=null,CK=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return zK},void 0);
g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return Pra},void 0);
g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return AK},void 0);
g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return BK},void 0);
g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return CK},void 0);var asa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(FK,g.I);FK.prototype.xa=function(){this.Kd.clear();g.I.prototype.xa.call(this)};
FK.prototype.Hd=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.r(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
FK.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&bsa(this,"loggingUrls",a.loggingUrls,b,c);a=g.r(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.r(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Yra(this,e):"confirmDialogEndpoint"===d?Zra(this,e):asa.hasOwnProperty(d)||bsa(this,d,e,b,c)}};g.w(gsa,g.I);g.w(HK,g.R);g.k=HK.prototype;g.k.XD=function(){return!osa(this,rsa(this))};
g.k.Qy=function(){return this.Ja};
g.k.xa=function(){this.ya=!0;g.my(this.C);this.J&&this.i.getVideoData(1).unsubscribe("cuepointupdated",this.gM,this);if(tH(this.i)){var a=jsa(this.i);a.removeEventListener("updateKevlarOrC3Companion",Ora);a.removeEventListener("onPlaShelfInfoCardsReady",Qra);a.removeEventListener("updateEngagementPanelAction",Rra);a.removeEventListener("changeEngagementPanelVisibility",Sra);a.removeEventListener("scrollToEngagementPanel",Tra);window.removeEventListener("yt-navigate-start",Ura);CK=BK=AK=zK=null}a=
g.r(this.B.values());for(var b=a.next();!b.done;b=a.next())usa(this,b.value);gK(this,!1);this.Xo.clear();this.Y=[];this.S.clear();g.oe(this.ma);this.ma=new Map;g.oe(this.K);this.K=new Map;this.B.clear();g.R.prototype.xa.call(this)};
g.k.YE=function(a){if(a instanceof rA&&!a.B&&(!Cja(a)||a.contains(1E3*this.i.getCurrentTime(1)||0)))if(g.T(this.i.vb(1),32))this.S.add(a);else{var b=this.B.get(a);b&&((this.i.V().experiments.ob("enable_eviction_protection_for_bulleit")?this.u?this.u.HB():1:1)?b.rK(a):a.deactivate())}};
g.k.cU=function(a){a instanceof rA&&(a.B&&(a.B=!1),this.S.delete(a))};
g.k.gM=function(a){Aqa(this.Ka,a);null==this.J?g.zs(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}),JK(this,[this.J],a))};
g.k.kF=function(a){JK(this,[this.J],[a])};
g.k.hM=function(a){var b=1E3*a;this.u&&this.u.DG(b);for(var c=g.r(this.B.values()),d=c.next();!d.done;d=c.next())d.value.DG(b);g.Nb(this.Sa.i,1E3*a)};
g.k.Lk=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.cw()?a.I.Jc().playVideo():a.Jk()&&a.u.Dn());break;case "control_pause":this.u&&(a=this.u,a.cw()?a.I.Jc().pauseVideo():a.Jk()&&a.u.Cn())}};
g.k.bP=function(a){this.u&&this.u.Lc(a)};
g.k.FT=function(a){0>dI(a,16)&&(this.S.forEach(this.YE,this),this.S.clear())};
g.k.fW=function(){if(this.u)this.u.onVideoDataChange()};
g.k.iW=function(){if(sH(this.i)&&this.u){var a=this.i.getCurrentTime(2,!1),b=this.u;b.u&&hI(b.u,a)}};
g.k.jT=function(){this.Ya=!0;if(this.u){var a=this.u;a.u&&a.u.vg()}};
g.k.tT=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.jW=function(){if(2==this.i.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.i;a=a.I.isMuted();UH(b)||WH(b,a?"mute":"unmute")}};
g.k.lU=function(a){if(this.u){var b=this.u.u.i;TH(b)||$H(b,a?"fullscreen":"end_fullscreen")}};
g.k.Zf=function(a,b){this.i.Zf(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Xo.delete(b),this.B.delete(b)};
g.k.CX=function(){for(var a=[],b=g.r(this.Xo),c=b.next();!c.done;c=b.next())c=c.value,sA(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||YX(b,"cuerangemarkersupdated",a)};
g.k.Ei=function(a){this.i.Ei(a);switch(a){case 1:this.oz=1;break;case 0:this.oz=0}};
g.k.fG=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.Z:!1};
g.k.Ym=function(){this.u&&this.u.Np()&&this.u.Ym()};
g.k.rk=function(){this.u&&this.u.Np()&&this.u.rk()};
g.k.Gy=function(){};
g.k.oy=function(){};
g.k.Qb=function(a){if(this.u){var b=this.u;b.u&&hI(b.u,a)}};
g.k.Jk=function(){return sH(this.i)&&!!this.u&&this.u.Jk()};
g.k.executeCommand=function(a,b,c){var d=this.jb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.u,c=f.ad.Yv()?YH(f.i,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.XJ=function(){return this.Da};
g.k.YJ=function(){return this.La};g.w(KK,g.I);KK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.i.appendChild(a.i)};
g.w(LK,KK);g.w(ysa,g.I);var Asa=1;g.w(g.NK,g.I);g.k=g.NK.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ga;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.CF&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.zg(a.G);if(c){if(c=OK(this,e,"class",c))PK(this,e,"class",c),this.Ya[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Ya[f.value]=e;PK(this,e,"class",d.join(" "))}d=a.va;c=a.U;if(d)b=OK(this,e,"child",d),void 0!==b&&e.appendChild(g.Ag(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=OK(this,e,"child",f),null!=f&&e.appendChild(g.Ag(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ob&&(h=MK(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.Cg(e,f,d++))}if(a=a.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],PK(this,b,c,"string"===typeof f?
OK(this,b,c,f):f);return e};
g.k.Fa=function(a){return this.Ya[a]};
g.k.Ea=function(a,b){"number"===typeof b?g.Cg(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Dg(this.element)};
g.k.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Ra(c,a[c])};
g.k.Ra=function(a,b){(a=this.Zb["{{"+a+"}}"])&&PK(this,a[0],a[1],b)};
g.k.xa=function(){this.Ya={};this.Zb={};this.detach();g.I.prototype.xa.call(this)};g.w(g.U,g.NK);g.k=g.U.prototype;g.k.kd=function(a,b){this.Ra(b||"content",a)};
g.k.show=function(){this.Ab||(g.Jl(this.element,"display",""),this.Ab=!0)};
g.k.hide=function(){this.Ab&&(g.Jl(this.element,"display","none"),this.Ab=!1)};
g.k.Yb=function(a){this.Z=a};
g.k.Qa=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.D)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.jc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;Ig(a);a.focus()};
g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.NK.prototype.xa.call(this)};g.w(g.RK,g.U);g.RK.prototype.subscribe=function(a,b,c){return this.Ka.subscribe(a,b,c)};
g.RK.prototype.unsubscribe=function(a,b,c){return this.Ka.unsubscribe(a,b,c)};
g.RK.prototype.cg=function(a){return this.Ka.cg(a)};
g.RK.prototype.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];return this.Ka.ea.apply(this.Ka,[a].concat(g.v(c)))};var xNa=new WeakSet;g.w(SK,g.RK);g.k=SK.prototype;g.k.bind=function(a){if(!this.Sa&&a.renderer){var b=Object.assign({},xsa(this.api,this.Xa),a.macros);this.init(a.id,a.renderer,b,a)}return Promise.resolve()};
g.k.init=function(a,b,c){this.Sa=a;this.element.setAttribute("id",this.Sa);this.kb&&g.N(this.element,this.kb);this.S=b&&b.adRendererCommands;this.macros=c;this.J=b.trackingParams||null;null!=this.J&&this.Rg(this.element,this.J)};
g.k.clear=function(){};
g.k.hide=function(){g.RK.prototype.hide.call(this);null!=this.J&&this.ib(this.element,!1)};
g.k.show=function(){g.RK.prototype.show.call(this);if(!this.jb){this.jb=!0;var a=this.S&&this.S.impressionCommand;a&&Csa(this,a,null)}null!=this.J&&this.ib(this.element,!0)};
g.k.onClick=function(a){if(this.J&&!xNa.has(a)){var b=this.element;this.api.Uv(b)&&this.Ab&&this.api.Gb(b,this.yb);xNa.add(a)}if(a=this.S&&this.S.clickCommand)a=this.aN(a),Csa(this,a,this.bK())};
g.k.aN=function(a){return a};
g.k.bK=function(){return null};
g.k.eP=function(a){var b=this.ma;b.K=!0;b.u=a.touches.length;b.i.isActive()&&(b.i.stop(),b.D=!0);a=a.touches;b.J=zsa(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.S=Infinity,b.Z=Infinity):(b.S=c.clientX,b.Z=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.dP=function(a){var b=this.ma;a=a.changedTouches.item(0);if(vc()&&!(0<=g.nb(wc(),8))||a&&Math.pow(a.clientX-b.S,2)+Math.pow(a.clientY-b.Z,2)>Math.pow(5,2))b.C=!0};
g.k.cP=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&zsa(b,c)&&(b.Y=a,b.i.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.Rg=function(a,b){this.api.Rg(a,this);this.api.xm(a,b)};
g.k.ib=function(a,b){this.api.Uv(a)&&this.api.ib(a,b,this.yb)};
g.k.xa=function(){this.clear(null);this.jc(this.eb);for(var a=g.r(this.ya),b=a.next();!b.done;b=a.next())this.jc(b.value);g.RK.prototype.xa.call(this)};g.w(fL,SK);
fL.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);this.i=b;if(null==b.text&&null==b.icon)Bs(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.N(this.element,a);null!=b.text&&(a=g.uA(b.text),g.ab(a)||(this.element.setAttribute("aria-label",a),this.B=new g.RK({G:"span",L:"ytp-ad-button-text",va:a}),g.J(this,this.B),this.B.Ea(this.element)));null!=b.icon&&(b=eL(b.icon),null!=
b&&(this.u=new g.RK({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.J(this,this.u)),this.C?g.Cg(this.element,this.u.element,0):this.u.Ea(this.element))}};
fL.prototype.clear=function(){this.hide()};
fL.prototype.onClick=function(a){var b=this;SK.prototype.onClick.call(this,a);Tsa(this).forEach(function(c){return b.Xa.executeCommand(c,b.macros)});
this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(gL,g.I);gL.prototype.xa=function(){this.u&&g.xu(this.u);this.i.clear();hL=null;g.I.prototype.xa.call(this)};
gL.prototype.register=function(a,b){b&&this.i.set(a,b)};
var hL=null;g.w(jL,SK);
jL.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.zs(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new fL(this.api,this.Xa,this.layoutId,this.yb),g.J(this,this.button),this.button.init(vH("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.uA(a)),this.button.Ea(this.element),this.D&&!g.Kq(this.button.element,"ytp-ad-clickable")&&g.N(this.button.element,"ytp-ad-clickable"),
a&&(this.u=new g.RK({G:"div",L:"ytp-ad-hover-text-container"}),this.C&&(b=new g.RK({G:"div",L:"ytp-ad-hover-text-callout"}),b.Ea(this.u.element),g.J(this,b)),g.J(this,this.u),this.u.Ea(this.element),b=iL(a),g.Cg(this.u.element,b,0)),this.show())};
jL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();SK.prototype.hide.call(this)};
jL.prototype.show=function(){this.button&&this.button.show();SK.prototype.show.call(this)};g.w(lL,SK);lL.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&kL(a)||"";g.ab(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&Bs(Error("Found AdImage without valid image URL")):(this.i?g.Jl(this.element,"backgroundImage","url("+b+")"):qg(this.element,{src:b}),qg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())};
lL.prototype.clear=function(){this.hide()};g.w(mL,SK);g.k=mL.prototype;g.k.hide=function(){SK.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;SK.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.zs(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.zs(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Xsa(this,b):g.zs(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.my(this.i);this.hide()};
g.k.VE=function(){this.hide()};
g.k.NB=function(){var a=this.u.cancelEndpoint;a&&this.Xa.executeCommand(a,this.macros);this.hide()};
g.k.WE=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Xa.executeCommand(a,this.macros);this.hide()};g.w(nL,SK);g.k=nL.prototype;
g.k.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.zs(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.zs(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.N(this.B,a)}a={};b.defaultText?
(c=g.uA(b.defaultText),g.ab(c)||(a.buttonText=c,this.i.setAttribute("aria-label",c))):g.Zl(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.i.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=eL(b.defaultIcon),this.Ra("untoggledIconTemplateSpec",c),b.toggledIcon?(this.K=!0,c=eL(b.toggledIcon),this.Ra("toggledIconTemplateSpec",c)):(g.Zl(this.D,!0),g.Zl(this.C,!1)),g.Zl(this.i,!1)):g.Zl(this.Y,!1);g.ic(a)||this.update(a);b.isToggled&&
(g.N(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));oL(this);this.T(this.element,"change",this.xH);this.show()}};
g.k.onClick=function(a){0<this.ya.length&&(this.toggleButton(!this.isToggled()),this.xH());SK.prototype.onClick.call(this,a)};
g.k.xH=function(){var a=this;g.O(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());Ysa(this,this.isToggled()).forEach(function(b){return a.Xa.executeCommand(b,a.macros)});
if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);oL(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.O(this.B,"ytp-ad-toggle-button-toggled",a);this.i.checked=a;oL(this)};
g.k.isToggled=function(){return this.i.checked};g.w(pL,jy);pL.prototype.S=function(a){if(Array.isArray(a)){a=g.r(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof tA&&this.C(b)}};g.w(qL,SK);g.k=qL.prototype;g.k.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.zs(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&Bs(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&Bs(Error("AdFeedbackRenderer.title was not set.")),bta(this,b)):g.zs(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Gu(this.D);Gu(this.K);this.C.length=0;this.hide()};
g.k.hide=function(){this.i&&this.i.hide();this.u&&this.u.hide();SK.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.i&&this.i.show();this.u&&this.u.show();this.B=document.activeElement;SK.prototype.show.call(this);this.D.focus()};
g.k.bM=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ea("a");this.hide()};
g.k.eW=function(){this.hide()};
cta.prototype.isChecked=function(){return this.B.checked};g.w(rL,mL);rL.prototype.VE=function(a){mL.prototype.VE.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
rL.prototype.NB=function(a){mL.prototype.NB.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
rL.prototype.WE=function(a){mL.prototype.WE.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ea("b")};g.w(sL,SK);g.k=sL.prototype;
g.k.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);this.D=b;if(null==b.dialogMessage&&null==b.title)g.zs(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&Bs(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&b.closeOverlayRenderer.buttonRenderer||null)this.i=new fL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.J(this,this.i),
this.i.init(vH("button"),a,this.macros),this.i.Ea(this.element);b.title&&(a=g.uA(b.title),this.Ra("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=iL(a[c]);if(!g.ab(d.textContent)){var e=yg("LI");e.appendChild(d);this.Da.appendChild(e)}}else g.Zl(this.Da,!1);b.dialogMessage&&(a=iL(b.dialogMessage,!0),this.La.appendChild(a));b.confirmLabel&&(a=g.uA(b.confirmLabel),this.Ra("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?Bs(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?eta(this,a):c&&fta(this,c),this.B=new fL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.J(this,this.B),this.B.init(vH("button"),b,this.macros),this.B.Qa("click",this.HU,this),this.B.Ea(this.Ua)));
gta(this)}};
g.k.clear=function(){Gu(this.K);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.i&&this.i.hide();this.B&&this.B.hide();SK.prototype.hide.call(this);this.Y&&this.Y.focus()};
g.k.show=function(){this.i&&this.i.show();this.B&&this.B.show();this.Ja||(dta(this),this.Ja=!0);this.Y=document.activeElement;SK.prototype.show.call(this);this.K.focus()};
g.k.yH=function(){this.D&&this.D.confirmServiceEndpoint&&this.Xa.executeCommand(this.D.confirmServiceEndpoint,this.macros);this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ea("d");this.hide()};
g.k.HU=function(){var a=this.u?this.u:this.C;a&&!a.Ab&&(this.hide(),a.show())};g.w(tL,jL);tL.prototype.init=function(a,b,c){jL.prototype.init.call(this,a,b,c);a=b.button&&b.button.buttonRenderer||null;null!=a&&(jta(this,a,c),this.show())};
tL.prototype.hide=function(){this.button&&this.button.hide();this.i&&this.i.hide();jL.prototype.hide.call(this)};
tL.prototype.show=function(){this.button&&this.button.show();jL.prototype.show.call(this)};
tL.prototype.clear=function(){this.hide()};g.w(uL,SK);uL.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);this.i=b;this.isTemplated()||g.Gg(this.element,TK(this.i));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?kL(a):"",c=(c=this.api.getVideoData(1))&&c.Vj,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()};
uL.prototype.isTemplated=function(){return this.i.isTemplated||!1};
uL.prototype.clear=function(){this.hide()};var ota={seekableStart:0,seekableEnd:1,current:0};g.w(wL,SK);wL.prototype.clear=function(){this.dispose()};(function(a,b){function c(f){var h=g.r(f);f=h.next().value;h=ka(h);return a.apply(f,h)}
function d(f){f=g.r(f);f.next();f=ka(f);return b(e,f)}
b=void 0===b?Xga:b;var e=g.Oa(a);return function(f){for(var h=[],l=0;l<arguments.length;++l)h[l-0]=arguments[l];l=this||g.C;var m=GMa.get(l);m||(m={},GMa.set(l,m));return Ac(m,[this].concat(g.v(h)),c,d)}})(function(a){var b=g.zg("DIV");
a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=g.zg("DIV");g.Xl(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;g.Dg(b);return a});g.w(g.zL,g.I);g.k=g.zL.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.hB(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.i&&this.i()):this.element.Ab||(AL(this,!0),this.state=1,a?this.delay.start(a):this.hB()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ab&&(AL(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.hB=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:AL(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.i&&this.i();break;case 4:this.element.hide();AL(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.hB()};
g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.xa.call(this)};g.w(BL,wL);g.k=BL.prototype;
g.k.init=function(a,b,c){wL.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.zs(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ua&&g.N(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.i.Cv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(vH("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Vj&&b.thumbnail?this.D.init(vH("ad-image"),b.thumbnail,c):this.K.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.D.hide();yL(this);wL.prototype.hide.call(this)};
g.k.show=function(){xL(this);this.u.show();this.B.show();this.D.show();wL.prototype.show.call(this)};
g.k.rq=function(){this.hide()};
g.k.jo=function(){if(null!=this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ja&&a>=this.Aa?(this.Y.hide(),this.Ja=!0,this.ea("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.La&&(vL(this.B,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(DL,wL);g.k=DL.prototype;
g.k.init=function(a,b,c){wL.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.ab(g.bg(d[0].url))&&(d[0].url=a.Qh)}else g.Bz(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.K.init(vH("ad-image"),b.image,c);this.D.init(vH("ad-text"),
b.headline,c);this.B.init(vH("ad-text"),b.description,c);this.u.init(vH("button"),b.actionButton.buttonRenderer,c);this.Y=b.actionButton.buttonRenderer.navigationEndpoint;this.api.kE()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.zK.bind(this));this.Aa=b.startMs||0;xL(this)}else g.Ty(Error("FlyoutCtaRenderer has no valid action button."));else g.Ty(Error("FlyoutCtaRenderer has no description AdText."));else g.Ty(Error("FlyoutCtaRenderer has no headline AdText."));else g.Bz(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){wL.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Fg(this.u.element,a.target)&&this.Y&&this.Xa.executeCommand(this.Y,this.macros)};
g.k.jo=function(){if(this.i){var a=this.i.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(yL(this),g.Mq(this.element,"ytp-flyout-cta-inactive"))}};
g.k.rq=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.zK.bind(this))};
g.k.show=function(){this.u&&this.u.show();wL.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();wL.prototype.hide.call(this)};
g.k.zK=function(a){a?this.hide():this.show()};g.w(EL,SK);g.k=EL.prototype;g.k.init=function(a,b,c){var d=this;SK.prototype.init.call(this,a,b,c);this.i=b;this.i.rectangle&&(kta(this,c),this.C.show(100),this.show(),(this.i&&this.i.impressionCommands||[]).forEach(function(e){return d.Xa.executeCommand(e,d.macros)}))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();SK.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();SK.prototype.show.call(this)};
g.k.zH=function(){Oq(this.element,"ytp-ad-instream-user-sentiment-selected");this.i.postMessageAction&&this.api.Oa("onYtShowToast",this.i.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.ya.length&&this.zH();SK.prototype.onClick.call(this,a)};g.w(FL,g.I);g.k=FL.prototype;g.k.xa=function(){this.reset();g.I.prototype.xa.call(this)};
g.k.reset=function(){g.my(this.C);this.J=!1;this.i&&this.i.stop();this.D.stop();this.u&&(this.u=!1,this.K.play())};
g.k.start=function(){this.reset();this.C.T(this.B,"mouseover",this.gP,this);this.C.T(this.B,"mouseout",this.fP,this);this.i?this.i.start():(this.J=this.u=!0,g.Jl(this.B,{opacity:this.Z}))};
g.k.gP=function(){this.u&&(this.u=!1,this.K.play());this.D.stop();this.i&&this.i.stop()};
g.k.fP=function(){this.J?this.D.start():this.i&&this.i.start()};
g.k.TI=function(){this.u||(this.u=!0,this.S.play(),this.J=!0)};g.w(GL,wL);g.k=GL.prototype;
g.k.init=function(a,b,c){wL.prototype.init.call(this,a,b,c);this.K=b;this.Aa=mta(this);if(!b||g.ic(b))g.zs(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.ic(b.message))g.zs(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=eL(a);null==b?g.zs(Error("Icon for SkipButton was unable to be retrieved. yt.innertube.Icon.IconType: "+a.iconType+".")):(this.D=new g.RK({G:"button",Ga:["ytp-ad-skip-button","ytp-button"],U:[{G:"span",
L:"ytp-ad-skip-button-icon",U:[b]}]}),g.J(this,this.D),this.D.Ea(this.B.element),this.u=new uL(this.api,this.Xa,this.layoutId,this.yb,"ytp-ad-skip-button-text"),this.u.init(vH("ad-text"),this.K.message,c),g.J(this,this.u),g.Cg(this.D.element,this.u.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.ya.length)&&c.i&&(VE?0:"ontouchstart"in document.documentElement&&(vl()||ul()))&&(this.jc(this.eb),d&&this.jc(d),this.ya=[this.T(this.element,"touchstart",this.eP,this),this.T(this.element,"touchmove",
this.dP,this),this.T(this.element,"touchend",this.cP,this)])}};
g.k.clear=function(){this.Y.reset();this.hide()};
g.k.hide=function(){this.B.hide();this.u&&this.u.hide();yL(this);wL.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.D&&(a&&g.Cu(a),wL.prototype.onClick.call(this,a),this.ea("j"),this.Ja||!this.Aa))this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.aN=function(a){if(!this.api.V().N("html5_enable_single_video_vod_ivar_on_pacf")||!this.Ja)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&&lta(e.adLifecycleCommand)||e.pingingEndpoint||e.adPingingEndpoint||b.push(e)}return{commandExecutorCommand:{commands:b}}};
g.k.bK=function(){return"skip"};
g.k.show=function(){this.Y.start();this.B.show();this.u&&this.u.show();xL(this);wL.prototype.show.call(this)};
g.k.rq=function(){this.ea("k")};
g.k.jo=function(){};g.w(HL,wL);g.k=HL.prototype;
g.k.init=function(a,b,c){wL.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&b.preskipRenderer.adPreviewRenderer||{};if(a=g.ic(a)?null:a){this.K=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3;var d="countdown_next_to_thumbnail"==g.kE(this.api.V().experiments,"preskip_button_style_ads_backend")&&lF(this.api.V());this.u=new BL(this.api,this.Xa,this.layoutId,this.yb,this.i,d);this.u.init(vH("preskip-component"),a,c);CL(this.u);g.J(this,this.u);this.u.Ea(this.element)}else b.skipOffsetMilliseconds&&
(this.K=b.skipOffsetMilliseconds);b=b&&b.skippableRenderer&&b.skippableRenderer.skipButtonRenderer||{};b=g.ic(b)?null:b;null==b?g.zs(Error("SkipButtonRenderer was not set in player response.")):(this.B=new GL(this.api,this.Xa,this.layoutId,this.yb,this.i,this.Y),this.B.init(vH("skip-button"),b,c),g.J(this,this.B),this.B.Ea(this.element),this.show())};
g.k.show=function(){this.D&&this.B?this.B.show():this.u&&this.u.show();xL(this);wL.prototype.show.call(this)};
g.k.rq=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();yL(this);wL.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();yL(this);wL.prototype.hide.call(this)};
g.k.jo=function(){1E3*this.i.getProgressState().current>=this.K&&nta(this,!0)};g.w(IL,fL);IL.prototype.init=function(a,b,c){fL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.uA(b.text),a=!g.ab(a));a?null==b.navigationEndpoint?Bs(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?Bs(Error("Button style was not a link-style type in renderer,")):this.show():Bs(Error("No visit advertiser text was present in the renderer."))};g.w(JL,SK);JL.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);a=b.text;g.ab(TK(a))?Bs(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.i&&(b=this.api.V(),b=a.text+" "+(b&&b.i?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new uL(this.api,this.Xa,this.layoutId,this.yb),a.init(vH("simple-ad-badge"),b,c),a.Ea(this.element),g.J(this,a)),this.show())};
JL.prototype.clear=function(){this.hide()};g.w(KL,g.R);g.k=KL.prototype;g.k.Cv=function(){return this.durationMs};
g.k.stop=function(){this.i&&this.ze.jc(this.i)};
g.k.Qb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")};
g.k.getProgressState=function(){return this.u};
g.k.Lc=function(a){g.eI(a,2)&&this.ea("g")};g.w(LL,g.R);g.k=LL.prototype;g.k.Cv=function(){return this.durationMs};
g.k.start=function(){this.B||(this.B=!0,this.i.start(),this.C=Date.now())};
g.k.stop=function(){this.B&&(this.B=!1,this.i.stop())};
g.k.Qb=function(){var a=Date.now(),b=a-this.C;this.J?(this.C=a,this.u+=b):this.u+=100;a=!1;this.u>this.durationMs&&(this.u=this.durationMs,this.i.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.u/1E3};this.Xa&&this.Xa.Qb(this.D.current);this.ea("h");a&&this.ea("g")};
g.k.getProgressState=function(){return this.D};g.w(OL,wL);g.k=OL.prototype;g.k.init=function(a,b,c){var d;wL.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){Bs(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new uL(this.api,this.Xa,this.layoutId,this.yb);this.u.init(vH("ad-text"),a,{});this.u.Ea(this.element);g.J(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){yL(this);wL.prototype.hide.call(this)};
g.k.rq=function(){this.hide()};
g.k.jo=function(){if(null!=this.i){var a=this.i.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.i instanceof KL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.i instanceof LL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.ML(a);vL(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}};
g.k.show=function(){xL(this);wL.prototype.show.call(this)};g.w(PL,uL);PL.prototype.onClick=function(a){uL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(UL,g.RK);UL.prototype.Qb=function(){var a=this.u.getProgressState();this.Nc.style.width=100*TL(new QL(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
UL.prototype.onStateChange=function(){g.fF(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.u.subscribe("h",this.Qb,this),this.Qb()):-1!==this.i&&(this.hide(),this.u.cg(this.i),this.i=-1))};g.w(VL,SK);
VL.prototype.init=function(a,b,c,d){SK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new HL(this.api,this.Xa,this.layoutId,this.yb,this.i,this.D),c.Ea(this.C),c.init(vH("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new BL(this.api,this.Xa,this.layoutId,this.yb,this.i,!1),c.Ea(this.C),c.init(vH("ad-preview"),a.adPreviewRenderer,this.macros),CL(c),g.J(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c=
new EL(this.api,this.Xa,this.layoutId,this.yb),c.Ea(this.Y),c.init(vH("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new DL(this.api,this.Xa,this.layoutId,this.yb,this.i),g.J(this,c),c.Ea(this.K),c.init(vH("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 JL(this.api,this.Xa,this.layoutId,
this.yb,!0),g.J(this,c),c.Ea(this.u),c.init(vH("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 OL(this.api,this.Xa,this.layoutId,this.yb,this.i,d),g.J(this,d),d.Ea(this.u),d.init(vH("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new tL(this.api,this.Xa,this.layoutId,
this.yb,this.element),g.J(this,a),a.Ea(this.u),a.init(vH("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=pta(this)&&this.B?this.B:this.u))&&(a=new IL(this.api,this.Xa,this.layoutId,this.yb),g.J(this,a),a.Ea(d),a.init(vH("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!cF(b)&&"3"==b.controlsType&&(b=new UL(this.api,this.i),b.Ea(this.Aa),g.J(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&&
g.N(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
VL.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.fv,void 0);var cM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var W2={},uta=(W2.WEB_UNPLUGGED="^unplugged/",W2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",W2.WEB_UNPLUGGED_OPS="^unplugged/",W2.WEB_UNPLUGGED_PUBLIC="^unplugged/",W2.WEB_CREATOR="^creator/",W2.WEB_KIDS="^kids/",W2.WEB_EXPERIMENTS="^experiments/",W2.WEB_MUSIC="^music/",W2.WEB_REMIX="^music/",W2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",W2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",W2);$L.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?cM:c;var d={context:nK(a.clickTrackingParams,!1,this.C)};var e=this.i(a);if(e){this.u(d,e,b);var f,h;b=g.XL(this.B());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=wta(YL(b),void 0);d={input:f,xq:ZL(f),Ul:d,config:Object.assign({},void 0)};d.config.fp?d.config.fp.identity=c:d.config.fp={identity:c};return d}g.Ty(new g.$v("Error: Failed to create Request from Command.",
a))};
ea.Object.defineProperties($L.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(aM,$L);aM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",xq:ZL("/getDatasyncIdsEndpoint","GET"),Ul:{}}};
aM.prototype.B=function(){return[]};
aM.prototype.i=function(){};
aM.prototype.u=function(){};var yNa={},xta=(yNa.GET_DATASYNC_IDS=aM,yNa);g.w(eM,$L);eM.prototype.B=function(){return QMa};
eM.prototype.i=function(a){return a.subscribeEndpoint};
eM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
ea.Object.defineProperties(eM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(fM,$L);fM.prototype.B=function(){return RMa};
fM.prototype.i=function(a){return a.unsubscribeEndpoint};
fM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
ea.Object.defineProperties(fM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(gM,$L);gM.prototype.B=function(){return NMa};
gM.prototype.i=function(a){return a.feedbackEndpoint};
gM.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
ea.Object.defineProperties(gM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(hM,$L);hM.prototype.B=function(){return OMa};
hM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint};
hM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(iM,$L);iM.prototype.B=function(){return PMa};
iM.prototype.i=function(a){return a.playlistEditEndpoint};
iM.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(jM,$L);jM.prototype.B=function(){return MMa};
jM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint};
jM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};kM.prototype.fetch=function(a,b){var c=this;a=new window.Request(a,b);return Promise.resolve(fetch(a).then(function(d){return c.handleResponse(d)}).catch(function(d){g.Bz(d)}))};
kM.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.Bz(new g.$v("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})}));
return b};var lM;nM.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f,h,l=new XMLHttpRequest;l.onerror=function(){e(d.handleResponse(a,l.status,l.response))};
l.onload=function(){e(d.handleResponse(a,l.status,l.response))};
if(null===c||void 0===c?0:c.Js)l.onreadystatechange=function(q){c.Js(l,q)};
l.open(null!==(f=b.method)&&void 0!==f?f:"GET",a,!0);l.responseType="text";l.withCredentials=!0;if(b.headers)for(var m=g.r(Object.entries(b.headers)),n=m.next();!n.done;n=m.next()){var p=g.r(n.value);n=p.next().value;p=p.next().value;l.setRequestHeader(n,p)}l.send(null!==(h=b.body)&&void 0!==h?h:null)})};
nM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.Bz(new g.$v("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.Bz(new g.$v("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var Eta=[],oM=!1;pM.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new pM,g.Fa("ytglobal.storage_",a,void 0));return a};
pM.prototype.estimate=function(){var a,b;return g.H(this,function d(){var e;return g.B(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f.return(e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?f.return(Hta()):f.return()})})};
g.Fa("ytglobal.storageClass_",pM,void 0);Tv.prototype.Zd=function(a){this.handleError(a)};
Tv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.vs("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.vs("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":Jta(this,b);break;case "TRANSACTION_ENDED":this.B&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({},
b),{hasWindowUnloaded:this.u}),this.i("idbTransactionAborted",a)}};qM.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){var m=a.interpreterSafeScript;h=g.cf("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";bf(h);bf(h);h=(h=Ye())?h.createScript(m):m;h=(new ef(h,df)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=Kf(g.cf("From proto message. b/166824318"),
l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());Lta(this,h,l,a.program,b,c,d)}else g.Bz(Error("Cannot initialize botguard without program"))};
qM.prototype.Yd=function(){return!!this.i};
qM.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null};
qM.prototype.dispose=function(){this.i=null};var sM;g.rM=new qM;sM=0;var Sta=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var X2={},zNa=(X2["api.invalidparam"]=2,X2.auth=150,X2["drm.auth"]=150,X2["heartbeat.net"]=150,X2["heartbeat.servererror"]=150,X2["heartbeat.stop"]=150,X2["html5.unsupportedads"]=5,X2["fmt.noneavailable"]=5,X2["fmt.decode"]=5,X2["fmt.unplayable"]=5,X2["html5.missingapi"]=5,X2["html5.unsupportedlive"]=5,X2["drm.unavailable"]=5,X2);g.w(yM,g.I);g.k=yM.prototype;
g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&hA(c,TMa,UMa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Uj&&!this.Z.has(a)&&(this.Z.add(a),g.Vv("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Bz(Error('Dangerous call to "'+a+'" with ['+b+"]."));
return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&hA(b,TMa,UMa))};
g.k.getBandwidthEstimate=function(){return JE(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.OM(this.app);b&&(a={gpu:(0,g.wW)(),d:a},b.handleError(new g.MD("feedback",!1,a)))};
g.k.getApiInterface=function(){return this.S.slice()};
g.k.getInternalApiInterface=function(){return g.cc(this.u)};
g.k.SQ=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];g.Ga(b).apply(window,e)};
this.J[b]=c}else c=b;this.app.Kl.subscribe(a,c)};
g.k.EW=function(a,b){if("string"===typeof b){var c=this.J[b],d=this.J;b in d&&delete d[b];b=c}this.app.Kl.unsubscribe(a,b)};
g.k.getPlayerState=function(){return xHa(this.app)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.seekTo=function(a,b,c){this.i&&qY(this.app,!0,this.playerType);uY(this.app,a,b,c,this.playerType)};
g.k.seekToChapterWithAnimation=function(a){this.app.seekToChapterWithAnimation(a)};
g.k.startSeekCsiAction=function(){this.app.Ap().B.i=(0,g.Q)()};
g.k.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 h=g.OM(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Tc()&&(l=h.getStreamTimeOffset());uY(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.OM(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.OM(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&uY(this.app,Infinity,a,b,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.getIngestionTime(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.eg.volume};
g.k.setVolume=function(a){bua(this,a)};
g.k.isMuted=function(){return this.app.eg.muted};
g.k.mute=function(){cua(this)};
g.k.unMute=function(){dua(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Of&&SX(this.app).allowImaMonetization,autoplay:VG(SX(this.app)),mutedAutoplay:SX(this.app).mutedAutoplay});return a};
g.k.playVideo=function(){this.i&&qY(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Pd()){var b=kN(this.app.ub());if(!JLa(b)){b.Lk("control_play");return}if(KLa(b))return}3===a?IM(this.app.ub()).Lk("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Pd()){var b=kN(this.app.ub());if(!JLa(b)){b.Lk("control_pause");return}}3===a?IM(this.app.ub()).Lk("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.X.jb&&a.Ta.ea("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.OM(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();if(a.uc){var b=a.u||a.N("web_player_admin_origin_killswitch")?a.ancestorOrigins[0]:window.location.origin;a=["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(b)||a.Zj?YMa:XMa}else a=[1];return a};
g.k.getPlaybackQuality=function(a){return(a=g.OM(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.OM(this.app,this.playerType);return a?(a=g.lm(a.qn(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getAvailableQualityLabels=function(){var a=g.OM(this.app,this.playerType);return a?g.lm(a.qn(),function(b){return b.qualityLabel}):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.setSize=function(){this.app.bb().resize()};
g.k.channelSubscribed=function(){this.Oa("SUBSCRIBE",SX(this.app).Si)};
g.k.channelUnsubscribed=function(){this.Oa("UNSUBSCRIBE",SX(this.app).Si)};
g.k.getStatsForNerds=function(){return this.app.getStatsForNerds()};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.OM(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.OM(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.updateFullerscreenEduButtonVisibility=function(a){var b=OHa(this.app);b&&(b.u=a,b.Pa())};
g.k.updateFullerscreenEduButtonSubtleModeState=function(a){var b=OHa(this.app);b&&(g.O(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.qe(b,g.XN(b.B.fc(),b.element)),b.C=!0))};
g.k.confirmYpcRental=function(){var a=g.OM(this.app,this.playerType);a&&a.Ld("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().Vj=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=OE("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,gna)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.isPictureInPictureAllowed=function(){return SX(this.app).Bu};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.loadModule=function(a){"captions"===a&&(a=g.gN(this.app.ub()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.gN(this.app.ub()))&&a.loaded&&a.yX()};
g.k.loadVideoById=function(a,b,c){a&&(a=this.app.loadVideoByPlayerVars(vM(a,b,c),this.playerType),this.i&&qY(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){this.app.cueVideoByPlayerVars(vM(a,b,c),this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=Zta(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.i&&qY(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=Zta(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.S)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.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();return a.S?"":a.getVideoEmbedCode(SX(this.app).videoId,this.app.bb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return sY(this.app,a,b,c)};
g.k.addUtcCueRange=function(a,b,c){return FHa(this.app,a,b,c)};
g.k.removeCueRange=function(a){return GHa(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.i&&qY(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.i&&qY(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.i&&qY(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.i&&qY(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.MR=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.TM(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ub();return"captions"===a?(a=g.gN(d))&&a.jf(b,c):null};
g.k.getOption=function(a,b,c){var d=g.OM(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().u?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.ub();if("captions"===a)return(b=g.gN(b))&&b.getOptions();if(!a)return a=[],g.gN(b)&&a.push("captions"),a};
g.k.gz=function(a){a=void 0===a?this.playerType:a;var b={};if(a=g.OM(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.u&&a.u.video){b.video_quality=a.u.video.quality;a=a.u.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.k.showVideoInfo=function(){nHa(this.app,!0)};
g.k.hideVideoInfo=function(){nHa(this.app,!1)};
g.k.isVideoInfoVisible=function(){return this.app.isVideoInfoVisible()};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.OM(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.T(a,128)&&5===zNa[b.errorCode])};
g.k.getSphericalProperties=function(){var a=g.KM(this.app.ub());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.KM(this.app.ub());b&&b.setSphericalProperties(a,!0)}};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.destroy=function(){this.app.dispose()};
g.k.sendAbandonmentPing=function(){var a=g.OM(this.app);a&&a.sendAbandonmentPing()};
g.k.downloadVideo=function(a,b){return this.app.downloadVideo(a,b)};
g.k.refreshAllVideos=function(){return this.app.refreshAllVideos()};
g.k.deleteAllVideos=function(){return this.app.deleteAllVideos()};
g.k.deleteVideos=function(a){return this.app.deleteVideos(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a){LHa(this.app,a)};
g.k.setAutonav=function(a){this.setAutonavState(a?2:1)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.setImmersivePreview=function(a){this.app.setImmersivePreview(a)};
g.k.setIsExternalPlaylist=function(a){this.app.setIsExternalPlaylist(a)};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.addInfoCardXml=function(a,b,c){this.app.V().Z.add(a,{jy:b,wx:c})};
g.k.updateLastActiveTime=function(){Ru()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setAccountLinkState=function(a){this.app.setAccountLinkState(a)};
g.k.updateAccountLinkingConfig=function(a){this.app.updateAccountLinkingConfig(a)};
g.k.setUserEngagement=function(a){this.app.V().Hi!==a&&(this.app.V().Hi=a,(a=g.OM(this.app,this.playerType))&&FX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.gN(this.app.ub()).uO(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.gN(this.app.ub());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.gN(this.app.ub());a&&a.cO()};
g.k.setUseFastSizingOnWatch=function(a){this.app.bb().setUseFastSizingOnWatch(a)};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Pd()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.OM(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Hh();if(!c)return null;b=c.levels[b];return b?(a=g.jG(b,a))?{column:a.column,columns:a.columns,height:a.Rz,row:a.row,rows:a.rows,url:a.url,width:a.Sz}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Hh();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Tc();return b.Gx(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Hh();return b?(b=b.levels[a])?{index:a,intervalMs:b.i,maxFrameIndex:b.Wt(),minFrameIndex:b.MB()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Hh();return a?a.levels.length:0};
g.k.BR=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.OM(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Wi};
g.k.setAudioTrack=function(a){3===this.getPresentingPlayerType()&&IM(this.app.ub()).Lk("control_set_audio_track",a);var b=g.OM(this.app,this.playerType);if(b){var c,d,e;if(!b.isDisposed()&&!g.T(b.playerState,128))if(null===(c=b.videoData.C)||void 0===c?0:c.i)b.Wa.setAudioTrack(a);else if(c=null===(d=b.ra)||void 0===d?void 0:d.audioTracks(),b.N("html5_native_audio_track_switching")&&(null===(e=b.videoData.u)||void 0===e?0:tD(e))&&c&&1<c.length){a:{for(d=0;d<c.length;++d)if(e=c[d],e.label===a.Bc.getName()){if(e.enabled){c=
!1;break a}c=e.enabled=!0;break a}c=void 0}c&&b.Ba("hlsaudio",a.id)}else{a:if(c=b.videoData,c.K&&!tD(c.K)||a==c.Uj||!c.Fb||0>=c.Fb.length)c=!1;else{d=g.r(c.Fb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof KF)){c=!1;break a}var f=a.Bc.getId();e.B&&(ona(e.B,f),e.u=null)}c.Uj=a;c=!0}c&&wX(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Ba("hlsaudio",a.id))}}};
g.k.CR=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.OM(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.OM(this.app,this.playerType);return a&&a.getVideoData().u?kB(a.De?eEa(a.Wf,a.De,a.Wr()):oG):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.OM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.gN(this.app.ub());return a?a.OR():null};
g.k.resetSubtitlesUserSettings=function(){g.gN(this.app.ub()).KW()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.bb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Ie();return this.app.getVisibilityState(this.qf(),this.isFullscreen()||cF(this.app.V()),a,this.isInline(),this.app.us(),this.app.qs())};
g.k.isMutedByMutedAutoplay=function(){return this.app.mw};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.Wf(a,b))};
g.k.Tc=function(){var a=g.OM(this.app,void 0);return a?a.Tc():0};
g.k.Ie=function(){return this.app.Ie()};
g.k.qf=function(){var a=g.OM(this.app,this.playerType);return!!a&&a.qf()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.N("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.TM(b).videoId||(a.index=b.index)):eY(this.app,{list:a.list,index:a.index,playlist_length:d.length});VM(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.OM(this.app,this.playerType||1);c&&g.sG(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){kF(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.setCardsVisible=function(a,b,c){var d=g.nN(this.app.ub());d&&d.Ah()&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.bb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.OM(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.setPlaybackQualityRange=function(a,b){var c=g.OM(this.app,this.playerType);c&&(a=hB(a,b||a,!0,"m"),rza(c,a,!0))};
g.k.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.V().B&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Kl.ea.apply(this.app.Kl,[a].concat(g.v(c)));this.app.mm.ea.apply(this.app.mm,[a].concat(g.v(c)))};
g.k.Oa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.app.Kl.ea.apply(this.app.Kl,[a].concat(g.v(c)));this.app.mm.ea.apply(this.app.mm,[a].concat(g.v(c)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.logImaAdEvent=function(a,b){if(this.app.V().Of&&SX(this.app).allowImaMonetization){var c=this.app.V().loaderUrl.match(ci);g.Vv("embedsAdEvent",{adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:ai(c[1],c[2],c[3],c[4]),eventType:a})}};
g.k.N=function(a){return this.app.V().N(a)};
g.k.oa=function(){};
g.k.xa=function(){if(this.element){var a=this.element,b;for(b in this.u)this.u.hasOwnProperty(b)&&(a[b]=null);this.element=null}this.C={};this.J={};g.I.prototype.xa.call(this)};g.w(EM,yM);g.k=EM.prototype;g.k.addCueRange=function(a,b,c,d,e){return sY(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return xHa(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){uY(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){uY(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.gz=function(a){a=void 0===a?this.playerType:a;var b=yM.prototype.gz.call(this,a)||{};if(a=g.OM(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.isWindowedLive=a.Zi;b.isManifestless=DG(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;b.itct=a.Ya;var c;var d=a.hasProgressBarBoundaries()&&(null===(c=a.progressBarStartPosition)||void 0===c?0:c.utcTimeMillis)?
dg(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null===(e=a.progressBarEndPosition)||void 0===e?0:e.utcTimeMillis)?dg(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.LX;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=bpa(a);b.paidContentOverlayDurationMs=HG(a);null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.i&&mB(a.i)&&(b.usingLocalMedia=
"true")}return b};
g.k.getCurrentTime=function(a,b){var c;return 2===this.app.getAppState()&&5===this.getPlayerState()?(null===(c=this.app.getVideoData())||void 0===c?void 0:c.startSeconds)||0:a?this.app.getCurrentTime(a,b):yM.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){return 3===this.getPresentingPlayerType()?(a=IM(this.app.ub()).getProgressState(),(null===a||void 0===a?void 0:a.duration)||0):a?this.app.getDuration(a,b):yM.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return IM(this.app.ub()).getProgressState();var b=this.app.getVideoData(),c=(g.OM(this.app,a)||g.OM(this.app)).getPlayerType(),d;a:{var e=this.app.getVideoData();if(null===(d=e.progressBarStartPosition)||void 0===d?0:d.utcTimeMillis)if(d=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(d)){d=gua(this,d,a);break a}d=0}var f;a:{e=this.app.getVideoData();if(null===(f=e.progressBarEndPosition)||void 0===f?0:f.utcTimeMillis)if(f=
Number(e.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(f)){f=gua(this,f,a);break a}f=0}e=this.getCurrentTime(a);a=this.getDuration(a);var h=this.app.getIngestionTime(c),l=this.app.isAtLiveHead(c),m=this.app.Xr(),n=this.app.getMinSeekableTime(c);var p=this.app;(c=g.OM(p,c))?(c=cY(p,c),c=mY(p,zS(c),c)):c=0;return{airingStart:d,airingEnd:f,allowSeeking:this.app.sf(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:e,displayedStart:-1,duration:a,ingestionTime:h,isAtLiveHead:l,loaded:m,seekableStart:n,
seekableEnd:c}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.CM(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.CM(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.CM(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.CM(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.bb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.fy();this.app.Ii(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.Bz(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.zF(b))return this.isFullscreen()?hy(window.document.documentElement):ey(window.document.documentElement).catch(a)}else if(g.fy()||b.D)return this.isFullscreen()?hy(gy()):"3"!==b.controlsType&&g.fy()?ey(this.app.bb().element).catch(a):(b=this.app.jd().Le())?ey(b).catch(a):Promise.reject(Error("Media element missing"));this.Oa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=kN(this.app.ub());a&&a.created&&a.destroy();(a=g.OM(this.app))&&a.stopVideo();(a=this.app.ub().Cd.get("endscreen"))&&a.wS()&&g.HM(this.app.Ta,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.N("disable_new_pause_state3")&&uF(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():yM.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.OM(this.app,this.playerType).Ib(!0)};
g.k.toggleSubtitles=function(){var a=g.gN(this.app.ub());a&&a.pX()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.KM(this.app.ub());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.KM(this.app.ub());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){bua(this,a,b)};
g.k.mute=function(a){cua(this,a)};
g.k.unMute=function(a){dua(this,a)};
g.k.mutedAutoplay=function(){this.N("embeds_enable_muted_autoplay")&&this.app.mutedAutoplay()};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.nN(this.app.ub());b&&!b.loaded&&b.load()}yM.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.nN(this.app.ub());b&&b.loaded&&b.unload()}yM.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.ub();switch(a){case "ad":return(a=kN(d))&&a.jf&&a.jf(b,c);case "kids":return(a=lN(d))&&a.jf(b,c);case "remote":return(a=IM(d))&&a.jf(b,c);case "unplugged":return(a=mN(d))&&a.jf(b,c);case "annotations_module":return(a=g.nN(d))&&a.jf(b,c);case "creatorendscreen":return(a=oN(d))&&a.jf(b,c)}return yM.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.ub();switch(a){case "ad":return(b=kN(b))&&b.getOptions&&b.getOptions();case "remote":return(b=IM(b))&&b.getOptions();case "annotations_module":return(b=g.nN(b))&&b.getOptions();case "creatorendscreen":return(b=oN(b))&&b.getOptions();case "unplugged":return(b=mN(b))&&b.getOptions();case "kids":return(b=lN(b))&&b.getOptions()}if(!a){a=yM.prototype.getOptions.call(this);if(!a)return a;kN(b)&&a.push("ad");IM(b)&&a.push("remote");g.nN(b)&&a.push("annotations_module");
oN(b)&&a.push("creatorendscreen");mN(b)&&a.push("unplugged");lN(b)&&a.push("kids");return a}return yM.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.bb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.CM(this);a&&a.Xk()};
g.k.setCenterCrop=function(a){this.app.bb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var eua="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(" "),
fua="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_fast_sizing_on_watch_default use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");g.w(g.FM,EM);g.k=g.FM.prototype;g.k.Nj=function(a,b,c,d,e,f){return this.app.Nj(a,b,c,d,e,f)};
g.k.yv=function(){return this.app.yv()};
g.k.zp=ba(2);g.k.ub=function(){return this.app.ub()};
g.k.Xd=function(){var a=this.ub().Cd.get("endscreen");return!!a&&a.Xd()};
g.k.getRootNode=function(){return this.bb().element};
g.k.V=function(){return this.app.V()};
g.k.Iv=ba(4);g.k.Ml=function(a){return this.app.Ml(a)};
g.k.An=function(){return this.settingsMenu};
g.k.vb=function(a){return this.app.vb(a)};
g.k.bb=function(){return this.app.bb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.OM(this.app,a);if(!b)return null;b=b.getVideoData();var c;b.enableServerStitchedDai&&2===a?(a=this.app,null===(c=a.Oc)||void 0===c?c=void 0:(b=a.getCurrentTime(),c=NS(c,1E3*b),c=null===c||void 0===c?void 0:c.videoData),c=c||a.getVideoData()):c=b;return c};
g.k.Hh=function(a){return this.app.Hh(a)};
g.k.isWidescreen=function(){return this.app.isWidescreen()};
g.k.isHdr=function(){var a=g.OM(this.app);return a?a.isHdr():!1};
g.k.lE=function(){return this.app.lE()};
g.k.Zs=function(a){this.app.Zs(a)};
g.k.Hf=function(a,b,c,d){this.app.Ke(a,b,c,d)};
g.k.Vk=ba(8);g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){IM(this.app.ub()).Lk("control_play");return}if(2===this.getPresentingPlayerType()){var b=kN(this.app.ub());if(b&&(b.Jk()||KLa(b)))return}}catch(c){g.Ty(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.OM(this.app,a).stopVideo()};
g.k.nm=function(a){g.OM(this.app,a).nm()};
g.k.addEventListener=function(a,b){this.app.mm.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.mm.unsubscribe(a,b)};
g.k.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];EM.prototype.ea.call.apply(EM.prototype.ea,[this,a].concat(g.v(c)))};
g.k.Ei=function(a){this.app.Ei(a)};
g.k.setPlaybackQuality=function(a){this.setPlaybackQualityRange(a,a)};
g.k.qn=function(){var a={},b=g.OM(this.app).qn();b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.Jv=ba(10);g.k.IA=function(a){this.app.IA(a);a&&LHa(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.Kv=ba(12);g.k.zj=ba(16);g.k.Cs=function(a,b){this.ub().Cs(a,b)};
g.k.Ah=function(){var a=g.nN(this.ub());return!!a&&a.Ah()};
g.k.lk=function(){var a=g.nN(this.ub());return!!a&&a.lk()};
g.k.setCardsVisible=function(a,b,c){var d=g.nN(this.ub());d&&d.setCardsVisible(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)};
g.k.Ws=ba(17);g.k.Jq=function(){var a=g.OM(this.app);a&&a.Jq()};
g.k.ax=function(a){this.Oa("onVideoAreaChange");this.Oa(a?"onShowControls":"onHideControls")};
g.k.ij=function(a,b){var c=g.CM(this);if(c)return c.ij(a,b);a=this.app.bb().rg();return new g.Cl(0,0,a.width,a.height)};
g.k.Jp=function(){return this.app.Jp()};
g.k.bw=function(){var a=this.ub().Cd.get("heartbeat");return!!a&&a.bw()};
g.k.sf=function(){var a=this.V();if(a.ya||a.disableSeek)return!1;a=g.OM(this.app);if(!a)return!1;var b=a.getVideoData();return!b.isValid()||g.LG(b)||2===this.getPresentingPlayerType()&&!this.app.Pd()||a.Tl()&&3!==this.getPresentingPlayerType()?!1:!0};
g.k.Xv=function(){var a;return(null===(a=g.OM(this.app))||void 0===a?void 0:a.Xv)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Ao=function(){var a=g.OM(this.app);a&&a.Ao()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.Ed=function(a,b){this.app.Hu(a,b)};
g.k.Zf=function(a,b){this.app.DA(a,b)};
g.k.Ve=function(a,b){var c=this.app,d=g.OM(c,b);d&&(a=d.Bh.Ve(a),b&&c.getPresentingPlayerType()!==b||YX(c,"cuerangesremoved",a))};
g.k.Ld=function(a,b){(b=g.OM(this.app,b))&&b.Ld(a)};
g.k.Tl=function(){var a=g.OM(this.app,void 0);return a?a.Tl():!0};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.Qf(a,0,100);AM(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){AM(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){AM(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.jd=function(){return this.app.jd()};
g.k.Ap=function(){return this.app.Ap()};
g.k.Fh=function(a){return this.app.Fh(a)};
g.k.getBandwidthEstimate=function(){return JE(this.V().schedule)};
g.k.Wb=function(a,b,c,d){this.V().La&&this.app.Jn.Wb(a,b,c,void 0===d?!1:d)};
g.k.Rg=function(a,b,c){this.V().La&&this.app.Jn.Rg(a,b,void 0===c?!1:c)};
g.k.xm=function(a,b){this.V().La&&this.app.Jn.xm(a,b)};
g.k.Gb=function(a,b){this.V().La&&this.app.Jn.click(a,b)};
g.k.ib=function(a,b,c){if(this.V().La){var d=this.app.Jn;d.elements.has(a);b?d.i.add(a):d.i.delete(a);var e=g.Iy(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.Kz(e,[f]):g.Lz(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.Hz(e,f,c),d.B.add(a))}};
g.k.Uv=function(a){return this.V().La?this.app.Jn.Uv(a):!1};
g.k.Jc=function(){return g.OM(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Hj=function(a){this.app.Hj(a)};
g.k.Ru=function(a){this.app.Ru(a)};
g.k.qo=function(a){this.app.getPresentingPlayerType()===a&&this.app.qo(a)};
g.k.Gl=function(a,b){return this.app.Gl(a,b)};
g.k.Uk=function(a){this.app.Uk(a)};
g.k.zE=function(){this.app.zE()};
g.k.xr=function(a,b,c,d,e,f){return this.app.xr(a,b,c,d,e,f)};
g.k.Vv=function(a,b,c,d,e,f){return this.app.Vv(a,b,c,d,e,f)};
g.k.Yn=function(a){this.app.Yn(a)};
g.k.lp=function(a,b){b=void 0===b?Infinity:b;this.app.lp(void 0===a?-1:a,b)};
g.k.At=function(a,b,c){this.app.At(a,b,c)};
g.k.xn=function(){return this.app.xn()};
g.k.Cy=function(a,b,c){this.app.Cy(a,b,void 0===c?0:c)};
g.k.xs=function(){return this.app.xs()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Pd=function(){return this.app.Pd()};
g.k.Mn=function(a,b,c){return this.app.Mn(a,b,c)};
g.k.Ba=function(a,b,c,d){c=void 0===c?!1:c;var e;null===(e=g.OM(this.app,d))||void 0===e?void 0:e.Ba(a,b,c)};
g.k.RA=function(){return this.app.RA()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.QE=function(a,b){this.ea("aduxmouseover",a,b)};
g.k.PE=function(a,b){this.ea("aduxmouseout",a,b)};
g.k.jF=function(a,b){this.ea("muteadaccepted",a,b)};
g.k.kE=function(){return this.app.bb().kE()};
g.k.YF=function(a){this.app.bb().YF(a)};PM.prototype.UE=function(){this.u=(0,g.Q)()};
PM.prototype.reset=function(){this.i=this.u=NaN};
PM.prototype.aF=function(a,b){a&&!isNaN(this.i)&&(Math.random()<this.B&&(b=b?"pbp":"pbs",TA("seek",this.i),g.UA("cpn",a,"seek"),isNaN(this.u)||VA("pl_ss",this.u,"seek"),VA(b,(0,g.Q)(),"seek")),this.reset())};QM.prototype.reset=function(){QA(this.timerName)};
QM.prototype.tick=function(a,b){VA(a,b,this.timerName)};
QM.prototype.info=function(a,b){g.UA(a,b,this.timerName)};g.w(RM,g.R);g.k=RM.prototype;g.k.hasNext=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Ck=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;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.B++}this.ea("shuffle")};
g.k.He=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.S||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return tF(this.u,this.C[0],a)};
g.k.onReady=function(a){this.i=a;this.loaded&&g.pt(this.i,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Bk=function(){return this.u.getVideoUrl(g.TM(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.i=null;g.pe(this.items);g.R.prototype.xa.call(this)};var rua={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},sua={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"},tua={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},qua={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},oua={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"},pua={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};var XM=new Map;g.w(g.ZM,g.R);g.k=g.ZM.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.jf=function(){};
g.k.Ji=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.R.prototype.xa.call(this)};
g.k.Ib=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.bN,g.I);g.k=g.bN.prototype;g.k.Ln=ba(20);g.k.Bs=function(){};
g.k.Bm=function(){};
g.k.Hp=function(){return""};
g.k.yF=ba(21);g.k.xa=function(){this.Bm();g.I.prototype.xa.call(this)};g.w(g.cN,g.bN);g.cN.prototype.Ln=ba(19);g.cN.prototype.Bs=function(a){if(this.audioTrack)for(var b=g.r(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.aN(this.u,c.value);a()};
g.cN.prototype.Hp=function(a,b){var c=a.Wd(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.St()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.dG(a));return Js(c,d)};
g.cN.prototype.Bm=function(){this.i&&this.i.abort()};g.ANa=new Map;g.w(g.eN,g.bN);g.eN.prototype.Ln=ba(18);
g.eN.prototype.Bs=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.LK&&(d.asrs=1);c=Js(c,d);this.Bm();this.i=g.xt(c,{format:"RAW",onSuccess:function(e){b.i=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),u="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.aN(b.u,new g.aG({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:x,vss_id:l,is_default:u}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.eN.prototype.Hp=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};a.translationLanguage&&(b.tlang=g.dG(a));return c=Js(c,b)};
g.eN.prototype.Bm=function(){this.i&&this.i.abort()};g.w(fN,g.I);g.k=fN.prototype;g.k.ex=function(){return this.I.getVideoData().ex()};
g.k.cG=function(){return this.I.getVideoData().cG()};
g.k.yJ=function(){var a=this.Cd.get("heartbeat");iN(this,"heartbeat",!1,!0,this.yJ);!a&&this.Cd.has("heartbeat")&&this.I.ea("offlineslatestatechange")};
g.k.bD=function(){iN(this,"annotations_module",!0,void 0,this.bD);var a=this.Cd.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.xJ=function(){if(!this.Cd.get("ad"))try{hN(this)?iN(this,"ad",!1,!0,this.xJ):this.I.Ld("ad")}catch(a){this.I.Ld("ad"),g.Ty(a)}};
g.k.Ap=function(){return this.i};
g.k.MD=function(){var a={},b=g.gN(this);b&&Object.assign(a,b.MD());return a};
g.k.Cs=function(a,b){Object.assign(this.i,a||null);Object.assign(this.Uu,b||null)};
g.k.xa=function(){g.I.prototype.xa.call(this);jN(this,1,!0);for(var a=g.r(Object.entries(Pua)),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&XM.delete(b)}this.C.clear()};
var Y2={},Pua=(Y2.ad="ad.js",Y2.annotations_module="annotations_module.js",Y2.attribution="attribution.js",Y2.creatorendscreen="annotations_module.js",Y2.embed="embed.js",Y2.endscreen="endscreen.js",Y2.heartbeat="heartbeat.js",Y2.inline_preview="inline_preview.js",Y2.kids="kids.js",Y2.remote="remote.js",Y2.miniplayer="miniplayer.js",Y2.music="music.js",Y2.captions="captions.js",Y2.unplugged="unplugged.js",Y2.ux="ux.js",Y2.webgl="webgl.js",Y2.ypc="ypc.js",Y2.ypc_clickwrap="ypc_clickwrap.js",Y2.yto=
"yto.js",Y2);g.w(pN,g.re);pN.prototype.preventDefault=function(){g.re.prototype.preventDefault.call(this);this.i&&this.i.preventDefault()};
pN.prototype.stopPropagation=function(){g.re.prototype.stopPropagation.call(this);this.i&&this.i.stopPropagation()};g.w(g.qN,QJ);g.k=g.qN.prototype;g.k.Qo=function(){return!0};
g.k.isView=function(){return!1};
g.k.JF=function(){return!1};
g.k.Le=function(){return this.i};
g.k.Cf=function(){return this.i.src};
g.k.Kx=function(a){this.oa();var b=this.getPlaybackRate();this.i.src=a;this.setPlaybackRate(b)};
g.k.EA=function(){this.oa();this.i.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.i.playbackRate?this.i.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.oa();this.getPlaybackRate()!==a&&(this.i.playbackRate=a);return a};
g.k.Dp=function(){return this.i.loop};
g.k.setLoop=function(a){this.oa();this.i.loop=a};
g.k.canPlayType=function(a,b){return this.i.canPlayType(a,b)};
g.k.Im=function(){return this.i.paused};
g.k.Xt=function(){return this.i.seeking};
g.k.Ik=function(){return this.i.ended};
g.k.Wy=function(){return this.i.muted};
g.k.Xs=function(a){CD();this.oa();this.i.muted=a};
g.k.Gp=function(){return this.i.played||DD([],[])};
g.k.Sf=function(){try{var a=this.i.buffered}catch(b){}return a||DD([],[])};
g.k.Mv=function(){return this.i.seekable||DD([],[])};
g.k.Ix=function(){var a=this.i;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.i.currentTime};
g.k.MA=function(a){this.oa();this.i.currentTime=a};
g.k.getDuration=function(){return this.i.duration};
g.k.load=function(){this.oa();var a=this.i.playbackRate;try{this.i.load()}catch(b){}this.i.playbackRate=a};
g.k.pause=function(){this.oa();this.i.pause()};
g.k.play=function(){this.oa();var a=this.i.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.uh=function(){return this.i.readyState};
g.k.Xy=function(){return this.i.networkState};
g.k.aj=function(){return this.i.error?this.i.error.code:null};
g.k.pe=function(){return this.i.error?this.i.error.message:""};
g.k.Jx=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.k.qf=function(){return!!this.i.webkitCurrentPlaybackTargetIsWireless};
g.k.Ao=function(){return!!this.i.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.i,b=window.document;AD()?this.i!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():BD()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.zn=function(){var a=this.i;return new g.Uf(a.offsetLeft,a.offsetTop)};
g.k.dr=function(){return g.Yl(this.i)};
g.k.setSize=function(a){g.Xl(this.i,a)};
g.k.getVolume=function(){return this.i.volume};
g.k.setVolume=function(a){CD();this.oa();this.i.volume=a};
g.k.kD=function(a){this.C[a]||(this.i.addEventListener(a,this.listener),this.C[a]=this.listener)};
g.k.setAttribute=function(a,b){this.i.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.i.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.i.hasAttribute(a)};
g.k.Iu=ba(23);g.k.mx=ba(25);g.k.nx=ba(27);g.k.Cr=ba(29);g.k.tv=function(){return hy(this.i)};
g.k.Lm=function(a){g.N(this.i,a)};
g.k.getStyle=function(a){return g.Ml(this.i,a)};
g.k.iE=function(){return g.Fg(document.body,this.i)};
g.k.audioTracks=function(){var a=this.i;if("audioTracks"in a)return a.audioTracks};
g.k.xa=function(){for(var a=g.r(Object.keys(this.C)),b=a.next();!b.done;b=a.next())b=b.value,this.i.removeEventListener(b,this.C[b]);QJ.prototype.xa.call(this)};
g.k.oa=function(){};g.w(sN,g.R);g.k=sN.prototype;g.k.ZS=function(a){a=Bu(a);if(!Vf(a,this.C)){var b=2;this.J&&(b|=8);this.C=a;rN(this,b,!0)}};
g.k.aT=function(){this.J&&rN(this,8,!0);rN(this,2,!1)};
g.k.Tz=function(a){var b=Bu(a);Vf(b,this.C)||(this.C=b,(a=g.yu(a))&&this.iy(a)&&(rN(this,4,!0),this.i.jc(this.B),this.B=this.i.T(this.target,"mouseover",this.LE),this.K=this.i.T(this.target,"mouseout",this.LE)))};
g.k.LE=function(a){a=Au(a);a&&this.iy(a)||(this.C=new g.Uf(NaN,NaN),Qua(this))};
g.k.GS=function(){rN(this,1,!0)};
g.k.ER=function(a){a=g.yu(a);a instanceof Element&&!(0<a.tabIndex)||rN(this,1,!0)};
g.k.IL=function(){this.J=!0;this.i.jc(this.D);this.D=this.i.T(document,"mouseup",this.bT)};
g.k.bT=function(){this.J=!1;rN(this,8,!1);this.i.jc(this.D);this.D=this.i.T(this.target,"mousedown",this.IL)};
g.k.eO=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.i.jc(this.S),this.S=this.i.T(this.target,"touchend",this.qX,void 0,!0),rN(this,1024,!0)};
g.k.qX=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Aa){var d=c;break}}d&&(this.i.jc(this.S),this.S=this.i.T(this.target,"touchstart",this.eO,void 0,!0),rN(this,1024,!1))};
g.k.Xk=function(){rN(this,2,!0)};
g.k.resize=function(){g.Si&&Qua(this)};
g.k.toString=function(){return g.R.prototype.toString.call(this)};g.w(g.tN,g.U);
g.tN.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();if(a.D&&(a.Ua||b.pfpChazalUi))var c=b.pfpChazalUi?[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-dni-large-play-button-bg",W:{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"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];else b.J?(g.O(this.element,"ytp-touch-device",b.i),c=[b.J?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
W:{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"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},U:[{G:"path",L:"ytp-large-play-button-bg",
W:{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"}},{G:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.Ra("largePlayButtonChildren",c);a.D&&(a.Ua||b.pfpChazalUi)&&(a=a.Ua?a.Ua:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",
a))};g.w(uN,g.U);g.k=uN.prototype;g.k.show=function(){var a=this;this.Ab||(this.B.T(this.api,"videodatachange",function(){g.Dq(a.i)}),this.B.T(this.api,"videoplayerreset",function(){g.Dq(a.i)}));
g.U.prototype.show.call(this)};
g.k.hide=function(){this.B&&g.my(this.B);g.U.prototype.hide.call(this)};
g.k.wb=function(){g.Dq(this.i)};
g.k.onStateChange=function(a){var b=this.api.V();b.N("disable_new_pause_state3")&&uF(b)&&(a=a.state.isCued()&&!a.Tn.isCued()||g.JM(this.api)&&g.T(a.state,2),g.Jl(this.element,"transition-delay",a?"2s":""));g.Dq(this.i)};
g.k.pW=function(){g.Dq(this.i)};
g.k.hP=function(){this.u.stop();this.hide();g.Dq(this.i)};
g.k.Pa=function(){var a=this.api.vb();if(3===this.api.getPresentingPlayerType()&&(a.Ac()||g.T(a,4)))var b=!0;else(b=this.api.ub().Cd.get("ypc"))&&b.kA?b=!0:(b=this.api.V(),b=g.T(a,2)&&GM(this.api)&&b.cd?!0:!1);b?(b=!0,this.C.hide()):(this.C.show(),a.isCued()&&2!==this.api.getPresentingPlayerType()?b=!0:(b=!this.api.V().N("disable_new_pause_state3"),b=!(!g.T(a,2)||GM(this.api)||b&&this.api.yv())||g.T(a,1024)?!0:!1));b?(this.u.show(),a=this.api.getVideoData(),this.DX(this.api.getPlaylist(),a)):(this.u.hide(),
g.T(a,1)||this.u.stop())};
g.k.DX=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];b=g.r(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,!(!c||c instanceof pG&&!c.videoId)){var d=this.api.bb().getPlayerSize();var e=g.vF(),f=d.width*e;e*=d.height;if(1280<f||720<e)if(d=c.He("maxresdefault.jpg"))break;if(640<f||480<e)if(d=c.He("maxresdefault.jpg"))break;if(320<f||180<e)if(d=c.He("sddefault.jpg")||c.He("hqdefault.jpg")||c.He("mqdefault.jpg"))break;if(d=c.He("default.jpg"))break}this.D.style.backgroundImage=
d?"url("+d+")":""};g.w(g.AN,g.U);g.AN.prototype.resize=function(){};
g.AN.prototype.u=function(a){var b=this;Vua(this);var c=a.mD,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.J?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.kd(DN(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Bk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.J?this.kd(g.BN(a.errorMessage)):this.kd(DN(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=
g.pi(c,{hl:a})),this.kd(DN(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.jb&&!d.u&&Uua(this,function(e){if(g.vN(e,b.api,!uF(b.api.V()))){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 Tua=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(EN,g.wD);EN.prototype.Nh=function(){Zua(this)};
EN.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.S){var f=Xua(this);c.N("enable_web_media_session_metadata_fix")&&g.gF(c)&&f?(d=Yua(f.thumbnailDetails),f.album&&(e=g.uA(f.album))):d=[{src:b.He("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}Zua(this);Wua(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.JM(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"),
b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
FN(this,"nexttrack",b);FN(this,"previoustrack",c)}};
EN.prototype.xa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.i),b=a.next();!b.done;b=a.next())FN(this,b.value,null);g.wD.prototype.xa.call(this)};g.w(GN,g.U);g.k=GN.prototype;g.k.onClick=function(a){g.vN(a,this.I,!0);this.I.Gb(this.element)};
g.k.onVideoDataChange=function(a,b){$ua(this,b);this.ud&&ava(this,this.ud)};
g.k.Lc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&$ua(this,b);this.i&&ava(this,a.state);this.ud=a.state};
g.k.fd=function(){this.B.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.ib(this.element,!0)};
g.k.Db=function(){this.B.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.ib(this.element,!1)};g.w(HN,g.U);HN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.U.prototype.hide.call(this)};
HN.prototype.onStateChange=function(a){bva(a.state)?this.i.start():this.hide()};
HN.prototype.u=function(){this.message.style.display="block"};g.w(g.IN,g.RK);g.k=g.IN.prototype;g.k.show=function(){var a=this.Uf();g.RK.prototype.show.call(this);this.Da&&(this.K.T(window,"blur",this.Db),this.K.T(document,"click",this.iP));a||this.ea("show",!0)};
g.k.hide=function(){var a=this.Uf();g.RK.prototype.hide.call(this);cva(this);a&&this.ea("show",!1)};
g.k.fd=function(a,b){this.u=a;this.Y.show();b?(this.S||(this.S=this.K.T(this.I,"appresize",this.RI)),this.RI()):this.S&&(this.K.jc(this.S),this.S=void 0)};
g.k.RI=function(){var a=g.CM(this.I);this.u&&a.oq(this.element,this.u)};
g.k.Db=function(){var a=this.Uf();cva(this);this.Y.hide();a&&this.ea("show",!1)};
g.k.iP=function(a){var b=zu(a);b&&(g.Fg(this.element,b)||this.u&&g.Fg(this.u,b)||!g.NL(a))||this.Db()};
g.k.Uf=function(){return this.Ab&&4!==this.Y.state};g.w(KN,g.IN);KN.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(dva(this),this.fd()):(this.i&&this.Gb(),this.Db()))};
KN.prototype.Nh=function(a){this.api.isMutedByMutedAutoplay()&&g.eI(a,2)&&this.Db()};
KN.prototype.onClick=function(){this.api.unMute();this.Gb()};
KN.prototype.Gb=function(){this.clicked||(this.clicked=!0,this.api.Gb(this.element))};g.w(g.MN,g.wD);g.k=g.MN.prototype;g.k.init=function(){var a=this.api.vb();this.Tb(a);this.Cm();this.wb()};
g.k.onVideoDataChange=function(a,b){this.sE!==b.videoId&&(this.sE=b.videoId,a=this.td,a.ya=b&&0<b.bd.length?5E3:3E3,rN(a,512,!0),this.Cm())};
g.k.TU=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.zo=function(){var a=this.api.Ah()&&this.api.lk();return this.vy||a||this.ZD};
g.k.Ri=function(){var a=!this.zo();g.O(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.iy=function(a){try{if(!g.Fg(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Ig(a);)a=a===this.api.getRootNode()?null:g.Eg(a);return!!a};
g.k.xj=function(a){var b=this.api.getRootNode();g.O(b,"ytp-autohide",a);g.O(b,"ytp-autohide-active",!0);this.UI.start(a?250:100);a&&(this.aB=!1,g.Mq(b,"ytp-touch-mode"));this.aD=!a;this.api.ax(!a)};
g.k.RE=function(){var a=this.api.getRootNode();g.O(a,"ytp-autohide-active",!1)};
g.k.xV=function(){this.zG=!0};
g.k.wV=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().D)this.zG=!1,this.AG&&this.jc(this.AG),0===this.pw&&PN(this,a)?(this.nz(),this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().D&&ON&&12>=pH&&this.api.vb().isCued()?LN(this):this.zy.start(),this.AG=this.T(this.api.bb(),"touchmove",this.xV,void 0,!0)):this.zy.stop();!fva(this)||!PN(this,a)||this.api.V().D&&this.api.V().N("embeds_enable_mobile_dtts")||LN(this);var b=this.fB.Uf();
if(UE&&gva(this,a))b&&g.Cu(a);else if(this.td.u||NN(this,zu(a))||this.fB.Uf()||(this.api.vb().isCued(),g.Cu(a)),this.aB=!0,g.N(this.api.getRootNode(),"ytp-touch-mode"),this.td.Xk(),this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().D)if(b=this.api.vb(),!(!this.api.sf()||g.T(b,2)&&GM(this.api)||g.T(b,64))){b=Date.now()-this.oL;this.pw+=1;if(350>=b){this.bv=!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.pw-1);0<d&&d<b?(this.Rs(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.Rs(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Cu(a)}else this.api.V().D&&this.api.V().N("embeds_enable_mobile_dtts")&&ON&&PN(this,a)&&g.Cu(a);this.oL=Date.now();this.tN.start()}};
g.k.sV=function(a){if(!gva(this,a)){if(!fva(this)&&PN(this,a)&&!this.zy.isActive()){if(g.zF(this.api.V())&&this.api.vb().isCued()){var b=void 0===b?{}:b;RA("warm");JA();QA();DA(!1);b.cttAuthInfo&&(EA().cttAuthInfo=b.cttAuthInfo);rs("TIMING_AFT_KEYS",[]);b.Aaa?g.UA("yt_lt","hot"):g.UA("yt_lt","warm");rs("TIMING_ACTION","");rs("TIMING_WAIT",[]);delete g.P("TIMING_INFO",{}).yt_lt;SA("warm",b.startTime);b=["pbs","pbu"];IA("").info.actionType="watch";b&&rs("TIMING_AFT_KEYS",b);rs("TIMING_ACTION","watch");
b=g.P("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.UA(c,b[c]);g.UA("is_nav",1);(c=g.Iy())&&g.UA("csn",c);(c=g.P("PREVIOUS_ACTION",void 0))&&!OA()&&g.UA("pa",c);c=FA();b=g.P("CLIENT_PROTOCOL");var d=g.P("CLIENT_TRANSPORT");b&&g.UA("p",b);d&&g.UA("t",d);g.UA("yt_vis",Zja());if("cold"===c.yt_lt){g.UA("yt_lt","cold");b=Fja();if(d=CA())VA("srt",b.responseStart),1!==c.prerender&&SA("n",d);c=Lja();0<c&&VA("fpt",c);c=Fja();c.isPerformanceNavigationTiming&&g.UA("pnt",1,void 0);VA("nreqs",c.requestStart,
void 0);VA("nress",c.responseStart,void 0);VA("nrese",c.responseEnd,void 0);0<c.redirectEnd-c.redirectStart&&(VA("nrs",c.redirectStart,void 0),VA("nre",c.redirectEnd,void 0));0<c.domainLookupEnd-c.domainLookupStart&&(VA("ndnss",c.domainLookupStart,void 0),VA("ndnse",c.domainLookupEnd,void 0));0<c.connectEnd-c.connectStart&&(VA("ntcps",c.connectStart,void 0),VA("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=CA()&&0<c.connectEnd-c.secureConnectionStart&&(VA("nstcps",c.secureConnectionStart,
void 0),VA("ntcpe",c.connectEnd,void 0));AA&&AA.getEntriesByType&&aka();c=[];if(document.querySelector&&AA&&AA.getEntriesByName)for(var e in u2)u2.hasOwnProperty(e)&&(b=u2[e],$ja(e,b)&&c.push(b));for(e=0;e<c.length;e++)g.UA("rc",c[e])}Vja();e=FA();b=yA();if("cold"===e.yt_lt&&(c=PA(),d=c.gelTicks?c.gelTicks:c.gelTicks={},c=c.gelInfos?c.gelInfos:c.gelInfos={},OA())){for(var f in b)"tick_"+f in d||Nja(f,b[f]);f=Tja();b=GA();d=EA().cttAuthInfo;var h={},l=!1,m;for(m in e)if(!("info_"+m in c)){var n=Sja(m,
e[m]);n&&(Xz(f,n),Xz(h,n),l=!0)}l&&LA().info(h,b,d)}DA(!0);Xja()}LN(this);g.Cu(a)}this.bv&&(this.bv=!1)}};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.Vv("embedsRequestStorageAccessResult",{resolved:!0});sma(!0);mv();window.location.reload()},function(){g.Vv("embedsRequestStorageAccessResult",{resolved:!1});
a.qt()})};
g.k.nz=function(){};
g.k.Cq=function(){};
g.k.Rs=function(){};
g.k.pN=function(){};
g.k.qt=function(){var a=this.api.vb();g.T(a,2)&&GM(this.api)||(g.$J(a)?this.api.pauseVideo():(this.api.zE(),this.api.playVideo(),this.Hr&&document.activeElement===this.Hr.C.element&&this.api.getRootNode().focus()))};
g.k.tV=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!NN(this,zu(a)))if(a=this.api.V(),(this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().D)&&this.bv)this.bv=!1;else if(a.Ya&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.Qv(d)})}catch(d){this.Qv(d)}};
g.k.Qv=function(a){String(a).includes("fullscreen error")?g.Bz(a):g.Ty(a)};
g.k.uV=function(a){hva(this,.3,a.scale);g.Cu(a)};
g.k.vV=function(a){hva(this,.1,a.scale)};
g.k.wb=function(){var a=this.api.bb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.td.resize();g.O(b,"ytp-fullscreen",this.api.isFullscreen());g.O(b,"ytp-large-width-mode",c);g.O(b,"ytp-small-mode",this.uf());g.O(b,"ytp-tiny-mode",this.wz());g.O(b,"ytp-big-mode",this.Qe());this.ye&&this.ye.resize(a)};
g.k.Nh=function(a){this.Tb(a.state);this.Cm()};
g.k.ED=function(){var a=!!this.sE&&!this.api.Xd(),b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(WLa&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=kN(this.api.ub());return a&&b.fG()}return a&&(c.Oj||this.api.isFullscreen()||c.Og)};
g.k.Cm=function(){var a=this.ED();this.Fk!==a&&(this.Fk=a,g.O(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Tb=function(a){var b=a.isCued()||this.api.Tl()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.CG&&this.jc(this.CG),this.CG=this.T(this.api.bb(),"touchstart",this.wV,void 0,b));var c=a.Ac()&&!g.T(a,32)||this.api.bw();rN(this.td,128,!c);c=3===this.api.getPresentingPlayerType();rN(this.td,256,c);c=this.api.getRootNode();if(g.T(a,2))var d=[T2.ENDED];else d=[],g.T(a,8)?d.push(T2.PLAYING):g.T(a,4)&&d.push(T2.PAUSED),g.T(a,1)&&!g.T(a,32)&&d.push(T2.BUFFERING),g.T(a,32)&&
d.push(T2.SEEKING),g.T(a,64)&&d.push(T2.UNSTARTED);g.Mb(this.tC,d)||(g.Nq(c,this.tC),this.tC=d,g.Lq(c,d));d=this.api.V();var e=g.T(a,2);g.O(c,"ytp-hide-controls",("3"===d.controlsType?!e:"1"!==d.controlsType)||b);g.O(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.ZD);g.T(a,128)&&!g.YE(d)?(this.ye||(this.ye=new g.AN(this.api),g.J(this,this.ye),g.MM(this.api,this.ye.element,4)),this.ye.u(a.getData()),this.ye.show()):this.ye&&(this.ye.dispose(),this.ye=null)};
g.k.xk=function(){return this.api.Ah()&&this.api.lk()?(this.api.setCardsVisible(!1,!1),!0):this.api.Xd()?(g.HM(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.ZD=a;this.Ri()};
g.k.Qe=function(){return!1};
g.k.uf=function(){return!this.Qe()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.wz=function(){return this.uf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.ri=function(){return this.aB};
g.k.An=function(){return null};
g.k.ij=function(){var a=this.api.bb().getPlayerSize();return new g.Cl(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.oq=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.bb().ax(a)};
g.k.Xk=function(){};
g.k.oK=function(){return null};g.w(QN,g.R);g.k=QN.prototype;g.k.Cv=function(){return 1E3*this.api.getDuration(this.Mj,!1)};
g.k.stop=function(){this.i&&this.ze.jc(this.i)};
g.k.Qb=function(){var a=this.api.getProgressState(this.Mj);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Mj,!1)};this.ea("h")};
g.k.getProgressState=function(){return this.u};
g.k.Lc=function(a){g.eI(a,2)&&this.ea("g")};g.w(RN,g.U);RN.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.w(g.SN,g.U);g.SN.prototype.show=function(){g.U.prototype.show.call(this);g.Dq(this.i)};
g.SN.prototype.hide=function(){this.u.stop();g.U.prototype.hide.call(this)};
g.SN.prototype.Cq=function(a){a?g.T(this.I.vb(),64)||TN(this,Qsa(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?TN(this,Ssa(),"Stop live playback"):TN(this,Osa(),"Pause"))};g.w(WN,g.U);g.k=WN.prototype;g.k.fd=function(){this.I.V().N("player_new_info_card_format")&&g.Kq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.YE(this.I.V())||(this.u.show(),g.fv("iv-button-shown"))};
g.k.Db=function(){g.fv("iv-button-hidden");this.u.hide()};
g.k.Uf=function(){return this.Ab&&4!==this.u.state};
g.k.xa=function(){this.i&&this.i();g.U.prototype.xa.call(this)};
g.k.rU=function(){g.fv("iv-button-mouseover")};
g.k.onClicked=function(a){this.I.Ah();var b=g.Kq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.fv("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.lk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(YN,g.U);g.k=YN.prototype;g.k.pO=function(){this.I.Ah()&&this.I.lk()&&this.Uf()&&this.Db()};
g.k.qG=function(){this.Db();g.fv("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.k.jP=function(){g.fv("iv-teaser-mouseover");this.i&&this.i.stop()};
g.k.SV=function(a){this.I.V().N("player_new_info_card_format")&&!g.YE(this.I.V())&&this.ji.Db();this.i||!a||this.I.lk()||this.u&&this.u.isActive()||(this.fd(a),g.fv("iv-teaser-shown"))};
g.k.fd=function(a){this.Ra("text",a.teaserText);this.element.setAttribute("dir",g.hr(a.teaserText));this.C.show();this.u=new g.M(function(){g.N(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.N("player_new_info_card_format")&&!g.YE(this.I.V())&&this.ji.Db();this.NG()},0,this);
this.u.start();VN(this.ji,!1);this.i=new g.M(this.Db,580+a.durationMs,this);this.i.start();this.D.push(this.Qa("mouseover",this.CH,this));this.D.push(this.Qa("mouseout",this.BH,this))};
g.k.NG=function(){if(!this.I.V().N("player_new_info_card_format")&&g.YE(this.I.V())&&this.Ab){var a=this.ji.element.offsetLeft,b=g.og("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.ji.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.fR=function(){g.YE(this.I.V())&&this.Y.uf()&&this.Ab&&this.S.start()};
g.k.CH=function(){this.J.stop();this.i&&this.i.isActive()&&this.K.start()};
g.k.BH=function(){this.K.stop();this.i&&!this.i.isActive()&&this.J.start()};
g.k.FU=function(){this.i&&this.i.stop()};
g.k.EU=function(){this.Db()};
g.k.Ci=function(){this.Db()};
g.k.Db=function(){!this.i||this.B&&this.B.isActive()||(g.fv("iv-teaser-hidden"),this.C.hide(),g.Mq(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.M(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.jc(b.value);this.D=[];this.i&&(this.i.dispose(),this.i=null);VN(this.ji,!0)},330,this),this.B.start())};
g.k.Uf=function(){return this.Ab&&4!==this.C.state};
g.k.xa=function(){var a=this.I.getRootNode();a&&g.Mq(a,"ytp-cards-teaser-shown");g.pe(this.u,this.B,this.i);g.U.prototype.xa.call(this)};var Z2={},ZN=(Z2.BUTTON="ytp-button",Z2.TITLE_NOTIFICATIONS="ytp-title-notifications",Z2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",Z2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",Z2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",Z2);g.w($N,g.U);$N.prototype.onClick=function(){this.api.Gb(this.element);var a=!this.i;this.Ra("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Ra("pressed",a);jva(this,a)};g.w(g.bO,g.U);g.bO.prototype.u=function(){g.N(this.element,"ytp-sb-subscribed")};
g.bO.prototype.B=function(){g.Mq(this.element,"ytp-sb-subscribed")};g.w(cO,g.U);g.k=cO.prototype;g.k.KF=function(){nva(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.pD=function(){if(lva(this)&&!this.isExpanded()){this.Ra("flyoutUnfocusable","false");this.Ra("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.ib(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Rh&&a.subscribed&&(this.u.show(),this.api.ib(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.UC=function(){this.Ra("flyoutUnfocusable","true");this.Ra("channelTitleFocusable","-1");this.B&&this.B.start()};
g.k.Pa=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.ac&&!!a.Qh:g.YE(b)&&(c=!!a.videoId&&!!a.ac&&!!a.Qh&&!(a.D&&b.pfpChazalUi)&&!(b.D&&200>this.api.getPlayerSize().width));var d=g.GF(this.api.V())+a.ac;g.YE(this.api.V())&&(d=g.pi(d,g.uM("emb_ch_name_ex")));var e=a.ac,f=a.Qh;b=g.YE(b)?a.Vp:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.GF(this.api.V())+e,this.K!==f&&(this.i.style.backgroundImage=
"url("+f+")",this.K=f),this.Ra("channelLink",e),this.Ra("channelLogoLabel",g.qI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.N(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.ib(this.i,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=a.Si);this.Ra("expandedTitle",a.Vp);this.Ra("channelTitleLink",d);this.Ra("expandedSubtitle",a.expandedSubtitle)};g.w(g.eO,g.RK);g.eO.prototype.Ra=function(a,b){g.RK.prototype.Ra.call(this,a,b);this.ea("size-change")};g.w(hO,g.RK);hO.prototype.dM=function(){this.ea("size-change")};
hO.prototype.focus=function(){this.content.focus()};
hO.prototype.IT=function(){this.ea("back")};g.w(g.iO,hO);g.iO.prototype.Gc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Jb(this.items,a,ova);if(0<=b)return;b=~b;g.Gb(this.items,b,0,a);g.Cg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.iF,this);this.menuItems.ea("size-change")};
g.iO.prototype.Gf=function(a){a.unsubscribe("size-change",this.iF,this);this.isDisposed()||(g.zb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))};
g.iO.prototype.iF=function(){this.menuItems.ea("size-change")};
g.iO.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.w(kO,g.eO);kO.prototype.i=function(a){g.Du(a)||39!==g.Eu(a)||(this.element.click(),g.Cu(a))};g.w(mO,g.eO);mO.prototype.onClick=function(){this.setValue(!this.checked);this.ea("select",this.checked)};
mO.prototype.getValue=function(){return this.checked};
mO.prototype.setValue=function(a){this.checked=a;this.element.setAttribute("aria-checked",String(this.checked))};g.w(nO,g.iO);g.k=nO.prototype;g.k.bU=function(){yN(this.Fr.element)};
g.k.mU=function(){pO(this,this.I.getDebugText(!0))&&TN(this.xc,UK())};
g.k.nU=function(){pO(this,this.I.getVideoEmbedCode())&&TN(this.xc,Jsa());this.I.Gb(this.gj.element);WL("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.oU=function(){pO(this,this.I.getVideoUrl(!0,!0))&&TN(this.xc,ZK());this.I.Gb(this.getVideoUrl.element);WL("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.pU=function(){pO(this,this.I.getVideoUrl(!1,!0))&&TN(this.xc,ZK());this.I.Gb(this.jj.element);WL("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.oM=function(a){var b;null===(b=this.zi)||void 0===b?void 0:b.setValue(a)};
g.k.yU=function(){this.I.setLoopVideo(this.zi.getValue());this.Bb.Db();this.I.Gb(this.zi.element)};
g.k.nV=function(a){this.I.reportPlaybackIssue();if(g.vN(a,this.I,!uF(this.I.V()))){a=this.I;var b=a.app.getFeedbackProductData();a.Oa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Bb.Db()};
g.k.GV=function(){this.I.showVideoInfo();this.Bb.Db()};
g.k.onVideoDataChange=function(a,b){qva(this,b)};
g.k.Yb=function(a){g.iO.prototype.Yb.call(this,a);this.I.ib(this.gj.element,a);this.I.ib(this.getVideoUrl.element,a);this.I.ib(this.jj.element,a);this.zi&&this.I.ib(this.zi.element,a)};g.w(g.qO,g.IN);g.k=g.qO.prototype;g.k.show=function(){g.IN.prototype.show.call(this);this.Ct()};
g.k.hide=function(){g.IN.prototype.hide.call(this);1<this.i.length&&g.sO(this)};
g.k.Ct=function(){sva(this);this.Ab&&(rva(this),g.Xl(this.element,this.size))};
g.k.lh=function(){var a=this.i.pop();rO(this,a,this.i[this.i.length-1],!0)};
g.k.kP=function(a){if(!g.Du(a))switch(g.Eu(a)){case 27:this.Db();g.Cu(a);break;case 37:1<this.i.length&&this.lh();g.Cu(a);break;case 39:g.Cu(a)}};
g.k.focus=function(){this.i.length&&this.i[this.i.length-1].focus()};
g.k.xa=function(){g.IN.prototype.xa.call(this);this.C&&this.C.dispose();this.J&&this.J.dispose()};g.w(g.tO,g.qO);g.k=g.tO.prototype;g.k.mP=function(a){var b,c=zu(a);c&&(Kg(c,"a")||Kg(c,null,"ytp-no-contextmenu",void 0))||this.Ab||(this.ya=(a=null===(b=a.touches)||void 0===b?void 0:b.item(0))?new g.Uf(a.clientX,a.clientY):new g.Uf(0,0),this.ma.start())};
g.k.KM=function(){this.ma.stop()};
g.k.YV=function(){this.open(this.ya)};
g.k.show=function(){this.D||(this.D=new nO(this.I,this.Aa,this,this.xc),g.J(this,this.D),g.oO(this,this.D));this.D.oM(this.I.getLoopVideo());g.qO.prototype.show.call(this);this.I.ib(this.element,!0);this.D.Yb(!0)};
g.k.hide=function(){uva(this);g.qO.prototype.hide.call(this);this.I.ib(this.element,!1);this.D&&this.D.Yb(!1)};
g.k.XT=function(a){var b=zu(a);this.Ab||b&&(Kg(b,"a")||Kg(b,null,"ytp-no-contextmenu",void 0))||(g.Cu(a),this.open(Bu(a)))};
g.k.open=function(a){vva(this);var b=this.I.getVideoData();g.O(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;this.fd();var c=document.body;b=new zl(0,Infinity,Infinity,0);var d=jg(c);for(var e=d.i.body,f=d.i.documentElement,h=sg(d.i);c=yca(c);)if(!(g.Kc&&0==c.clientWidth||g.ug&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Ol(c,"overflow")){var l=g.Sl(c),m=new g.Uf(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right,
l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.i;d=rg(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=a,e=b,f=5,65==(f&65)&&(h.x<d.left||h.x>=d.right)&&(f&=-2),132==(f&132)&&(h.y<d.top||h.y>=d.bottom)&&
(f&=-5),h.x<d.left&&f&1&&(h.x=d.left),f&16&&(c=h.x,h.x<d.left&&(h.x=d.left),h.x+e.width>d.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.y<d.top&&f&4&&(h.y=d.top),f&32&&(c=h.y,h.y<d.top&&(h.y=d.top),h.y+e.height>d.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.Cl(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ql(this.element,new g.Uf(d.left,d.top));g.my(this.B);this.B.T(document,"contextmenu",this.hU);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.lP)};
g.k.hU=function(a){if(!g.Du(a)){var b=zu(a);g.Fg(this.element,b)||this.Db();this.I.V().disableNativeContextMenu&&g.Cu(a)}};
g.k.onFullscreenToggled=function(){this.Db();vva(this)};
g.k.lP=function(){this.Db()};g.w(g.uO,g.U);g.uO.prototype.onClick=function(){return g.H(this,function b(){var c=this,d,e,f,h;return g.B(b,function(l){if(1==l.i)return d=c.api.V(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.z(l,xva(c,h),2);l.u&&wva(c);c.api.Gb(c.element);g.sa(l)})})};
g.uO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData();this.Ra("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.Ra("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible=
!!b.videoId&&c>=this.u&&b.Zj&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.QK(this,this.visible);wO(this.tooltip);this.api.ib(this.element,this.visible&&this.Z)};
g.uO.prototype.Yb=function(a){g.U.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};
g.uO.prototype.xa=function(){g.U.prototype.xa.call(this);g.Mq(this.element,"ytp-copylink-button-visible")};g.w(xO,g.U);g.k=xO.prototype;g.k.show=function(){g.U.prototype.show.call(this);g.Dq(this.i)};
g.k.hide=function(){this.u.stop();g.Mq(this.element,"ytp-chapter-seek");g.Mq(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)};
g.k.Rs=function(a,b,c,d){this.Ss(a,d)};
g.k.Ss=function(a,b){g.Fq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Mq(this.element,"ytp-chapter-seek");this.Ra("chapterSeekText","");a=g.qI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Ra("seekTime",a)};
g.k.FA=function(a,b){g.Fq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-chapter-seek");this.Ra("chapterSeekText",b);this.Ra("seekTime","")};g.w(yO,g.U);g.k=yO.prototype;g.k.show=function(){g.U.prototype.show.call(this);g.Dq(this.u)};
g.k.hide=function(){this.B.stop();g.Mq(this.element,"ytp-chapter-seek");g.Mq(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)};
g.k.Rs=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.Gb(e);g.Fq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.bb().getPlayerSize().height;e=this.I.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 h=2.5*f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=
h+"px";1===a?(a=this.I.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.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");yva(this,d)};
g.k.Ss=function(a,b){var c=this.I.bb().getPlayerSize();g.Fq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(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";yva(this,b)};
g.k.FA=function(a,b){g.Fq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.N(this.element,"ytp-chapter-seek");this.Ra("seekText",b);this.Ra("seekTime","")};var BNa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(BNa).reduce(function(a,b){a[BNa[b]]=b;return a},{});
var CNa={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(CNa).reduce(function(a,b){a[CNa[b]]=b;return a},{});
var DNa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(DNa).reduce(function(a,b){a[DNa[b]]=b;return a},{});var $2,ENa;$2=[{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"}];ENa=[{option:0,text:zO(0)},{option:.25,text:zO(.25)},{option:.5,text:zO(.5)},{option:.75,text:zO(.75)},{option:1,text:zO(1)}];
g.DO=[{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:$2},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:zO(.5)},{option:-1,text:zO(.75)},{option:0,text:zO(1)},{option:1,text:zO(1.5)},{option:2,text:zO(2)},
{option:3,text:zO(3)},{option:4,text:zO(4)}]},{option:"background",text:"Background color",options:$2},{option:"backgroundOpacity",text:"Background opacity",options:ENa},{option:"windowColor",text:"Window color",options:$2},{option:"windowOpacity",text:"Window opacity",options:ENa},{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:zO(.25)},{option:.5,text:zO(.5)},{option:.75,text:zO(.75)},{option:1,text:zO(1)}]}];g.w(g.CO,g.wD);g.k=g.CO.prototype;
g.k.xK=function(a){var b=!1,c=g.Eu(a),d=zu(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Du(a)?(e=!1,h=!0):l.gf&&(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);UN(this.xc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);UN(this.xc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.sf()&&(this.api.startSeekCsiAction(),
this.api.seekTo(0),h=f=!0);break;case 35:this.api.sf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&BO(this,!0);(b||h)&&this.td.Xk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Cu(a);l.B&&(a={keyCode:g.Eu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Du(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))};
g.k.yK=function(a){this.handleGlobalKeyUp(g.Eu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.KM(this.api.ub());c&&(c=c.Bo)&&c.Ab&&(c.tK(a),b=!0);9===a&&(BO(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.gf)return h;var l=g.KM(this.api.ub());if(l&&(l=l.Bo)&&l.Ab)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.sK(a)}e.J||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Oq(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){f=(f=this.api.getVideoData())?f.ql:[];l=$T?d:c;switch(a){case 80:b&&
!e.ya&&(TN(this.xc,Rsa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ya&&(TN(this.xc,$K(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(-1,10):TN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(1,10):TN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Ava(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.FA(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(-1,5):TN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=zva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.FA(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&null!=this.i?this.i.Ss(1,5):TN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),UN(this.xc,this.api.getVolume(),!1)):(this.api.mute(),UN(this.xc,0,!0));h=!0;break;case 32:case 75:e.ya||(h=!g.$J(this.api.vb()),this.xc.Cq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.uc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),iva(this.xc,!1),h=!0):this.api.sf()&&(Cva(this,1),h=!0);break;case 188:b?e.uc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-
.25,!0),iva(this.xc,!0),h=!0):this.api.sf()&&(Cva(this,-1),h=!0);break;case 70:Rua(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.gN(this.api.ub())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),TN(this.xc,Sua(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:EO(this,"textOpacity");break;case 87:EO(this,"windowOpacity");break;case 187:case 61:EO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:EO(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.sf()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.td.Xk()}return h};
g.k.xa=function(){g.Fq(this.B);g.wD.prototype.xa.call(this)};g.w(FO,g.U);FO.prototype.Pa=function(){var a=g.YE(this.I.V())&&g.JM(this.I)&&g.T(this.I.vb(),128),b=this.I.getPlayerSize();this.visible=this.i.uf()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&wO(this.tooltip);this.I.ib(this.element,this.visible&&this.Z)};
FO.prototype.Yb=function(a){g.U.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};
FO.prototype.xa=function(){g.U.prototype.xa.call(this);g.Mq(this.element,"ytp-overflow-button-visible")};g.w(GO,g.IN);g.k=GO.prototype;g.k.nP=function(a){a=zu(a);g.Fg(this.element,a)&&(g.Fg(this.i,a)||g.Fg(this.closeButton,a)||JN(this))};
g.k.Db=function(){g.IN.prototype.Db.call(this);this.tooltip.cj(this.element)};
g.k.show=function(){this.Ab&&this.I.ea("OVERFLOW_PANEL_OPENED");g.IN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Dva(this,!0)};
g.k.hide=function(){g.IN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Dva(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Uf()&&JN(this)};
g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ab){b.focus();break}};g.w(IO,g.U);IO.prototype.onClick=function(a){g.vN(a,this.api)&&this.api.playVideoAt(this.index)};g.w(JO,g.IN);g.k=JO.prototype;g.k.show=function(){g.IN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.OB);this.B.T(this.api,"onPlaylistUpdate",this.OB);this.OB()};
g.k.hide=function(){g.IN.prototype.hide.call(this);g.my(this.B);this.updatePlaylist(null)};
g.k.OB=function(){this.updatePlaylist(this.api.getPlaylist())};
g.k.JA=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.r(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 IO(this.api,a,d);this.i.push(e);e.Ea(this.items)}this.selected=this.i[a.index];this.C=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.XV=function(a){var b=this.api.getVideoUrl(!0);g.wN(b,this.api,a)};
g.k.updatePlaylist=function(a){if(this.playlist!==a)if(this.playlist&&this.playlist.unsubscribe("shuffle",this.JA,this),this.playlist=a,this.C=null,a){a.subscribe("shuffle",this.JA,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.qI(b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",c),playlisturl:this.api.getVideoUrl(!0)});this.JA()}else this.Ab&&this.hide();
else this.playlist&&this.JA()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.IN.prototype.xa.call(this)};g.w(KO,g.U);
KO.prototype.Pa=function(){var a=g.YE(this.api.V());g.O(this.element,"ytp-playlist-menu-button-tiny",400>this.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.qI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.qI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Ab||(this.show(),wO(this.tooltip)),this.visible=!0,this.Yb(!0)):
this.Ab&&(this.hide(),this.Yb(!1),wO(this.tooltip))};
KO.prototype.Yb=function(a){g.U.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};
KO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Pa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Pa,this);this.Pa()};g.w(LO,g.U);g.k=LO.prototype;
g.k.PB=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.Zl(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1<d)if(this.tooltipRenderer.targetId){a=
[];p=p.split("$TARGET_ICON");var q=new g.NK({G:"span",L:"ytp-promotooltip-details-icon",U:[FNa[this.tooltipRenderer.targetId]]});g.J(this,q);for(var t=[],u=g.r(p),x=u.next();!x.done;x=u.next())x=new g.NK({G:"span",L:"ytp-promotooltip-details-component",va:x.value}),g.J(this,x),t.push(x);2===p.length?(a.push(t[0].element),a.push(q.element),a.push(t[1].element)):1===p.length&&(0===d?(a.push(q.element),a.push(t[0].element)):(a.push(t[0].element),a.push(q.element)));d=a.length?a:null}else d=null;else d=
p;if(d){if("string"!==typeof d)for(g.Bg(this.details),c=g.r(d),d=c.next();!d.done;d=c.next())this.details.appendChild(d.value);else this.update({details:d});c=!0}}g.Zl(this.details,c);c=this.tooltipRenderer.acceptButton;d=!1;(null===(h=null===(f=null===(e=null===c||void 0===c?void 0:c.buttonRenderer)||void 0===e?void 0:e.text)||void 0===f?void 0:f.runs)||void 0===h?0:h.length)&&c.buttonRenderer.text.runs[0].text&&(this.update({acceptButtonText:c.buttonRenderer.text.runs[0].text.toString()}),d=!0);
g.Zl(this.acceptButton,d);e=this.tooltipRenderer.dismissButton;f=!1;(null===(n=null===(m=null===(l=null===e||void 0===e?void 0:e.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?0:n.length)&&e.buttonRenderer.text.runs[0].text&&(this.update({dismissButtonText:e.buttonRenderer.text.runs[0].text.toString()}),f=!0);g.Zl(this.dismissButton,f)}b&&(this.B=b);this.i=Eva(this);this.D=!1;this.I.V().N("web_player_hide_nitrate_promo_tooltip")||g.QK(this,!0);(b=!this.i)||(b=this.i,
l=window.getComputedStyle(b),b="none"===l.display||"hidden"===l.visibility||"true"===b.getAttribute("aria-hidden"));b||this.I.Ie()?g.QK(this,!1):(b=g.Yl(this.i),b.width&&b.height?(this.K.oq(this.element,this.i),l=this.I.bb().getPlayerSize().height-g.Yl(this.element).height-b.height-12,this.element.style.top=l+"px",l=this.Fa("ytp-promotooltip-pointer"),m=g.Wl(this.i,this.I.getRootNode()),n=Number(this.element.style.left.replace(/[^\d\.]/g,"")),e=this.I.isFullscreen()?18:12,l.style.left=m.x-n+b.width/
2-e+"px"):g.QK(this,!1));this.J||(this.J=!0,NO(this,0));this.u&&this.I.ib(this.element,this.Ab)}};
g.k.aU=function(){MO(this);this.D=!0};
g.k.kT=function(){this.C=!0;NO(this,1);this.I.ea("promotooltipacceptbuttonclicked",this.acceptButton);MO(this);this.u&&this.I.Gb(this.acceptButton)};
g.k.gU=function(){this.C=!0;NO(this,2);MO(this);this.u&&this.I.Gb(this.dismissButton)};
g.k.oP=function(a){var b,c;if(1===this.I.getPresentingPlayerType()){var d=!0,e=g.og("ytp-ad-overlay-ad-info-dialog-container"),f=zu(a);if(this.B&&f&&g.Fg(this.B,f))this.B=null;else{1===this.I.getPresentingPlayerType()&&f&&Array.from(f.classList).forEach(function(l){l.startsWith("ytp-ad")&&(d=!1)});
var h=Fva(this.tooltipRenderer);"TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null===(b=this.tooltipRenderer.dismissStrategy)||void 0===b?void 0:b.type)?h&&(d=d&&!g.Fg(this.element,f)):"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null===(c=this.tooltipRenderer.dismissStrategy)||void 0===c?void 0:c.type)&&(d=h?!1:d&&g.Fg(this.element,f));this.i&&this.Ab&&!e&&(!f||d&&g.NL(a))&&(this.C=!0,MO(this))}}};
g.k.wb=function(){this.D||(this.i||(this.i=Eva(this)),this.PB())};
var FNa={"ytp-settings-button":g.cL()};g.w(OO,g.U);OO.prototype.onStateChange=function(a){g.QK(this,g.T(a.state,2))};
OO.prototype.onClick=function(){this.I.vb();this.I.playVideo()};g.w(g.PO,g.U);g.PO.prototype.onClick=function(){var a=this.api.V(),b=this.api.getVideoData(this.api.getPresentingPlayerType()),c=this.api.getPlaylistId();a=a.getVideoUrl(b.videoId,c,void 0,!0);if(navigator.share)try{var d=navigator.share({title:b.title,url:a});d instanceof Promise&&d.catch(Gva)}catch(e){e instanceof Error&&Gva(e)}else this.i.xk(),JN(this.B,this.element,!1);this.api.Gb(this.element)};
g.PO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData(),c=g.YE(a)&&g.JM(this.api)&&g.T(this.api.vb(),128);this.Ra("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.Zj||c||b.D&&a.pfpChazalUi;c=this.api.bb().getPlayerSize().width;this.visible=!!b.videoId&&c>=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.QK(this,this.visible);wO(this.tooltip);this.api.ib(this.element,this.visible&&this.Z)};
g.PO.prototype.Yb=function(a){g.U.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};
g.PO.prototype.xa=function(){g.U.prototype.xa.call(this);g.Mq(this.element,"ytp-share-button-visible")};g.w(g.QO,g.IN);g.k=g.QO.prototype;g.k.pP=function(a){a=zu(a);g.Fg(this.D,a)||g.Fg(this.closeButton,a)||JN(this)};
g.k.Db=function(){g.IN.prototype.Db.call(this);this.tooltip.cj(this.element)};
g.k.show=function(){var a=this.Ab;g.IN.prototype.show.call(this);this.Pa();a||this.api.Oa("onSharePanelOpened")};
g.k.NS=function(){this.Ab&&this.Pa()};
g.k.Pa=function(){var a=this;g.N(this.element,"ytp-share-panel-loading");g.Mq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&dM(this.api.Ml(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Mq(a.element,"ytp-share-panel-loading"),Iva(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.iF(this.api.V())&&(b=g.pi(b,g.uM("emb_share")));this.Ra("link",b);this.Ra("linkText",b);this.Ra("shareLinkWithUrl",g.qI("Share link $URL",{URL:b}));yN(this.B)};
g.k.onFullscreenToggled=function(a){!a&&this.Uf()&&JN(this)};
g.k.focus=function(){this.B.focus()};
g.k.xa=function(){g.IN.prototype.xa.call(this);Hva(this)};g.w(TO,g.U);g.k=TO.prototype;g.k.SE=function(){};
g.k.TE=function(){};
g.k.gx=function(){return!0};
g.k.bX=function(){if(this.expanded){this.Aa.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.Aa.hide();this.Za=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Za)+"px";this.ya.start()};
g.k.yR=function(){this.badge.element.style.width=(this.expanded?this.Za:34)+"px";this.Ja.start()};
g.k.AX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.Vh=function(){this.gx()?this.S.show():this.S.hide();Jva(this)};
g.k.qP=function(){this.enabled=!1;this.Vh()};
g.k.zX=function(a){this.eb=a;this.Vh()};
g.k.LT=function(a){this.Sa=1===a;this.Vh();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.kU=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Vh()};g.w(UO,TO);g.k=UO.prototype;g.k.xa=function(){VO(this);TO.prototype.xa.call(this)};
g.k.SE=function(a){a.target!==this.dismissButton.element&&(Lva(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))};
g.k.TE=function(){this.B=!0;Lva(this,!0);this.Vh()};
g.k.WU=function(a){this.Ka=a;this.Vh()};
g.k.OU=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.Da&&(this.Y=a,a||(a=3+this.I.getCurrentTime(),this.Ed(a)))};
g.k.onVideoDataChange=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.i=!0,this.Y=this.Da=this.u=this.K=!1,VO(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ka=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.C){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.C=!!h)&&this.I.xm(this.badge.element,h||null)}this.D||(this.D=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&&
this.I.xm(this.dismissButton.element,(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.uA(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Ua=g.uA(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;HG(b)?this.Y=this.Da=!0:this.Ed()}Kva(this);SO(this);this.Vh()};
g.k.gx=function(){return this.eb&&!this.Ka&&this.enabled&&!this.B&&!this.kb.uf()&&!this.Sa&&!this.Y&&(this.u||this.i)};
g.k.Ce=function(a){(this.u=a)?(RO(this),SO(this,!1)):(VO(this),this.ma.start());this.Vh()};
g.k.Ed=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.nA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.nA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Ed(b)};g.w(WO,g.IN);WO.prototype.show=function(){g.IN.prototype.show.call(this);this.C.start()};
WO.prototype.hide=function(){g.IN.prototype.hide.call(this);this.C.stop()};
WO.prototype.ds=function(a,b){"dataloaded"===a&&((this.B=b.uI,this.i=b.oI,isNaN(this.B)||isNaN(this.i))?this.D&&(this.I.Ve("intro"),this.I.removeEventListener(g.pA("intro"),this.ya),this.I.removeEventListener(g.qA("intro"),this.ma),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.pA("intro"),this.ya),this.I.addEventListener(g.qA("intro"),this.ma),this.I.addEventListener("onShowControls",this.J),a=new g.nA(this.B,this.i,{priority:9,namespace:"intro"}),
this.I.Ed([a]),this.D=!0))};g.w(XO,g.U);XO.prototype.onClick=function(){this.I.Ao()};
XO.prototype.Pa=function(){var a=!0,b=this.I.V();(b.N("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.N("embeds_use_native_controls_killswitch")&&b.i)&&g.YE(b)&&(a=a&&480<=this.I.bb().getPlayerSize().width);g.QK(this,a);this.Ra("icon",this.I.qf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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 Ov("yt.autonav");g.w(YO,g.U);g.k=YO.prototype;
g.k.Zt=function(){if(3!==this.I.getPresentingPlayerType()&&g.NM(this.I)&&400<=this.I.bb().getPlayerSize().width&&!1!==this.I.getVideoData().gT){if(!this.i){this.i=!0;g.QK(this,this.i);this.u.push(this.T(this.I,"videodatachange",this.Zt));this.u.push(this.T(this.I,"videoplayerreset",this.Zt));this.u.push(this.T(this.I,"onPlaylistUpdate",this.Zt));this.u.push(this.T(this.I,"autonavchange",this.DH));var a=this.I.getVideoData();this.DH(a.autonavState);this.I.ib(this.element,this.i)}}else{this.i=!1;g.QK(this,
this.i);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.jc(b.value)}};
g.k.DH=function(a){(a=1!==a)||(g.Dv.getInstance(),a=g.vs("web_autonav_allow_off_by_default")&&!g.Fv(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Fv(0,140));this.isChecked=a;Mva(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.IA(this.isChecked?2:1);Mva(this);this.I.Gb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.setValue=function(a){this.isChecked=a;this.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.$O,g.U);g.$O.prototype.xa=function(){this.ctx=null;g.U.prototype.xa.call(this)};g.w(aP,g.U);aP.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.B)};
aP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Qb()};
aP.prototype.updateVideoData=function(a,b){a=b.IX;this.B=null===a||void 0===a?void 0:a.command;this.u.disabled=null==this.B;g.O(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Qb()};
aP.prototype.Qb=function(){var a="",b=this.K.i;if(1<b.length){a=1E3*this.I.getProgressState().current;var c=AO(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.i)this.I.Oa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.i=!1}else this.i=!0;a!==this.C&&(this.update({title:a}),this.C=a);a?this.show():this.hide()};g.w(g.bP,g.U);g.bP.prototype.Lc=function(a){g.T(a.state,32)?cP(this,this.api.Hh()):this.Ab&&(g.T(a.state,16)||g.T(a.state,1))||this.i.hide()};
g.bP.prototype.od=function(){var a=this.api.vb();(g.T(a,32)||g.T(a,16))&&dP(this)};
g.bP.prototype.D=function(){this.B=NaN;dP(this)};
g.bP.prototype.hide=function(){this.u&&cP(this,null);g.U.prototype.hide.call(this)};g.w(eP,g.U);eP.prototype.onClick=function(){this.Ta.Gb(this.element);this.Ta.Oa("onFullerscreenEduClicked")};
eP.prototype.Pa=function(){this.Ta.isFullscreen()?this.u?this.i.hide():this.i.show():this.hide();this.Ta.ib(this.element,this.Ta.isFullscreen()&&!this.u)};g.w(g.fP,g.U);g.k=g.fP.prototype;g.k.onClick=function(){var a=this;if(this.I.V().Ya||this.I.V().D)try{this.I.toggleFullscreen().catch(function(b){a.Qv(b)})}catch(b){this.Qv(b)}else JN(this.message,this.element,!0)};
g.k.Qv=function(a){String(a).includes("fullscreen error")?g.Bz(a):g.Ty(a);this.cF()};
g.k.cF=function(){this.disable();this.message.fd(this.element,!0)};
g.k.hm=function(){gy()===this.I.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.aR=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.cF()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=pu(["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.IN(this.I,{G:"div",Ga:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://support.google.com/youtube/answer/6276924",
target:this.I.V().K},va:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.Lr(a.message,c)});
g.MM(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}};
g.k.Pa=function(){var a=Rua(this.I),b=this.I.V().D&&250>this.I.getPlayerSize().width;g.QK(this,a&&!b)};
g.k.Ii=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=zN(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path",
Ob:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=zN(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,label:a,icon:b});wO(this.u.fc())};
g.k.xa=function(){this.message||((0,this.i)(),this.i=null);g.U.prototype.xa.call(this)};g.w(gP,g.U);gP.prototype.onClick=function(){this.I.Oa("onCollapseMiniplayer");this.I.Gb(this.element)};
gP.prototype.Pa=function(){this.visible=!this.I.isFullscreen();g.QK(this,this.visible);this.I.ib(this.element,this.visible&&this.Z)};
gP.prototype.Yb=function(a){g.U.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};g.w(hP,g.U);hP.prototype.onVideoDataChange=function(a){this.Pa("newdata"===a)};
hP.prototype.Pa=function(a){var b=this.I.getVideoData(),c=b.bd,d=this.I.vb();d=(g.$J(d)||g.T(d,4))&&0<c.length;g.QK(this,d);a&&(this.i=!0);if(d){this.i&&g.Dq(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.qI("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.He("default.jpg")});wO(this.tooltip)}else this.u.stop()};
hP.prototype.B=function(){vO(this.tooltip,this.element,"More cameras available");this.i=!1};g.w(iP,g.IN);g.k=iP.prototype;g.k.show=function(){var a=this.Ab;g.IN.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Pa),this.B.T(this.api,"videodatachange",this.Pa),this.Pa())};
g.k.hide=function(){this.B&&(g.my(this.B),g.IN.prototype.hide.call(this))};
g.k.Pa=function(){var a=this,b=this.api.getVideoData(),c=b.bd,d,e={};for(d=0;d<c.length;e={pB:e.pB},d++){var f=this.i[d];f||(f=new g.U({G:"button",Ga:["ytp-multicam-menu-item","ytp-button"],W:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},U:[{G:"div",L:"ytp-multicam-menu-item-title",va:"{{cameraName}}"}]}),e.pB=d,f.Qa("click",function(n){return function(){var p=n.pB,q=a.api.getVideoData(),t=a.api,u=q.bd[p];p=g.OM(t.app,1).getVideoData();q=t.getCurrentTime();u.id===p.videoId?(u=g.OM(t.app,
1),g.OM(t.app)!==u&&(t.app.Hj(1),p.isLivePlayback||t.seekTo(q))):(t.app.Hj(4),t.app.loadVideoByPlayerVars({videoId:u.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.bH}}}},4))}}(e)),f.Ea(this.items),this.i[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=tF(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.i.length;)this.i.pop().dispose();d=this.api.vb();b=c.length||!b.isLoaded();g.$J(d)||g.T(d,4)||b||!this.Uf()||JN(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.bd,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.i[c].focus();break}};
g.k.xa=function(){g.pe(this.i);g.IN.prototype.xa.call(this)};g.w(jP,g.I);jP.prototype.i=function(){var a=(0,g.Q)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(g.jr(GNa,a));1>a&&this.delay.start()};
var GNa=new g.ir(0,0,.4,0,.2,1,1,1),Sva=/[0-9.-]+|[^0-9.-]+/g;g.w(g.lP,g.U);g.k=g.lP.prototype;g.k.EH=function(a){this.visible=300<=a.width;g.QK(this,this.visible);this.I.ib(this.element,this.visible&&this.Z)};
g.k.GU=function(){this.I.V().ma?this.I.isMuted()?this.I.unMute():this.I.mute():JN(this.message,this.element,!0);this.I.Gb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.I.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.ma;isNaN(f)?Vva(this,a):kP(this.Aa,function(l){Vva(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.S;isNaN(h)?Wva(this,d):kP(this.Y,function(l){Wva(c,h+(c.C-h)*l)},250);
this.C=d}e.ma&&(e=zN(this.I,"Mute","m"),d=zN(this.I,"Unmute","m"),b=b?d:e,this.Ra("title",b),this.Ra("label",b),wO(this.tooltip))};
g.k.Yb=function(a){g.U.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};
var Tva=["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"],Uva=["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.w(mP,g.U);mP.prototype.onClick=function(){this.I.togglePictureInPicture()};g.w(g.nP,g.U);g.nP.prototype.onStateChange=function(a){Xva(this,a.state);a=g.T(a.state,2);BF(this.I.V())&&(!this.u&&!a||this.u&&a?(this.hide(),this.I.ib(this.element,!1)):(this.show(),this.I.ib(this.element,!0)))};
g.nP.prototype.onVideoDataChange=function(){g.O(this.element,"ytp-play-button-playlist",g.JM(this.I))};
g.nP.prototype.qt=function(a){this.I.Gb(this.element);g.$J(this.I.vb())?this.I.pauseVideo():(this.I.Ie()&&this.I.vb().isCued()&&TA("direct_playback"),this.I.Ap().timerName="direct_playback",this.I.playVideo());this.I.V().N("miniplayer_disable_play_button_click_focus")&&this.I.Ie()&&a&&"click"===a.type&&this.element.blur()};g.w(g.pP,g.U);g.k=g.pP.prototype;g.k.onVideoDataChange=function(){Zva(this);this.C&&(this.jc(this.C),this.C=null);this.videoData=this.I.getVideoData(1);if(this.playlist=this.I.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.I,"progresssync",this.rP);this.B=$va(this);oP(this);this.QB(this.I.bb().getPlayerSize())};
g.k.QB=function(a){a=void 0===a?this.I.bb().getPlayerSize():a;a=(g.JM(this.I)||this.i&&g.NM(this.I)||awa(this))&&(this.i||400<=a.width);g.QK(this,a);this.I.ib(this.element,a)};
g.k.onClick=function(a){this.I.Gb(this.element);var b=!0;this.isLinkable?b=g.vN(a,this.I):g.Cu(a);b&&(this.i&&5===this.I.getPresentingPlayerType()?this.I.ea("ytoprerollinternstitialnext"):this.i?this.I.nextVideo(!0):this.B?this.I.seekTo(0):this.I.previousVideo(!0))};
g.k.rP=function(){var a=$va(this);a!==this.B&&(this.B=a,oP(this))};
g.k.xa=function(){this.u&&(this.u(),this.u=null);Zva(this);g.U.prototype.xa.call(this)};g.w(bwa,g.U);g.w(rP,g.U);ewa.prototype.update=function(a,b,c,d){this.width=b;this.u=c;this.D=d;this.i=b-c-d;this.position=g.Qf(a,c,c+this.i);this.C=this.position-c;this.B=this.C/this.i};g.w(fwa,g.U);g.w(g.vP,g.RK);g.k=g.vP.prototype;g.k.wb=function(){g.wP(this);zP(this);kwa(this,this.ya)};
g.k.onClickCommand=function(a){if(a=null===a||void 0===a?void 0:a.changeKeyedMarkersVisibilityCommand){var b=a.key;a.isVisible&&b&&xP(this,b)}};
g.k.WV=function(a){this.api.Oa("innertubeCommand",this.rd[a.id])};
g.k.Qb=function(){zP(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.CA()};
g.k.tP=function(a){if(!g.Du(a)){var b=!1;switch(g.Eu(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.Cu(a)}};
g.k.ds=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.YR=function(){this.ds("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(qH(a)||CP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?this.zb=!1:this.zb=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null===a||void 0===a||!qH(a))));wwa(this,this.api.sf());if(b){if(c)for(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,FP(this),AP(this,this.S,this.Sa);0<this.D.length;)this.D.pop().dispose();else this.CA();g.yQ(this.tooltip)}if(a){b=a.watchNextResponse;
if(b=!a.isLivePlayback&&b)b=this.api.getVideoData(),c=b.rC,b=null!=b.multiMarkersPlayerBarRenderer||null!=c&&0<c.length;if(!b||this.Rb||this.Rb)gwa(this),hwa(this);else{b=this.api.getVideoData();if(c=b.multiMarkersPlayerBarRenderer){var d;b=this.api.getVideoData();b.tp=(null===(d=c.visibleOnLoad)||void 0===d?void 0:d.key)||b.tp;d=g.r(c.markersMap);for(c=d.next();!c.done;c=d.next())c=c.value,c.key&&c.value&&(this.qb[c.key]=c.value);null!=b.tp&&xP(this,b.tp)}else if(d=b.rC)jwa(this,d),b.ql=this.i,iwa(this);
a.UG&&(d=a.UG,b=d.key,d.isVisible&&b&&xP(this,b),a.UG=void 0)}}zP(this)};
g.k.sP=function(a){this.K&&!g.T(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.K.cancel()};
g.k.FH=function(a){var b=!!this.Rb!==!!a;(this.Rb=a)?(this.Ra("clipstarticon",Nsa()),this.Ra("clipendicon",Nsa()),this.Ra("clipstarttitle",null),this.Ra("clipendtitle",null)):(this.Ra("clipstarticon",Isa()),this.Ra("clipendicon",Hsa()),this.Ra("clipstarttitle","Watch full video"),this.Ra("clipendtitle","Watch full video"));FP(this);AP(this,this.S,this.Sa);b&&(this.updateVideoData(this.api.getVideoData(),!0),g.wP(this))};
g.k.ZU=function(a,b,c){var d,e=g.Sl(this.element),f=yP(this).i,h=c?c.getAttribute("data-tooltip"):void 0,l=c?c.getAttribute("data-position"):void 0,m=c?c.getAttribute("data-offset-y"):void 0;m=m?Number(m):0;l&&(a=TL(this.u,Number(c.getAttribute("data-position")),0)*f+g.Sl(this.Nc).x);this.kb.x=a-e.x;this.kb.y=b-e.y;a=yP(this);e=EP(this,a);b=0;if(null===(d=this.api.getVideoData())||void 0===d?0:qH(d))(b=swa(this))&&e>b&&(e=b,c=-this.ma,b=TL(this.u,b)*yP(this).i+c,a.position=b),b=this.u.u;CP(this)&&
this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.u);b=h||g.ML(this.zb?e-this.u.i:e-b);c=a.position+this.bd;e-=this.api.Tc();if(this.api.Hh()){if(1<this.i.length){f=DP(this,this.kb.x,!0);for(l=0;l<this.i.length;)g.O(this.i[l].i,"ytp-exp-chapter-hover-effect",l===f),l++;l=this.i[f].startTime;for(var n=f===this.i.length-1?Infinity:this.i[f+1].startTime,p=g.r(this.ya),q=p.next();!q.done;q=p.next())q=q.value,g.O(q.element,"ytp-timed-marker-hover",q.timeRangeStartMillis>=l&&
q.timeRangeStartMillis<n);if(1<this.D.length)for(l=0;l<this.i.length;l++)g.O(this.D[l].element,"ytp-heatmap-hover",l===f)}l=this.tooltip.scale;m=(isNaN(m)?0:m)-45*l;f=AO(this.i,1E3*e);(f=this.i[f].title)||(m+=16*l);.6===this.tooltip.scale&&(m=f?110:126);l=AO(this.i,1E3*e);this.La=pwa(this,e,l)?l:pwa(this,e,l+1)?l+1:-1;g.O(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.La&&1<this.i.length);g.Mq(this.api.getRootNode(),"ytp-progress-bar-decoration");l=g.r(this.heatMarkersDecorations);for(n=
l.next();!n.done;n=l.next())n=n.value,p=1E3*e,p>=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(f=n.label,b=g.ML(n.decorationTimeMillis/1E3),g.N(this.api.getRootNode(),"ytp-progress-bar-decoration"));l=320*this.tooltip.scale;n=f.length*(this.B?8.55:5.7);l=n<=l?n:l;n=l<160*this.tooltip.scale;p=3;!n&&l/2>a.position&&(p=1);!n&&l/2>this.C-a.position&&(p=2);this.api.V().D&&(m-=10);0<this.D.length&&this.D[0].isValid&&(m-=14*(this.B?2:1));Qwa(this.tooltip,c,e,b,!!h,m,f,p)}else Qwa(this.tooltip,
c,e,b,!!h,m);g.N(this.api.getRootNode(),"ytp-progress-bar-hover");owa(this)};
g.k.YU=function(){g.yQ(this.tooltip);g.Mq(this.api.getRootNode(),"ytp-progress-bar-hover")};
g.k.XU=function(a,b){this.J&&(this.J.dispose(),this.J=null);this.cd=b;1<this.i.length&&-1!==this.La?this.api.seekTo(this.i[this.La].startTime/1E3,!1):this.api.seekTo(EP(this,yP(this)),!1);g.N(this.element,"ytp-drag");(this.ac=g.$J(this.api.vb()))&&this.api.pauseVideo()};
g.k.aV=function(){var a=this;this.xb=0;g.Mq(this.element,"ytp-pull-ui");g.Mq(this.element,"ytp-pulling");this.J&&(this.J.dispose(),this.J=null);if(0<this.Y){var b=(0,g.Q)();this.J=new g.zq(function(){var c=a.Y,d=yP(a).position,e=1-Math.pow(1-((0,g.Q)()-b)/200,3);d+=e*(a.S*a.C-d);if(0>e||1<e)e=1;qwa(a,(1-e)*c,d,a.S);1>e&&a.J.start()});
this.J.start()}if(g.T(this.api.vb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1<this.i.length&&-1!==this.La?this.api.seekTo(this.i[this.La].startTime/1E3):this.api.seekTo(EP(this,yP(this))),g.Mq(this.element,"ytp-drag"),this.ac&&!g.T(this.api.vb(),2)&&this.api.playVideo()};
g.k.bV=function(a,b){var c=this,d=!1,e=!1;a=yP(this);3600<=RL(this.u)&&1===this.i.length&&(qwa(this,this.cd-b-10,a.position,a.B),e=!0,d=this.Y>.1*(this.B?60:40),a=yP(this));g.O(this.element,"ytp-pull-ui",e);d&&g.N(this.element,"ytp-pulling");b=0;a.u&&0>=a.position&&1===this.i.length?b=-1:a.D&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.xb!==b&&1===this.i.length&&(this.xb=b,this.J&&(this.J.dispose(),this.J=null),b)){var f=(0,g.Q)();this.J=new g.zq(function(){var h=c.C*(c.Ja-1);c.ma=g.Qf(c.ma+
c.xb*((0,g.Q)()-f)*.3,0,h);BP(c);c.api.seekTo(EP(c,yP(c)),!1);0<c.ma&&c.ma<h&&c.J.start()});
this.J.start()}this.api.seekTo(EP(this,a),!1)};
g.k.aM=function(){this.Rb||(this.Ra("clipstarticon",Gsa()),this.Ra("clipendicon",Gsa()),g.N(this.element,"ytp-clip-hover"))};
g.k.ZL=function(){this.Rb||(this.Ra("clipstarticon",Isa()),this.Ra("clipendicon",Hsa()),g.Mq(this.element,"ytp-clip-hover"))};
g.k.CA=function(){this.clipStart=0;this.clipEnd=Infinity;FP(this);AP(this,this.S,this.Sa)};
g.k.sO=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Da[c]){var d=g.zg("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Da[c]=b;this.jb[c]=d;g.Jq(d,b.style);rwa(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.i[0].B.appendChild(d)}}else vwa(this,b)};
g.k.FW=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())vwa(this,b.value)};
g.k.xa=function(){wwa(this,!1);g.RK.prototype.xa.call(this)};g.w(JP,g.U);JP.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
JP.prototype.Pa=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.QK(this,a&&400<=this.I.bb().getPlayerSize().width);var b=1;a&&this.isActive()&&(b=2);if(this.i!==b){this.i=b;switch(b){case 1:this.Ra("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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.Ra("icon",g.Fsa())}g.O(this.element,"ytp-remote-button-active",this.isActive())}};
JP.prototype.u=function(){if(this.I.getOption("remote","quickCast"))this.I.setOption("remote","quickCast",!0);else{var a=this.Bb,b=this.element;if(a.Uf())a.Db();else{a.initialize();a:{var c=g.r(a.Vd.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0===d.priority){c=d;break a}c=null}c&&(c.open(),a.fd(b));a.fd(b)}}};g.w(KP,g.U);KP.prototype.i=function(a){var b=400;this.I.V().D&&(b=200);a=this.u&&a.width>=b;g.QK(this,a);this.I.ib(this.element,a)};
KP.prototype.B=function(){if(this.Bb.Ab)this.Bb.Db();else{var a=g.gN(this.I.ub());a&&!a.loaded&&(a.jf("tracklist",{includeAsr:!0}).length||a.load());this.I.Gb(this.element);this.Bb.fd(this.element)}};
KP.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.LM(this.I),e=c&&!!g.KM(this.I.ub());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(MP,mO);MP.prototype.isLoaded=function(){var a=g.nN(this.I.ub());return void 0!==a&&a.loaded};
MP.prototype.Pa=function(){void 0!==g.nN(this.I.ub())&&3!==this.I.getPresentingPlayerType()?this.i||(this.Bb.Gc(this),this.i=!0):this.i&&(this.Bb.Gf(this),this.i=!1);this.setValue(this.isLoaded())};
MP.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)};
MP.prototype.xa=function(){this.i&&this.Bb.Gf(this);mO.prototype.xa.call(this)};g.w(g.NP,g.eO);g.k=g.NP.prototype;g.k.open=function(){g.oO(this.Bb,this.B)};
g.k.Xh=function(a){ywa(this);this.options[a].element.setAttribute("aria-checked","true");this.kd(this.bj(a));this.u=a};
g.k.JC=function(a,b,c){var d=this;b=new g.eO({G:"div",Ga:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ga:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.bj(a,!0));b.Qa("click",function(){d.Bf(a)});
return b};
g.k.enable=function(a){this.C?a||(this.C=!1,this.er(!1)):a&&(this.C=!0,this.er(!0))};
g.k.er=function(a){a?this.Bb.Gc(this):this.Bb.Gf(this)};
g.k.Bf=function(a){this.ea("select",a)};
g.k.bj=function(a){return a.toString()};
g.k.uP=function(a){g.Du(a)||39!==g.Eu(a)||(this.open(),g.Cu(a))};
g.k.xa=function(){this.C&&this.Bb.Gf(this);g.eO.prototype.xa.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(PP,g.NP);PP.prototype.Pa=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.OP(this,g.lm(a,this.D)),this.tracks=g.Pb(a,this.D,this),this.i.kd(a.length?" ("+a.length+")":""),this.ea("size-change"),this.Xh(this.D(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
PP.prototype.Bf=function(a){g.NP.prototype.Bf.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.Bb.lh()};
PP.prototype.D=function(a){return a.toString()};g.w(QP,mO);
QP.prototype.u=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.NM(this.I))this.i||(this.Bb.Gc(this),this.i=!0,this.B.push(this.T(this.I,"videodatachange",this.u)),this.B.push(this.T(this.I,"videoplayerreset",this.u)),this.B.push(this.T(this.I,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.I,"autonavchange",this.C)),a=this.I.getVideoData(),this.C(a.autonavState),this.I.ib(this.element,this.i));else if(this.i){this.Bb.Gf(this);this.i=!1;a=g.r(this.B);for(var b=a.next();!b.done;b=a.next())this.jc(b.value)}};
QP.prototype.C=function(a){this.setValue(1!==a)};
QP.prototype.D=function(a){this.I.IA(a?2:1);this.i&&(this.I.ib(this.element,this.i),this.I.Gb(this.element))};
QP.prototype.xa=function(){this.i&&this.Bb.Gf(this);mO.prototype.xa.call(this)};g.w(RP,g.IN);RP.prototype.fd=function(){g.IN.prototype.fd.call(this);this.dialog.focus()};g.w(SP,g.eO);SP.prototype.Yb=function(a){this.u&&this.I.ib(this.element,this.i&&a)};
SP.prototype.C=function(){var a,b,c=null===(b=null===(a=this.I.getVideoData())||void 0===a?void 0:a.accountLinkingConfig)||void 0===b?void 0:b.linked;if(c&&!this.i){var d,e,f,h,l,m;c=null===(d=this.I.getVideoData())||void 0===d?void 0:d.accountLinkingConfig;g.dO(this,TP(null===(e=null===c||void 0===c?void 0:c.menuData)||void 0===e?void 0:e.connectedMenuLabel));this.B=new RP(this.I,TP(null===(f=null===c||void 0===c?void 0:c.menuData)||void 0===f?void 0:f.connectedDialogTitle),TP(null===(h=null===c||
void 0===c?void 0:c.menuData)||void 0===h?void 0:h.connectedDialogMessage),TP(null===(l=null===c||void 0===c?void 0:c.menuData)||void 0===l?void 0:l.confirmButtonText));g.J(this,this.B);d=(null===(m=null===c||void 0===c?void 0:c.menuData)||void 0===m?void 0:m.trackingParams)||null;if(this.u=!!d)this.I.Rg(this.element,this,!0),this.I.xm(this.element,d);this.Bb.Gc(this);this.i=!0}else!c&&this.i&&(this.Bb.Gf(this),this.i=!1)};
SP.prototype.onClick=function(){this.u&&this.I.Gb(this.element);this.Bb.Db();this.B&&this.B.fd()};g.w(UP,g.NP);g.k=UP.prototype;g.k.au=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&(this.D=this.I.qn(),a=this.I.getAvailableQualityLevels(),g.hua(this.I)&&g.iua(this.I)&&a.unshift("missing-qualities"),jua(this.I)&&a.unshift("inline-survey"),g.OP(this,a),a.length)){this.GH();this.enable(!0);return}this.enable(!1)};
g.k.GH=function(){var a=this.I.getPreferredQuality();this.options[a]&&(this.i=this.I.getPlaybackQuality(),this.Xh(a),"auto"===a&&this.kd(this.bj(a)))};
g.k.Bf=function(a){"missing-qualities"!==a&&(g.NP.prototype.Bf.call(this,a),this.I.setPlaybackQuality(a),this.Bb.Db(),this.au())};
g.k.JC=function(a,b,c){var d=this;if("inline-survey"!==a)return g.NP.prototype.JC.call(this,a,b,c);a=[{G:"span",va:"Looks good?"}];c={};for(var e=g.r([!0,!1]),f=e.next();!f.done;c={Ex:c.Ex},f=e.next())c.Ex=f.value,f=new g.U({G:"span",L:"ytp-menuitem-inline-survey-response",U:[c.Ex?g.YK():Ksa()],W:{tabindex:"0",role:"button"}}),f.Qa("click",function(h){return function(){var l=h.Ex,m=g.OM(d.I.app);m&&(m.Ba("iqsr",l?"0":"1"),m.getVideoData().FO=!0);d.Bb.Db();d.au()}}(c)),a.push(f);
return new g.eO({G:"div",L:"ytp-menuitem",W:{"aria-disabled":"true"},U:[{G:"div",Ga:["ytp-menuitem-label"],U:a}]},b)};
g.k.bj=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"a",W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.I.V().K},va:"Missing options?"};if("inline-survey"===a)return"";var c=[zwa(this,a)],d=this.I.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),c.push(zwa(this,this.i,["ytp-menu-label-secondary"])));return{G:"div",U:c}};g.w(VP,g.U);g.k=VP.prototype;g.k.init=function(){this.Aq(this.i);this.Ra("minvalue",this.minimumValue);this.Ra("maxvalue",this.maximumValue)};
g.k.xP=function(a){if(!g.Du(a)){switch(g.Eu(a)){case 37:case 40:var b=-this.J;break;case 39:case 38:b=this.J;break;default:return}this.Aq(this.i+b);g.Cu(a)}};
g.k.vP=function(a){var b=this.i;b+=0>(a.deltaX||-a.deltaY)?-this.D:this.D;this.Aq(b);g.Cu(a)};
g.k.wP=function(a){a=(a-g.Sl(this.u).x)/this.K*this.range+this.minimumValue;this.Aq(a)};
g.k.Aq=function(a,b){b=void 0===b?"":b;a=g.Qf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Ra("valuenow",a);this.Ra("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.K-this.ma)+"px";this.i=a};
g.k.focus=function(){this.ya.focus()};g.w(XP,VP);XP.prototype.Y=function(){this.I.setPlaybackRate(this.i,!0)};
XP.prototype.Aq=function(a){VP.prototype.Aq.call(this,a,YP(this,a).toString());this.B&&(WP(this),this.Aa())};
XP.prototype.Da=function(){var a=this.I.getPlaybackRate();YP(this,this.i)!==a&&(this.Aq(a),WP(this))};g.w(ZP,g.RK);ZP.prototype.focus=function(){this.i.focus()};g.w(Awa,hO);g.w($P,g.NP);g.k=$P.prototype;g.k.bj=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Pa=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);Dwa(this)};
g.k.er=function(a){g.NP.prototype.er.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),Dwa(this),Bwa(this,this.I.getPlaybackRate())):(this.jc(this.K),this.K=null)};
g.k.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||Cwa(this,b);Bwa(this,a)};
g.k.Bf=function(a){g.NP.prototype.Bf.call(this,a);a===this.i?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.Bb.lh()};g.w(bQ,g.NP);g.k=bQ.prototype;g.k.Xh=function(a){g.NP.prototype.Xh.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.bj=function(a){return this.getOption(a).text||""};
g.k.Bf=function(a){g.NP.prototype.Bf.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(cQ,g.iO);cQ.prototype.Af=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Pn[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Xh(e),c.D.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}};
cQ.prototype.jh=function(a,b){this.ea("settingChange",a,b)};g.w(dQ,g.NP);dQ.prototype.getKey=function(a){return a.languageCode};
dQ.prototype.bj=function(a){return this.languages[a].languageName||""};
dQ.prototype.Bf=function(a){this.ea("select",a);this.I.Gb(this.element);g.sO(this.Bb)};g.w(eQ,g.NP);g.k=eQ.prototype;g.k.getKey=function(a){return g.ic(a)?"__off__":a.displayName};
g.k.bj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.Bf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.tM(this.I.V(),this.I.getVideoData()),g.BJ(a)):(this.I.Gb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.NP.prototype.Bf.call(this,a),this.Bb.lh())};
g.k.Pa=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.yl;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.nH(a)),e={};if(b||c){if(b){var f=this.I.getOption("captions","track");e=this.I.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.Pb(e,this.getKey,this);d=g.lm(e,this.getKey);if(h.length&&!g.ic(f)){var l=f.translationLanguage;if(l&&l.languageName){var m=
l.languageName;l=h.findIndex(function(n){return n.languageName===m});
qaa(h,l)}Fwa(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.OP(this,d);this.Xh(h);f&&f.translationLanguage?this.i.Xh(this.i.getKey(f.translationLanguage)):ywa(this.i);b&&this.D.Af(this.I.getSubtitlesUserSettings());this.K.kd(e&&e.length?" ("+e.length+")":"");this.ea("size-change");this.I.ib(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.yP=function(a){var b=this.I.getOption("captions","track");b=g.mc(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)};
g.k.jh=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}Gwa(this,!0);this.J.start();this.D.Af(this.I.getSubtitlesUserSettings())};
g.k.FV=function(a){a||g.Fq(this.J)};
g.k.xa=function(){g.Fq(this.J);g.NP.prototype.xa.call(this)};g.w(fQ,g.qO);g.k=fQ.prototype;g.k.initialize=function(){if(!this.Yd){this.Yd=!0;this.xE=new SP(this.I,this);g.J(this,this.xE);var a=new UP(this.I,this);g.J(this,a);a=new eQ(this.I,this);g.J(this,a);a=new MP(this.I,this);g.J(this,a);this.I.V().uc&&(a=new $P(this.I,this),g.J(this,a));this.I.V().Zb&&!this.I.V().N("web_player_move_autonav_toggle")&&(a=new QP(this.I,this),g.J(this,a));a=new PP(this.I,this);g.J(this,a);LP(this.settingsButton,this.Vd.items.length)}};
g.k.Gc=function(a){this.initialize();this.Vd.Gc(a);LP(this.settingsButton,this.Vd.items.length)};
g.k.Gf=function(a){this.Ab&&1>=this.Vd.items.length&&this.hide();this.Vd.Gf(a);LP(this.settingsButton,this.Vd.items.length)};
g.k.fd=function(a){this.initialize();0<this.Vd.items.length&&g.qO.prototype.fd.call(this,a)};
g.k.show=function(){g.qO.prototype.show.call(this);g.N(this.I.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.qO.prototype.hide.call(this);g.Mq(this.I.getRootNode(),"ytp-settings-shown")};
g.k.Ce=function(a){var b;this.I.ib(this.element,a);null===(b=this.xE)||void 0===b?void 0:b.Yb(a)};g.w(gQ,g.U);gQ.prototype.onClick=function(){var a=this.I.app;a.Ta.Oa("SIZE_CLICKED",!a.nE)};
gQ.prototype.Pa=function(){g.QK(this,this.I.lE()&&!this.I.isFullscreen()&&3!==this.I.getPresentingPlayerType());if(this.Ab){var a=this.I.isWidescreen();if(this.isWidescreen!==a){var b=a?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.isWidescreen?this.Ra("icon",b):Rva(this.transition,this.element,b);this.isWidescreen=a;b=zN(this.I,"Default view","t");var c=zN(this.I,"Theater mode","t");this.Ra("title",a?b:c);wO(this.tooltip)}}};g.w(g.hQ,g.U);g.hQ.prototype.onClick=function(){this.I.toggleSubtitles();this.I.Gb(this.element);if(!this.isEnabled()){var a=!1,b=g.Fv(g.Dv.getInstance(),65);g.AF(this.I.V())&&null!=b&&(a=!b);a&&this.I.V().N("web_player_nitrate_promo_tooltip")&&this.I.ea("showpromotooltip",this.element)}};
g.hQ.prototype.i=function(a){var b,c;null===(c=null===(b=g.CM(this.I))||void 0===b?void 0:b.An())||void 0===c?void 0:c.fd(a)};
g.hQ.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
g.hQ.prototype.Pa=function(){var a=null!=g.gN(this.I.ub()),b=300;this.I.V().D&&(b=480);b=a&&this.I.bb().getPlayerSize().width>=b;g.QK(this,b);this.I.ib(this.element,b);a&&this.Ra("pressed",this.isEnabled())};g.w(g.iQ,g.U);g.k=g.iQ.prototype;
g.k.Qb=function(){var a=this.api.bb().getPlayerSize().width,b=a>=this.K&&(!kQ(this)||!g.T(this.api.vb(),64));g.QK(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);jQ(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.Rb.startTimeMs/1E3);c=g.ML(c);this.B!==c&&(this.Ra("currenttime",
c),this.B=c);b=jQ(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?g.ML((this.Rb.endTimeMs-this.Rb.startTimeMs)/1E3):g.ML(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Ra("duration",b),this.C=b)}a=a.isAtLiveHead;!kQ(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Qb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.kd(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.XN(this.tooltip,this.liveBadge.element)));this.RB(this.api.getLoopRange())};
g.k.RB=function(a){var b=!!this.Rb!==!!a;this.Rb=a;b&&Iwa(this)};
g.k.lW=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Qb();Iwa(this)};
g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.kb;this.u=qH(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",kQ(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.xa=function(){this.i&&this.i();g.U.prototype.xa.call(this)};g.w(nQ,g.U);g.k=nQ.prototype;g.k.hm=function(){var a=this.i.Qe();this.C!==a&&(this.C=a,mQ(this,this.api.getVolume(),this.api.isMuted()))};
g.k.HH=function(a){g.QK(this,350<=a.width)};
g.k.BP=function(a){if(!g.Du(a)){var b=g.Eu(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.Qf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Cu(a))}};
g.k.zP=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.Qf(b/10,-10,10));g.Cu(a)};
g.k.JV=function(){lQ(this,this.u,!0,this.B,this.i.ri());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.AP=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Sl(this.S).x;this.api.setVolume(100*g.Qf((a-c/2)/(b-c),0,1))};
g.k.IV=function(){lQ(this,this.u,!1,this.B,this.i.ri());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
g.k.onVolumeChange=function(a){mQ(this,a.volume,a.muted)};
g.k.rJ=function(){lQ(this,this.u,this.isDragging,this.B,this.i.ri())};
g.k.xa=function(){g.U.prototype.xa.call(this);g.Mq(this.K,"ytp-volume-slider-active")};g.w(g.oQ,g.U);g.oQ.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.QK(this,this.visible);this.api.ib(this.element,this.visible&&this.Z);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Ra("url",a))};
g.oQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.NL(a),!1,!0,!0);if(g.YE(this.api.V())||g.iF(this.api.V()))b=g.pi(b,g.uM("emb_logo"));g.wN(b,this.api,a);this.api.Gb(this.element)};
g.oQ.prototype.wb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.iF(this.api.V())){var b=this.Fa("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{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.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Ra("logoSvg",a)};
g.oQ.prototype.Yb=function(a){g.U.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};g.w(qQ,g.wD);g.k=qQ.prototype;g.k.od=function(){this.Nc.Qb();this.Gg.Qb()};
g.k.xj=function(){var a,b;this.SB();this.td.u?(this.od(),null===(b=this.K)||void 0===b?void 0:b.show()):(g.yQ(this.Nc.tooltip),null===(a=this.K)||void 0===a?void 0:a.hide())};
g.k.gq=function(){this.od();this.Id.start()};
g.k.SB=function(){var a=!this.I.V().i&&300>g.xwa(this.Nc)&&this.I.vb().Ac()&&!!window.requestAnimationFrame,b=!a;this.td.u||(a=b=!1);b?this.J||(this.J=this.T(this.I,"progresssync",this.od)):this.J&&(this.jc(this.J),this.J=null);a?this.Id.isActive()||this.Id.start():this.Id.stop()};
g.k.wb=function(){var a=this.u.Qe(),b=this.I.bb().getPlayerSize(),c=rQ(this),d=Math.max(b.width-2*c,100);if(this.Ja!==b.width||this.Ka!==a){this.Ja=b.width;this.Ka=a;var e=Lwa(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";g.IP(this.Nc,c,e,a);this.u.fc().TB=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-sQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Lx=e;c.Ct();this.SB();!this.I.V().N("html5_player_bottom_linear_gradient")&&this.I.V().N("html5_player_dynamic_bottom_gradient")&&
g.ZO(this.La,b.height)};
g.k.onVideoDataChange=function(){var a=this.I.getVideoData();this.ya.style.background=a.D?a.Ua:"";g.QK(this.Z,a.EB)};g.w(tQ,TO);g.k=tQ.prototype;g.k.SE=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())};
g.k.TE=function(){this.B=!0;this.S.hide()};
g.k.onVideoDataChange=function(a,b){var c;"newdata"===a&&(this.u=this.B=!1,uQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.K=this.enabled=!0;this.text=qP(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.nA(e,d,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Ed(b)}this.onClickCommand=a.tapCommand;Kva(this);
SO(this);this.Vh()}};
g.k.gx=function(){return!this.B&&this.enabled&&(this.u||this.i)};
g.k.Ce=function(a){this.B||((this.u=a)?RO(this):(uQ(this),this.ma.start()),this.Vh())};
g.k.xa=function(){uQ(this);TO.prototype.xa.call(this)};var a3={},vQ=(a3.CHANNEL_NAME="ytp-title-channel-name",a3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",a3.LINK="ytp-title-link",a3.SESSIONLINK="yt-uix-sessionlink",a3.SUBTEXT="ytp-title-subtext",a3.TEXT="ytp-title-text",a3.TITLE="ytp-title",a3);g.w(wQ,g.U);wQ.prototype.onClick=function(a){this.api.Gb(this.element);var b=this.api.getVideoUrl(!g.NL(a),!1,!0);g.YE(this.api.V())&&(b=g.pi(b,g.uM("emb_title")));g.wN(b,this.api,a)};
wQ.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();this.Ra("title",a.title);Mwa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.ac&&c.Qh?(this.Ra("channelLink",c.ac),this.Ra("channelName",c.author),this.Ra("channelTitleFocusable","0")):Mwa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Og;g.O(this.link,vQ.FULLERSCREEN_LINK,c);b.S||!a.videoId||c||a.D&&b.pfpChazalUi?this.i&&(this.Ra("url",null),this.jc(this.i),
this.i=null):(this.Ra("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.T(this.link,"click",this.onClick)))};g.w(g.xQ,g.U);g.k=g.xQ.prototype;g.k.kM=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,Owa(this,a))};
g.k.JS=function(){toa(this.i,this.B,160*this.scale)};
g.k.Wj=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.Y);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.Y);a.addEventListener("focus",this.C);Rwa(this);break;case 3:Rwa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.kM,this),this.i=null),this.api.removeEventListener("videoready",this.ma),this.ya.stop()}this.type=null;this.K&&this.D.hide()};
g.k.cj=function(a){for(var b=0;b<arguments.length;++b);if(this.u)for(b=0;b<arguments.length;b++)g.Fg(arguments[b],this.u)&&this.Wj()};
g.k.xa=function(){null!=this.type&&this.Wj();this.i&&this.i.dispose();g.U.prototype.xa.call(this)};g.w(g.zQ,g.U);g.k=g.zQ.prototype;g.k.Mx=function(){var a=this.I.getPlayerSize(),b=this.I.V(),c=this.I.getVideoData(),d=g.YE(b)&&g.JM(this.I)&&g.T(this.I.vb(),128);this.visible=b.Sj&&240<=a.width&&!c.isAd()&&c.Nf&&!d&&!(c.D&&b.pfpChazalUi);g.QK(this,this.visible);this.icon&&Vwa(this,this.icon);this.I.ib(this.element,this.visible&&this.Z)};
g.k.IH=function(){return this.I.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.I.Gb(this.element);var b=this.I.V(),c=this.IH();b.Y?Swa(this):this.I.RA()?this.I.requestStorageAccess(function(){g.Vv("embedsItpWatchLaterResult",{accepted:!0});mv();Twa(a,c)},function(){g.Vv("embedsItpWatchLaterResult",{accepted:!1});
Uwa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):Twa(this,c)};
g.k.CP=function(){this.isRequestPending=this.i=!1;this.Pa(2)};
g.k.Pa=function(a,b){var c=this.I.V();Vwa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.i?g.qI("Added as $USER_NAME",a):g.qI("Watch later as $USER_NAME",a),image:FF(c)})):this.update({title:"Watch later",image:null});wO(this.tooltip)};
g.k.Yb=function(a){g.U.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};g.w(AQ,g.MN);g.k=AQ.prototype;g.k.fc=function(){return this.tooltip};
g.k.oK=function(){return this.ag};
g.k.Xm=function(a,b){b?this.qk=a:this.qk=null;this.Ri()};
g.k.Lr=function(a,b){if(b)this.Sn.push(a);else for(b=this.Sn.length;0<=b;b--)if(this.Sn[b]===a){this.Sn.splice(b,1);break}rN(this.td,64,0<this.Sn.length)};
g.k.zo=function(){this.api.Ah()&&this.api.lk();return!!this.qk||Wwa(this)||g.MN.prototype.zo.call(this)};
g.k.Ri=function(){var a=!this.zo(),b=a&&this.api.Ah()&&!g.T(this.api.vb(),2)&&!(this.api.getVideoData().D&&this.api.V().pfpChazalUi),c=this.Op&&g.JM(this.api)&&g.T(this.api.vb(),128);a||c?(this.xG.show(),this.yG.show()):(this.xG.hide(),this.yG.hide(),this.tooltip.cj(this.Th.element));b?this.ji.fd():this.ji.Db();this.ag&&Kwa(this.ag,!a);g.MN.prototype.Ri.call(this)};
g.k.oq=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Yl(a),h=d||this.ag&&g.Fg(this.ag.i.element,b),l=d=null;null!=c&&h||(d=g.Yl(b),l=g.Wl(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.ag,d=rQ(b),l=Lwa(b),h=this.api.bb().getPlayerSize().height,c=g.Qf(c,d,d+l-f.width),f=h-sQ(b)-f.height):g.Fg(this.Th.element,b)?(b=this.api.bb().getPlayerSize().width,c=g.Qf(c,12,b-f.width-12),f=this.Qe()?this.TC:this.SC,"gvn"===this.api.V().playerStyle&&(f+=
20),this.Op&&(f-=this.Qe()?26:18)):(b=this.api.bb().getPlayerSize(),c=g.Qf(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.xj=function(a){a&&(this.tooltip.cj(this.Th.element),this.ag&&this.tooltip.cj(this.ag.i.element));this.sz&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.MN.prototype.xj.call(this,a)};
g.k.RE=function(){g.MN.prototype.RE.call(this);this.sz&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.sz&&(this.contextMenu.hide(),this.Xf&&this.Xf.hide()))};
g.k.ij=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.Cl(0,0,c.width,c.height);if(a||this.td.u&&!this.zo()){if(this.api.V().Oj||b)a=this.Qe()?this.TC:this.SC,c.top+=a,c.height-=a;this.ag&&(c.height-=sQ(this.ag))}return c};
g.k.hm=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.Ly.element,b),b.parentElement.insertBefore(this.Ky.element,b.nextSibling))):g.zs(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Ly.detach(),this.Ky.detach());this.wb();this.Cm()};
g.k.Qe=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.D||!1};
g.k.showControls=function(a){this.vy=!a;this.Ri()};
g.k.wb=function(){var a=this.Qe();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.Ri();if(this.uf()&&this.Xf)this.qh&&HO(this.Xf,this.qh),this.shareButton&&HO(this.Xf,this.shareButton),this.Qg&&HO(this.Xf,this.Qg);else{if(this.Xf){a=this.Xf;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.qh&&!g.Fg(this.Hg.element,this.qh.element)&&this.qh.Ea(this.Hg.element);this.shareButton&&!g.Fg(this.Hg.element,
this.shareButton.element)&&this.shareButton.Ea(this.Hg.element);this.Qg&&!g.Fg(this.Hg.element,this.Qg.element)&&this.Qg.Ea(this.Hg.element)}this.Cm();g.MN.prototype.wb.call(this)};
g.k.ED=function(){if(Wwa(this)&&!g.JM(this.api))return!1;var a=this.api.getVideoData();return!g.YE(this.api.V())||2===this.api.getPresentingPlayerType()||!this.jg||((a=this.jg||a.jg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.MN.prototype.ED.call(this):!1};
g.k.Cm=function(){g.MN.prototype.Cm.call(this);this.api.ib(this.title.element,!!this.Fk);this.Ms&&this.Ms.Yb(!!this.Fk);this.channelAvatar.Yb(!!this.Fk);this.overflowButton&&this.overflowButton.Yb(this.uf()&&!!this.Fk);this.shareButton&&this.shareButton.Yb(!this.uf()&&!!this.Fk);this.qh&&this.qh.Yb(!this.uf()&&!!this.Fk);this.Qg&&this.Qg.Yb(!this.uf()&&!!this.Fk);if(!this.Fk){this.tooltip.cj(this.Th.element);for(var a=0;a<this.vx.length;a++){var b=this.vx[a];b.Uf()&&b.Db()}}};
g.k.Tb=function(a){this.ag&&Kwa(this.ag,this.zo());this.Ri();g.MN.prototype.Tb.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.Yl?this.Yl.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Yl?this.Yl.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.xk=function(){return this.contextMenu.Ab?(this.contextMenu.Db(),!0):this.Sn.length?(this.Sn[this.Sn.length-1].Db(),!0):this.qk?(this.qk.Db(),!0):g.MN.prototype.xk.call(this)};
g.k.OA=function(a,b){this.bG=b;this.Lr(a,b);this.wO()};
g.k.wO=function(){var a=this.bG||this.contextMenu.Uf();this.GC!==a&&(this.GC=a,this.api.Oa("onAutonavPauseRequest",this.GC))};
g.k.FR=function(){BQ(this,this.api.getRootNode(),!0).focus()};
g.k.GR=function(){BQ(this,this.api.getRootNode(),!1).focus()};
g.k.An=function(){return this.ag&&this.ag.settingsMenu};
g.k.Xk=function(){this.td.Xk()};
g.k.nz=function(){this.xc.hide()};
g.k.Cq=function(a){this.xc.Cq(!g.$J(a))};
g.k.Rs=function(a,b,c,d){this.ev.Rs(a,b,c,d)};
g.k.pN=function(a,b){this.ev.FA(a,b)};
g.k.ZT=function(){Xwa(this,!0)};
g.k.AU=function(a){Xwa(this,!1,a)};g.w(g.CQ,g.ZM);g.CQ.prototype.Ji=function(){return!1};
g.CQ.prototype.create=function(){var a=this.player.V();g.gF(a)&&a.i?this.chrome=new g.MN(this.player):this.chrome=new AQ(this.player);g.J(this,this.chrome);this.chrome.init();this.player.Ld("ux")};
g.CQ.prototype.zv=function(){return this.chrome};DQ.prototype.getState=function(){return this.store.getState()};
DQ.prototype.dispatch=function(a){return this.store.dispatch(a)};
DQ.prototype.subscribe=function(a){return this.store.subscribe(a)};
DQ.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
DQ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var cxa={captionTrack:225,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},bxa={},HNa=
g.r(Object.entries(cxa)),b3=HNa.next();!b3.done;b3=HNa.next()){var INa=g.r(b3.value),JNa=INa.next().value,KNa=INa.next().value,LNa=JNa,MNa=KNa;MNa&&(bxa[MNa]=LNa)};var dxa=!1,UQ,VQ,WQ,XQ,YQ;ZQ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;d<e;)fxa(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(fxa(this),this.i=0;d<b;)a[d++]^=c[this.i++];return a};var gxa=!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})();aR.prototype.encrypt=function(a,b){return g.H(this,function d(){var e,f=this,h;return g.B(d,function(l){if(1==l.i){e=$Q();if(!e)return l.return(f.i(a,b));ta(l,3);return g.z(l,f.hv(a,b,e),5)}if(3!=l.i)return l.return(l.u);h=va(l);g.Bz(h);gxa=!0;return l.return(f.i(a,b))})})};
aR.prototype.hv=function(a,b,c){return g.H(this,function e(){var f=this,h,l;return g.B(e,function(m){switch(m.i){case 1:if(f.C){m.fb(2);break}return g.z(m,c.importKey("raw",f.B,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:f.C=m.u;case 2:return h={name:"AES-CTR",counter:b,length:128},g.z(m,c.encrypt(h,f.C,a),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})})};
aR.prototype.i=function(a,b){this.u||(this.u=new ZQ(this.B));exa(this.u,b);return this.u.encrypt(a)};
aR.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
bR.prototype.encrypt=function(a,b){this.i||(this.i=new ZQ(this.u));exa(this.i,b);return this.i.encrypt(a)};
bR.prototype.decrypt=function(a,b){return this.encrypt(a,b)};cR.prototype.reset=function(){jxa(this);this.update(this.B)};
cR.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.J.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,ixa(this,this.J,0));for(;b+64<=c;b+=64)ixa(this,a,b);b<c&&(a=a.subarray(b),this.J.set(a,this.u),this.u+=a.length)};
var hxa=[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 c3={},lxa=(c3.INVALID_ENCODER_VERSION="Invalid encoder version",c3.KEY_CREATION_FAILED="Failed to create encoder key",c3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",c3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",c3.WRONG_DATA_TYPE="Encoder cannot process the data type",c3);g.w(dR,g.$v);g.w(fR,qxa);fR.prototype.B=function(a,b){b=eR(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.i.encrypt(a,b)};
fR.prototype.u=function(a,b){if(!(a instanceof Uint8Array))throw mxa(1);var c=new TextDecoder;b=eR(b);a=this.i.decrypt(a,b);return JSON.parse(c.decode(a))};g.w(gR,qxa);gR.prototype.B=function(a){return a};
gR.prototype.u=function(a){if(a instanceof Uint8Array)throw mxa(0);return a};var txa={captionTrack:is,downloadQualityPickerEntity:bs,fakeChannel:Ur,fakePlaylist:Vr,fakePlaylistEntryCollection:Wr,fakeVideo:Yr,fakeVideoDescription:Zr,liveChatPollStateEntity:as,logoEntity:$r,offlineOrchestrationActionWrapperEntity:js,offlineVideoPolicy:ks,offlineVideoStreams:ls,offlineabilityEntity:cs,orchestrationWebSamplingEntity:ds,pinnedProductEntity:hs,playbackData:ms,transfer:ns,ytMainChannelEntity:fs,ytMainDownloadedVideoEntity:es,ytMainVideoEntity:gs};var iR;g.w(qR,g.I);qR.prototype.B=function(a){Exa(this,a.data)};
qR.prototype.xa=function(){this.channel.close()};
var wR,Hxa=void 0;Nxa.prototype.request=function(a,b,c){b=void 0===b?{}:b;return this.locks.request(a,b,function(d){return c(d)})};var DR=g.C.caches,CR,ER;zR.prototype.open=function(a){return DR.open(BR(a))};
zR.prototype.has=function(a){return DR.has(BR(a))};
zR.prototype.delete=function(a){return DR.delete(BR(a))};
zR.prototype.match=function(a,b){return g.H(this,function d(){var e=this,f,h,l,m,n,p;return g.B(d,function(q){switch(q.i){case 1:return g.z(q,e.keys(),2);case 2:f=q.u,h=g.r(f),l=h.next();case 3:if(l.done){q.fb(5);break}m=l.value;return g.z(q,e.open(m),6);case 6:return n=q.u,g.z(q,n.match(a,b),7);case 7:if(p=q.u)return q.return(p);l=h.next();q.fb(3);break;case 5:return q.return()}})})};
g.w(AR,zR);AR.prototype.keys=function(){return g.H(this,function b(){var c,d,e,f,h,l,m,n,p;return g.B(b,function(q){if(1==q.i)return c=[],d=aw("CacheStorage keys"),g.z(q,DR.keys(),2);e=q.u;f=g.r(e);for(h=f.next();!h.done;h=f.next()){l=h.value;var t=l.indexOf(":");m=-1===t?{iA:l}:{iA:l.substring(0,t),datasyncId:l.substring(t+1)};n=m.iA;p=m.datasyncId;p===d&&c.push(n)}return q.return(c)})})};var NNa={QY:"captionTrack",S3:"ytMainChannelEntity",T3:"ytMainDownloadedVideoEntity",U3:"ytMainVideoEntity",D6:"offlineOrchestrationActionWrapperEntity",L6:"offlineVideoPolicy",M6:"offlineVideoStreams",w7:"playbackData",N9:"transfer",n8:"orchestrationWebSamplingEntity"},Kza=Object.keys(NNa).map(function(a){return NNa[a]}),Xxa="captionTrack ytMainChannelEntity ytMainDownloadedVideoEntity ytMainVideoEntity offlineVideoPolicy offlineVideoStreams playbackData transfer".split(" ");bya.prototype.Ce=function(){this.i&&MR(this)};g.w(NR,g.I);NR.prototype.i=function(a){this.api.Oa("onOfflineOperationFailure",a.data)};
NR.prototype.xa=function(){var a;null===(a=this.channel)||void 0===a?void 0:a.close()};g.w(RR,PR);RR.prototype.u=function(a){return g.H(this,function c(){var d,e=this,f,h;return g.B(c,function(l){switch(l.i){case 1:ta(l,2);d=a.entityKey;if(!d)throw Error("EntityKey is missing from the orchestration action.");return g.z(l,rR(e.i,{mode:"readonly",tag:"IDB_TRANSACTION_TAG_RSE"},function(m){return jR(m,d,"orchestrationWebSamplingEntity")}),4);
case 4:f=l.u;if(!f)throw Error("Entity cannot be found in PES.");if("undefined"===typeof f.taskDelayMs)throw Error("Task delay is undefined.");return g.z(l,fya(f.taskDelayMs),5);case 5:return g.z(l,Gxa(e.i,d),6);case 6:return l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",!1));case 2:return h=va(l),yR("OrchestrationWebSamplingEntityController",h),l.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",!1))}})})};var Ywa=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{dha(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],u=l[t],x=(0,c[t])(u,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!==u}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,h=null===(f=e.options)||void 0===f?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.Ty(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.Ty(new g.$v("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=Yb(e.payload);return TQ(d,l,e.entityKey,
e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=QQ(e).entityType;l=TQ(d,m,e,void 0)}catch(n){if(n instanceof Error)g.Ty(new g.$v("Failed to deserialize entity key",{entityKey:e,originalMessage:n.message})),l=d;else throw n;}}else l=d;return l},a);
case "REPLACE_ENTITY":var c=b.payload;return TQ(a,c.entityType,c.key,c.raa);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return TQ(h,e,l,f[l])},d)},a);
default:return a}}}),Jxa=new DQ;g.w(SR,PR);SR.prototype.u=function(a){return IR(a)?iya(this,a):JR(a)?jya(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};g.w(UR,PR);UR.prototype.u=function(a){return IR(a)?mya(this,a):JR(a)?nya(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_UPDATE"===a.actionType&&a.entityKey?this.handleUpdate(a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
UR.prototype.handleUpdate=function(a){return g.H(this,function c(){var d,e=this,f;return g.B(c,function(h){switch(h.i){case 1:return d=HR(a),g.z(h,uR(e.i,a.entityKey,"transfer"),2);case 2:f=h.u;if(!f||"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"!==f.transferState)return h.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d));ta(h,3);f.transferState="TRANSFER_STATE_TRANSFER_IN_QUEUE";return g.z(h,tR(e.i,f,"transfer"),5);case 5:ua(h,4);break;case 3:return va(h),h.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE",
d,void 0,"OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"));case 4:return h.return(new QR("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS",d))}})})};g.w(VR,PR);VR.prototype.u=function(a){return IR(a)?sya(this,a):JR(a)?tya(this,a):"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"===a.actionType&&a.entityKey?uya(this,a):Promise.reject(Error("Unsupported action type: "+a.actionType))};
var wya=[10];var Oya=["OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"];var ZR;Eya.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.w(bS,g.I);bS.prototype.xa=function(){this.K&&this.K();g.I.prototype.xa.call(this)};
bS.prototype.createAction=function(a,b){var c=QQ(a.entityKey).entityType,d=zy();return new WR(c,d,a,b.actionId,b.rootActionId)};
bS.prototype.Y=function(a){var b;return g.H(this,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i){if(e.isDisposed())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.r(f);for(m=l.next();!m.done;m=l.next())n=m.value,p=QQ(n),q=p.entityId,Gya(e.u,q)||h.push(n);return g.z(u,Qya(e,h),2)}t=u.u;return g.z(u,dS(e,t),0)})})};Tya.prototype.B=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p;return g.B(b,function(q){if(1==q.i)return g.z(q,vR(c.u,"orchestrationWebSamplingEntity"),2);if(3!=q.i){d=q.u;if(50<d.length)return q.return();e=c.J();f=c.D();h={id:RQ(f,"orchestrationWebSamplingEntity"),taskDelayMs:e.duration,addedTimestampMs:(0,g.Q)().toString(),fakeChildren:Uya(),fakeResponseJson:Array(102401).join("a")};l={priority:5};m={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h.id,actionMetadata:l};
n=new WR("orchestrationWebSamplingEntity","W_"+f+"|"+e.bucket+"|"+e.duration,m);p=YR(n);$R(n,5);return g.z(q,rR(c.u,{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WSE"},function(t){return kw.all([mR(t,h,"orchestrationWebSamplingEntity"),mR(t,p,"offlineOrchestrationActionWrapperEntity")])}),3)}c.C();
c.i+=1;10>c.i&&g.Lu(0,c.B.bind(c),Math.floor(Pf(3E4,3E5)));g.sa(q)})})};Zya.prototype.info=function(){};g.k=$ya.prototype;
g.k.iU=function(a){var b,c;return g.H(this,function e(){var f=this,h;return g.B(e,function(l){if(!g.T(a.state,128))return l.fb(0);var m=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,n=null===(c=a.state.getData())||void 0===c?void 0:c.CF;h="net.retryexhausted"===m&&(null===n||void 0===n?0:n.includes("net.connect"))?"TRANSFER_FAILURE_REASON_NETWORK_LOST":(null===m||void 0===m?0:m.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.z(l,f.hq(f.player.getVideoData().videoId,
h),0)})})};
g.k.hq=function(a,b){return g.H(this,function d(){var e=this;return g.B(d,function(f){if(1==f.i){if(e.u)return f.return();e.u=!0;return"TRANSFER_FAILURE_REASON_NETWORK_LOST"===b?(fza(e,a,!1),f.fb(0)):g.z(f,eS(e,a),3)}XF(a,4);return g.z(f,e.i.hq(b),0)})})};
g.k.Hs=function(a){2===a.status?(a.status!==this.B&&(jS(this.i),XF(a.videoId,2)),a.Lw&&vza(this.i,a.videoId,a.Lw)):4===a.status?(eS(this,a.videoId),this.hq(a.videoId,"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&uza(this.i);this.B=a.status;this.api.Oa("localmediachange",{videoId:a.videoId,status:a.status})};
g.k.fF=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(c.u)return e.return();c.u=!0;d=c.player.getVideoData().videoId;return g.z(e,eS(c,d),2)}return g.z(e,c.i.fF(),0)})})};
g.k.N=function(a){return this.api.V().N(a)};g.w(fS,g.I);fS.prototype.xa=function(){this.u&&this.u();g.I.prototype.xa.call(this)};
fS.prototype.B=function(a){var b;return g.H(this,function d(){var e,f,h,l,m,n,p,q=this;return g.B(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=QQ(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.z(t,hza(q,f),0)})})};g.w(gS,g.I);g.k=gS.prototype;g.k.xa=function(){this.K&&this.K();this.S.dispose();this.B.dispose();this.ya&&Ae(this.D.B,this.ya);this.ma&&Ae(this.D.B,this.ma);g.I.prototype.xa.call(this)};
g.k.sW=function(a){this.i&&this.C&&fza(this.J,this.C,void 0===a?!1:a);this.B.stop()};
g.k.MW=function(){this.i?nza(this,this.i):hS(this)};
g.k.DP=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){switch(e.i){case 1:if(!d.i){e.fb(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.fb(3);break}return g.z(e,uR(d.u,d.i.key,"transfer"),4);case 4:d.i=e.u;if(d.i){e.fb(3);break}return g.z(e,oza(d),3);case 3:if(d.i)return e.return();case 2:return g.z(e,hS(d),0)}})})};
g.k.hq=function(a,b){return g.H(this,function d(){var e=this,f;return g.B(d,function(h){if(1==h.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 l=!1;break a;default:l=!0}return l&&wza(e)?g.z(h,lS(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),3):g.z(h,xza(e,a),3)}iS(e);f=hS(e,!0);b&&b(f);g.sa(h)})})};
g.k.fF=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n;return g.B(c,function(p){if(1==p.i)return wza(d)?g.z(p,lS(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.z(p,xza(d,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=p.i)return e=QQ(d.i.key).entityId,GR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:e,ut:d.i}),f=yya(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},h=RQ(e,
"playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=YR(new WR("playbackData",e,l)),g.z(p,tR(d.u,m,"offlineOrchestrationActionWrapperEntity"),3);iS(d);n=hS(d,!0);a&&a(n);g.sa(p)})})};
var d3={},mS=(d3.TRANSFER_STATE_TRANSFERRING=1,d3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,d3);g.k=Cza.prototype;g.k.UB=function(){cya(this.u)};
g.k.isOrchestrationLeader=function(){return this.u.i};
g.k.refreshAllVideos=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(!c.J.Se())return e.return(Iza(c));d=c.Nw;return g.z(e,Hza(c),2)}return e.return(d.call(c,e.u,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})};
g.k.deleteVideos=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){return e.return(d.Nw(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.deleteAllVideos=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return d.return(c.Nw(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})};
g.k.Nw=function(a,b,c){return g.H(this,function e(){var f=this,h,l,m;return g.B(e,function(n){if(1==n.i)return g.z(n,xR(),2);h=n.u;if(!h||!f.X.N("woffle_orchestration"))return n.return([]);l=a.map(function(p){var q=RQ(p,"ytMainDownloadedVideoEntity");q={actionType:b,entityKey:q,actionMetadata:Object.assign(Object.assign({},yya()),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(q.actionMetadata.priority=0);p=new WR("ytMainDownloadedVideoEntity",p,q);return YR(p)});
m=Fxa(h,l);f.UB();return n.return(m)})})};var oS=[],cHa=!1;g.wW=Ve(function(){var a="";try{var b=g.zg("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.pS,QJ);g.k=g.pS.prototype;g.k.isView=function(){return!0};
g.k.JF=function(){var a=this.ra.getCurrentTime();if(a<this.start)try{var b=this.ra.Sf(),c=HD(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Gp=function(){return JD(this.ra.Gp(),this.start,this.end)};
g.k.Sf=function(){return JD(this.ra.Sf(),this.start,this.end)};
g.k.Mv=function(){return JD(this.ra.Mv(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.ra.getCurrentTime()-this.start};
g.k.MA=function(a){this.ra.MA(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.i?this.end-this.start:this.ra.getDuration()-this.start};
g.k.play=function(){if(this.JF()){this.ra.getCurrentTime();try{this.ra.MA(this.start)}catch(a){}}return this.ra.play()};
g.k.Ib=function(){var a=QJ.prototype.Ib.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.ra.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.ra.removeEventListener(a,b)};
g.k.Hx=function(){return this.ra.Hx()};
g.k.vr=function(a){this.ra.vr(a)};
g.k.Ep=function(){return this.ra.Ep()};
g.k.playVideo=function(){return this.ra.playVideo()};
g.k.iD=function(){this.ra.iD()};
g.k.gD=function(){this.ra.gD()};
g.k.Qo=function(){return this.ra.Qo()};
g.k.Le=function(){return this.ra.Le()};
g.k.Cf=function(){return this.ra.Cf()};
g.k.Kx=function(a){this.ra.Kx(a)};
g.k.EA=function(){this.ra.EA()};
g.k.getPlaybackRate=function(){return this.ra.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.ra.setPlaybackRate(a)};
g.k.Dp=function(){return this.ra.Dp()};
g.k.setLoop=function(a){this.ra.setLoop(a)};
g.k.canPlayType=function(a,b){return this.ra.canPlayType(a,b)};
g.k.Im=function(){return this.ra.Im()};
g.k.Xt=function(){return this.ra.Xt()};
g.k.Ik=function(){return this.ra.Ik()};
g.k.Wy=function(){return this.ra.Wy()};
g.k.Xs=function(a){this.ra.Xs(a)};
g.k.Ix=function(){return this.ra.Ix()};
g.k.load=function(){this.ra.load()};
g.k.pause=function(){this.ra.pause()};
g.k.uh=function(){return this.ra.uh()};
g.k.Xy=function(){return this.ra.Xy()};
g.k.aj=function(){return this.ra.aj()};
g.k.pe=function(){return this.ra.pe()};
g.k.Jx=function(){return this.ra.Jx()};
g.k.qf=function(){return this.ra.qf()};
g.k.Ao=function(){return this.ra.Ao()};
g.k.togglePictureInPicture=function(){this.ra.togglePictureInPicture()};
g.k.zn=function(){return this.ra.zn()};
g.k.dr=function(){return this.ra.dr()};
g.k.setSize=function(a){this.ra.setSize(a)};
g.k.getVolume=function(){return this.ra.getVolume()};
g.k.setVolume=function(a){this.ra.setVolume(a)};
g.k.setAttribute=function(a,b){this.ra.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.ra.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.ra.hasAttribute(a)};
g.k.Iu=ba(22);g.k.mx=ba(24);g.k.nx=ba(26);g.k.Cr=ba(28);g.k.tv=function(){return this.ra.tv()};
g.k.Lm=function(a){this.ra.Lm(a)};
g.k.getStyle=function(a){return this.ra.getStyle(a)};
g.k.iE=function(){return this.ra.iE()};
g.k.stopVideo=function(){this.ra.stopVideo()};
g.k.kD=function(a){this.ra.kD(a)};
g.k.audioTracks=function(){return this.ra.audioTracks()};rS.prototype.Qk=function(a,b){var c=this;b=void 0===b?1:b;this.i+=b;this.B+=a;var d=a/b;qS.forEach(function(e,f){d<e||(c.u[f]+=b)})};
rS.prototype.toString=function(){return""};
var qS=[20,100,500,2E3];g.k=Sza.prototype;g.k.isActive=function(){return!0};
g.k.qz=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.tB=a.prototype[e],d.wB=b[e],a.prototype[e]=function(f){return function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];m=(0,g.Q)();l=f.tB.apply(this,l);sS(c,f.wB,(0,g.Q)()-m);return l}}(d)),d={tB:d.tB,
wB:d.wB}}};
g.k.Co=function(a){return new Rza(a)};
g.k.fn=function(a,b){b=void 0===b?1:b;a instanceof Rza&&(sS(this,a.name,(0,g.Q)()-a.startTimeMs,b),a.i=!0)};
g.k.EF=function(a,b){var c=void 0===c?1:c;var d=(0,g.Q)();b();sS(this,a,(0,g.Q)()-d,c)};
g.k.VJ=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.B).toString(),e=0;e<qS.length;++e)if(0<c.u[e])d+="."+qS[e].toString()+"_"+Math.round(c.u[e]).toString();else break;c=d}c&&(a[b]=c)}this.profiles=new Qza;return a};
g.k.toString=function(){return""};g.k=tS.prototype;g.k.isActive=function(){return!1};
g.k.qz=function(){};
g.k.Co=function(){};
g.k.fn=function(){};
g.k.EF=function(a,b){b()};
g.k.VJ=function(){return{}};
g.k.toString=function(){return""};var e3,xX,f3,xU,jHa;e3=new tS;xX=ts("html5_enable_profiler")||ts("html5_onesie_enable_profiler")||ts("html5_offline_encryption_enable_profiler")||0<ts("html5_performance_impact_profiling_timer_ms")?new Sza:new tS;g.wS=ts("html5_enable_profiler")?xX:e3;f3=ts("html5_onesie_enable_profiler")?xX:e3;xU=ts("html5_offline_encryption_enable_profiler")?xX:e3;jHa=ts("html5_performance_impact_profiling_timer_ms")?xX:e3;uS.prototype.then=function(a,b){return this.promise.then(a,b)};
uS.prototype.resolve=function(a){this.u(a)};
uS.prototype.reject=function(a){this.i(a)};g.w(vS,g.I);g.k=vS.prototype;g.k.isFinished=function(){return 6===this.status.status};
g.k.getStatus=function(){return this.status};
g.k.bp=function(){var a=this.i.getVideoData(),b=this.u.getVideoData();if(a.C){var c;if(c=a.i){c=a.i;for(var d=!1,e=!1,f=g.r(Object.values(c.i)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.i["0"]&&(e=!0);c=!(d&&e)}if(c)this.oa();else if(this.i.jd()){h=Pza(this.policy,this.i,this.u,this.Kj);f=Tza(this);c=f.mR;e=f.QL;d=f.FJ;f=f.PL;if(!this.J){var l=1E3*this.u.Dh(),m=this.i.Dh();m=1E3*(d-c-m);h&&"in-the-past"===h&&(m=0);a=
a.isAd();this.u.Rw(l,m,a);this.J=!0}h?this.Ke("cannot_apply"+h+";transitionTimeMs."+this.Kj):2===this.status.status?$za(this):(a=this.i.Ep())?a.i||a.u?!SD(a)&&g.St()?this.Ke("mse_closed"):b.i&&sB(b.i)&&a.u&&!a.u.Ty()?this.Ke("encr_upgrade"):(b=this.i.jd(),b.Ik()?this.Ke("elem_ended"):0>e?this.Ke("next_player_future"):(this.D=d,this.B=Ila(a,c,d,!0),this.C=Ila(a,e,f,!1),a=this.u.getVideoData().clientPlaybackNonce,this.i.Ba("gaplessPrep","cpn."+a),yS(this.i,this.B),this.i.setMediaElement(Uza(b,c,d,!this.i.getVideoData().isAd())),
xS(this,2),$za(this))):this.oa():this.oa()}else this.Ke("no-elem")}else this.oa()};
g.k.gr=function(a){var b=Zza(this).FN,c=a===b;b=c?this.B.i:this.B.u;c=c?this.C.i:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;GD(a.kf(),d-.01)&&(xS(this,4),b.isActive=!1,b.Bx=b.Bx||b.isActive,this.u.Ba("sbh","1"),c.isActive=!0,c.Bx=c.Bx||c.isActive);a=this.C.u;this.C.i.isActive&&a.isActive&&xS(this,5)}};
g.k.qM=function(){4<=this.status.status&&6>this.status.status&&this.Ke("player-reload-after-handoff")};
g.k.Ke=function(a){if(!this.isDisposed()&&!this.isFinished()){this.oa();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.u){var c=this.u.getVideoData().clientPlaybackNonce;this.i.Ba("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ja=!1;b&&iW(a);a.Wa&&SCa(a.Wa)}this.Wk.reject(void 0);this.dispose()}};
g.k.xa=function(){Yza(this);this.i.unsubscribe("newelementrequired",this.qM,this);if(this.B){var a=this.B.u;this.B.i.xd.unsubscribe("updateend",this.gr,this);a.xd.unsubscribe("updateend",this.gr,this)}g.I.prototype.xa.call(this)};
g.k.Lc=function(a){g.eI(a,128)&&this.Ke("player-error-event")};
g.k.oa=function(){};g.w(AS,g.I);AS.prototype.clearQueue=function(){this.oa();this.C&&this.C.reject("Queue cleared");BS(this)};
AS.prototype.xs=function(){return!this.u};
AS.prototype.xa=function(){BS(this);g.I.prototype.xa.call(this)};
AS.prototype.oa=function(){};g.w(ES,g.R);g.k=ES.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:dAa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Ii=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Ce())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Ce())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Ce())};
g.k.Ys=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Ce())};
g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.Ce())};
g.k.qf=function(){return this.i};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Tr=function(){return this.fullscreen};
g.k.Ie=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return dAa()};
g.k.us=function(){return this.pictureInPicture};
g.k.qs=function(){return this.u};
g.k.Ce=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Ie(),this.isInline(),this.us(),this.qs());a!==this.D&&this.ea("visibilitystatechange");this.D=a};
g.k.xa=function(){gAa(this.C);g.R.prototype.xa.call(this)};g.w(g.IS,g.I);g.k=g.IS.prototype;g.k.onCueRangeEnter=function(a){this.Da.push(a);var b=this.B.get(a),c=null==b;this.Ka.add(a.u);c||this.Ca.Ba("sdai","enterAdCueRange");if(this.Ja){this.Ja=!1;if(!c){var d=this.u.find(function(e){return e.cpn===b});
d&&(this.api.ea("serverstitchedvideochange",d.Dc,d.Gu),this.Ca.Ba("sdai",{ssvc:"midab"}),this.Wu=1)}this.S=!1}else if(this.i){if(this.i.Pp)this.Ca.Ba("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Kf,cpn:b,currentTime:this.Ca.getCurrentTime()}),this.X.N("web_player_same_transition_fallback_killswitch")||(d=this.Ca.getCurrentTime(),a={Ad:a,isAd:!c,Pp:!0,Kf:d,adCpn:b},d={Ad:this.i.Ad,isAd:this.i.isAd,Pp:!1,Kf:d,adCpn:this.i.adCpn},this.Ka.delete(this.i.Ad.u),
LS(this,a,d));else{if(this.i.Ad===a){this.Ca.Ba("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Kf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Ca.Ba("sdai",{dchtsc:b});this.i=void 0;return}d={Ad:a,isAd:!c,Pp:!0,Kf:this.Ca.getCurrentTime(),adCpn:b};LS(this,d,this.i)}this.i=void 0;this.S=!1}else this.i={Ad:a,isAd:!c,Pp:!0,Kf:this.Ca.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.X.N("web_player_same_transition_fallback_killswitch")||this.Ka.has(a.u)){this.Ka.delete(a.u);this.Da=this.Da.filter(function(d){return d!==a});
this.Ja&&(this.S=this.Ja=!1,this.Ca.Ba("sdai","cref"));var b=this.B.get(a),c=null==b;if(this.i){if(this.i.Pp){if(this.i.Ad===a){this.Ca.Ba("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.Kf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Ca.Ba("sdai",{dchtsc:b});this.i=void 0;return}c={Ad:a,isAd:!c,Pp:!1,Kf:this.Ca.getCurrentTime(),adCpn:b};LS(this,this.i,c)}else this.Ca.Ba("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn,
transitionTime:this.i.Kf,upcomingCpn:b,contentCpn:this.Ca.getVideoData().clientPlaybackNonce,currentTime:this.Ca.getCurrentTime()});this.i=void 0;this.S=!1}else this.i={Ad:a,isAd:!c,Pp:!1,Kf:this.Ca.getCurrentTime(),adCpn:b};this.X.N("web_player_halftime_dai")&&(c=this.u.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.Ca.getCurrentTime()<this.Ca.hj()&&GS(this,Infinity))}else this.Ca.Ba("sdai","ignore_single_exit")};
g.k.isAdPlaying=function(a){return!!NS(this,1E3*a)};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.S=!0;if(void 0===b?0:b)GS(this,a);else{b=this.api.Jc();var d=b===this.Y?this.ya:null;OS(this,!1);this.Ya=a;null!=c&&this.Ua.start(c);b&&(this.ya=d||b.getPlayerState(),NX(b),this.Y=b)}};
g.k.xa=function(){OS(this,!1);QS(this);g.I.prototype.xa.call(this)};
g.k.oa=function(){};
g.k.aG=function(a){this.jb=a;this.Ca.Ba("sdai","swebm."+a)};
g.k.lj=function(a,b,c){if(c&&b){var d=this.ma.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.wB(c);this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{hdlredir:1,itag:b,seg:a,hostport:yB(c)});d.locations.set(e,c)}}};
g.k.Pr=function(a,b,c,d){var e,f,h,l=Number(c.split(";")[0]),m=3===d;if(g.rAa(this,b))return this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{gdu:"undec",seg:b,itag:l}),null;a=SS(this,a,b);this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{gdu:1,seg:b,itag:l,pb:""+!!a});if(!a)return US(this,b,m),null;if(this.ac&&a.errorCount>=this.ac)return this.Ca.Ba("sdai",{gdu:1,seg:b,itag:l,err:a.errorCount}),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)||
void 0===e?void 0:e.streamingData)||void 0===f?void 0:f.adaptiveFormats;if(!n)return this.Ca.Ba("sdai",{gdu:"noadpfmts",seg:b,itag:l}),US(this,b,m),null;var p=n.find(function(q){return q.itag===l});
if(!p||!p.url){a={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:l,itags:""};if(!this.X.N("html5_ssdai_log_missing_itags_killswitch")){d=[];c=g.r(n);for(n=c.next();!n.done;n=c.next())d.push(n.value.itag);a.itags=d.join(",")}this.Ca.Ba("sdai",a);US(this,b,m);return null}n=!this.X.N("html5_ssdai_decipher_killswitch");a.locations.set(l,new g.wB(p.url,n))}n=a.locations.get(l);if(!n)return this.Ca.Ba("sdai",{gdu:"nourl",seg:b,itag:l}),US(this,b,m),null;n=new qC(n);this.jb&&n.set("dvc","webm");(c=pAa(this,
b-1,c,d))&&n.set("daistate",c);a.iG&&b>=a.iG&&n.set("skipsq",""+a.iG);(c=this.Ca.getVideoData().clientPlaybackNonce)&&n.set("cpn",c);p=[];a.gg&&(p=sAa(this,a.gg),0<p.length&&n.set("acpns",p.join(",")));this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{ast:a.Hc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn});m||this.ma.set(b,a);this.X.N("web_player_ssdai_acpns_aids_logging_killswitch")||(m=n.get("aids"),((null===(h=null===m||void 0===m?void 0:m.split(","))||void 0===h?void 0:h.length)||0)!==
p.length&&(a.gg?this.Ca.Ba("sdai",{acpns_aids_nm:1,ids:uAa(this,a.gg).join("_"),aids:null===m||void 0===m?void 0:m.replace(/,/g,"_"),cpn:c,trackType:d}):this.Ca.Ba("sdai",{acpns_aids_nm:"noAdBreakId",cpn:c})));m=n.Wd();2048<(null===m||void 0===m?void 0:m.length)&&this.Ca.Ba("sdai",{urltoolong:1,sq:b,itag:l,len:m.length});m&&(d=a.cpn,b=a.gg,wAa(this,d,b),b&&!this.Fb.has(b)&&(a=tAa(this,d,b),d=vAa(this,b),this.Ca.Ba("sdai",{iofa:a}),this.Ca.Ba("sdai",{noawnzd:d-a}),this.Fb.add(b)));return m};
g.k.hG=function(a,b){if(a=SS(this,a,b)){a=a.gg;this.Ca.Ba("sdai",{skip_adbreakid:a});for(var c=g.r(this.u),d=c.next();!d.done;d=c.next())d=d.value,d.gg===a&&(d.iG=b)}};
g.k.mF=function(a,b,c,d,e,f,h,l){l&&(h?this.Sa.set(a,l):this.Aa.set(a,l));if(h)if(d.length&&e.length)for(c=1E3*(b+RS(this)),a={},b=g.r(d.entries()),h=b.next();!h.done;a={Em:a.Em},h=b.next()){l=g.r(h.value);h=l.next().value;l=l.next().value;a.Em=l;var m=1E3*e[h];if(a.Em===this.Ca.getVideoData().clientPlaybackNonce)TS(this,c,c+m,!1),c+=m;else{this.zb.has(a.Em)||(this.Ca.Ba("sdai","adCpnFromEmsg"),this.zb.add(a.Em));l=void 0;for(var n=g.r(this.B),p=n.next();!p.done;p=n.next()){var q=g.r(p.value);p=q.next().value;
q=q.next().value;q===a.Em&&(l=p)}l&&l.start<=c&&l.end>=c+m||(n=!1,l?c<l.start?l.start=c:l.end<c+m&&(l.end=c+m):(l=mAa(c,c+m),this.B.set(l,a.Em),this.Ca.Ba("sdai","newAdCR"),n=!0),(m=this.u.find(function(t){return function(u){return u.cpn===t.Em}}(a)))&&f.length===d.length&&(c=c/1E3-f[h],m.Gu=null!=m.Gu?Math.min(m.Gu,c):c),c=l.end,TS(this,l.start,l.end,!0),n&&this.Ca.addCueRange(l))}}else 5!==c&&4!==c||TS(this,1E3*(b+RS(this)),1E3*(b+RS(this))+5E3,!1)};
g.k.Bv=ba(31);g.k.Zd=function(a){this.Ca.Ba("timelineerror",a);this.oa()};
g.k.Pv=function(a){this.K&&this.J&&this.Z.push(this.J);!this.X.N("web_player_skip_fetched_cuepoint_killswitch")&&a&&this.J&&this.kb.push(this.J);this.J=null;this.Ca.Pv(a)};
g.k.QD=function(a){var b;a.identifier&&this.Zb.has(a.identifier)?(this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{startnoad:a.identifier}),VS(this)):on(this.Z,function(c){return c.identifier===a.identifier})?(this.Ca.Ba("sdai",{timedoutcp:1}),this.D.start(0)):!this.X.N("web_player_skip_fetched_cuepoint_killswitch")&&on(this.kb,function(c){return c.identifier===a.identifier})?(this.Ca.Ba("sdai","fetchedcp"),VS(this)):this.D.isActive()?this.Ca.Ba("sdai","racingcp_"+(null===(b=this.J)||void 0===
b?void 0:b.identifier)+"_"+a.identifier):(this.qb=(new Date).getTime()/1E3,this.X.N("html5_high_res_logging")&&this.Ca.Ba("sdai",{adf:1}),this.K=!1,this.D.start(),this.J=a,this.Aa.clear(),this.Sa.clear(),this.X.N("enable_h5_ssdai_decoration_records_clear_killswitch")&&this.ma.clear(),this.La=[])};
g.k.Rv=function(a,b){(a=SS(this,a,b))&&a.errorCount++};
g.k.Yn=function(a){var b;this.Zb.add(a);(null===(b=this.J)||void 0===b?void 0:b.identifier)===a&&VS(this)};
var kAa=0;g.w(WS,g.I);g.k=WS.prototype;g.k.onCueRangeEnter=function(a){if(this.u===this.api.Jc()){var b=this.J.get(a);if(b){var c=b.target;this.oa();DAa(this,c,b.Kj,a)}else this.Zd("e.unexpectedCueRangeTriggered")}else if(b=this.i.find(function(e){return e.Zm.Ad===a})){var d=b.Zm;
this.oa();c=d.target;d=d.Kj;c?DAa(this,c,d,a):CAa(this,b.pd,d,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.K;ZS(this);if(a){YS(this,a)||this.Zd("e.unexpectedPresentingPlayer");var b=this.api.Jc();a=a.Zm;this.oa();b.addCueRange(a.Ad)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)xAa(this,a);else{b=this.api.Jc();var d=b===this.C?this.D:null;aT(this,!1);this.Z=a;null!=c&&this.S.start(c);b&&(this.D=d||b.getPlayerState(),NX(b),this.C=b)}};
g.k.Nh=function(a){g.eI(a,128)&&GAa(this)};
g.k.isManifestless=function(){return DG(this.u.getVideoData())};
g.k.xa=function(){aT(this,!1);cT(this);g.I.prototype.xa.call(this)};
g.k.oa=function(){};
g.k.Zd=function(a){this.u.Ba("timelineerror",a)};
var yAa=0;var IAa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(fT,g.I);fT.prototype.get=function(a){dT(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
fT.prototype.set=function(a,b,c){this.remove(a,!0);dT(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.Q)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&gT(this,c,!0);eT(this)};
fT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(gT(this,c,b),g.Ab(this.data,function(d){return d.key===a}),eT(this))};
fT.prototype.xa=function(){var a=this;g.I.prototype.xa.call(this);this.data.forEach(function(b){gT(a,b,!0)});
this.data=[]};g.w(CT,g.nr);CT.prototype.ea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(this.D.has(a))return this.D.get(a).push(c),!0;d=!1;try{for(c=[c],this.D.set(a,c);c.length;)d=g.nr.prototype.ea.call.apply(g.nr.prototype.ea,[this,a].concat(g.v(c.shift())))}finally{this.D.delete(a)}return d};MT.prototype.add=function(a){this.i=(this.i+1)%this.data.length;this.data[this.i]=a};
MT.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)};
MT.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.i=this.data.length-1};g.w(OT,g.I);OT.prototype.start=function(){this.u.start()};
OT.prototype.stop=function(){this.u.stop()};
OT.prototype.clear=function(){for(var a=g.r(this.i.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
OT.prototype.sample=function(){for(var a=g.r(this.B),b=a.next();!b.done;b=a.next()){var c=g.r(b.value);b=c.next().value;c=c.next().value;this.i.has(b)||this.i.set(b,new RT(ONa.has(b)));this.i.get(b).update(c())}this.u.start()};
var ONa=new Set(["networkactivity"]);RT.prototype.update=function(a){this.u?(this.buffer.add(a-this.i||0),this.i=a):this.buffer.add(a)};
RT.prototype.clear=function(){this.buffer.clear();this.i=0};g.w(ST,g.I);ST.prototype.xa=function(){g.I.prototype.xa.call(this);this.i=null;this.u&&this.u.disconnect()};g.PNa=Ve(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var g3;g3={};g.TT=(g3.STOP_EVENT_PROPAGATION="html5-stop-propagation",g3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",g3.IV_DRAWER_OPEN="ytp-iv-drawer-open",g3.MAIN_VIDEO="html5-main-video",g3.VIDEO_CONTAINER="html5-video-container",g3.HOUSE_BRAND="house-brand",g3);g.w(UT,g.U);g.k=UT.prototype;g.k.Lm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];g.Lq(this.element,b)};
g.k.Cg=function(){this.Jb&&(this.Jb.removeEventListener("focus",this.bF),g.Dg(this.Jb),this.Jb=null)};
g.k.eD=function(){this.isDisposed();var a=this.app.V();a.Wi||this.Lm("tag-pool-enabled");a.J&&this.Lm(g.TT.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Lm("ytp-gvn"),this.element.style.backgroundColor="transparent");a.jb&&(this.XC=g.dv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.ax=function(a){cF(this.app.V());this.mz=!a;VT(this)};
g.k.resize=function(){if(this.Jb){var a=this.rg();if(!a.isEmpty()){var b=this.Os;b=!g.Xf(a,new g.Wf(b.width,b.height));var c=RAa(this);b&&(this.Os.width=a.width,this.Os.height=a.height);a=this.app.V();(c||b||a.jb)&&this.app.Ta.ea("resize",this.getPlayerSize())}}};
g.k.ds=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Jb){var b=this.app.V();$t&&(this.Jb.setAttribute("x-webkit-airplay","allow"),a.title?this.Jb.setAttribute("title",a.title):this.Jb.removeAttribute("title"));Toa(a)?this.Jb.setAttribute("disableremoteplayback",""):this.Jb.removeAttribute("disableremoteplayback");this.Jb.setAttribute("controlslist","nodownload");b.yl&&a.videoId&&(this.Jb.poster=a.He("default.jpg"))}b=g.JG(a,"yt:bgcolor");this.Tu.style.backgroundColor=b?b:"";this.GE=RE(g.JG(a,"yt:stretch"));this.HE=
RE(g.JG(a,"yt:crop"),!0);g.O(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.OD=RE(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.lJ=a;this.resize()};
g.k.Ii=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ta.isFullscreen();if(b&&Qt())return new g.Wf(window.outerWidth,window.outerHeight);if(b||a.dk){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.gw&&this.gw.media===a||(this.gw=window.matchMedia(a));var c=this.gw&&this.gw.matches}if(c)return new g.Wf(window.innerWidth,window.innerHeight)}else{if(!isNaN(this.xv.width)&&!isNaN(this.xv.height))return this.xv.clone();if(this.mB&&this.PG&&!this.app.isWidescreen()&&
this.app.V().N("web_player_fast_sizing_killswitch"))for(a=0;a<this.mB.length;a++)if(b=this.mB[a],b.query.matches)return new g.Wf(b.size.width,b.size.height)}return new g.Wf(this.element.clientWidth,this.element.clientHeight)};
g.k.rg=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize();return a&&this.xF&&768<b.width?new g.Wf(.46*b.width,b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.GE)?PAa(this):this.GE};
g.k.getVideoContentRect=function(a){var b=this.rg();a=QAa(this,b,this.getVideoAspectRatio(),a);return new g.Cl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.YF=function(a){this.xF=a;this.resize()};
g.k.kE=function(){return this.rA};
g.k.onMutedAutoplayChange=function(){VT(this)};
g.k.setUseFastSizingOnWatch=function(a){this.PG!==a&&(this.PG=a,this.resize())};
g.k.setInternalSize=function(a){g.Xf(this.xv,a)||(this.xv=a,this.resize())};
g.k.xa=function(){this.XC&&g.ev(this.XC);this.Cg();g.U.prototype.xa.call(this)};g.k=SAa.prototype;g.k.click=function(a,b){this.elements.has(a);this.i.has(a);var c=g.Iy();c&&a.visualElement&&g.Mz(c,a.visualElement,b)};
g.k.Wb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Eia(c);a.visualElement=c;var f=g.Iy(),h=g.Gy();f&&h&&g.Gz(void 0,f,h,[c]);g.qe(b,function(){TAa(e,a)});
d&&this.u.add(a)};
g.k.Rg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.qe(b,function(){TAa(d,a)});
c&&this.u.add(a)};
g.k.xm=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Cy(b))};
g.k.Uv=function(a){return this.elements.has(a)};g.w(aU,g.U);
aU.prototype.setValue=function(a,b){for(var c=0;c+2<this.B.length&&this.B[c+1]<b;)c++;b=Math.min(1,(b-this.B[c])/(this.B[c+1]-this.B[c]));if(this.ctx)this.ctx.fillStyle=this.C[c],this.ctx.fillRect(a*this.i,0,this.i,this.heightPx),this.ctx.fillStyle=this.C[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.C[c+
1];a.style.borderTop="solid "+(this.heightPx-b)+"px "+this.C[c]}};g.w(cU,g.U);g.k=cU.prototype;g.k.show=function(){g.U.prototype.show.call(this);this.Pa()};
g.k.hide=function(){g.U.prototype.hide.call(this);this.delay.stop()};
g.k.stop=function(){this.delay.stop()};
g.k.start=function(){this.delay.isActive()||this.Pa()};
g.k.Pa=function(){var a=(0,g.Q)(),b=this.Ta.getStatsForNerds();bU(this.i,b.bandwidth_samples);bU(this.C,b.network_activity_samples);bU(this.B,b.live_latency_samples);bU(this.u,b.buffer_health_samples);this.update(b);a=25<(0,g.Q)()-a?5E3:500;this.delay.start(a)};dU.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
dU.prototype.getPlaybackRate=function(){return this.playbackRate};hU.prototype.seek=function(a){a!==this.B&&(this.seekCount=0);this.B=a;var b=this.videoTrack.u,c=this.audioTrack.u,d=this.audioTrack.Vb,e=bBa(this,this.videoTrack,a,this.videoTrack.Vb);d=bBa(this,this.audioTrack,this.policy.ma?a:e,d);a=Math.max(a,e,d);this.i=!0;this.u.isManifestless&&($Aa(this,this.videoTrack,b),$Aa(this,this.audioTrack,c));return a};
hU.prototype.oa=function(){};
var aBa=2/24;gBa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.Q)()};g.w(mU,g.R);
mU.prototype.hF=function(a,b){if(this.S){var c=[],d=[],e=[],f=void 0;a.i&&(f=a.i,c=f.u,d=f.B,e=f.C,f=f.i);this.S.mF(a.Ma,a.startTime,this.i,c,d,e,b,f)}b&&this.policy.wc&&(b=this.Z&&a.Ma===this.Z.Ma+1,this.Z=a,c=this.u&&a.Ma===this.u.Ma+1,c=this.u&&b&&c&&"stop"!==this.u.me.event&&"predictStart"!==this.u.me.event,d=a.me||null,e=this.D.i.index.getLastSegmentNumber()<=a.Ma,f=this.K.isManifestless&&this.policy.yl,d?(this.u={me:d,Ma:a.Ma,Tv:!!a.i},e?nU(this,d,a.Ma):f&&(b?c?nU(this,d,a.Ma):"continue"===d.event||
"stop"===d.event?kBa(this,a):nU(this,d,a.Ma):nU(this,d,a.Ma))):c&&kBa(this,a))};
mU.prototype.gF=function(a,b,c){var d=this.D.i.index.getLastSegmentNumber()<=b;this.u={me:a,Ma:b,Tv:c};d&&nU(this,a,b)};
mU.prototype.Ba=function(a,b){this.Wa.Ba(a,b)};
mU.prototype.jx=function(a,b){var c=this.D.i.index.getSegmentNumberForTime(a);return 0<=c&&this.D.i.index.getStitchedVideoInfo(c)?(this.Ba("sdai","skipad_on"+c+"_t"+a.toFixed(3)),b.hG(a,c),jBa(this,a,a,c),!0):!1};pU.prototype.zt=function(a){var b,c,d=this.policy.S;this.policy.S=jE(a,{},this.J);d!==this.policy.S&&(qU(this,this.B),sU(this),d>this.policy.S&&(null===(b=this.i)||void 0===b?0:sD(b.info))&&(null===(c=this.nextVideo)||void 0===c||!sD(c.info))&&(this.S=!0))};
pU.prototype.oa=function(){};yU.prototype.dispose=function(){this.Y=!0};
yU.prototype.isDisposed=function(){return this.Y};FU.prototype.skip=function(a){this.offset+=a};
FU.prototype.getOffset=function(){return this.offset};HU.prototype.Sh=function(){this.u.shift()};
HU.prototype.Gk=function(){return!!this.D.info.audio};
HU.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()};
HU.prototype.oa=function(){};g.k=PU.prototype;g.k.zD=function(){return 0};
g.k.JH=function(){return null};
g.k.gK=function(){return null};
g.k.isComplete=function(){return 3<=this.state};
g.k.isFailed=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.info.dj()&&4!==this.state&&(this.info.i[0].i.C=!1);QU(this,-1)};g.w(TU,PU);g.k=TU.prototype;g.k.onStateChange=function(){this.isDisposed()&&(MFa(this.Be,this.u),this.B.dispose())};
g.k.du=function(){return{}};
g.k.cK=function(){return 0};
g.k.fu=function(){return!0};
g.k.VB=function(){this.En();this.S=!0;return $Ba(this.i)};
g.k.KH=function(){this.En();return this.i.je};
g.k.Ns=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.je)||void 0===b||!b.length)||this.Be.Vf(this.u)};
g.k.En=function(){for(;this.Be.Vf(this.u);){var a=this.i,b=this.Be.Sh(this.u),c=this.Be.Me.get(this.u);ZBa(a,b,c.rf&&!c.je.totalLength&&bCa(this.Be,this.u))}};UU.prototype.Yf=function(){return JBa(this.C)};
UU.prototype.Sh=function(a){this.C.Sh(a);a=a.info;var b=a.i.info.Nb;this.policy.Eu&&a.Qd&&a.duration&&(b=Math.max(b,(a.Cb+a.u)/a.duration));this.Nb=Math.max(this.Nb,b||0)};
UU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()};
UU.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.i[0].Ma:!1};g.k=hV.prototype;g.k.Js=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.C.Ks()};
g.k.onError=function(){this.D=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.i.append(this.u),delete this.u),this.C.Zn())};
g.k.Gn=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.Av=function(){return+this.getResponseHeader("content-length")};
g.k.Ol=function(){return this.B};
g.k.Pw=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Vf=function(){return 0<this.i.totalLength};
g.k.Sh=function(){var a=this.i;this.i=new YC;return a};
g.k.Yf=function(){return this.i};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.nt=function(){return!0};
g.k.zA=function(){return this.D};
g.k.pe=function(){return""};g.k=oCa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.i.get("type"):""};
g.k.abort=function(){};
g.k.Gn=function(){return!0};
g.k.Av=function(){return this.range.length};
g.k.Ol=function(){return this.loaded};
g.k.Pw=function(){return!!this.loaded};
g.k.Vf=function(){return!!this.u.totalLength};
g.k.Sh=function(){var a=this.u;this.u=new YC;return a};
g.k.Yf=function(){return this.u};
g.k.nt=function(){return!0};
g.k.zA=function(){return!!this.error};
g.k.pe=function(){return this.error};var pCa=0;g.k=iV.prototype;g.k.un=function(){this.ya||(this.ya=this.K.un?this.K.un():1);return this.ya};
g.k.Ks=function(){this.Sa=this.now();this.K.Ks()};
g.k.iq=function(a,b){kV(this,a,b);50>a-this.C&&mV(this)||sCa(this,a,b);this.K.iq(a,b)};
g.k.Zn=function(){this.K.Zn()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
g.k.now=function(){return(0,g.Q)()};var zCa=0;g.k=qV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Da);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.Ja,this.onError).then(void 0,Uv)};
g.k.onDone=function(){if(!this.isDisposed()){this.oa();this.Y=!0;if(yCa(this)&&!this.i.totalLength&&!this.J&&this.u){bB(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.u+=a.length}this.D.Zn()}};
g.k.getResponseHeader=function(a){return this.S?this.S.get(a):null};
g.k.Gn=function(){return!!this.S};
g.k.Ol=function(){return this.u};
g.k.Av=function(){return+this.getResponseHeader("content-length")};
g.k.Pw=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.oa=function(){};
g.k.Vf=function(){if(this.Y||this.policy.i)return!!this.i.totalLength;if(!this.Gn()||this.ya+10>Date.now())return!1;var a=16384;this.Aa||(a=Math.max(a,16384));(this.policy.i?0:this.policy.dg&&bB(this))&&(a=1);return this.i.totalLength>=a};
g.k.Sh=function(){this.Vf();this.ya=Date.now();this.Aa=!0;var a=this.i;this.i=new YC;return a};
g.k.Yf=function(){this.Vf();return this.i};
g.k.isDisposed=function(){return this.Z};
g.k.abort=function(){this.oa();this.B&&this.B.cancel().catch(function(){});
this.C&&this.C.abort();this.Z=!0};
g.k.nt=function(){return!0};
g.k.zA=function(){return this.J};
g.k.pe=function(){return this.errorMessage};g.k=rV.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.i=!0;this.B.Zn()}};
g.k.Js=function(){2===this.xhr.readyState&&this.B.Ks()};
g.k.od=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.u=a.loaded),this.B.iq((0,g.Q)(),a.loaded))};
g.k.Gn=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Bs(Error("Could not read XHR header "+a)),""}};
g.k.Av=function(){return+this.getResponseHeader("content-length")};
g.k.Ol=function(){return this.u};
g.k.Pw=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.u};
g.k.Vf=function(){return this.i&&!!this.response&&!!this.response.byteLength};
g.k.Sh=function(){this.Vf();var a=this.response;this.response=void 0;return new YC([new Uint8Array(a)])};
g.k.Yf=function(){this.Vf();return new YC([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.nt=function(){return!1};
g.k.zA=function(){return!1};
g.k.pe=function(){return""};g.w(uV,PU);g.k=uV.prototype;g.k.Wd=function(){return this.u.Wd()};
g.k.du=function(){var a=jV(this.timing);a.shost=yB(this.u.hg);this.B&&(a.rc=this.B.toString());a.itag=this.info.i[0].i.info.lc();a.ml=""+ +this.info.i[0].i.Re();a.sq=""+this.info.i[0].Ma;this.u&&(a.ifi=""+ +oka(this.u.hg));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.pe()&&(a.msg=this.xhr.pe());this.lx&&(a.smb="1");if(this.i){var b=this.i.je;b.length&&sla(b[0],a)}return a};
g.k.cK=function(){return wCa(this.timing)};
g.k.pe=function(){return this.xhr.pe()||""};
g.k.fu=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.jA&&nV(a,a.u));return a};
g.k.iq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.Ns()?RU(this,2):!this.Aa&&this.fu()&&(RU(this),this.Aa=!0))};
g.k.Ks=function(){if(!this.isDisposed()&&this.xhr){if(!this.Y&&this.xhr.Gn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.Q)()-a)/1E3}this.xhr.Gn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Kq&&!rma()&&g.Qz("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.J=a||this.J;this.K=b||this.K}};
g.k.Zn=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.Z.stop(),this.B=a.status,a=ECa(this,a),5===a?tV(this):QU(this,a))};
g.k.canRetry=function(){this.isDisposed();var a=sV(this);return a.timedOut<this.policy.Mo&&a.i<this.policy.Zi};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.rd?vV(this):this.timing.deactivate())};
g.k.IW=function(){this.isComplete();if(!this.isDisposed()){var a=(0,g.Q)(),b=!1;mV(this.timing)?(a=this.timing.J,rCa(this.timing),this.timing.J-a>=.8*this.ya?(this.C++,this.oa(),b=5<=this.C):this.C=0):(b=this.timing,b.hh&&pV(b,b.now()),a-=b.ma,this.policy.Eb&&0<a&&(this.C+=1),b=Pka(sV(this),this.policy,!1)*this.policy.bk,(b=a>1E3*b)&&this.oa());this.C&&this.callback&&this.callback(this,this.state);b?FCa(this,!1):this.Z.start()}};
g.k.dispose=function(){PU.prototype.dispose.call(this);this.Z.dispose();this.policy.rd||vV(this)};
g.k.VB=function(){if(!this.KH().length)return[];this.S=!0;return $Ba(this.i)};
g.k.Ns=function(){var a;return 1>this.state?!1:this.i&&this.i.je.length||(null===(a=this.xhr)||void 0===a?0:a.Vf())?!0:!1};
g.k.KH=function(){this.En(!1);return this.i?this.i.je:[]};
g.k.En=function(a){if(a||this.xhr.Gn()&&this.xhr.Vf()&&!CCa(this)&&!this.D){if(!this.i){if(this.xhr.nt())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Ol();this.i=new YBa(this.info.i,b)}for(;this.xhr.Vf();)ZBa(this.i,this.xhr.Sh(),a&&!this.xhr.Vf())}};
g.k.Ol=function(){return this.xhr.Ol()};
g.k.zD=function(){return this.Y};
g.k.un=function(){return GCa(this)?2:1};
g.k.oa=function(){};
g.k.JH=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J};
g.k.gK=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K};
var DCa=-1;wV.prototype.clear=function(){this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1};
wV.prototype.oa=function(){};g.w(g.yV,g.I);g.k=g.yV.prototype;
g.k.initialize=function(a,b,c){this.oa();a=a||0;this.Ca.Zz(tBa(this.u));if(this.i.isManifestless){if(this.policy.Fi){b=lka(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.u=b)}QCa(this)}this.D&&ICa(this.D,this.videoTrack.i);this.policy.La&&aB()&&this.Ba("streaming","ac."+(!!window.AbortController||cB()),!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.Y&&(PCa(this,this.videoTrack),PCa(this,this.audioTrack),NFa(this.Y),
delete this.Y,this.policy.wu&&(a=vC(this.audioTrack.i.u,!1),g.Xu("https://"+a+"/generate_204")));c?(this.policy.Sc?(this.eb=c,DV(this,c)):DV(this,!1),g.Dq(this.Ja)):(c=0===this.currentTime,zV(this,this.videoTrack,this.videoTrack.i,c),zV(this,this.audioTrack,this.audioTrack.i,c),g.jh(this.seek(this.currentTime),function(){}),this.timing.tick("gv"));
(this.i.ue||this.i.wg||this.i.J||this.i.D||this.i.K)&&this.Ba("minMaxSq","minSq."+this.i.ue+";maxSq."+this.i.wg+";minDvrTime."+this.i.J+";maxDvrTime."+this.i.D+";startWalltime."+this.i.K)};
g.k.resume=function(){if(this.isSuspended||this.ya)this.oa(),this.Sa=this.ya=this.isSuspended=!1,this.policy.qd?EV(this):this.wh()};
g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.u=b.D.i[a.id];b.K=b.u;a=new oU(b.K,b.i,"m");this.oa();MV(this.Ca,a.reason,a.audio.info);OV(this.Ca)}};
g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)};
g.k.Rv=function(a){var b=a.info.i[0].i,c=a.lastError;if(zB(b.u.i)){var d=g.Hc(g.Wa(a.pe()),3);this.Ba("dldbrerr",d||"none")}this.K&&(d=a.info.i[0].Ma,this.K.Rv(hBa(this.B,a.info.i[0].C,d),d));if(a.canRetry()){d=(b.info.video&&1<b.u.u||410===a.B||500===a.B||503===a.B)&&!vU(this.u)&&!zB(b.u.i);var e=a.du(),f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.handleError(!1,c,e);this.isDisposed()||(d&&(this.oa(),uU(this.u,b)),this.policy.Tg&&1===a.info.i.length&&0<a.info.i[0].Cb&&b!==
f.i&&this.ya?OV(this.Ca,Object.assign({reattachOnStuckRequest:1},e)):(eV(f,a),this.wh()))}else this.handleError(!1,c,a.du()),!a.info.dj()||this.policy.u||zB(b.u.i)?this.handleError(!0,"net.retryexhausted",{err:c,rn:a.timing.requestNumber.toString()}):(b.D=c,this.wh())};
g.k.wh=function(){HV(this);if(this.mediaSource&&SD(this.mediaSource)&&!this.mediaSource.bh()){var a=WU(this.videoTrack);a=this.policy.Uj&&a&&a.B;this.i.isManifestless&&this.i.S&&cE(this.i)?(this.S=cE(this.i),this.mediaSource.Gj(this.S)):this.i.isLive&&!a?isNaN(this.S)?(this.S=this.currentTime+3600,this.mediaSource.Gj(this.S)):this.S<=this.currentTime+1800&&(this.S=Math.max(this.S+1800,this.currentTime+3600),this.mediaSource.Gj(this.S)):this.mediaSource.isView||(a=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==a)&&0<a&&(this.mediaSource.Gj(a),this.S=a))}if(!this.isDisposed())if(bE(this.i)&&this.i.isFailed())this.handleError(!0,"manifest.net.retryexhausted",{rc:this.i.ma.toString()});else if(!this.i.B||!kCa(this.videoTrack)&&!kCa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Ua?a=!1:(FV(this),this.Ca.seekTo(Infinity,{Sd:"checkLoaderTracksSync",ep:!0}),a=!0),!a&&(HV(this),YU(this.videoTrack),!this.isDisposed()&&(YU(this.audioTrack),
!this.isDisposed()))){this.i.isManifestless&&(lCa(this.videoTrack),lCa(this.audioTrack),eBa(this.C),(a=this.videoTrack.Yf())&&a.u&&(a=a.u.D&&!this.policy.Il,this.Ba(a===this.policy.D.dg?"strm":"strmbug","strm."+(a?"1":"0")+";sfmp4."+(this.policy.D.dg?"1":"0")+";dfs."+(this.policy.Il?"1":"0"),!0)));if(this.mediaSource)RCa(this);else if(this.policy.u){(a=this.videoTrack.Yf())&&this.videoTrack.Sh(a);var b=this.audioTrack.Yf();b&&this.audioTrack.Sh(b);$U(this.videoTrack)&&$U(this.audioTrack)?this.oa():
(a||b)&&EV(this)}CV(this);zV(this,this.videoTrack,this.videoTrack.i,!1);zV(this,this.audioTrack,this.audioTrack.i,!1);a=this.audioTrack.i.D;b=this.videoTrack.i.D;if(a||b){var c="net.retryexhausted";if("fmt.unparseable"===a||"fmt.unparseable"===b)c="fmt.unparseable";this.handleError(!0,c,{metadata:"1",video:this.videoTrack.i.D||"",audio:this.audioTrack.i.D||""})}else{a=this.videoTrack;var d=this.audioTrack;if((!this.mediaSource||SD(this.mediaSource)&&!this.policy.Ya)&&!this.C.i&&fV(a)&&a.i.Re()&&this.u.S)a:{if(b=
this.currentTime,c=this.J,d=fU(c,a.i.info.Nb,d.i.info.Nb,0),c=HE(c.schedule)+d/JE(c.schedule),b+=Math.max(c,c+10-d/a.i.info.Nb),this.oa(),a.B.length){if(a.B[0].info.i[0].startTime<=b)break a;iU(a)}c=a.C;for(d=c.u.length-1;0<=d;d--)c.u[d].info.startTime>b&&c.u.pop();a.B.length?a.u=g.pb(g.pb(a.B).info.i):a.C.u.length?a.u=IU(a.C).info:a.u=WU(a);a.u&&b<a.u.startTime&&(a.Y=0,a.i.Re()?a.u=a.i.Pl(b,!0).i[0]:a.u=null)}WCa(this,this.videoTrack,this.audioTrack);WCa(this,this.audioTrack,this.videoTrack);this.policy.ol&&
this.Ka&&!this.isSuspended&&Pma(this.schedule)&&(cDa(this,this.Ka),this.Ka="");this.D&&(a=this.D,a.C?(b=a.J+a.policy.Kh,a.B||(b=Math.min(b,a.startTimeSecs+a.policy.uc)),a=Math.max(0,1E3*b-Date.now())):a=NaN,isNaN(a)||g.Dq(this.qb,a));g.Dq(this.kb)}}};
g.k.EP=function(a){if(this.policy.kb&&this.mediaSource){var b=a===this.mediaSource.i,c=a.Uy();c&&(!c.Cb||c.Qd)&&this.Ba("sbu",a.Ib({a:""+ +b}))}this.wh()};
g.k.BT=function(a){if(this.mediaSource){a=WU(a===this.mediaSource.i?this.audioTrack:this.videoTrack);var b=void 0;a&&(b=HC(a));this.handleError(!0,"fmt.unplayable",b)}};
g.k.Is=function(a){this.Ca.Is(a)};
g.k.hF=function(a,b){this.i.isManifestless&&TBa(this,b,!!a.info.video)};
g.k.gF=function(a,b,c,d){a.info.video&&this.B.gF(b,c,d)};
g.k.Nv=ba(6);
g.k.seek=function(a){if(this.isDisposed())return dh();if(this.videoTrack.K||this.audioTrack.K)return this.policy.xu?ch():dh("seeking to head");HV(this);this.Ya=(0,g.Q)();CV(this,a);this.mediaSource&&this.mediaSource.i&&this.mediaSource.u&&(this.mediaSource.i.isLocked()||this.mediaSource.u.isLocked())&&OV(this.Ca,{reattachOnLockedBuffer:1,vsb:""+this.mediaSource.u.isLocked(),asb:""+this.mediaSource.i.isLocked()});var b=this.currentTime;this.currentTime=this.C.seek(a);lBa(this.B,a,b);EV(this);return ch(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.AD=function(){return this.audioTrack.i.info.i};
g.k.BD=function(){return this.videoTrack.i.info.i};
g.k.xa=function(){try{GV(this),iU(this.audioTrack),iU(this.videoTrack),g.I.prototype.xa.call(this)}catch(a){g.Ty(a)}};
g.k.handleError=function(a,b,c){this.isDisposed()||(c=new g.MD(b,a,c),g.Oa(this),g.LD(c.details),this.Ca.handleError(c),"html5.invalidstate"!==b&&"fmt.unplayable"!==c.errorCode&&"fmt.unparseable"!==b&&a&&this.dispose())};
g.k.oa=function(){};
g.k.Ib=function(){var a=WU(this.audioTrack),b=WU(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.C.i,lmf:wU(this.u),lbw:IE(this.schedule).toFixed(3),lhd:HE(this.schedule).toFixed(3),lst:(1E9*(this.schedule.i.qg()||0)).toFixed(3),laa:a?BC(a):"",lva:b?BC(b):"",lar:this.audioTrack.u?BC(this.audioTrack.u):"",lvr:this.videoTrack.u?BC(this.videoTrack.u):"",laq:""+aV(this.audioTrack),lvq:""+aV(this.videoTrack)};this.mediaSource&&!this.mediaSource.rf()&&this.mediaSource.i&&this.mediaSource.u&&
(a.lab=ED(this.mediaSource.i.kf()),a.lvb=ED(this.mediaSource.u.kf()));this.ma&&(a.lapt=((0,g.Q)()-this.ma).toFixed(0),a.lapr=ZCa(this));return a};
g.k.xD=function(){return eU(this.J)};
g.k.Ba=function(a,b,c){this.Ca.Ba(a,b,void 0===c?!1:c)};
g.k.ep=function(a,b){a/=b;isNaN(this.timestampOffset)&&gDa(this,a-Math.min(a,this.policy.Xe));return(a-this.timestampOffset)*b};
g.k.zt=function(a){this.u.zt(a)};
g.k.jx=function(a,b){return this.K&&this.B.jx(a,this.K)?(gDa(this,this.timestampOffset-b),!0):!1};
var VCa=2/24;g.k=g.PV.prototype;g.k.Pr=function(a,b,c,d){return this.Dd.Pr(a,b,c,d)};
g.k.QD=function(a){this.Dd.QD(a)};
g.k.Rv=function(a,b){this.Dd.Rv(a,b)};
g.k.hG=function(a,b){this.Dd.hG(a,b)};
g.k.Bv=ba(30);g.k.lj=function(a,b,c){this.Dd.lj(a,b,c)};
g.k.mF=function(a,b,c,d,e,f,h,l){this.Dd.mF(a,b,c,d,e,f,h,l)};
g.k.aG=function(a){this.Dd.aG(a)};g.w(QV,g.R);g.w(RV,QV);RV.prototype.J=function(a,b){if(a&&b){var c=1*Number(ti(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.i={}):(c>this.B&&(this.B=c,g.ic(this.i)||(this.i={},this.C.stop(),this.u.stop())),this.i[b]=a,g.Dq(this.u))}};
RV.prototype.D=function(){for(var a=g.r(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.i[c].match(ci),f=[],h=g.r(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+Zf(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 DU(d,"fairplay",!0))}this.i={}};
RV.prototype.xa=function(){this.i={};QV.prototype.xa.call(this)};var h3={},qDa=(h3.DRM_TRACK_TYPE_AUDIO="AUDIO",h3.DRM_TRACK_TYPE_SD="SD",h3.DRM_TRACK_TYPE_HD="HD",h3.DRM_TRACK_TYPE_UHD1="UHD1",h3);g.w(SV,g.I);SV.prototype.oa=function(){};g.w(UV,g.R);g.k=UV.prototype;g.k.Xn=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=oE(b.u)?d:c;d=new Uint8Array(oE(b.u)?c:d);oE(b.u)&&FDa(d);c=g.Hc(d,4);FDa(d);d=g.Hc(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.oa("Key statuses changed: "+CDa(this,",")),TV(this,"onkeystatuschange"),this.status="kc",this.ea("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.i={};g.R.prototype.xa.call(this)};
g.k.Ib=function(){var a={requestedKeyIds:this.ya,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a};
g.k.lf=function(){var a=this.D.join();if(VV(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.k.oa=function(){};
g.k.Wd=function(){return this.url};g.w(XV,g.I);g.k=XV.prototype;g.k.FP=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.Xn=function(){this.K&&this.K(this.i.keyStatuses)};
g.k.yM=function(a){this.D&&this.D(a.message,"license-request")};
g.k.xM=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.wM=function(){this.J&&this.J()};
g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,As(function(c){IDa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return Gt()};
g.k.xa=function(){this.i&&this.i.close();this.element=null;g.I.prototype.xa.call(this)};g.w(YV,g.I);g.k=YV.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.i.B):null};
g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.u.createSession();qE(this.i)&&(c=KDa(c,this.i.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new XV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},As(function(f){IDa(e,"t.generateRequest",f)}));
return e}if(nE(this.i))return MDa(this,c);if(pE(this.i))return LDa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.C=new XV(this.element,this.i,c,null,null)};
g.k.IP=function(a){var b=$V(this,a);b&&b.yM(a)};
g.k.HP=function(a){var b=$V(this,a);b&&b.xM(a)};
g.k.GP=function(a){var b=$V(this,a);b&&b.wM(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.xa=function(){var a;this.B=this.u=null;null===(a=this.C)||void 0===a?void 0:a.dispose();for(var b=g.r(Object.values(this.J)),c=b.next();!c.done;c=b.next())c.value.dispose();this.J={};g.I.prototype.xa.call(this);delete this.element};g.w(aW,g.I);
aW.prototype.init=function(){return g.H(this,function b(){var c=this,d,e;return g.B(b,function(f){if(1==f.i)return g.Jl(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.B.D,document.body.appendChild(c.i),c.C.T(c.i,"encrypted",c.J),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.z(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.u;c.B.keySystemAccess=
e;c.u=new YV(c.i,c.B);g.J(c,c.u);ZV(c.u);g.sa(f)})})};
aW.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new DU(c,a.initDataType);var d=iDa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.oa()});
f&&(g.J(this,f),this.D.push(f),tDa(f,function(h){GDa(h,f.i,d,e)},function(){b.oa()},function(){},function(){}))}};
aW.prototype.oa=function(){};
aW.prototype.xa=function(){this.D=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.I.prototype.xa.call(this)};g.w(bW,QV);
bW.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0<this.i.length)for(var c=g.r(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.Q)();if(!(c=this.D)){a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.r(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe","wvagt.delay."+
c+".cpi."+a.cryptoPeriodIndex+".reqlen."+this.i.length);this.C&&0>=c?NDa(this,a):(this.i.push({time:b+c,info:a}),g.Dq(this.u,c))}};
bW.prototype.xa=function(){this.i=[];QV.prototype.xa.call(this)};cW.prototype.get=function(a){a=eW(this,a);return-1!==a?this.values[a]:null};
cW.prototype.remove=function(a){a=eW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
cW.prototype.set=function(a,b){var c=eW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.w(fW,g.R);g.k=fW.prototype;g.k.JP=function(a){this.Jg("onecpt");a.initData&&SDa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.IU=function(a){this.Jg("onndky");SDa(this,a.initData,a.contentType)};
g.k.Is=function(a){this.Jg("onneedkeyinfo");this.X.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));RDa(this,a)};
g.k.OI=function(a){this.B.push(a);gW(this)};
g.k.createSession=function(a){var b=TDa(this)?FBa(a):g.Hc(a.initData);this.u.get(b);this.ya=!0;a=new UV(this.videoData,this.X,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.YL,this);a.subscribe("keystatuseschange",this.Xn,this);a.subscribe("licenseerror",this.Yz,this);a.subscribe("newlicense",this.sM,this);a.subscribe("newsession",this.tM,this);a.subscribe("sessionready",this.GM,this);a.subscribe("fairplay_next_need_key_info",this.jM,this);vDa(a,this.C)};
g.k.sM=function(a){this.isDisposed()||(this.oa(),this.Jg("onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))};
g.k.tM=function(){this.isDisposed()||(this.oa(),this.Jg("newlcssn"),this.B.shift(),this.ya=!1,gW(this))};
g.k.GM=function(){if(nE(this.i)&&(this.oa(),this.Jg("onsnrdy"),this.Ka--,0===this.Ka)){var a=this.Y;a.element.msSetMediaKeys(a.B)}};
g.k.Xn=function(a){if(!this.isDisposed()){!this.Da&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(UDa(this),this.Da=!0);this.oa();this.Jg("onksch");if(!VV(a)&&g.Vw&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(VV(a))for(var d=g.r(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(!VV(a)||c)b=a.D;b=g.ub(b,"UHD2")||g.ub(b,"UHD2HDR")?
"highres":g.ub(b,"UHD1")||g.ub(b,"UHD1HDR")?"hd2160":g.ub(b,"HD")||g.ub(b,"HDHDR")?"hd1080":g.ub(b,"HD720")||g.ub(b,"HD720HDR")?"hd720":"large"}a:{c=hB("auto",b,!1,"l");if(this.videoData.Og){if(fB(this.S,c))break a}else if(bka(this.S,b))break a;this.S=c;this.ea("qualitychange");this.oa();this.Jg("updtlq"+b)}this.ea("keystatuseschange",a)}};
g.k.YL=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)};
g.k.jM=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)};
g.k.Yz=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&UDa(this),this.ea("licenseerror",a,b,c,d))};
g.k.Wr=function(){return this.S};
g.k.xa=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.YL,this),b.unsubscribe("keystatuseschange",this.Xn,this),b.unsubscribe("licenseerror",this.Yz,this),b.unsubscribe("newlicense",this.sM,this),b.unsubscribe("newsession",this.tM,this),b.unsubscribe("sessionready",this.GM,this),b.unsubscribe("fairplay_next_need_key_info",this.jM,this),b.dispose();
this.u.clear();dW(this.J);dW(this.K);this.heartbeatParams=null;g.R.prototype.xa.call(this)};
g.k.Ib=function(){for(var a={systemInfo:this.i.Ib(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Ib());return a};
g.k.lf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.lf()+(this.D?"/KR":"")};
g.k.Jg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.oa(),(this.videoData.Y||b)&&this.ea("ctmp","drmlog",a))};
g.k.oa=function(){};g.w(jW,g.I);g.k=jW.prototype;g.k.xz=function(){return this.B};
g.k.handleError=function(a){var b=this,c;ZDa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!lW(this,a.errorCode,a.details))&&!aEa(this,a))if(a.i){var d=null===(c=this.Ca.Wa)||void 0===c?void 0:c.u.B;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.J&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Ca.Hf(a.errorCode,
e,g.LD(a.details),f)}else this.Ca.ea("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Rd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),(new BE(a,"manifest",function(h){b.K=!0;b.Ba("pathprobe",h)},function(h){b.Rd(h.errorCode,h.details)})).send())};
g.k.Ba=function(a,b){this.Ca.Xb.Ba(a,b)};
g.k.Rd=function(a,b){b=g.LD(b);this.Ca.Xb.Rd(a,b)};
g.k.oa=function(){};mW.prototype.setPlaybackRate=function(a){this.playbackRate=a};
mW.prototype.N=function(a){return this.X.N(a)};g.w(nW,g.I);nW.prototype.Lc=function(a){wEa(this);this.playerState=a.state;0<=this.B&&g.eI(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
nW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(QNa)?this.networkErrorCount++:this.nonNetworkErrorCount++)};
nW.prototype.send=function(){if(!(this.C||0>this.u)){wEa(this);var a=g.CS(this.i)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&g.T(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=IG(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=xEa(this.i);var e=0>this.B?a:this.B-this.u;a=this.i.X.qb+36E5<(0,g.Q)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,
rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.GG(this.i.videoData),isGapless:this.i.videoData.Ja};!a&&this.i.N("html5_health_to_gel")&&g.Vv("html5PlayerHealthEvent",b);this.i.N("html5_health_to_qoe")&&(b.muted=a,this.K(g.LD(b)));this.C=!0;this.dispose()}};
nW.prototype.xa=function(){this.C||this.send();g.I.prototype.xa.call(this)};
var QNa=/\bnet\b/;var BEa=window;var zEa=/[?&]cpn=/;g.w(g.rW,g.I);g.k=g.rW.prototype;g.k.aS=function(){var a=g.CS(this.i);sW(this,a)};
g.k.Fv=function(){return this.Sa};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.CS(this.i),-1<["PL","B","S"].indexOf(this.ud)&&(!g.ic(this.u)||a>=this.C+30)&&(g.qW(this,a,"vps",[this.ud]),this.C=a),!g.ic(this.u))){7E3===this.sequenceNumber&&g.Bz(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){tW(this,a);var b=a,c=this.i.Ca.Ov(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.eb,h=e&&!this.qb;if(d>c.totalVideoFrames||5E3<f)this.onError("html5.badframedropcount","df."+d+
";tf."+c.totalVideoFrames);else(0<f||h)&&g.qW(this,b,"df",[f]);this.eb=d;this.qb=e;!this.i.X.N("disable_webgl_reporting")&&0<this.S&&(g.qW(this,a,"glf",[this.S]),this.S=0);a={event:"streamingstats"};this.i.videoData.u&&(a.fmt=this.i.videoData.u.lc(),(b=this.i.videoData.K)&&b.lc()!==a.fmt&&(a.afmt=b.lc()));a.cpn=this.i.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.Z&&(a.addocid=this.Z);this.i.videoData.cotn&&(a.cotn=this.i.videoData.cotn);a.ei=this.i.videoData.eventId;a.el=TG(this.i.videoData);
a.docid=this.i.videoData.videoId;a.content_v=UG(this.i.videoData);a.ns=this.i.X.Aa;a.fexp=this.i.X.experiments.experimentIds.toString();a.cl=(399829848).toString();(b=this.i.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=IG(this.i.videoData))&&(a.live=b);xG(this.i.videoData)&&(a.drm=1,this.i.videoData.J&&(a.drm_system=jNa[this.i.videoData.J.flavor]||0),this.i.videoData.sC&&(a.drm_product=this.i.videoData.sC));Ms()&&this.i.videoData.jb&&(a.ctt=this.i.videoData.jb,a.cttype=this.i.videoData.Wh,
this.i.videoData.mdxEnvironment&&(a.mdx_environment=this.i.videoData.mdxEnvironment));XG(this.i.videoData)?a.dai=this.i.videoData.enableServerStitchedDai?"ss":"cs":this.i.videoData.Dc?a.dai="cs":this.i.videoData.wE&&(a.dai="disabled");a.seq=this.sequenceNumber++;g.pc(a,this.i.X.deviceParams);if(!this.i.videoData.sL&&this.i.N("html5_log_server_url_param")&&a){b=this.i.videoData.mX;c=new Set("docid ei event live ns drm_product".split(" "));d=new Set("osid plid feature referrer sdetail sourceid q".split(" "));
e=new Set(["cl","fexp","drm"]);for(var l in b)d.has(l)||e.has(l)||(a[l]?a[l]!==b[l]?g.Bz(new g.$v("b161906944_qoe_diff",l,a[l],b[l])):c.has(l)||g.Bz(new g.$v("b161906944_qoe_same",l)):g.Bz(new g.$v("b161906944_qoe_pass",l)));l=new Set("fmt afmt cpn el seq cbrand cbr cbrver c cver ctheme cplayer cos cosver cplatform".split(" "));c=g.r(Object.keys(a));for(d=c.next();!d.done;d=c.next())d=d.value,l.has(d)||a[d]&&b&&!b[d]&&g.Bz(new g.$v("b161906944_qoe_missing",d,a[d]));this.i.videoData.sL=!0}l=g.pi("//"+
this.i.X.Yi+"/api/stats/qoe",a);a=b="";c=g.r(Object.keys(this.u));for(d=c.next();!d.done;d=c.next())d=d.value,null===this.u[d]?g.Bz(new g.$v("Stats report key has invalid value",d)):(d="&"+d+"="+this.u[d].join(","),100<d.length?a+=d:b+=d);l+=b;a=a.replace(/ /g,"%20");e=this.i.videoData.mf();c=this.i.X.N("qoe_with_networkless")||this.i.X.N("kevlar_woffle");b=this.i.X.N("qoe_send_and_write");d=this.i.X;f=this.i.N("web_player_vss_pageid_header")?this.i.X.pageId:void 0;(e=oW(l,d,f,this.i.X.sendVisitorIdHeader?
this.i.videoData.visitorData:void 0,e))?(e.method="POST",e.postBody=a,pW(l,e,{token:this.i.videoData.jb,vG:this.i.videoData.Wh,mdxEnvironment:this.i.videoData.mdxEnvironment},d,void 0,c,b&&this.Aa)):c?(c=this.i.X.N("networkless_ajax"),d={method:"POST",postBody:a},b&&this.Aa?this.i.X.N("use_new_nwl")?Zx().sendAndWrite(l,d):Rx(l,d):c?g.xt(l,{method:"POST",postBody:a}):this.i.X.N("use_new_nwl")?Zx().sendThenWrite(l,d):Qx(l,d)):Yu(l,void 0,a)}this.u={}}};
g.k.Qw=function(a){0<a&&(this.u.aft=[a.toString()])};
g.k.DN=function(){if(this.i.videoData.J){var a=this.i.videoData.J;vW(this,"eme-"+(a.keySystemAccess?"final":nE(a)?"ms":qE(a)?"ytfp":pE(a)?"safarifp":"nonfinal"))}};
g.k.onError=function(a,b){var c=g.CS(this.i);this.Rd(c,a,b);tW(this,c);uW(this)};
g.k.Rd=function(a,b,c){var d=this.i.Ca.getCurrentTime();b=[b,d.toFixed(3)];c&&b.push(JEa(c));g.qW(this,a,"error",b);this.D=!0};
g.k.Lc=function(a){var b=a.state,c=g.CS(this.i),d=this.getPlayerState(a.state);if(d!==this.ud){if(!(c<this.C)){if("PL"===this.ud)this.playTimeSecs+=c-this.C;else if("B"===this.ud&&this.ya){this.ya=!1;var e=g.sE(this.i.X.experiments,"html5_disable_last_state_change")?this.C:this.Ua;this.rebufferTimeSecs+=c-e;!this.La&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.i.Ca.zw(),this.u.qoealert=["1"],this.La=!0)}"B"!==d||"PL"!==this.ud&&"PB"!==this.ud||(this.ya=!0);this.C=c}"PL"===this.ud&&("B"===
d||"S"===d)||this.i.videoData.Y?tW(this,c):sW(this,c);"PL"===d&&g.Dq(this.Eb);this.i.N("html5_unstarted_buffering")&&this.i.videoData.Y&&g.T(a.state,64)&&"N"!==d&&this.Ba("unstub",d);g.qW(this,c,"vps",[d]);this.ud=d;this.C=this.Ua=c;this.D=!0}a=b.getData();g.T(b,128)&&a&&this.Rd(c,a.errorCode,a.CF);(g.T(b,2)||g.T(b,128))&&this.reportStats(c);b.Ac()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);uW(this)};
g.k.Ew=function(a){var b=g.CS(this.i);g.qW(this,b,"vfs",[a.i.id,a.u,this.xb,a.reason]);this.xb=a.i.id;var c=this.i.Ca.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.vF();1<d&&c.push(d);g.qW(this,b,"view",c)}this.Ja||(this.i.videoData.Y&&vW(this,"rqs"),this.i.videoData.i&&mB(this.i.videoData.i)&&(this.u.preload=["1"]));this.D=this.Ja=!0;"m"===a.reason&&100===++this.Mb&&(a=this.u.fcnz,a||(a=[],this.u.fcnz=a),a.push("2"));g.qW(this,b,"vps",[this.ud]);this.reportStats(b)};
g.k.xw=function(a){var b=g.CS(this.i);a.i.id!==this.Da&&(g.qW(this,b,"afs",[a.i.id,this.Da,a.reason]),this.Da=a.i.id)};
g.k.Wn=ba(34);g.k.Vn=ba(37);g.k.onPlaybackRateChange=function(a){var b=g.CS(this.i);a&&a!==this.jb&&(g.qW(this,b,"rate",[a]),this.jb=a);this.reportStats(b)};
g.k.zj=ba(15);g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";if(g.$J(a)&&g.T(a,64))return"B";var b=RNa[cK(a)];g.mF(this.i.X)&&"B"===b&&3===this.i.Ca.getVisibilityState()&&(b="SU");"B"===b&&g.T(a,4)&&(b="PB");return b};
g.k.xa=function(){g.I.prototype.xa.call(this);window.clearInterval(this.Ya)};
g.k.Ba=function(a,b,c){var d=this.u.ctmp||[],e=-1!==this.Fb.indexOf(a);e||this.Fb.push(a);if(!c||!e){b="string"!==typeof b?g.LD(b):b;b=JEa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.CS(this.i);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.oa();this.u.ctmp=d;uW(this);return f}};
g.k.Rw=function(a,b,c){this.K={OW:Number(this.Ba("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),RL:a,DW:b,isAd:c}};
g.k.Qs=function(a,b,c){g.qW(this,g.CS(this.i),"ad_playback",[a,b,c])};
g.k.oa=function(){};
var i3={},RNa=(i3[5]="N",i3[-1]="N",i3[3]="B",i3[0]="EN",i3[2]="PA",i3[1]="PL",i3);KEa.prototype.update=function(){if(this.S){var a=this.i.Ca.getCurrentTime()||0;this.i.X.N("html5_vss_media_time_killswitch")||(a=this.i.Ca.Dh()||0);var b=g.CS(this.i);if(a!==this.u||OEa(this,a,b)){var c;if(!(c=a<this.u||a-this.u>b-this.lastUpdateTime+2||OEa(this,a,b))){var d=this.i.Eh();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.Z?(this.Z=d,c=!0):(!e||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(yW(this),this.B=a);this.lastUpdateTime=b;this.u=a}}};zW.prototype.send=function(a){if(!this.La){var b=BW(this);b=g.pi(this.uri,b);if(this.qb)this.attestationResponse&&(a=AW(this)||{},a.method="POST",a.postParams={atr:this.attestationResponse},this.Y?this.ma?this.ya?Zx().sendAndWrite(b,a):Rx(b,a):this.ya?Zx().sendThenWrite(b,a):Qx(b,a):g.xt(b,a));else{var c=AW(this,a);pW(b,c,{token:this.S,vG:this.kb,mdxEnvironment:this.mdxEnvironment},this.X,a,this.Y,this.isFinal&&this.xe||this.ma||this.C&&this.Fe)}this.La=!0}};
zW.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var j3={},QEa=(j3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,j3.LIVING_ROOM_APP_MODE_MAIN=1,j3.LIVING_ROOM_APP_MODE_KIDS=2,j3.LIVING_ROOM_APP_MODE_MUSIC=3,j3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,j3.LIVING_ROOM_APP_MODE_GAMING=5,j3);g.w(DW,g.I);g.k=DW.prototype;g.k.od=function(){this.u.update();var a;if(a=this.i.videoData.isLoaded()&&this.i.videoData.Mb&&this.C&&!this.Y)a=this.u,a=(a.i.X.N("html5_vss_media_time_killswitch")?a.J+a.i.Ca.getCurrentTime()-a.B:a.J+a.i.Ca.Dh()-a.B)>=this.i.videoData.Mb;a&&(this.C&&this.i.videoData.Mb&&(a=EW(this,"delayplay"),a.yh=!0,a.send(),this.Y=!0),SEa(this))};
g.k.Lc=function(a){this.isDisposed()||(g.T(a.state,2)?(this.currentPlayerState="paused",g.eI(a,2)&&this.C&&HW(this).send()):g.T(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&FW(this,!1)):this.currentPlayerState="paused")};
g.k.xa=function(){g.I.prototype.xa.call(this);g.rt(this.B);this.B=NaN;MEa(this.u)};
g.k.Ib=function(){return BW(EW(this,"playback"))};
g.k.Bt=function(){this.i.videoData.S.eventLabel=TG(this.i.videoData);this.i.videoData.S.playerStyle=this.i.X.playerStyle;this.i.videoData.dh&&(this.i.videoData.S.feature="pyv");this.i.videoData.S.vid=this.i.videoData.videoId;var a=this.i.videoData.S;var b=this.i.videoData;b=b.isAd()||!!b.dh;a.isAd=b};
g.k.Fh=function(a){var b=EW(this,"engage");b.Z=a;return PEa(b,XEa(this.i))};WEa.prototype.isEmpty=function(){return this.endTime===this.startTime};JW.prototype.N=function(a){return this.X.N(a)};
var YEa={other:1,none:2,wifi:3,cellular:7};g.w(g.KW,g.I);g.k=g.KW.prototype;g.k.Lc=function(a){var b;if(g.eI(a,1024)||g.eI(a,512)||g.eI(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.J||(c.B=-1))}this.u.videoData.enableServerStitchedDai&&this.Qf?null===(b=this.C.get(this.Qf))||void 0===b?void 0:b.Lc(a):this.i&&this.i.Lc(a);this.qoe&&this.qoe.Lc(a);this.B&&this.B.Lc(a)};
g.k.od=function(){var a;this.u.videoData.enableServerStitchedDai&&this.Qf?null===(a=this.C.get(this.Qf))||void 0===a?void 0:a.od():this.i&&this.i.od()};
g.k.Rd=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)};
g.k.Ew=function(a){this.qoe&&this.qoe.Ew(a)};
g.k.xw=function(a){this.qoe&&this.qoe.xw(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Wn=ba(33);g.k.Ba=function(a,b,c){this.qoe&&this.qoe.Ba(a,b,c)};
g.k.Rw=function(a,b,c){this.qoe&&this.qoe.Rw(a,b,c)};
g.k.Qw=function(a){this.qoe&&this.qoe.Qw(a)};
g.k.Qs=function(a,b,c){this.qoe&&this.qoe.Qs(a,b,c)};
g.k.Vn=ba(36);g.k.zj=ba(14);g.k.Fv=function(){if(this.qoe)return this.qoe.Fv()};
g.k.Ib=function(){var a;if(this.u.videoData.enableServerStitchedDai&&this.Qf)null===(a=this.C.get(this.Qf))||void 0===a?void 0:a.Ib();else if(this.i)return this.i.Ib();return{}};
g.k.Fh=function(a){return this.i?this.i.Fh(a):function(){}};
g.k.Bt=function(){this.i&&this.i.Bt()};g.w(LW,g.I);g.k=LW.prototype;g.k.Ed=function(a){this.bl();var b=this.i;if(1<a.length&&a.length>b.i.length)b.i=b.i.concat(a),b.i.sort(b.u);else{a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.i.length||0<b.u(c,b.i[b.i.length-1])?b.i.push(c):g.Nb(b.i,c,b.u)}this.B=NaN;this.bl()};
g.k.Zf=function(a){1E4<a.length&&g.Bz(new g.$v("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)});
lFa(this.i,b);this.bl()}};
g.k.vn=function(){return this.isDisposed()?[]:this.i.i};
g.k.reset=function(){this.started=!1;this.C.stop();this.i.i=[];this.u=[];this.bl()};
g.k.Ve=function(a){var b=this.vn().filter(function(c){return c.namespace===a});
this.Zf(b);return b};
g.k.Lc=function(a){this.started&&(this.bl(),g.T(a.Tn,16)&&(a=kFa(this.i,Math.max(this.B-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.lD=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.k.oD=function(a){var b=[];if(!a.length)return b;a.sort(g.oA);a=g.r(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.k.bl=function(){this.D=!0;if(!this.J){for(var a=3;this.D&&a;)this.D=!1,this.J=!0,this.WK(),this.J=!1,a--;this.K().Ac()&&(a=kFa(this.i,this.B),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.B)/this.ma(),this.C.start(a)))}};
g.k.WK=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.K();g.T(a,32)&&this.Z.start();for(var b=g.T(this.K(),2)?0x8000000000000:1E3*this.Y(),c=g.T(a,2),d=[],e=[],f=g.r(this.u),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.oD(e));f=e=null;c?(a=iFa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=jFa(this.i)):a=this.B<=b&&aK(a)?hFa(this.i,this.B,b):iFa(this.i,b);
d=d.concat(this.lD(a));e&&(d=d.concat(this.oD(e)));f&&(d=d.concat(this.lD(f)));this.B=b;mFa(this,d)}};
g.k.xa=function(){this.u=[];this.i.i=[];g.I.prototype.xa.call(this)};
g.wS.qz(LW,{Ed:"crmacr",lD:"crmncr",oD:"crmxcr",WK:"crmis",Zf:"crmrcr"});g.w(PW,g.R);PW.prototype.Wl=function(){return this.K};
PW.prototype.hj=function(){return Math.max(this.S()-sFa(this,!0),this.videoData.getMinSeekableTime())};
PW.prototype.oa=function(){};g.w(UW,g.I);UW.prototype.Lc=function(){g.Dq(this.B)};
UW.prototype.D=function(){var a=this,b=this.Ca.jd(),c=this.Ca.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.T(c,8)&&g.T(c,16),h=this.Ca.Jp().isBackground()||c.isSuspended();VW(this,this.Da,f&&!h,e,"qoe.slowseek",function(){},"timeout");
f=f&&isFinite(this.i)&&0<this.i&&Oqa(b,this.i);var l=!d||10<Math.abs(d-this.i);VW(this,this.Ka,f&&l&&!h,e,"qoe.slowseek",function(){b.seekTo(a.i)},"set_cmt");
var m=f&&GD(b.Sf(),this.i);f=this.Ca.Wa;l=!f||!f.policy.Zb;var n=function(){b.seekTo(a.i+.001)};
VW(this,this.ma,m&&l&&!h,e,"qoe.slowseek",n,"jiggle_cmt");l=function(){return iW(a.Ca)};
VW(this,this.ya,m&&!h,e,"qoe.slowseek",l,"new_elem");var p=aK(c);m=g.bK(c);var q=b.Sf(),t=FD(q,d);vFa(this,b,q,d,h,p,m);q=0<=t&&q.end(t)>d+5;q=p&&m&&q;VW(this,this.K,q&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");VW(this,this.S,q&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Gp();n=Fla(n,u);n=!f.C.i&&d===n;VW(this,this.Ua,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}VW(this,this.Z,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){},
"timeout");
n=c.isSuspended();n=g.ub(this.Ca.Fj,"ad")&&!n;VW(this,this.J,n,!n,"qoe.start15s",function(){a.Ca.Ld("ad")},"ads_preroll_timeout");
n=this.Ca.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Ca,y=x.Wx.Jc();(!y||!x.videoData.isAd()||y.getVideoData().Dc!==x.getVideoData().Dc)&&x.videoData.Pd||x.Hf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)};
VW(this,this.Ja,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&GD(b.Sf(),d+5)&&q;VW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");VW(this,this.Sa,g.$J(c)&&g.T(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
VW(this,this.Y,!!f&&!f.mediaSource&&g.$J(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}};
UW.prototype.Rd=function(a,b,c){b=this.Ib(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Ca.Rd(new g.MD(a,!1,b));this.u[a]=!0};
UW.prototype.Ib=function(a){a=Object.assign(this.Ca.Ib(!0),a.Ib());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};
SW.prototype.reset=function(){this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1};
SW.prototype.Ib=function(){var a={},b=(0,g.Q)();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.w(XW,g.I);g.k=XW.prototype;g.k.setMediaElement=function(a){g.my(this.Ja);(this.ra=a)?(JFa(this),WW(this)):ZW(this)};
g.k.Lc=function(a){this.Y.Lc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Ac()?g.Dq(this.ma):this.ma.stop());var b;if(b=this.ra)b=8===a.Tn.state&&aK(a.state)&&g.bK(a.state)&&this.policy.B;if(b){a=this.ra.getCurrentTime();b=this.ra.Sf();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?FD(b,Math.max(a-3.5,0)):FD(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.Ua-c)||(this.Ca.Ba("seekover","b."+ED(b,
"_")+";cmt."+a),this.Ua=c,this.seekTo(c,{Mp:!0,Sd:"playbacktimeline_postLiveDisc"})))}};
g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.ra&&GFa(this)?this.ra.getCurrentTime()+this.timestampOffset:this.B||0};
g.k.Dh=function(){return this.getCurrentTime()-this.Tc()};
g.k.hj=function(){return this.u?this.u.hj():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return RW(this.u,a)};
g.k.Wl=function(){return!!this.u&&this.u.Wl()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.kO?!1:c.kO;var d=void 0===c.lO?0:c.lO,e=void 0===c.Mp?!1:c.Mp,f=void 0===c.wG?0:c.wG,h=void 0===c.Sd?"":c.Sd;if(void 0===c.ep?0:c.ep)a+=this.Tc();c=a;var l=!isFinite(c)||(this.u?RW(this.u,c):c>=this.hd())||!g.LG(this.videoData);l||this.Ca.Ba("seeknotallowed",c+";"+this.hd());if(!l)return this.C&&(this.C=null,bX(this)),ch(this.getCurrentTime());this.oa();if(.005>Math.abs(a-this.i)&&this.S)return this.oa(),this.D;h&&(c=a,(g.zG(this.videoData)||
this.N("html5_log_seek_reasons"))&&this.Ca.Ba("seekreason","reason."+h+";tgt."+c));this.S&&ZW(this);this.D||(this.D=new uS);a&&!isFinite(a)&&YW(this,!1);h=a;(aX(this)&&!(this.ra&&0<this.ra.uh()&&0<RJ(this.ra))||DG(this.videoData)&&this.getMinSeekableTime()===this.hd(!1)?0:isFinite(h)||!DG(this.videoData))&&(a=FFa(this,a,e));a&&!isFinite(a)&&YW(this,!1);this.B=a;this.Da=f;this.i=a;this.u&&(e=this.u,f=a,tFa(e,f,!1),uFa(e,f));e=this.Ca;e.Mc.B=a;f=e.Nu;f.mediaTime=a;f.i=!0;b&&NX(e);e.vk&&a>e.videoData.endSeconds&&
isFinite(a)&&(e.removeCueRange(e.vk),e.vk=null);a<e.hd()-.01&&(f=XJ(e.playerState,2),g.T(f,8)&&(f=XJ(f,4)),e.Tb(f));e.ea("SEEK_TO",e,a);this.D&&(b?d&&this.Ka.start(d):(this.oa(),this.S=!0,zFa(this)));return this.D};
g.k.hd=function(a){if(!this.videoData.isLivePlayback)return this.videoData.hd();if(DG(this.videoData)&&this.videoData.Zi&&this.videoData.i)return this.videoData.i.hd()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.i){if(!a&&this.u)return this.u.hj();a=this.videoData.hd();this.policy.i&&this.ra&&(a=Math.max(a,Pqa(this.ra)));return a+this.timestampOffset}return this.ra?Tt()?hpa(this.ra.Ix().getTime()):RJ(this.ra)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.getMinSeekableTime=function(){var a,b=this.videoData?this.videoData.getMinSeekableTime()+this.timestampOffset:this.timestampOffset;if(qH(this.videoData)&&this.videoData.i){var c=Number(null===(a=this.videoData.progressBarStartPosition)||void 0===a?void 0:a.utcTimeMillis)/1E3,d=this.getCurrentTime();d=this.getIngestionTime(d)-d;if(!isNaN(c)&&!isNaN(d))return Math.max(b,c-d)}return b};
g.k.xa=function(){$W(this,null);this.Y.dispose();g.I.prototype.xa.call(this)};
g.k.Ib=function(){var a={};this.Wa&&Object.assign(a,this.Wa.Ib());this.ra&&Object.assign(a,this.ra.Ib());return a};
g.k.nF=function(a){this.N("html5_unrewrite_timestamps")?this.timestampOffset=a:this.Sa=a};
g.k.getStreamTimeOffset=function(){return DG(this.videoData)?this.Sa:this.videoData.i?this.videoData.i.getStreamTimeOffset():0};
g.k.Tc=function(){return this.timestampOffset};
g.k.getIngestionTime=function(a){return this.videoData.i.getIngestionTime(a-this.timestampOffset)};
g.k.Cp=function(){if(!this.ra)return 0;if(MG(this.videoData)){var a=Pqa(this.ra)+this.timestampOffset-this.getMinSeekableTime(),b=this.hd()-this.getMinSeekableTime();return Math.max(0,Math.min(1,a/b))}return this.ra.Cp()};
g.k.Zz=function(a){this.J&&(this.J.i=a.audio.index)};
g.k.N=function(a){return this.X&&this.X.N(a)};
g.k.oa=function(){};cX.prototype.isFinished=function(){return this.i};
cX.prototype.start=function(){this.started=!0};
cX.prototype.reset=function(){this.i=this.started=!1};g.w(dX,aR);dX.prototype.i=function(a,b){var c=f3.Co("oap");b=aR.prototype.i.call(this,a,b);f3.fn(c,Math.ceil(a.length/16));return b};
dX.prototype.hv=function(a,b,c){var d=Object.create(null,{hv:{get:function(){return aR.prototype.hv}}});
return g.H(this,function f(){var h,l=this,m;return g.B(f,function(n){if(1==n.i)return h=f3.Co("oan2"),g.z(n,d.hv.call(l,a,b,c),2);m=n.u;f3.fn(h,Math.ceil(a.byteLength/16));return n.return(m)})})};
g.w(eX,bR);eX.prototype.encrypt=function(a,b){var c=f3.Co("oap");b=bR.prototype.encrypt.call(this,a,b);f3.fn(c,Math.ceil(a.byteLength/16));return b};fX.prototype.encrypt=function(a){return(new eX(this.i.i)).encrypt(a,this.iv)};
fX.prototype.decrypt=function(a,b){return(new eX(this.i.i)).decrypt(a,b)};g.w(gX,g.I);g.k=gX.prototype;g.k.Vf=function(a){var b;return!(null===(b=this.Me.get(a))||void 0===b||!b.je.totalLength)};
g.k.Sh=function(a){a=this.Me.get(a);var b=a.je;a.KC+=b.totalLength;a.je=new YC;return b};
g.k.rf=function(a){return this.Me.get(a).rf};
g.k.oa=function(){};
g.k.xa=function(){g.I.prototype.xa.call(this);for(var a=g.r(this.Me.keys()),b=a.next();!b.done;b=a.next())hX(this,b.value);this.Me.clear()};var k3={},RFa=(k3.f="video",k3["1"]="video",k3["1h"]="video",k3.h="video",k3.H="video",k3["9"]="video",k3["("]="video",k3["9h"]="video",k3["(h"]="video",k3.o="audio",k3.O="audio",k3.a="audio",k3.ah="audio",k3.A="audio",k3.m="audio",k3.M="audio",k3.mac3="audio",k3.MAC3="audio",k3.meac3="audio",k3.MEAC3="audio",k3.so="audio",k3.sa="audio",k3["8"]="unknown",k3["*"]="unknown",k3.w="unknown",k3["3"]="unknown",k3["6"]="unknown",k3[""]="unknown",k3);XFa.prototype.decrypt=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n;return g.B(c,function(p){switch(p.i){case 1:if(d.i.length&&!d.i[0].pj)return p.return();d.u=!0;e=new Uint8Array(16);(Pt("nfbe")?0:$Q())?f=new dX(a):h=new eX(a);case 2:if(!d.i.length||!d.i[0].pj){p.fb(3);break}l=d.i.shift();if(!f){m=h.decrypt(l.buffer,e);p.fb(4);break}return g.z(p,f.decrypt(l.buffer,e),5);case 5:m=p.u;case 4:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}YFa(d.eq.yd,l.mG,n);
p.fb(2);break;case 3:iX(d),d.u=!1,g.sa(p)}})})};jX.prototype.feed=function(a,b){var c=b.totalLength;this.oa();switch(a){case 10:var d=HQ(new EQ(b),1);this.oa();a=!1;switch(d){case 5:c=this.yd;c.We("orfb");if(c.X.N("html5_onesie_host_probing")&&c.xhr){var e={rc:c.xhr.status,lb:c.xhr.Ol(),rt:wCa(c.Rk).toFixed(3),shost:g.ei(c.Fw),trigger:"o1"};c.Ba("pathprobe",g.LD(e))}break;case 0:this.iv=(new PFa(b)).i.iv;break;case 16:this.eA(b);break;case 2:break;case 23:c=new TFa(b);e=this.yd;c.videoId!==e.videoData.videoId?e.Ba("ompp","vid."+c.videoId):e.EE=
!0;break;case 24:c=this.yd;c.X.N("html5_onesie_use_media_promise")&&(c.EE=!1,c.Vw=!1,kX(c));break;default:a=!0}this.yd.mj&&this.yd.Ba("ombup","id.10;pt."+d+";len."+b.totalLength+(a?";ignored.1":""));this.u=d;break;case 11:aGa(this,b);break;case 20:c=new SFa(b);e=c.B;a=c.u;var f=c.Gk,h=void 0!==this.i[a];this.yd.mj&&this.yd.Ba("ombup","id.20;len."+b.totalLength+";hid."+e+";fid"+a);this.oa();this.B[e]=a;h?(b=this.i[a].headers,b.push(c),c.i&&2===b.length&&this.yd.eA(a,b[0].i+b[1].i)):(this.i[a]={EK:!1,
Gk:f,headers:[c]},null===(d=this.yd.Be)||void 0===d?void 0:(b=f,b=void 0===b?!1:b,d.Me.set(a,{je:new YC,KC:0,bytesReceived:0,rf:!1,Gk:b}),d.oa()));break;case 21:bGa(this,b,!1);break;case 12:bGa(this,b,!0);break;case 22:d=cD(b,0);this.yd.mj&&this.yd.Ba("ombup","id.22;len."+b.totalLength+";hid."+d);b=this.B[d]||null;this.oa();b&&(d=this.i[b],1===d.headers.length&&d.headers[0].i||ZFa(this.queue,b));break;case 37:b=new QFa(b);b.i&&(this.yd.sD=b);break;default:this.yd.mj&&this.yd.Ba("ombup","id."+a+";len."+
c+";ignored.1"),this.oa()}};
jX.prototype.eA=function(a){a=new WFa(a);this.yd.eA(a.i,a.u);this.oa()};
jX.prototype.ZE=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n,p,q,t;return g.B(c,function(u){if(1==u.i){d.yd.ZE();e=bD(a);var x=d.yd;var y=d.iv;x=(Pt("nfbe")?0:$Q())?LFa(x.pF,e,y):Promise.resolve(x.pF.decrypt(e,y));return g.z(u,x,2)}f=u.u;h=new UFa(new YC([f]));if(1!==h.onesieProxyStatus)return l={st:h.onesieProxyStatus},m=new g.MD("onesie.response.badproxystatus",!1,l),u.return(Promise.reject(m));if(200!==h.httpStatus)return n={st:h.httpStatus},p=new g.MD("onesie.response.badstatus",
!1,n),u.return(Promise.reject(p));q=h.body;t=g.C.TextDecoder?(new TextDecoder).decode(q):g.Ya(q);d.oa();d.oa();return u.return(t)})})};
jX.prototype.oa=function(){};g.w(nX,lX);nX.prototype.u=function(a){PQ(a,1,this.name);PQ(a,2,this.value)};g.w(oX,lX);oX.prototype.u=function(a){PQ(a,1,this.url);for(var b=g.r(this.httpHeaders),c=b.next();!c.done;c=b.next())c=c.value,$wa(a),c.u(a),axa(a);PQ(a,3,this.postBody)};g.w(pX,lX);pX.prototype.u=function(a){this.i.YN&&MQ(a,13,this.i.YN);if(void 0!==this.i.lastManualDirection){var b=this.i.lastManualDirection;LQ(a,112);LQ(a,b<<1^b>>31)}this.i.lL&&MQ(a,16,this.i.lL);this.i.viewportHeight&&this.i.viewportWidth&&(MQ(a,18,this.i.viewportWidth),MQ(a,19,this.i.viewportHeight));this.i.PN&&MQ(a,21,this.i.PN);this.i.YI&&MQ(a,23,this.i.YI);void 0!==this.i.visibilityState&&MQ(a,34,this.i.visibilityState);void 0!==this.i.XN&&MQ(a,39,this.i.XN);this.i.Kn&&MQ(a,40,1)};g.w(qX,lX);qX.prototype.u=function(a){NQ(a,2,this.i);NQ(a,5,this.encryptedClientKey);NQ(a,6,this.iv);NQ(a,7,this.hmac);MQ(a,10,this.serializeResponseAsJson?1:0)};g.w(rX,lX);rX.prototype.u=function(a){$wa(a);this.i.u(a);axa(a);NQ(a,3,mX(this.B));this.onesieUstreamerConfig&&NQ(a,4,this.onesieUstreamerConfig)};sX.prototype.feed=function(a){ZC(this.i,a);dGa(this)};
sX.prototype.dispose=function(){this.i=new YC};var l3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},mGa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},l3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},l3),Object.assign({itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},
l3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},l3),Object.assign({itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},l3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},l3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},l3)],m3=["136","135",
"134","133","160"],n3=["247","244","243","242"],o3={},lGa=(o3["137"]=m3,o3["248"]=n3,o3["399"]=["398","397","396","395","394"],o3["298"]=m3,o3["302"]=n3,o3["299"]=["298","137"].concat(m3),o3["303"]=["302","248"].concat(n3),o3["140"]=[],o3["251"]=["250"],o3),p3={},eGa=(p3["160"]=0,p3["133"]=22639,p3["134"]=45778,p3["135"]=73749,p3["136"]=153645,p3["137"]=332697,p3["278"]=0,p3["242"]=22702,p3["243"]=42954,p3["244"]=73575,p3["247"]=139201,p3["248"]=259369,p3["298"]=260272,p3["299"]=589187,p3["302"]=
295858,p3["303"]=528496,p3["394"]=0,p3["395"]=18457,p3["396"]=37231,p3["397"]=65872,p3["398"]=133087,p3["399"]=236318,p3),q3={},fGa=(q3["133"]=240,q3["134"]=360,q3["135"]=480,q3["136"]=720,q3["137"]=1080,q3["242"]=240,q3["243"]=360,q3["244"]=480,q3["247"]=720,q3["248"]=1080,q3["298"]=720,q3["299"]=1080,q3["302"]=720,q3["303"]=1080,q3["395"]=240,q3["396"]=360,q3["397"]=480,q3["398"]=720,q3["399"]=1080,q3),gGa=["1","9","h"];g.w(tX,g.I);g.k=tX.prototype;g.k.We=function(a){this.Ca.We(a)};
g.k.ZE=function(){this.We("orpr");this.DK=!0};
g.k.eA=function(a,b){var c;null===(c=this.Be)||void 0===c?void 0:(c.Me.get(a).yk=b,c.oa());kX(this)};
g.k.Ba=function(a,b){this.Ca.Ba(a,b)};
g.k.fetch=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p,q,t;return g.B(b,function(u){if(1==u.i){c.oa();c.hA.start();c.PM&&c.gA.start();c.We("ogpd");var x=c.playerRequest,y=c.X,A=c.videoData,F=y.Tg;F="https://youtubei.googleapis.com/youtubei/"+F.innertubeApiVersion+"/player?key="+F.innertubeApiKey;var G=[new nX({name:"Content-Type",value:"application/json"})],E=A.mf();E&&G.push(new nX({name:"Authorization",value:"Bearer "+E}));G.push(new nX({name:"User-Agent",value:g.Qb}));(A=
A.visitorData||g.P("VISITOR_DATA",void 0))&&G.push(new nX({name:"X-Goog-Visitor-Id",value:A}));(y=g.kE(y.experiments,"debug_sherlog_username"))&&G.push(new nX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new oX({url:F,httpHeaders:G,postBody:x});try{var K=c.X,V=c.videoData,L=c.Ca.getPlayerSize(),W=c.Ca.getVisibilityState(),oa=c.DJ.onesieUstreamerConfig,wa=c.pF;var vb=wa.encrypt(mX(e));var ob=wa.i.encryptedClientKey,$b=wa.iv,Uc=wa.iv,bd=new cR(wa.i.u);bd.update(vb);bd.update(Uc);
var Se=kxa(bd);bd.update(bd.D);bd.update(Se);var ac=kxa(bd);bd.reset();var vk=new qX(vb,ob,$b,ac);wa={};var Wi=gE(0);if(Wi){wa.lL=Wi;wa.lastManualDirection=nma();var Xi=Wia()||0;0<Xi&&(wa.YN=(0,g.Q)()-Xi)}wa.PN=gE();wa.YI=JE(K.schedule,!0);var Ph=g.vF();wa.viewportHeight=L.height*Ph;wa.viewportWidth=L.width*Ph;wa.visibilityState=W;wa.XN=Vu();K.N("html5_onesie_audio_only_playback")&&(wa.Kn=V.Kn());d=new rX(vk,new pX(wa),oa)}catch(sm){return c.oa(),sm instanceof g.MD?c.Ch(sm):(f=new g.MD("onesie.request",
!1),c.Ch(f)),u.return(c.Wk)}c.We("osor");h=Bua(c.X);l=mX(d);g.St()&&(l=new Uint8Array(l.buffer.slice(0,l.length)));m={method:"POST",body:l,headers:{"Content-Type":"text/plain",Referer:location.origin}};K=c.videoData;var Ia,Dd;V=K.V().bd;(null===V||void 0===V?0:V.baseUrl)&&(L=g.kE(K.V().experiments,"debug_bandaid_hostname")||(null===(Ia=g.Rz("yt-player-bandaid-host"))||void 0===Ia?void 0:Ia.primary))&&(Dd=oGa(new g.wB("https://"+L+V.baseUrl),K));if(Dd)Ia=Dd;else{var Bb;Ia=null!==(Bb=K.Gq)&&void 0!==
Bb&&Bb.url?new g.wB(K.Gq.url):null}return(n=Ia)?u.fb(2):g.z(u,pGa(c.videoData),3)}2!=u.i&&(n=u.u);if(!n)return c.oa(),p={url:"0"},q=new g.MD("onesie.unavailable.hotconfig",!1,p),c.Ch(q),u.return(c.Wk);Bb=n;Ia=c.videoData;a:{if(c.Be){Dd=JE(c.X.schedule,!0);V=kGa(c.Ca.getVideoData());K=V.video;V=V.audio;c.X.N("html5_onesie_server_initial_format_selection")||(K=hGa(c.Ca,K,Dd));if(K.length){Dd={video:K,audio:V};break a}c.Ba("ombspf","limit."+Dd)}Dd=void 0}Bb.set("ack","1");Bb.set("cpn",Ia.clientPlaybackNonce);
Bb.set("opr","1");Bb.set("oaad","0");Bb.set("oavd","0");Bb.set("por","yes");Dd?(Ia=Dd.audio,Bb.set("pvi",Dd.video.join(",")),Bb.set("pai",Ia.join(",")),aB()||Bb.set("osh","1")):(Bb.set("pvi","135"),Bb.set("pai","140"),Bb.set("oad","0"),Bb.set("ovd","0"));c.oa();c.mj&&c.Ba("ombrs","1");t=c.Ca.V().schedule;c.Rk=new iV(c,{Ng:t,jD:c.mj});n.set("rn",""+c.Rk.requestNumber);c.Fw=n.Wd();c.We("ocs");aB()?cB()?c.xhr=new hV(c.Fw,h,c.Rk,m):c.xhr=new qV(c.Fw,h,c.Rk,m):c.xhr=new rV(c.Fw,c.Rk,m);c.X.N("html5_onesie_host_probing")&&
c.aE&&(c.aE.i=c,Bb=c.aE,Ia=g.Rz("yt-player-bandaid-host"),(Dd=null===Ia||void 0===Ia?void 0:Ia.secondary)&&Ima(Bb,Dd,"o2"),Ia=null===Ia||void 0===Ia?void 0:Ia.primary)&&(Ia=Jma(Ia),Ima(Bb,Ia,"o3"));return u.return(c.Wk)})})};
g.k.Ks=function(){};
g.k.iq=function(){this.En();this.gA.isActive()&&this.gA.start()};
g.k.Zn=function(){this.oa();this.En();var a=qGa(this),b=this.xhr;if(b.pe()){var c="onesie.net";a.msg=b.pe()}else 400<=b.status?c="onesie.net.badstatus":b.Pw()?this.DK||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.Ch(new g.MD(c,!1,a)):(this.We("orf"),tCa(this.Rk,(0,g.Q)(),this.Rk.u,0),this.mj&&this.Ba("rqs",a));this.mj&&this.Ba("ombre","ok."+ +!c);this.Vw=!1;kX(this);$Fa(this.eq)};
g.k.AK=function(){this.oa();this.Vw=!1;if(!kX(this)){var a=qGa(this);a.timeout="1";this.Ch(new g.MD("onesie.request",!1,a))}};
g.k.Ch=function(a){this.Wk.reject(a);this.hA.stop();this.We("ore");this.dispose()};
g.k.xa=function(){var a;this.playerResponse="";null===(a=this.xhr)||void 0===a?void 0:a.abort();$Fa(this.eq);this.mO.dispose();g.I.prototype.xa.call(this)};
g.k.En=function(){var a=this.xhr;102400<a.Ol()&&!this.XK&&(this.We("or100k"),this.XK=!0);for(;a.Vf();){var b=a.Sh(),c=b.totalLength;this.oa();this.mj&&this.Ba("ombrss","len."+c);this.mO.feed(b)}};
g.k.oa=function(){};g.w(g.yX,g.R);g.k=g.yX.prototype;g.k.xa=function(){this.oa();this.rN();this.vA.stop();window.clearInterval(this.oA);gAa(this.Ce);this.visibility.unsubscribe("visibilitystatechange",this.Ce);aFa(this.Xb);g.oe(this.Xb);DX(this);g.Pu(this.tq);this.Cg();this.De=null;g.oe(this.videoData);g.oe(this.wk);g.pe(this.iT);this.vk=null;g.R.prototype.xa.call(this)};
g.k.Qw=function(a){this.Xb.Qw(a)};
g.k.Qs=function(a,b,c,d){this.Xb.Qs(a,b,c);this.N("html5_log_media_perf_info")&&this.Ba("adloudness","ld."+d.toFixed(3)+";cpn."+a);this.videoData.Y&&this.Ba("adpb","cpn."+a)};
g.k.AD=function(){var a;return null===(a=this.Wa)||void 0===a?void 0:a.AD()};
g.k.BD=function(){var a;return null===(a=this.Wa)||void 0===a?void 0:a.BD()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.X};
g.k.Jp=function(){return this.visibility};
g.k.jd=function(){return this.ra};
g.k.RC=function(){if(this.videoData.isLoaded()){var a=this.wk;0<g.sE(a.i.experiments,"html5_player_min_build_cl")&&399829848<g.sE(a.i.experiments,"html5_player_min_build_cl")&&$Da(a,"oldplayer");IGa(this)}else this.videoData.cd||this.videoData.Rj?this.ws&&g.mF(this.X)&&this.videoData.isLivePlayback||(this.videoData.cd?Soa(this.videoData):(a=this.Xb,a.qoe&&(a=a.qoe,vW(a,"protected"),a.i.videoData.J?a.DN():a.i.videoData.subscribe("dataloaded",a.DN,a)),Noa(this.videoData))):!this.videoData.Da&&this.XQ&&
HGa(this)};
g.k.Iv=ba(3);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.ea("internalAbandon"),this.TF(!0),aFa(this.Xb),g.oe(this.Xb),g.Pu(this.tq))};
g.k.Jq=function(){$Ea(this.Xb)};
g.k.Hf=function(a,b,c,d,e){this.oa();var f,h;g.ec(sNa,b)?f=b:b?h=b:f="GENERIC_WITHOUT_LINK";c=(c||"")+(";a6s."+Gta());(b=h)||(b=g.CN[f]||"");a={errorCode:a,errorDetail:d,errorMessage:b,mD:f,oi:e||"",CF:c};BX(this,"dataloaderror");this.Tb(VJ(this.playerState,128,a));g.Pu(this.tq);DX(this);this.nm()};
g.k.Ld=function(a){this.Fj=this.Fj.filter(function(b){return a!==b});
this.oa();this.lm.started&&CX(this)};
g.k.Tl=function(){var a;(a=!!this.Fj.length)||(a=this.Bh.i.i[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Wl=function(){return this.Mc.Wl()};
g.k.Ac=function(){return this.playerState.Ac()};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.De){var a=this.De;a=a.videoData.No.compose(a.videoData.DL);a=kB(a)}else a="auto";return a};
g.k.Jv=ba(9);g.k.isGapless=function(){return!!this.ra&&this.ra.isView()};
g.k.setMediaElement=function(a){this.oa();if(this.ra&&a.Le()===this.ra.Le()&&(a.isView()||this.ra.isView())){if(a.isView()||!this.ra.isView())g.my(this.Et),this.ra=a,RGa(this),this.Mc.setMediaElement(this.ra)}else{this.ra&&this.Cg();if(!this.playerState.isError()){var b=XJ(this.playerState,512);g.T(b,8)&&!g.T(b,2)&&(b=WJ(b,1));a.isView()&&(b=XJ(b,64));this.Tb(b)}this.ra=a;this.ra.setLoop(this.loop);this.ra.setPlaybackRate(this.playbackRate);RGa(this);this.Mc.setMediaElement(this.ra)}};
g.k.Cg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.oa();if(this.ra){var c=this.getCurrentTime();0<c&&(this.Mc.B=c);this.Mc.setMediaElement(null);LX(this);this.Wa&&(EV(this.Wa),MX(this,b));this.aq.stop();if(this.ra){!this.lm.started||this.playerState.isError()||g.T(this.playerState,2)||this.Tb(WJ(this.playerState,512));g.my(this.Et);if(a||!this.ra.isView())this.ra.stopVideo(),QX(this);this.ra=null}}};
g.k.playVideo=function(){return g.H(this,function b(){var c=this,d,e,f,h;return g.B(b,function(l){if(1==l.i){c.oa();if(!c.N("html5_clear_globalcache_killswitch")){var m=window.google_image_requests;m&&10<m.length&&(window.google_image_requests=m.slice(-10))}if(g.T(c.playerState,128))return l.return();if(c.wk.xz())return c.ea("signatureexpired"),l.return();c.ra&&ZEa(c.Xb);HX(c);g.T(c.playerState,64)&&c.Tb(WJ(c.playerState,8));return c.lm.isFinished()&&c.ra?c.De||!c.Hw?l.fb(2):g.z(l,c.Hw,2):l.return()}if(!c.videoData.C)return d=
c.videoData.isLivePlayback&&!g.zE(c.X.C,!0)?"html5.unsupportedlive":xG(c.videoData)?"fmt.unplayable":"fmt.noneavailable",g.Bz(Error("selectableFormats")),c.Hf(d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(c.qf()&&c.videoData.C.i)return c.oa(),l.return(AX(c));if(c.videoData.isLivePlayback){e=c.getCurrentTime()<c.getMinSeekableTime()-15;f=g.LG(c.videoData)&&g.T(c.playerState,4);h=!c.N("html5_dompaused_unpause_killswitch")&&g.T(c.playerState,1024);h||!e&&!f||(f?(c.oa(),
c.seekTo(Infinity,{Sd:"videoplayer_unpauseLiveOnly"})):(c.oa(),c.seekTo(c.getMinSeekableTime(),{Sd:"videoplayer_outOfWindow"})));!c.isAtLiveHead(void 0,!0)&&c.Wl()&&(c.oa(),c.seekTo(Infinity,{Sd:"videoplayer_peggedToLive"}));if(m=g.T(c.playerState,256)&&c.videoData.qb)m=c.Mc,m=m.S&&!isFinite(m.i);if(m)return c.Tb(YJ(c.playerState,8,4)),l.return()}g.T(c.playerState,4)&&g.T(c.playerState,16)&&c.Tb(YJ(c.playerState,9,4));if(wX(c))return XGa(c),l.return();PX(c);g.sa(l)})})};
g.k.qn=function(){if(!this.De)return[];var a=eEa(this.Wf,this.De,this.Wr());return this.De.i.qn(a)};
g.k.Wr=function(){var a=this.Gd?this.Gd.Wr():wG(this.videoData)&&this.videoData.i&&sB(this.videoData.i)?this.videoData.Og?oG:ODa:oG;this.OF&&(a=a.compose(hNa));return a};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.i?kB(this.videoData.No):jB[gE()]};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(this.N("html5_native_audio_track_switching")){var a=NGa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.Ep=function(){return this.mediaSource};
g.k.Is=function(a){this.oa();this.Ls.set(a.initData,a);this.Gd&&(this.Gd.Is(a),this.N("html5_eme_loader_sync")||this.Ls.remove(a.initData))};
g.k.Zz=function(a){JX(this,a.reason,a.video.info,a.audio.info);this.Mc.Zz(a)};
g.k.Hs=function(a){this.ea("localmediachange",a)};
g.k.zt=function(){var a;null===(a=this.Wa)||void 0===a?void 0:a.zt(this.X)};
g.k.xz=function(){return this.wk.xz()};
g.k.handleError=function(a){this.wk.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.T(this.playerState,64)||g.T(this.playerState,2))&&!a)if(g.T(this.playerState,8))this.Tb(YJ(this.playerState,4,8));else return;this.N("html5_enable_server_stitched_ad_skip")&&this.videoData.enableServerStitchedDai&&this.jx()||(g.T(this.playerState,128)||(a?this.Tb(WJ(this.playerState,256)):this.Tb(YJ(this.playerState,4,8))),this.ra&&this.ra.pause(),g.LG(this.videoData)&&this.Wa&&MX(this,!1))};
g.k.stopVideo=function(){this.pauseVideo();this.Wa&&(MX(this,!1),FV(this.Wa))};
g.k.nm=function(a){a=void 0===a?!1:a;var b;null===(b=this.ra)||void 0===b?void 0:b.stopVideo();QX(this);DX(this);g.T(this.playerState,128)||(a?this.Tb(XJ(XJ(WJ(this.playerState,4),8),16)):this.Tb(VJ(this.playerState)));this.videoData.videoId&&this.X.Z.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.oa("SeekTo "+a+", "+JSON.stringify(b));g.T(this.playerState,2)&&wX(this);if(this.Dd){var c=this.Dd;isFinite(a)&&a<c.Ca.hj()?c.isLiveNow=!1:c.isLiveNow=!0}this.Mc.seekTo(a,b)};
g.k.getCurrentTime=function(){return this.Mc.getCurrentTime()};
g.k.Dh=function(){return this.Mc.Dh()};
g.k.hj=function(){return this.Mc.hj()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Tc())};
g.k.Xr=function(){var a=NaN;this.ra&&(a=this.ra.Xr());return 0<=a?a:this.getCurrentTime()};
g.k.getIngestionTime=function(){var a;if(null===(a=this.videoData.i)||void 0===a?0:a.getIngestionTime)return this.videoData.i.getIngestionTime(this.getCurrentTime()-this.Tc());if((!this.N("html5_disable_limit_ingestion_tvos")||Tt())&&this.ra){var b=this.ra.Ix();if(b&&(b=b.getTime(),!isNaN(b)))return b/1E3+this.getCurrentTime()}return NaN};
g.k.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Tc():this.hd()?this.hd():0};
g.k.ez=function(){var a=new eFa;if(this.Wa){var b=this.X.schedule;a.u=b.Z;a.C=b.Y;a.bandwidthEstimate=JE(b);a.i="d."+HE(b).toFixed(2)+";st."+(1E9*(b.i.qg()||0)).toFixed(2)+";bw."+b.B.qg().toFixed(0)+";abw."+b.J.qg().toFixed(0)+";v50."+FE(b.u,.5).toFixed(2)+";v92."+FE(b.u,.92).toFixed(2)+";v96."+FE(b.u,.96).toFixed(2)+";v98."+FE(b.u,.98).toFixed(2);b=this.Wa;if(b.mediaSource&&!b.mediaSource.rf()&&(a.hp=bV(b.videoTrack,b.currentTime),a.B=bV(b.audioTrack,b.currentTime),b.policy.eb)){var c=aV(b.videoTrack),
d=aV(b.audioTrack),e=ED(b.mediaSource.u.kf(),"_",5),f=ED(b.mediaSource.i.kf(),"_",5);a.i=(a.i||"")+(";lvq."+c+";laq."+d+";lvb."+e+";lab."+f)}a.bandwidthEstimate=eU(b.J);b.oa()}else this.ra&&(a.hp=SJ(this.ra));a.D=this.isAtLiveHead()&&this.Ac()?vX(this):NaN;return a};
g.k.Cp=function(){return this.ra?g.LG(this.videoData)?1:MG(this.videoData)?this.isAtLiveHead()||this.Wl()?1:this.Mc.Cp():this.ra.Cp():0};
g.k.Ib=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Xb.Ib());this.ra&&(Object.assign(b,this.ra.Ib()),Object.assign(b,this.Ov()));this.Wa&&Object.assign(b,this.Wa.Ib());this.Gd&&(b.drm=JSON.stringify(this.Gd.Ib()));b.state=this.playerState.state.toString(16);g.T(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Tl()&&(b.prerolls=this.Fj.join(","));this.videoData.Pj&&(b.ismb=this.videoData.Pj);"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.Wx.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.i&&eE(this.videoData.i)&&(b.segduration=eE(this.videoData.i)),a=this.Mc,b.lat=a.J?KAa(a.J.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.xe.toFixed(3);if(a=g.IX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=
gE();b.release_version="youtube.player.web_20210928_1_RC1"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Hu([a])};
g.k.removeCueRange=function(a){this.Bh.Zf([a])};
g.k.Hu=function(a){this.Bh.Ed(a)};
g.k.DA=function(a){this.Bh.Zf(a)};
g.k.vn=function(){return this.Bh.vn()||[]};
g.k.qf=function(){return this.visibility.qf()};
g.k.Ao=function(){this.ra&&this.ra.Ao()};
g.k.hW=function(){BX(this)};
g.k.togglePictureInPicture=function(){this.ra&&this.ra.togglePictureInPicture()};
g.k.oF=function(a){this.YA.stop();var b=a.target.Cf();if(this.ra&&this.ra.Cf()&&this.ra.Cf()===b){$Ga(this,a.type);switch(a.type){case "error":var c=TJ(this.ra)||"";if("capability.changed"===c){AX(this);return}if(0<this.ra.aj()&&lW(this.wk,c,{msg:this.ra.pe()}))return;if(this.isBackground()&&4===this.ra.aj()){this.nm();EX(this,"unplayable");return}break;case "durationchange":c=this.ra.getDuration();isFinite(c)&&(!this.mediaSource||0<c)&&1!==c&&this.Gj(c);break;case "ratechange":this.Wa&&this.Wa.setPlaybackRate(this.ra.getPlaybackRate());
c=this.Bh;c.started=!0;c.bl();this.Xb.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bHa(this);this.ea("onLoadedMetadata");UGa(this);break;case "loadstart":UGa(this);break;case "progress":case "suspend":this.Qb();this.ea("onLoadProgress",this,this.Cp());break;case "playing":if(this.N("html5_force_manifestless_seeking_state")&&DG(this.videoData)&&this.Wa&&this.Wa.C.i){this.Ba("mflForceSeek","reason.play");return}this.Pb.tick("plev");TGa(this);YA("plev",void 0,"video_to_ad");
this.QF&&(this.QF=!1,this.isAtLiveHead()||(this.oa(),this.seekTo(Infinity,{Sd:"videoplayer_onPlaying"})));break;case "timeupdate":TGa(this);c=this.ra&&!this.ra.getCurrentTime();var d=this.ra&&0===this.ra.uh();if(c&&(!this.Vz||d))return;this.Vz=this.Vz||!!this.ra.getCurrentTime();OX(this);this.Qb();if(!this.ra||this.ra.Cf()!==b)return;this.ea("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.ra.Gp().length&&0===this.ra.Sf().length&&0<this.ra.getCurrentTime()&&5>this.ra.getCurrentTime()&&
this.Wa)return;break;case "resize":bHa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.WI&&g.T(this.playerState,8)&&!g.T(this.playerState,1024)&&0===this.getCurrentTime()&&g.Ui){EX(this,"safari_autoplay_disabled");return}}if(this.ra&&this.ra.Cf()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.T(b,128)){c=this.Nu;var e=this.ra,f=this.X.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime();
if(!g.T(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Ik()||1<h&&1.1>Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.T(b,4)&&!MW(c,h);if("pause"===a.type&&e.Ik()||l&&h)0<e.Xy()&&e.Cf()&&(d=14);else switch(a.type){case "error":TJ(e)&&(d|=128);break;case "pause":g.T(b,256)?(d^=256)||(d=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(d=4,g.T(b,1)&&g.T(b,8)&&(d|=1));break;case "playing":d=(d|8)&-1029;f&&f.ob("html5_playing_clears_unstarted_killswitch")||(d&=-65);
MW(c,e.getCurrentTime())&&(d&=-2);g.T(b,1)&&NW(c,e.getCurrentTime(),(0,g.Q)(),SJ(e))&&(d|=1);break;case "seeking":d|=16;g.T(b,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;break;case "waiting":g.T(b,2)||(d|=1);NW(c,e.getCurrentTime(),(0,g.Q)(),SJ(e));break;case "timeupdate":f=g.T(b,16),l=g.T(b,4),(g.T(b,8)||f)&&!l&&MW(c,e.getCurrentTime())&&(d=8),NW(c,e.getCurrentTime(),(0,g.Q)(),SJ(e))&&(d|=1)}}c=d;d=null;c&128&&(d=a.target,(e=TJ(d))?(f="GENERIC_WITHOUT_LINK",l=d.Ib(),l.mediaElem="1",/AUDIO_RENDERER/.test(d.pe())&&
(f="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:e,errorMessage:g.CN[f]||"",mD:f,CF:g.LD(l)}):d=null);b=VJ(b,c,d)}!g.T(this.playerState,1)&&g.T(b,1)&&RX(this,"evt"+a.type);this.Tb(b)}}};
g.k.VV=function(){this.Ba("misstimeupdate","");SGa(this)&&!g.T(this.playerState,2)&&DS(this,!0,!1)};
g.k.wT=function(a){a="available"===a.i.availability;a!==this.Xv&&(this.Xv=a,this.ea("airplayavailabilitychange"))};
g.k.xT=function(){var a=(0,g.Q)(),b=this.ra.qf();this.Ba("airplay",b?"on":"off");if(!this.N("html5_ignore_inactive_airplay_killswitch")&&b||isNaN(this.zz)||!(2E3>a-this.zz))this.zz=a,b!==this.qf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.Ce()),this.Ba("airplay","rbld_"+b),kW(this)),this.ea("airplayactivechange")};
g.k.Pv=function(a){if(this.Wa){var b=this.Wa,c=b.B,d=b.currentTime;c.Ba("sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&jBa(c,d,c.C,c.B);c.i=4;EV(b)}};
g.k.Qb=function(a){var b=this;a=void 0===a?!1:a;if(this.ra&&this.videoData){BFa(this.Mc,this.Ac());var c=this.getCurrentTime();this.Wa&&(g.T(this.playerState,4)&&g.LG(this.videoData)||eDa(this.Wa,c));5<c&&(this.Mc.B=c);var d=g.Ou();d?g.Pu(this.tq):g.rt(this.tq);if((g.bK(this.playerState)||!this.ra.Im()||qH(this.videoData))&&!g.T(this.playerState,128)){var e=function(){if(b.ra&&!g.T(b.playerState,128)){b.videoData.Y&&g.sE(b.X.experiments,"html5_log_rebuffer_events")&&$Ga(b,"pfx");var f=b.getCurrentTime(),
h=SJ(b.ra),l=g.T(b.playerState,8),m=MW(b.Nu,f),n=NW(b.Nu,f,(0,g.Q)(),h);l&&m?b.Tb(XJ(b.playerState,1)):l&&n?(l=b.getDuration(),m=b.videoData.isLivePlayback,(b.N("html5_set_ended_in_pfx_live")||!m)&&l&&1.1>Math.abs(l-f)?(b.Ba("setended","ct."+f+";bh."+h+";dur."+l+";live."+ +m),m&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.ra.Dp()?(b.oa(),b.seekTo(0,{Sd:"videoplayer_loop"})):DS(b))):(g.bK(b.playerState)||RX(b,"progress_fix"),b.Tb(WJ(b.playerState,1)))):(l&&!m&&!n&&0<f&&(l=(Date.now()-b.Cz)/1E3,m=b.getDuration(),
f>m-1&&b.Ba("misspg","t:"+f.toFixed(2)+";d:"+m.toFixed(2)+";r:"+l.toFixed(2)+";bh:"+h.toFixed(2))),g.T(b.playerState,4)&&g.bK(b.playerState)&&5<SJ(b.ra)&&b.Tb(XJ(b.playerState,1)));b.Qb()}};
0===this.ra.Gp().length?this.tq=d?Ju(e,1,100):g.pt(e,100):this.tq=d?Ju(e,1,500):g.pt(e,500)}this.videoData.pu=c;!a&&this.Ac()&&WGa(this);qEa(this.Wf,this.De,this.jd(),this.isBackground())&&LV(this);rEa(this.Wf,this.videoData.u)&&(this.Xb.Rd("qoe.restart","droprate."+this.Wf.K),this.X.C.K=!1,kW(this));this.ea("progresssync",this,a)}};
g.k.PR=function(){this.Hf("ad.rebuftimeout","RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.Fv=function(){return this.Xb.Fv()};
g.k.xD=function(){return this.Wa?this.Wa.xD():JE(this.X.schedule,!0)};
g.k.bR=function(){g.bK(this.playerState)&&oEa(this.Wf,this.De)&&LV(this)};
g.k.Tb=function(a){if(!g.ZJ(this.playerState,a)){this.oa();var b=new g.cI(a,this.playerState);this.playerState=a;aHa(this);var c=!this.qA.length;this.qA.push(b);var d=this.ra&&this.ra.Xt();g.eI(b,1)&&!g.T(b.Tn,16)&&!d&&g.T(this.playerState,8)&&!g.T(this.playerState,64)&&this.Wa&&(d=this.Wa,d.oa(),d.ya=!0,this.ra&&5<=SJ(this.ra)&&((d=g.sE(this.X.experiments,"html5_non_network_rebuffer_duration_ms"))?this.SL.start(d):oEa(this.Wf,this.De)&&LV(this)));(d=g.sE(this.X.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.T(a,1)&&(g.T(a,8)||g.T(a,16))?this.uC.start(d):this.uC.stop();(0>dI(b,8)||g.eI(b,1024))&&this.aq.stop();!g.eI(b,8)||this.videoData.qb||g.T(b.state,1024)||this.aq.start();g.T(b.state,8)&&0>dI(b,16)&&!g.T(b.state,32)&&!g.T(b.state,2)&&this.playVideo();g.T(b.state,2)&&MG(this.videoData)&&(this.Gj(this.getCurrentTime()),this.Qb(!0));g.eI(b,2)&&this.TF(!0);g.eI(b,128)&&this.nm();this.videoData.i&&this.videoData.isLivePlayback&&!this.rO&&(0>dI(b,8)?(a=this.videoData.i,a.C&&a.C.stop()):
g.eI(b,8)&&this.videoData.i.resume());this.Mc.Lc(b);this.Xb.Lc(b);if(c&&!this.isDisposed())try{for(var e=g.r(this.qA),f=e.next();!f.done;f=e.next()){var h=f.value;this.Bh.Lc(h);this.ea("statechange",h)}}finally{this.qA.length=0}}};
g.k.zw=function(){this.videoData.isLivePlayback||this.ea("connectionissue")};
g.k.lF=function(){this.Pb.tick("qoes")};
g.k.Yz=function(a,b,c,d){a:{var e=this.wk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.Gd&&1<this.Gd.u.keys.length&&96>e.D)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.N("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.J&&(e.J++,QX(e.Ca),1<e.videoData.Zg.length&&(e.oa(),e.videoData.J=e.videoData.Zg[1]),lW(e,a,{detail:c})))break a;if(b)if(e.videoData.u&&e.videoData.u.video.isHdr())bEa(e,a);else{if(e.Ca.Hf(a,d,c),e.videoData.N("html5_exile_on_drm_fatal")&&
VDa(e,{detail:c}))break a}else e.Rd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.Ba("retrydrm","s"),e.D++,ZGa(e.Ca))}};
g.k.tU=function(){var a=this,b=g.sE(this.X.experiments,"html5_license_constraint_delay"),c=du();b&&c?(b=new g.M(function(){FX(a);BX(a)},b),g.J(this,b),b.start()):(FX(this),BX(this))};
g.k.Bw=function(a){this.ea("heartbeatparams",a)};
g.k.Xn=function(a){this.Ba("keystatuses",DDa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=EDa(b,c);d=VV(a)?WV(a,d):a.D.includes(d)}else{a:{b=EDa(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?bEa(this.wk):d||WV(a,"AUDIO")&&WV(a,"SD")||(this.oa(),this.OF?(this.oa(),this.ea("drmoutputrestricted")):
(this.OF=!0,this.Ba("retrydrm","o"),GX(this),ZGa(this)))};
g.k.wU=function(){var a,b;if(!this.videoData.qb&&this.ra&&!this.isBackground()){var c="0";0<this.ra.uh()&&5<=SJ(this.ra)&&this.videoData.C&&this.videoData.C.i&&(this.Tb(WJ(this.playerState,1)),RX(this,"load_soft_timeout"),this.ea("playbackstalledatstart"),c="1");aHa(this);if(this.N("html5_new_video_qoe_restart_info_killswitch"))c={restartmsg:c},this.Tl()&&(c.prerolls=this.Fj.join(",")),this.Wa&&Object.assign(c,this.Wa.Ib()),this.ra&&Object.assign(c,this.ra.Ib());else{var d=this.videoData.C;c={restartmsg:c,
mfmt:wG(this.videoData)?"0":"1",mdrm:d&&d.videoInfos&&d.videoInfos.length&&d.videoInfos[0].zd&&!this.Gd?"1":"0",mfmtinfo:this.videoData.u?"0":"1",prerolls:this.Tl()?this.Fj.join(","):"0"};if(this.Gd){d=c;var e=this.Gd;if(0>=e.u.size){var f="ns;";e.Z||(f+="nr;");e=f+="ql."+e.B.length}else e=DDa(e.u.values().next().value);d.drmp=e}Object.assign(c,(null===(a=this.Wa)||void 0===a?void 0:a.Ib())||{});Object.assign(c,(null===(b=this.ra)||void 0===b?void 0:b.Ib())||{})}this.Xb.Rd("qoe.start15s",g.LD(c));
this.ea("loadsofttimeout")}};
g.k.Gj=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,BX(this))};
g.k.TF=function(a){var b=this;a=void 0===a?!1:a;if(!this.Xx){XA("att_s","player_att")||YA("att_s",void 0,"player_att");var c=new g.Vta(this.videoData);if("c1a"in c.i&&!g.rM.Yd()&&(YA("att_wb",void 0,"player_att"),2===this.EC&&.01>Math.random()&&g.Bz(Error("Botguard not available after 2 attempts")),!a&&5>this.EC)){g.Dq(this.FC);this.EC++;return}if("c1b"in c.i){var d=cFa(this.Xb);d&&Yta(c).then(function(e){e&&!b.Xx&&d?(YA("att_f",void 0,"player_att"),d(e),b.Xx=!0):YA("att_e",void 0,"player_att")},
function(){YA("att_e",void 0,"player_att")})}else(a=g.Wta(c))?(YA("att_f",void 0,"player_att"),bFa(this.Xb,a),this.Xx=!0):YA("att_e",void 0,"player_att")}};
g.k.hd=function(a){return this.Mc.hd(void 0===a?!1:a)};
g.k.getMinSeekableTime=function(){return this.Mc.getMinSeekableTime()};
g.k.Tc=function(){return this.Mc?this.Mc.Tc():0};
g.k.getStreamTimeOffset=function(){return this.Mc?this.Mc.getStreamTimeOffset():0};
g.k.setPlaybackRate=function(a){var b=this.videoData.C&&this.videoData.C.videoInfos&&32<this.videoData.C.videoInfos[0].video.fps&&g.mF(this.X);this.playbackRate!==a&&b&&(this.Wf.setPlaybackRate(a),GX(this));this.playbackRate=a;this.ra&&this.ra.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.ra)){var b=bI(this);b&&0<b.videoHeight&&(a=kD(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.k.Bt=function(){this.Xb.Bt()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Xb;c.i?(c=EW(c.i,"engage"),c.Z=a,c.send(b)):b&&b()};
g.k.Fh=function(a){return this.Xb.Fh(a)};
g.k.isAtLiveHead=function(a,b){return this.videoData.isLivePlayback&&(this.CK||(void 0===b?0:b))?this.Mc.isAtLiveHead(a):!1};
g.k.xn=function(){var a=this.hd(),b=this.getCurrentTime(),c;(c=!this.videoData.isLivePlayback)||(c=this.Mc,c=!(c.u&&c.u.B));return c||this.Wl()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.zj=ba(13);g.k.Wn=ba(32);g.k.Vn=ba(35);g.k.Ov=function(){return this.ra?this.ra.Jx():{}};
g.k.setLoop=function(a){this.loop=a;this.ra&&this.ra.setLoop(a)};
g.k.Dp=function(){return this.ra?this.ra.Dp():this.loop};
g.k.nF=function(a){var b=this.N("html5_unrewrite_timestamps");this.Ba("timestamp","enabled."+b+";t."+a.toString());this.Mc.nF(a)};
g.k.We=function(a){this.Pb.tick(a)};
g.k.Ba=function(a,b,c){this.Xb.Ba(a,b,void 0===c?!1:c)};
g.k.Rd=function(a){this.Xb.Rd(a.errorCode,g.LD(a.details))};
g.k.Rw=function(a,b,c){this.Xb.Rw(a,b,c)};
g.k.getPlayerSize=function(){return this.ix.getPlayerSize()};
g.k.rg=function(){return this.ix.rg()};
g.k.oa=function(){};
g.k.N=function(a){return this.X.N(a)};
g.k.DC=function(){if(AG(this.videoData,"html5_set_debugging_opt_in")){var a=g.Dv.getInstance();if(!g.Fv(0,183)){var b="f"+(Math.floor(183/31)+1),c=Ev(b)||0;c|=268435456;0==c?delete Cv[b]:(c=c.toString(16),Cv[b]=c.toString());a.save()}}};
g.k.rN=function(){if(g.$J(this.playerState)){var a=xX.VJ();0!==Object.keys(a).length&&this.Xb.Ba("profile",a)}this.vA.start()};
g.k.jx=function(){var a,b=this.getCurrentTime();return(null===(a=this.Wa)||void 0===a?0:a.jx(b,100))?(KFa(this.Mc,b+100+5),!0):!1};g.w(g.VX,g.I);g.VX.create=function(a,b,c){try{var d="string"===typeof a?a:"player"+g.Oa(a),e=r3[d];if(e){try{e.dispose()}catch(h){g.Ty(h)}r3[d]=null}var f=new g.VX(a,b,c);g.qe(f,function(){r3[d]=null;f.nO&&f.nO()});
return r3[d]=f}catch(h){throw g.Ty(h),h.stack;}};
g.k=g.VX.prototype;g.k.Jp=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Ml=function(){this.hE||(this.hE=g.mM(rK(),Dta()));return this.hE};
g.k.isVideoInfoVisible=function(){return!(!this.Ui||!this.Ui.Ab)};
g.k.Cg=function(){if(this.ra){this.Ht&&(this.events.jc(this.Ht),this.Ht=null);g.my(this.On);this.tb&&this.tb.Cg(!0);this.template.Cg();if(!this.N("html5_unset_src_on_remove_killswitch"))try{this.ra.EA()}catch(a){}this.ra=null}};
g.k.Hj=function(a){if(this.N("html5_skip_setPresenting"))1===a&&this.tb&&bY(this,this.tb);else{var b=g.OM(this,a);if(!b||b.isDisposed())b=new pG(this.X),b=this.Gl(a,b);$X(this,b)}};
g.k.Jc=function(){return this.tb};
g.k.qo=function(a){this.N("html5_skip_setPresenting")?this.tb&&bY(this,this.tb):(a=g.OM(this,a))&&bY(this,a)};
g.k.Gl=function(a,b,c){var d=this,e=this.Pb;2===a&&(e=new QM(this.X));return new g.yX(this.X,a,e,this.template,function(f,h){for(var l=[],m=1;m<arguments.length;++m)l[m-1]=arguments[m];return d.mm.ea.apply(d.mm,[f].concat(g.v(l)))},function(){return d.Ta.getVisibilityState()},this.visibility,this,b,c)};
g.k.setIsExternalPlaylist=function(a){this.pg=NE(!1,a)};
g.k.CT=function(){WX(this)||(this.oa(),this.Uk(5))};
g.k.SU=function(a){WX(this)||(this.oa(),IHa(this),g.$J(a.getPlayerState())&&this.playVideo())};
g.k.canPlayType=function(a){return yD(a)};
g.k.V=function(){return this.X};
g.k.getVideoData=function(){return this.tb.getVideoData()};
g.k.Nv=ba(5);g.k.getVideoLoadedFraction=function(a){a=g.OM(this,a);return a?g.nH(a.getVideoData())?1:(a=a.jd())?a.Cp():0:0};
g.k.bb=function(){return this.template};
g.k.ub=function(){return this.Vc};
g.k.Ap=function(){return this.Pb};
g.k.Zs=function(a){var b=g.OM(this,1);b&&DS(b,a)};
g.k.Eh=function(){var a=this.Vc.MD();a.fs=this.Ta.isFullscreen();a.volume=Math.round(this.Ta.getVolume());a.muted=this.Ta.isMuted()?1:0;a.mos=a.muted;if(this.X.N("html5_enable_embedded_player_visibility_signals")&&g.YE(this.X)){if(this.QG){var b=this.QG;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.vF();1<c&&b.push(c);a.size=b.join(":")}}this.tb===this.sb&&this.Rb&&(a.clipid=
this.Rb.postId);return a};
g.k.Ei=function(a){1===a&&(this.Pb.tick("vr"),this.Go||(this.Go=qx($A,this.eM,this)),VGa(this.tb),kua(this.Pb,this.tb.getVideoData(),HHa(this)));var b=this.X;(EF(b)&&b.B||g.fF(b))&&(this.Pd()||this.Ta.Oa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.tb===this.sb&&this.tb.Dp()!==a&&(this.tb.setLoop(a),this.Ta.ea("loopchange",a))};
g.k.getLoopVideo=function(){return this.tb.Dp()};
g.k.setLoopRange=function(a){var b=!1;!!this.Rb!==!!a?b=!0:this.Rb&&a&&(b=this.Rb.startTimeMs!==a.startTimeMs||this.Rb.endTimeMs!==a.endTimeMs||this.Rb.postId!==a.postId);b&&(this.sb.Bh.Ve("applooprange"),a?(b=new g.nA(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(b)):SX(this).clipConfig=void 0,this.Rb=a,this.Ta.Oa("onLoopRangeChange",a||void 0),this.tb===this.sb&&(this.LA(),this.tb.Jq()))};
g.k.getLoopRange=function(){return this.Rb};
g.k.LA=function(){this.Rb&&this.tb===this.sb&&(vHa(this,this.sb.getCurrentTime())||wHa(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=kHa(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.X.u&&g.Qz("yt-player-playback-rate",a),this.Ta.Oa("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return IM(this.Vc).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.OM(this):g.OM(this,a);if(!a)return 0;if(b){if(c&&this.Oc&&(b=this.Oc.Za/1E3,0!==b))return b;b=dY(this,a);return mY(this,b.getCurrentTime(),b)}c&&this.Oc?(b=a.getCurrentTime(),b=(c=nAa(this.Oc,1E3*b))?b-c.start/1E3:b):b=a.getCurrentTime();return b};
g.k.Xr=function(){var a=g.OM(this,void 0);if(!a)return 0;a=dY(this,a);return mY(this,a.Xr(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c,d,e=this.getVideoData(),f=2===a&&e.enableServerStitchedDai;a=f?g.OM(this):g.OM(this,a);if(!a)return 0;if(this.N("enable_linear_player_handling")&&e.hasProgressBarBoundaries()){var h=Number(null===(c=e.progressBarStartPosition)||void 0===c?void 0:c.utcTimeMillis);e=Number(null===(d=e.progressBarEndPosition)||void 0===d?void 0:d.utcTimeMillis);if(!isNaN(h)&&!isNaN(e))return(e-h)/1E3}if(b)return b=cY(this,a),mY(this,b.getDuration(),b);f&&this.Oc?
(b=a.getCurrentTime(),b=(b=NS(this.Oc,1E3*b))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.getMinSeekableTime=function(a){a=g.OM(this,a);if(!a)return 0;a=cY(this,a);return mY(this,a.getMinSeekableTime(),a)};
g.k.getIngestionTime=function(a){var b=g.OM(this,a);return b?this.Pd(b)?(b=cY(this,b),b.getIngestionTime()-b.getCurrentTime()+this.getCurrentTime(a)):b.getIngestionTime():0};
g.k.eD=function(){this.template.eD();var a=this.I;a.element=this.template.element;var b=a.element,c;for(c in a.u)a.u.hasOwnProperty(c)&&(b[c]=a.u[c]);(a=iy(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.qV)};
g.k.getDebugText=function(a){var b=this.sb.Ib(a);if(this.tb&&this.tb!==this.sb){for(var c=this.tb.Ib(a),d=g.r(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=kg("movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.og("video-ads");f?(NHa(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.og("videoAdUiSkipContainer"),l=g.og("ytp-ad-skip-button-container"),m=h||l;m?(NHa(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;d=JSON.stringify({player:d,
videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.ra&&(b["0sz"]=""+(0===+Yf(this.ra.dr())),b.op=this.ra.getStyle("opacity"),c=this.ra.zn().y+this.ra.dr().height,b.yof=""+(0>=+c),b.dis=this.ra.getStyle("display"));(a=a?(0,g.wW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.vb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){var b;return 1===this.appState?1:WX(this)?3:a&&(null===(b=this.Oc)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.OM(this).getPlayerType()};
g.k.vb=function(a){return 3===this.getPresentingPlayerType()?IM(this.Vc).ud:g.OM(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.oF=function(a){var b=this;switch(a.type){case "loadedmetadata":XA("fvb",this.Pb.timerName)||this.Pb.tick("fvb");YA("fvb",void 0,"video_to_ad");this.KA.start();g.Ob(this.Vs,function(c){FHa(b,c.id,c.HX,c.GX,!1)});
this.Vs=[];break;case "loadstart":XA("gv",this.Pb.timerName)||this.Pb.tick("gv");YA("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!XA("l2s",this.Pb.timerName)&&2<=ID(a.target.Sf())&&this.Pb.tick("l2s");break;case "playing":g.CF&&this.KA.start(),yHa(this)&&(this.tb.Ba("hidden","1",!0),this.getVideoData().Eb||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().Eb=1,this.rM(null),this.tb.playVideo()):ZX(this,"hidden",!0)))}};
g.k.onLoadProgress=function(a,b){this.Ta.Oa("onLoadProgress",b)};
g.k.MV=function(){this.Ta.ea("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=dY(this,a);b=mY(this,a.getCurrentTime(),a);this.Ta.Oa("onVideoProgress",b)};
g.k.onDompaused=function(){this.Ta.Oa("onDompaused")};
g.k.onAutoplayBlocked=function(){this.Ta.Oa("onAutoplayBlocked")};
g.k.dV=function(){this.Ta.ea("progresssync")};
g.k.ET=function(a){if(1===this.getPresentingPlayerType()){g.eI(a,1)&&!g.T(a.state,64)&&SX(this).isLivePlayback&&this.sb.isAtLiveHead()&&1<this.Ta.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.eI(a,2)){if(this.Rb&&this.Rb.endTimeMs>=1E3*(this.getDuration()-1)){wHa(this);return}rHa(this)}if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Oa("onError",zNa[b.errorCode]||5);this.Ta.Oa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.mD});6048E5<(0,g.Q)()-this.X.qb&&this.Ta.Oa("onReloadRequired")}b={};if(a.state.Ac()&&!g.bK(a.state)&&!XA("pbresume","ad_to_video")&&XA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);WA(b,"ad_to_video");VA("pbresume",void 0,"ad_to_video")}this.Ta.ea("applicationplayerstatechange",a)}};
g.k.OM=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("presentingplayerstatechange",a)};
g.k.Nh=function(a){aY(this,cK(a.state));g.T(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(AM(this,{muted:!1,volume:this.eg.volume},!1),kY(this,!1))};
g.k.UU=function(a){a.state.Ac()&&!g.bK(a.state)&&(Jua(this.Vc),g.my(this.IE))};
g.k.AT=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.k.xw=function(){this.Ta.Oa("onPlaybackAudioChange",this.Ta.getAudioTrack().Bc.name)};
g.k.Ew=function(a){var b=this.tb.getVideoData();a===b&&this.Ta.Oa("onPlaybackQualityChange",a.u.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.oa("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.sb&&(this.X.Xe=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Oc?this.Oc=new g.IS(this.Ta,this.X,this.sb):!this.getVideoData().enableServerStitchedDai&&this.Oc&&(this.Oc=null);if("newdata"===a)this.oa(),jN(this.Vc,2),this.Ta.ea("videoplayerreset",b);else{if(!this.ra)return;if("dataloaded"===a)if(this.tb===this.sb)if(kF(c.B,c.ZH),this.oa(),this.sb.getPlayerState().isError())this.oa();
else{var d=WX(this);SX(this).isLoaded();d&&this.Uk(6);tHa(this);d||(d=kN(this.Vc))&&!d.created&&hN(this.Vc)&&d.create()}else tHa(this);if(1===b.getPlayerType()&&(this.X.ma&&MHa(this),this.getVideoData().isLivePlayback&&!this.X.wl&&this.Ke("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded())){if(c.dh||c.yB||c.Mq||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().vl)d=this.getVideoData(),pY(this,"part2viewed",1,0x8000000000000),pY(this,"engagedview",Math.max(1,1E3*d.Mb),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?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.wA.progressEndBoundary,(null===d||void 0===d?void 0:d.start)!==
e&&(d&&this.DA([d]),e=new g.nA(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.sb.addCueRange(e),this.wA.progressEndBoundary=e))}}this.Ta.ea("videodatachange",a,c,b.getPlayerType())}this.Ta.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.LA();if(b=c.Yw){if(a=this.Jn,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=jK();var f=void 0===f?{}:f;Object.values(SMa).includes(c)||(g.Bz(new g.$v("createClientScreen() called with a non-page VE",
c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];f.HJ?ara(b,c,f):$qa(b,c,f);UAa(a)}}else UAa(this.Jn)};
g.k.Br=function(){eY(this,null);this.Ta.Oa("onPlaylistUpdate")};
g.k.WL=function(a){var b=a.getId(),c=SX(this);"part2viewed"===b?(c.jI&&g.Xu(c.jI),c.yB&&vY(this,c.yB),c.Mq&&wY(this,c.Mq)):"conversionview"===b?this.sb.Bt():"engagedview"===b&&g.Xu(c.dh);if(c.lI){var d=a.getId();d=Js(c.lI,{label:d});g.Xu(d)}switch(b){case "videoplaytime25":c.dI&&vY(this,c.dI);c.AB&&wY(this,c.AB);c.pI&&g.Xu(c.pI);break;case "videoplaytime50":c.hI&&vY(this,c.hI);c.BB&&wY(this,c.BB);c.vI&&g.Xu(c.vI);break;case "videoplaytime75":c.iI&&vY(this,c.iI);c.CB&&wY(this,c.CB);c.xI&&g.Xu(c.xI);
break;case "videoplaytime100":c.cI&&vY(this,c.cI),c.zB&&wY(this,c.zB),c.nI&&g.Xu(c.nI)}(b=this.getVideoData().vl)&&DHa(b,a.getId())&&DHa(b,a.getId()+"gaia");this.sb.removeCueRange(a)};
g.k.cV=function(a){delete this.wA[a.getId()];this.sb.removeCueRange(a);var b;a:{a=this.getVideoData();var c,d,e,f,h,l,m,n,p,q,t,u,x,y=(null===(h=null===(f=null===(e=null===(d=null===(c=a.watchNextResponse)||void 0===c?void 0:c.contents)||void 0===d?void 0:d.singleColumnWatchNextResults)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.autoplay)||void 0===h?void 0:h.sets)||(null===(q=null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)||
void 0===n?void 0:n.autoplay)||void 0===p?void 0:p.autoplay)||void 0===q?void 0:q.sets);if(y)for(c=g.r(y),d=c.next();!d.done;d=c.next())if(d=d.value,d=d.autoplayVideo||(null===(t=null===(b=d.autoplayVideoRenderer)||void 0===b?void 0:b.autoplayEndpointRenderer)||void 0===t?void 0:t.endpoint),(null===(u=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===u?void 0:u.videoId)===a.videoId&&(null===(x=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===x?0:x.continuePlayback)){b=d;break a}b=null}t=
null===b||void 0===b?void 0:b.watchEndpoint;this.N("enable_linear_player_handling")&&t&&this.Ta.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null===b||void 0===b?void 0:b.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})};
g.k.Uk=function(a){a!==this.appState&&(this.oa(),2===a&&1===this.getPresentingPlayerType()&&(aY(this,-1),aY(this,5)),this.appState=a,this.Ta.ea("appstatechange",a))};
g.k.Ke=function(a,b,c,d){this.sb.Hf(a,b,c,d)};
g.k.Vk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.OM(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.k.xn=function(){var a=g.OM(this,void 0);return a?cY(this,a).xn():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.OM(this,d))2===this.appState&&iY(this),this.Pd(d)?this.Oc?this.Oc.seekTo(a,b,c):this.Dd.seekTo(a,b,c):d.seekTo(a,{kO:!b,lO:c,Sd:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.cA=function(){this.Ta.Oa("SEEK_COMPLETE")};
g.k.BV=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.T(a.getPlayerState(),512)||iY(this):this.Ta.Oa("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ta.ea("airplayactivechange");this.X.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayActiveChange",this.Ta.qf())};
g.k.onAirPlayAvailabilityChange=function(){this.Ta.ea("airplayavailabilitychange");this.X.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayAvailabilityChange",this.Ta.Xv())};
g.k.showAirplayPicker=function(){var a;null===(a=this.tb)||void 0===a?void 0:a.Ao()};
g.k.UE=function(){this.Ta.ea("beginseeking")};
g.k.aF=function(){this.Ta.ea("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.OM(this,a))?cY(this,a).getVideoData().getStoryboardFormat():null};
g.k.Hh=function(a){return(a=g.OM(this,a))?cY(this,a).getVideoData().Hh():null};
g.k.Pd=function(a){if(a=a||this.tb){a=a.getVideoData();if(this.Oc)a=a===this.Oc.Ca.getVideoData();else a:{var b=this.Dd;if(a===b.u.getVideoData()&&b.i.length)a=!0;else{b=g.r(b.i);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.k.xr=function(a,b,c,d,e,f){var h;this.oa();this.X.N("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.tb)||void 0===h?void 0:h.Ba("sdai","app.attl."+(null!=this.Oc)));a=this.Oc?lAa(this.Oc,a,b,c,d,e,f):BAa(this.Dd,a,b,c,d,e);this.oa();return a};
g.k.Vv=function(a,b,c,d,e,f){var h;this.X.N("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.tb)||void 0===h?void 0:h.Ba("sdai","app.attlr."+(null!=this.Oc)));this.Oc&&(lAa(this.Oc,a,b,c,d,e,f),this.oa());return""};
g.k.Yn=function(a){var b;null===(b=this.Oc)||void 0===b?void 0:b.Yn(a)};
g.k.lp=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.Oc?this.X.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&QS(this.Oc,a,b):cT(this.Dd,a,b)};
g.k.At=function(a,b,c){if(this.Oc){var d=this.Oc,e=c;c=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Dc===a){c=h;break}c?(d.oa(),void 0===e&&(e=c.pd),a=c,d.oa(),a.durationMs=b,a.pd=e,d.X.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&oAa(d,c)):d.Zd("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Dd;e=null;f=g.r(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Dc===a){e=h;break}e?(d.oa(),void 0===c&&(c=e.pd),HAa(d,e,b,c)):d.Zd("e.InvalidTimelinePlaybackId timelinePlaybackId="+
a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Pd();a=new pG(this.X,a);d&&(a.Dc=d);2===b&&this.sb&&this.sb.Qs(a.clientPlaybackNonce,a.uc||"",a.breakType||0,a.xe);c=void 0===c?Infinity:c;this.oa();b=b||this.tb.getPlayerType();var e;this.X.N("html5_gapless_preloading")&&(e=lY(this,b,a,!0));e||(e=this.Gl(b,a));this.Cy(e,c)};
g.k.Cy=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.OM(this);e&&(cY(this,e).rO=!0);bAa(this.Ft,a,b,c).then(function(){d.Ta.Oa("onQueuedVideoLoaded")},function(){})};
g.k.xs=function(){return this.Ft.xs()};
g.k.clearQueue=function(){this.oa();this.Ft.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f,h=!1,l=new pG(this.X,a),m=null!==(f=l.xb)&&void 0!==f?f:"";this.Pb.timerName=m;if(!this.N("web_player_load_video_context_killswitch")&&e){for(;l.xi.length&&l.xi[0].isExpired();)l.xi.shift();h=l.xi.length-1;h=0<h&&e.u(l.xi[h])&&e.u(l.xi[h-1]);l.xi.push(e)}c||(a&&SM(a)?(uF(this.X)&&!this.pg&&(a.fetch=0),eY(this,a)):this.playlist&&eY(this,null),a&&this.setIsExternalPlaylist(a.external_list),uF(this.X)&&!this.pg&&fY(this));a=this.Mn(l,
b,d);h&&this.Ke("player.fatalexception","GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+l.xi.join()).replace(/[;:,]/g,"_"));return a};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;d=SE(a);if(this.Jw.get(b+"_"+d+"_"+e))this.oa();else{a=new pG(this.X,a);e&&(a.Dc=e);e=b+"_"+a.videoId+"_"+a.Dc;this.oa();if(d=this.tb){d=this.tb.getPlayerType();var f=this.tb.getVideoData().videoId,h=this.tb.getVideoData().Dc;d=e===d+"_"+f+"_"+h}d?(kS(this.tb,!0),a.dispose()):(a.rd=!0,a=this.Gl(b,a),1===b&&xF(this.X)||kS(a,!0),this.Jw.set(e,a,c||3600))}};
g.k.Ru=function(a){if(this.N("html5_skip_setPresenting"))$X(this,a);else{var b=a.getPlayerType();a!==g.OM(this,b)&&(1===a.getPlayerType()?(a.getVideoData().autonavState=this.sb.getVideoData().autonavState,lHa(this,a)):(b=g.OM(this,b))&&b.dispose(),this.tb.getPlayerType()===a.getPlayerType()?$X(this,a):qHa(this,a))}};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Vc;a=a.I.V().showMiniplayerUiWhenMinimized?a.Cd.get("miniplayer"):void 0;a&&(this.Ie()?a.load():a.unload());this.Ta.ea("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Vc;a=a.I.V().showInlinePreviewUi?a.Cd.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ta.Oa("onInlinePreviewModeChange"))};
g.k.Ys=function(a){var b=this.X.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.X.Lh&&this.X.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.tD&&b?this.tD.start():this.eJ():this.visibility.Ys(a)};
g.k.eJ=function(){var a,b=null===(a=this.ra)||void 0===a?void 0:a.Le();b&&hy(b).catch(function(c){return g.Bz(c)})};
g.k.setImmersivePreview=function(a){this.visibility.setImmersivePreview(a)};
g.k.yV=function(){"picture-in-picture"===this.ra.Le().webkitPresentationMode?this.Ys(!0):this.Ys(!1)};
g.k.togglePictureInPicture=function(){var a=g.OM(this);a&&a.togglePictureInPicture()};
g.k.Mn=function(a,b,c){b=void 0===b?1:b;this.oa();XA("_start",this.Pb.timerName)||(SA("p",void 0,this.Pb.timerName),this.Pb.info("srt",0));var d=lY(this,b,a,!1);d?a.dispose():(d=this.Gl(b,a,c),this.N("html5_onesie")&&zX(d)&&kS(d),this.KA.stop(),this.cancelPlayback(4,b),$X(this,d),this.Ru(d));d===this.sb&&(this.X.Xe=a.oauthToken);if(!zX(d))return!1;if(d===this.sb)return this.Uk(1),iY(this);HX(d);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&SM(a))if(this.Sp=!0,eY(this,a),(a=g.TM(this.playlist))&&a.isValid())rY(this,a,b);else this.playlist.onReady(function(){hY(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.Br();var d=new pG(this.X,a);!g.YE(this.X)||this.X.S||d.isAd()||d.uc||!this.X.N("embeds_enable_iframe_apis_through_oneplatform")?rY(this,d,b):xua(d,a?a:{}).then(function(e){rY(c,e,b)})}};
g.k.Nj=function(a,b,c,d,e,f){if(!a&&!c)throw Error("Playback source is invalid");if($E(this.X)||g.yF(this.X))return b=b||{},b.lact=Vu(),b.vis=this.Ta.getVisibilityState(),this.Ta.Oa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;b=this.Pb;b.i&&(e=b.i,e.i={},e.Uu={});b.u=!1;this.Pb.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.k.cuePlaylist=function(a,b,c,d){this.Sp=!0;EHa(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Sp=!1;EHa(this,a,b,c,d)};
g.k.yv=function(){if(this.Ta.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;uF(this.X)&&!this.pg&&fY(this);return!(!this.playlist||!this.playlist.hasNext())};
g.k.zp=ba(1);
g.k.nextVideo=function(a,b){var c=this.sb.getVideoData().suggestions;g.NM(this.Ta)&&c&&0<c.length?(a=c[0],this.Nj(a.videoId,b?a.ov:a.sessionData,a.playlistId,b,void 0,a.VI||void 0)):this.pg?this.Ta.Oa("onPlaylistNext"):3===this.getPresentingPlayerType()?IM(this.Vc).nextVideo():this.playlist&&(uF(this.X)&&!this.Ta.isFullscreen()?oY(this,"yt.www.watch.lists.next"):(this.playlist.hasNext(a)&&UM(this.playlist,lua(this.playlist)),this.playlist.loaded?(a=b&&this.X.N("html5_player_autonav_logging"),this.Mn(g.TM(this.playlist,
void 0,b,a),1)):this.Sp=!1))};
g.k.previousVideo=function(a){this.pg?this.Ta.Oa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?IM(this.Vc).tA():this.playlist&&(uF(this.X)&&!this.Ta.isFullscreen()?oY(this,"yt.www.watch.lists.prev"):(this.playlist.Ck(a)&&UM(this.playlist,mua(this.playlist)),this.playlist.loaded?this.Mn(g.TM(this.playlist),1):this.Sp=!1))};
g.k.playVideoAt=function(a){this.pg?this.Ta.Oa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Mn(g.TM(this.playlist,a),1):this.Sp=!1,UM(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.Kv=ba(11);g.k.yT=function(a){this.Ta.Oa("onCueRangeEnter",a.getId())};
g.k.zT=function(a){this.Ta.Oa("onCueRangeExit",a.getId())};
g.k.Hu=function(a,b){var c=g.OM(this,b);c&&(c.Hu(a),b&&this.getPresentingPlayerType()!==b||YX(this,"cuerangesadded",a))};
g.k.DA=function(a,b){var c=g.OM(this,b);c&&(c.DA(a),b&&this.getPresentingPlayerType()!==b||YX(this,"cuerangesremoved",a))};
g.k.DT=function(){var a=this;this.getPresentingPlayerType();this.Go||(this.Go=qx($A,this.eM,this));kua(this.Pb,this.tb.getVideoData(),HHa(this));UX(this)&&this.X.u&&"embedded"===TG(SX(this))&&this.vL&&.01>Math.random()&&g.Vv("autoplayTriggered",{intentional:this.VK});this.vL=!1;this.Ta.Oa("onPlaybackStartExternal");this.X.N("mweb_client_log_screen_associated");(function(){var c=g.Iy(a.zN||(a.Ie()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(a.X.N("web_playback_associated_ve")&&
a.getVideoData().Ya){var e=g.Cy(a.getVideoData().Ya);g.Hz(c,e,void 0);d.playbackVe=e.getAsJson()}a.X.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().jb&&(c.cttAuthInfo={token:a.getVideoData().jb,videoId:a.getVideoData().videoId});g.Vv("playbackAssociated",d,c)}})();
TA("player_att");if(this.N("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.N("web_player_botguard_inline_skip_config_killswitch")&&(rs("BG_I",b.interpreterScript),rs("BG_IU",b.interpreterUrl),rs("BG_P",b.program)),g.wF(this.X)||"MWEB"===this.X.deviceParams.c?Ku(Nu(),function(){jY(a)}):jY(this))}this.LA()};
g.k.eF=function(){this.Ta.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||nY(this)};
g.k.eM=function(a){a=a.i;!isNaN(a)&&0<a&&this.sb&&this.sb.Qw(a)};
g.k.onApiChange=function(){this.X.B&&this.tb?this.Ta.Oa("onApiChange",this.tb.getPlayerType()):this.Ta.Oa("onApiChange")};
g.k.DU=function(){var a=this.ra;a={volume:g.Qf(Math.floor(100*a.getVolume()),0,100),muted:a.Wy()};a.muted||kY(this,!1);this.eg=g.mc(a);this.Ta.Oa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0}),this.Ta.Oa("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=tY(this);this.Ii(a?1:0);KHa(this,!!a)};
g.k.Ii=function(a){var b=!!a,c=!!this.Tr()!==b;this.visibility.Ii(a);this.template.Ii(b);this.N("html5_media_fullscreen")&&!b&&this.ra&&tY(this)===this.ra.Le()&&this.ra.tv();this.template.resize();c&&this.Pb.tick("fsc");c&&(this.Ta.ea("fullscreentoggled",b),a=SX(this),b={fullscreen:b,videoId:a.oC||a.videoId,time:this.getCurrentTime()},this.Ta.getPlaylistId()&&(b.listId=this.Ta.getPlaylistId()),this.Ta.Oa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.Tr=function(){return this.visibility.Tr()};
g.k.qV=function(){this.tb&&(0!==this.Tr()&&1!==this.Tr()||this.Ii(tY(this)?1:0),this.X.Lh&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.ra&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.ra.tv())};
g.k.vU=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)};
g.k.playVideo=function(a){this.oa();if(a=g.OM(this,a))2===this.appState?iY(this):(null!=this.Ui&&this.Ui.Ab&&this.Ui.start(),g.T(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())};
g.k.pauseVideo=function(a){(a=g.OM(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){this.oa();var a=this.sb.getVideoData(),b=new pG(this.X,{video_id:a.oC||a.videoId,oauth_token:a.oauthToken});b.Z=g.mc(a.Z);this.cancelPlayback(6);rY(this,b,1);null!=this.Ui&&this.Ui.stop()};
g.k.cancelPlayback=function(a,b){this.oa();px(this.Go);this.Go=0;var c=g.OM(this,b);c?(this.X.N("html5_high_res_logging")&&c.Ba("canclpb","r."+a),1===this.appState||2===this.appState?this.oa():(c===this.tb&&(this.oa(),jN(this.Vc,a)),1===b&&(this.X.N("html5_stop_video_in_cancel_playback")&&c.stopVideo(),nY(this)),c.nm(),YX(this,"cuerangesremoved",c.vn()),c.Bh.reset(),this.Ft&&c.isGapless()&&(c.Cg(!0),c.setMediaElement(this.ra)))):this.oa()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.OM(this,b))&&this.X.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Fh=function(a){var b=g.OM(this,void 0);return b&&this.X.enabledEngageTypes.has(a.toString())?b.Fh(a):null};
g.k.updatePlaylist=function(){uF(this.X)?fY(this):g.YE(this.X)&&gY(this);this.Ta.Oa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.JN=a;this.nE=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()};
g.k.isWidescreen=function(){return this.nE};
g.k.Ie=function(){return this.visibility.Ie()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.us=function(){return this.visibility.us()};
g.k.qs=function(){return this.visibility.qs()};
g.k.lE=function(){return this.JN};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return IM(this.Vc).getAdState();if(!this.Pd()){var a=kN(this.ub());if(a)return a.getAdState()}return-1};
g.k.pV=function(a){var b=this.template.getVideoContentRect();Dl(this.pL,b)||(this.pL=b,this.tb&&FX(this.tb),this.sb&&this.sb!==this.tb&&FX(this.sb),1===this.Tr()&&this.Gw&&KHa(this,!0));this.tE&&g.Xf(this.tE,a)||(this.Ta.ea("appresize",a),this.tE=a)};
g.k.sf=function(){return this.Ta.sf()};
g.k.HV=function(){2===this.getPresentingPlayerType()&&this.Dd.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?GAa(this.Dd):(this.Oc&&QS(this.Oc),ZX(this,"signature",void 0,!0))};
g.k.rM=function(){this.Cg();XX(this)};
g.k.oV=function(a){yS(a,this.ra.Ep())};
g.k.JU=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.Oa("onPlayerRequestAuthFailed")};
g.k.zw=function(){this.Ta.Oa("CONNECTION_ISSUE")};
g.k.Bw=function(a){this.Ta.ea("heartbeatparams",a)};
g.k.IA=function(a){this.Ta.Oa("onAutonavChangeRequest",1!==a)};
g.k.jd=function(){return this.ra};
g.k.setBlackout=function(a){this.X.Mb=a;this.tb&&(this.tb.Jq(),this.X.ma&&MHa(this))};
g.k.setAccountLinkState=function(a){var b=g.OM(this);b&&(b.getVideoData().kI=a,b.Jq())};
g.k.updateAccountLinkingConfig=function(a){var b=g.OM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}};
g.k.LU=function(){var a=g.OM(this);if(a){var b=!this.Ta.bw();(a.CK=b)||a.aq.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.C&&c.C.stop()}a.X.N("html5_suspend_loader")&&a.Wa&&(b?a.Wa.resume():MX(a,!0));a.X.N("html5_fludd_suspend")&&(g.T(a.playerState,2)||b?g.T(a.playerState,512)&&b&&a.Tb(XJ(a.playerState,512)):a.Tb(WJ(a.playerState,512)));a=a.Xb;a.qoe&&(a=a.qoe,g.qW(a,g.CS(a.i),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ta.Oa("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ta.Oa("onDrmOutputRestricted")};
g.k.DC=function(){this.N("html5_skip_empty_load")&&(tNa=!0);wNa=this.N("html5_ios_force_seek_to_zero_on_stop");uNa=this.N("html5_ios7_force_play_on_stall");vNa=this.N("html5_ios4_seek_above_zero");this.N("html5_mediastream_applies_timestamp_offset")&&(NU=!0);this.N("html5_dont_override_default_sample_desc_index")&&(Dka=!0);if(this.N("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.sE(this.X.experiments,"html5_idle_rate_limit_ms");
b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}})};
g.k.zE=function(){this.VK=!0};
g.k.xa=function(){this.Vc.dispose();this.Dd.dispose();this.Oc&&this.Oc.dispose();this.sb.dispose();this.Cg();g.pe(bc(this.yx),this.playlist);px(this.Go);this.Go=0;g.I.prototype.xa.call(this)};
g.k.oa=function(){};
g.k.N=function(a){return this.X.N(a)};
g.k.RA=function(){return this.fx};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.zN=a};
g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=BM(this.ub()))||void 0===b?void 0:b.zv(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.ql;if(this.N("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.MN&&a<e.length&&0<=a){var f=1E3*this.getCurrentTime()<e[a].startTime?1:-1;e=g.r(e);for(var h=e.next();!h.done;h=e.next())if(h=h.value,h.index===a){d.pN(f,h.title);uY(this,h.startTime/1E3);break}}};
g.k.downloadVideo=function(a,b){return g.H(this,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return e.Kk&&e.N("woffle_orchestration")?g.z(h,Fza(e.Kk,[a],b),2):h.return(Promise.reject());f=h.u;return h.return(f[0])})})};
g.k.refreshAllVideos=function(){return this.Kk&&this.N("woffle_orchestration")?nS(this.Kk,14400):Promise.reject()};
g.k.deleteVideos=function(a){return this.Kk&&this.N("woffle_orchestration")?this.Kk.deleteVideos(a):Promise.reject()};
g.k.deleteAllVideos=function(){return this.Kk&&this.N("woffle_orchestration")?this.Kk.deleteAllVideos():Promise.reject()};
g.k.isOrchestrationLeader=function(){return this.Kk&&this.N("woffle_orchestration")?this.Kk.isOrchestrationLeader():!1};
g.k.getStatsForNerds=function(){var a=this.Ta,b=g.OM(this),c=a.getVideoData(),d=a.jd(),e=d.Le(),f=b.Ov(),h=b.kG,l=8*QT(h,"bandwidth")/1024,m=QT(h,"networkactivity")/1024,n=QT(h,"bufferhealth");if(b.Gd){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.Gd.i.lf()+"/"+kB(b.Wr());p+="/"+b.Gd.lf()}else p="";var q=b.getPlayerState().state.toString(16),t=d.getCurrentTime().toFixed(2),u=ED(d.Sf(),",",3),x="";if(XG(c)){c.enableServerStitchedDai&&(x+="SS");x+="DAI, ";a:{if(b.Dd){var y=b.Dd.Wu;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:"+q+" t:"+t+" b:"+u+" ";d.Xt()&&(x+="S");d.Im()&&(x+="P");d.Ik()&&(x+="E");a.isOrchestrationLeader()&&(x+=" L");(d=b.Fv())&&(x+=" l:"+d.toFixed());d=b.getCurrentTime();q=c.yu;d&&d>q.start&&d<q.end&&(x+=" as");d=x;x=g.vF();q=g.LM(a).tS;t=c.C&&!c.C.i?"display:none":"";if((u=c.clientPlaybackNonce)&&16==u.length){y=0;for(var A="",F=0;10>F;F++)if(y=
(y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(F)),4==F%5){for(var G="",E=0;6>E;E++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+G,y>>=5;A+=G}u=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,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:q,shader_info_style:q?"":"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=gpa(c);a=Math.round(a)+"% / "+Math.round(a*f)+"%";f=c.xe.toFixed(1);isFinite(Number(f))&&(a+=" (content loudness "+f+"dB)");l.volume=a;l.resolution=e.videoWidth+"x"+e.videoHeight;if(a=c.u)if(e=a.video)f=e.fps,1<f&&(l.resolution+=
"@"+f),(f=g.IX(b))&&f.video&&(l.resolution+=" / "+f.video.width+"x"+f.video.height,1<f.video.fps&&(l.resolution+="@"+f.video.fps)),l.codecs=LAa(a),!c.K||a.audio&&a.video?a.audio&&a.audio.itag&&(l.codecs+=" / "+a.audio.itag+"A"):l.codecs+=" / "+LAa(c.K),e.u||e.primaries?(a=e.u||"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.Ze;l.live_mode_style=e||a?"":"display:none";
l.live_latency_style=e?"":"display:none";if(a)l.live_mode="Post-Live"+(DG(c)?" Manifestless":"");else if(e){a=QT(h,"livelatency");l.live_latency_secs=a.toFixed(2)+"s";e=DG(c)?"Manifestless, ":"";c.Zi&&(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=PT(h,"bandwidth");l.network_activity_samples=PT(h,"networkactivity");l.live_latency_samples=PT(h,"livelatency");l.buffer_health_samples=PT(h,"bufferhealth");c.N("woffle_orchestration")&&
(b=g.nH(c),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";AG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20210928_1_RC1",l.release_style=""):l.release_style="display:none";return l};
g.k.getVideoUrl=function(a,b,c,d,e){return this.Rb&&this.Rb.postId?(a=this.X.getVideoUrl(a),a=ui(a,"v"),a.replace("/watch","/clip/"+this.Rb.postId)):this.X.getVideoUrl(a,b,c,d,e)};
var r3={};g.Fa("yt.player.Application.create",g.VX.create,void 0);g.Fa("yt.player.Application.createAlternate",g.VX.create,void 0);Ny(Oy(),{em:[{lw:/Unable to load player module/,weight:5},{lw:/Failed to fetch/,weight:500},{lw:/XHR API fetch failed/,weight:10},{lw:/JSON parsing failed after XHR fetch/,weight:10},{lw:/Retrying OnePlatform request/,weight:10}]});var SNa=g.Ga("ytcsi.tick");SNa&&SNa("pe");var TNa={d8:"replaceUrlMacros",K2:"isExternalShelfAllowedFor",O6:"onAboutThisAdPopupClosed"};xY.prototype.zk=function(){return"adLifecycleCommand"};
xY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.Ug(function(){b.controller.Ym()});
break;case "END_LINEAR_AD_PLACEMENT":g.Ug(function(){b.controller.rk()});
break;case "FILL_ABOVE_FEED_SLOT":g.Ug(function(){a.elementId&&b.controller.Gy(a.elementId)});
break;case "CLEAR_ABOVE_FEED_SLOT":g.Ug(function(){b.controller.oy()})}};
xY.prototype.Sl=function(a){this.handle(a)};yY.prototype.zk=function(){return"clearCueRangesCommand"};
yY.prototype.handle=function(){var a=this.ZC();g.Ug(function(){a.Zf(Array.from(a.Xo))})};
yY.prototype.Sl=function(a){this.handle(a)};zY.prototype.zk=function(){return"muteAdEndpoint"};
zY.prototype.handle=function(a){PHa(this,a)};
zY.prototype.Sl=function(a,b){PHa(this,a,b)};AY.prototype.zk=function(){return"openPopupAction"};
AY.prototype.handle=function(){};
AY.prototype.Sl=function(a){this.handle(a)};BY.prototype.zk=function(){return"pingingEndpoint"};
BY.prototype.handle=function(){};
BY.prototype.Sl=function(a){this.handle(a)};CY.prototype.zk=function(){return"urlEndpoint"};
CY.prototype.handle=function(a,b){b=g.xq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?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.BJ(b,void 0,void 0,a)};
CY.prototype.Sl=function(){S("Trying to handle UrlEndpoint with no macro in controlflow")};DY.prototype.zk=function(){return"adPingingEndpoint"};
DY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Yo.send(a,b,c)};
DY.prototype.Sl=function(a,b){GJa(this.Va.get(),a,b,void 0)};EY.prototype.zk=function(){return"changeEngagementPanelVisibilityAction"};
EY.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
EY.prototype.Sl=function(a){this.handle(a)};FY.prototype.zk=function(){return"loggingUrls"};
FY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Ph.send(d.baseUrl,b,c,d.headers)};
FY.prototype.Sl=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,GJa(this.Va.get(),c.baseUrl,b,c.headers)};g.w(RHa,g.I);var cIa=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"]]);var lIa=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"]]);var VHa=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"]]),THa=new Map([["normal",{Ts:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Ts:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Ts:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Ts:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Ts:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Ts:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.w(OY,g.I);g.k=OY.prototype;g.k.JD=function(a,b){return this.i.JD(a,b)};
g.k.Di=function(a,b){MZ(this.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Od),d=c.next();!d.done;d=c.next())d.value.Di(a,b)};
g.k.xf=function(a){if(SY(this.i,a)){FJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.xf(a);for(var b=g.r(this.Od),c=b.next();!c.done;c=b.next())c.value.xf(a);ZHa(this,a)}};
g.k.yf=function(a){if(SY(this.i,a)){FJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.yf(a);for(var b=g.r(this.Od),c=b.next();!c.done;c=b.next())c.value.yf(a);SY(this.i,a)&&TY(this.i,a).D&&QY(this,a,!1)}};
g.k.dA=function(a){FJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);SY(this.i,a)&&(this.i.dA(a),QY(this,a,!1))};
g.k.Kc=function(a,b){if(SY(this.i,a)){UY(this.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Od),d=c.next();!d.done;d=c.next())d.value.Kc(a,b)}};
g.k.Wc=function(a,b,c){if(SY(this.i,a)){UY(this.dc,UHa(c),a,b);this.i.Wc(a,b);for(var d=g.r(this.Od),e=d.next();!e.done;e=d.next())e.value.Wc(a,b,c);(c=gZ(this.i,a))&&b.layoutId===c.layoutId&&iIa(this,a,!1)}};
g.k.wf=function(a,b,c){S(c,a,b,void 0,c.Zo);QY(this,a,!0)};
g.k.xa=function(){var a=kIa(this.i);a=g.r(a);for(var b=a.next();!b.done;b=a.next())QY(this,b.value,!1);g.I.prototype.xa.call(this)};jIa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(VY,Ta);g.w(dZ,Ta);g.w(jZ,g.I);g.k=jZ.prototype;g.k.JD=function(a,b){b=fZ(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Oh=function(a){a=TY(this,a);"not_scheduled"!==a.i&&hZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"};
g.k.vv=function(a){a=TY(this,a);a.C="fill_requested";a.K.vv()};
g.k.xf=function(a){a=TY(this,a);"enter_requested"!==a.i&&hZ(a.slot,a.i,"onSlotEntered");a.i="entered"};
g.k.dA=function(a){TY(this,a).C="fill_canceled"};
g.k.yf=function(a){a=TY(this,a);"exit_requested"!==a.i&&hZ(a.slot,a.i,"onSlotExited");a.i="scheduled"};
g.k.Wc=function(a,b){a=TY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&hZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.w(nZ,g.I);nZ.prototype.B=function(){return this.u};g.w(oZ,g.I);oZ.prototype.get=function(){this.isDisposed()&&S("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.u());return this.i};g.w(LZ,g.I);g.w(OZ,g.I);OZ.prototype.onCueRangeEnter=function(){};
OZ.prototype.onCueRangeExit=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.u.get().removeCueRange(a),$z(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=GZ(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Ub:c.Ub?vJa(c.slotId,d,c.Ub):void 0,qc:wJa(c.slotId,d,c.qc),pc:wJa(c.slotId,d,c.pc)})]},c.slotId))};
OZ.prototype.ih=function(){for(var a=g.r(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.i.clear()};
OZ.prototype.yj=function(){};g.w(PZ,g.I);g.k=PZ.prototype;g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.xf=function(){};
g.k.Dj=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)};
g.k.Bj=function(a,b){this.Li.has(a)&&this.Li.get(a)===b&&S("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)):S("Trying to unscheduled a Layout that was not scheduled.",a,b)}else S("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Kc=function(a,b){this.Li.set(a,b)};
g.k.Wc=function(a){this.Li.delete(a)};
g.k.Di=function(){};b_.prototype.clone=function(a){var b=this;return new b_(function(){return b.triggerId},a)};c_.prototype.clone=function(a){var b=this;return new c_(function(){return b.triggerId},a)};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.w(i_,g.I);i_.prototype.logEvent=function(a){MZ(this,a)};g.w(k_,g.I);g.k=k_.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.ih=function(a,b,c,d,e,f,h){var l;if(""===a)S("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ha.get().ih(a,b,c,d,e,f,h);this.C.get().ih(a,b,c,d,e,f,h);null===(l=this.u)||void 0===l?void 0:l.get().ih(a,b,c,d,e,f,h);this.B.ih(a,b,c,d,e,f,h);for(var m=g.r(this.listeners),n=m.next();!n.done;n=m.next())n.value.ih(a,b,c,d,e,f,h)}};
g.k.eF=function(){this.i&&this.yj(this.i)};
g.k.yj=function(a){this.i=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.yj(a)};g.w(l_,g.I);l_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.i.has(a)?S("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new CJa(a,b,c,d,f),this.i.set(a.id,{Ad:a,listener:e,Mj:h}),this.I.Ed([a],h))};
l_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.Zf([b.Ad],b.Mj),this.i.delete(a)):S("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
l_.prototype.onCueRangeEnter=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeEnter(a.id)};
l_.prototype.onCueRangeExit=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeExit(a.id)};
g.w(CJa,g.nA);m_.prototype.Ei=function(a){this.I.Ei(a)};
m_.prototype.Oa=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];this.I.Oa.apply(this.I,[a].concat(g.v(c)))};q_.prototype.Jf=function(a,b){if(!this.i.has(a))return{};if("seek"===b)return b=this.I.V().N("html5_dai_enable_active_view_creating_completed_adblock"),uq(a,b),{};b=Jpa(b);if(null===b||this.I.V().N("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.Jc();c=c&&(this.I.V().N("enable_server_stitched_dai")||2===c.getPlayerType())&&bI(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return tq(b,a,c)};
q_.prototype.uw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.uw()};
q_.prototype.qw=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.qw()};
q_.prototype.ww=function(a){var b;null===(b=this.i.get(a.queryId))||void 0===b?void 0:b.ww()};g.w(u_,QH);u_.prototype.mf=function(){return this.u()};
u_.prototype.i=function(){return this.B()};v_.prototype.Fh=function(){var a=this.I.Jc();return a&&(a=a.Fh(1))?a:null};
v_.prototype.gh=function(a,b){this.I.getVideoData(1).Ba(a,b)};g.w(A_,g.I);g.k=A_.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.ih=function(){this.xC.clear();this.vE=null};
g.k.yj=function(){};
g.k.gW=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.gh("ads_ssm_vdc_s","pt."+c+";dvt."+a);o_(this.Na.get())&&"dataloaded"!==a||(this.I.V().N("html5_server_stitched_dai_group")&&g.yF(this.I.V())&&this.gh("ads_vdc","pt."+c+";cpn."+b.clientPlaybackNonce),MJa(this,b,c))};
g.k.CV=function(a,b){void 0!==a&&(this.vE=a,void 0===b?S("Expected ad video start time on SS video changed"):this.xC.set(a,b));b=this.I.getPresentingPlayerType(!0);var c=this.I.getVideoData(b);this.I.getVideoData(1).Ba("ads_ssvc","pt."+b+";cpn."+(null===c||void 0===c?void 0:c.clientPlaybackNonce));c?MJa(this,c,b):S("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.xa=function(){this.listeners.length=0;this.rp=null;g.I.prototype.xa.call(this)};
g.k.gh=function(a,b){this.I.getVideoData(1).Ba(a,b)};g.w(B_,g.I);g.k=B_.prototype;g.k.ih=function(){var a=this;this.wp=We(function(){a.I.isDisposed()||a.I.Ld("ad",1)})};
g.k.yj=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.playVideo=function(){this.I.playVideo()};
g.k.pauseVideo=function(){this.I.pauseVideo()};
g.k.resumeVideo=function(a){this.Xl(a)&&this.I.playVideo()};
g.k.Xl=function(a){return 2===this.I.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.i.get().vE;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):C_(this,c)};
g.k.getVolume=function(){return this.I.getVolume()};
g.k.isMuted=function(){return this.I.isMuted()};
g.k.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.I.getPlayerState(a)};
g.k.isFullscreen=function(){return this.I.isFullscreen()};
g.k.isAtLiveHead=function(){return this.I.isAtLiveHead()};
g.k.eV=function(){if(2===this.I.getPresentingPlayerType(!0))for(var a=this.getCurrentTimeSec(2,!1),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bi(a)};
g.k.VU=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.r(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.yg=function(){for(var a=this.I.Ie(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.yg(a)};
g.k.wb=function(){for(var a=this.I.bb().rg(),b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.wj(a)};g.w(PJa,g.I);F_.prototype.executeCommand=function(a,b){GK(this.i(),a,b)};
F_.prototype.Hd=function(a,b){Vra(this.i(),a,b)};H_.prototype.vv=function(){var a=this;SJa(this.i,function(){var b=X(a.slot.Ia,"metadata_type_ad_break_request_data");return a.u.get().fetch({xO:b.getAdBreakUrl,EJ:new g.nA(b.lN,b.kN),Vu:X(a.slot.Ia,"metadata_type_cue_point")})},function(){UJa(a)},function(b){b=b.zl;
2<=b.length&&S("Unexpected ad placement renderers length",a.slot,null,{length:b.length});b.some(function(c){var d,e,f,h;return!(null===(f=null===(e=null===(d=c.renderer)||void 0===d?void 0:d.linearAdSequenceRenderer)||void 0===e?void 0:e.linearAds)||void 0===f||!f.length)||!(null===(h=c.renderer)||void 0===h||!h.instreamVideoAdRenderer)})||UJa(a)})};
H_.prototype.MC=function(){TJa(this.i)};I_.prototype.vv=function(){var a=this;SJa(this.i,function(){var b=X(a.slot.Ia,"metadata_type_ad_break_request_data");return a.u.get().fetch({xO:b.getAdBreakUrl,EJ:new g.nA(b.lN,b.kN)})})};
I_.prototype.MC=function(){TJa(this.i)};J_.prototype.vv=function(){$Ha(this.callback,this.slot,X(this.slot.Ia,"metadata_type_fulfilled_layout"))};
J_.prototype.MC=function(){RY(this.callback,this.slot,new dZ("Got CancelSlotFulfilling request for "+this.slot.rb+" in DirectFulfillmentAdapter."))};L_.prototype.Ne=function(a,b){return K_(b,{Ud:["metadata_type_fulfilled_layout"]})?new J_(a,b):this.C(a,b)};g.w(M_,L_);M_.prototype.C=function(a,b){if(K_(b,{Ud:["metadata_type_ad_break_request_data","metadata_type_cue_point"],rb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new H_(a,b,this.i,this.B,this.u,this.D);if(K_(b,{Ud:["metadata_type_ad_break_request_data"],rb:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new I_(a,b,this.i,this.B,this.u);throw new dZ("Unsupported slot with type: "+b.rb+" and client metadata: "+IY(b.Ia)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(N_,L_);N_.prototype.C=function(a,b){throw new dZ("Unsupported slot with type: "+b.rb+" and client metadata: "+IY(b.Ia)+" in DefaultFulfillmentAdapterFactory.");};g.k=VJa.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.wf(this.slot,a,new VY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var b=X(a.Ia,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.rb?(this.callback.Kc(this.slot,a),fja(this.i,this.slot,b)):S("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",
this.slot,a)}};
g.k.df=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new VY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Wc(this.slot,a,b)};P_.prototype.Ne=function(a,b,c,d){if(O_(d,{Ud:["metadata_type_ad_break_response_data"],bf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new VJa(a,c,d,this.i);throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};Q_.prototype.Jf=function(a){var b=this.D.get(a)||[];WJa(this,a,b);this.i.add(a)};g.k=YJa.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new VY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.callback.Kc(this.slot,a),T_(this.u,"impression"),g0(this.i,a.layoutId))};
g.k.df=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new VY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):this.callback.Wc(this.slot,a,b)};U_.prototype.Ne=function(a,b,c,d){if(O_(d,ZJa()))return new YJa(a,c,d,this.Va,this.i);throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(V_,g.R);g.k=V_.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.init=function(){this.u.get().addListener(this)};
g.k.release=function(){this.u.get().removeListener(this);this.dispose()};
g.k.UD=function(){};
g.k.SD=function(){};
g.k.RD=function(){};
g.k.jz=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new VY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(a=this.u.get(),zKa(a,this.i,1))};
g.k.df=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.wf(this.slot,a,new VY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType)));else{var c=this.u.get();zKa(c,this.i,3);this.i=[];this.callback.Wc(this.slot,a,b)}};
g.k.xa=function(){this.u.get().removeListener(this);g.R.prototype.xa.call(this)};g.w($Ja,wH);g.w(Y_,V_);g.k=Y_.prototype;g.k.nf=function(a,b){X_("action-companion",a,this.J.get().Li,this.Va.get(),this.B,this.C,this.Bd(),this.Kb(),b)};
g.k.startRendering=function(a){W_(this.D,this.Bd(),this.Kb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new $Ja(b,c,d,e,f)},this.i);
V_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?T_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Va.get().Fh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};
g.k.xa=function(){this.Ye().Od.delete(this);V_.prototype.xa.call(this)};g.w(Z_,V_);Z_.prototype.init=function(){V_.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_ad_action_interstitial_renderer"),b=S_(this.B);this.i.push(new jI(a,b,this.layout.layoutId,{adsClientData:this.layout.Ec},!0,!0))};
Z_.prototype.startRendering=function(a){V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
Z_.prototype.nf=function(){};
Z_.prototype.xa=function(){V_.prototype.xa.call(this)};g.w($_,V_);g.k=$_.prototype;g.k.init=function(){V_.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ec},c=!X(this.layout.Ia,"metadata_type_player_bytes_callback").vz;this.i.push(new CJ(a,this.layout.layoutId,X(this.layout.Ia,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.gm=function(){this.B||this.Ha.get().resumeVideo(2)};
g.k.startRendering=function(a){V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.Nd.To=this};
g.k.df=function(a,b){V_.prototype.df.call(this,a,b);S1(this.Nd,this)};
g.k.nf=function(a){if(nJa(this.C.get(),this.D))switch(a){case "visit-advertiser":this.Va.get().I.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.B||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":(this.B=this.Ha.get().Xl(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();X(this.layout.Ia,"metadata_type_player_bytes_callback").GA();
break;case "skip-button":a=X(this.layout.Ia,"metadata_type_player_bytes_callback"),a.vz&&a.Dw(this.Bd(),this.layout)}};
g.k.xa=function(){V_.prototype.xa.call(this)};b0.prototype.Ne=function(a,b,c,d){if(a=a0(a,c,d,this.i,this.Ha,this.Va,this.u,this.Nd))return a;throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(c0,g.I);g.k=c0.prototype;g.k.init=function(){var a=X(this.Kb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.In()};
g.k.release=function(){var a=X(this.Kb().Ia,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.po()};
g.k.startRendering=function(a){a.layoutId!==this.Kb().layoutId?this.callback.wf(this.Bd(),a,new VY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Kb().layoutId+("and LayoutType: "+this.Kb().layoutType))):(this.Ha.get().addListener(this),PY(this.Ye(),this),this.Ha.get().I.Hj(2),Hqa(this.dd.get()),this.Do(a))};
g.k.df=function(a,b){this.cE=!0;this.Eo(a,b);this.Ha.get().I.qo(2);this.Fd.get().I.cueVideoByPlayerVars({},2);a=r_(this.Ha.get(),1);g.T(a,4)&&!g.T(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.cE&&this.BL()};
g.k.Wc=function(a,b){b.layoutId===this.Kb().layoutId&&(this.cE=!1,this.Ye().Od.delete(this))};
g.k.Cj=function(a,b){var c,d;if(a.state.isError()){if(this.Na.get().I.V().N("html5_ignore_organic_playback_error_when_ads_presenting")&&(S("Presenting player state error caught in PlayerBytes layout.",this.Bd(),this.Kb(),{playerType:String(b)}),1===b))return;this.wf(null===(c=a.state.getData())||void 0===c?void 0:c.errorCode,new VY("There was a player error during this media layout.",{playerErrorCode:null===(d=a.state.getData())||void 0===d?void 0:d.errorCode}),b)}else this.zM(a)};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};g.w(d0,c0);g.k=d0.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.In=function(){if(1>=this.u.length)throw new dZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),$Y(this.B,this.slot,b.Kb())};
g.k.po=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,tqa(this.B,this.slot,b.Kb()),b.release()};
g.k.lq=function(a,b){var c=this.u[this.i];b.layoutId!==e0(c,a,b)?S("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.lq()};
g.k.yq=function(a,b){var c=this.u[this.i];b.layoutId!==e0(c,a,b)?S("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.yq()};
g.k.Dw=function(a,b){var c=this.u[this.i];b.layoutId!==e0(c,a,b)?S("onSkipRequested for a PlayerBytes layout that is not currently active",c.Bd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):f0(this,c.Bd(),c.Kb(),"skipped")};
g.k.Do=function(){-1===this.i&&dKa(this)};
g.k.OV=function(a,b){aZ(this.B,a,b)};
g.k.Eo=function(a,b){var c=this;this.i!==this.u.length?(a=this.u[this.i],a.df(a.Kb(),b),this.D=function(){c.callback.Wc(c.slot,c.layout,b)}):this.callback.Wc(this.slot,this.layout,b)};
g.k.Kc=function(a,b){var c=this.u[this.i];c&&c.Kc(a,b)};
g.k.Wc=function(a,b,c){c0.prototype.Wc.call(this,a,b,c);var d=this.u[this.i];d&&d.Wc(a,b,c)};
g.k.BL=function(){var a=this.u[this.i];a&&a.iz()};
g.k.Bi=function(a){var b=this.u[this.i];b&&b.Bi(a)};
g.k.zM=function(a){var b=this.u[this.i];b&&b.Cj(a)};
g.k.wf=function(a,b){-1===this.i&&(this.callback.Kc(this.slot,this.layout),this.i++);var c=this.u[this.i];c?c.ow(a,b):S("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Kb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.i];if(b)b.onFullscreenToggled(a)};
g.k.yg=function(a){var b=this.u[this.i];b&&b.yg(a)};
g.k.wj=function(a){var b=this.u[this.i];b&&b.wj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.i];if(a)a.onVolumeChange()};
g.k.QV=function(a,b,c){f0(this,a,b,c)};
g.k.PV=function(a,b){f0(this,a,b,"error")};g.w(k0,g.I);g.k=k0.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.init=function(){var a=X(this.layout.Ia,"metadata_type_video_length_seconds");s_(this.ma.get(),this.layout.layoutId,a,this);y_(this.Va.get(),this);this.In()};
g.k.release=function(){t_(this.ma.get(),this.layout.layoutId);z_(this.Va.get(),this);this.po()};
g.k.lq=function(){};
g.k.yq=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new VY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",mpa(this.Ja.get(),1)?(this.Ou(!1),this.K(-1),this.Do(a)):this.ow("ui_unstable",new VY("Failed to render media layout because ad ui unstable.")))};
g.k.Kc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.u="rendering",T_(this.i,"impression"),T_(this.i,"start"),this.Ha.get().isMuted()&&(T_(this.i,"mute"),a=(null===(c=j0(this))||void 0===c?void 0:c.muteCommands)||[],this.B.get().Hd(a,this.layout.layoutId)),this.Ha.get().isFullscreen()&&(this.i.Jf("fullscreen"),a=(null===(d=j0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.B.get().Hd(a,this.layout.layoutId)),Jqa(this.dd.get()),this.K(1),this.mM(),a=(null===(e=j0(this))||
void 0===e?void 0:e.impressionCommands)||[],this.B.get().Hd(a,this.layout.layoutId))};
g.k.ow=function(a,b,c){this.Ka={oB:3,xx:"load_timeout"===a?402:400,errorMessage:b.message};var d;X(this.layout.Ia,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&S("There is a player error in this survey ads",this.Bd(),this.Kb(),{playerType:String(c)});T_(this.i,"error");a=(null===(d=j0(this))||void 0===d?void 0:d.errorCommands)||[];this.B.get().Hd(a,this.layout.layoutId);this.callback.wf(this.slot,this.layout,b)};
g.k.iz=function(){this.S()};
g.k.uK=function(){var a;if("rendering"===this.u){this.i.Jf("pause");var b=(null===(a=j0(this))||void 0===a?void 0:a.pauseCommands)||[];this.B.get().Hd(b,this.layout.layoutId);this.K(2)}};
g.k.vK=function(){var a;if("rendering"===this.u){this.i.Jf("resume");var b=(null===(a=j0(this))||void 0===a?void 0:a.resumeCommands)||[];this.B.get().Hd(b,this.layout.layoutId)}};
g.k.df=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new VY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.Z=b,this.Eo(a,b))};
g.k.Wc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.Z=void 0,this.Na.get().I.V().N("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Da)&&this.Ou(a):this.Ou(!0),this.nM(c),this.K(0),c){case "abandoned":var d;if(this.i.i.has("impression")){T_(this.i,"abandon");var e=(null===(d=j0(this))||void 0===d?void 0:d.abandonCommands)||[];this.B.get().Hd(e,this.layout.layoutId)}break;case "normal":T_(this.i,"complete");
d=(null===(e=j0(this))||void 0===e?void 0:e.completeCommands)||[];this.B.get().Hd(d,this.layout.layoutId);break;case "skipped":var f;T_(this.i,"skip");d=(null===(f=j0(this))||void 0===f?void 0:f.skipCommands)||[];this.B.get().Hd(d,this.layout.layoutId)}};
g.k.Gv=function(){return this.layout.layoutId};
g.k.uD=function(){return this.Ka};
g.k.Cj=function(a){if("not_rendering"!==this.u){this.Aa||(a=new g.cI(a.state,new g.UJ),this.Aa=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&h0(a)&&this.ya():b?g.eI(a,2)?this.LH():(h0(a)?this.K(1):g.eI(a,4)&&!g.eI(a,2)&&this.uK(),0>dI(a,4)&&!(0>dI(a,2))&&this.vK()):this.iz()}};
g.k.uw=function(){var a;if("rendering"===this.u){T_(this.i,"active_view_measurable");var b=(null===(a=j0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Hd(b,this.layout.layoutId)}};
g.k.qw=function(){var a;if("rendering"===this.u){T_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=j0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Hd(b,this.layout.layoutId)}};
g.k.ww=function(){var a;if("rendering"===this.u){T_(this.i,"active_view_viewable");var b=(null===(a=j0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.B.get().Hd(b,this.layout.layoutId)}};
g.k.Ou=function(a){this.dd.get().Ou(X(this.layout.Ia,"metadata_type_ad_placement_config").kind,a,this.position,this.Da,!1)};
g.k.onFullscreenToggled=function(a){var b,c;"rendering"===this.u&&(a?(this.i.Jf("fullscreen"),a=(null===(b=j0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.B.get().Hd(a,this.layout.layoutId)):(this.i.Jf("end_fullscreen"),a=(null===(c=j0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.B.get().Hd(a,this.layout.layoutId)))};
g.k.onVolumeChange=function(){var a,b;if("rendering"===this.u)if(this.Ha.get().isMuted()){T_(this.i,"mute");var c=(null===(a=j0(this))||void 0===a?void 0:a.muteCommands)||[];this.B.get().Hd(c,this.layout.layoutId)}else T_(this.i,"unmute"),c=(null===(b=j0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.B.get().Hd(c,this.layout.layoutId)};
g.k.yg=function(){};
g.k.wj=function(){};g.w(n0,k0);g.k=n0.prototype;g.k.In=function(){};
g.k.po=function(){var a=this.Va.get();a.WA===this&&(a.WA=null);p_(this.Na.get())?this.J.stop():this.D.stop()};
g.k.Do=function(){this.Va.get().WA=this;vJ();this.ya()};
g.k.mM=function(){iKa(this)};
g.k.LH=function(){};
g.k.lq=function(){p_(this.Na.get())?this.J.stop():this.D.stop();k0.prototype.uK.call(this)};
g.k.yq=function(){iKa(this);k0.prototype.vK.call(this)};
g.k.Nl=function(){return X(this.Kb().Ia,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Eo=function(){p_(this.Na.get())?this.J.stop():this.D.stop()};
g.k.Qb=function(){var a=Date.now(),b=a-this.Y;this.Y=a;this.C+=b;this.C>=this.Nl()?(this.C=this.Nl(),l0(this,this.C/1E3,!0),m0(this,this.C),this.S()):(l0(this,this.C/1E3),m0(this,this.C))};
g.k.nM=function(){};
g.k.Bi=function(){};g.w(o0,k0);g.k=o0.prototype;g.k.In=function(){X(this.Kb().Ia,"metadata_type_player_bytes_callback_ref").current=this};
g.k.po=function(){X(this.Kb().Ia,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.J.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()};
g.k.Do=function(a){var b=X(a.Ia,"metadata_type_ad_video_id"),c=X(a.Ia,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.La.get().I.V().Z.add(b,{Qu:c});(b=X(a.Ia,"metadata_type_sodar_extension_data"))&&QJa(this.Sa.get(),b);OJa(this.Ha.get(),!1);b=this.Fd.get();a=X(a.Ia,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Fd.get().I.playVideo(2)};
g.k.mM=function(){var a;this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.J.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=(null===(a=aA(this.Y.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||S("Media layout confirmed started, but ad CPN not set.");this.Ic.get().Oa("onAdStart",this.adCpn)};
g.k.LH=function(){this.S()};
g.k.Nl=function(){var a;return null===(a=aA(this.Y.get(),2))||void 0===a?void 0:a.playbackDurationMs};
g.k.GA=function(){this.i.Jf("clickthrough")};
g.k.Eo=function(){this.D.stop();OJa(this.Ha.get(),!0)};
g.k.onCueRangeEnter=function(a){a!==this.C?S("Received CueRangeEnter signal for unknown layout.",this.Bd(),this.Kb(),{cueRangeId:a}):(this.J.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Ia,"metadata_type_video_length_seconds"),l0(this,a,!0),T_(this.i,"complete"))};
g.k.nM=function(a){"abandoned"!==a&&this.Ic.get().Oa("onAdComplete");this.Ic.get().Oa("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Bi=function(a){"rendering"===this.u&&l0(this,a)};g.w(p0,c0);g.k=p0.prototype;g.k.Bd=function(){return this.i.Bd()};
g.k.Kb=function(){return this.i.Kb()};
g.k.In=function(){this.i.init()};
g.k.po=function(){this.i.release()};
g.k.lq=function(){this.i.lq()};
g.k.yq=function(){this.i.yq()};
g.k.Dw=function(a,b){S("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Bd(),this.Kb(),{requestingSlot:a,requestingLayout:b})};
g.k.Do=function(a){this.i.startRendering(a)};
g.k.Eo=function(a,b){this.i.df(a,b)};
g.k.Kc=function(a,b){this.i.Kc(a,b)};
g.k.Wc=function(a,b,c){c0.prototype.Wc.call(this,a,b,c);this.i.Wc(a,b,c);b.layoutId===this.Kb().layoutId&&PJ(this.dd.get())};
g.k.BL=function(){this.i.iz()};
g.k.Bi=function(a){this.i.Bi(a)};
g.k.zM=function(a){this.i.Cj(a)};
g.k.wf=function(a,b,c){this.i.ow(a,b,c)};
g.k.onFullscreenToggled=function(a){this.i.onFullscreenToggled(a)};
g.k.yg=function(a){this.i.yg(a)};
g.k.wj=function(a){this.i.wj(a)};
g.k.onVolumeChange=function(){this.i.onVolumeChange()};q0.prototype.Ne=function(a,b,c,d){if(a=lKa(a,b,c,d,this.Ye,this.J,this.Va,this.D,this.S,this.Fd,this.K,this.Ha,this.B,this.dd,this.Ic,this.i,this.u,this.C,this.Na))return a;throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(r0,g.I);g.k=r0.prototype;g.k.pM=function(a){var b;this.i?mKa(this,this.i,a):null===(b=this.C)||void 0===b?void 0:b.get().Yn(a.identifier)};
g.k.fM=function(){};
g.k.ih=function(a){this.i&&this.i.contentCpn!==a&&(S("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)};
g.k.yj=function(a){this.i&&this.i.contentCpn!==a&&S("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.k.xa=function(){g.I.prototype.xa.call(this);this.i=null};g.w(s0,g.I);g.k=s0.prototype;g.k.Kc=function(a,b){var c=this;this.Na.get();if("LAYOUT_TYPE_MEDIA"===b.layoutType&&GY(b,this.S)){var d=aA(this.C.get(),2),e=this.J(b,d);e?$z(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[yJa(c.u.get(),e.contentCpn,e.vt,function(h){return c.K(h.slotId,"core",e,MY(c.i.get(),h))},e.KK)];
e.instreamAdPlayerUnderlayRenderer&&EJa(c.Na.get())&&f.push(nKa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):S("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.xf=function(){};
g.k.Dj=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};
g.k.Wc=function(){};var q1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=rKa.prototype;g.k.init=function(){};
g.k.Bd=function(){return this.slot};
g.k.Dy=function(){this.callback.xf(this.slot)};
g.k.Ey=function(){this.callback.yf(this.slot)};
g.k.release=function(){};u0.prototype.Ne=function(a,b){return new rKa(a,b)};g.k=sKa.prototype;g.k.init=function(){};
g.k.Bd=function(){return this.slot};
g.k.Dy=function(){D_(this.Ha.get(),"ad-showing");this.callback.xf(this.slot)};
g.k.Ey=function(){this.callback.yf(this.slot);E_(this.Ha.get(),"ad-showing")};
g.k.release=function(){};g.k=tKa.prototype;g.k.init=function(){};
g.k.Bd=function(){return this.slot};
g.k.Dy=function(){D_(this.Ha.get(),"ad-showing");D_(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)};
g.k.Ey=function(){E_(this.Ha.get(),"ad-showing");E_(this.Ha.get(),"ad-interrupting");var a=this.u?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Ha.get().I.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)};
g.k.release=function(){};g.k=uKa.prototype;g.k.init=function(){};
g.k.Bd=function(){return this.slot};
g.k.Dy=function(){D_(this.Ha.get(),"ad-showing");D_(this.Ha.get(),"ad-interrupting");this.callback.xf(this.slot)};
g.k.Ey=function(){this.Ha.get().wp();E_(this.Ha.get(),"ad-showing");E_(this.Ha.get(),"ad-interrupting");this.callback.yf(this.slot)};
g.k.release=function(){this.Ha.get().wp()};v0.prototype.Ne=function(a,b){if(cA(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new sKa(a,b,this.Ha);if(b.Ub instanceof NZ&&cA(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new tKa(a,b,this.Ha);if(cA(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new uKa(a,b,this.Ha);throw new dZ("Unsupported slot with type "+b.rb+" and client metadata: "+(IY(b.Ia)+" in PlayerBytesSlotAdapterFactory."));};g.w(x0,g.I);x0.prototype.i=function(a){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof wZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Ee===a&&b.push(d)}b.length?bZ(this.WB(),b):S("Mute requested but no registered triggers can be activated.")};g.w(y0,x0);g.k=y0.prototype;g.k.nf=function(a,b){if(b)if("survey-submit"===a)vKa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof wZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Ee===b&&a.push(d)}a.length&&bZ(this.WB(),a)}else"survey-single-select-answer-button"===a&&vKa(this,b)};
g.k.UD=function(a){x0.prototype.i.call(this,a)};
g.k.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof xZ||b instanceof wZ))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Hb.set(b.triggerId,new w0(a,b,c,d))};
g.k.Qi=function(a){this.Hb.delete(a.triggerId)};
g.k.SD=function(){};
g.k.RD=function(){};
g.k.jz=function(){};g.w(z0,g.I);g.k=z0.prototype;
g.k.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof b_||b instanceof c_||b instanceof d_||b instanceof e_||b instanceof f_||b instanceof TZ||b instanceof YZ||b instanceof vZ||b instanceof DZ||b instanceof SZ||b instanceof XZ))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new w0(a,b,c,d);this.Hb.set(b.triggerId,a);b instanceof f_&&this.D.has(b.Ig)&&
bZ(this.i(),[a]);b instanceof b_&&this.B.has(b.Ig)&&bZ(this.i(),[a]);b instanceof YZ&&this.u.has(b.Ee)&&bZ(this.i(),[a])};
g.k.Qi=function(a){this.Hb.delete(a.triggerId)};
g.k.Oh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof f_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&bZ(this.i(),b)};
g.k.Ej=function(a){this.D.delete(a.slotId);a=[];for(var b=g.r(this.Hb.values()),c=b.next();!c.done;c=b.next());0<a.length&&bZ(this.i(),a)};
g.k.Dj=function(a){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof TZ&&e.rb===a.rb&&e.i!==a.slotId&&b.push(d)}0<b.length&&bZ(this.i(),b)};
g.k.xf=function(a){this.B.add(a.slotId);for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof b_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&bZ(this.i(),b)};
g.k.yf=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof c_)a.slotId===d.trigger.Ig&&b.push(d);else if(d.trigger instanceof XZ){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.Ee)&&b.push(d)}0<b.length&&bZ(this.i(),b)};
g.k.Mk=function(a){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof d_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&bZ(this.i(),b)};
g.k.Nk=function(a){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof e_&&a.slotId===d.trigger.Ig&&b.push(d);0<b.length&&bZ(this.i(),b)};
g.k.Aj=function(a,b){this.J.add(b.layoutId)};
g.k.Bj=function(a,b){this.J.delete(b.layoutId)};
g.k.Kc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.r(this.Hb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof YZ)b.layoutId===e.trigger.Ee&&c.push(e);else if(e.trigger instanceof SZ){var f=e.trigger;a.rb===f.rb&&b.layoutType===f.layoutType&&b.layoutId!==f.i&&c.push(e)}else e.trigger instanceof XZ&&(f=e.trigger,b.layoutId===f.Ee&&this.C.has(f.slotId)&&c.push(e));0<c.length&&bZ(this.i(),c)};
g.k.Wc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.r(this.Hb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof vZ&&b.layoutId===e.trigger.Ee&&a.push(e),e.trigger instanceof DZ&&b.layoutId===e.trigger.Ee&&"error"===c&&a.push(e);0<a.length&&bZ(this.i(),a)};
g.k.Di=function(){};
g.k.ih=function(){this.C.clear()};
g.k.yj=function(){};g.w(A0,g.I);A0.prototype.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof dA||b instanceof $Z))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Hb.set(b.triggerId,new w0(a,b,c,d))};
A0.prototype.Qi=function(a){this.Hb.delete(a.triggerId)};
A0.prototype.ih=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.r(this.Hb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof dA&&l.trigger.Ho===a&&f.push(l);e.call(d,b,g.v(f));b.push.apply(b,g.v(wKa(this.Hb,a,!1,c)));b.length&&bZ(this.i(),b)};
A0.prototype.yj=function(a){var b=[];b.push.apply(b,g.v(wKa(this.Hb,a,!0,!1)));b.length&&bZ(this.i(),b)};g.w(B0,g.I);g.k=B0.prototype;
g.k.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof NZ)C0(this,a,b,c,d,e,b.i.start,b.i.end,b.Ho,b.visible);else if(b instanceof ZZ)C0(this,a,b,c,d,e,b.i.start,b.i.end,b.Ho,!1);else if(b instanceof WZ)C0(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Ho,b.visible);else throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");
};
g.k.Qi=function(a){var b=this.Hb.get(a.triggerId);b&&this.B.get().removeCueRange(b.wy);this.Hb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){if(a=xKa(this,a))if(a=this.Hb.get(a))if(g.T(r_(this.Ha.get()),32))this.i.add(a.wy);else{var b=null===a||void 0===a?void 0:a.bundle.trigger;(b instanceof NZ||b instanceof WZ)&&bZ(this.u(),[a.bundle])}};
g.k.onCueRangeExit=function(a){if(a=xKa(this,a))if(a=this.Hb.get(a))this.i.delete(a.wy),a.bundle.trigger instanceof ZZ&&bZ(this.u(),[a.bundle])};
g.k.Cj=function(a){if(0>dI(a,16)){a=g.r(this.i);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.i.clear()}};
g.k.Bi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(){};
g.k.wj=function(){};
g.k.onVolumeChange=function(){};g.w(D0,g.I);g.k=D0.prototype;g.k.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof zZ||b instanceof a_))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Hb.set(b.triggerId,new w0(a,b,c,d))};
g.k.Qi=function(a){this.Hb.delete(a.triggerId)};
g.k.Ym=function(){};
g.k.rk=function(){};
g.k.Kc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.i?S("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)};
g.k.Wc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(this.i=null)};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.u?S("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)};
g.k.yf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null===this.u?S("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};
g.k.oy=function(){null!=this.i&&g0(this,this.i)};
g.k.Gy=function(a){if(null===this.u){for(var b=[],c=g.r(this.Hb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof a_&&d.trigger.slotId===a&&b.push(d);b.length&&bZ(this.B(),b)}};g.w(E0,g.I);g.k=E0.prototype;g.k.Di=function(a,b){for(var c=[],d=g.r(this.Hb.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&&bZ(this.i(),c)};
g.k.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof pJa))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Hb.set(b.triggerId,new w0(a,b,c,d))};
g.k.Qi=function(a){this.Hb.delete(a.triggerId)};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Kc=function(){};
g.k.Wc=function(){};g.w(F0,g.I);F0.prototype.xa=function(){this.D.get().removeListener(this);g.I.prototype.xa.call(this)};G0.prototype.fetch=function(a){var b=a.EJ;return this.Vo.fetch(a.xO,{Vu:void 0===a.Vu?void 0:a.Vu,Ad:b}).then(function(c){return yKa(c,b)})};g.w(H0,g.I);g.k=H0.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.onAdUxClicked=function(a,b){I0(this,function(c){c.nf(a,b)})};
g.k.QE=function(a){I0(this,function(b){b.SD(a)})};
g.k.PE=function(a){I0(this,function(b){b.RD(a)})};
g.k.uT=function(a){I0(this,function(b){b.jz(a)})};g.w(J0,g.I);g.k=J0.prototype;g.k.ih=function(){this.B=new IJ(this,DJa(this.Na.get()));this.i=new JJ;AKa(this)};
g.k.yj=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.kF=function(a){this.cB.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.pM(a)};
g.k.hM=function(a){g.Nb(this.i.i,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.fM(a)};
g.k.XE=function(a){var b=aA(this.C.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||KZ(this.Na.get()))&&x_(this.Va.get(),{cuepointTrigger:{event:BKa(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):KZ(this.Na.get())&&0!==this.I.getCurrentTime(1)&&"start"===e.event&&this.kF(e)};
g.k.xa=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.XE,this);this.listeners.length=0;this.u.clear();this.cB.length=0;g.I.prototype.xa.call(this)};M0.prototype.addListener=function(a){this.listeners.push(a)};
M0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=N0.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.init=function(){var a;this.D.get().addListener(this);this.Ha.get().addListener(this);this.In();var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms"),d=null===(a=this.B.get().rp)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Ec.adClientDataEntry;x_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.D.get();f=KJ(f.i,b,c);null!==f&&(x_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:f-
b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.K.get().lp(f,c))};
g.k.release=function(){this.po();this.D.get().removeListener(this);this.Ha.get().removeListener(this)};
g.k.startRendering=function(){this.Do();this.callback.Kc(this.slot,this.layout);T_(this.i,"ad_placement_start")};
g.k.df=function(a,b){this.Eo(b);null!==this.driftRecoveryMs&&(O0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(DKa(this)-X(this.layout.Ia,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().I.xn()).toString()}),this.driftRecoveryMs=null);this.callback.Wc(this.slot,this.layout,b);"normal"!==b?a=!1:(a=this.Ha.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ia,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&T_(this.i,"ad_placement_end")};
g.k.pM=function(){};
g.k.fM=function(a){var b,c=X(this.layout.Ia,"metadata_type_layout_enter_ms"),d=X(this.layout.Ia,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&a<d&&(x_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:a-c,contentCpn:null===(b=this.B.get().rp)||void 0===b?void 0:b.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ec.adClientDataEntry}}),this.K.get().lp(a,d))};
g.k.Bi=function(a){this.VL(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(nJa(this.S.get(),this.layout.layoutId)){var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=DKa(this),e=this.Ha.get().I.xn(),f=Math.min(a+e,d/1E3);f<=a?O0(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(O0(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.Ha.get().I.seekTo(f,void 0,void 0,1))}}};
g.k.yg=function(){};
g.k.wj=function(){};
g.k.onVolumeChange=function(){};g.w(P0,N0);g.k=P0.prototype;g.k.In=function(){this.B.get().addListener(this);this.J.forEach(function(a){a.init()});
null!=this.C&&this.Va.get().gh("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.C)};
g.k.po=function(){this.B.get().removeListener(this);this.u=null;this.J.forEach(function(a){a.release()})};
g.k.Do=function(){var a;if(this.u)S("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.C)});else{var b=null===(a=this.B.get().rp)||void 0===a?void 0:a.layoutId;FKa(this,b)}};
g.k.Eo=function(a){var b,c,d,e;null===(c=null===(b=this.u)||void 0===b?void 0:b.ci)||void 0===c?void 0:c.df(null===(e=null===(d=this.u)||void 0===d?void 0:d.ci)||void 0===e?void 0:e.Kb(),a);this.u=null};
g.k.vM=function(a){var b=a.videoId;a=a.layoutId;var c,d,e,f,h;"nPpU29QrbiU"===b&&this.Va.get().gh("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.C+";slrs."+!!this.u+";slrslid."+(null===(d=null===(c=this.u)||void 0===c?void 0:c.ci)||void 0===d?void 0:d.Kb().layoutId));this.u&&(null===(e=this.u.ci)||void 0===e?void 0:e.Kb().layoutId)!==a&&(null===(f=this.u.ci)||void 0===f?void 0:f.df(null===(h=this.u.ci)||void 0===h?void 0:h.Kb(),"normal"),FKa(this,a))};
g.k.VL=function(){};
g.k.Cj=function(){};
g.k.onFullscreenToggled=function(){};g.k=OKa.prototype;g.k.Bd=function(){return this.slot};
g.k.Kb=function(){return this.layout};
g.k.init=function(){var a=this;X(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;this.Dc=GKa(this.slot,this.layout,X(this.layout.Ia,"metadata_type_player_vars"),X(this.layout.Ia,"metadata_type_layout_enter_ms"),X(this.layout.Ia,"metadata_type_layout_exit_ms"),1E3*X(this.layout.Ia,"metadata_type_video_length_seconds"),this.D.get(),this.K.get(),function(){var c=Object,d=c.assign,e=Object.assign({layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},T0(a.layout));var f=X(a.slot.Ia,
"metadata_type_fulfilled_layout");f=Object.assign(Object.assign({},T0(f)),{adPlacementConfig:X(f.Ia,"metadata_type_ad_placement_config"),subLayouts:X(f.Ia,"metadata_type_sub_layouts").map(T0)});return d.call(c,e,{compositeLayout:f,hasSurveyOverlay:bA(a.layout.Ia,"metadata_type_survey_overlay"),surveyOverlay:X(a.layout.Ia,"metadata_type_survey_overlay")})},this.Va.get());
this.Ha.get().addListener(this);var b=X(this.layout.Ia,"metadata_type_video_length_seconds");s_(this.B.get(),this.layout.layoutId,b,this);$Y(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ha.get().removeListener(this);t_(this.B.get(),this.layout.layoutId)};
g.k.startRendering=function(){var a=this;bA(this.layout.Ia,"metadata_type_survey_overlay")&&this.Va.get().gh("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.i)S("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:bA(this.layout.Ia,"metadata_type_survey_overlay"),surveyOverlay:X(this.layout.Ia,"metadata_type_survey_overlay")});else{this.i={rj:null,Zw:!1};HKa(this.slot,this.layout,this.J.get());T_(this.u,"start");if(o_(this.Na.get())){var b=r_(this.Ha.get()),
c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);this.Va.get().gh("ads_teois","PSt."+b.state.toString(16)+";cts."+d);IKa(this.u,this.i.rj,b,c,d,function(){return void PKa(a,"teois")})}aZ(this.callback,this.slot,this.layout);
bA(this.layout.Ia,"metadata_type_survey_overlay")&&this.Va.get().gh("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.df=function(a,b){if(this.i){if(o_(this.Na.get()))if(null===this.Dc)S("Unexpected media sub layout exited without a timeline playback ID");else{a=X(this.layout.Ia,"metadata_type_video_length_seconds");var c=C_(this.Ha.get(),this.Dc);this.Va.get().gh("ads_stts","vls."+a+";cts."+c);this.u.C=c;R0(this.u,null,this.i.rj,a,c)}this.i=null;EJ(this.callback,this.slot,this.layout,b)}else S("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.ow=function(){};
g.k.iz=function(){};
g.k.Bi=function(a){if(this.i){if(this.u.i.has("impression")){var b=r_(this.Ha.get()),c=X(this.layout.Ia,"metadata_type_video_length_seconds");S0(this.u,b,a,this.i.rj,c)}this.i.rj=a}};
g.k.Cj=function(a){var b=this;if(this.i){o_(this.Na.get())||this.i.Zw||(this.i.Zw=!0,a=new g.cI(a.state,new g.UJ));var c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);this.Va.get().gh("ads_teosc","PSt."+a.state.state.toString(16)+";cts."+d);Q0(this.u,this.i.rj,a,c,d,!o_(this.Na.get()),function(){return void PKa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){JKa(this.u,a)};
g.k.yg=function(){};
g.k.wj=function(){};
g.k.Dw=function(){};
g.k.onVolumeChange=function(){};
g.k.Kc=function(){};
g.k.Wc=function(){};
g.k.lq=function(){};
g.k.yq=function(){};
g.k.GA=function(){KKa(this.u)};
g.k.uw=function(){LKa(this.u)};
g.k.qw=function(){MKa(this.u)};
g.k.ww=function(){NKa(this.u)};g.w(U0,N0);g.k=U0.prototype;
g.k.In=function(){var a=this;X(this.layout.Ia,"metadata_type_player_bytes_callback_ref").current=this;var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms");this.Dc=GKa(this.slot,this.layout,X(this.layout.Ia,"metadata_type_player_vars"),b,c,1E3*X(this.layout.Ia,"metadata_type_video_length_seconds"),this.K.get(),this.Z.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:X(a.layout.Ia,"metadata_type_ad_placement_config")}},
this.Va.get());
var d=X(this.layout.Ia,"metadata_type_video_length_seconds");s_(this.C.get(),this.layout.layoutId,d,this)};
g.k.po=function(){t_(this.C.get(),this.layout.layoutId)};
g.k.Do=function(){var a=this;if(this.u)S("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.u={rj:null,Zw:!1},HKa(this.slot,this.layout,this.J.get()),T_(this.i,"start"),o_(this.Na.get())){var b=r_(this.Ha.get()),c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);IKa(this.i,this.u.rj,b,c,d,function(){return void QKa(a,"teois")})}};
g.k.Eo=function(){if(this.u){if(o_(this.Na.get()))if(null===this.Dc)S("Unexpected single media layout exited without a timeline playback ID");else{var a=X(this.layout.Ia,"metadata_type_video_length_seconds"),b=C_(this.Ha.get(),this.Dc);this.i.C=b;R0(this.i,null,this.u.rj,a,b)}this.u=null}else S("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.VL=function(a){if(this.u){if(this.i.i.has("impression")){var b=r_(this.Ha.get()),c=X(this.layout.Ia,"metadata_type_video_length_seconds");S0(this.i,b,a,this.u.rj,c)}this.u.rj=a}};
g.k.Cj=function(a){var b=this;if(this.u){o_(this.Na.get())||this.u.Zw||(this.u.Zw=!0,a=new g.cI(a.state,new g.UJ));var c=X(this.layout.Ia,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);Q0(this.i,this.u.rj,a,c,d,!o_(this.Na.get()),function(){return void QKa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){JKa(this.i,a)};
g.k.GA=function(){KKa(this.i)};
g.k.uw=function(){LKa(this.i)};
g.k.qw=function(){MKa(this.i)};
g.k.ww=function(){NKa(this.i)};V0.prototype.Ne=function(a,b,c,d){if(bA(c.Ia,"metadata_type_dai")){var e=X(d.Ia,"metadata_type_ad_placement_config");O_(d,{Ud:["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"],bf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new Q_(d.tc,this.Va,e,d.layoutId,null),e=new U0(a,c,d,this.i,this.B,this.K,this.D,this.Ha,e,this.Va,this.C,this.J,this.u,this.Na)):e=null;if(e)return e;a:{var f=
X(d.Ia,"metadata_type_sub_layouts"),h=X(d.Ia,"metadata_type_ad_placement_config");if(O_(d,{Ud:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],bf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=X(l.Ia,"metadata_type_media_sub_layout_index");if(!O_(l,{Ud:["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"],bf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new Q_(l.tc,this.Va,h,l.layoutId,m);e.push(new OKa(b,c,l,this.B,m,this.Ha,this.K,this.u,this.C,this.Na,this.Va,this.i))}b=new Q_(d.tc,this.Va,h,d.layoutId);a=new P0(a,c,d,this.i,this.B,this.D,this.Ha,b,this.Va,this.J,e)}else a=null}if(a)return a}else if(a=lKa(a,b,c,d,this.Ye,this.ya,this.Va,this.u,this.C,this.Fd,this.i,this.Ha,this.Y,this.dd,this.Ic,this.S,this.Z,this.ma,this.Na))return a;throw new VY("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+IY(d.Ia)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(W0,g.I);W0.prototype.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof HZ))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Hb.set(b.triggerId,new w0(a,b,c,d))};
W0.prototype.Qi=function(a){this.Hb.delete(a.triggerId)};g.w(Y0,g.I);
Y0.prototype.Gi=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new dZ("Tried to re-register the trigger.");a=new w0(a,b,c,d);if(a.trigger instanceof uJa)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof yZ)this.B.set(a.trigger.triggerId,a);else throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.i&&bZ(this.C(),[a])};
Y0.prototype.Qi=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
Y0.prototype.vM=function(a){a=a.slotId;if(this.i!==a){var b=[];null!=this.i&&b.push.apply(b,g.v(RKa(this.B,this.i)));null!=a&&b.push.apply(b,g.v(RKa(this.u,a)));this.i=a;b.length&&bZ(this.C(),b)}};g.k=Z0.prototype;g.k.xr=function(a,b,c,d,e,f){return this.I.xr(a,b,c,d,e,f)};
g.k.lp=function(a,b){this.I.lp(a,b)};
g.k.At=function(a,b,c){this.I.At(a,b,c)};
g.k.Yn=function(a){this.I.Yn(a)};
g.k.Vv=function(a,b,c,d,e,f){this.I.Vv(a,b,c,d,e,f)};$0.prototype.addListener=function(a){this.listeners.add(a)};
$0.prototype.removeListener=function(a){this.listeners.delete(a)};g.w(SKa,wH);g.w(a1,V_);g.k=a1.prototype;g.k.nf=function(a,b){X_("image-companion",a,this.J.get().Li,this.Va.get(),this.B,this.C,this.Bd(),this.Kb(),b)};
g.k.startRendering=function(a){W_(this.D,this.Bd(),this.Kb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new SKa(b,c,d,e,f)},this.i);
V_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?T_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Va.get().Fh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};
g.k.xa=function(){this.Ye().Od.delete(this);V_.prototype.xa.call(this)};g.w(UKa,wH);g.w(b1,V_);g.k=b1.prototype;g.k.nf=function(a,b){X_("shopping-companion",a,this.J.get().Li,this.Va.get(),this.B,this.C,this.Bd(),this.Kb(),b)};
g.k.startRendering=function(a){W_(this.D,this.Bd(),this.Kb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new UKa(b,c,d,e,f)},this.i);
V_.prototype.startRendering.call(this,a)};
g.k.Kc=function(a,b){b.layoutId===this.layout.layoutId?T_(this.D,"impression"):this.C===b.layoutId&&(null===this.B?this.B=this.Va.get().Fh():S("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};
g.k.xa=function(){this.Ye().Od.delete(this);V_.prototype.xa.call(this)};WKa.prototype.Ne=function(a,b,c,d){if(O_(d,aKa()))return new Y_(a,c,d,this.i,this.Va,this.Ye,this.B,this.u);if(O_(d,TKa()))return new a1(a,c,d,this.i,this.Va,this.Ye,this.B,this.u);if(O_(d,VKa()))return new b1(a,c,d,this.i,this.Va,this.Ye,this.B,this.u);throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(c1,wH);g.w(d1,V_);d1.prototype.init=function(){V_.prototype.init.call(this);var a=X(this.layout.Ia,"metadata_type_player_underlay_renderer");this.i.push(new c1(a.instreamAdPlayerUnderlayRenderer,this.layout.layoutId,{adsClientData:this.layout.Ec}))};
d1.prototype.nf=function(){};
d1.prototype.startRendering=function(a){V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
d1.prototype.xa=function(){V_.prototype.xa.call(this)};XKa.prototype.Ne=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.r(R_()),f=e.next();!f.done;f=e.next())b.push(f.value);if(O_(d,{Ud:b,bf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new d1(a,c,d,this.i);throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(e1,V_);e1.prototype.startRendering=function(a){var b=S_(this.B),c={adsClientData:this.layout.Ec};this.i.push(new yJ(X(this.layout.Ia,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Kb().layoutId,c,!0,!0));V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
e1.prototype.nf=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Dw(this.slot,this.layout):S("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
e1.prototype.xa=function(){V_.prototype.xa.call(this)};var g1=new g.Wf(320,63);g.w(j1,wH);g.w(k1,V_);g.k=k1.prototype;g.k.Bi=function(){};
g.k.Cj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(a){a&&X0(this.B,this.layout)};
g.k.wj=function(a){var b=i1(this.layout);if(this.D=h1(a,NJa(this.Ha.get())))b.onErrorCommand&&this.J.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Gv=function(){return this.Kb().layoutId};
g.k.uD=function(){return this.D};
g.k.nf=function(a){this.C.nf(a);"in_video_overlay_close_button"===a&&X0(this.B,this.layout)};
g.k.jz=function(a){"invideo-overlay"===a&&X0(this.B,this.layout)};
g.k.gm=function(){this.C.gm()};
g.k.startRendering=function(a){V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.Nd.To=this};
g.k.df=function(a,b){V_.prototype.df.call(this,a,b);S1(this.Nd,this)};
g.k.init=function(){V_.prototype.init.call(this);y_(this.Va.get(),this);this.Ha.get().addListener(this);this.i.push(new j1(i1(this.layout),S_(this.K),this.layout.layoutId,{adsClientData:this.layout.Ec}))};
g.k.release=function(){V_.prototype.release.call(this);this.Ha.get().removeListener(this);z_(this.Va.get(),this)};g.w(l1,V_);g.k=l1.prototype;g.k.init=function(){V_.prototype.init.call(this);y_(this.Va.get(),this);this.Ha.get().addListener(this);this.i.push(new j1(i1(this.layout),S_(this.S),this.layout.layoutId,{adsClientData:this.layout.Ec}))};
g.k.gm=function(){this.C.gm()};
g.k.startRendering=function(a){V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a);this.Nd.To=this};
g.k.df=function(a,b){V_.prototype.df.call(this,a,b);S1(this.Nd,this)};
g.k.nf=function(a){this.C.nf(a);"in_video_overlay_close_button"===a&&X0(this.B,this.layout)};
g.k.SD=function(a){if("invideo-overlay"===a){a=bLa(this.J,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.jz=function(a){"invideo-overlay"===a&&X0(this.B,this.layout)};
g.k.RD=function(a){if("invideo-overlay"===a){a=bLa(this.J,this.layout);a=g.r(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Bi=function(){};
g.k.Cj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(a){a&&X0(this.B,this.layout)};
g.k.wj=function(a){var b=i1(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=NJa(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.wb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Wf(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Wf(0,0)}if(this.D=h1(a,d,c))b.onErrorCommand&&this.K.get().executeCommand(b.onErrorCommand,this.layout.layoutId),X0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Gv=function(){return this.Kb().layoutId};
g.k.uD=function(){return this.D};
g.k.release=function(){V_.prototype.release.call(this);this.Ha.get().removeListener(this);z_(this.Va.get(),this)};m1.prototype.nf=function(a){"ad-info-hover-text-button"===a&&((this.i=this.Ha.get().Xl(1))||this.Ha.get().pauseVideo())};
m1.prototype.gm=function(){this.i||this.Ha.get().resumeVideo(1)};g.w(n1,V_);g.k=n1.prototype;g.k.init=function(){V_.prototype.init.call(this);this.Ha.get().addListener(this)};
g.k.startRendering=function(a){var b=X(this.layout.Ia,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.i.push(new tJ(b,this.layout.layoutId,{adsClientData:this.layout.Ec},!0,!0));V_.prototype.startRendering.call(this,a);this.callback.Kc(this.slot,a)};
g.k.Kc=function(){};
g.k.nf=function(a,b){this.Na.get().I.V().N("html5_disable_survey_wta_play_and_pause")||b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=X(this.layout.Ia,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.lq(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.yq(this.slot,this.layout):S("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.wj=function(a){450>a.width&&X0(this.B,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Bi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.yg=function(){};
g.k.Cj=function(){};
g.k.xa=function(){V_.prototype.xa.call(this)};
g.k.release=function(){V_.prototype.release.call(this);this.Ha.get().removeListener(this)};aLa.prototype.Ne=function(a,b,c,d){if(b=a0(a,c,d,this.i,this.Ha,this.Va,this.J,this.Nd))return b;if(O_(d,$Ka()))return new l1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ha,this.B,this.Na,this.Nd,new m1(this.Ha));if(O_(d,ZKa()))return new k1(c,d,this.Va,this.C,this.i,a,this.u,this.Ha,this.B,this.Na,this.Nd,new m1(this.Ha));if(O_(d,{Ud:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],bf:["LAYOUT_TYPE_SURVEY"]}))return new n1(c,d,a,this.i,this.u,this.Ha,this.Na);if(O_(d,{Ud:["metadata_type_player_bytes_layout_controls_callback_ref",
"metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],bf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new e1(c,d,a,this.i,this.Va);throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(o1,g.I);g.k=o1.prototype;g.k.Gi=function(a,b,c,d){if(this.Hb.has(b.triggerId))throw new dZ("Tried to register duplicate trigger for slot.");if(!(b instanceof CZ))throw new dZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Hb.set(b.triggerId,new w0(a,b,c,d));a=this.i.has(b.Ee)?this.i.get(b.Ee):new Set;a.add(b);this.i.set(b.Ee,a)};
g.k.Qi=function(a){this.Hb.delete(a.triggerId);if(!(a instanceof CZ))throw new dZ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.i.get(a.Ee))b.delete(a),0===b.size&&this.i.delete(a.Ee)};
g.k.Oh=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Mk=function(){};
g.k.Nk=function(){};
g.k.Aj=function(){};
g.k.Bj=function(){};
g.k.Di=function(){};
g.k.Kc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Jt:a.Jt},d=b.next())a.Jt=d.value,d=new g.M(function(e){return function(){var f=c.Hb.get(e.Jt.triggerId);bZ(c.B(),[f])}}(a),a.Jt.durationMs),d.start(),this.u.set(a.Jt.triggerId,d)}};
g.k.Wc=function(){};g.w(p1,g.I);p1.prototype.xa=function(){this.C.get().removeListener(this);g.I.prototype.xa.call(this)};g.w(cLa,g.I);dLa.prototype.Ne=function(a,b,c,d){if(b=a0(a,c,d,this.i,this.Ha,this.Va,this.J,this.Nd))return b;if(O_(d,$Ka()))return new l1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ha,this.B,this.Na,this.Nd,new m1(this.Ha));if(O_(d,ZKa()))return new k1(c,d,this.Va,this.C,this.i,a,this.u,this.Ha,this.B,this.Na,this.Nd,new m1(this.Ha));throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(eLa,g.I);g.w(fLa,g.I);g.w(gLa,g.I);g.w(r1,$_);r1.prototype.startRendering=function(a){$_.prototype.startRendering.call(this,a);X(this.layout.Ia,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ia,"metadata_type_ad_info_ad_metadata"),this.J.get().I.Oa("onAdMetadataAvailable",a))};iLa.prototype.Ne=function(a,b,c,d){if(O_(d,hLa()))return new r1(a,c,d,this.u,this.Ha,this.Va,this.B,this.i,this.Nd);throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(jLa,g.I);kLa.prototype.Ne=function(a,b,c,d){if(O_(d,hLa()))return new r1(a,c,d,this.i,this.Ha,this.Va,this.u,this.B,this.Nd);if(a=a0(a,c,d,this.i,this.Ha,this.Va,this.u,this.Nd))return a;throw new VY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+IY(d.Ia)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(lLa,g.I);g.w(s1,g.I);s1.prototype.B=function(){return this.u};u1.prototype.Gy=function(a){this.hk.Gy(a)};
u1.prototype.oy=function(){try{this.hk.oy()}catch(a){}};
u1.prototype.Ym=function(){this.i().Ym()};
u1.prototype.rk=function(){this.i().rk()};g.w(v1,pL);
v1.prototype.C=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.i,interactionLoggingClientData:b.yb});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.i,interactionLoggingClientData:b.yb});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.i,interactionLoggingClientData:b.yb});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.w(w1,wL);g.k=w1.prototype;g.k.init=function(a,b,c){wL.prototype.init.call(this,a,b,c);g.Jl(this.B,"stroke-dasharray","0 "+this.u);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){yL(this);wL.prototype.hide.call(this)};
g.k.show=function(){xL(this);wL.prototype.show.call(this)};
g.k.rq=function(){this.hide()};
g.k.jo=function(){if(this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&g.Jl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.w(x1,SK);g.k=x1.prototype;
g.k.init=function(a,b,c){SK.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.Ty(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.ab(g.bg(e[0].url))&&(e[0].url=d.Qh);e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.ab(g.bg(e[0].url))&&(e[0].url=d.He());e=b.headline;null!=e&&g.ab(g.bg(e.text))&&(e.text=d.author)}this.C.init(vH("ad-image"),b.image,c);this.Y.init(vH("ad-text"),b.headline,c);this.K.init(vH("ad-text"),b.description,c);this.D.init(vH("ad-image"),b.backgroundImage,c);this.actionButton=new fL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-action-interstitial-action-button"]);g.J(this,
this.actionButton);this.actionButton.Ea(this.La);this.actionButton.init(vH("button"),b.actionButton.buttonRenderer,c);this.navigationEndpoint=b.navigationEndpoint;this.api.V().i||(this.B.T(this.Ja,"click",this.nD,this),this.B.T(this.Da,"click",this.nD,this),this.B.T(this.Aa,"click",this.nD,this));this.i=this.Eg?new KL(this.api,a):new LL(a);g.J(this,this.i);b.skipButton?(a=b.skipButton.skipButtonRenderer)&&this.i&&(this.skipButton=new GL(this.api,this.Xa,this.layoutId,this.yb,this.i,this.Ki),g.J(this,
this.skipButton),this.skipButton.Ea(this.element),this.skipButton.init(vH("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=b.nonskippableOverlayRenderer.adPreviewRenderer)&&this.i&&(this.u=new BL(this.api,this.Xa,this.layoutId,this.yb,this.i,!1),g.J(this,this.u),this.u.Ea(this.element),this.u.init(vH("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,b.timedPieCountdownRenderer&&this.i&&(c=new w1(this.api,this.Xa,this.layoutId,this.yb,this.i),g.J(this,c),c.Ea(this.element),c.init(vH("timed-pie-countdown"),
b.timedPieCountdownRenderer,this.macros)));this.show();this.element.focus()}else g.Ty(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Ty(Error("AdActionInterstitialRenderer has no button."));else g.Ty(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Ty(Error("AdActionInterstitialRenderer has no description AdText."));else g.Ty(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Ty(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.my(this.B);this.hide()};
g.k.show=function(){nLa(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();SK.prototype.show.call(this)};
g.k.hide=function(){nLa(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();SK.prototype.hide.call(this)};
g.k.nD=function(){this.navigationEndpoint&&this.Xa.executeCommand(this.navigationEndpoint,this.macros)};var z1={iconType:"CLOSE"},D1=new g.Wf(320,63);g.w(y1,SK);g.k=y1.prototype;
g.k.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);this.C=b;this.K=g.Db(this.C.onClickCommands||[]);this.Ja=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,a.textOverlayAdContentRenderer?(this.D=g.og("ytp-ad-overlay-ad-info-button-container",this.B.element),B1(this,b),a=sLa(this,a.textOverlayAdContentRenderer)):a.enhancedTextOverlayAdContentRenderer?(this.D=g.og("ytp-ad-overlay-ad-info-button-container",this.u.element),
B1(this,b),a=tLa(this,a.enhancedTextOverlayAdContentRenderer)):a.imageOverlayAdContentRenderer?(this.D=g.og("ytp-ad-overlay-ad-info-button-container",this.i.element),B1(this,b),a=uLa(this,a.imageOverlayAdContentRenderer)):(g.Ty(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),vLa(this,!0))};
g.k.clear=function(){vLa(this,!1);this.Da.reset();this.Y=0;this.B.hide();this.ib(this.B.element,!1);this.u.hide();this.ib(this.u.element,!1);this.i.hide();this.ib(this.i.element,!1);this.hide();this.dispose()};
g.k.TV=function(){this.Ua&&this.Xa.executeCommand(this.Ua,this.macros);this.api.pauseVideo()};
g.k.Ci=function(){var a=this;rLa(this).forEach(function(b){return a.Xa.executeCommand(b,a.macros)});
this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.nT=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.jF=function(){this.La||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.jF("invideo-overlay")};
g.k.oT=function(a){a.target===this.D&&g.og("ytp-ad-button",this.Za.element).click()};g.w(E1,wL);g.k=E1.prototype;g.k.init=function(a,b,c){wL.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.i.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(vH("ad-text"),d,c);this.messageText.Ea(this.u.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){wLa(this,!1);wL.prototype.hide.call(this);this.u.hide();this.messageText.hide();yL(this)};
g.k.show=function(){wLa(this,!0);wL.prototype.show.call(this);xL(this);this.u.show();this.messageText.show()};
g.k.rq=function(){this.hide()};
g.k.jo=function(){if(null!=this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.K&&a>=this.B?(this.D.hide(),this.K=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Y&&(vL(this.messageText,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.w(F1,SK);F1.prototype.init=function(a,b){SK.prototype.init.call(this,a,b,{});this.show()};
F1.prototype.show=function(){SK.prototype.show.call(this)};
F1.prototype.hide=function(){SK.prototype.hide.call(this)};
F1.prototype.clear=function(){this.api.YF(!1);this.hide()};g.w(G1,SK);
G1.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new fL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ea(this.answer),a.init(vH("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.i=new nL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-survey-answer-toggle-button"]),this.i.Ea(this.answer),
g.J(this,this.i),this.i.init(vH("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()};
G1.prototype.clear=function(){this.hide()};g.w(H1,SK);H1.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new nL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ea(this.i),this.button.init(vH("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(I1,fL);I1.prototype.init=function(a,b,c){fL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.uA(b.text),a=!g.ab(b));a||g.Bz(Error("No submit text was present in the renderer."))};
I1.prototype.onClick=function(a){this.ea("l");fL.prototype.onClick.call(this,a)};g.w(J1,SK);
J1.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new HL(this.api,this.Xa,this.layoutId,this.yb,this.B,this.Ki),c.Ea(this.D),c.init(vH("skip-button"),a,this.macros),g.J(this,c),this.i=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new BL(this.api,this.Xa,this.layoutId,this.yb,this.B,!1),c.Ea(this.D),c.init(vH("ad-preview"),a,this.macros),CL(c),g.J(this,c),this.i=c);null==this.i&&g.Ty(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new I1(this.api,this.Xa,this.layoutId,this.yb),c.Ea(this.submitButton),c.init(vH("survey-submit"),a,this.macros),g.J(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new JL(this.api,this.Xa,this.layoutId,this.yb,!0),c.Ea(this.C),c.init(vH("simple-ad-badge"),a,this.macros),g.J(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new OL(this.api,this.Xa,this.layoutId,this.yb,this.B,void 0),
c.Ea(this.C),c.init(vH("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new tL(this.api,this.Xa,this.layoutId,this.yb,this.element),g.J(this,a),a.Ea(this.C),a.init(vH("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()};
J1.prototype.clear=function(){this.hide()};g.w(K1,SK);K1.prototype.init=function(a,b,c){SK.prototype.init.call(this,a,b,c);ALa(this)};
K1.prototype.show=function(){this.C=g.Qa();SK.prototype.show.call(this)};
K1.prototype.oN=function(){};g.w(L1,K1);g.k=L1.prototype;g.k.init=function(a,b,c){var d=this;K1.prototype.init.call(this,a,b,c);b.questionText&&g.Gg(this.questionText,g.uA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&xLa(d,e.instreamSurveyAdAnswerRenderer,c)});
this.K=new Set(this.u.map(function(e){return e.i.i}));
(a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&BLa(this,a,c);b.surveyAdQuestionCommon&&zLa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.oN=function(){M1(this,!1);this.D.u.subscribe("l",this.RV,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.i?CLa(this):this.K.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),M1(this,!0))};
g.k.RV=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.i&&e.i.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d;
d=g.nc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=qi(e.baseUrl,b));return e});
return d});
c&&c.forEach(function(d){return a.Xa.executeCommand(d,a.macros)})};
g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(N1,K1);N1.prototype.init=function(a,b,c){var d=this;K1.prototype.init.call(this,a,b,c);b.questionText&&g.Gg(this.questionText,g.uA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&xLa(d,e.instreamSurveyAdAnswerRenderer,c)});
b.surveyAdQuestionCommon?zLa(this,b.surveyAdQuestionCommon):g.Ty(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
N1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(O1,SK);
O1.prototype.init=function(a,b,c){var d=this;SK.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new N1(d.api,d.Xa,d.layoutId,d.yb,d.Eg,d.Ki,d.i);f.Ea(d.u);f.init(vH("survey-question-single-select"),e,c);d.questions.push(f);g.J(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new L1(d.api,d.Xa,d.layoutId,d.yb,d.Eg,
d.Ki,d.i),f.Ea(d.u),f.init(vH("survey-question-multi-select"),e,c),d.questions.push(f),g.J(d,f))});
this.show()};
O1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(P1,SK);
P1.prototype.init=function(a,b,c){var d=this;SK.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Ty(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){ELa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape);
ELa(this.logoImage,b.brandImage);g.Gg(this.text,g.uA(b.text));this.actionButton=new fL(this.api,this.Xa,this.layoutId,this.yb,["ytp-ad-survey-interstitial-action-button"]);g.J(this,this.actionButton);this.actionButton.Ea(this.u);this.actionButton.init(vH("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=this.api.V().N("html5_use_normal_timer_for_survey");this.i=this.Eg?new KL(this.api,1E3*a):new LL(1E3*a,void 0,f);this.i.subscribe("g",function(){d.transition.hide();
if(!d.Eg){for(var h=g.r(e),l=h.next();!l.done;l=h.next())d.Xa.executeCommand(l.value,c);d.Xa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}});
g.J(this,this.i);this.T(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.eG)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())d.Xa.executeCommand(m.value,d.macros)});
this.transition.show(100);if(!this.Eg&&b.impressionCommands)for(a=g.r(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Xa.executeCommand(f.value,c)}else g.Ty(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ty(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ty(Error("SurveyTextInterstitialRenderer has no button."));else g.Ty(Error("SurveyTextInterstitialRenderer has no text."));else g.Ty(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
P1.prototype.clear=function(){this.hide()};
P1.prototype.show=function(){FLa(!0);SK.prototype.show.call(this)};
P1.prototype.hide=function(){FLa(!1);SK.prototype.hide.call(this)};var UNa="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.w(Q1,pL);
Q1.prototype.C=function(a){var b,c=a.id,d=a.content,e=d.componentType;if(!UNa.includes(e))switch(a.actionType){case 1:a=this.K();var f=d instanceof jI||d instanceof tJ||d instanceof yJ?d.Eg:!1,h=d instanceof jI||d instanceof CJ||d instanceof tJ?d.Ki:!1,l=d instanceof tJ&&(null===(b=d.renderer)||void 0===b?void 0:b.controlWithFixEnabled);var m=this.api,n=d.layoutId,p=d.yb,q=d instanceof yJ?d.eG:!1;p=void 0===p?{}:p;f=void 0===f?!1:f;h=void 0===h?!1:h;q=void 0===q?!1:q;l=void 0===l?!1:l;switch(e){case "invideo-overlay":a=
new y1(m,a,n,p);break;case "player-overlay":a=new VL(m,a,n,p,new QN(m),h);break;case "survey":a=new O1(m,a,n,p,f,h,l);break;case "ad-action-interstitial":a=new x1(m,a,n,p,f,h);break;case "survey-interstitial":a=new P1(m,a,n,p,f,q);break;case "ad-message":a=new E1(m,a,n,p,new QN(m,1));break;case "player-underlay":a=new F1(m,a,n,p);break;default:a=null}if(!a){g.Bz(Error("No UI component returned from ComponentFactory for type: "+e));break}dc(this.u,c)?g.Bz(Error("Ad UI component already registered: "+
c)):this.u[c]=a;a.bind(d);d instanceof c1?this.B?this.B.append(a.PF):g.Ty(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(a.PF);break;case 2:c=GLa(this,a);if(null==c)break;c.bind(d);break;case 3:d=GLa(this,a),null!=d&&(g.oe(d),dc(this.u,c)?(d=this.u,c in d&&delete d[c]):g.Bz(Error("Ad UI component does not exist: "+c)))}};
Q1.prototype.xa=function(){g.pe(Object.values(this.u));this.u={};pL.prototype.xa.call(this)};g.w(R1,g.ZM);g.k=R1.prototype;g.k.create=function(){if(kZ(t1(this.i).Rf))try{HLa(this),this.load(),this.created=!0,HLa(this)}catch(a){S(a instanceof Error?a:String(a))}else this.load(),this.created=!0};
g.k.load=function(){g.ZM.prototype.load.call(this);var a=t1(this.i).Rf;jja(a.I.V().N("html5_reduce_ecatcher_errors"));if(kZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){S(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.tf()||!1;a=LLa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.ip||!1;h=1E3*this.player.getDuration(1);this.Xa=new HK(this,this,this.player,this.Vo,b,t1(this.i));nsa(this.Xa,a.Pu);this.i.i.Un.ih(f,h,c,a.lA,a.lA.concat(a.Pu),e,d);IK(this.Xa)};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Un.yj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.ZM.prototype.unload.call(this);jja(!1);if(kZ(t1(this.i).Rf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){S(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Xa){var a=this.Xa;this.Xa=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Vo.reset()};
g.k.Ji=function(){return!1};
g.k.fG=function(){return null===this.Xa?!1:this.Xa.fG()};
g.k.Lk=function(a){null!==this.Xa&&this.Xa.Lk(a)};
g.k.getAdState=function(){return this.Xa?this.Xa.oz:-1};
g.k.getOptions=function(){return Object.values(TNa)};
g.k.jf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=NH(this.player),Object.assign(b,a.faa),this.Xa&&!b.AD_CPN&&(b.AD_CPN=this.Xa.Qy()),a=g.xq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b<a.length;b++){var c=a[b];if(c.adPlacementRenderer&&c.adPlacementRenderer.renderer&&c.adPlacementRenderer.renderer.plaShelfRenderer){a=!1;break a}}a=!0}else a=!1;return a;case "onAboutThisAdPopupClosed":this.gm(b);
break;default:return null}};
g.k.gm=function(a){a.isMuted&&dsa(this.Xa,t1(this.i).eh,t1(this.i).Ai,a.layoutId);this.To&&this.To.gm()};
g.k.Jk=function(){return null===this.Xa?!1:this.Xa.Jk()};g.YM("ad",R1);var NLa=g.Kc&&MLa();g.w(g.U1,g.U);g.U1.prototype.onClick=function(){this.I.Oa("onExpandMiniplayer")};})(_yt_player);
