var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* SPDX-License-Identifier: Apache-2.0 */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin 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. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* 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. */ 'use strict';var da,baa,caa,oa,daa,pa,eaa,ra,va,wa,za,gaa,haa,Ga,Ia,iaa,jaa,Ka,kaa,Ma,Na,Oa,laa,Ra,Ya,$a,naa,oaa,qb,paa,sb,tb,ub,xb,yb,qaa,raa,Cb,taa,uaa,Nb,vaa,Tb,waa,xaa,Qb,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,dc,Faa,gc,jc,lc,xc,yc,zc,Ac,Naa,Oaa,Bc,Ic,Cc,Paa,Qaa,Raa,Saa,Jc,Taa,Kc,Lc,Mc,Uaa,Nc,Oc,Waa,Yaa,Rc,Tc,aba,Uc,Yc,bba,cba,id,dba,pd,rd,gba,hba,td,mba,Ad,jba,lba,wd,vd,Ed,Fd,nba,Gd,oba,Id,Nd,pba,Od,Pd,Qd,Vd,$d,ce,fe,me,oe,Bba,zba,Aba,Dba,Eba,re,we,xe,Hba,ye,Iba,Jba,Kba,Mba,Lba,He,Je,Nba,Ne,Re,Ue,Oba,Xe, Ye,af,bf,Pba,Qba,Rba,Sba,mf,nf,yf,Vba,Xba,Wba,zf,Bf,Yba,Af,Hf,lf,$ba,Zba,Uf,Tf,cf,Wf,aca,Yf,Zf,fg,bca,dca,fca,lg,mg,ng,jca,lca,pg,mca,og,qca,jg,hca,sca,pca,nca,oca,tca,rca,qg,kca,Eg,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Gg,Hg,Fca,Gca,Hca,Ica,Ig,Jca,Nca,Oca,Pca,Uca,Mg,Tca,Qca,Wca,Yca,$ca,Og,Pg,cda,ah,bh,eda,dh,ch,fda,eh,gda,fh,gh,kh,hda,lh,ida,jda,mh,hh,nh,Bh,oh,Ch,Dh,Eh,Fh,Gh,kda,mda,Ih,nda,oda,Jh,Kh,Nh,qda,rda,tda,uda,wda,Oh,xda,Ph,yda,Qh,zda,Rh,Sh,Ada,Th,Uh,Wh,Xh,Yh,$h,Bda,ti,Cda,Eda,ui,vi,xi, yi,Fda,Gda,zi,Hda,Ida,Bi,Ci,Jda,Kda,Lda,Mda,Di,Ei,Fi,Gi,Hi,Ii,Ji,Pda,Mi,ej,Qda,Rda,Li,fj,Oda,Ki,gj,Sda,Tda,hj,ij,jj,kj,mj,oj,qj,P,rj,Wda,tj,uj,$da,Zda,Xda,Yda,aea,cea,bea,dea,Lj,Kj,fea,eea,Mj,Oj,Jj,hea,Qj,iea,Pj,Tj,Sj,Uj,Xj,bk,lea,mea,Zj,nea,oea,ck,dk,ek,gk,fk,pea,qea,ik,jk,Ek,hk,Fk,kea,rea,sea,Hk,Ik,Jk,Yj,ak,tea,Kk,Lk,uea,Mk,Nk,Ok,Pk,vea,Qk,wea,Rk,Sk,xea,yea,zea,Tk,Uk,Vk,Wk,Xk,Yk,Q,Zk,$k,S,al,T,Aea,bl,Dea,cl,gl,Gea,hl,Iea,Jea,Fea,Kea,Jl,Oea,Pea,Qea,Kl,Sea,Tea,dl,Rea,Uea,Nea,Nl,Ol,Pl,Ql,Rl,Sl,Wea, Xea,Tl,Yea,Ul,Vl,Wl,Xl,Yl,Zl,$l,$ea,afa,cfa,bfa,dfa,cm,dm,em,ffa,gfa,hfa,Hm,Im,Jm,Km,Nm,Om,Pm,ifa,Qm,kfa,Tm,Um,Vm,Wm,Xm,Ym,lfa,an,nfa,$m,Zm,mfa,ofa,pfa,cn,qfa,bn,dn,en,fn,gn,hn,jn,kn,rfa,ln,sfa,nn,tfa,wfa,on,pn,qn,rn,yfa,go,zfa,ho,io,jo,Afa,Bfa,mo,Cfa,no,oo,Ffa,Hfa,Jfa,Ifa,Kfa,qo,Lfa,to,xo,yo,zo,Ofa,Pfa,Qfa,Ao,Sfa,Bo,Tfa,Ufa,Xfa,Wfa,Vfa,$fa,Yfa,Do,Fo,Go,Ho,Eo,Io,Jo,Ko,Mo,aga,No,Oo,dga,cga,ega,fga,gga,iga,Po,Qo,Ro,So,To,Uo,Vo,Wo,jga,Xo,Yo,Zo,$o,ap,nga,kga,dp,mga,ep,lga,cp,bp,gp,pga,dq,hp,iq,jq,lq, sga,kq,oq,tga,pq,qga,wga,xga,yga,sq,tq,uq,zga,vq,wq,xq,yq,Aga,zq,Aq,Bq,Bga,Cga,Cq,Dga,Dq,Gga,Hga,Iga,Jga,Ega,Eq,Fq,Gq,Hq,Lga,Mga,Kga,Iq,Nga,Oga,Pga,Mq,Qga,Nq,Oq,Sga,Tga,Pq,Uga,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Vga,Yq,Zq,Wga,Yga,$q,Xga,Zga,$ga,aha,ar,br,Cr,Dr,Er,Fr,Gr,bha,Hr,Ir,Jr,cha,eha,fha,Lr,Nr,Mr,Pr,Qr,Rr,hha,iha,Sr,Tr,Ur,kha,lha,oha,mha,pha,tha,Vr,sha,qha,Wr,Xr,uha,Yr,vha,Zr,xha,wha,yha,zha,cs,ds,Aha,Bha,Cha,es,fs,Dha,gs,Eha,Fha,Hha,Lha,hs,Mha,Nha,Oha,Pha,Qha,ks,Rha,Sha,Tha,rs,qs,ps,Uha,Vha,Wha,ts,us, vs,Yha,As,Bs,Cs,Zha,Ds,aia,bia,cia,Es,Gs,Hs,Ms,Ns,Qs,eia,gia,fia,hia,iia,Ws,jia,kia,Xs,lia,mia,nia,oia,at,Zs,bt,ct,dt,pia,qia,ria,et,pt,qt,sia,tia,uia,rt,via,tt,ut,wia,xia,yia,zia,Aia,Bia,vt,wt,xt,At,Eia,Bt,Ct,Fia,Dia,zt,Gia,Dt,Et,Ft,Ht,Gt,Hia,Iia,Jia,It,Lia,Jt,Nia,Oia,Pia,Qia,Ria,Sia,Tia,Uia,Mt,Nt,Ot,Wia,Via,Xia,Yia,Qt,Zia,Rt,$ia,aja,St,Tt,Ut,bja,Vt,Wt,cja,Xt,Yt,Zt,$t,au,bu,cu,du,dja,eja,fja,gja,eu,hja,jja,ija,gu,hu,lja,kja,oja,rja,qja,iu,sja,tja,uja,wja,vja,xja,ju,yja,zja,lu,Aja,Bja,Cja,Dja,mu, Eja,nu,Fja,ou,pu,Hja,qu,Ija,ru,tu,Jja,Kja,uu,wu,Mja,xu,Lja,Nja,Oja,Pja,Rja,yu,Sja,Bu,Cu,Uja,Vja,Yja,Zja,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,cka,bka,dka,fka,eka,hka,aka,gka,$ja,Qu,Ru,jka,kka,lka,Vu,Wu,Xu,Su,nka,Yu,ika,pka,qka,oka,Zu,$u,av,bv,rka,mka,ska,cv,tka,uka,vka,wka,xka,Aka,Bka,Cka,Dka,Eka,Hka,fv,Jka,ev,hv,Kka,iv,kv,vv,Lka,Mka,Nka,Cv,Oka,Pka,Lv,Qka,Ska,Mv,Tka,Uka,$ka,Wka,Pv,Qv,Rv,Tv,Uv,fla,Vv,Wv,Xv,hla,$v,ila,jla,aw,lla,cw,dw,ew,fw,mla,gw,iw,jw,kw,lw,nla,nw,ow,pw,qw,rw,tw,ola,pla,qla,rla, sla,tla,uw,ula,Bw,vla,wla,xla,Cw,Ew,Fw,Gw,Jw,Kw,Lw,zla,Ow,Pw,Qw,Ala,Bla,Rw,Cla,Dla,Tw,Lla,Mla,Nla,Uw,Ola,Pla,Sla,Ww,Ula,Tla,Yw,Vla,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,mx,nx,ox,px,qx,Wla,rx,Xla,Yla,Zla,$la,sx,tx,ama,bma,cma,dma,ema,fma,ux,gma,vx,hma,ima,jma,kma,lma,mma,nma,oma,pma,qma,wx,rma,sma,xx,yx,zx,Ax,Bx,tma,Cx,Dx,uma,Ex,Fx,vma,Gx,Hx,Ix,wma,xma,Jx,yma,zma,Ama,Bma,Cma,Kx,Dma,Ema,Fma,Lx,Gma,Hma,Ima,Mx,Jma,Nx,Kma,Ox,Wx,Xx,Yx,Zx,$x,Lma,Mma,ay,Nma,by,cy,dy,ey,fy,gy,hy,iy,Oma,Pma,Qma,Rma,Sma,jy, Tma,Uma,Vma,Wma,ky,Xma,Yma,Zma,ly,my,ny,oy,py,qy,$ma,ry,sy,ty,uy,ana,vy,wy,yy,bna,cna,zy,Ay,By,Cy,Dy,Ey,Fy,Gy,dna,ena,Hy,fna,gna,hna,Iy,ina,jna,kna,Jy,lna,Ky,Ly,My,mna,Ny,nna,Oy,Py,ona,Qy,pna,Ry,qna,rna,sna,Sy,tna,Ty,Uy,Vy,una,Wy,vna,Xy,Yy,Zy,$y,cz,dz,ez,wna,fz,gz,hz,xna,iz,jz,kz,lz,yna,mz,nz,oz,pz,qz,zna,rz,Ana,sz,Bna,Cna,tz,uz,Dna,vz,wz,xz,Ena,Fna,Gna,Hna,yz,zz,Ina,Az,Jna,Kna,Lna,Mna,Nna,Bz,Ona,Pna,Qna,Cz,Dz,Rna,Ez,Sna,Tna,Fz,Una,Vna,Wna,Xna,Gz,Hz,Iz,Jz,Yna,Zna,Kz,$na,aoa,boa,coa,Lz,doa,eoa,foa, goa,hoa,ioa,joa,koa,loa,Mz,moa,Nz,Oz,noa,ooa,Pz,poa,qoa,roa,soa,toa,uoa,voa,woa,Qz,xoa,yoa,zoa,Rz,Aoa,Boa,Sz,Tz,Coa,Doa,Uz,Vz,Eoa,Wz,Foa,Xz,Goa,Yz,Zz,Hoa,Ioa,$z,Joa,Koa,aA,Loa,Moa,Noa,Ooa,Poa,Qoa,Roa,Soa,Toa,Uoa,bA,Voa,Woa,cA,Xoa,dA,eA,Yoa,Zoa,fA,$oa,apa,gA,bpa,hA,cpa,iA,jA,kA,lA,dpa,mA,nA,oA,pA,epa,qA,rA,fpa,gpa,sA,tA,uA,hpa,vA,ipa,jpa,kpa,wA,lpa,mpa,npa,xA,opa,ppa,yA,zA,qpa,AA,rpa,spa,BA,tpa,CA,upa,vpa,wpa,EA,GA,xpa,KA,LA,MA,NA,Bpa,PA,QA,Cpa,RA,SA,TA,Dpa,ypa,UA,Gpa,Jpa,VA,Lpa,Kpa,Mpa,Ppa,Opa,Spa, Tpa,Upa,Vpa,Xpa,bqa,Ypa,$pa,aqa,eB,dB,cqa,gB,hB,iB,eqa,fqa,gqa,hqa,iqa,jqa,oB,kqa,qB,lqa,mqa,rB,oqa,pqa,qqa,vB,rqa,sqa,wB,xB,yB,zB,uqa,AB,wqa,vqa,yqa,GB,zqa,Dqa,Bqa,Cqa,Eqa,Fqa,Hqa,Iqa,Gqa,Lqa,IB,Mqa,LB,Nqa,Oqa,KB,MB,Qqa,Rqa,Vqa,Uqa,Wqa,QB,RB,SB,TB,VB,Yqa,$qa,ira,jra,aC,kra,lra,mra,pra,qra,rra,ora,sra,ura,wra,hC,xra,kC,iC,nC,oC,zra,Cra,tC,uC,vC,wC,Gra,yC,Ira,Jra,Kra,BC,Mra,Nra,Lra,Ora,Pra,DC,Qra,Rra,Sra,Ura,GC,Xra,Yra,Vra,Zra,$ra,bsa,asa,KC,Wra,esa,fsa,PC,dsa,gsa,hsa,QC,RC,isa,ksa,TC,lsa,msa,osa, qsa,WC,rsa,ssa,tsa,usa,vsa,wsa,xsa,ysa,YC,zsa,$C,Bsa,Csa,Dsa,Esa,Fsa,Gsa,eD,Jsa,Msa,fD,Nsa,Psa,Isa,Qsa,Rsa,Ssa,Ksa,Lsa,aD,Hsa,dD,Osa,cD,bD,Tsa,Usa,Vsa,Wsa,Xsa,Ysa,dta,Zsa,iD,jD,kD,gta,ita,hta,eta,jta,lta,nD,nta,qta,qD,pta,Ata,rta,zta,uD,Bta,Eta,vD,tD,Cta,Dta,Fta,xD,Hta,Ita,Jta,Kta,Lta,Mta,Nta,Gta,Pta,Qta,Rta,Sta,Tta,Wta,zD,Yta,AD,BD,CD,Zta,$ta,ED,FD,cua,bua,eua,dua,gua,iua,hua,jua,nua,lua,QD,oua,qua,PD,pua,RD,SD,rua,sua,tua,UD,vua,XD,WD,YD,ZD,$D,xua,yua,bE,zua,cE,Bua,Cua,Dua,Fua,Gua,Eua,fE,Iua,Hua, Jua,gE,Lua,hE,Nua,iE,Pua,jE,Oua,kE,lE,Sua,Yua,$ua,Xua,Wua,Zua,oE,ava,iva,eva,fva,gva,Rua,rva,tva,qva,wva,pva,nE,vva,dva,hva,sva,bva,Uua,Tua,Vua,qE,ova,xE,Gva,Fva,Kva,Nva,Mva,Pva,zE,AE,Rva,Sva,Tva,Uva,Vva,Wva,Xva,CE,Zva,$va,awa,bwa,cwa,dwa,ewa,gwa,hwa,GE,jwa,lwa,kwa,mwa,owa,pwa,twa,rwa,vwa,uwa,xwa,wwa,HE,Bra,Fwa,Cwa,Hwa,Mwa,Jwa,Nwa,Owa,Pwa,Vwa,Zwa,$wa,bxa,axa,cxa,TE,exa,SE,Ywa,Xwa,PE,$E,ZE,cF,dF,fF,gxa,gF,jF,kF,hxa,ixa,kxa,lxa,mxa,nxa,oxa,pxa,qxa,rxa,sxa,txa,uxa,qF,vxa,wxa,rF,yxa,zxa,Axa,Bxa,Cxa,Fxa, Gxa,tF,uF,Hxa,vF,Ixa,xF,Kxa,Jxa,zF,AF,BF,CF,Lxa,DF,Mxa,Nxa,Oxa,EF,Pxa,Txa,Qxa,Sxa,Rxa,FF,GF,Uxa,Vxa,Wxa,Xxa,HF,Zxa,bya,aya,IF,cya,JF,KF,LF,NF,OF,dya,eya,fya,PF,gya,hya,jya,kya,iya,lya,mya,QF,RF,UF,WF,oya,nya,YF,pya,qya,ZF,$F,aG,bG,eG,sya,fG,tya,gG,hG,iG,uya,vya,lG,wya,mG,zya,Bya,Dya,Fya,Hya,Jya,oG,Kya,pG,Lya,Oya,Pya,Qya,rG,sG,Sya,Tya,uG,vG,wG,Vya,xG,yG,zG,Wya,AG,Uya,Xya,BG,Zya,Yya,CG,aza,DG,IG,KG,bza,cza,MG,NG,PG,aH,$G,eza,OG,hza,iza,lza,mza,nza,pza,kza,qza,rza,sza,bH,gza,jza,cH,wza,xza,gH,yza,dH, eH,zza,hH,Bza,Eza,Cza,iH,Fza,jH,Hza,kH,Nza,Lza,Iza,Kza,Jza,mH,nH,oH,pH,qH,rH,tH,Pza,Vza,vH,xH,wH,Wza,$za,Xza,Zza,Yza,aAa,eAa,gAa,fAa,hAa,iAa,jAa,lAa,kAa,mAa,yH,nAa,oAa,pAa,qAa,rAa,tAa,uAa,zH,sAa,AH,xAa,zAa,BH,CH,DH,AAa,BAa,EH,FH,CAa,DAa,EAa,FAa,GAa,HAa,GH,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,IAa,JAa,RH,KAa,LAa,MAa,NAa,SH,TH,UH,VH,OAa,WH,XH,YH,PAa,ZH,$H,aI,bI,cI,dI,eI,fI,gI,QAa,hI,iI,jI,RAa,kI,lI,mI,nI,SAa,oI,pI,TAa,qI,UAa,VAa,rI,WAa,sI,uI,vI,XAa,wI,xI,yI,tI,zI,AI,BI,ZAa,aBa,bBa,CI,cBa,DI,dBa,FI,eBa,fBa, GI,HI,gBa,jBa,kBa,lBa,mBa,nBa,oBa,hBa,QI,qBa,rBa,sBa,tBa,iBa,vBa,II,wBa,xBa,RI,yBa,SI,KI,zBa,JI,uBa,TI,CBa,BBa,LI,MI,VI,UI,DBa,WI,EBa,XI,GBa,FBa,YI,ZI,$I,aJ,bJ,IBa,JBa,LBa,MBa,dJ,eJ,PBa,fJ,TBa,VBa,XBa,YBa,hJ,$Ba,aCa,cCa,dCa,eCa,fCa,gCa,hCa,mJ,nJ,iCa,kCa,jCa,lCa,mCa,nCa,rJ,tJ,uJ,vJ,wJ,xJ,oCa,yJ,zJ,sJ,qCa,BJ,CJ,DJ,rCa,pCa,tCa,uCa,vCa,wCa,xCa,yCa,zCa,ACa,BCa,CCa,DCa,ECa,FCa,GCa,HCa,ICa,JCa,KCa,LCa,MCa,NCa,OCa,PCa,QCa,RCa,SCa,EJ,FJ,TCa,GJ,HJ,UCa,VCa,WCa,XCa,YCa,ZCa,$Ca,IJ,aDa,bDa,cDa,dDa,JJ,eDa,fDa,gDa, hDa,iDa,KJ,jDa,kDa,lDa,LJ,mDa,OJ,oDa,PJ,QJ,pDa,qDa,rDa,sDa,tDa,uDa,vDa,TJ,UJ,xDa,yDa,zDa,ADa,wDa,BDa,CDa,VJ,WJ,XJ,YJ,FDa,ZJ,$J,bK,GDa,HDa,IDa,dK,fK,JDa,jK,kK,KDa,LDa,lK,MDa,mK,NDa,oK,pK,qK,ODa,PDa,QDa,rK,hK,sK,tK,uK,RDa,vK,wK,xK,SDa,yK,zK,AK,BK,CK,DK,EK,FK,GK,UDa,VDa,WDa,XDa,LK,HK,MK,YDa,ZDa,$Da,aEa,NK,OK,bEa,cEa,dEa,JK,eEa,fEa,PK,gEa,iEa,jEa,RK,SK,TK,UK,VK,mEa,WK,YK,ZK,XK,nEa,oEa,$K,aL,bL,pEa,dL,rEa,eL,fL,gL,tEa,uEa,sEa,vEa,hL,wEa,yEa,kL,AEa,BEa,DEa,lL,CEa,EEa,FEa,GEa,HEa,JEa,cL,IEa,LEa,KEa,mL,MEa, nL,OEa,oL,NEa,pL,PEa,REa,SEa,rL,TEa,UEa,WEa,VEa,XEa,YEa,ZEa,sL,aFa,bFa,cFa,eFa,dFa,fFa,gFa,iFa,hFa,jFa,kFa,lFa,mFa,nFa,oFa,pFa,qFa,rFa,sFa,tFa,uFa,vFa,wFa,xFa,yFa,zFa,wL,AFa,xL,yL,CFa,DFa,zL,EFa,AL,FFa,BL,GFa,CL,HFa,IFa,JFa,KFa,DL,LFa,MFa,NFa,EL,FL,GL,HL,IL,OFa,JL,KL,LL,PFa,ML,QFa,RFa,SFa,TFa,NL,UFa,OL,VFa,PL,QL,KBa,WFa,XFa,YFa,ZFa,$Fa,RL,SL,TL,UL,VL,WL,XL,YL,ZL,$L,aM,dGa,eGa,fGa,gGa,hGa,eM,jM,jGa,oGa,tGa,pGa,vGa,wGa,uGa,yGa,zGa,AGa,sM,DGa,FGa,IGa,JGa,KGa,uM,MGa,NGa,RGa,vM,SGa,OGa,TGa,wM,UGa,XGa, WGa,aHa,YGa,xM,yM,gHa,hHa,lHa,kHa,jHa,pHa,oHa,rHa,sHa,vHa,tHa,uHa,iHa,wHa,xHa,AM,nHa,yHa,BM,mHa,zHa,AHa,DHa,GHa,EHa,JHa,RHa,QHa,KHa,SHa,MHa,NHa,LHa,WHa,YHa,$Ha,dIa,gIa,hIa,jIa,lIa,nIa,mIa,vIa,pIa,oIa,wIa,zIa,AIa,BIa,CIa,HM,EGa,FIa,DIa,JM,HIa,IIa,KIa,MIa,NIa,LIa,MM,OIa,NM,OM,oJ,PM,CGa,RM,PIa,QIa,RIa,SM,SIa,TIa,UIa,TM,UM,VIa,VM,WM,XM,YM,ZM,$M,WIa,XIa,aN,YIa,bN,qL,cN,dN,ZIa,eN,$Ia,aJa,GGa,JIa,bJa,fN,pJ,cJ,CM,dJa,eJa,gN,fHa,zM,fJa,IM,GIa,cIa,bIa,CHa,DM,eIa,iIa,kIa,bHa,xIa,gJa,THa,OHa,hN,HGa,iJa,hJa,BHa, fIa,jJa,yIa,EM,cHa,eHa,VGa,aIa,ZHa,IHa,FHa,QGa,PGa,LGa,VHa,PHa,qIa,ZGa,$Ga,tIa,uIa,rIa,sIa,XHa,mJa,kJa,iN,lJa,jN,nJa,kN,lN,rN,pJa,tN,rJa,sJa,tJa,uJa,vJa,wJa,xJa,yJa,vN,yN,zJa,AJa,CJa,BJa,DJa,EJa,FJa,GJa,HJa,IJa,AN,BN,LJa,CN,DN,MJa,NJa,OJa,PJa,EN,FN,GN,QJa,RJa,HN,JN,NN,SJa,ON,PN,QN,RN,SN,TN,UN,VN,WN,XN,YN,TJa,UJa,ZN,$N,hO,iO,jO,kO,VJa,WJa,lO,pO,ZJa,$Ja,qO,bKa,aKa,cKa,dKa,sO,tO,uO,Y,fKa,vO,kKa,oKa,pKa,qKa,zKa,CKa,HKa,IKa,fLa,gLa,hLa,JKa,KKa,QKa,mLa,UKa,VKa,rLa,pLa,tLa,uLa,qLa,vLa,xMa,CLa,yMa,DLa,ELa, EO,AMa,CMa,EMa,DMa,BMa,JLa,$La,aMa,IMa,KMa,cMa,dMa,fMa,gMa,hMa,RMa,jMa,mMa,tMa,$Ma,VMa,WMa,bNa,eNa,dNa,fNa,gNa,oNa,hNa,HO,lNa,uNa,vNa,wNa,xNa,yNa,BNa,GNa,jOa,iOa,LO,MO,NO,OO,PO,QO,qOa,SO,RO,sOa,oOa,pOa,tOa,rOa,TO,uOa,vOa,UO,wOa,Ara,yOa,xOa,AOa,COa,EOa,FOa,DOa,GOa,LOa,YO,MOa,NOa,OOa,POa,QOa,ZO,ROa,SOa,TOa,UOa,VOa,aPa,dPa,ePa,bPa,$O,fPa,cPa,gPa,XOa,hPa,iPa,jPa,ZOa,nPa,mPa,lPa,kPa,oPa,pPa,YOa,qPa,rPa,$Oa,sPa,wPa,tPa,uPa,vPa,APa,yPa,zPa,BPa,CPa,EPa,DPa,HPa,FPa,IPa,GPa,JPa,KPa,LPa,MPa,NPa,OPa,PPa,QPa, RPa,SPa,UPa,VPa,WPa,TPa,XPa,YPa,aQa,bP,bQa,eP,gP,cQa,hP,iP,dQa,hQa,jQa,iQa,lQa,tQa,uQa,kP,kQa,gQa,fQa,eQa,pP,lP,oP,uP,vP,xQa,yQa,wP,tP,CQa,zQa,AQa,DQa,xP,yP,FQa,GQa,AP,BP,CP,DP,EP,HQa,IQa,JQa,FP,GP,IP,LQa,MQa,HP,NQa,QQa,RQa,JP,SQa,MP,TQa,NP,PP,VQa,OP,QP,WQa,YQa,ZQa,$Qa,SP,TP,YP,cRa,VP,ZP,aQ,dRa,bQ,XP,$P,eRa,cQ,fRa,dQ,gRa,UP,WP,aRa,bRa,eQ,hRa,iRa,jRa,kRa,lRa,mRa,fQ,gQ,oRa,nRa,pRa,qRa,rRa,sRa,hQ,iQ,jQ,kQ,tRa,lQ,mQ,uRa,nQ,vRa,oQ,pQ,qQ,wRa,xRa,yRa,zRa,ARa,rQ,BRa,CRa,DRa,ERa,FRa,GRa,sQ,HRa,tQ,JRa,KRa, uQ,LRa,vQ,wQ,MRa,NRa,xQ,ORa,PRa,TRa,URa,QRa,RRa,SRa,VRa,yQ,zQ,AQ,WRa,XRa,BQ,CQ,YRa,DQ,ZRa,aSa,$Ra,EQ,bSa,cSa,dSa,eSa,fSa,gSa,iSa,jSa,FQ,kSa,mSa,oSa,nSa,IQ,uSa,rQa,mP,vSa,wSa,xSa,ySa,zSa,ASa,jP,HQ,BSa,JQ,GSa,HSa,ISa,JSa,KQ,NSa,KSa,LSa,PSa,QSa,RSa,SSa,OSa,TSa,LQ,MQ,NQ,USa,VSa,OQ,WSa,XSa,YSa,PQ,ESa,aTa,bTa,$Sa,TQ,dTa,sQa,mQa,fTa,UQ,WQ,XQ,YQ,ZQ,$Q,VQ,gTa,iTa,cR,lTa,jTa,nTa,oTa,mTa,kTa,pTa,qTa,rTa,iR,sTa,tTa,vTa,wTa,wQa,jR,xTa,ATa,qP,BTa,CTa,DTa,nP,nQa,pQa,qQa,kR,lR,mR,nR,ETa,FTa,oR,GTa,pR,qR,HTa,rR,ITa, sR,JTa,KTa,tR,uR,vR,MTa,NTa,wR,OTa,LTa,xR,PTa,QTa,STa,UTa,TTa,RTa,gUa,dUa,jUa,OR,PR,VTa,eUa,OI,MR,SR,kUa,WR,mUa,DR,YR,CR,nUa,LR,aS,bS,pUa,qUa,rUa,sUa,tUa,uUa,vUa,cS,wUa,BUa,AUa,xUa,zUa,yUa,dS,CUa,eS,DUa,EUa,GUa,HUa,IUa,NUa,jS,kS,QUa,lS,mS,RUa,UUa,VUa,WUa,XUa,nS,ZUa,cVa,dVa,kVa,nVa,hVa,iVa,pVa,wS,qVa,sVa,rVa,tVa,yS,BS,uVa,xS,vVa,CS,wVa,AVa,xVa,DVa,zVa,VVa,dWa,VS,eWa,gWa,QVa,JS,fWa,OS,WS,OVa,iWa,hWa,XS,GS,RVa,kWa,lWa,mWa,oWa,jWa,ZS,nWa,rWa,sWa,qWa,aT,uWa,FS,LS,pWa,WVa,yVa,$Va,gT,MS,mT,TS,oT,pT,HWa, IWa,US,JWa,rT,KWa,NS,LWa,PVa,MWa,zWa,KS,HVa,NWa,FVa,EVa,BVa,uT,PWa,YWa,$Wa,aXa,yT,AT,BT,zT,DT,bXa,cXa,ET,eXa,FT,gXa,hXa,fXa,iXa,nXa,lXa,pXa,rXa,sXa,uXa,tXa,LT,vXa,yXa,zXa,WT,XT,BXa,$T,CXa,cU,dU,eU,fU,DXa,gU,EXa,IXa,hU,iU,JXa,KXa,MXa,LXa,NXa,OXa,PXa,jU,kU,QXa,SXa,TXa,UXa,oU,XXa,WXa,pU,qU,rU,YXa,ZXa,$Xa,aYa,bYa,sU,dYa,cYa,eYa,fYa,tU,uU,gYa,iYa,jYa,kYa,lYa,vU,mYa,wU,nYa,qYa,xU,oYa,tYa,rYa,sYa,pYa,yU,xYa,vYa,wYa,yYa,zU,zYa,AYa,BYa,DYa,CYa,AU,EYa,FYa,GYa,DU,BU,CU,HYa,IYa,EU,FU,JYa,KYa,LYa,NYa,MYa,LU,PYa, QYa,OYa,RYa,MU,SYa,NU,TYa,UYa,QU,VYa,WYa,TU,RU,XYa,UU,YYa,WU,XU,ZYa,VU,aZa,YU,$U,bZa,aV,bV,cV,cZa,fZa,eZa,eV,fV,gV,iZa,gZa,hZa,hV,jZa,nZa,lZa,kZa,mZa,iV,pZa,qZa,jV,kV,uZa,sZa,tZa,lV,wZa,rZa,xZa,mV,nV,yZa,zZa,AZa,oV,BZa,CZa,DZa,EZa,FZa,GZa,HZa,KZa,IZa,LZa,MZa,NZa,OZa,QZa,yV,zV,RZa,xV,UZa,VZa,BV,ZZa,$Za,a_a,b_a,c_a,YZa,WZa,CV,e_a,d_a,f_a,l_a,FV,o_a,r_a,q_a,p_a,j_a,k_a,g_a,h_a,m_a,GV,HV,t_a,QT,oXa,JV,u_a,w_a,v_a,n_a,y_a,z_a,A_a,LV,B_a,SV,D_a,E_a,F_a,H_a,G_a,I_a,TV,UV,J_a,M_a,N_a,WV,L_a,O_a,P_a,K_a,XV, $V,Q_a,R_a,ZV,S_a,T_a,U_a,V_a,X_a,W_a,Z_a,$_a,Y_a,c0a,a0a,cW,dW,eW,d0a,f0a,fW,e0a,g0a,i0a,h0a,j0a,gW,k0a,l0a,m0a,hW,iW,o0a,n0a,p0a,q0a,s0a,r0a,t0a,u0a,v0a,w0a,x0a,z0a,kW,jW,lW,A0a,B0a,y0a,G0a,H0a,I0a,L0a,K0a,J0a,M0a,N0a,mW,nW,O0a,P0a,Q0a,R0a,T0a,oW,qW,S0a,U0a,V0a,W0a,X0a,Y0a,sW,Z0a,$0a,c1a,tW,d1a,b1a,uW,vW,e1a,f1a,h1a,j1a,g1a,i1a,xW,k1a,m1a,n1a,p1a,q1a,yW,zW,r1a,l1a,t1a,s1a,AW,BW,CW,v1a,u1a,DW,EW,w1a,x1a,FW,y1a,z1a,A1a,GW,B1a,HW,C1a,IW,D1a,G1a,H1a,I1a,K1a,L1a,M1a,J1a,O1a,N1a,e2a,h2a,LW,j2a,i2a,f2a, g2a,k2a,l2a,MW,NW,m2a,n2a,o2a,p2a,q2a,r2a,t2a,u2a,C2a,x2a,y2a,v2a,E2a,TW,F2a,J2a,WW,K2a,G2a,SW,ZW,YW,UW,$W,N2a,P2a,O2a,aX,VW,RW,M2a,XW,H2a,L2a,R2a,OW,bX,S2a,T2a,I2a,cX,dX,U2a,eX,fX,gX,V2a,W2a,Y2a,Z2a,X2a,hX,iX,$2a,a3a,b3a,c3a,d3a,f3a,h3a,g3a,e3a,jX,j3a,i3a,kX,lX,k3a,m3a,n3a,mX,l3a,o3a,p3a,nX,q3a,oX,rX,qX,s3a,r3a,t3a,sX,tX,u3a,v3a,x3a,w3a,y3a,z3a,A3a,vX,B3a,C3a,D3a,E3a,F3a,G3a,I3a,J3a,K3a,H3a,L3a,M3a,N3a,O3a,P3a,zX,Q3a,AX,T3a,BX,V3a,CX,U3a,X3a,Y3a,W3a,DX,Z3a,b4a,d4a,f4a,j4a,p4a,q4a,r4a,s4a,IX,t4a, u4a,v4a,A4a,F4a,D4a,x4a,LX,C4a,w4a,E4a,H4a,I4a,G4a,NX,K4a,L4a,M4a,O4a,P4a,N4a,Q4a,$Ya,SX,TX,UX,R4a,WX,T4a,U4a,V4a,XX,W4a,X4a,Y4a,Z4a,$4a,a5a,S4a,b5a,YX,c5a,h5a,$X,i5a,bY,cY,j5a,dY,k5a,aY,l5a,m5a,t5a,hY,jY,v5a,kY,w5a,n5a,lY,y5a,z5a,B5a,mY,nY,C5a,u5a,oY,E5a,D5a,pY,r5a,fY,F5a,G5a,H5a,I5a,J5a,o5a,q5a,gY,M5a,N5a,P5a,O5a,rY,sY,tY,S5a,T5a,R5a,U5a,Q5a,qY,K5a,V5a,W5a,X5a,b6a,c6a,wY,L5a,e6a,i6a,yY,j6a,k6a,g6a,AY,l6a,m6a,d6a,n6a,h6a,o6a,BY,zY,p6a,r6a,q6a,xY,t6a,EY,u6a,CY,FY,DY,GY,v6a,w6a,x6a,A6a,z6a,C6a,D6a, B6a,JY,IY,F6a,G6a,H6a,I6a,J6a,L6a,K6a,M6a,LY,MY,N6a,NY,O6a,Q6a,T6a,R6a,S6a,TY,XY,V6a,YY,W6a,X6a,Y6a,ZY,$6a,a7a,b7a,Z6a,e7a,f7a,$Y,aZ,g7a,h7a,i7a,gVa,mVa,j7a,l7a,k7a,m7a,cZ,dZ,n7a,o7a,fZ,gZ,eZ,p7a,q7a,r7a,s7a,w7a,hZ,x7a,PY,z7a,A7a,B7a,C7a,D7a,E7a,F7a,jZ,G7a,kZ,H7a,lZ,J7a,K7a,mZ,L7a,M7a,N7a,O7a,P7a,Q7a,R7a,S7a,T7a,U7a,V7a,nZ,X7a,W7a,Z7a,$7a,oZ,pZ,qZ,rZ,sZ,tZ,uZ,a8a,vZ,b8a,c8a,h8a,k8a,l8a,m8a,n8a,zZ,AZ,j8a,g8a,o8a,xZ,d8a,q8a,wZ,yZ,e8a,f8a,BZ,r8a,s8a,i8a,p8a,t8a,u8a,y8a,v8a,z8a,A8a,w8a,x8a,B8a,C8a,D8a, F8a,E8a,CZ,K8a,I8a,J8a,G8a,L8a,DZ,H8a,EZ,FZ,M8a,N8a,O8a,GZ,Q8a,R8a,HZ,S8a,IZ,T8a,U8a,V8a,W8a,Y8a,Z8a,f9a,b9a,X8a,h9a,i9a,c9a,d9a,a9a,e9a,KZ,$8a,g9a,o9a,m9a,l9a,k9a,j9a,LZ,p9a,OY,q9a,MZ,NZ,r9a,s9a,t9a,OZ,u9a,VY,v9a,PZ,w9a,x9a,RY,SY,B9a,RZ,TZ,C9a,D9a,VZ,SZ,QZ,WZ,z9a,y9a,A9a,XZ,F9a,G9a,E9a,H9a,QY,I9a,UZ,J9a,K9a,L9a,M9a,YZ,N9a,O9a,c7a,d7a,ZZ,P9a,Q9a,R9a,S9a,$Z,W9a,T9a,X9a,Z9a,V9a,a$a,c$a,b$a,e$a,b_,e_,g$a,k$a,i$a,l$a,m$a,h$a,j$a,f$a,n$a,o$a,p$a,f_,q$a,I7a,r$a,s$a,g_,t$a,u$a,v$a,w$a,x$a,i_,E$a,D$a,n_, F$a,C$a,I$a,J$a,K$a,M$a,N$a,O$a,P$a,Q$a,R$a,T$a,U$a,V$a,S$a,q_,h_,W$a,X$a,o_,Z$a,L$a,p_,$$a,aab,dab,fab,eab,gab,bab,cab,kab,iab,lab,jab,mab,nab,hab,oab,pab,r_,qab,rab,sab,tab,wab,vab,uab,s_,xab,zab,Aab,Bab,w_,x_,Y7a,Cab,Dab,Gab,Fab,Eab,Hab,Jab,Kab,Iab,$9a,y_,Mab,Nab,Oab,Sab,Rab,Uab,Wab,n9a,t_,Qab,Pab,Vab,UY,JZ,a_,Zab,Yab,$ab,abb,bbb,cbb,yab,d_,c_,dbb,ebb,Y9a,fbb,Xab,d$a,A_,B_,hbb,C_,ibb,jbb,kbb,lbb,mbb,nbb,pbb,obb,rbb,sbb,wbb,tbb,vbb,xbb,E_,Bbb,zbb,Abb,Ebb,Fbb,Gbb,Hbb,Ibb,D_,Jbb,Dbb,ybb,F_,Kbb,ubb, Lbb,G_,Nbb,Obb,Pbb,Mbb,H_,Sbb,Rbb,Vbb,Ubb,Tbb,Wbb,Xbb,I_,Ybb,Zbb,ccb,$bb,acb,bcb,dcb,ecb,fcb,hcb,gcb,icb,jcb,kcb,mcb,ocb,ncb,pcb,lcb,qcb,scb,ucb,rcb,vcb,wcb,ycb,xcb,zcb,tcb,M_,Acb,Bcb,Ccb,Ecb,Gcb,Hcb,Jcb,Lcb,Q_,Ncb,Ocb,Pcb,Qcb,Scb,Rcb,Vcb,Y5a,R_,uY,Tcb,Ucb,Wcb,U_,Ycb,Xcb,Zcb,$cb,adb,ddb,bdb,gdb,W_,cdb,hdb,X_,jdb,Z_,a0,kdb,Y_,ldb,b0,odb,ndb,idb,pdb,qdb,rdb,$_,sdb,c0,tdb,mdb,Mcb,T_,vdb,vY,wdb,$5a,Z5a,xdb,ydb,zdb,Adb,Bdb,Cdb,e0,a6a,Ddb,Fdb,Gdb,Hdb,Edb,Idb,Jdb,Kdb,Ldb,Mdb,Ndb,g0,kEa,Odb,Pdb,Qdb,i0,Tdb, Udb,k0,Vdb,Wdb,Sdb,j0,h0,Rdb,n0,m0,Xdb,o0,l0,aeb,ceb,eeb,feb,heb,Zdb,deb,ieb,$db,jeb,keb,meb,p0,neb,leb,q0,peb,qeb,beb,oeb,reb,geb,Ydb,s0,xeb,ueb,yeb,veb,teb,zeb,seb,Ceb,t0,Deb,Feb,KK,Heb,Jeb,Keb,Leb,x0,Meb,p5a,Peb,y0,K_,Qeb,Seb,Neb,PX,r0,Teb,Ueb,D0,Y$a,Ieb,C0,u0,Xeb,Yeb,$eb,Zeb,Reb,A0,afb,RX,bfb,B4a,dfb,cfb,Lab,J_,F0,J4a,efb,x5a,dZa,z0,ffb,hfb,gfb,z4a,ifb,kfb,Web,Geb,mfb,lfb,B0,v0,nfb,G0,MX,pfb,qfb,iY,rfb,sfb,tfb,y4a,E0,v_,Oeb,ufb,gbb,Gfb,Bfb,Jfb,zfb,Kfb,yfb,I0,QX,Pfb,Lfb,Nfb,Mfb,Rfb,L0,M0,Ufb,Tfb, Sfb,O0,Ffb,T0,Wfb,S0,N0,Yfb,agb,bgb,Cfb,Zfb,W0,cgb,Efb,Q0,Vfb,P0,fgb,K0,ggb,hgb,igb,Z0,$0,Xfb,a1,b1,jgb,R0,Qfb,egb,dgb,kgb,lgb,mgb,$fb,ngb,U0,ogb,V0,pgb,rgb,J0,c1,Ofb,sgb,tgb,Dfb,Y0,X0,ugb,y6a,vgb,wgb,xgb,d1,e1,Agb,Dgb,Fgb,zgb,Ngb,Ogb,Pgb,Qgb,Rgb,Sgb,Tgb,Vgb,Ugb,f1,g1,h1,Wgb,Xgb,i1,QEa,Ygb,Zgb,j1,$gb,k1,l1,xEa,ahb,QM,n1,m1,FM,bhb,KM,EIa,chb,dHa,dhb,iL,jL,o1,cJa,ehb,fhb,ghb,p1,ihb,jhb,q1,s1,t1,mhb,nhb,u1,ohb,khb,lhb,phb,qhb,rhb,shb,v1,uhb,sCa,tL,vhb,whb,uL,thb,AJ,xhb,yhb,zhb,w1,Bhb,RJ,Chb,x1,y1,Dhb, Ehb,r1,Fhb,Ghb,zEa,z1,A1,Hhb,B1,C1,Ihb,D1,Jhb,E1,F1,Khb,Lhb,$Ea,G1,Mhb,Ohb,Nhb,H1,Phb,I1,J1,Qhb,Rhb,Shb,Thb,Uhb,Vhb,Xhb,L1,Whb,Yhb,Zhb,$hb,aib,eib,bib,cib,dib,gib,iib,jib,kib,hib,M1,lib,mib,nib,oib,pib,O1,qib,P1,Q1,R1,rib,sib,uib,vib,wib,xib,zib,yib,Aib,S1,T1,Dib,Bib,Cib,U1,Fib,Gib,V1,W1,Hib,X1,Jib,Y1,Kib,Lib,Mib,Z1,$1,a2,Nib,Oib,Pib,Sib,Rib,b2,Tib,Uib,Vib,BGa,Qib,Xib,Yib,$ib,aaa,ma;da=function(a){return function(){return aaa[a].apply(this,arguments)}}; g.fa=function(a,b){return aaa[a]=b}; baa=function(a){var b=0;return function(){return bb?null:"string"===typeof a?a.charAt(b):a[b]}; Cb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; vaa=function(a){for(var b=0,c=0,d={};c>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0b?1:ac&&g.Ob(a,-(c+1),0,b)}; g.bc=function(a,b,c){var d={};(0,g.ac)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; zaa=function(a){for(var b=[],c=0;c")&&(a=a.replace(Jaa,">"));-1!=a.indexOf('"')&&(a=a.replace(Kaa,"""));-1!=a.indexOf("'")&&(a=a.replace(Laa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Maa,"�"));return a}; g.ic=function(a,b){return-1!=a.indexOf(b)}; jc=function(a,b){return g.ic(a.toLowerCase(),b.toLowerCase())}; g.nc=function(a,b){var c=0;a=kc(String(a)).split(".");b=kc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.oc=function(){var a=g.Ta.navigator;return a&&(a=a.userAgent)?a:""}; xc=function(a){return qc||sc?tc?tc.brands.some(function(b){return(b=b.brand)&&g.ic(b,a)}):!1:!1}; yc=function(a){return g.ic(g.oc(),a)}; zc=function(){return qc||sc?!!tc&&0a.B&&(a.B++,b.next=a.j,a.j=b)}; Gd=function(a){return function(){return a}}; g.Hd=function(){}; oba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; Id=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; Nd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; pba=function(a,b){var c=0;return function(d){g.Ta.clearTimeout(c);var e=arguments;c=g.Ta.setTimeout(function(){a.apply(b,e)},50)}}; Od=function(a,b){this.j=a===qba&&b||"";this.B=rba}; Pd=function(a){return a instanceof Od&&a.constructor===Od&&a.B===rba?a.j:"type_error:Const"}; Qd=function(a){return new Od(qba,a)}; Vd=function(){if(void 0===Ud){var a=null,b=g.Ta.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:qb,createScript:qb,createScriptURL:qb})}catch(c){g.Ta.console&&g.Ta.console.error(c.message)}Ud=a}else Ud=a}return Ud}; g.Wd=function(a){this.u0=a}; g.Xd=function(a){return a instanceof g.Wd&&a.constructor===g.Wd?a.u0:"type_error:TrustedResourceUrl"}; $d=function(a){var b=Vd();a=b?b.createScriptURL(a):a;return new g.Wd(a,sba)}; g.ae=function(a){this.w0=a}; g.be=function(a){if(a instanceof g.ae)return a.w0;throw Error("");}; ce=function(a){this.ue=a}; fe=function(a){return new ce(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}; g.he=function(a,b){b=void 0===b?tba:b;a:if(b=void 0===b?tba:b,!(a instanceof g.ae)){for(var c=0;c]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.ne(c,ze)}; Mba=function(a,b,c,d){a=Lba(a);b=b||g.Ta;c=c instanceof Od?Pd(c):c||"";return void 0!==d?b.open(a,c,d):b.open(a,c)}; Lba=function(a){a=me(a);return void 0!==a?a:g.ge.toString()}; g.Ce=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.Ge=function(a,b){a%=b;return 0>a*b?a+b:a}; He=function(a,b,c){return a+c*(b-a)}; g.Ie=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Je=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Ke=function(a,b){this.width=a;this.height=b}; g.Le=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; g.Me=function(a,b){b=me(b);void 0!==b&&(a.href=b)}; Nba=function(a){var b="true".toString(),c=[new we];if(0===c.length)throw Error("");if(c.map(function(d){if(d instanceof we)d=d.j;else throw Error("");return d}).every(function(d){return 0!=="data-loaded".indexOf(d)}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); a.setAttribute("data-loaded",b)}; Ne=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);}; g.Qe=function(a,b,c){var d=window;a=me(a);return void 0!==a?d.open(a,b,c):null}; Re=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""}; Ue=function(a){var b=Re(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)}; g.Ve=function(a,b){a.src=g.Xd(b);Ue(a)}; Oba=function(a,b){return a.parseFromString(g.qe(b),"text/xml")}; g.We=function(a){return encodeURIComponent(String(a))}; Xe=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; Ye=function(a){return a=gc(a)}; g.$e=function(a){return null==a?"":String(a)}; af=function(a){for(var b=0,c=0;c>>0;return b}; bf=function(a){var b=Number(a);return 0==b&&g.ec(a)?NaN:b}; Pba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; Qba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Rba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; Sba=function(a){var b=1;a=a.split(":");for(var c=[];0a}; Uf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Tf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)}; Tf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; cf=function(a){this.j=a||g.Ta.document||document}; Wf=function(a){"function"!==typeof g.Ta.setImmediate||g.Ta.Window&&g.Ta.Window.prototype&&g.Ta.Window.prototype.setImmediate==g.Ta.setImmediate?(Vf||(Vf=aca()),Vf(a)):g.Ta.setImmediate(a)}; aca=function(){var a=g.Ta.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!yc("Presto")&&(a=function(){var e=g.Cf("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.gb)(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){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.MW;c.MW=null;e()}}; return function(e){d.next={MW:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ta.setTimeout(e,0)}}; Yf=function(a){g.Ta.setTimeout(function(){throw a;},0)}; Zf=function(){this.B=this.j=null}; fg=function(){this.next=this.scope=this.vt=null}; g.ig=function(a,b){gg||bca();hg||(gg(),hg=!0);cca.add(a,b)}; bca=function(){if(g.Ta.Promise&&g.Ta.Promise.resolve){var a=g.Ta.Promise.resolve(void 0);gg=function(){a.then(dca)}}else gg=function(){Wf(dca)}}; dca=function(){for(var a;a=cca.remove();){try{a.vt.call(a.scope)}catch(b){Yf(b)}nba(eca,a)}hg=!1}; g.kg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Hd)try{var b=this;a.call(void 0,function(c){jg(b,2,c)},function(c){jg(b,3,c)})}catch(c){jg(this,3,c)}}; fca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1}; lg=function(a,b,c){var d=gca.get();d.C=a;d.B=b;d.context=c;return d}; mg=function(a){if(a instanceof g.kg)return a;var b=new g.kg(g.Hd);jg(b,2,a);return b}; ng=function(a){return new g.kg(function(b,c){c(a)})}; g.ica=function(a,b,c){hca(a,b,c,null)||g.ig(g.ib(b,a))}; jca=function(a){return new g.kg(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.Mm()}; wca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)}; xca=function(a){for(var b=0;bf)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e=h){f=1024*(f-55296)+h-56320+65536; d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; Oca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>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.Kg=function(a,b){void 0===b&&(b=0);Qca();b=Rca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; g.Lg=function(a,b){if(Sca&&!b)a=g.Ta.btoa(a);else{for(var c=[],d=0,e=0;e>=8);c[d++]=f}a=g.Kg(c,b)}return a}; Uca=function(a){var b=[];Tca(a,function(c){b.push(c)}); return b}; Mg=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ic("=.",a[b-1])&&(c=g.ic("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Tca(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; Tca=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; Qca=function(){if(!Ng){Ng={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Rca[c]=d;for(var e=0;e "+a)}; fh=function(a){if("string"===typeof a)return{buffer:$ca(a),Mw:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Mw:!1};if(a.constructor===Uint8Array)return{buffer:a,Mw:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Mw:!1};if(a.constructor===ah)return{buffer:ch(a)||Pg(),Mw:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Mw:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; gh=function(){return"function"===typeof BigInt}; kh=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(hh(c,a)),b=c.next().value,a=c.next().value,c=b);ih=c>>>0;jh=a>>>0}; hda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a}; lh=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else gh()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+ida(c)+ida(a));return c}; ida=function(a){a=String(a);return"0000000".slice(a.length)+a}; jda=function(){var a=ih,b=jh;b&2147483648?gh()?a=""+(BigInt(b|0)<>>0)):(b=g.u(hh(a,b)),a=b.next().value,b=b.next().value,a="-"+lh(a,b)):a=lh(a,b);return a}; mh=function(a){if(16>a.length)kh(Number(a));else if(gh())a=BigInt(a),ih=Number(a&BigInt(4294967295))>>>0,jh=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);jh=ih=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),jh*=1E6,ih=1E6*ih+d,4294967296<=ih&&(jh+=Math.trunc(ih/4294967296),jh>>>=0,ih>>>=0);b&&(b=g.u(hh(ih,jh)),a=b.next().value,b=b.next().value,ih=a,jh=b)}}; hh=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; nh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)}; Bh=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<d&&h&128);32>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<h)return hda(b>>>0,c>>>0);throw eh();}; oh=function(a,b){a.j=b;if(b>a.C)throw gda(a.C,b);}; Ch=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw eh();oh(a,c);return e}; Dh=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];oh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; Eh=function(a){var b=Dh(a);return 4294967296*Dh(a)+(b>>>0)}; Fh=function(a){var b=Dh(a),c=Dh(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; Gh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;cb)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw gda(b,a.C-c);a.j=d;return c}; mda=function(a,b){if(0==b)return bh();var c=kda(a,b);a.aI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?Pg():lda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?bh():new ah(c,$g)}; Ih=function(a,b){if(Hh.length){var c=Hh.pop();c.init(a,void 0,void 0,b);a=c}else a=new nh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;nda(this,b)}; nda=function(a,b){b=void 0===b?{}:b;a.AO=void 0===b.AO?!1:b.AO}; oda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Ch(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw fda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0}; Jh=function(a){switch(a.B){case 0:0!=a.B?Jh(a):Gh(a.j);break;case 1:a=a.j;oh(a,a.j+8);break;case 2:if(2!=a.B)Jh(a);else{var b=Ch(a.j)>>>0;a=a.j;oh(a,a.j+b)}break;case 5:a=a.j;oh(a,a.j+4);break;case 3:b=a.D;do{if(!oda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Jh(a)}while(1);break;default:throw fda(a.B,a.C);}}; Kh=function(a,b,c){var d=a.j.C,e=Ch(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d}; Nh=function(a){var b=Ch(a.j)>>>0;a=a.j;var c=kda(a,b);a=a.B;if(pda){var d=a,e;(e=Lh)||(e=Lh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===Mh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Mh=!0}catch(p){Mh=!1}}!Mh&&(Lh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;fl?c.push(l):224>l?f>=b?Ig():(m=a[f++],194>l||128!==(m&192)?(f--,Ig()):c.push((l&31)<<6|m&63)): 240>l?f>=b-1?Ig():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,Ig()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?Ig():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,Ig()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Ig(),8192<=c.length&&(h=Jca(h,c),c.length=0);f=Jca(h,c)}return f}; qda=function(a){var b=Ch(a.j)>>>0;return mda(a.j,b)}; rda=function(a,b){this.B=a>>>0;this.j=b>>>0}; tda=function(a){if(!a)return sda||(sda=new rda(0,0));if(!/^\d+$/.test(a))return null;mh(a);return new rda(ih,jh)}; uda=function(a,b){this.B=a>>>0;this.j=b>>>0}; wda=function(a){if(!a)return vda||(vda=new uda(0,0));if(!/^-?\d+$/.test(a))return null;mh(a);return new uda(ih,jh)}; Oh=function(){this.j=[]}; xda=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Ph=function(a,b){for(;127>>=7;a.j.push(b)}; yda=function(a,b){if(0<=b)Ph(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; Qh=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; zda=function(){this.C=[];this.B=0;this.j=new Oh}; Rh=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)}; Sh=function(a,b,c){Ph(a.j,8*b+c)}; Ada=function(a,b,c){null!=c&&("string"===typeof c&&tda(c),Sh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,ih=b,jh=c,Qh(a,ih),Qh(a,jh)):(c=tda(c),a=a.j,b=c.j,Qh(a,c.B),Qh(a,b)))}; Th=function(a,b,c){Sh(a,b,2);Ph(a.j,c.length);Rh(a,a.j.end());Rh(a,c)}; Uh=function(a,b,c,d){this.sM=a;this.tM=b;this.j=c;this.d3=d}; Wh=function(a){return Array.prototype.slice.call(a)}; Xh=function(a){return"function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():a}; Yh=function(a,b,c){return c?a|b:a&~b}; $h=function(a){Zh(a,34);return a}; Bda=function(a,b){si(b,(a|0)&-14591)}; ti=function(a,b){si(b,(a|34)&-14557)}; Cda=function(a){a=a>>14&1023;return 0===a?536870912:a}; Eda=function(a){return!(!a||"object"!==typeof a||a.i$!==Dda)}; ui=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}; vi=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new ah(a,$g):bh();else if(a.constructor!==ah)if(Og(a))a=a.length?new ah(c?a:new Uint8Array(a),$g):bh();else{if(!b)throw Error();a=void 0}return a}; xi=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=wi(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;si(a,d|1);return!0}; yi=function(a){if(a&2)throw Error();}; Fda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();}; Gda=function(a,b){if("number"!==typeof b||0>b||b>a.length)throw Error();}; zi=function(a,b,c){this.C=0;this.j=a;this.B=b;this.D=c}; Hda=function(a,b){(b=Ai?b[Ai]:void 0)&&(a[Ai]=Wh(b))}; Ida=function(){var a=Error();Baa(a,"incident");Yf(a)}; Bi=function(a){a=Error(a);Baa(a,"warning");return a}; Ci=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}; Jda=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)}; Kda=function(a){return a.displayName||a.name||"unknown type name"}; Lda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+$a(a)+": "+a);return a}; Mda=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a}; Di=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:Nda.test(a)}; Ei=function(a){if(!Number.isFinite(a))throw Bi("enum");return a|0}; Fi=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0}; Gi=function(a){if("number"!==typeof a)throw Bi("int32");if(!Number.isFinite(a))throw Bi("int32");return a|0}; Hi=function(a){return null==a?a:Gi(a)}; Ii=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0}; Ji=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0}; Pda=function(a,b){b=!!b;if(!Di(a))throw Bi("int64");return"string"===typeof a?Ki(a):b?Oda(a):Li(a)}; Mi=function(a){return null==a?a:Pda(a)}; ej=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))}; Qda=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337a.length?!0:19===a.length&&922337>Number(a.substring(0,6))}; Rda=function(a){if(0>a){kh(a);var b=lh(ih,jh);a=Number(b);return Number.isSafeInteger(a)?a:b}if(ej(String(a)))return a;kh(a);return 4294967296*jh+(ih>>>0)}; Li=function(a){Di(a);a=Math.trunc(a);Number.isSafeInteger(a)||(kh(a),a=hda(ih,jh));return a}; fj=function(a){Di(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:Rda(a)}; Oda=function(a){Di(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Qda(b)?a=b:(kh(a),a=jda())}return a}; Ki=function(a){Di(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Qda(a)||(mh(a),a=jda());return a}; gj=function(a){Di(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));ej(a)||(mh(a),a=lh(ih,jh));return a}; Sda=function(a){if(null==a)return a;if(Di(a)){if("string"===typeof a)return gj(a);if("number"===typeof a)return fj(a)}}; Tda=function(a){if(null==a||"string"==typeof a||Og(a)||a instanceof ah)return a}; hj=function(a){if("string"!==typeof a)throw Error();return a}; ij=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a}; jj=function(a){return null==a||"string"===typeof a?a:void 0}; kj=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Kda(b)+" but got "+(a&&Kda(a.constructor)));return a}; mj=function(a,b,c,d){if(null!=a&&"object"===typeof a&&a.qK===lj)return a;if(!Array.isArray(a))return c?d&2?(a=b[Uda])?b=a:(a=new b,$h(a.oa),b=b[Uda]=a):b=new b:b=void 0,b;var e=c=wi(a);0===e&&(e|=d&32);e|=d&2;e!==c&&si(a,e);return new b(a)}; oj=function(a,b){nj=b;a=new a(b);nj=void 0;return a}; qj=function(a){switch(typeof a){case "boolean":return pj||(pj=[0,void 0,!0]);case "number":return 0(a.constructor[gea]=(a.constructor[gea]|0)+1)&&Ida();return 0===c?!1:!(c&b)}; Qj=function(a,b){a=a.oa;return Pj(a,Nj(a),b)}; iea=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(0>b||b>=a.length||b>=c))return a[b]}; Pj=function(a,b,c,d){if(-1===c)return null;var e=Cda(b);if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],null!=d)){if(iea(a,b,e,c)&&null!=Rj){var h;a=null!=(h=jea)?h:jea={};h=a[Rj]||0;4<=h||(a[Rj]=h+1,Ida())}return d}return iea(a,b,e,c)}}; Tj=function(a,b,c){var d=a.oa,e=Nj(d);yi(e);Sj(d,e,b,c);return a}; Sj=function(a,b,c,d,e){var f=Cda(b);if(c>=f||e){var h=b;if(b&256)e=a[a.length-1];else{if(null==d)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c>>=0}Tj(a,b,c)}; Wk=function(a,b,c){return Tj(a,b,Mi(c))}; Xk=function(a,b,c){if(null!=c){var d=!!d;if(!Di(c))throw Bi("uint64");"string"===typeof c?c=gj(c):d?(Di(c),c=Math.trunc(c),0<=c&&Number.isSafeInteger(c)?c=String(c):(d=String(c),ej(d)?c=d:(kh(c),c=lh(ih,jh)))):c=fj(c)}Tj(a,b,c)}; Yk=function(a,b,c){return Tj(a,b,Ci(c))}; Q=function(a,b,c){return Tj(a,b,ij(c))}; Zk=function(a,b,c){return ek(a,b,ij(c),"")}; $k=function(a,b,c){return Tj(a,b,vi(c,!1,!1))}; S=function(a,b,c){return Tj(a,b,null==c?c:Ei(c))}; al=function(a,b,c,d){ik(a,b,c,null==d?d:Ei(d))}; T=function(a,b,c){this.oa=P(a,b,c)}; Aea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Zh(b,32);return oj(a,b)}; bl=function(a,b,c){var d=Bea?void 0:a.constructor.wb;var e=Nj(c?a.oa:b);a=b.length;if(!a)return b;var f;if(ui(c=b[a-1])){a:{var h=c;var l={},m=!1,n;for(n in h){var p=h[n];if(Array.isArray(p)){var q=p;if(xi(p,d,+n)||Eda(p)&&0===p.size)p=null;p!=q&&(m=!0)}null!=p?l[n]=p:m=!0}if(m){for(var r in l){h=l;break a}h=null}}h!=c&&(f=!0);a--}for(n=+!!(e&512)-1;0h&&(q-=h,h=a[++f]);for(;m>>=7,a.B++;c.push(e);a.B++}}; Yea=function(a){return function(){var b=new zda;Nea(this.oa,b,Kl(a));Rh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;ht;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],w=e[2],A=e[3],D=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=A^v&(w^A);var H=1518500249}else F=v^w^A,H=1859775393;else 60>t?(F=v&w|A&(v|w),H=2400959708):(F=v^w^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+D+H+r[t]&4294967295;D=A;A=w;w=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]= e[2]+w&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+D&4294967295} function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,w=q.length;vn?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&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,F7:function(){for(var q=d(),r="",t=0;tb?a:a.slice(0,b)}; ho=function(a,b){if(a){a=a.split("&");for(var c=0;cc&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; jo=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Xe(a.slice(d,-1!==e?e:0))}; oo=function(a,b){for(var c=a.search(Dfa),d=0,e,f=[];0<=(e=Cfa(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Efa,"$1")}; Ffa=function(a,b,c){return mo(oo(a,b),b,c)}; g.po=function(a){g.Dd.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Ca=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ea=this.Z=this.Ga=!1;this.ra=0;this.qa=null;this.La="";this.K=!1}; Hfa=function(a,b,c,d,e,f,h){var l=new g.po;Gfa.push(l);b&&l.listen("complete",b);l.oF("ready",l.f7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; Jfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Ifa(a);qo(a)}; Ifa=function(a){a.Ga||(a.Ga=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Kfa=function(a){if(a.C&&"undefined"!=typeof ro)if(a.Ca[1]&&4==g.so(a)&&2==a.getStatus())a.getStatus();else if(a.Z&&4==g.so(a))g.Dg(a.G_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(to(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2>1,b),Ao(a,a.length>>1)]}; Bo=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c}; Tfa=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Bo(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Bo(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Bo(a)):new Bo(a,c,b)}; Ufa=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=Tfa(a))}; Xfa=function(a,b,c,d,e){if(a.index){var f=new zo(a.logger,"W"),h=(4-(Co.length+c.length)%4)%4,l=new Uint8Array(4+h+Co.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,4294967295*Math.random());n=n+4+h;l.set(Co,n);n+=Co.length;m.setUint32(n,e);l.set(c,n+4);Vfa(l,d);b=Wfa(null!=b?b:[]);a.index.Bh(b,function(p){globalThis.sessionStorage.removeItem(p)})?Qfa(b,g.Kg(l))?(a.logger.qF("s"),f.done()):a.logger.qF("t"):a.logger.qF("i")}else a.logger.qF("u")}; Wfa=function(a){var b=g.u(Sfa(a,Co));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)}; Vfa=function(a,b){var c=Sfa(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;en;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=Yfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Do(a,l),d+=Do(a,l+4),e+=Do(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Zfa.toString(e)}; Yfa=function(a){for(var b=[],c=0;c=d.B?(d.Gg.gx(A,t),d.B=Math.floor(200*Math.random())):d.B--}} g.I.call(this);var d=this;this.j=!1;this.B=Math.floor(200*Math.random());if(a.challenge instanceof Ko){var e=Rk(a.challenge,4);var f=Rk(a.challenge,5)}else e=a.program,f=a.globalName;var h=Math.random(),l=.3>h;null!=a.d7&&(l=h=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;cb)throw Error("Bad port number "+b);a.D=b}else a.D=null}; iq=function(a,b,c){b instanceof kq?(a.C=b,qga(a.C,a.N)):(c||(b=lq(b,rga)),a.C=new kq(b,a.N))}; g.mq=function(a,b,c){a.C.set(b,c)}; g.nq=function(a){return a instanceof g.eq?a.clone():new g.eq(a)}; jq=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; lq=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,sga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; sga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; kq=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b}; oq=function(a){a.j||(a.j=new Map,a.B=0,a.C&&ho(a.C,function(b,c){a.add(Xe(b),c)}))}; tga=function(a,b){oq(a);b=pq(a,b);return a.j.has(b)}; g.uga=function(a,b,c){a.remove(b);0>7,a.error.code].concat(Sga(b)))}; Yq=function(a,b,c){Sq.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"}; Zq=function(a){g.I.call(this);var b=this;this.j=void 0;this.D=new g.Lo;this.state=1;this.C=0;this.cache=this.B=void 0;this.Kz=a.Kz;this.qR=a.qR;this.onError=a.onError;var c;this.onEvent=null!=(c=a.onEvent)?c:function(){}; this.logger=a.Cqb?new Ofa:new Pfa(a.Zi,a.Vv);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})}; Wga=function(a,b,c,d){if(!d)throw new Rq(4,"PMD:Undefined");d=d(dh(ck(b,1)));if(!(d instanceof Function))throw new Rq(16,"APF:Failed");return new Uq(a.logger,c,d,Pk(b,3),1E3*Pk(b,2),function(){return a.cache},a.onError)}; Yga=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L;return g.G(function(M){switch(M.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Lm(c,6E5,.25,2),e={},f=1;case 2:if(!(2>=f)){M.Ia(4);break}g.Ba(M,5);a.state=3;a.C=f-1;return g.z(M,a.B&&1===f?a.B:a.aE(f),7);case 7:return h=M.B,a.B=void 0,a.state=4,l=new zo(a.logger,"b"),g.z(M,dga(h),8);case 8:return a.state=5,a.onEvent(1),e.MN=3,m=new Mo({challenge:h}),n=$q(a,12E4).then(function(ea){return function(){a.onEvent(ea.MN);return Promise.reject(new Rq(15, "MDA:Timeout"))}}(e)),g.z(M,Promise.race([m.WS, n]),9);case 9:return a.onEvent(2),p=[],a.onEvent(4),e.MN=6,g.z(M,Promise.race([m.snapshot({S2:p}),n]),10);case 10:return q=M.B,a.onEvent(5),r=g.u(p),v=t=r.next().value,l.done(),a.state=6,g.z(M,Xga(a,a.logger.AQ("g",f,a.Kz.DX(q)),new Rq(10,"BWB:Timeout")),11);case 11:w=M.B;a.state=7;A=new zo(a.logger,"i");if(Rk(w,4)){m.dispose();var R=new Wq(a.logger,Rk(w,4),1E3*Pk(w,2))}else Pk(w,3)?R=Wga(a,w,m,v):(m.dispose(),R=new Vq(a.logger,dh(ck(w,1)),1E3*Pk(w,2)));D=R;A.done();H=F=void 0;null==(H=(F=a).qR)|| H.call(F,dh(ck(w,1)));a.state=8;return M.return(D);case 5:L=g.Da(M);b=L instanceof Rq?L:L instanceof Oq?new Rq(20,"WTO:Disposed",L):L instanceof ln?new Rq(11,"EBH:Error",L):new Rq(12,"BSO:Unknown",L);Qq(b,a.logger,a.onError);a:{if(L instanceof ln)switch(L.code){case 2:case 13:case 14:case 4:R=!0;break a;default:R=!1;break a}R=L instanceof Rq?20!==L.code:!0}if(!R)throw b;return g.z(M,$q(a,d.getValue()),12);case 12:g.Mm(d);case 3:e={MN:void 0};f++;M.Ia(2);break;case 4:throw b;}})}; $q=function(a,b){b=Qga(b);g.N(a,b);b.start();return b.Z}; Xga=function(a,b,c){return Promise.race([b,$q(a,12E4).then(function(){return Promise.reject(c)})])}; Zga=function(a){var b,c,d;g.G(function(e){switch(e.j){case 1:return b=void 0,g.Ba(e,5),g.z(e,Yga(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.gK(13);e.Ia(0);break}a.logger.gK(14);b=new Xq(a.logger,c instanceof Rq?c:new Rq(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.Ba(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ca(e,1);break;case 8:g.Da(e),e.Ia(0)}})}; $ga=function(a,b){b=Object.assign({},b);var c=22;try{b.kz&&!a.cache&&(a.cache=new Ufa(Math.min(b.kz.k$,150),a.logger));c=23;var d;if(!a.isReady()&&(null==(d=b.kz)?0:d.V6)){var e;if(null==(e=a.cache))var f=void 0;else a:{var h=Pq(b,a.logger),l=b.kz.HW;if(e.index){var m=new zo(e.logger,"R"),n=Wfa(null!=h?h:[]),p=globalThis.sessionStorage.getItem(n);if(p){try{var q=Mg(p);Vfa(q,l)}catch(A){globalThis.sessionStorage.removeItem(n);e.logger.ex("c");f=void 0;break a}for(d=4;7>d&&0===q[d];)d++;for(h=0;h=r)globalThis.sessionStorage.removeItem(n),e.logger.ex("e");else{var t=new Uint8Array(q.buffer,d+4);m.done();e.logger.ex("a");f=t;break a}}else e.logger.ex("m")}else e.logger.ex("u");f=void 0}if(e=f)return Uga(e,"a",a.logger)}}catch(A){Qq(new Rq(c,22===c?"GBJ:init":"RXO:read",A),a.logger,a.onError)}var v;c=null!=(v=a.j)?v:new Yq(a.logger,a.C,a.state); v=new zo(a.logger,c.C);try{if(a.Ma())throw new Rq(21,"BNT:disposed");return c.G(b)}catch(A){v=new zo(a.logger,"e");var w=A instanceof Rq?A:new Rq(5,"TVD:error",A);Qq(w,a.logger,a.onError);c=new Xq(a.logger,w);return c.G(b)}finally{v.done()}}; aha=function(a){var b={};g.ac(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.j(e)||(b[d]=null)):b[d]=c}); uaa(a,function(c){return null===b[c.event]})}; ar=function(){this.De=0;this.j=!1;this.B=-1;this.Nw=!1;this.Bk=0}; br=function(){this.B=null;this.j=!1}; Cr=function(a){br.call(this);this.D=a}; Dr=function(){br.call(this)}; Er=function(){br.call(this)}; Fr=function(){this.j={};this.B=!0;this.C={}}; Gr=function(a,b,c){a.j[b]||(a.j[b]=new Cr(c));return a.j[b]}; bha=function(a){a.j.queryid||(a.j.queryid=new Er)}; Hr=function(a,b,c){(a=a.j[b])&&a.C(c)}; Ir=function(a,b){if(g.ed(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()}; Jr=function(a){var b={},c=g.Xc(a.j,function(d){return d.j}); g.Vc(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.B?String(d.B):"";0e?encodeURIComponent(uha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; vha=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1}; Zr=function(a,b){this.j=a;this.depth=b}; xha=function(){function a(l,m){return null==l?m:l} var b=Vr(),c=Math.max(b.length-1,0),d=tha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Zr([f.url,f.jQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Zr([e.url,2],0));b.url&&b!=f&&h.push(new Zr([b.url,0],a(b.depth,c)));d=g.$r(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=lha(b.url))&&d.push([new Zr([e,1],a(b.depth,c))]);d.push([]);return g.$r(d,function(l){return wha(c,l)})}; wha=function(a,b){g.as(b,function(e){return 0<=e.depth}); var c=bs(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2); d[0]=a;g.ac(b,function(e){return d[e.depth+1]=e.j}); return d}; yha=function(){var a=void 0===a?xha():a;return a.map(function(b){return Yr(b)})}; zha=function(a){var b=!1;b=void 0===b?!1:b;Or.google_image_requests||(Or.google_image_requests=[]);var c=mha("IMG",Or.document);b&&(c.attributionSrc="");c.src=a;Or.google_image_requests.push(c)}; cs=function(a){var b="fh";if(a.fh&&a.hasOwnProperty(b))return a.fh;var c=new a;a.fh=c;a.hasOwnProperty(b);return c}; ds=function(){this.B=new hha;this.j=Mr()?new Nr:new Lr}; Aha=function(){es();var a=Or.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Or.setInterval&&"function"===typeof Or.clearInterval&&"function"===typeof Or.setTimeout&&"function"===typeof Or.clearTimeout)}; Bha=function(){es();return yha()}; Cha=function(){}; es=function(){var a=cs(Cha);if(!a.j){if(!Or)throw Error("Context has not been set and window is undefined.");a.j=cs(ds)}return a.j}; fs=function(a){this.oa=P(a)}; Dha=function(a){this.C=a;this.j=-1;this.B=this.D=0}; gs=function(a,b){return function(){var c=g.Ja.apply(0,arguments);if(-1Math.random())}; Rha=function(a){a&&ls&&js()&&(ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Sha=function(){var a=ms;this.j=ns;this.zX="jserror";this.gT=!0;this.AN=null;this.B=this.EQ;this.fd=void 0===a?null:a}; Tha=function(a,b,c){var d=os;return gs(hs().j.j,function(){try{if(d.fd&&d.fd.j){var e=d.fd.start(a.toString(),3);var f=b();d.fd.end(e)}else f=b()}catch(l){var h=d.gT;try{Rha(e),h=d.B(a,new ps(qs(l)),void 0,c)}catch(m){d.EQ(217,m)}if(!h)throw l;}return f})()}; rs=function(a,b,c,d){return gs(hs().j.j,function(){var e=g.Ja.apply(0,arguments);return Tha(a,function(){return b.apply(c,e)},d)})}; qs=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=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");break a}catch(e){b=c;break a}b=void 0}return b}; ps=function(a){Nha.call(this,Error(a),{message:a})}; Uha=function(){Or&&"undefined"!=typeof Or.google_measure_js_timing&&(Or.google_measure_js_timing||ms.disable())}; Vha=function(a){os.AN=function(b){g.ac(a,function(c){c(b)})}}; Wha=function(a,b){return Tha(a,b)}; ts=function(a,b){return rs(a,b)}; us=function(a,b,c,d){os.EQ(a,b,c,d)}; vs=function(){return Date.now()-Xha}; Yha=function(){var a=hs().C,b=0<=ws?vs()-ws:-1,c=xs?vs()-ys:-1,d=0<=zs?vs()-zs:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];us(637,Error(),.001);var f=b;-1!=c&&cd?500:h}; As=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; Bs=function(a){return a.right-a.left}; Cs=function(a,b,c){b instanceof g.Ie?(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}; Zha=function(a,b,c){var d=new As(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c}; Ds=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l}; aia=function(a){var b=a!==a.top,c=a.top===pha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),bba($ha,function(h){return"function"===typeof f[h]})||(e=1)); return{Yn:f,compatibility:e,Qda:d}}; bia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; cia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Ke(b.innerWidth,b.innerHeight)).round():Vba(b||window).round()}catch(d){return new g.Ke(-12245933,-12245933)}}; Es=function(a,b,c){try{a&&(b=b.top);var d=cia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new As(f,f,f,f);var h=Xba(mf(b.document).j),l=h.x,m=h.y;return new As(m,l+f,m+e,l)}catch(n){return new As(-12245933,-12245933,-12245933,-12245933)}}; g.Fs=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; Gs=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; g.Is=function(a,b,c){if("string"===typeof b)(b=Hs(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Hs(c,d);f&&(c.style[f]=e)}}; Hs=function(a,b){var c=dia[b];if(!c){var d=Pba(b);c=d;void 0===a.style[d]&&(d=(g.Qc?"Webkit":Js?"Moz":g.Ks?"ms":null)+Rba(d),void 0!==a.style[d]&&(c=d));dia[b]=c}return c}; g.Ls=function(a,b){var c=a.style[Pba(b)];return"undefined"!==typeof c?c:a.style[Hs(a,b)]||""}; Ms=function(a,b){var c=lf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; Ns=function(a,b){return Ms(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.Ps=function(a,b,c){if(b instanceof g.Ie){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Os(d,!1);a.style.top=g.Os(b,!1)}; Qs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; eia=function(a){var b=lf(a),c=Ns(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=Ns(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.Rs=function(a){var b=lf(a),c=new g.Ie(0,0);if(a==(b?lf(b):document).documentElement)return c;a=Qs(a);b=Xba(mf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; gia=function(a,b){var c=new g.Ie(0,0),d=zf(lf(a));if(!Oc(d,"parent"))return c;do{var e=d==b?g.Rs(a):fia(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.Ss=function(a,b){a=hia(a);b=hia(b);return new g.Ie(a.x-b.x,a.y-b.y)}; fia=function(a){a=Qs(a);return new g.Ie(a.left,a.top)}; hia=function(a){if(1==a.nodeType)return fia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ie(a.clientX,a.clientY)}; g.Ts=function(a,b,c){if(b instanceof g.Ke)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Os(b,!0);a.style.height=g.Os(c,!0)}; g.Os=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.Us=function(a){var b=iia;if("none"!=Ns(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}; iia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Qc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Qs(a),new g.Ke(a.right-a.left,a.bottom-a.top)):new g.Ke(b,c)}; g.Vs=function(a,b){a.style.display=b?"":"none"}; Ws=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; jia=function(a){return new As(a.top,a.right,a.bottom,a.left)}; kia=function(a){var b=a.top||0,c=a.left||0;return new As(b,c+(a.width||0),b+(a.height||0),c)}; Xs=function(a){return null!=a&&0<=a&&1>=a}; lia=function(){var a=g.oc();return a?Ys("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return jc(a,b)})||jc(a,"OMI/")&&!jc(a,"XiaoMi/")?!0:jc(a,"Presto")&&jc(a,"Linux")&&!jc(a,"X11")&&!jc(a,"Android")&&!jc(a,"Mobi"):!1}; mia=function(){this.C=!Tr(Or.top);this.isMobileDevice=Sr()||iha();var a=Vr();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.jc++;){if(a===b)return!0;try{if(a=g.Qf(a)||a){var d=lf(a),e=d&&zf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; Iia=function(a,b,c){if(!a||!b)return!1;b=Cs(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Tr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!bia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=lf(c))&&b.defaultView&&b.defaultView.frameElement)&&Hia(b,a);var d=a===c;a=!d&&a&&Tf(a,function(e){return e===c}); return!(b||d||a)}; Jia=function(a,b,c,d){return Zs().C?!1:0>=Bs(a)||0>=a.getHeight()?!0:c&&d?Wha(208,function(){return Iia(a,b,c)}):!1}; It=function(a,b,c){g.I.call(this);this.position=Kia.clone();this.nK=this.qJ();this.zQ=-2;this.iea=Date.now();this.Y1=-1;this.Sp=b;this.dK=null;this.TD=!1;this.CK=null;this.opacity=-1;this.requestSource=c;this.qea=!1;this.GQ=function(){}; this.A2=function(){}; this.Qj=new fha;this.Qj.nu=a;this.Qj.j=a;this.Qt=!1;this.Zv={QQ:null,PQ:null};this.z1=!0;this.bH=null;this.lA=this.O9=!1;hs().K++;this.Xh=this.lP();this.T1=-1;this.Uf=null;this.hasCompleted=this.L9=!1;this.Jc=new Fr;eha(this.Jc);Lia(this);1==this.requestSource?Hr(this.Jc,"od",1):Hr(this.Jc,"od",0)}; Lia=function(a){a=a.Qj.nu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Mia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Qba()):!!a.getAttribute("data-"+Qba());b&&(Zs().B=!0)}; Jt=function(a,b){b!=a.lA&&(a.lA=b,a=Zs(),b?a.K++:0c?0:a}; Pia=function(a,b,c){if(a.Uf){a.Uf.Qs();var d=a.Uf.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.CK=new g.Ie(h.left-f.left,h.top-f.top)}f=a.PL()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.aY(d);a.dK=d;a.Ta(f,b,c,!1,h,e,d.Z)}}; Qia=function(a){if(a.TD&&a.bH){var b=1==Ir(a.Jc,"od"),c=Zs().j,d=a.bH,e=a.Uf?a.Uf.getName():"ns",f=a.CK,h=new g.Ke(Bs(c),c.getHeight());c=a.PL();a={Yda:e,CK:f,Rea:h,PL:c,De:a.Xh.De,Mea:b};if(b=d.B){b.Qs();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ie(h.left-f.left,h.top-f.top),l=new g.Ke(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Yda:b.getName(),CK:h,Rea:l,PL:c,Mea:!1,De:e}}else c=null;c&&Bia(d,a,c)}}; Ria=function(a,b,c){b&&(a.GQ=b);c&&(a.A2=c)}; g.Kt=function(){}; g.Lt=function(a){return{value:a,done:!1}}; Sia=function(){this.D=this.j=this.C=this.B=this.G=0}; Tia=function(a){var b={};var c=g.kb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; Uia=function(){ar.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Mt=function(a){return Xs(a.volume)&&0Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.qa;var d=c-a.qa,e=0;0<=d?(a.ra+=b,a.La+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);0!=d&&(a.ra=0);-1==a.Wa&&0=a.C/2:0=a.Ea:!1:!1}; hja=function(a){var b=Ws(a.Xh.De,2),c=a.Fg.C,d=a.Xh,e=du(a),f=cu(e.D),h=cu(e.K),l=cu(d.volume),m=Ws(e.N,2),n=Ws(e.ra,2),p=Ws(d.De,2),q=Ws(e.Ca,2),r=Ws(e.Ea,2);d=Ws(d.Bk,2);a=a.Gt().clone();a.round();e=Et(e,!1);return{Qea:b,RE:c,rK:f,iK:h,yD:l,sK:m,kK:n,De:p,uK:q,lK:r,Bk:d,position:a,wK:e}}; jja=function(a,b){ija(a.j,b,function(){return{Qea:0,RE:void 0,rK:-1,iK:-1,yD:-1,sK:-1,kK:-1,De:-1,uK:-1,lK:-1,Bk:-1,position:void 0,wK:[]}}); a.j[b]=hja(a)}; ija=function(a,b,c){for(var d=a.length;da.Na&&a.Na++;return b}; rja=function(){this.j={};var a=zf();iu(this,a,document);var b=qja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)iu(this,c,c.document);iu(this,a.top,a.top.document)}}catch(d){}}; qja=function(){var a=document.documentElement;try{if(!Tr(zf().top))return"2";var b=[],c=zf(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"}}; iu=function(a,b,c){Ft(c,"mousedown",function(){return sja(a)},301); Ft(b,"scroll",function(){return tja(a)},302); Ft(c,"touchmove",function(){return uja(a)},303); Ft(c,"mousemove",function(){return vja(a)},304); Ft(c,"keydown",function(){return wja(a)},305)}; sja=function(a){g.Vc(a.j,function(b){1E5c.time?b:c},a[0])}; ru=function(a){a=void 0===a?Or:a;qt.call(this,new ct(a,2))}; tu=function(){var a=Jja();ct.call(this,Or.top,a,"geo")}; Jja=function(){hs();var a=Zs();return a.C||a.B?0:2}; Kja=function(){}; uu=function(){this.done=!1;this.j={B6:0,kW:0,Eqb:0,rX:0,WP:-1,p7:0,o7:0,q7:0,Vda:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new bt(this)}; wu=function(){var a=vu;a.K||(a.K=!0,Lja(a,function(){return a.D.apply(a,g.qa(g.Ja.apply(0,arguments)))}),a.D())}; Mja=function(){cs(Kja);var a=cs(mu);null!=a.j&&a.j.j?pia(a.j.j):Zs().update(Or)}; xu=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Mja();var d=vs();hs().G=d;if(null!=cs(mu).j)for(var e=0;eg.dd(Wja).length?null:bs(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Xja[d[0]]||!Xja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; Zja=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?Bt(b.j,a.j):Bt(b.B,a.j);case "tos":return a.B?At(b.j,a.j):At(b.B,a.j)}return 0}; Du=function(a,b,c,d){Vt.call(this,b,d);this.N=a;this.Z=c}; Eu=function(){}; Fu=function(a){Vt.call(this,"fully_viewable_audible_half_duration_impression",a)}; Gu=function(a){this.j=a}; Hu=function(a,b){Vt.call(this,a,b)}; Iu=function(a){Wt.call(this,"measurable_impression",a)}; Ju=function(){Gu.apply(this,arguments)}; Ku=function(a,b,c){Zt.call(this,a,b,c)}; Lu=function(a){a=void 0===a?Or:a;qt.call(this,new ct(a,2))}; Mu=function(a,b,c){Zt.call(this,a,b,c)}; Nu=function(a){a=void 0===a?Or:a;qt.call(this,new ct(a,2))}; Ou=function(){ct.call(this,Or,2,"mraid");this.La=0;this.ra=this.Ca=!1;this.N=null;this.B=aia(this.C);this.D.j=new As(0,0,0,0);this.Na=!1}; Pu=function(a,b,c){a.Ku("addEventListener",b,c)}; cka=function(a){hs().D=!!a.Ku("isViewable");Pu(a,"viewableChange",$ja);"loading"===a.Ku("getState")?Pu(a,"ready",aka):bka(a)}; bka=function(a){"string"===typeof a.B.Yn.AFMA_LIDAR?(a.Ca=!0,dka(a)):(a.B.compatibility=3,a.N="nc",a.pj("w"))}; dka=function(a){a.ra=!1;var b=1==Ir(hs().Jc,"rmmt"),c=!!a.Ku("isViewable");(b?!c:1)&&es().setTimeout(ts(524,function(){a.ra||(eka(a),us(540,Error()),a.N="mt",a.pj("w"))}),500); fka(a);Pu(a,a.B.Yn.AFMA_LIDAR,gka)}; fka=function(a){var b=1==Ir(hs().Jc,"sneio"),c=void 0!==a.B.Yn.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Yn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Yn.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Yn.AFMA_LIDAR_EXP_1=!b)}; eka=function(a){a.Ku("removeEventListener",a.B.Yn.AFMA_LIDAR,gka);a.Ca=!1}; hka=function(a,b){if("loading"===a.Ku("getState"))return new g.Ke(-1,-1);b=a.Ku(b);if(!b)return new g.Ke(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Ke(-1,-1):new g.Ke(a,b)}; aka=function(){try{var a=cs(Ou);a.Ku("removeEventListener","ready",aka);bka(a)}catch(b){us(541,b)}}; gka=function(a,b){try{var c=cs(Ou);c.ra=!0;var d=a?new As(a.y,a.x+a.width,a.y+a.height,a.x):new As(0,0,0,0);var e=vs(),f=at();var h=new Zha(e,f,c);h.j=d;h.volume=b;c.Lt(h)}catch(l){us(542,l)}}; $ja=function(a){var b=hs(),c=cs(Ou);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.pj("w",!0))}; Qu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.t9,a.firstquartile=this.o9,a.midpoint=this.q9,a.thirdquartile=this.u9,a.complete=this.l9,a.error=this.m9,a.pause=this.TR,a.resume=this.O0,a.skip=this.s9,a.viewable_impression=this.Ep,a.mute=this.jC,a.unmute=this.jC,a.fullscreen=this.p9,a.exitfullscreen=this.n9,a.fully_viewable_audible_half_duration_impression=this.Ep,a.measurable_impression=this.Ep,a.abandon=this.TR,a.engagedview=this.Ep,a.impression=this.Ep,a.creativeview= this.Ep,a.progress=this.jC,a.custom_metric_viewable=this.Ep,a.bufferstart=this.TR,a.bufferfinish=this.O0,a.audio_measurable=this.Ep,a.audio_audible=this.Ep,a);a={};this.N=(a.overlay_resize=this.r9,a.abandon=this.IP,a.close=this.IP,a.collapse=this.IP,a.overlay_unmeasurable_impression=function(b){return gu(b,"overlay_unmeasurable_impression",at())},a.overlay_viewable_immediate_impression=function(b){return gu(b,"overlay_viewable_immediate_impression",at())},a.overlay_unviewable_impression=function(b){return gu(b, "overlay_unviewable_impression",at())},a.overlay_viewable_end_of_session_impression=function(b){return gu(b,"overlay_viewable_end_of_session_impression",at())},a); hs().B=3;ika(this)}; Ru=function(a,b,c,d){a=a.sG(null,d,!0,b);a.D=c;Cja([a]);return a}; jka=function(a,b,c){aha(b);var d=a.j;g.ac(b,function(e){var f=g.$r(e.criteria,function(h){var l=Yja(h);if(null==l)h=null;else if(h=new Vja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h}); Ys(f,function(h){return null==h})||fja(c,new Du(e.id,e.event,f,d))})}; kka=function(){var a=[],b=hs();a.push(cs(tu));Ir(b.Jc,"mvp_lv")&&a.push(cs(Ou));b=[new Lu,new Nu];b.push(new nu(a));b.push(new ru(Or));return b}; lka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=vs(),c=hs(),d=Zs();ws=b;c.C=79463069;"o"!==a.B&&(Qja=pha(Or));if(Aha()){vu.j.kW=0;vu.j.WP=vs()-b;var e=kka(),f=cs(mu);f.B=e;Eja(f,function(){Su()})?vu.done||(Nja(),dt(f.j.j,a),wu()):d.C?Su():wu()}else Tu=!0}catch(h){throw ku.reset(),h; }}}; Vu=function(a){vu.B.cancel();Uu=a;vu.done=!0}; Wu=function(a){if(a.B)return a.B;var b=cs(mu).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B}; Xu=function(a,b,c){if(null==a.j)return b.mC|=4,!1;a=mka(a.j,c,b);b.mC|=a;return 0==a}; Su=function(){var a=[new ru(Or)],b=cs(mu);b.B=a;Eja(b,function(){Vu("i")})?vu.done||(Nja(),wu()):Vu("i")}; nka=function(a,b){if(!a.Gb){var c=gu(a,"start",at());c=a.UR.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="962";null!==zu&&(d.v=zu);ho(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=Rja();ho(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+ut(tt(new rt,d));zia(b);a.Gb=!0}}; Yu=function(a,b,c){xu(vu,[a],!at());jja(a,c);4!=c&&ija(a.Ca,c,a.qJ);return gu(a,b,at())}; ika=function(a){Pja(function(){var b=oka();null!=a.B&&(b.sdk=a.B);var c=cs(mu);null!=c.j&&(b.avms=c.j.getName());return b})}; pka=function(a,b,c,d){var e=yja(ku,c);null!==e&&e.Xi!==b&&(a.II(e),e=null);e||(b=a.sG(c,vs(),!1,b),0==ku.B.length&&(hs().C=79463069),Dja([b]),e=b,e.D=Wu(a),d&&(e.bb=d));return e}; qka=function(a,b){var c=a[b];void 0!==c&&0document.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)}; $ka=function(a){if(!a)return Vka;var b=document.createElement("div").style;Wka(a).forEach(function(c){var d=g.Qc&&c in Xka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");dc(d,"--")||dc(d,"var")||(c=Uka(Yka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Ska(c),null!=c&&Uka(Zka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return new g.ne(b.cssText||"",ze)}; Wka=function(a){g.bb(a)?a=g.Lb(a):(a=g.dd(a),g.Hb(a,"cssText"));return a}; g.Ov=function(a){var b,c=b=0,d=!1;a=a.split(ala);for(var e=0;e=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Uv(a,c);var l=(Uv(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else fh;h++)fg.kb()}; g.bw=function(a){this.j=a}; lla=function(){}; cw=function(){}; dw=function(a){this.j=a;this.B=null}; ew=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||Yf(Error("Storage mechanism: Storage unavailable"))}; fw=function(){var a=null;try{a=g.Ta.localStorage||null}catch(b){}dw.call(this,a)}; mla=function(){var a=null;try{a=g.Ta.sessionStorage||null}catch(b){}dw.call(this,a)}; gw=function(a,b){this.B=a;this.j=b+"::"}; g.hw=function(a){var b=new fw;return b.isAvailable()?a?new gw(b,a):b:null}; iw=function(a,b){this.j=a;this.B=b}; jw=function(a){this.j=[];if(a)a:{if(a instanceof jw){var b=a.En();a=a.nm();if(0>=this.j.length){for(var c=this.j,d=0;df?1:2048>f?2:65536>f?3:4}var l=new mw.yy(e);for(b=c=0;cf?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>> 6&63),l[c++]=128|f&63);return l}; nw=function(a){for(var b=a.length;0<=--b;)a[b]=0}; ow=function(a,b,c,d,e){this.K1=a;this.Z7=b;this.Y7=c;this.M7=d;this.o$=e;this.JY=a&&a.length}; pw=function(a,b){this.sX=a;this.NA=0;this.Ru=b}; qw=function(a,b){a.jg[a.pending++]=b&255;a.jg[a.pending++]=b>>>8&255}; rw=function(a,b,c){a.oi>16-c?(a.mj|=b<>16-a.oi,a.oi+=c-16):(a.mj|=b<>>=1,c<<=1;while(0<--b);return c>>>1}; pla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=ola(d[e]++,e))}; qla=function(a){var b;for(b=0;286>b;b++)a.Tj[2*b]=0;for(b=0;30>b;b++)a.gw[2*b]=0;for(b=0;19>b;b++)a.Pi[2*b]=0;a.Tj[512]=1;a.Qr=a.cC=0;a.Bm=a.matches=0}; rla=function(a){8e?yw[e]:yw[256+(e>>>7)];tw(a,h,c);l=zw[h];0!==l&&(e-=Aw[h],rw(a,e,l))}}while(da.Br;){var m=a.rg[++a.Br]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.Qr--;e&&(a.cC-=d[2*m+1])}b.NA=l;for(h=a.Br>>1;1<=h;h--)uw(a,c,h);m=f;do h=a.rg[1],a.rg[1]=a.rg[a.Br--],uw(a,c,1),d=a.rg[1],a.rg[--a.cA]=h,a.rg[--a.cA]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.rg[1]=m++,uw(a,c,1);while(2<= a.Br);a.rg[--a.cA]=a.rg[1];h=b.sX;m=b.NA;d=b.Ru.K1;e=b.Ru.JY;f=b.Ru.Z7;var n=b.Ru.Y7,p=b.Ru.o$,q,r=0;for(q=0;15>=q;q++)a.Nq[q]=0;h[2*a.rg[a.cA]+1]=0;for(b=a.cA+1;573>b;b++){var t=a.rg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.Nq[q]++;var v=0;t>=n&&(v=f[t-n]);var w=h[2*t];a.Qr+=w*(q+v);e&&(a.cC+=w*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.Nq[q];)q--;a.Nq[q]--;a.Nq[q+1]+=2;a.Nq[p]--;r-=2}while(0m||(h[2*d+1]!==q&&(a.Qr+=(q- h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}pla(c,l,a.Nq)}; vla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h=h?a.Pi[34]++:a.Pi[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}}; wla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h=h?(tw(a,17,a.Pi),rw(a,h-3,3)):(tw(a,18,a.Pi),rw(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}}; xla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Tj[2*c])return 0;if(0!==a.Tj[18]||0!==a.Tj[20]||0!==a.Tj[26])return 1;for(c=32;256>c;c++)if(0!==a.Tj[2*c])return 1;return 0}; Cw=function(a,b,c){a.jg[a.MD+2*a.Bm]=b>>>8&255;a.jg[a.MD+2*a.Bm+1]=b&255;a.jg[a.rQ+a.Bm]=c&255;a.Bm++;0===b?a.Tj[2*c]++:(a.matches++,b--,a.Tj[2*(vw[c]+256+1)]++,a.gw[2*(256>b?yw[b]:yw[256+(b>>>7)])]++);return a.Bm===a.pF-1}; Ew=function(a,b){a.msg=Dw[b];return b}; Fw=function(a){for(var b=a.length;0<=--b;)a[b]=0}; Gw=function(a){var b=a.state,c=b.pending;c>a.Ie&&(c=a.Ie);0!==c&&(mw.ez(a.output,b.jg,b.cG,c,a.XA),a.XA+=c,b.cG+=c,a.xT+=c,a.Ie-=c,b.pending-=c,0===b.pending&&(b.cG=0))}; Jw=function(a,b){var c=0<=a.Ok?a.Ok:-1,d=a.Db-a.Ok,e=0;if(0>>3;var h=a.cC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)rw(a,b?1:0,3),sla(a,c,d);else if(4===a.strategy||h===f)rw(a,2+(b?1:0),3),ula(a,Hw,Iw);else{rw(a,4+(b?1:0),3);c=a.aK.NA+1;d=a.HI.NA+1;e+=1;rw(a,c-257,5);rw(a,d-1,5);rw(a,e-4,4);for(f=0;f>>8&255;a.jg[a.pending++]=b&255}; zla=function(a,b){var c=a.NZ,d=a.Db,e=a.jl,f=a.h_,h=a.Db>a.gj-262?a.Db-(a.gj-262):0,l=a.window,m=a.Zu,n=a.gq,p=a.Db+258,q=l[d+e-1],r=l[d+e];a.jl>=a.pY&&(c>>=2);f>a.ac&&(f=a.ac);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&de){a.KA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!== --c);return e<=a.ac?e:a.ac}; Ow=function(a){var b=a.gj,c;do{var d=a.V2-a.ac-a.Db;if(a.Db>=b+(b-262)){mw.ez(a.window,a.window,b,b,0);a.KA-=b;a.Db-=b;a.Ok-=b;var e=c=a.IJ;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.gq[--e],a.gq[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.ye.lj)break;e=a.ye;c=a.window;f=a.Db+a.ac;var h=e.lj;h>d&&(h=d);0===h?c=0:(e.lj-=h,mw.ez(c,e.input,e.nx,h,f),1===e.state.wrap?e.Ud=Mw(e.Ud,c,h,f):2===e.state.wrap&&(e.Ud=Nw(e.Ud,c,h,f)),e.nx+=h,e.ly+=h,c=h);a.ac+=c;if(3<=a.ac+a.Bh)for(d=a.Db-a.Bh, a.Ee=a.window[d],a.Ee=(a.Ee<a.ac+a.Bh););}while(262>a.ac&&0!==a.ye.lj)}; Pw=function(a,b){for(var c;;){if(262>a.ac){Ow(a);if(262>a.ac&&0===b)return 1;if(0===a.ac)break}c=0;3<=a.ac&&(a.Ee=(a.Ee<a.Db?a.Db:2;return 4===b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2}; Qw=function(a,b){for(var c,d;;){if(262>a.ac){Ow(a);if(262>a.ac&&0===b)return 1;if(0===a.ac)break}c=0;3<=a.ac&&(a.Ee=(a.Ee<=a.Ve&&(1===a.strategy||3===a.Ve&&4096a.Db?a.Db:2;return 4===b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2}; Ala=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.ac){Ow(a);if(258>=a.ac&&0===b)return 1;if(0===a.ac)break}a.Ve=0;if(3<=a.ac&&0a.ac&&(a.Ve=a.ac)}3<=a.Ve?(c=Cw(a,1,a.Ve-3),a.ac-=a.Ve,a.Db+=a.Ve,a.Ve=0):(c=Cw(a,0,a.window[a.Db]),a.ac--,a.Db++);if(c&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=0;return 4=== b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2}; Bla=function(a,b){for(var c;;){if(0===a.ac&&(Ow(a),0===a.ac)){if(0===b)return 1;break}a.Ve=0;c=Cw(a,0,a.window[a.Db]);a.ac--;a.Db++;if(c&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=0;return 4===b?(Jw(a,!0),0===a.ye.Ie?3:4):a.Bm&&(Jw(a,!1),0===a.ye.Ie)?1:2}; Rw=function(a,b,c,d,e){this.Q8=a;this.n$=b;this.E$=c;this.m$=d;this.func=e}; Cla=function(){this.ye=null;this.status=0;this.jg=null;this.wrap=this.pending=this.cG=this.Gm=0;this.Nd=null;this.Jn=0;this.method=8;this.AA=-1;this.Zu=this.ST=this.gj=0;this.window=null;this.V2=0;this.head=this.gq=null;this.h_=this.pY=this.strategy=this.level=this.DQ=this.NZ=this.jl=this.ac=this.KA=this.Db=this.hx=this.r0=this.Ve=this.Ok=this.zr=this.yr=this.OP=this.IJ=this.Ee=0;this.Tj=new mw.Dq(1146);this.gw=new mw.Dq(122);this.Pi=new mw.Dq(78);Fw(this.Tj);Fw(this.gw);Fw(this.Pi);this.FW=this.HI= this.aK=null;this.Nq=new mw.Dq(16);this.rg=new mw.Dq(573);Fw(this.rg);this.cA=this.Br=0;this.depth=new mw.Dq(573);Fw(this.depth);this.oi=this.mj=this.Bh=this.matches=this.cC=this.Qr=this.MD=this.Bm=this.pF=this.rQ=0}; Dla=function(a,b){if(!a||!a.state||5b)return a?Ew(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.lj||666===c.status&&4!==b)return Ew(a,0===a.Ie?-5:-2);c.ye=a;var d=c.AA;c.AA=b;if(42===c.status)if(2===c.wrap)a.Ud=0,Kw(c,31),Kw(c,139),Kw(c,8),c.Nd?(Kw(c,(c.Nd.text?1:0)+(c.Nd.Nt?2:0)+(c.Nd.extra?4:0)+(c.Nd.name?8:0)+(c.Nd.comment?16:0)),Kw(c,c.Nd.time&255),Kw(c,c.Nd.time>>8&255),Kw(c,c.Nd.time>>16&255),Kw(c,c.Nd.time>>24&255),Kw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Kw(c,c.Nd.os& 255),c.Nd.extra&&c.Nd.extra.length&&(Kw(c,c.Nd.extra.length&255),Kw(c,c.Nd.extra.length>>8&255)),c.Nd.Nt&&(a.Ud=Nw(a.Ud,c.jg,c.pending,0)),c.Jn=0,c.status=69):(Kw(c,0),Kw(c,0),Kw(c,0),Kw(c,0),Kw(c,0),Kw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),Kw(c,3),c.status=113);else{var e=8+(c.ST-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Db&&(e|=32);c.status=113;Lw(c,e+(31-e%31));0!==c.Db&&(Lw(c,a.Ud>>>16),Lw(c,a.Ud&65535));a.Ud=1}if(69===c.status)if(c.Nd.extra){for(e= c.pending;c.Jn<(c.Nd.extra.length&65535)&&(c.pending!==c.Gm||(c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e)),Gw(a),e=c.pending,c.pending!==c.Gm));)Kw(c,c.Nd.extra[c.Jn]&255),c.Jn++;c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e));c.Jn===c.Nd.extra.length&&(c.Jn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Nd.name){e=c.pending;do{if(c.pending===c.Gm&&(c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e)),Gw(a),e=c.pending,c.pending===c.Gm)){var f=1;break}f=c.Jne&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e));0===f&&(c.Jn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Nd.comment){e=c.pending;do{if(c.pending===c.Gm&&(c.Nd.Nt&&c.pending>e&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e)),Gw(a),e=c.pending,c.pending===c.Gm)){f=1;break}f=c.Jne&&(a.Ud=Nw(a.Ud,c.jg,c.pending-e,e));0===f&&(c.status=103)}else c.status= 103;103===c.status&&(c.Nd.Nt?(c.pending+2>c.Gm&&Gw(a),c.pending+2<=c.Gm&&(Kw(c,a.Ud&255),Kw(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(0!==c.pending){if(Gw(a),0===a.Ie)return c.AA=-1,0}else if(0===a.lj&&(b<<1)-(4>=8,c.oi-=8)):5!==b&&(rw(c,0,3),sla(c,0,0),3===b&&(Fw(c.head),0===c.ac&&(c.Db=0,c.Ok=0,c.Bh=0))),Gw(a),0===a.Ie))return c.AA=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(Kw(c,a.Ud&255),Kw(c,a.Ud>>8&255),Kw(c,a.Ud>>16&255),Kw(c,a.Ud>>24&255),Kw(c,a.ly&255),Kw(c,a.ly>>8&255),Kw(c,a.ly>>16&255),Kw(c,a.ly>>24&255)):(Lw(c,a.Ud>>>16),Lw(c,a.Ud&65535));Gw(a);0a.bv&&(a.bv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new Ela;this.ye.Ie=0;var b=this.ye;var c=a.level,d=a.method,e=a.bv,f=a.t$,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15f||9e||15c||9h||4c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Ud=2===c.wrap?0:1;c.AA=0;if(!Fla){d=Array(16);for(f=h=0;28>f;f++)for(xw[f]=h,e=0;e< 1<f;f++)for(Aw[f]=h,e=0;e<1<>=7;30>f;f++)for(Aw[f]=h<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)Hw[2*e+1]=8,e++,d[8]++;for(;255>=e;)Hw[2*e+1]=9,e++,d[9]++;for(;279>=e;)Hw[2*e+1]=7,e++,d[7]++;for(;287>=e;)Hw[2*e+1]=8,e++,d[8]++;pla(Hw,287,d);for(e=0;30>e;e++)Iw[2*e+1]=5,Iw[2*e]=ola(e,5);Gla=new ow(Hw,ww,257,286,15);Hla=new ow(Iw,zw,0,30,15);Ila=new ow([],Jla,0,19,7);Fla=!0}c.aK=new pw(c.Tj,Gla); c.HI=new pw(c.gw,Hla);c.FW=new pw(c.Pi,Ila);c.mj=0;c.oi=0;qla(c);c=0}else c=Ew(b,-2);0===c&&(b=b.state,b.V2=2*b.gj,Fw(b.head),b.DQ=Sw[b.level].n$,b.pY=Sw[b.level].Q8,b.h_=Sw[b.level].E$,b.NZ=Sw[b.level].m$,b.Db=0,b.Ok=0,b.ac=0,b.Bh=0,b.Ve=b.jl=2,b.hx=0,b.Ee=0);b=c}}else b=-2;if(0!==b)throw Error(Dw[b]);a.header&&(b=this.ye)&&b.state&&2===b.state.wrap&&(b.state.Nd=a.header);if(a.ND){var n;"string"===typeof a.ND?n=nla(a.ND):"[object ArrayBuffer]"===Kla.call(a.ND)?n=new Uint8Array(a.ND):n=a.ND;a=this.ye; f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.ac)b=-2;else{1===b&&(a.Ud=Mw(a.Ud,f,h,0));n.wrap=0;h>=n.gj&&(0===b&&(Fw(n.head),n.Db=0,n.Ok=0,n.Bh=0),c=new mw.yy(n.gj),mw.ez(c,f,h-n.gj,n.gj,0),f=c,h=n.gj);c=a.lj;d=a.nx;e=a.input;a.lj=h;a.nx=0;a.input=f;for(Ow(n);3<=n.ac;){f=n.Db;h=n.ac-2;do n.Ee=(n.Ee<=c[66]||((0,c[83])(c[76],c[48]),null))&&(0,c[83])(c[76],c[81]),(7!==c[66]||(((0,c[new Date("1970-01-01T04:45:26.000+04:45")/1E3])((0,c[new Date("1970-01-01T07:15:26.000+07:15")/1E3])((0,c[60])(c[40],c[76],(0,c[27])()),c[83],c[9],c[50]),c[29],c[72]),((0,c[26])((0,c[64458+-103*Math.pow(5,4)])(c[9], c[35]),c[60],c[12],c[76],(0,c[27])()),(0,c[83])(c[14],c[24]),(0,c[60])(c[12],c[9],(0,c[27])()),c[71])(c[70],c[19]),c[60])(c[40],c[76],(0,c[27])()),0))&&(0,c[17])(c[15],(0,c[71])(c[20],c[14]),(0,c[84])(c[76],c[44]),(((0,c[71])(c[23],c[2]),c[10])(c[22],c[19]),c[10])(c[21],c[72]),c[84],(0,c[84])(c[76],c[61]),(0,c[58])(c[9],c[36]),(0,c[58])(c[2],c[27]),c[19],c[74])}catch(d){(0,c[69])(c[9],c[85],(0,c[78])())===(0,c[51])(c[28]),(0,c[69])(c[9],c[23],(0,c[8])()),(0,c[38])(c[18])}finally{c[10]===new Date("1970-01-01T08:15:08.000+08:15")/ 1E3?(0,c[6])(c[new Date("1969-12-31T14:31:21.000-09:30")/1E3],c[41]):(0,c[19])(c[50],c[18])}try{(7===c[new Date("1970-01-01T05:00:56.000+05:00")/1E3]||(((0,c[67])(c[81],c[54]),c[80])(c[28]),((0,c[36])(c[28],c[63]),c[36])(c[52],c[14]),(0,c[53])(c[36],(0,c[48])(c[44],c[24]),(0,c[36])(c[40],c[75]),(0,c[43])(c[29],c[44]),c[60],c[69]),""))&&((((((0,c[16])(c[68],c[6]),c[3240-Math.pow(8,3)+-2718])(c[56]),c[16])(c[44],c[46]),c[28])(c[8],c[68],(0,c[37])()),c[28])(c[8],c[63],(0,c[37])()),c[80])((0,c[16])(c[40], c[41]),c[10],c[63])|(0,c[28])(c[8],c[68],(0,c[36])()),0!=c[70]&&(-6>c[58]||((((((0,c[16])(c[40],c[43]),c[16])(c[63],c[55]),(0,c[28])(c[54],c[63],(0,c[49])()),c[28])(c[8],c[63],(0,c[49])()),c[80])((0,c[39])(c[34],c[40]),c[26],c[40],c[27]),c[39])(c[11],c[Math.pow(7,1)+2394+-2333]),void 0))&&(0,c[33])(c[83],(0,c[39])(c[82],c[68]),(0,c[80])((0,c[64])(c[17],c[68]),c[39],c[9682-Math.pow(3,3)-9632],c[73]),(0,c[39])(c[24],c[73]),((0,c[26])(c[68],c[21]),c[28])(c[8],c[63],(0,c[36])()),c[73]),-10m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Xpa(a,c,m,b.convertToSafeHtml);n&&(n=Ypa(c,m,p));p=p||{};q=b.context||g.Ta;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0=m||403===VA(p.xhr))return ng(new dB("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0a;a++)this.B.push(0);this.C=0;this.ra=g.OB(window,"mousemove",(0,g.gb)(this.Y,this));this.Z=g.YA((0,g.gb)(this.qa,this),25)}; SB=function(a){g.I.call(this);this.N=[];this.rb=a||this}; TB=function(a,b,c,d){for(var e=0;e=f)Xra(a,m,t,h,v,b.join(),e),l=v;A.Ia(2);break;case 4:return A.return(Promise.reject(l))}})}; Xra=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.xC&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&uC("QUOTA_EXCEEDED",{dbName:wC(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.xC&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),uC("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Yra(a,!1,d,f,b,h.tag),tC(e)):Yra(a,!0,d, f,b,h.tag)}; Yra=function(a,b,c,d,e,f){uC("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; Vra=function(a){this.j=a}; g.LC=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; Zra=function(a,b){return g.MC(a,{query:b},function(c){return c.delete().then(function(){return g.NC(c)})}).then(function(){})}; $ra=function(a,b,c){var d=[];return g.MC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.NC(e)}).then(function(){return d})}; bsa=function(a){return"getAllKeys"in IDBObjectStore.prototype?DC(a.j.getAllKeys(void 0,void 0)):asa(a)}; asa=function(a){var b=[];return g.csa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Tra(c)}).then(function(){return b})}; g.IC=function(a,b,c){return DC(a.j.put(b,c))}; g.MC=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return dsa(a).then(function(d){return Qra(d,c)})}; g.csa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return Sra(a).then(function(e){return Qra(e,c)})}; KC=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.xC;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),g.NC(e)}).then(function(){return d})}; g.OC=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return dsa(a).then(function(d){return Qra(d,c)})}; PC=function(a,b){this.request=a;this.cursor=b}; dsa=function(a){return DC(a).then(function(b){return b?new PC(a,b):null})}; g.NC=function(a){a.cursor.continue(void 0);return dsa(a.request)}; gsa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Ura(h.result,{closed:q}));return r} var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.eea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&uC("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:wC(a)});var v=f(),w=new KC(h.transaction); p&&p(v,function(A){return t.oldVersion=A},w); w.done.catch(function(A){e(A)})}catch(A){e(A)}}); h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())}); t.addEventListener("close",function(){uC("IDB_UNEXPECTEDLY_CLOSED",{dbName:wC(a),dbVersion:t.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; hsa=function(a,b,c){c=void 0===c?{}:c;return gsa(a,b,c)}; QC=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.G(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Pra(c),4); if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw Ira(f,a,"",-1);})}; RC=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0}; isa=function(a,b){return new g.xC("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.SC=function(a,b){if(!b)throw g.AC("openWithToken",wC(a.name));return a.open()}; ksa=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,g.SC(jsa,b),2);c=d.B;return d.return(g.HC(c,["databases"],{Pb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.IC(f,a).then(function(){})})}))})}; TC=function(a,b){var c;return g.G(function(d){if(1==d.j)return a?g.z(d,g.SC(jsa,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})}; lsa=function(a,b){var c,d;return g.G(function(e){return 1==e.j?(c=[],g.z(e,g.SC(jsa,b),2)):3!=e.j?(d=e.B,g.z(e,g.HC(d,["databases"],{Pb:!0,mode:"readonly"},function(f){c.length=0;return g.MC(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.NC(h)})}),3)):e.return(c)})}; msa=function(a,b){return lsa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)}; osa=function(){var a,b,c,d;return g.G(function(e){switch(e.j){case 1:a=zra();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(UC&&rB()&&!oqa()||g.VC)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.Ba(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.z(e,ksa(d,nsa),4);case 4:return g.z(e,TC("yt-idb-test-do-not-use",nsa),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})}; qsa=function(){if(void 0!==psa)return psa;sC=!0;return psa=osa().then(function(a){sC=!1;var b;if(null!=(b=yra())&&b.j){var c;b={hasSucceededOnce:(null==(c=zra())?void 0:c.hasSucceededOnce)||a};var d;null==(d=yra())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; WC=function(){return g.Xa("ytglobal.idbToken_")||void 0}; g.XC=function(){var a=WC();return a?Promise.resolve(a):qsa().then(function(b){(b=b?nsa:void 0)&&g.Va("ytglobal.idbToken_",b);return b})}; rsa=function(a){if(!g.gC())throw a=new g.xC("AUTH_INVALID",{dbName:a}),tC(a),a;var b=g.fC();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; ssa=function(a,b,c,d){var e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.XC(),2);case 2:h=p.B;if(!h)throw l=g.AC("openDbImpl",a,b),g.aB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),tC(l),l;vC(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:rsa(a);g.Ba(p,3);return g.z(p,ksa(m,h),5);case 5:return g.z(p,hsa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Da(p),g.Ba(p,7),g.z(p,TC(m.actualName, h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})}; tsa=function(a,b,c){c=void 0===c?{}:c;return ssa(a,b,!1,c)}; usa=function(a,b,c){c=void 0===c?{}:c;return ssa(a,b,!0,c)}; vsa=function(a,b){b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.XC(),2);if(3!=e.j){c=e.B;if(!c)return e.return();vC(a);d=rsa(a);return g.z(e,QC(d.actualName,b),3)}return g.z(e,TC(d.actualName,c),0)})}; wsa=function(a,b,c){a=a.map(function(d){return g.G(function(e){return 1==e.j?g.z(e,QC(d.actualName,b),2):g.z(e,TC(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; xsa=function(a){var b=void 0===b?{}:b;var c,d;return g.G(function(e){if(1==e.j)return g.z(e,g.XC(),2);if(3!=e.j){c=e.B;if(!c)return e.return();vC(a);return g.z(e,msa(a,c),3)}d=e.B;return g.z(e,wsa(d,b,c),0)})}; ysa=function(a,b){b=void 0===b?{}:b;var c;return g.G(function(d){if(1==d.j)return g.z(d,g.XC(),2);if(3!=d.j){c=d.B;if(!c)return d.return();vC(a);return g.z(d,QC(a,b),3)}return g.z(d,TC(a,c),0)})}; YC=function(a,b){RC.call(this,a,b);this.options=b;vC(a)}; zsa=function(a,b){var c;return function(){c||(c=new YC(a,b));return c}}; g.ZC=function(a,b){return zsa(a,b)}; $C=function(a){return g.SC(Asa(),a)}; Bsa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.EC)()},g.z(l,$C(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.JC(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})}; Csa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.EC)()},g.z(m,$C(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.JC(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})}; Dsa=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,$C(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.HC(b,["coldConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.OC(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Esa=function(a){var b,c;return g.G(function(d){return 1==d.j?g.z(d,$C(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.HC(b,["hotConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.OC(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Fsa=function(){return g.G(function(a){return g.z(a,xsa("ytGcfConfig"),0)})}; Gsa=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Xa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.qa(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))}; eD=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Gsa;this.qd={Lpb:function(){a.G=!0}, Pob:function(){return a.j}, Pqb:function(b){aD(a,b)}, Yr:function(b){a.Yr(b)}, Jqb:function(b){Hsa(a,b)}, n8:function(){return a.coldHashData}, v8:function(){return a.hotHashData}, gpb:function(){return a.B}, Yob:function(){return bD()}, apb:function(){return cD()}, Zob:function(){return g.Xa("yt.gcf.config.coldHashData")}, bpb:function(){return g.Xa("yt.gcf.config.hotHashData")}, frb:function(){Isa(a)}, Dqb:function(){a.Yr(void 0);dD(a);delete eD.instance}, Mqb:function(b){a.C=b}, Uob:function(){return a.C}}}; Jsa=function(){if(!eD.instance){var a=new eD;eD.instance=a}return eD.instance}; Msa=function(a){var b;g.G(function(c){if(1==c.j)return g.aB("start_client_gcf")||g.aB("delete_gcf_config_db")?g.aB("start_client_gcf")?g.z(c,g.XC(),3):c.Ia(2):c.return();2!=c.j&&((b=c.B)&&g.gC()&&!g.aB("delete_gcf_config_db")?(a.G=!0,Isa(a)):(Ksa(a),Lsa(a)));return g.aB("delete_gcf_config_db")?g.z(c,Fsa(),0):c.Ia(0)})}; fD=function(){var a;return null!=(a=cD())?a:g.FA("RAW_HOT_CONFIG_GROUP")}; Nsa=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.B)return l.return(cD());if(!a.G)return b=g.AC("getHotConfig IDB not initialized"),KA(b),l.return(Promise.reject(b));c=WC();d=g.FA("TIME_CREATED_MS");if(!c){e=g.AC("getHotConfig token error");KA(e);l.Ia(2);break}return g.z(l,Esa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return aD(a,f.config),a.Yr(f.hashData),l.return(cD());case 2:Lsa(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.z(l,Bsa(a.B,a.hotHashData,c,d),4);case 4:return a.B? l.return(cD()):(h=new g.eC("Config not available in ytConfig"),KA(h),l.return(Promise.reject(h)))}})}; Psa=function(a){var b,c,d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j)return l.return(bD());if(!a.G)return b=g.AC("getColdConfig IDB not initialized"),KA(b),l.return(Promise.reject(b));c=WC();d=g.FA("TIME_CREATED_MS");if(!c){e=g.AC("getColdConfig");KA(e);l.Ia(2);break}return g.z(l,Dsa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Hsa(a,f.config),Osa(a,f.configData),dD(a,f.hashData),l.return(bD());case 2:Ksa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.z(l,Csa(a.j, a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(bD()):(h=new g.eC("Config not available in ytConfig"),KA(h),l.return(Promise.reject(h)))}})}; Isa=function(a){if(!a.B||!a.j){if(!WC()){var b=g.AC("scheduleGetConfigs");KA(b)}a.D||(a.D=g.gv.Ni(function(){return g.G(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,Nsa(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,Psa(a),7);case 7:g.Ca(c,6);break;case 5:g.Da(c);case 6:a.D&&(a.D=0),g.Aa(c)}})},100))}}; Qsa=function(a,b,c){var d,e,f;return g.G(function(h){switch(h.j){case 1:if(!g.aB("start_client_gcf")){h.Ia(0);break}c&&aD(a,c);a.Yr(b);d=WC();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.z(h,Esa(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,Bsa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})}; Rsa=function(a,b,c){var d,e,f,h;return g.G(function(l){if(1==l.j){if(!g.aB("start_client_gcf"))return l.Ia(0);dD(a,b);return(d=WC())?c?l.Ia(4):g.z(l,Dsa(d),5):l.Ia(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.z(l,Csa(c,b,h,d),0)})}; Ssa=function(){var a=Jsa(),b=(0,g.EC)()-a.C;if(!(0!==a.C&&bsta||h=xta&&(sD++,g.aB("abandon_compression_after_N_slow_zips")?rD===g.bB("compression_disable_point")&&sD>yta&&(pD=!1):pD=!1);zta(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)}; Ata=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.EC)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Xa("yt.logging.gzipForFetch",!1):!0;if(pD&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=rta(h);if(null!=l&&(l>sta||l=xta)if(sD++,g.aB("abandon_compression_after_N_slow_zips")||g.aB("abandon_compression_after_N_slow_zips_lr")){b=sD/rD;var n=yta/g.bB("compression_disable_point");0=n&&(pD=!1)}else pD=!1;zta(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return KA(p),a}}else return a}; rta=function(a){try{return(new Blob(a.split(""))).size}catch(b){return KA(b),null}}; zta=function(a){g.aB("gel_compression_csi_killswitch")||!g.aB("log_gel_compression_latency")&&!g.aB("log_gel_compression_latency_lr")||jta("gel_compression",a,{sampleRate:.1})}; uD=function(a){var b=this;this.iI=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; this.aA=function(){}; this.now=Date.now;this.RD=!1;this.qd={Lqb:function(p){b.Cf=p}, hrb:function(){b.gC()}, Z6:function(){b.VN()}, PE:function(p){return g.G(function(q){return g.z(q,b.PE(p),0)})}, AL:function(p,q){return b.AL(p,q)}, DL:function(){b.DL()}}; var c;this.S1=null!=(c=a.S1)?c:100;var d;this.R0=null!=(d=a.R0)?d:1;var e;this.J0=null!=(e=a.J0)?e:2592E6;var f;this.C0=null!=(f=a.C0)?f:12E4;var h;this.Q0=null!=(h=a.Q0)?h:5E3;var l;this.Cf=null!=(l=a.Cf)?l:void 0;this.OI=!!a.OI;var m;this.rI=null!=(m=a.rI)?m:.1;var n;this.lL=null!=(n=a.lL)?n:10;a.handleError&&(this.handleError=a.handleError);a.aA&&(this.aA=a.aA);a.RD&&(this.RD=a.RD);a.iI&&(this.iI=a.iI);this.fb=a.fb;this.Vn=a.Vn;this.Fh=a.Fh;this.hh=a.hh;this.sendFn=a.sendFn;this.MR=a.MR;this.YQ= a.YQ;tD(this)&&(!this.fb||this.fb("networkless_logging"))&&Bta(this)}; Bta=function(a){tD(a)&&!a.RD&&(a.j=!0,a.OI&&Math.random()<=a.rI&&a.Fh.e7(a.Cf),a.DL(),a.hh.Eh()&&a.gC(),a.hh.listen(a.MR,a.gC.bind(a)),a.hh.listen(a.YQ,a.VN.bind(a)))}; Eta=function(a,b){if(!tD(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var h,l,m,n;return g.G(function(p){switch(p.j){case 1:h=Cta(f);(l=Dta(f))&&a.fb&&a.fb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.lL)){p.Ia(2);break}if(!a.hh.HL){p.Ia(3);break}return g.z(p,a.hh.HL(),3);case 3:if(a.hh.Eh()){p.Ia(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||void 0===(null==(m= b)?void 0:m.id)){p.Ia(6);break}return g.z(p,a.Fh.wS(b.id,a.Cf,!1),6);case 6:return p.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.lL)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ia(8);break}return b.sendCount=a?!1:!0}; Dta=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)}; Fta=function(){if(wD)return wD();var a={};wD=g.ZC("LogsDatabaseV2",{Mr:(a.LogsRequestsStore={hn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.FC(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.LC(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&GC(b,"sapisid");c(9)&&GC(b,"SWHealthLog")}, version:9});return wD()}; xD=function(a){return g.SC(Fta(),a)}; Hta=function(a,b){var c,d,e,f;return g.G(function(h){if(1==h.j)return c={startTime:(0,g.EC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,xD(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.FA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.JC(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.EC)();Gta(c);return h.return(f)})}; Ita=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(1==p.j)return c={startTime:(0,g.EC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,xD(b),2);if(3!=p.j)return d=p.B,e=g.FA("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.EC)()],l=IDBKeyRange.bound(f,h),m="prev",g.aB("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.HC(d,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(q){return g.OC(q.objectStore("LogsRequestsStore").index("newRequestV2"), {query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),"NEW"===a&&(n.status="QUEUED",r.update(n)))})}),3); c.ticks.tc=(0,g.EC)();Gta(c);return p.return(n)})}; Jta=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,xD(b),2);c=d.B;return d.return(g.HC(c,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.IC(f,h).then(function(){return h})})}))})}; Kta=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.G(function(f){if(1==f.j)return g.z(f,xD(b),2);e=f.B;return f.return(g.HC(e,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.IC(l,m).then(function(){return m})):g.CC.resolve(void 0)})}))})}; Lta=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.z(d,xD(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})}; Mta=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,xD(a),2);b=d.B;c=(0,g.EC)()-2592E6;return g.z(d,g.HC(b,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){return g.MC(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.NC(f)})})}),0)})}; Nta=function(){g.G(function(a){return g.z(a,xsa("LogsDatabaseV2"),0)})}; Gta=function(a){g.aB("nwl_csi_killswitch")||jta("networkless_performance",a,{sampleRate:1})}; Pta=function(a){return g.SC(Ota(),a)}; Qta=function(a){var b,c;g.G(function(d){if(1==d.j)return g.z(d,Pta(a),2);b=d.B;c=(0,g.EC)()-2592E6;return g.z(d,g.HC(b,["SWHealthLog"],{mode:"readwrite",Pb:!0},function(e){return g.MC(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.NC(f)})})}),0)})}; Rta=function(a){var b;return g.G(function(c){if(1==c.j)return g.z(c,Pta(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})}; g.yD=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.pB()){if(a){a=g.be(g.he(a));if(a===g.ge.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.pe?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.zqb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.yqb&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.Aqb&&(a=a.replace(/(\t+)/g,'$1')), l=re(a));a=g.We(g.mn(g.qe(l).toString()))}g.ec(a)||(l=Bf("IFRAME",{src:'javascript:""',style:"display:none"}),lf(l).body.appendChild(l))}}else if(e)Ppa(a,b,"POST",e,d);else if(g.FA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Ppa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Eka({url:a});if(m.C&&m.B||m.D){var n=rn(g.eo(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==no(a,"ri"));break b}}catch(q){}p=!1}p?Sta(a)?(b&&b(),l=!0):l=!1:l=!1;l||Tta(a,b)}}; Sta=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; Tta=function(a,b){var c=new Image,d=""+Uta++;Vta[d]=c;c.onload=c.onerror=function(){b&&Vta[d]&&b();delete Vta[d]}; c.src=a}; Wta=function(a){var b=g.fo(a);if(!g.aB("update_chrome_api_monitoring_allowed_features")&&"www.googleadservices.com"!==b)return a;var c,d,e;return(g.aB("update_chrome_api_monitoring_allowed_features")?null==(c=document.featurePolicy)?0:c.allowedFeatures().includes("attribution-reporting"):"function"===typeof(null==(d=document.featurePolicy)?void 0:d.features)&&(null==(e=document.featurePolicy)?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"}; zD=function(){Xta||(Xta=new oC("yt.offline"));return Xta}; Yta=function(a){if(g.aB("offline_error_handling")){var b=zD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);zD().set("errors",b,2592E3,!0)}}; AD=function(){this.j=new Map;this.B=!1}; BD=function(){if(!AD.instance){var a=g.Xa("yt.networkRequestMonitor.instance")||new AD;g.Va("yt.networkRequestMonitor.instance",a);AD.instance=a}return AD.instance}; CD=function(){g.Dd.call(this);var a=this;this.B=!1;this.j=Jka();this.j.listen("networkstatus-online",function(){if(a.B&&g.aB("offline_error_handling")){var b=zD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.eC(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.IA(d)}zD().set("errors",{},2592E3,!0)}}})}; Zta=function(){if(!CD.instance){var a=g.Xa("yt.networkStatusManager.instance")||new CD;g.Va("yt.networkStatusManager.instance",a);CD.instance=a}return CD.instance}; g.DD=function(a){a=void 0===a?{}:a;g.Dd.call(this);var b=this;this.j=this.D=0;this.B=Zta();var c=g.Xa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){$ta(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){$ta(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; $ta=function(a,b){a.rateLimit?a.j?(g.gv.Oj(a.D),a.D=g.gv.Ni(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.EC)())},a.rateLimit-((0,g.EC)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.EC)()):a.dispatchEvent(b)}; ED=function(){var a=uD.call;aua||(aua=new g.DD({Wpb:!0,rob:!0}));a.call(uD,this,{Fh:{e7:Mta,Dz:Lta,bY:Ita,j$:Jta,wS:Kta,set:Hta},hh:aua,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;KA(new g.eC(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.IA(b)}, aA:KA,sendFn:bua,now:g.EC,W2:Yta,Vn:g.lC(),MR:"publicytnetworkstatus-online",YQ:"publicytnetworkstatus-offline",OI:!0,rI:.1,lL:g.bB("potential_esf_error_limit",10),fb:g.aB,RD:!(g.gC()&&"www.youtube-nocookie.com"!==g.fo(document.location.toString()))});this.C=new g.Lo;g.aB("networkless_immediately_drop_all_requests")&&Nta();ysa("LogsDatabaseV2")}; FD=function(){var a=g.Xa("yt.networklessRequestController.instance");a||(a=new ED,g.Va("yt.networklessRequestController.instance",a),g.aB("networkless_logging")&&g.XC().then(function(b){a.Cf=b;Bta(a);a.C.resolve();a.OI&&Math.random()<=a.rI&&a.Cf&&Qta(a.Cf);g.aB("networkless_immediately_drop_sw_health_store")&&cua(a)})); return a}; cua=function(a){var b;g.G(function(c){if(!a.Cf)throw b=g.AC("clearSWHealthLogsDb"),b;return c.return(Rta(a.Cf).catch(function(d){a.handleError(d)}))})}; bua=function(a,b,c,d){d=void 0===d?!1:d;b=g.aB("web_fp_via_jspb")?Object.assign({},b):b;g.aB("use_cfr_monitor")&&dua(a,b);if(g.aB("use_request_time_ms_header"))b.headers&&RA(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.EC)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.EC)())}c&&0===Object.keys(b).length?g.yD(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),qD(a,b.postBody, b,g.cB,d)):qD(a,JSON.stringify(b.postParams),b,Tpa,d):g.cB(a,b)}; eua=function(a,b){g.aB("use_event_time_ms_header")&&RA(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.EC)())));return b}; dua=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){BD().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){BD().requestComplete(a,!0);d(e,f)}}; g.GD=function(a){this.config_=null;a?this.config_=a:Tsa()&&(this.config_=g.gD())}; g.HD=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?FD().writeThenSend(n,f):FD().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));qD(n,r,f,g.cB,q)}else qD(n,JSON.stringify(f.postParams),f,Tpa,q)}else g.aB("web_all_payloads_via_jspb")?g.cB(n,f):Tpa(n,f)}catch(t){if("InvalidAccessError"=== t.name)KA(Error("An extension is blocking network request."));else throw t;}} !g.FA("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&KA(new g.eC("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.eC("innertube xhrclient not ready",b,c,d),g.IA(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.XY;h&&(c=h);var l=a.config_.YY||!1;h=dta(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.aQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=PA(""+c+b,l);g.Xa("ytNetworklessLoggingInitializationOptions")&& fua.isNwlInitialized?qsa().then(function(p){e(p)}):e(!1)}; g.MD=function(a,b,c){var d=g.ID();if(d&&b){var e=d.subscribe(a,function(){function f(){JD[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,h)} var h=arguments;try{g.KD[a]?f():g.XA(f,0)}catch(l){g.IA(l)}},c); JD[e]=!0;LD[a]||(LD[a]=[]);LD[a].push(e);return e}return 0}; gua=function(a){var b=g.MD("LOGGED_IN",function(c){a.apply(void 0,arguments);g.ND(b)})}; g.ND=function(a){var b=g.ID();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.ac(a,function(c){b.unsubscribeByKey(c);delete JD[c]}))}; g.OD=function(a,b){var c=g.ID();return c?c.publish.apply(c,arguments):!1}; iua=function(a){var b=g.ID();if(b)if(b.clear(a),a)hua(a);else for(var c in LD)hua(c)}; g.ID=function(){return g.Ta.ytPubsubPubsubInstance}; hua=function(a){LD[a]&&(a=LD[a],g.ac(a,function(b){JD[b]&&delete JD[b]}),a.length=0)}; g.kua=function(a,b,c){jua(a,b,void 0===c?null:c)}; jua=function(a,b,c){c=void 0===c?null:c;var d=lua(a),e=document.getElementById(d),f=e&&Iqa(e),h=e&&!f;f?b&&b():(b&&(f=g.MD(d,b),b=""+g.fb(b),mua[b]=f),h||(e=nua(a,d,function(){Iqa(e)||(Hqa(e),g.OD(d),g.XA(function(){iua(d)},0))},c)))}; nua=function(a,b,c,d){d=void 0===d?null:d;var e=g.Cf("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.Ve(e,g.Xw(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; lua=function(a){var b=document.createElement("a");g.Me(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+af(a)}; QD=function(a){var b=g.Ja.apply(1,arguments);if(!PD(a)||b.some(function(d){return!PD(d)}))throw Error("Only objects may be merged."); b=g.u(b);for(var c=b.next();!c.done;c=b.next())oua(a,c.value)}; oua=function(a,b){for(var c in b)if(PD(b[c])){if(c in a&&!PD(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});oua(a[c],b[c])}else if(pua(b[c])){if(c in a&&!pua(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);qua(a[c],b[c])}else a[c]=b[c];return a}; qua=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,PD(c)?a.push(oua({},c)):pua(c)?a.push(qua([],c)):a.push(c);return a}; PD=function(a){return"object"===typeof a&&!Array.isArray(a)}; pua=function(a){return"object"===typeof a&&Array.isArray(a)}; RD=function(a){g.I.call(this);this.B=a}; SD=function(a){RD.call(this,!0);this.j=a}; rua=function(a,b){g.I.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.gb)(a,b);this.j=new g.xv(function(){return d(c.qa)},300); g.N(this,this.j);this.Y=this.Z=Infinity}; sua=function(a,b){if(!b)return!1;for(var c=0;c=d.length&&Oua(b)===d[0])return d;for(var e=[],f=0;f=a?cva||(cva=dva(function(){f();cva=void 0},0)):10<=h-m&&(eva(c,d.tier),l.D=h)}; Wua=function(a,b){if("log_event"===a.endpoint){nE(a);var c=oE(a),d=new Map;d.set(c,[a.payload]);var e=Tua(a.payload)||"";b&&(rE=new b);return new g.kg(function(f,h){rE&&rE.isReady()?fva(d,rE,f,h,{bypassNetworkless:!0},!0,qE(e)):f()})}}; Zua=function(a,b,c){if("log_event"===b.endpoint){nE(void 0,b);var d=oE(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(rE=new c);return new g.kg(function(f){rE&&rE.isReady()?gva(e,rE,f,{bypassNetworkless:!0},!0,qE(a)):f()})}}; oE=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new CA;c.videoId?d.setVideoId(c.videoId):c.playlistId&&ik(d,2,sE,ij(c.playlistId));tE[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),uE[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; ava=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.kg(function(e,f){var h=bva(c,d),l=h.C;h.C=!1;hva(h.B);hva(h.j);h.j=0;rE&&rE.isReady()?void 0===d&&g.aB("enable_web_tiered_gel")?iva(e,f,a,b,c,300,l):iva(e,f,a,b,c,d,l):(eva(c,d),e())})}; iva=function(a,b,c,d,e,f,h){var l=rE;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lE().extractMatchingEntries(q),m.set(d,b),gva(m,l,a,c,!1,h)):(m=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lE().extractMatchingEntries(q),n.set(d,m), fva(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(pE));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.aB("enable_web_tiered_gel")?lE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):lE().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0=nva&&c():c()},e); d.B=e}; fva=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.EC)()),m=a.size,n=ova(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={TQ:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,HR:void 0,jR:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.nd({context:g.$sa(b.config_||g.gD())});if(!g.bb(q)&&!g.aB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=uE[p])&&pva(h.batchRequest,p,q);delete uE[p];h.dangerousLogToVisitorSession= "visitorOnlyApprovedKey"===p;qva(h.batchRequest,l,h.dangerousLogToVisitorSession);rva(e);h.HR=function(r){g.aB("start_client_gcf")&&g.gv.Ni(function(){return g.G(function(t){return g.z(t,sva(r),0)})}); m--;m||c()}; h.TQ=0;h.jR=function(r){return function(){r.TQ++;if(e.bypassNetworkless&&1===r.TQ)try{g.HD(b,n,r.batchRequest,tva({writeThenSend:!0},r.dangerousLogToVisitorSession,r.HR,r.jR,f)),vE=!1}catch(t){g.IA(t),d()}m--;m||c()}}(h); try{g.HD(b,n,h.batchRequest,tva(e,h.dangerousLogToVisitorSession,h.HR,h.jR,f)),vE=!1}catch(r){g.IA(r),d()}}}; gva=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.EC)()),l={value:a.size},m=new Map([].concat(g.qa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new upa;var r=b.config_||g.gD(),t=new hy,v=new by;Q(v,1,r.ZP);Q(v,2,r.YP);S(v,16,r.WY);Q(v,17,r.innertubeContextClientVersion);if(r.RJ){var w=r.RJ,A=new Zx;w.coldConfigData&&Q(A,1,w.coldConfigData);w.appInstallData&&Q(A,6,w.appInstallData);w.coldHashData&&Q(A,3,w.coldHashData);w.hotHashData&& A.Yr(w.hotHashData);Hk(v,Zx,62,A)}(w=g.Ta.devicePixelRatio)&&1!=w&&Yk(v,65,w);w=Lpa();""!==w&&Q(v,54,w);w=Mpa();if(0yva&&(a=1);EA("BATCH_CLIENT_COUNTER",a);return a}; pva=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}]}; nE=function(a,b){if(!g.Xa("yt.logging.transport.enableScrapingForTest")){var c=Kpa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))zva=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",zva),g.Va("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Va("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Va("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Xa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Xa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Xa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Xa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e>3;switch(e&7){case 0:e=uwa(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=uwa(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)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}; xwa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;dQE.size){QE.set(n,[a,b,c,l]);return}g.aB("il_attach_cache_limit")&&1E3Math.random()&&g.JE(Error(a))}; QF=function(a,b,c){return a?!0:(g.JE(new g.eC(b,c)),!1)}; RF=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.eC(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=lya(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.JE(a)}}; g.SF=function(a,b){this.state=a;this.bB=b}; UF=function(a,b){return g.TF(a.state,b)&&!g.TF(a.bB,b)?1:!g.TF(a.state,b)&&g.TF(a.bB,b)?-1:0}; g.VF=function(a,b){return 0e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.dG=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)}; eG=function(a,b,c,d,e,f){JF.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()}; sya=function(a,b,c,d){IF.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; fG=function(a,b){this.B=a;this.j=b}; tya=function(a,b){return a.B+b*(a.j-a.B)}; gG=function(a,b,c){return a.j-a.B?g.Ce((b-a.B)/(a.j-a.B),0,1):null!=c?c:Infinity}; hG=function(a,b){g.iF.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.N(this,this.B);this.progressBar=this.Fa("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; iG=function(a,b,c,d,e,f){jF.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Fa("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.j=this.Fa("ytp-ad-player-overlay-instream-info");this.D=null;uya(this)&&(a=Bf("div"),g.Fv(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new sya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(a),c.init(ZE("ad-title"),{text:b.title},this.macros),g.N(this,c)),this.D=a);this.G=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Ea=this.Fa("ytp-ad-player-overlay-progress-bar"); this.ra=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.N(this,this.B);this.hide()}; uya=function(a){a=a.api.U();return g.jG(a)&&a.B}; vya=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.lo("/sharing_services",a);g.yD(d)}; g.kG=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; lG=function(a){this.j=new aw(a)}; wya=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return("WEB"===g.FA("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.FA("INNERTUBE_CLIENT_NAME"))&&a}; mG=function(a){if(g.FA("LOGGED_IN",!0)&&wya()){var b=g.FA("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.fo(window.location.href);c&&b.push(c);c=g.fo(a);g.Fb(b,c)||!c&&dc(a,"/")?(b=go(a),(b=zfa(b))?(b=mwa(b),b=(b=g.mB(b)||null)?NA(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;wya()?(d||(d=g.FA("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&lwa(a,b)}}; g.xya=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.lo(a,b);mG(a);c=g.he(a+c);d=d.location;c=me(c);void 0!==c&&(d.href=c)}; g.yya=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.FA("EVENT_ID");d&&(b.ei||(b.ei=d));b&&lwa(a,b);c||(mG(a),g.xya(a))}; g.nG=function(a,b,c,d,e){e=void 0===e?!1:e;c&&lwa(a,c);c=g.he(a);var f=g.be(c);a!=f&&KA(Error("Unsafe window.open URL: "+a));a=f;b=b||af(a).toString(36);try{var h=NA(a);if(g.aB("replace_client_url_parsing_with_server_signal")){if(e){zya(a,b);return}}else if("2"===(null==h?void 0:h.ase)){zya(a,b);return}}catch(l){g.IA(l)}mG(a);g.Qe(c,b,d)}; zya=function(a,b){a=Wta(a);mG(a);g.Qe(a,b,"attributionsrc")}; Bya=function(a){Aya=a&&a.data}; Dya=function(a){Cya=a&&a.data}; Fya=function(a){Eya=a&&a.data}; Hya=function(){Gya=Eya=Cya=Aya=null}; Jya=function(){var a=void 0===a?window.location.href:a;if(g.aB("kevlar_disable_theme_param"))return null;rn(g.eo(5,a));try{var b=g.OA(a).theme;return Iya.get(b)||null}catch(c){}return null}; oG=function(){this.j={};if(this.B=eqa()){var a=g.mB("CONSISTENCY");a&&Kya(this,{encryptedTokenJarContents:a})}}; Kya=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c); a.B&&g.lB("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; pG=function(){var a=g.FA("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.FA("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Lya(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)}; Lya=function(a){return void 0===a.localStorage?new oC("yt-client-location"):a.localStorage}; g.qG=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.FA("INNERTUBE_CONTEXT");if(!d)return g.IE(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.nd(d);g.aB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.FA("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.bC();var h="USER_INTERFACE_THEME_LIGHT";g.cC(0,165)?h="USER_INTERFACE_THEME_DARK":g.cC(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.aB("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:Jya()||h;e.userInterfaceTheme=f;if(!b){if(f=ura())e.connectionType=f;g.aB("web_log_effective_connection_type")&&(f=wra())&&(d.client.effectiveConnectionType=f)}var l;if(g.aB("web_log_memory_total_kbytes")&&(null==(l=g.Ta.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ta.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.aB("web_gcf_hashes_innertube")&&(f=Ssa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo|| {},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.OA(g.Ta.location.href);!g.aB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ta.location.href},g.aB("kevlar_woffle")&&ira.instance&&(m=ira.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=jra(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.aB("web_lr_app_quality_killswitch")&&(m=g.FA("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.FA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.aB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!== typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=Lpa())?e.experimentsToken=n:delete e.experimentsToken;n=Mpa();oG.instance||(oG.instance=new oG);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.cd(oG.instance.j)});!g.aB("web_prequest_context_killswitch")&&(n=g.FA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.bC();n=g.cC(0,58);e=e.get("gsml","");d.user= Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.aB("warm_op_csn_cleanup")?c&&(b=g.FE())&&(d.clientScreenNonce=b):!b&&(b=g.FE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Xa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;pG.getInstance().setLocationOnInnerTubeContext(d);try{var p=UA(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value), w=v.next().value,A=v.next().value;p=w;q=A;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}var D;if(g.aB("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(D=d.client)?void 0:D.clientName)){var F=g.FA("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.IE(H)}return d}; Oya=function(a,b){if(!a)return!1;var c,d=null==(c=g.V(a,Mya))?void 0:c.signal;if(d&&b.Wx)return!!b.Wx[d];var e;if((c=null==(e=g.V(a,Nya))?void 0:e.request)&&b.nO)return!!b.nO[c];for(var f in a)if(b.gO[f])return!0;return!1}; Pya=function(a){var b={"Content-Type":"application/json"};g.FA("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.FA("EOM_VISITOR_DATA"):g.FA("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.FA("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.FA("LOGGED_IN",!1);g.FA("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.FA("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.FA("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.FA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= a),(a=g.FA("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.FA("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; Qya=function(){this.j={}}; rG=function(){this.mappings=new Qya}; sG=function(a){return function(){return new a}}; Sya=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Rya[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Rya).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]}; g.tG=function(a){return"/youtubei/v1/"+Sya(a)}; Tya=function(){}; uG=function(){}; vG=function(){}; wG=function(a){return g.Xa("ytcsi."+(a||"")+"data_")||Uya(a)}; Vya=function(){var a=wG();a.info||(a.info={});return a.info}; xG=function(a){a=wG(a);a.metadata||(a.metadata={});return a.metadata}; yG=function(a){a=wG(a);a.tick||(a.tick={});return a.tick}; zG=function(a){a=wG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; Wya=function(a){a=zG(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; AG=function(a){var b=wG(a).nonce;b||(b=g.VD(16),wG(a).nonce=b);return b}; Uya=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b}; Xya=function(){var a=g.Xa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a}; BG=function(a){a=a||"";var b=Yya();if(b[a])return b[a];var c=Xya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; Zya=function(a){a=a||"";var b=Yya();b[a]&&delete b[a];var c=Xya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; Yya=function(){var a=g.Xa("ytcsi.reference");if(a)return a;Xya();return g.Xa("ytcsi.reference")}; CG=function(a){return $ya[a]||"LATENCY_ACTION_UNKNOWN"}; aza=function(a,b){iD.call(this,1,arguments);this.We=b}; DG=function(){this.j=0}; IG=function(){DG.instance||(DG.instance=new DG);return DG.instance}; KG=function(a,b){JG[b]=JG[b]||{count:0};var c=JG[b];c.count++;c.time=(0,g.EC)();a.j||(a.j=g.jC(0,function(){var d=(0,g.EC)(),e;for(e in JG)JG[e]&&6E41E5*Math.random()&&(c=new g.eC("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.JE(c)),!0):!1}; bza=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; cza=function(){var a;if(g.aB("csi_use_performance_navigation_timing")||g.aB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==LG?void 0:null==(a=LG.getEntriesByType)?void 0:null==(b=a.call(LG,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=MG(e.requestStart),e.responseEnd=MG(e.responseEnd),e.redirectStart=MG(e.redirectStart),e.redirectEnd=MG(e.redirectEnd),e.domainLookupEnd=MG(e.domainLookupEnd),e.connectStart=MG(e.connectStart), e.connectEnd=MG(e.connectEnd),e.responseStart=MG(e.responseStart),e.secureConnectionStart=MG(e.secureConnectionStart),e.domainLookupStart=MG(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=LG.timing}else a=g.aB("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(LG.timing)):LG.timing;return a}; MG=function(a){return Math.round(NG()+a)}; NG=function(){return(g.aB("csi_use_time_origin")||g.aB("csi_use_time_origin_tvhtml5"))&&LG.timeOrigin?Math.floor(LG.timeOrigin):LG.timing.navigationStart}; PG=function(a,b){OG("_start",a,b)}; aH=function(a,b,c){c=void 0===c?!1:c;if(!g.aB("web_csi_action_sampling_enabled")||!wG(b).actionDisabled)if(g.aB("web_csi_via_jspb")&&!c){c=new qA;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=NG()&&0c.duration?d:c},{duration:0}))&&0=c)c=!1;else{var d=AG(a);c=0!==Owa(d)%c}c&&(wG(a).actionDisabled=!0);BG(a||"").info.actionType=a;b.cttAuthInfo&&(wG(a).cttAuthInfo=b.cttAuthInfo);EA(a+"TIMING_ACTION",a);g.JA(PG)(b.startTime,a);c={actionType:CG(a)};b.Xpb&&(c.previousAction=CG(g.FA("TIMING_ACTION")));(d=g.FE())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.fH(c,a);sza(!0,a)})()}; yza=function(a){g.JA(function(){dH(a)&&eH("aa",void 0,a);Zya(a);cH(a)})()}; dH=function(a){return g.JA(function(){return hH("_start",a)})()}; g.fH=function(a,b,c){g.JA(aH)(a,b,void 0===c?!1:c)}; eH=function(a,b,c){return g.JA(OG)(a,b,c)}; zza=function(a){g.JA(qza)("action_finished",a,void 0)}; hH=function(a,b){return g.JA(function(){var c=yG(b);return a in c})()}; Bza=function(a){if(!g.aB("universal_csi_network_ticks"))return"";a=rn(g.eo(5,a))||"";for(var b=Object.keys(Aza),c=0;c=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]}; jAa=function(){this.state=1;this.Cq=null}; lAa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Gc(2),g.kua(c,function(){if(window[h])kAa(a,d,h,e);else{a.Gc(3);var l=lua(c),m=document.getElementById(l);m&&(iua(l),m.parentNode.removeChild(m));g.JE(new g.eC("Unable to load Botguard","from "+c))}},f)):b?(f=g.Cf("SCRIPT"),b instanceof xe?(f.textContent=ye(b),Ue(f)):f.textContent=b,f.nonce=Re(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?kAa(a,d,h,e):(a.Gc(4),g.JE(new g.eC("Unable to load Botguard from JS")))): g.JE(new g.eC("Unable to load VM; no url or JS provided"))}; kAa=function(a,b,c,d){a.Gc(5);try{var e=new Mo({program:b,globalName:c,D0:g.aB("att_web_record_metrics"),WZ:"aGIf"});e.WS.then(function(){a.Gc(6);d&&d(b)}); a.US(e)}catch(f){a.Gc(7),f instanceof Error&&g.JE(f)}}; mAa=function(){var a=g.Xa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null}; yH=function(){jAa.apply(this,arguments)}; nAa=function(){}; oAa=function(a,b,c){for(var d=!1,e=g.u(a.aj.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Xa&&(d=!0);if(d){a:if(!c){a=g.u(a.aj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Xa){c=d.layoutId;break a}c=void 0}c?b.EP(c):RF("No triggering layout ID available when attempting to mute.")}}; pAa=function(a,b){this.Yk=a;this.Zn=b}; qAa=function(){}; rAa=function(){}; tAa=function(a){g.I.call(this);var b=this;this.Xc=a;this.j=new Map;zH(this,"commandExecutorCommand",function(c,d,e){sAa(b,c.commands,d,e)}); zH(this,"clickTrackingParams",function(){})}; uAa=function(a,b){zH(a,b.gr(),function(c,d,e){b.Jt(c,d,e)})}; zH=function(a,b,c){a.Ma();a.j.get(b)&&g.IE(Error("Extension name "+b+" already registered"));a.j.set(b,c)}; sAa=function(a,b,c,d){b=void 0===b?[]:b;a.Ma();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.V(h,vAa)||g.V(h,wAa)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())AH(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())AH(a,e.value,c,d)}; AH=function(a,b,c,d){a.Ma();b.loggingUrls&&xAa(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?a.Xc.get().Gu("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.Xc.get().Gu("innertubeCommand",{confirmDialogEndpoint:f}):yAa.hasOwnProperty(e)||xAa(a,e,f,c,d)}}; xAa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.IE(f)}else b=new g.eC("Unhandled field",b),g.JE(b)}; zAa=function(a,b,c){this.Lf=a;this.j=b;this.Oa=c}; BH=function(a){this.value=a}; CH=function(a){this.value=a}; DH=function(a){this.value=a}; AAa=function(a){this.value=a}; BAa=function(a){this.value=a}; EH=function(a){this.value=a}; FH=function(a){this.value=a}; CAa=function(){BH.apply(this,arguments)}; DAa=function(a){this.value=a}; EAa=function(a){this.value=a}; FAa=function(a){this.value=a}; GAa=function(a){this.value=a}; HAa=function(a){this.value=a}; GH=function(a){this.value=a}; HH=function(a){this.value=a}; IH=function(a){this.value=a}; JH=function(a){this.value=a}; KH=function(a){this.value=a}; LH=function(){BH.apply(this,arguments)}; MH=function(a){this.value=a}; NH=function(a){this.value=a}; OH=function(a){this.value=a}; PH=function(a){this.value=a}; QH=function(a){this.value=a}; IAa=function(a){this.value=a}; JAa=function(a){this.value=a}; RH=function(a){this.value=a}; KAa=function(a){this.value=a}; LAa=function(a){this.value=a}; MAa=function(a){this.value=a}; NAa=function(a){this.value=a}; SH=function(a){this.value=a}; TH=function(a){this.value=a}; UH=function(a){this.value=a}; VH=function(a){this.value=a}; OAa=function(a){this.value=a}; WH=function(a){this.value=a}; XH=function(a){this.value=a}; YH=function(a){this.value=a}; PAa=function(a){this.value=a}; ZH=function(a){this.value=a}; $H=function(a){this.value=a}; aI=function(a){this.value=a}; bI=function(a){this.value=a}; cI=function(a){this.value=a}; dI=function(a){this.value=a}; eI=function(a){this.value=a}; fI=function(a){this.value=a}; gI=function(a){this.value=a}; QAa=function(a){this.value=a}; hI=function(a){this.value=a}; iI=function(a){this.value=a}; jI=function(a){this.value=a}; RAa=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(){BH.apply(this,arguments)}; SAa=function(a){this.value=a}; oI=function(){BH.apply(this,arguments)}; pI=function(){BH.apply(this,arguments)}; TAa=function(){BH.apply(this,arguments)}; qI=function(){BH.apply(this,arguments)}; UAa=function(){BH.apply(this,arguments)}; VAa=function(a){this.value=a}; rI=function(a){this.value=a}; WAa=function(a){this.value=a}; sI=function(a){this.value=a}; uI=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!tI(a.Ba,c.value))return!1;return!0}; vI=function(){return""}; XAa=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}}; wI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Mk=c;this.Nv=d;this.args=[];b&&this.args.push(b)}; xI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Mk=c;this.Nv=d;this.args=[];b&&this.args.push(b)}; yI=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)}); this.j=b}; tI=function(a,b){return a.j.has(b)}; zI=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()}; AI=function(a){return Array.from(a.j.keys())}; BI=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!tI(a.Ba,c.value))return!1;return!0}; ZAa=function(a){var b;return(null==(b=YAa.get(a))?void 0:b.ey)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; aBa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:$Aa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=CI(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(CI(d.value)); b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(CI(a.value))}return c}; bBa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:$Aa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; CI=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c}; cBa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.$r(d||[],function(e){return aBa(a,e)}),b.debugData=Object.assign({},c&&0=b?b:0;this.j=a=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; jK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; xK=function(a,b){return 0<=wK(a,b)}; SDa=function(a,b){if(!a)return NaN;b=wK(a,b);return 0<=b?a.start(b):NaN}; yK=function(a,b){if(!a)return NaN;b=wK(a,b);return 0<=b?a.end(b):NaN}; zK=function(a){return a&&a.length?a.end(a.length-1):NaN}; AK=function(a,b){a=yK(a,b);return 0<=a?a-b:0}; BK=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return uK(d,e)}; CK=function(a,b,c,d){g.aF.call(this);var e=this;this.Qd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.xY={error:function(){!e.Ma()&&e.isActive&&e.publish("error",e)}, updateend:function(){!e.Ma()&&e.isActive&&e.publish("updateend",e)}}; g.bF(this.Qd,this.xY);this.TT=this.isActive}; DK=function(a,b,c,d,e,f){g.aF.call(this);var h=this;this.Sb=a;this.pg=b;this.id=c;this.containerType=d;this.qb=e;this.vg=f;this.uQ=this.iF=this.If=null;this.tI=!1;this.appendWindowStart=this.timestampOffset=0;this.QN=uK([],[]);this.FD=!1;this.hF=[];this.KB=TDa?[]:void 0;this.Ed=function(m){return h.publish(m.type,h)}; var l;if(null==(l=this.Sb)?0:l.addEventListener)this.Sb.addEventListener("updateend",this.Ed),this.Sb.addEventListener("error",this.Ed)}; EK=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; FK=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1}; GK=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.pg=this.mediaElement.Hb());this.events=new g.cK(this);g.N(this,this.events);this.C=new FK(this.Qa?window.URL.createObjectURL(this.Qa):this.pg.webkitMediaSourceURL,!0);a=this.Qa||this.pg;TB(this.events,a,["sourceopen","webkitsourceopen"],this.Xba);TB(this.events,a,["sourceclose","webkitsourceclose"],this.Wba);this.D={updateend:this.w5}}; UDa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; VDa=function(a,b){HK(a)?g.ig(function(){b(a)}):a.callback=b}; WDa=function(a,b,c){if(IK){var d;JK(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.ea)?void 0:KK(d)},!1);g.bF(b,a.D,a);g.bF(c,a.D,a)}a.j=b;a.B=c;g.N(a,b);g.N(a,c)}; XDa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.qb;c=c.qb;var f;a.Z=null==(f=a.Qa)?void 0:f.addSourceBuffer(e);var h;a.Y="fakesb"===d.split(";")[0]?void 0:null==(h=a.Qa)?void 0:h.addSourceBuffer(d);a.pg&&(a.pg.webkitSourceAddId("0",e),a.pg.webkitSourceAddId("1",d));f=new DK(a.Z,a.pg,"0",hK(e),c,!1);d=new DK(a.Y,a.pg,"1",hK(d),b,!0);WDa(a,f,d)}; LK=function(a){return!!a.j||!!a.B}; HK=function(a){try{return"open"===MK(a)}catch(b){return!1}}; MK=function(a){if(a.Qa)return a.Qa.readyState;switch(a.pg.webkitSourceState){case a.pg.SOURCE_OPEN:return"open";case a.pg.SOURCE_ENDED:return"ended";default:return"closed"}}; YDa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; ZDa=function(a){HK(a)&&(a.Qa?a.Qa.endOfStream():a.pg.webkitSourceEndOfStream(a.pg.EOS_NO_ERROR))}; $Da=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Qd:a.j,f=a.B.isView()?a.B.Qd:a.B,h=new GK(a.mediaElement,a.Qa,!0);h.C=a.C;WDa(h,new CK(e,b,c,d),new CK(f,b,c,d));HK(a)||a.j.rq(a.j.Kc());return h}; aEa=function(a){var b;null==(b=a.j)||b.nz();var c;null==(c=a.B)||c.nz();a.K=!1}; NK=function(){var a=this;this.lS=this.yS=qaa;this.promise=new g.kg(function(b,c){a.yS=b;a.lS=c})}; OK=function(){g.I.call(this);this.OJ=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Dd;this.ea=null;g.N(this,this.D)}; bEa=function(a){a=a.CE();return 1>a.length?NaN:a.end(a.length-1)}; cEa=function(a){!a.B&&UDa()&&(a.C?a.C.then(function(){return cEa(a)}):a.Df()||(a.B=a.lr()))}; dEa=function(a){a.B&&(a.B.dispose(),a.B=void 0)}; JK=function(a,b,c){var d;(null==(d=a.ea)?0:d.zc())&&a.ea.ma("rms",b,void 0===c?!1:c)}; eEa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10UF(b,4)&&!(0>UF(b,2))&&a.l2()}; pEa=function(a){0===a.position&&(a.yc.get(),a=zI(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:cL(a)},eH("ad_bl"),g.fH(a))}; dL=function(a,b){qCa(a.Ya,b,!a.j)}; rEa=function(a){var b;return-1!==((null==(b=XK(a))?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.V(null==c?void 0:c.command,qEa)})}; eL=function(a,b){var c=zI(a.Ba,"metadata_type_eligible_for_ssap");return void 0===c?(RF("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.uf(c)}; fL=function(a,b,c){hH(a,c)||iH(a,b,c);hH(a,"video_to_ad")||iH(a,b,"video_to_ad");hH(a,"ad_to_video")||iH(a,b,"ad_to_video");hH(a,"ad_to_ad")||iH(a,b,"ad_to_ad")}; gL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){YK.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,v,w);var A=this;this.Xc=m;this.Mn=q;this.VJ=!0;this.xQ=this.cj=0;this.xz=Nd(function(){xDa(ZK(A));A.Io.vc(A.slot,A.layout)}); this.Xs=Nd(function(){yDa(ZK(A));"rendering_stop_requested"!==A.hc&&A.Mn(A);A.jO()}); this.We=new g.rg(200);this.We.listen("tick",function(){A.Sc()}); g.N(this,this.We)}; tEa=function(a){a.xQ=Date.now();sEa(a,a.cj);a.We.start()}; uEa=function(a){a.cj=a.Rz();a.Xz(a.cj/1E3,!0);sEa(a,a.cj)}; sEa=function(a,b){b={current:b/1E3,duration:a.Rz()/1E3};a.Xc.get().Gu("onAdPlaybackProgress",b)}; vEa=function(a){gL.call(this,a.Io,a.slot,a.Mf,a.Oa,a.ub,a.Ra,a.Ha,a.yc,a.Xc,a.Lb,a.iq,a.Mn,a.uq,a.jy,a.Aa,a.Gr)}; hL=function(a){gL.call(this,a.Io,a.slot,a.Mf,a.Oa,a.ub,a.Ra,a.Ha,a.yc,a.Xc,a.Lb,a.iq,a.Mn,a.uq,a.jy,a.Aa,a.Gr)}; wEa=function(){hL.apply(this,arguments)}; yEa=function(a){return eL(a.slot,a.Aa.get())?xEa(a.Aa.get())?new wEa(a):new hL(a):new vEa(a)}; kL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L){YK.call(this,a,b,c,d,e,l,m,p,r,v,w,A,D,F,H);var M=this;this.df=f;this.ud=h;this.Oc=n;this.Xc=q;this.Tf=t;this.Mn=w;this.context=L;this.adCpn="";this.mW=0;this.BY=!1;this.xz=Nd(function(){xDa(ZK(M));M.Io.vc(M.slot,M.layout)}); this.Xs=Nd(function(){yDa(ZK(M));"rendering_stop_requested"!==M.hc&&M.Mn(M);M.jO()}); this.uf()||(this.pK=new g.xv(function(){M.YA("load_timeout",new wI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=iL(this.Aa.get()),F=jL(F.get()),a&&F&&(this.QA=new g.xv(function(){var R=zI(c.Ba,"metadata_type_preload_player_vars"); R&&M.ud.get().J.preloadVideoByPlayerVars(R,2,300)})))}; AEa=function(a,b){var c=zI(b.Ba,"metadata_type_ad_video_id"),d=zI(b.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Tf.get().J.U().Na.add(c,{qI:d});(b=zI(b.Ba,"metadata_type_sodar_extension_data"))&&IBa(a.df.get(),b);zEa(a.Ha.get(),!1)}; BEa=function(a){zEa(a.Ha.get(),!0);var b;(null==(b=a.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ha.get().WB(!1)}; DEa=function(a){return xEa(a.context.Aa.get())?new CEa(a):new lL(a)}; lL=function(a){kL.call(this,a.callback,a.slot,a.Mf,a.Oa,a.ub,a.df,a.ud,a.Ra,a.Ha,a.Oc,a.yc,a.Xc,a.Lb,a.Tf,a.iq,a.Mn,a.uq,a.jy,a.Aa,a.Gr,a.context)}; CEa=function(){lL.apply(this,arguments)}; EEa=function(a){return yEa(Object.assign({},a,{Io:a.callback,iq:function(){}}))}; FEa=function(a){return new kL(a.callback,a.slot,a.Mf,a.Oa,a.ub,a.df,a.ud,a.Ra,a.Ha,a.Oc,a.yc,a.Xc,a.Lb,a.Tf,function(b){a.Xc.get().Gu("onAdIntroStateChange",b)},a.Mn,a.uq,a.jy,a.Aa,a.Gr,a.context)}; GEa=function(a){function b(c){a.Xc.get().kG(c)} return eL(a.slot,a.Aa.get())?DEa(Object.assign({},a,{iq:b})):new kL(a.callback,a.slot,a.Mf,a.Oa,a.ub,a.df,a.ud,a.Ra,a.Ha,a.Oc,a.yc,a.Xc,a.Lb,a.Tf,b,a.Mn,a.uq,a.jy,a.Aa,a.Gr,a.context)}; HEa=function(a){for(var b=a.Mf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.u(zJ()),e=d.next();!e.done;e=d.next())c.push(e.value);if(GJ(b,{Kd:c,Ge:["LAYOUT_TYPE_MEDIA_BREAK"]}))return EEa(a);b=a.Mf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.u(zJ());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(GJ(b,{Kd:c,Ge:["LAYOUT_TYPE_MEDIA"]}))return tI(a.Mf.Ba,"metadata_type_ad_intro")?FEa(a):GEa(a)}; JEa=function(a){var b=zI(a.Ba,"metadata_type_ad_placement_config").kind,c=zI(a.Ba,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:IEa(c),adBreakType:cL(b)}}; cL=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"}}; IEa=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; LEa=function(){var a=g.Ja.apply(0,arguments);try{return new (Function.prototype.bind.apply(KEa,[null].concat(g.qa(a))))}catch(b){}}; KEa=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.As=a;this.slot=b;this.layout=c;this.ze=d;this.rf=e;this.Ra=f;this.Mc=h;this.ud=l;this.wc=m;this.Ha=n;this.gh=!0;this.j=void 0;this.B=!1;a=HEa(p);if(!a)throw Error("Invalid params for sublayout");this.Hd=a}; mL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.I.call(this);this.callback=a;this.Ra=b;this.Mc=c;this.ud=d;this.Ha=e;this.yc=f;this.xs=h;this.slot=l;this.layout=m;this.ze=n;this.Yh=p;this.wc=q;this.Aa=r;this.gh=!0;this.Iw=!1;this.xd=[];this.jd=-1;this.eQ=this.LP=!1;this.hO=new sDa}; MEa=function(a){var b;return null!=(b=a.layout.Zx)?b:zI(a.layout.Ba,"metadata_type_sub_layouts")}; nL=function(a){return{Lf:a.Ra.get(),Op:!1,Tw:a.uf()}}; OEa=function(a,b,c){var d=a.xd[a.jd];a.jd===a.xd.length-1&&RF("Unexpected skip with target requested during the last sublayout",d.Vb(),d.eb(),{requestingSlot:b,requestingLayout:c});if(void 0===c.renderingContent&&c.layoutId!==oL(d,b,c))RF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Vb(),d.eb(),{requestingSlot:b,requestingLayout:c});else{var e=zI(d.eb().Ba,"metadata_type_ad_pod_skip_target");if(e&&0b.cP().currentState&&(c=VEa(c),b.Gd(b.eb(),c));c=b.cP().j;a.kO(a.slot,b.eb(),c)}; VEa=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:return RF("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Ne(a,"unexpected transition reason")}}; XEa=function(a){return eL(a.slot,a.Aa.get())?xEa(a.Aa.get())?new UEa(a):new rL(a):new SEa(a)}; YEa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.ud=b;this.Ha=c;this.yc=d;this.Hd=e;this.wc=f;this.Aa=h;this.gh=!0;this.Iw=!1}; ZEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H,L){function M(){var ka=HEa(Object.assign({},la,{callback:{vc:a.vc.bind(a),Ec:a.Ec.bind(a),HB:function(){}, jf:a.jf.bind(a)},slot:c,Mf:d,Mn:function(){qL(h,d,"normal")}, uq:0,jy:1,Gr:!0}));return ka?new YEa(a,p,r,v,ka,e,F):ka} function R(){var ka=Object.assign({},la,{callback:{vc:function(){}, Ec:function(){}, HB:function(){return void qL(h,d,"normal")}, jf:function(){}}, slot:c,Mf:d,Mn:function(){}, uq:0,jy:1,Gr:!0});return LEa(a,c,d,f,h,q,H,p,e,r,ka)} function ea(){var ka,ia=null!=(ka=d.Zx)?ka:zI(d.Ba,"metadata_type_sub_layouts");ka=XEa({As:a,Ra:q,Mc:H,ud:p,Ha:r,yc:v,xs:b,slot:c,layout:d,ze:f,Yh:h,wc:e,Aa:F});for(var sa=[],aa={Fw:0};aa.Fwe&&h.qH(p,e-d);return p}; gFa=function(a,b){var c=zI(b.Ba,"metadata_type_sodar_extension_data");if(c)try{IBa(0,c)}catch(d){RF("Unexpected error when loading Sodar",a,b,{error:d})}}; iFa=function(a,b,c,d,e,f){hFa(a,b,new g.SF(c,new g.QK),d,e,!1,f)}; hFa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;PJ(c)&&QJ(e,0,null)&&(!CJ(a,"impression")&&h&&h(),a.Ub("impression"));CJ(a,"impression")&&(g.VF(c,4)&&!g.VF(c,2)&&a.Mh("pause"),0>UF(c,4)&&!(0>UF(c,2))&&a.Mh("resume"),g.VF(c,16)&&.5<=e&&a.Mh("seek"),f&&g.VF(c,2)&&jFa(a,c.state,b,d,e))}; jFa=function(a,b,c,d,e,f,h){if(CJ(a,"impression")){var l=1>=Math.abs(d-e);kFa(a,b,l?d:e,c,d,f,h&&l);l&&a.Ub("complete")}}; kFa=function(a,b,c,d,e,f,h){BJ(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.TF(b,16))||(null==b?0:g.TF(b,32))||(QJ(c,.25*e,d)&&(f&&!CJ(a,"first_quartile")&&f("first"),a.Ub("first_quartile")),QJ(c,.5*e,d)&&(f&&!CJ(a,"midpoint")&&f("second"),a.Ub("midpoint")),QJ(c,.75*e,d)&&(f&&!CJ(a,"third_quartile")&&f("third"),a.Ub("third_quartile")))}; lFa=function(a,b){CJ(a,"impression")&&a.Mh(b?"fullscreen":"end_fullscreen")}; mFa=function(a){CJ(a,"impression")&&a.Mh("clickthrough")}; nFa=function(a){a.Mh("active_view_measurable")}; oFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("active_view_fully_viewable_audible_half_duration")}; pFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("active_view_viewable")}; qFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("audio_audible")}; rFa=function(a){CJ(a,"impression")&&!CJ(a,"seek")&&a.Mh("audio_measurable")}; sFa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Mc=d;this.Ya=e;this.Ha=f;this.ys=h;this.ub=l;this.df=m;this.Aa=n;this.Oa=p;this.Ra=q;this.VJ=!0;this.bd=this.hc=null;this.adCpn=void 0}; tFa=function(a,b,c){var d;uL(a.Oa.get(),"ads_qua","cpn."+zI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ra.get().Yd(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; uFa=function(a,b){var c,d;uL(a.Oa.get(),"ads_imp","cpn."+zI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ra.get().Yd(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.V(null==(d=zI(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,vL))}; vFa=function(a){return{enterMs:zI(a.Ba,"metadata_type_layout_enter_ms"),exitMs:zI(a.Ba,"metadata_type_layout_exit_ms")}}; wFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){sL.call(this,a,b,c,d,e,h,l,m,n,q);this.ys=f;this.df=p;this.ub=r;this.Aa=t;this.bd=this.hc=null}; xFa=function(a,b){var c;uL(a.Oa.get(),"ads_imp","acpn."+(null==(c=a.Ra.get().Yd(2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; yFa=function(a,b,c){var d;uL(a.Oa.get(),"ads_qua","cpn."+zI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ra.get().Yd(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; zFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,D,F,H){this.wc=a;this.ze=b;this.Yh=c;this.Ra=d;this.Mc=e;this.Ha=f;this.Oa=h;this.ys=l;this.Af=m;this.ub=n;this.df=p;this.ud=q;this.Oc=r;this.yc=t;this.Xc=v;this.Lb=w;this.Tf=A;this.Aa=D;this.j=F;this.context=H}; wL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){this.wc=a;this.ze=b;this.Yh=c;this.Oa=d;this.ub=e;this.df=f;this.ud=h;this.Ra=l;this.Ha=m;this.Oc=n;this.yc=p;this.Xc=q;this.Lb=r;this.Tf=t;this.Aa=v;this.Mc=w;this.context=A}; AFa=function(a,b,c,d){$E.call(this,"survey-interstitial",a,b,c,d)}; xL=function(a,b,c,d,e){rJ.call(this,c,a,b,d);this.Oa=e;a=zI(b.Ba,"metadata_type_ad_placement_config");this.Ya=new yJ(b.Cb,e,a,b.layoutId)}; yL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; CFa=function(a,b,c){c=void 0===c?BFa:c;c.widtha.width*a.height*.2)return{rM:3,tH:501,errorMessage:"ad("+yL(c)+") to container("+yL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{rM:3,tH:501,errorMessage:"ad("+yL(c)+") covers container("+yL(a)+") center."}}; DFa=function(a,b){var c=zI(a.Ba,"metadata_type_ad_placement_config");return new yJ(a.Cb,b,c,a.layoutId)}; zL=function(a){return zI(a.Ba,"metadata_type_invideo_overlay_ad_renderer")}; EFa=function(a,b,c,d){$E.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; AL=function(a,b,c,d,e,f,h,l,m,n,p,q){rJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ha=l;this.Lb=m;this.Aa=n;this.K=p;this.G=q;this.Ya=DFa(b,c)}; FFa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];zJ().forEach(function(b){a.push(b)}); return{Kd:a,Ge:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; BL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){rJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ha=m;this.Lb=n;this.Aa=p;this.K=q;this.G=r;this.Ya=DFa(b,c)}; GFa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(zJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Kd:a,Ge:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; CL=function(a){this.Ha=a;this.j=!1}; HFa=function(a,b,c){$E.call(this,"survey",a,{},b,c)}; IFa=function(a,b,c,d,e,f,h){rJ.call(this,c,a,b,d);this.D=e;this.Ha=f;this.Aa=h}; JFa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ha=b;this.Oa=c;this.D=d;this.ub=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n}; KFa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ha=b;this.Oa=c;this.D=d;this.ub=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n}; DL=function(a,b,c,d,e,f,h,l,m,n){KJ.call(this,a,b,c,d,e,f,h,m);this.dn=l;this.Ra=n}; LFa=function(){var a=jDa();a.Kd.push("metadata_type_ad_info_ad_metadata");return a}; MFa=function(a,b,c,d,e,f,h){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.dn=e;this.j=f;this.Ra=h}; NFa=function(a,b,c,d,e,f,h,l){this.Cc=a;this.Ha=b;this.Oa=c;this.B=d;this.dn=e;this.j=f;this.Aa=h;this.Ra=l}; EL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; FL=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); var c=0;for(a+=1;av?new xI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new Vv(d,v),a=c instanceof xI?c:new NL(vI,b,c,!1,a.id)):a=new xI("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new IL(vI,b,!1,a.id):new xI("Not able to create ContentVideoIdEndedTrigger"); else{if(a.layoutIdEnteredTrigger){var w;b=null!=(w=a.layoutIdEnteredTrigger)&&w.triggeringLayoutId?new KL(vI,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new xI("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=null!=(A=a.timeRelativeToLayoutEnterTrigger)&&A.triggeringLayoutId?new ZL(vI,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new xI("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var D; b=null!=(D=a.onDifferentLayoutIdEnteredTrigger)&&D.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new OL(vI,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new xI("Not able to create CloseRequestedTrigger")}else b=new xI("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a}; MGa=function(a,b,c,d,e,f,h,l){return null===b?new xI("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[LGa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new yI([new CH(d),new GH(e)]);n=cJ(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Cb:new Map, layoutExitNormalTriggers:[new QL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:q,Yb:m(r),adLayoutLoggingData:p}})]}; NGa=function(a,b,c,d,e,f,h,l){return null===b?new xI("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[LGa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new yI([new DH(d),new GH(e)]);n=cJ(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Cb:new Map,layoutExitNormalTriggers:[new QL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:q,Yb:m(r),adLayoutLoggingData:p}})]}; RGa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,vM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return OGa(p)}); b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={Tv:void 0},h=f.next()){l.Tv=h.value;h=g.u(l.Tv.xN);for(var m=h.next(),n={};!m.done;n={fn:void 0},m=h.next())n.fn=m.value,m=function(p,q){return function(r){return p.fn.rO(r,q.Tv.instreamVideoAdRenderer.elementId,p.fn.wN)}}(n,l),n.fn.isContentVideoCompanion?b.push(PGa(c,d,e,l.Tv.instreamVideoAdRenderer.elementId,n.fn.associatedCompositePlayerBytesLayoutId,n.fn.adSlotLoggingData,m)):1=l?function(){return new xI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=IHa(m,c,d,function(q){var r=q.slotId; q=n(q);var t=AHa(h);r=cJ(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},w=new ML(e.j,d),A=new RL(e.j,r),D=new YL(e.j,r),F=new XFa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Cb:new Map,layoutExitNormalTriggers:[w,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[D],Tc:[],Xa:"core",Ba:new yI([new LAa(h),new GH(b),new lI(l/1E3),new oI(t)]),Yb:q(v),adLayoutLoggingData:h.adLayoutLoggingData}}); m=GHa(a,c,p.slotId,d,e,m,n);return m instanceof xI?m:[p].concat(g.qa(m))}}; RHa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(w){w=KHa(w.slotId,c,b,e(w),d,f,h);m=w.cea;return w.z7}; else if(c.renderer.instreamVideoAdRenderer)n=function(w){var A=w.slotId;w=e(w);var D=h,F=c.config.adPlacementConfig,H=LHa(F),L=H.xX,M=H.BX;H=c.renderer.instreamVideoAdRenderer;var R;if(null==H?0:null==(R=H.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ea=MHa(H,D);R=Math.min(L+1E3*ea.videoLengthSeconds,M);D=new FL(0,[ea.videoLengthSeconds]);M=ea.videoLengthSeconds;var la=ea.playerVars,ka=ea.instreamAdPlayerOverlayRenderer,ia= ea.playerOverlayLayoutRenderer,sa=ea.adVideoId,aa=NHa(c),U=ea.Cb;ea=ea.jW;var Ha=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;A=cJ(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var x={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Cb:U,layoutExitNormalTriggers:[new QFa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new MH(d),new ZH(M),new $H(la),new cI(L), new dI(R),ka&&new NH(ka),ia&&new OH(ia),new GH(F),new LH(sa),new HH(D),new hI(aa),H&&new bI(H),new WH({current:null}),new fI({}),new qI(ea)].filter(OHa)),Yb:w(x),adLayoutLoggingData:Ha}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=PHa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof xI)return v;l.push.apply(l,g.qa(v))}}catch(w){return new xI(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:QHa(c)})}return l}; QHa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.V(b,fM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; KHa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=LHa(l),n=m.xX,p=m.BX;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={M1:n,uq:0,Zda:q};m=m.map(function(v){return SHa(a,v,r,c,d,l,e,p,h)}).map(function(v,w){w=new FL(w,q); return v(w)}); var t=m.map(function(v){return v.A7}); return{z7:THa(c,a,n,t,l,NHa(b),d,p,f),cea:m.map(function(v){return v.bea})}}; SHa=function(a,b,c,d,e,f,h,l,m){var n=MHa(g.V(b,fM),m),p=c.M1,q=c.uq,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.M1=r;c.uq++;c.Zda.push(n.videoLengthSeconds);var t,v,w=null==(t=g.V(b,fM))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==w)throw new TypeError("Survey slate media has no survey overlay");return function(A){var D=n.playerVars;2<=A.B&&(D.slot_pos=A.j);D.autoplay="1";var F,H;D=n.videoLengthSeconds;var L=n.playerVars,M=n.Cb,R=n.jW,ea= n.instreamAdPlayerOverlayRenderer,la=n.playerOverlayLayoutRenderer,ka=n.adVideoId,ia=null==(F=g.V(b,fM))?void 0:F.adLayoutLoggingData;F=null==(H=g.V(b,fM))?void 0:H.sodarExtensionData;H=cJ(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var sa={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Cb:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"adapter",Ba:new yI([new MH(h),new ZH(D), new $H(L),new cI(p),new dI(r),new eI(q),new WH({current:null}),ea&&new NH(ea),la&&new OH(la),new GH(f),new LH(ka),new HH(A),F&&new bI(F),w&&new TAa(w),new fI({}),new qI(R)].filter(OHa)),Yb:e(sa),adLayoutLoggingData:ia};D=JHa(g.V(b,fM),f,h,A.layoutId,d);return{A7:A,bea:D}}}; MHa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=NA(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay|| {};f=void 0===f.playerOverlayLayoutRenderer?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var l;b=null!=(l=UHa[h])?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Cb:a.pings?xJ(a.pings):new Map,jW:wJ(a.pings)}}; NHa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; LHa=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{xX:b,BX:a}}; WHa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[VHa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=cJ(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xa:"core"},v=xJ(n),w=[new QL(b.j,f)],A;var D=null==n?void 0:null==(A=n.activeViewTracking)?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Cb:v,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[], layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new GH(d),new qI(wJ(n)),new UAa(D),new ZH(h/1E3)]),Yb:p(t),adLayoutLoggingData:r}})]:new xI("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; YHa=function(a,b,c,d,e,f,h,l){a=XHa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=cJ(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xa:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Cb:q,layoutExitNormalTriggers:[new PL(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new QAa(e),new GH(c)]),Yb:m(p)}}); return a instanceof xI?a:[a]}; $Ha=function(a,b,c,d,e,f,h){return[ZHa(a,f,d,function(l){var m=l.slotId;l=h(l);m=cJ(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[new QL(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new NH(e),new GH(c)]),Yb:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]}; dIa=function(a,b,c,d,e,f,h,l){a=aIa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=cJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=bIa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,cIa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=cJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=bIa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,cIa(b,n,p))):q.imageOverlayAdContentRenderer?(q=cJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=cIa(b,n,p),n.push(new ZL(b.j,45E3,q)),n=bIa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new wI("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new wI("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof xI?a:[a]}; gIa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new xI("Expected valid duration for AdActionInterstitialRenderer."):function(p){return eIa(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return fIa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=cJ(b.B.get(),"LAYOUT_TYPE_ENDCAP", v);return CHa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new RH(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; hIa=function(a,b,c,d){if(!c.playerVars)return new xI("No playerVars available in AdIntroRenderer.");var e=NA(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=cJ(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{Mf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Cb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"adapter",Ba:new yI([new gI({}), new GH(b),new WH({current:null}),new $H(e)]),Yb:f(l)},Zl:[new LL(a.j,h,["error"])],Pj:[],vz:[],sz:[]}}}; jIa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=zHa(e);if(!vGa(e,n))return new xI("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new xI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=DHa(a,b,e,f,c,d,h);return q instanceof xI?q:function(r){return iIa(b,r.slotId,c,p,e,AHa(e),h(r),q,l,m)}}; lIa=function(a,b,c,d,e,f,h,l){function m(q){return fIa(a,q,d,n)} function n(q,r){var t=q.slotId;q=h(q);t=cJ(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return CHa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new KAa(e),f],e.adLayoutLoggingData)} if(!AGa(e))return new xI("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=kIa(b,r,c,p,t,new Map,q,m,void 0,DM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new TH(r.XK);q=new IH(l);return{Mf:{layoutId:r.layoutId,layoutType:r.layoutType,Cb:r.Cb,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:r.Xa,Ba:new yI([].concat(g.qa(r.pz),[t,q])),Yb:r.Yb,adLayoutLoggingData:r.adLayoutLoggingData},Zl:[],Pj:r.layoutExitMuteTriggers,vz:r.layoutExitUserInputSubmittedTriggers,sz:r.Tc,kf:r.kf}}}; nIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){a=pJ(a,"SLOT_TYPE_PLAYER_BYTES");d=VGa(b,h,d,e,a,n,p);if(d instanceof xI)return d;var A;h=null==(A=zI(d.Ba,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new xI("Invalid adNotify layout");b=mIa(h,b,c,e,f,m,l,n,q,r,t,v,w);return b instanceof xI?b:[d].concat(g.qa(b))}; mIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=oIa(b,c,d,f,h,l,m,n,p,q,r);pIa(f)?(d=qIa(b,a),a=pJ(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=cJ(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=rIa(b,d,l),b=[].concat(g.qa(l.slotExpirationTriggers),[new HL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Xa:l.Xa},{slotId:a,layoutId:f}),e=a instanceof xI?a:{Fx:Object.assign({}, l,{slotExpirationTriggers:b,Ba:new yI([new iI(a.layout)]),adSlotLoggingData:e}),hg:a.hg}):e=ZGa(b,a,l,e,c);return e instanceof xI?e:[].concat(g.qa(e.hg),[e.Fx])}; vIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=oIa(a,b,c,e,f,h,m,n,p,q,r,t);pIa(e)?(e=sIa(a,c,h,l),e instanceof xI?a=e:(l=pJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=cJ(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.qa(e.slotExpirationTriggers),[new HL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Xa:e.Xa,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof xI?l: {Fx:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:tIa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:uIa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Xa:e.Xa,Ba:new yI([new rI(EM(c)),new iI(l.layout),new sI({Ut:a.Ut(c)})]),adSlotLoggingData:d},hg:l.hg})):a=$Ga(a,c,h,l,d,m.Zb,b);return a instanceof xI?a:a.hg.concat(a.Fx)}; pIa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.V(b.value,hM))return!0;return!1}; oIa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(iL(p)&&jL(p))a:{var v=wIa(d,c,p);if(v instanceof xI)t=v;else{for(var w=0,A=[],D=[],F=[],H=[],L=[],M=[],R=new XH({current:null}),ea=new KH({current:null}),la=!1,ka=[],ia=0,sa=[],aa=0;aa=m)return new xI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new XH({current:null}),p=DHa(a,b,c,n,d,f,h);return yIa(a,d,f,m,e,function(q,r){var t=q.slotId,v=AHa(c);q=h(q);var w,A=null!=(w=DM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))? w:cJ(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"core"};w=p(A,r);var D=zI(w.Ba,"metadata_type_fulfilled_layout");D||RF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new GH(d),new mI(m),new oI(v),n];D&&v.push(new UH(D.layoutType));return{r$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Cb:new Map,layoutExitNormalTriggers:[new PL(b.j,A)],layoutExitSkipTriggers:[new RL(b.j,r.layoutId)], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new YL(b.j,r.layoutId)],Tc:[],Xa:"core",Ba:new yI(v),Yb:q(t)},C9:w}})}; AIa=function(a){if(!zGa(a))return!1;var b=g.V(a.adVideoStart,GM);return b?g.V(a.linearAd,fM)&&fGa(b)?!0:(RF("Invalid Sandwich with notify"),!1):!1}; BIa=function(a){if(null==a.linearAds)return!1;a=g.V(a.adStart,GM);return a?fGa(a)?!0:(RF("Invalid LASR with notify"),!1):!1}; CIa=function(a){if(!yGa(a))return!1;a=g.V(a.adStart,GM);return a?fGa(a)?!0:(RF("Invalid LASR with notify"),!1):!1}; HM=function(a,b,c,d,e,f,h,l){this.D=a;this.B=b;this.j=c;this.Aa=d;this.Ne=e;this.C=f;this.Rj=h;this.loadPolicy=void 0===l?1:l}; EGa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(gGa);var p=c.filter(tGa),q=d.filter(gGa),r=new Map,t=gHa(b),v=c.some(function(aa){var U;return"SLOT_TYPE_PLAYER_BYTES"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),w=c.some(function(aa){var U; return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),A=c.some(function(aa){var U; return"SLOT_TYPE_IN_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}); c=c.some(function(aa){var U,Ha;return"SLOT_TYPE_BELOW_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)||"SLOT_TYPE_ABOVE_FEED"===(null==aa?void 0:null==(Ha=aa.adSlotMetadata)?void 0:Ha.slotType)}); if(v||w||A||c)c=lHa(p,b,l,e,t,a.Ne.get(),a.loadPolicy,r,a.Aa.get(),a.D.get(),A),c instanceof xI?RF(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.qa(c));c=g.u(b);for(w=c.next();!w.done;w=c.next())w=w.value,A=DIa(a,r,w,e,f,h,v,l,t,m,p),A instanceof xI?RF(A,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.qa(A));EIa(a.Aa.get())||(f=FIa(a,q,e,l,t,r),n.push.apply(n,g.qa(f)));if(null===a.C||h&&!l.jX){var D, F,H;a=l.Zb&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(D=b[0].config)?void 0:null==(F=D.adPlacementConfig)?void 0:F.kind)&&(null==(H=b[0].renderer)?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var L,M,R,ea;RF("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(L=b[0])?void 0:null==(M=L.config)?void 0:null==(R=M.adPlacementConfig)?void 0:R.kind,renderer:null==(ea=b[0])?void 0:ea.renderer})}return n}D= d.filter(gGa);n.push.apply(n,g.qa(RGa(r,D,a.B.get(),a.C,e,v)));if(!n.length){var la,ka,ia,sa;RF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(la=b[0])?void 0:null==(ka=la.config)?void 0:null==(ia=ka.adPlacementConfig)?void 0:ia.kind,renderer:null==(sa=b[0])?void 0:sa.renderer})}return n}; FIa=function(a,b,c,d,e,f){function h(r){return DI(a.Ne.get(),r)} var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&AIa(p)?(RF("Found AdNotify with SandwichedLinearAdRenderer"),q=g.V(p.adVideoStart,GM),p=g.V(p.linearAd,fM),vM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=WGa(null==(n=q)?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Aa.get(),a.Ne.get()),q instanceof xI?RF(q):l.push.apply(l,g.qa(q))): q&&(!q.adLayoutMetadata&&BIa(q)||q.adLayoutMetadata&&CIa(q))&&(RF("Found AdNotify with LinearAdSequenceRenderer"),vM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=mIa(null==(n=g.V(q.adStart,GM))?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,aM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Aa.get()),p instanceof xI?RF(p):l.push.apply(l,g.qa(p)))}return l}; DIa=function(a,b,c,d,e,f,h,l,m,n,p){function q(D){return DI(a.Ne.get(),D)} var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,w=c.adSlotLoggingData,A=l.jX&&"AD_PLACEMENT_KIND_START"===v;A=f&&!A;if(null!=r.adsEngagementPanelRenderer)return wM(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.adsEngagementPanelRenderer;D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new AAa(ea),F,H,ea.impressionPings,D,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[]; if(r.adsEngagementPanelLayoutViewModel)return wM(b,c.elementId,v,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.adsEngagementPanelLayoutViewModel;D=DI(a.Ne.get(),D);return GIa(M,R,"LAYOUT_TYPE_PANEL",new BAa(ea),F,H,D,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,L)}),[]; if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return MGa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,w,d,q);wM(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.actionCompanionAdRenderer;D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new CH(ea),F,H,ea.impressionPings,D,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return NGa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,w,d,q); wM(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.topBannerImageTextIconButtonedLayoutViewModel;D=DI(a.Ne.get(),D);return GIa(M,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new DH(ea),F,H,D,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)wM(b, c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.imageCompanionAdRenderer; D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new DAa(ea),F,H,ea.impressionPings,D,r.imageCompanionAdRenderer.adLayoutLoggingData,L)}); else if(r.bannerImageLayoutViewModel)wM(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.bannerImageLayoutViewModel;D=DI(a.Ne.get(),D);return GIa(M,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new EAa(ea),F,H,D,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)}); else if(r.shoppingCompanionCarouselRenderer)wM(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(D,F,H,L){var M=a.j.get(),R=D.slotId,ea=r.shoppingCompanionCarouselRenderer;D=DI(a.Ne.get(),D);return IM(M,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new FAa(ea),F,H,ea.impressionPings,D,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)}); else if(r.adBreakServiceRenderer){if(!KGa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return JGa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return IGa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Rj)return new xI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Zb||RF("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t, daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Zb),clientPlaybackNonce:l.clientPlaybackNonce});HIa(a.Rj,{adPlacementRenderer:c,contentCpn:d,wp:e})}else{if(r.clientForecastingAdRenderer)return YHa(a.B.get(),a.j.get(),t,w,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return dIa(a.B.get(),a.j.get(),t,w,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return $Ha(a.B.get(),a.j.get(),t,w,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer|| r.instreamVideoAdRenderer)&&A)return RHa(a.B.get(),a.j.get(),c,d,q,n,!a.Aa.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];vM(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!yGa(r.linearAdSequenceRenderer))return new xI("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new xI("Received invalid LinearAdSequenceRenderer.");if(g.V(r.linearAdSequenceRenderer.adStart,GM)){RF("Found AdNotify in LinearAdSequenceRenderer"); b=g.V(r.linearAdSequenceRenderer.adStart,GM);if(!eGa(b))return new xI("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return nIa(a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),t,w,b,aM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Aa.get())}return vIa(a.B.get(),a.j.get(),t,w,r.linearAdSequenceRenderer.linearAds,aM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0, d,e,l,q,m,a.loadPolicy,a.Aa.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];vM(b,r,v);return aHa(a.B.get(),a.j.get(),t,w,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Aa.get(),a.Ne.get(),p)}if(r.instreamSurveyAdRenderer)return zIa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,w,d,q,FM(a.Aa.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return zGa(r.sandwichedLinearAdRenderer)?g.V(r.sandwichedLinearAdRenderer.adVideoStart, GM)?(RF("Found AdNotify in SandwichedLinearAdRenderer"),b=g.V(r.sandwichedLinearAdRenderer.adVideoStart,GM),eGa(b)?(c=g.V(r.sandwichedLinearAdRenderer.linearAd,fM))?XGa(b,c,t,a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),w,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new xI("Missing IVAR from Sandwich"):new xI("Invalid AdMessageRenderer.")):vIa(a.B.get(),a.j.get(),t,w,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new xI("Received invalid SandwichedLinearAdRenderer."); if(null!=r.videoAdTrackingRenderer)return l=FM(a.Aa.get(),"enable_h5_shorts_ad_terminal_events")&&l.Yj,WHa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,w,d,e,l,q)}}return[]}; JM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.B=a;this.C=b;this.Af=d;this.Ha=e;this.Aa=f;this.Oa=h;this.Mc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(m)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ma()||d.get().removeListener(m)})}; HIa=function(a,b){if(a.j)RF("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Af.get().eM);for(var c=b.next();!c.done;c=b.next())IIa(a,a.j,c.value)}}; IIa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Aa.get().J.U().zc()&&uL(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Ah.toFixed(3));oJ(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=KM(a.Aa.get()),n=a.Oa;if(e.Aa.get().J.U().experiments.fb("enable_smearing_expansion_dai")){var p=g.EI(e.Aa.get().J.U().experiments, "max_prefetch_window_sec_for_livestream_optimization");var q=g.EI(e.Aa.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Bo:JIa(c),oG:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.Ah;if(0===d)m.Bp=new Vv(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.Bp=0>=t?new Vv(1E3*q,1E3*r):new Vv(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={Bo:JIa(c),oG:!1},r=c.startSecs+c.Ah,c.startSecs<=d?m=new Vv(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new Vv(1E3* Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.Bp=m;f=HGa(e,f,h,p,l,[new PAa(c)]);e.Aa.get().J.U().experiments.fb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Bp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.Wc())&&(h=h.uc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.LM(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):uL(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Bp.start/ 1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; KIa=function(a){var b,c=null==(b=zI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=zI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=zI(a.Ba,"metadata_type_content_cpn"),f=zI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=zI(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=zI(a.Ba,"metadata_type_player_underlay_renderer"),m=zI(a.Ba,"metadata_type_ad_placement_config"),n=zI(a.Ba,"metadata_type_video_length_seconds"); var p=tI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?zI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):tI(a.Ba,"metadata_type_layout_enter_ms")&&tI(a.Ba,"metadata_type_layout_exit_ms")?(zI(a.Ba,"metadata_type_layout_exit_ms")-zI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xq:d,contentCpn:e,YR:c,yN:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,oK:p,inPlayerLayoutId:zI(a.Ba,"metadata_type_linked_in_player_layout_id"), inPlayerSlotId:zI(a.Ba,"metadata_type_linked_in_player_slot_id")}}; MIa=function(a,b){return LIa(a,b)}; NIa=function(a,b){b=LIa(a,b);if(!b)return null;var c;b.oK=null==(c=zI(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b}; LIa=function(a,b){var c,d=null==(c=zI(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;c=fDa(a,b);return{C6:eDa(a,b),adPlacementConfig:zI(a.Ba,"metadata_type_ad_placement_config"),F6:c,contentCpn:zI(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:zI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:zI(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:zI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0, instreamAdPlayerUnderlayRenderer:void 0,oK:void 0,YR:d,xq:a.layoutId,videoLengthSeconds:zI(a.Ba,"metadata_type_video_length_seconds")}}; MM=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Ne=h;this.Aa=l;this.Ra=m;this.gh=!0}; OIa=function(a,b,c){return eHa(a.j.get(),b.contentCpn,b.xq,function(d){return fHa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.xq,DI(a.Ne.get(),d))})}; NM=function(a,b,c,d,e,f,h,l){g.I.call(this);this.B=a;this.j=b;this.C=c;this.Aa=d;this.D=e;this.Ra=f;this.Ha=h;this.yc=l}; OM=function(a){g.I.call(this);this.j=a}; oJ=function(a,b,c,d){a.j().Mg(b,d);c=c();a=a.j();a.Qb.TH("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.ec(c.slotId))throw new xI("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(KI(e,c))throw new xI("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.nh.At.has(c.slotType))throw new xI("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.nh.Pu.has(c.slotType))throw new xI("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");CBa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);CBa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);CBa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=SI(f,h);if(KI(f,c))throw new xI("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new xBa(c));f.j.set(h,l)}catch(la){la instanceof xI&&la.Mk?(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",la.Mk,c),RF(la,c,void 0,void 0,la.Nv)):(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),RF(la,c));break a}KI(d.j,c).K=!0;try{var m=d.j,n=KI(m,c),p=c.slotEntryTrigger,q=m.nh.Qm.get(p.triggerType);q&&(q.ll("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,w=m.nh.Qm.get(v.triggerType);w&&(w.ll("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.qa.set(v.triggerId,w))}for(var A=g.u(c.slotExpirationTriggers),D=A.next();!D.done;D=A.next()){var F=D.value,H=m.nh.Qm.get(F.triggerType);H&&(H.ll("TRIGGER_CATEGORY_SLOT_EXPIRATION", F,c,null),n.Y.set(F.triggerId,H))}var L=m.nh.At.get(c.slotType).get().build(m.C,c);n.N=L;var M=m.nh.Pu.get(c.slotType).get().build(m.G,c);M.init();n.B=M}catch(la){la instanceof xI&&la.Mk?(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",la.Mk,c),RF(la,c,void 0,void 0,la.Nv)):(d.Qb.Sl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),RF(la,c));II(d,c,!0);break a}d.Qb.Kj("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Ng(c);for(var R=g.u(d.B),ea=R.next();!ea.done;ea= R.next())ea.value.Ng(c);hBa(d,c)}}; PM=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.C=b;this.Oc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ma()||d.get().removeListener(f)})}; CGa=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof NL?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):RF("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Vv(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Oc.get().addCueRange(c,d.start,d.end,!1,a);QM(a.context.Aa.get())&&(b=d.start,d=d.end,e={},a.context.Pq.Dm("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))}; RM=function(){g.I.apply(this,arguments);this.gh=!0;this.aj=new Map;this.j=new Map}; PIa=function(a,b){a=g.u(a.aj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; QIa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}RF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ec(b)),layoutId:b})}; RIa=function(a,b){this.callback=a;this.slot=b}; SM=function(){}; SIa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c}; TIa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.B=!1;this.j=0}; UIa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c}; TM=function(a){this.Ha=a}; UM=function(a){g.I.call(this);this.XM=a;this.Wb=new Map}; VIa=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof YL&&f.triggeringLayoutId===b&&c.push(e)}c.length?QI(a.XM(),c):RF("Survey is submitted but no registered triggers can be activated.")}; VM=function(a,b,c){UM.call(this,a);var d=this;this.Aa=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})}; WM=function(a){g.I.call(this);this.j=a;this.gh=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set}; XM=function(a){g.I.call(this);this.j=a;this.Wb=new Map}; YM=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&QI(a.j(),c)}; ZM=function(a,b,c){g.I.call(this);var d=this;this.j=a;this.context=c;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})}; $M=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.Oc=b;this.Ha=c;this.Ra=d;this.context=e;this.gh=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(f)})}; WIa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ra.get().Yd(1).clientPlaybackNonce!==m)throw new xI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{DD:new $L(b,c,d,e),GI:f});a.Oc.get().addCueRange(f,h,l,n,a);QM(a.context.Aa.get())&&(m={},a.context.Pq.Dm("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=null==e?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))}; XIa=function(a,b){a=g.u(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.GI)return c}return""}; aN=function(a,b){g.I.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().dw)?void 0:d.slotId)||null}; YIa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; bN=function(a){g.I.call(this);this.j=a;this.gh=!0;this.Wb=new Map}; qL=function(a,b,c){b=b.layoutId;for(var d=[],e=g.u(a.Wb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof PL){var h;if(h=f.trigger.layoutId===b){h=c;var l=pBa.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&QI(a.j(),d)}; cN=function(a){g.I.call(this);this.j=a;this.gh=!0;this.Wb=new Map}; dN=function(a){g.I.call(this);this.C=a;this.gh=!0;this.Wb=new Map;this.j=new Map;this.B=new Map}; ZIa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c}; eN=function(a){g.I.call(this);this.j=a;this.Wb=new Map}; $Ia=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof EL&&e.trigger.slotId===b&&c.push(e);1<=c.length&&QI(a.j(),c)}; aJa=function(a,b){var c={slotId:pJ(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Xa:"surface",Ba:new yI([])},d=Object,e=d.assign;b=cJ(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"surface",Ba:new yI([]), Yb:dBa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Xa,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{I9:!0,slot:c,layout:b})}; GGa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Bo:new Vv(-0x8000000000000,-0x8000000000000),oG:d},null!=c&&(d.Bp=new Vv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Bo:new Vv(0x7ffffffffffff,0x8000000000000),oG:d},null!=c&&(d.Bp=new Vv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||RF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||RF("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 xI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={Bo:new Vv(a,e),oG:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Bp=new Vv(a,e)}return d; default:return new xI("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; JIa=function(a){var b=1E3*a.startSecs;return new Vv(b,b+1E3*a.Ah)}; bJa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.V(b.value,tM))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1}; fN=function(a){this.Aa=a;this.B=new Map;this.j=new Map;this.C=new Map}; pJ=function(a,b){if(cJa(a.Aa.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.VD(16)}; cJ=function(a,b,c){if(cJa(a.Aa.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.VD(16)}; CM=function(a,b){if(cJa(a.Aa.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.VD(16)}; dJa=function(a){var b=[new SH(a.xq),new OAa(a.YR),new GH(a.adPlacementConfig),new ZH(a.videoLengthSeconds),new lI(a.oK)];a.instreamAdPlayerOverlayRenderer&&b.push(new NH(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new OH(a.playerOverlayLayoutRenderer));a.yN&&b.push(new KH(a.yN));return b}; eJa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:cJ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Cb:new Map,layoutExitNormalTriggers:[new ML(function(n){return CM(f, n)},c.xq)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:b,Ba:d,Yb:e(h),adLayoutLoggingData:m}}; gN=function(a,b){var c=this;this.B=a;this.Aa=b;this.j=function(d){return CM(c.B.get(),d)}}; fHa=function(a,b,c,d,e,f){c=new yI([new PH(c),new GH(d)]);b=cJ(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Cb:new Map,layoutExitNormalTriggers:[new ML(function(h){return CM(a.B.get(),h)},e)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:c,Yb:f(d),adLayoutLoggingData:void 0}}; zM=function(a,b,c,d,e){var f=dJa(d);return eJa(b,c,d,new yI(f),e,a.B.get())}; fJa=function(a,b,c,d,e){var f=dJa(d);f.push(new GAa(d.C6));f.push(new HAa(d.F6));return eJa(b,c,d,new yI(f),e,a.B.get())}; IM=function(a,b,c,d,e,f,h,l,m,n){b=cJ(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Xa:"core"},q=new Map;h&&q.set("impression",h);h=[new OL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new LL(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Cb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([d,new GH(f),new SH(e)]),Yb:l(p),adLayoutLoggingData:m}}; GIa=function(a,b,c,d,e,f,h,l,m){b=cJ(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=[new OL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new LL(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Cb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([d,new GH(f),new SH(e)]),Yb:h(n),adLayoutLoggingData:l}}; cIa=function(a,b,c){var d=[];d.push(new VFa(a.j,c));b&&d.push(b);return d}; bIa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,Cb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new HL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new CAa(d),new GH(e)]),Yb:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; CHa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Xa:"core"};return{layoutId:b,layoutType:f,Cb:new Map,layoutExitNormalTriggers:[new ML(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Xa:"core",Ba:new yI([new GH(d)].concat(g.qa(h))),Yb:e(m),adLayoutLoggingData:l}}; DM=function(a,b,c,d){if(a.Aa.get().uf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)RF("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c}; eIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=kIa(a,b,c,e,f,h,l,m,q,DM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.pz;c=new TH(a.XK);d=a.layoutExitSkipTriggers;0b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);mN=new Uint8Array(256);nN=lN(256);oN=lN(256);pN=lN(256);qN=lN(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;mN[f]=e;b=e<<1^(e>>7&&283);var h=b^e;nN[f]=b<<24|e<<16|e<<8|h;oN[f]=h<<24|nN[f]>>>8;pN[f]=e<<24|oN[f]>>>8;qN[f]=e<<24|pN[f]>>>8}oJa=!0}e=lN(44);for(c= 0;4>c;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(mN[a>>16&255]^d)<<24|mN[a>>8&255]<<16|mN[a&255]<<8|mN[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; pJa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=nN[c>>>24]^oN[d>>16&255]^pN[e>>8&255]^qN[f&255]^b[n++],l=nN[d>>>24]^oN[e>>16&255]^pN[f>>8&255]^qN[c&255]^b[n++],m=nN[e>>>24]^oN[f>>16&255]^pN[c>>8&255]^qN[d&255]^b[n++],f=nN[f>>>24]^oN[c>>16&255]^pN[d>>8&255]^qN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=mN[c>>>24]^h>>>24;a[1]=mN[d>>16&255]^h>>16&255;a[2]=mN[e>>8&255]^ h>>8&255;a[3]=mN[f&255]^h&255;h=b[41];a[4]=mN[d>>>24]^h>>>24;a[5]=mN[e>>16&255]^h>>16&255;a[6]=mN[f>>8&255]^h>>8&255;a[7]=mN[c&255]^h&255;h=b[42];a[8]=mN[e>>>24]^h>>>24;a[9]=mN[f>>16&255]^h>>16&255;a[10]=mN[c>>8&255]^h>>8&255;a[11]=mN[d&255]^h&255;h=b[43];a[12]=mN[f>>>24]^h>>>24;a[13]=mN[c>>16&255]^h>>16&255;a[14]=mN[d>>8&255]^h>>8&255;a[15]=mN[e&255]^h&255}; tN=function(){if(!qJa&&!g.VC){if(sN)return sN;var a;sN=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=sN)?0:b.importKey)&&(null==(c=sN)?0:c.sign)&&(null==(d=sN)?0:d.encrypt))return sN;sN=void 0}}; rJa=function(){this.B=this.Rs=0;this.j=Array.from({length:uN.length}).fill(0)}; sJa=function(){}; tJa=function(){this.startTimeMs=(0,g.EC)();this.j=!1}; uJa=function(){this.j=new sJa}; vJa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new rJa),a.j[b].lh(c,d))}; wJa=function(a,b,c,d,e){var f=(0,g.EC)(),h=e?e(b):void 0,l;e=null!=(l=null==h?void 0:h.Rs)?l:1;if(0!==e){var m;l=null!=(m=null==h?void 0:h.profile)?m:c;vJa(a,l,f-d,e)}return b}; xJa=function(a,b,c,d,e){return b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then?b.then(function(f){return wJa(a,f,c,d,e)},void 0):wJa(a,b,c,d,e)}; yJa=function(){}; vN=function(a,b){this.Id=a;this.cipher=this.Id.exports.AES128CTRCipher_create(b.byteOffset)}; g.wN=function(a){this.D=a}; g.xN=function(a){g.I.call(this);this.B=a}; yN=function(a,b){this.j=new vN(a,b)}; zJa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()}; AJa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,w=0;64>w;)16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=q+zN[w]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=p+zN[w]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=n+zN[w]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ ~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=v),r=m+zN[w]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,w++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]= l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; CJa=function(a){var b=new Uint8Array(32),c=64-a.B;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;BJa(a);return b}; BJa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0}; DJa=function(a){this.j=a}; EJa=function(a,b,c){a=new zJa(a.j);a.update(b);a.update(c);b=CJa(a);a.update(a.G);a.update(b);b=CJa(a);a.reset();return b}; FJa=function(a){this.B=a}; GJa=function(a,b,c,d){var e,f,h;return g.G(function(l){switch(l.j){case 1:if(a.j){l.Ia(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})}; HJa=function(a,b,c){a.C||(a.C=new DJa(a.B));return EJa(a.C,b,c)}; IJa=function(a,b,c){var d,e;return g.G(function(f){if(1==f.j){d=tN();if(!d)return f.return(HJa(a,b,c));g.Ba(f,3);return g.z(f,GJa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.JE(e);qJa=!0;return f.return(HJa(a,b,c))})}; AN=function(){var a=JJa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Mla.apply(null,[Nla.apply(null,g.qa(b))].concat(g.qa(c)));this.store=Pla(a,void 0,b)}; g.KJa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.qa(h),g.qa(l)):l;else if(!Array.isArray(l)&&g.cb(l)&&!Array.isArray(h)&&g.cb(h))d[f]=g.KJa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.eC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,mqb:h,updateValue:l}), g.IE(b),a}return d}; BN=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; LJa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; CN=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; DN=function(a,b,c){return a.split(b).Om.split(c).LJ}; MJa=function(a){a.D=void 0;a.B=0;a.C=0}; NJa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length}; OJa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D}; PJa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!NJa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);MJa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; EN=function(a,b,c){a=PJa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; FN=function(a,b,c){a=EN(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;ce&&bf)KN[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;KN[e++]=55296|f>>10;f=56320|f&1023}KN[e++]=f}}f=String.fromCharCode.apply(String,KN); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; NN=function(a,b){var c;if(null==(c=MN)?0:c.encodeInto)return b=MN.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; SJa=function(a){if(MN)return MN.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=NN(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; ON=function(a){this.j=a;this.pos=0;this.B=-1}; PN=function(a){var b=GN(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=GN(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; QN=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=PN(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:PN(a);break;case 1:a.pos+=8;break;case 2:d=PN(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; RN=function(a,b){if(QN(a,b))return PN(a)}; SN=function(a,b){if(QN(a,b))return!!PN(a)}; TN=function(a,b){if(QN(a,b)){b=PN(a);var c=EN(a.j,a.pos,b);a.pos+=b;return c}}; UN=function(a,b){if(a=TN(a,b))return g.LN(a)}; VN=function(a,b,c){if(a=TN(a,b))return c(new ON(new BN([a])))}; WN=function(a,b){for(var c=[];QN(a,b);)c.push(PN(a));return c.length?c:void 0}; XN=function(a,b,c){for(var d=[],e;e=TN(a,b);)d.push(c(new ON(new BN([e]))));return d.length?d:void 0}; YN=function(a,b){a=a instanceof Uint8Array?new BN([a]):a;return b(new ON(a))}; TJa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a}; UJa=function(a,b){this.Id=b;this.pos=0;this.B=[];this.j=TJa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; ZN=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;cd;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(ZN(a,4);127>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; hO=function(a,b,c){void 0!==c&&($N(a,8*b),$N(a,c))}; iO=function(a,b,c){void 0!==c&&hO(a,b,c?1:0)}; jO=function(a,b,c){void 0!==c&&($N(a,8*b+2),b=c.length,$N(a,b),ZN(a,b),a.j.set(c,a.pos),a.pos+=b)}; kO=function(a,b,c){void 0!==c&&(VJa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),ZN(a,1.2*c.length),b=NN(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(ZN(a,b),b=NN(c,a.j.subarray(a.pos))),a.pos+=b,WJa(a))}; VJa=function(a,b,c){c=void 0===c?2:c;$N(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; WJa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; lO=function(a,b,c,d,e){c&&(VJa(a,b,void 0===e?3:e),d(a,c),WJa(a))}; g.mO=function(a,b,c){c=new UJa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)}; g.nO=function(a){var b=new ON(new BN([Mg(decodeURIComponent(a))]));a=UN(b,2);b=RN(b,4);var c=XJa[b];if("undefined"===typeof c)throw a=new g.eC("Failed to recognize field number",{name:"EntityKeyHelperError",Eob:b}),g.IE(a),a;return{V7:b,entityType:c,entityId:a}}; g.oO=function(a,b){var c=new UJa;jO(c,2,SJa(a));a=YJa[b];if("undefined"===typeof a)throw b=new g.eC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.IE(b),b;hO(c,4,a);hO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Kg(b))}; pO=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; ZJa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.KJa(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; $Ja=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.IE(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.IE(new g.eC("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.$c(e.payload); return pO(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){a:{e=e.entityKey;try{var m=g.nO(e).entityType;l=pO(d,m,e);break a}catch(q){if(q instanceof Error){g.IE(new g.eC("Failed to deserialize entity key",{entityKey:e,NR:q.message}));l=d;break a}throw q;}l=void 0}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.IE(new g.eC("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.$c(e.payload);var n,p;return ZJa(d,l,e.entityKey, e.payload[l],null==(n=e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a); case "REPLACE_ENTITY":var c=b.payload;return pO(a,c.entityType,c.key,c.U7);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 pO(h,e,l,f[l])},d)},a); case "UPDATE_ENTITY":return c=b.payload,ZJa(a,c.entityType,c.key,c.U7,c.bqb);default:return a}}; qO=function(a,b,c){return a[b]?a[b][c]||null:null}; bKa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0c?aKa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=aKa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(rO)&&(c=".");return b.join(c)}; aKa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; cKa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c=Math.random()}; yOa=function(a,b){UO.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:xOa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:xOa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})}; xOa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))}; AOa=function(){g.bC();return g.cC(0,192)?g.cC(0,190):!(g.aB("web_watch_cinematics_disabled_by_default")||g.aB("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&zOa())}; COa=function(a){return!BOa||(0,g.EC)()-BOa>a}; EOa=function(a,b){DOa(a.program,b.Vca)&&(iH("bg_i",void 0,"player_att"),g.VO.initialize(a,function(){iH("bg_l",void 0,"player_att");BOa=(0,g.EC)()},b.cspNonce))}; FOa=function(a){a=void 0===a?{}:a;return g.VO.invoke(a)}; DOa=function(a,b){return a?g.VO.isLoading()?!1:COa(b):!1}; GOa=function(a){a=a.split("");WO.FQ(a,3);WO.mD(a,5);WO.Wm(a,31);WO.FQ(a,1);return a.join("")}; g.HOa=function(a,b){return a.Ga+"timedtext_video?ref=player&v="+b.videoId}; g.XO=function(a,b){a.feature=b;return a}; g.IOa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.VO.isInitialized()){var d="";b.videoData&&b.videoData.Mq&&(d=b.videoData.Mq+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);iH("bg_v",void 0,"player_att");(d=FOa(d))?(iH("bg_s",void 0,"player_att"),c.push("r1a="+d)):(iH("bg_e",void 0,"player_att"),c.push("r1c=2"))}else iH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.VO.getState()); return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^vH())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.FA("CATSTAT",0)))},a); this.videoData&&this.videoData.Mq?this.Oq=NA(this.videoData.Mq):this.Oq={}}; g.JOa=function(a){if(a.videoData&&a.videoData.Mq){for(var b=[a.videoData.Mq],c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.Oq[d]&&a.j[d]&&(d=a.j[d](a.Oq))&&b.push(d);return b.join("&")}return null}; g.KOa=function(a,b){EOa(a,{Vca:g.EI(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; LOa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; YO=function(a){a=void 0===a?2592E3:a;if(0(0,g.EC)()-1E3*a))return 0;a=g.YB("yt-player-quality");if("string"===typeof a){if(a=g.eK[a],0a.previousQuality)return 1;if(a.quality>31));hO(a,16,b.U9);hO(a,17,b.detailedNetworkType);hO(a,18,b.i7);hO(a,19,b.h7);hO(a,21,b.Uda);hO(a,23,b.X6);hO(a,28,b.aS);hO(a,29,b.lea);hO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for($N(a,285),ZN(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}hO(a,36,b.L7); lO(a,38,b.mediaCapabilities,hPa,3);hO(a,39,b.jea);hO(a,40,b.hw);hO(a,44,b.playerState);iO(a,46,b.I7);hO(a,48,b.wda);hO(a,50,b.Sv);hO(a,51,b.gy);hO(a,54,b.kq);iO(a,56,b.w$);hO(a,57,b.n7);iO(a,58,b.zo);hO(a,59,b.jj);hO(a,60,b.mx);iO(a,61,b.isPrefetch);hO(a,62,b.qz);jO(a,63,b.sabrLicenseConstraint);hO(a,64,b.W9);hO(a,66,b.V9);hO(a,67,b.TA);hO(a,68,b.LA)}; hPa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c>31));kO(a,2,b.message)}; mPa=function(a,b){jO(a,1,b.rB);lO(a,2,b.tqb,nPa,3)}; lPa=function(a,b){hO(a,1,b.type);jO(a,2,b.value)}; kPa=function(a,b){kO(a,12,b.deviceMake);kO(a,13,b.deviceModel);hO(a,16,b.clientName);kO(a,17,b.clientVersion);kO(a,18,b.osName);kO(a,19,b.osVersion)}; oPa=function(a,b){kO(a,1,b.name);kO(a,2,b.value)}; pPa=function(a,b){kO(a,1,b.url);if(b.SP)for(var c=0;cd.length||b.push({E1:d[0],platform:d[1],deviceVersion:d[2],QY:c}))}return b}; aQa=function(a){return YPa(a).map(function(b){return{deviceInterface:ZPa[$Pa[b.E1]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.QY}})}; g.aP=function(a,b){this.id=a;this.lc=b;this.captionTracks=[];this.C=this.D=null;this.xtags="";this.G=!1;this.j=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.lc.id.split(".");1=b)}; hP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")}; iP=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.lc||a.has(d.lc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.lc,itag:d.itag,xtag:d.j,lang:(null==(e=d.lc)?void 0:e.name)||"",langid:(null==(f=d.lc)?void 0:f.id)||""})}else e=new g.aP(d.id,d.lc),a.add(d.lc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}}; dQa=function(){g.I.apply(this,arguments);this.j=null}; hQa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(jP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.qb]=[a.info]);return n}p=eQa(b,d,l);f&&e({aftsrt:kP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),w=v.next();!w.done;w=v.next()){w=w.value;var A=w.itag,D=void 0,F=t+"_"+((null==(D=w.video)?void 0:D.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(w):l[A]=q[F]:(D=lP(b,w,c,d.isLive,m),!0!==D?(h.add(t),l[A]=D, "disablevp9hfr"===D&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(w),q[F]=!0))}}f&&e({bfflt:kP(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].vg()&&(n[d]=n[d],n[d]=fQa(b,n[d],l),n[d]=gQa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.P0;f&&e({aftflt:kP(n)});a.j=g.Xc(n,function(L){return!!L.length}); return a.j}; jQa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Qc&&h&&1h?A=c:b.yd&&p===h&&tQa(q[c])&&(A=c));"9"===A&&q.h&&pP(q.h)>pP(q["9"])&&(A="h");b.Jb&&d.isLive&&"("===A&&q.H&&1440>pP(q["("])&&(A="H");m&&f({vfmly:uQa(A)});b=q[A];if(!b.length)return m&&f({novfmly:uQa(A)}), hB();oP(b);return iB(new iP(b,a,n))}; lQa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c}; tQa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&vQa.has(b.itag))return!0;return!1}; uQa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; kP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(uQa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; kQa=function(a,b,c,d,e,f){var h={},l={};g.Vc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.le)return l[q]="noenc",!1;if(f.Gb&&"(h"===p.qb&&f.zb)return l[q]="lichdr",!1;if("("===p.qb||"(h"===p.qb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.le[c.flavor]&&!!c.j[r])||(l[q]=p.le[c.flavor]?"unspt":"noflv");return r}if(!qP(a,rP.CRYPTOBLOCKFORMAT)&&!a.Ca||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.le[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.le[c.flavor]? "unspt":"noflv":"nosys",!1)}); m.length&&(h[n]=m)}); d&&Object.entries(l).length&&e(l);return h}; gQa=function(a,b){var c=bs(a,function(d,e){return 32c&&(a=a.filter(function(d){if(32a.K)return"max"+a.K;if(a.gb&&"h"===b.qb&&b.video&&1080a.bb)return"av1cap";if((d=c.C.get(b.qb))&&0a.sb)return"ratecap";a=wQa(c,b);return!0!==a?a:!0}; oP=function(a,b){b=void 0===b?[]:b;g.Vb(a,function(c,d){var e=d.sb-c.sb;if(!c.vg()||!d.vg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0a.Cd())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a); 0a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(48>d||122d;d++)c[d]=a.getInt8(b.offset+16+d);return c}; SP=function(a,b){this.j=a;this.pos=0;this.start=b||0}; TP=function(a){return a.pos>=a.j.byteLength}; YP=function(a,b,c){var d=new SP(c);if(!UP(d,a))return!1;d=VP(d);if(!WP(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=XP(d,!0);d=a+(d.start+d.pos-b)+e;d=9b;b++)c=256*c+bQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+bQ(a),d*=128;return b?c-d:c}; $P=function(a){var b=XP(a,!0);a.pos+=b}; eRa=function(a){if(!WP(a,440786851,!0))return null;var b=a.pos;XP(a,!1);var c=XP(a,!0)+a.pos-b;a.pos=b+c;if(!WP(a,408125543,!1))return null;XP(a,!0);if(!WP(a,357149030,!0))return null;var d=a.pos;XP(a,!1);var e=XP(a,!0)+a.pos-d;a.pos=d+e;if(!WP(a,374648427,!0))return null;var f=a.pos;XP(a,!1);var h=XP(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295); l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l}; cQ=function(a){var b=a.pos;a.pos=0;var c=1E6;UP(a,[408125543,357149030,2807729])&&(c=ZP(a));a.pos=b;return c}; fRa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!dQ(a)||!WP(a,160))return a.pos=c,NaN;XP(a,!0);var d=a.pos;if(!WP(a,161))return a.pos=c,NaN;XP(a,!0);bQ(a);var e=bQ(a)<<8|bQ(a);a.pos=d;if(!WP(a,155))return a.pos=c,NaN;d=ZP(a);a.pos=c;return(e+d)*b/1E9}; dQ=function(a){if(!gRa(a)||!WP(a,524531317))return!1;XP(a,!0);return!0}; gRa=function(a){if(a.Qn()){if(!WP(a,408125543))return!1;XP(a,!0)}return!0}; UP=function(a,b){for(var c=0;c=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Rb&&a.Ue?!0:!1}; xRa=function(a){return a.Pa+(a.Ue?1:0)}; yRa=function(a){1===a.length||g.as(a,function(c){return!!c.range}); for(var b=1;b=b.range.start+b.Rb&&a.range.start+a.Rb+a.B<=b.range.start+b.Rb+b.B:a.Pa===b.Pa&&a.Rb>=b.Rb&&(a.Rb+a.B<=b.Rb+b.B||b.Ue)}; FRa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.fg()?(a=a.j.IB(a),Ys(a,function(c){return FRa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Rb+b.B>a.Rb&&b.Rb+b.B<=a.Rb+a.B}; GRa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.Z,a.duration=b.duration,uRa(a)}; sQ=function(a,b){var c=this;this.ib=a;this.D=this.j=null;this.G=this.eh=NaN;this.Jj=this.requestId=null;this.qd={vpb:function(){return c.range}}; this.resource=a[0].j.resource;this.B=b||"";this.ib[0].range&&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 yP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; BQ=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.K=!1;this.G=this.info.j.vA()&&!this.info.Rb}; CQ=function(a){return PJa(a.j)}; YRa=function(a,b){b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Om;c=new BQ(new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb,b,!1,a.info.Fj,a.info.clipId),c.LJ);c.D=a.D;c.C=a.C;b=new BQ(new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb+b,a.info.B-b,a.info.Ue,a.info.Fj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]}; DQ=function(a,b,c){var d;if(!(d=!qQ(a.info,b.info)||a.info.Ue)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?LJa(c,d.j[0]):1);d=c}if(d)return null;c=new mQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb,a.info.B,a.info.Ue,a.info.Fj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.Ue=d.Ue;d=new BN;CN(d,a.j);CN(d,b.j);c=new BQ(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c}; ZRa=function(a){g.nK(a.info.j.info)||a.info.j.info.Me();if(-1!==a.C)return a.C;if(a.B&&MQa(a.B))return a.C=MQa(a.B),a.C;if(g.nK(a.info.j.info)){var b=CQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;OP(b,f);){var h=PP(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.LP(h):1952867444===h.type&&isNaN(d)&&(d=g.UQa(h));f=QP(h.type)?f+8:f+h.size}!e&&c&&(e=MP(c));b=d/e}else b=new SP(CQ(a)),c=a.G?b:new SP(new DataView(a.info.j.j.buffer)),d=cQ(c),c=b.pos,b.pos=0,dQ(b)?WP(b,231)? (d=ZP(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C}; aSa=function(a,b){0e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; EQ=function(a,b){b=void 0===b?!1:b;var c=bSa(a);a=b?0:a.info.K;return c||a}; bSa=function(a){g.nK(a.info.j.info)||a.info.j.info.Me();if(a.B&&6===a.info.type)return a.B.Gj;if(g.nK(a.info.j.info)){var b=CQ(a);var c=0;b=g.RP(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=VQa(d.value),c+=d.oT[0]/d.zs;c=c||NaN;if(!(0<=c))a:{c=CQ(a);b=a.info.j.j;for(var e=d=0,f=0;OP(c,d);){var h=PP(c,d);if(1836476516===h.type)e=g.LP(h);else if(1836019558===h.type){!e&&b&&(e=MP(b));if(!e){c=NaN;break a}var l=NP(h.data,h.dataOffset,1953653094),m=l;l=e;var n=NP(m.data,m.dataOffset, 1952868452);m=NP(m.data,m.dataOffset,1953658222);var p=CP(n);CP(n);p&2&&CP(n);n=p&8?CP(n):0;var q=CP(m),r=q&1;p=q&4;var t=q&256,v=q&512,w=q&1024;q&=2048;var A=DP(m);r&&CP(m);p&&CP(m);for(var D=r=0;Da.qa&&a.isLivePlayback;a.Wa=Number(vQ(c, a.D+":earliestMediaSequence"))||0;if(d=Date.parse(NRa(vQ(c,a.D+":mpdResponseTime"))))a.Ca=((0,g.EC)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.as(c.getElementsByTagName("Period"),a.tca,a);a.state=2;a.publish("loaded");OSa(a)}return a}).xl(function(c){if(c instanceof dB){var d=c.xhr; a.wg=d.status}a.state=3;a.publish("loaderror");return ng(d)})}; QSa=function(a,b,c){return PSa(new IQ(a,b,c),a)}; RSa=function(a){return a.isLive&&(0,g.EC)()-a.Na>=a.qa}; SSa=function(a){a.G&&a.G.stop()}; OSa=function(a){var b=a.qa;isFinite(b)&&(RSa(a)?a.refresh():(b=Math.max(0,a.Na+b-(0,g.EC)()),a.G||(a.G=new g.xv(a.refresh,b,a),g.N(a,a.G)),a.G.start(b)))}; TSa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Cd()+1}return 0}; LQ=function(a){return a.Ob?a.Ob-(a.K||a.timestampOffset):0}; MQ=function(a){return a.Za?a.Za-(a.K||a.timestampOffset):0}; NQ=function(a){if(!isNaN(a.Ga))return a.Ga;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!rK(b[c].info.mimeType)){b=0;for(c=d.Dn();c<=d.Cd();c++)b+=d.getDuration(c);b/=d.Vz();b=.5*Math.round(b/.5);10=navigator.hardwareConcurrency&&(d=480);b.coreCount=navigator.hardwareConcurrency;kqa()&&(b.isArm=1,d=240);if(c){var f,h;if(e=null==(f=c.videoInfos.find(function(l){return lK(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)d=8192,b.isEfficient=1; c=c.videoInfos[0].video;a=Math.min(TQ(a,"1",c.fps),TQ(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=TQ(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=TQ(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d}; UQ=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Wa=this.keySystemAccess=null;this.Ly=this.My=-1;this.Nl=null;this.C=!!d&&d.fb("edge_nonprefixed_eme")}; WQ=function(a){return a.C?!1:!a.keySystemAccess&&!!VQ()&&"com.microsoft.playready"===a.keySystem}; XQ=function(a){return"com.microsoft.playready"===a.keySystem}; YQ=function(a){return!a.keySystemAccess&&!!VQ()&&"com.apple.fps.1_0"===a.keySystem}; ZQ=function(a){return"com.youtube.fairplay"===a.keySystem}; $Q=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem}; g.aR=function(a){return"fairplay"===a.flavor}; VQ=function(){var a=window,b=a.MSMediaKeys;rB()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; gTa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.aK&&!g.pB())return Xv("45");if(g.VC||g.Ks)return a.fb("edge_nonprefixed_eme");if(g.bR)return Xv("47");if(g.zC){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.EI(a,"html5_safari_desktop_eme_min_version"))return Xv(a)}return!0}; iTa=function(a,b,c,d){var e=qB(),f=(c=e||c&&rB())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.qa(f),g.qa(hTa.playready)):[].concat(g.qa(hTa.playready),g.qa(f))}; cR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Da=b;this.useCobaltWidevine=d;this.ma=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)}; lTa=function(a,b){a.callback=b;a.D=[];gTa(a.Da.experiments)?jTa(a):kTa(a)}; jTa=function(a){if(!a.Ma())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=mTa(a,c);if(eR&&eR.keySystem===b&&eR.hda===JSON.stringify(d))a.ma("remksa",{re:!0}),nTa(a,c,eR.keySystemAccess);else{var e,f;a.ma("remksa",{re:!1,ok:null!=(f=null==(e=eR)?void 0:e.keySystem)?f:""});eR=void 0;(fR.isActive()?fR.Co("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(sO(function(h){nTa(a,c,h,d)}),sO(function(){a.G=!a.G&&"widevine"=== a.C[a.B[0]].flavor; a.G||a.B.shift();jTa(a)}))}}}; nTa=function(a,b,c,d){if(!a.Ma()){d&&(eR={keySystem:b.keySystem,keySystemAccess:c,hda:JSON.stringify(d)});b.keySystemAccess=c;if(XQ(b)){c=ZJ();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())oTa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())oTa(a,b,d.value)}a.D.push(b); a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&$Q(b)?(a.B.shift(),jTa(a)):a.callback(a.D)}}; oTa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; mTa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&ZQ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];XQ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[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.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.aK&&g.nB("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.gR(a.Da)&&(vB()||oB())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; kTa=function(a){if(VQ()&&g.zC)a.D.push(new UQ("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=pTa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h}); c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)}; pTa=function(){var a=VQ();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=ZJ(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; qTa=function(a){this.experiments=a;this.C=0;this.G=(this.D=this.experiments.fb("html5_consider_end_stall"))&&hR;this.B=this.experiments.fb("html5_measure_max_progress_handling");this.j=this.L("html5_use_media_for_elbow")}; rTa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=LA(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.EI=function(a,b){return Number(a.flags[b])||0}; iR=function(a,b){return(a=a.flags[b])?a.toString():""}; sTa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; tTa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.qa(a.experimentIds)).map(function(d){return Number(d)}); b.sort();for(var c=b.length-1;0=f&&f>d&&!0===wQa(a,e,c)&&(d=f)}return d}; g.yTa=function(a,b){b=void 0===b?!1:b;return jR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(ZJ(),"application/x-mpegURL")?!0:!1}; ATa=function(a){zTa(function(){for(var b=g.u(Object.keys(rP)),c=b.next();!c.done;c=b.next())qP(a,rP[c.value])})}; qP=function(a,b){b.name in a.N||(a.N[b.name]=BTa(a,b));return a.N[b.name]}; BTa=function(a,b){if(a.G)return!!a.G[b.name];if(b===rP.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===rP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.On);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.On)}; CTa=function(a){a.D||(a.D=!0,a.B=!0)}; DTa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).a8);a.C.set(b,{a8:c+1,P0:Math.pow(2,c+1)});a.B=!0}; nP=function(a){for(var b=[],c=g.u(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")}; nQa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c}; pQa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,qb:b,Ch:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=null==l?void 0:l.width;h.maxHeight=null==l?void 0:l.height;h.maxFramerate=e;qP(a,rP.BITRATE)&&(h.maxBitrateBps=8*c.sb);h.VE=null==l?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,qb:b,Ch:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth|| 0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,VE:c.VE},qP(a,rP.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)}; qQa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,qb:b,Ch:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,qP(a,rP.BITRATE)&&(b.maxBitrateBps=8*c.sb), b.VE=null==f?void 0:f.isHdr()),a.j.set(d,b))}; kR=function(){g.aF.call(this);this.items={}}; lR=function(){g.wN.apply(this,arguments)}; mR=function(){g.xN.apply(this,arguments)}; nR=function(a,b){var c=a.zI(b);yN.call(this,a,c||b);this.Id=a;c&&this.Id.exports.free(c.byteOffset)}; ETa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)}; FTa=function(a){a.B||(a.B=new lR(a.j));return a.B}; oR=function(a){try{return Mg(a)}catch(b){return null}}; GTa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?oR(b.clientKey):null;var c=b.encryptedClientKey?oR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.EC)():null;a&&c&&d&&(this.j=new ETa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=oR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; pR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)}; qR=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.gm=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a=ER;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.BR(this)&&this.B;n=this.B&&!this.Z;m=g.FR(this)||!l&&wB(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Gl=this.B;this.color=xB("red",b?b.progressBarColor:a.color,cUa);this.Gp="3"===this.controlsType;this.qc=!this.D;this.Vm=(m=!this.qc&&!DR(this)&&!this.qa&&!this.K&&!CR(this))&&!this.Gp&&"1"===this.controlsType;this.Sd=g.GR(this)&&m&&"0"===this.controlsType&&!this.Vm;this.jq=this.Pp= l;this.pd=("3"===this.controlsType||this.B||wB(!1,a.use_media_volume))&&!this.Z;this.Ym=sB&&!g.Pc(601)?!1:!0;this.Zo=this.D||!1;this.Qc=DR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=zB("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||wB(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.wj=this.L("enable_cast_for_web_unplugged")&&g.HR(this)&&l||this.L("enable_cast_on_music_web")&&g.jG(this)&&l||p&&l&&"1"=== this.controlsType&&!this.B&&(DR(this)||g.GR(this)||g.IR(this));this.bq=!!window.document.pictureInPictureEnabled||HDa();p=b?!!b.supportsAutoplayOverride:wB(!1,a.autoplayoverride);this.Ki=!(this.B&&!g.BR(this))&&!g.nB("nintendo wiiu")||p;this.Li=(b?!!b.enableMutedAutoplay:wB(!1,a.mutedautoplay))&&!1;p=(DR(this)||CR(this))&&"blazer"===this.playerStyle;this.zk=b?!!b.disableFullscreen:!wB(!0,a.fs);l=g.FB(g.JR(this))&&g.BR(this);this.Gb=!this.zk&&(p||g.JB())&&!l;this.Hl=this.L("uniplayer_block_pip")&& (oB()&&Xv(58)&&!vB()||UC);p=g.BR(this)&&!this.Nl;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.yd=p||wB(!this.K,q);this.Tm=wB(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=vB()&&0=ER?"_top":"_blank";this.Sg=g.IR(this);this.Fl=wB("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q= "gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.ra=q;this.Ca=zB("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.BR(this)&&(this.Bc||!eqa()||this.Wa);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.je=((q=!this.Tb)||!!this.Ca&&q)&&wB(!this.qa,this.N?r:void 0); this.xf=b?b.isMobileDevice||!!b.disableKeyboardControls:wB(!1,a.disablekb);this.loop=wB(!1,a.loop);this.pageId=zB("",b?b.initialDelegatedSessionId:a.pageid);this.Tp=wB(!0,a.canplaylive);this.zb=wB(!1,a.livemonitor);this.disableSharing=wB(this.K,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||0>=r*q?null:new g.Ke(r,q))): r=null;this.Zm=r;this.mute=b?!!b.startMuted:wB(!1,a.mute);this.storeUserVolume=!this.mute&&wB("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:xB(void 0,r,KR);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":zB("",a.cc_lang_pref);r=xB(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,KR);"3"===this.controlsType&&2===r&&(r=3);this.Jb=r;this.nj=b?b.hl||"en_US":zB("en_US", a.hl);this.region=b?b.contentRegion||"US":zB("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":zB("en",a.host_language);this.Uo=!this.Bc&&Math.random()Math.random();this.Gk=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new GTa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0: b.canaryStage;this.Of=new STa;g.N(this,this.Of);this.Jl=wB(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.FA("DATASYNC_ID");this.Ll=g.FA("LOGGED_IN",!1);this.sj=(null==b?void 0:b.allowWoffleManagement)||!1;this.El=this.Dl=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Qf=!0:this.Qf=100*Math.random()v.width*v.height*v.fps)v=F}else r.push(F)}else l[D]="disdrmhfr";t.reduce(function(M, R){return R.getInfo().isEncrypted()&&M},!0)&&(q=p); e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(AUa(r,c,d,f,"93",v,p,n,m,"auto",e,q,w,A));Object.entries(l).length&&h(l);return bS(a.G,t,jUa(a,b),!1)}; AUa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,w="",A=g.u(a),D=A.next();!D.done;D=A.next())D=D.value,w||(w=D.itag),D.audioChannels&&D.audioChannels>v&&(v=D.audioChannels,w=D.itag);e=new jK(e,"application/x-mpegURL",{audio:new dK(0,v),video:new fK(f,h,l,null,void 0,n,void 0,r),le:q,a_:w});a=new pUa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new cS(e,a,m)}; xUa=function(a){a=g.u(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}; zUa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.le===b.le&&!e.audioChannels)return d}return""}; yUa=function(a){for(var b=new Set,c=g.u(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.u(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.u(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]}; dS=function(a,b){this.j=a;this.B=b}; CUa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.sP(h.url,!0);if(h.s){var l=f,m=h.sp,n=GOa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=sK(h.type,h.quality,h.itag,h.width,h.height);e.push(new dS(h,f))}}return bS(a.G,e,jUa(a,b),!1)}; eS=function(a,b){this.j=a;this.B=b}; DUa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=sK(e.type,"medium","0");d.push(new eS(f,e.url))}return bS(a.G,d,jUa(a,b),!1)}; EUa=function(a,b){var c=[],d=sK(b.type,"auto",b.itag);c.push(new eS(d,b.url));return bS(a.G,c,!1,!0)}; GUa=function(a){return a&&FUa[a]?FUa[a]:null}; HUa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Oo=oR(a.ustreamerConfig)||void 0)}; IUa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.T_=new HUa(b)}; g.fS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""}; g.hS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.gS(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; g.iS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.JUa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.iS(a));return b}; g.gS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")}; NUa=function(a,b,c,d){a||(a=b&&KUa.hasOwnProperty(b)&&LUa.hasOwnProperty(b)?LUa[b]+"_"+KUa[b]:void 0);b=a;if(!b)return null;a=b.match(MUa);if(!a||5!==a.length)return null;if(a=b.match(MUa)){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}; jS=function(a,b){for(var c={},d=g.u(Object.keys(OUa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.gJ(f)&&(c[OUa[e]]=f)}return c}; kS=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.u(Object.keys(PUa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=PUa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=QUa(h.url);g.gJ(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=QUa(a.url),g.gJ(a)&&(b["maxresdefault.jpg"]=a));return b}; QUa=function(a){return a.startsWith("//")?"https:"+a:a}; lS=function(a){return a&&a.baseUrl||""}; mS=function(a){a=g.OA(a);for(var b=g.u(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}; RUa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Mq=b)}; UUa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.V(h,SUa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.V(h,TUa))return Object.assign({is_yto_interstitial:!0},NA(h))}); d=g.u(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,Mo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Mo: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, Mo:0===f?5:7})}}}; VUa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; WUa=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)}; XUa=function(a,b){null!=b?(a.zp=b,a.Hf=!0):(a.zp="",a.Hf=!1)}; nS=function(a,b){this.type=a||"";this.id=b||""}; g.YUa=function(a){return new nS(a.substr(0,2),a.substr(2))}; g.oS=function(a,b){this.Da=a;this.author="";this.WD=null;this.playlistLength=0;this.j=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=LA(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=jS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new nS("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.YUa(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; g.pS=function(a,b){this.Da=a;this.Os=this.author="";this.WD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Xw=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Os=b.Os||"";if(a=b.endscreen_autoplay_session_data)this.WD=LA(a,"&");this.XD=b.XD;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.Xw=b.Xw||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=LA(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=jS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; ZUa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a}; g.bVa=function(a){var b,c,d;a=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,$Ua);return g.V(null==a?void 0:a.playerBar,aVa)}; cVa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url}; dVa=function(){if(void 0===qS){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.hw(g.fC()+"::yt-player"))){qS=new lG(a);break a}qS=void 0}}return qS}; g.rS=function(){var a=dVa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.eVa=function(a){var b=dVa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.sS=function(a){return g.rS()[a]||0}; g.tS=function(a,b){var c=g.rS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.eVa(c))}; g.uS=function(a){return g.G(function(b){return b.return(g.SC(fVa(),a))})}; kVa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:return m=g.sS(a),4===m?v.return(4):g.z(v,g.XC(),2);case 2:n=v.B;if(!n)throw g.AC("wiac");if(!l||void 0===h){v.Ia(3);break}return g.z(v,gVa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.uS(n),5);case 5:return q=v.B,g.Ba(v,6),vS++,g.z(v,g.HC(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Pb:!0},function(w){if(void 0!==f&&void 0!==h){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, "0");A=g.IC(w.objectStore("media"),h,A)}else A=g.CC.resolve(void 0);var D=hVa(a,b.vg()),F=hVa(a,!b.vg()),H={fmts:iVa(d),format:c||{}};D=g.IC(w.objectStore("index"),H,D);var L=-1===d.downloadedEndTime;H=L?w.objectStore("index").get(F):g.CC.resolve(void 0);var M={fmts:"music",format:{}};w=L&&e&&!b.vg()?g.IC(w.objectStore("index"),M,F):g.CC.resolve(void 0);return g.CC.all([w,H,A,D]).then(function(R){R=g.u(R);R.next();R=R.next().value;vS--;var ea=g.sS(a);if(4!==ea&&L&&e||void 0!==R&&g.jVa(R.fmts))ea= 1,g.tS(a,ea);return ea})}),8); case 8:return v.return(v.B);case 6:r=g.Da(v);vS--;t=g.sS(a);if(4===t)return v.return(t);g.tS(a,4);throw r;}})}; g.lVa=function(a){var b,c;return g.G(function(d){if(1==d.j)return g.z(d,g.XC(),2);if(3!=d.j){b=d.B;if(!b)throw g.AC("ri");return g.z(d,g.uS(b),3)}c=d.B;return d.return(g.HC(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; nVa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){if(1==m.j)return g.z(m,g.XC(),2);if(3!=m.j){f=m.B;if(!f)throw g.AC("rc");return g.z(m,g.uS(f),3)}h=m.B;l=g.HC(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return mVa(e,n)}).catch(function(n){throw new g.eC("Error while reading chunk: "+n.name+", "+n.message); })):m.return(l)})}; g.jVa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; hVa=function(a,b){return""+a+"|"+(b?"v":"a")}; iVa=function(a){var b={};return MA((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; pVa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.oVa)?(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.u(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}; wS=function(a){g.aF.call(this);this.j=null;this.C=new kw;this.j=null;this.K=new Set;this.crossOrigin=a||""}; qVa=function(a,b,c){for(c=xS(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(yS(d,b))&&(d=g.zS(d,b)))return d;c--}return g.zS(a.levels[0],b)}; sVa=function(a,b,c){c=xS(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=yS(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{yZ:f,ZZ:e}))}rVa(a)}; rVa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=tVa(a,b)}}; tVa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.yZ].Le(b.ZZ);c.onload=function(){var d=b.yZ,e=b.ZZ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);rVa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.iJ()-1);e=[e,d];a.publish("l",e[0],e[1])}; return c}; g.AS=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.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d}; yS=function(a,b){return Math.floor(b/(a.columns*a.rows))}; g.zS=function(a,b){b>=a.aN()&&a.Iy();var c=yS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Iy()+1-d*c;if(f=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; vVa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.AS.call(this,a,b,c,0);this.B=null;this.G=d?2:0}; CS=function(a,b,c,d){BS.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;aIS?!1:!0,a.isLivePlayback=!0;else if(pc.isLive){En.livestream="1";a.allowLiveDvr=pc.isLiveDvrEnabled? jR()?!0:tB&&5>IS?!1:!0:!1;a.La=27;pc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var tl=pc.latencyClass;tl&&(a.latencyClass=NVa[tl]||"UNKNOWN");var ul=pc.liveChunkReadahead;ul&&(a.liveChunkReadahead=ul);var ni=tk&&tk.livePlayerConfig;if(ni){ni.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);ni.hasSubfragmentedWebm&&(a.OE=!0);ni.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var wp=ni.liveExperimentalContentId;wp&&(a.liveExperimentalContentId=Number(wp));var xp=ni.isLiveHeadPlayable; a.L("html5_live_head_playable")&&null!=xp&&(a.isLiveHeadPlayable=xp)}vp=!0}else pc.isUpcoming&&(vp=!0);vp&&(a.isLivePlayback=!0,En.adformat&&"8"!==En.adformat.split("_")[1]||a.Ea.push("heartbeat"),a.Qp=!0)}var yp=pc.isPrivate;void 0!==yp&&(a.isPrivate=wB(a.isPrivate,yp))}if(ia){var Fn=pc||null,tm=!1,uk=ia.errorScreen;tm=uk&&(uk.playerLegacyDesktopYpcOfferRenderer||uk.playerLegacyDesktopYpcTrailerRenderer||uk.ypcTrailerRenderer)?!0:Fn&&Fn.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ia.status); if(!tm){a.errorCode=GUa(ia.errorCode)||"auth";var vl=uk&&uk.playerErrorMessageRenderer;if(vl){a.playerErrorMessageRenderer=vl;var Gn=vl.reason;Gn&&(a.errorReason=g.lF(Gn));var um=vl.subreason;um&&(a.An=g.lF(um),a.Ny=um)}else a.errorReason=ia.reason||null;var zp=ia.status;if("LOGIN_REQUIRED"===zp)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===zp)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===zp){var Ap=ia.errorScreen,Bp=Ap&&Ap.playerKavRenderer;a.errorDetail=Bp&&Bp.kavUrl?"4":"3"}else a.errorDetail= ia.isBlockedInRestrictedMode?"5":"0"}}var wl=a.playerResponse.interstitialPods;wl&&UUa(a,wl);a.Va&&a.eventId&&(a.Va=QA(a.Va,{ei:a.eventId}));var xl=a.playerResponse.captions;if(xl&&xl.playerCaptionsTracklistRenderer)a:{var zg=xl.playerCaptionsTracklistRenderer;a.captionTracks=[];if(zg.captionTracks)for(var vh=g.u(zg.captionTracks),oi=vh.next();!oi.done;oi=vh.next()){var jf=oi.value,Hn=BVa(jf.baseUrl);if(!Hn)break a;var Cp={is_translateable:!!jf.isTranslatable,languageCode:jf.languageCode,languageName:jf.name&& g.lF(jf.name),url:Hn,vss_id:jf.vssId,kind:jf.kind};Cp.name=jf.trackName;Cp.displayName=jf.name&&g.lF(jf.name);a.captionTracks.push(new g.fS(Cp))}a.HC=zg.audioTracks||[];a.oY=zg.defaultAudioTrackIndex||0;a.uv=[];if(zg.translationLanguages)for(var In=g.u(zg.translationLanguages),yl=In.next();!yl.done;yl=In.next()){var Ag=yl.value,Bg={};Bg.languageCode=Ag.languageCode;Bg.languageName=g.lF(Ag.languageName);if(Ag.translationSourceTrackIndices){Bg.translationSourceTrackIndices=[];for(var vk=g.u(Ag.translationSourceTrackIndices), Dp=vk.next();!Dp.done;Dp=vk.next())Bg.translationSourceTrackIndices.push(Dp.value)}if(Ag.excludeAudioTrackIndices){Bg.excludeAudioTrackIndices=[];for(var wk=g.u(Ag.excludeAudioTrackIndices),Dj=wk.next();!Dj.done;Dj=wk.next())Bg.excludeAudioTrackIndices.push(Dj.value)}a.uv.push(Bg)}a.IC=[];if(zg.defaultTranslationSourceTrackIndices)for(var zl=g.u(zg.defaultTranslationSourceTrackIndices),vm=zl.next();!vm.done;vm=zl.next())a.IC.push(vm.value);a.tv=!!zg.contribute&&!!zg.contribute.captionsMetadataRenderer}a.clipConfig= a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.zH=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&WUa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Jn;a.compositeLiveIngestionOffsetToken=null==(Jn=a.playerResponse.playbackTracking)?void 0:Jn.compositeLiveIngestionOffsetToken;var Ep; a.compositeLiveStatusToken=null==(Ep=a.playerResponse.playbackTracking)?void 0:Ep.compositeLiveStatusToken}zVa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Fp=b.hlsdvr;null!=Fp&&(a.allowLiveDvr="1"==Fp?jR()?!0:tB&&5>IS?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.hv||(a.hv=b.encoded_ad_safety_reason||null);a.YV=b.agcid||null;a.vC=b.ad_id||null;a.zC=b.ad_sys||null;a.gD=b.encoded_ad_playback_context||null;a.Fk=wB(a.Fk,b.infringe||b.muted);a.xca=b.authkey;a.P8=b.authuser;a.mutedAutoplay=wB(a.mutedAutoplay, b&&b.playmuted);a.uM=wB(a.uM,b&&b.mutedautoplay);var wm=b.length_seconds;wm&&(a.lengthSeconds="string"===typeof wm?bf(wm):wm);if(a.isAd()||a.Tm||!g.FB(g.JR(a.Da)))a.endSeconds=yB(a.endSeconds,a.nH||b.end||b.endSeconds);else{var Al=a.lengthSeconds;switch(g.JR(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30Al&&10(null!=c?c:50)&&(c=TVa.shift())&&SVa.delete(c),c=e),e!==c&&a.EB("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)}; zVa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Na=c;var e=a.Na.playerCueRangeSet;e&&g.MVa(a,e);var f=a.Na.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.V(l,UVa),a.L("web_player_autonav_use_server_provided_state")&&VVa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p= m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.lF(p.title)),p.subtitle&&(b.subtitle=g.lF(p.subtitle)))}g.GR(a.Da)&&(a.je=!!h.addToMenu);WVa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.w9=g.V(q,XVa));var r,t,v,w=g.V(null== (r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,YVa);if(w){a.kD=Number(null==w?void 0:w.durationMs)||NaN;if(null==w?0:w.infoPanelOverviewViewModel)a.xf=null==w?void 0:w.infoPanelOverviewViewModel;if(null==w?0:w.infoPanelDetailsViewModel)a.Fl=null==w?void 0:w.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,D,F=null==(A=a.getWatchNextResponse())?void 0:null==(D=A.contents)?void 0:D.twoColumnWatchNextResults; if(F){var H=F.desktopOverlay&&g.V(F.desktopOverlay,ZVa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.je=!1))}n&&$Va(a,b,n);var L=yB(0,b.autoplay_count),M=a.getWatchNextResponse(),R,ea=null==(R=M.contents)?void 0:R.twoColumnWatchNextResults,la,ka,ia,sa=null==(la=M.playerOverlays)?void 0:null==(ka=la.playerOverlayRenderer)?void 0:null==(ia=ka.autoplay)?void 0:ia.playerOverlayAutoplayRenderer,aa=ZUa(a),U,Ha=null==(U=M.contents)?void 0:U.singleColumnWatchNextResults; if(Ha){var x;if((null==(x=Ha.autoplay)?0:x.autoplay)&&!Ha.playlist){var ba=Ha.autoplay.autoplay.sets,La={},ab=new g.pS(a.U()),lb=null,Qa;if(ba){for(var Ua=g.u(ba),jb=Ua.next();!jb.done;jb=Ua.next()){var rb=jb.value.autoplayVideoRenderer;if(rb&&rb.compactVideoRenderer){lb=rb.compactVideoRenderer;break}}if(Qa=ba[0].autoplayVideo){var pb=Qa.clickTrackingParams;pb&&(La.itct=pb);La.autonav="1";La.playnext=String(L)}}else La.feature="related-auto";var B=g.V(Qa,g.PS);if(lb){ab.videoId=lb.videoId;var C=lb.shortBylineText; C&&(ab.author=g.lF(C));var E=lb.title;E&&(ab.title=g.lF(E))}else null!=B&&B.videoId&&(ab.videoId=B.videoId);ab.WD=La;a.suggestions=[];a.qv=ab}}if(aa){for(var J=[],K=g.u(aa),ca=K.next();!ca.done;ca=K.next()){var ta=ca.value,na=void 0,O=null;if(ta.endScreenVideoRenderer){var Z=ta.endScreenVideoRenderer,ya=Z.title;O=new g.pS(a.U());O.videoId=Z.videoId;O.lengthSeconds=Z.lengthInSeconds||0;var xa=Z.publishedTimeText;xa&&(O.publishedTimeText=g.lF(xa));var Za=Z.shortBylineText;Za&&(O.author=g.lF(Za));var Wa= Z.shortViewCountText;Wa&&(O.shortViewCount=g.lF(Wa));if(ya){O.title=g.lF(ya);var zb=ya.accessibility;if(zb){var Rb=zb.accessibilityData;Rb&&Rb.label&&(O.ariaLabel=Rb.label)}}var eb=Z.navigationEndpoint;if(eb){na=eb.clickTrackingParams;var Ub=g.V(eb,g.PS),hc=g.V(eb,g.yF);Ub?O.XD=Ub:null!=hc&&(O.watchUrl=hc.url)}var Dc=Z.thumbnailOverlays;if(Dc)for(var Zb=g.u(Dc),vc=Zb.next();!vc.done;vc=Zb.next()){var Wc=vc.value.thumbnailOverlayTimeStatusRenderer;if(Wc)if("LIVE"===Wc.style){O.isLivePlayback=!0;break}else if("UPCOMING"=== Wc.style){O.isUpcoming=!0;break}}O.Z=kS(Z.thumbnail)}else if(ta.endScreenPlaylistRenderer){var Sc=ta.endScreenPlaylistRenderer,Ec=Sc.navigationEndpoint;if(!Ec)continue;var Fc=g.V(Ec,g.PS);if(!Fc)continue;var Xb=Fc.videoId;O=new g.oS(a.U());O.playlistId=Sc.playlistId;O.playlistLength=Number(Sc.videoCount)||0;O.j=Xb||null;O.videoId=Xb;var yd=Sc.title;yd&&(O.title=g.lF(yd));var fd=Sc.shortBylineText;fd&&(O.author=g.lF(fd));na=Ec.clickTrackingParams;O.Z=kS(Sc.thumbnail)}O&&(na&&(O.sessionData={itct:na}), J.push(O))}a.suggestions=J}if(sa){a.zV=!!sa.preferImmediateRedirect;a.Pf=a.Pf||!!sa.webShowNewAutonavCountdown;a.Kl=a.Kl||!!sa.webShowBigThumbnailEndscreen;if(a.Pf||a.Kl){var fc=ea||null,$b=new g.pS(a.U());$b.videoId=sa.videoId;var Gc=sa.videoTitle;if(Gc){$b.title=g.lF(Gc);var Jb=Gc.accessibility;if(Jb){var ad=Jb.accessibilityData;ad&&ad.label&&($b.ariaLabel=ad.label)}}var sd=sa.byline;sd&&($b.author=g.lF(sd));var Pb=sa.publishedTimeText;Pb&&($b.publishedTimeText=g.lF(Pb));var de=sa.shortViewCountText; de&&($b.shortViewCount=g.lF(de));var Rd=sa.thumbnailOverlays;if(Rd)for(var Sd=g.u(Rd),Ae=Sd.next();!Ae.done;Ae=Sd.next()){var Be=Ae.value.thumbnailOverlayTimeStatusRenderer;if(Be)if("LIVE"===Be.style){$b.isLivePlayback=!0;break}else if("UPCOMING"===Be.style){$b.isUpcoming=!0;break}else if("DEFAULT"===Be.style&&Be.text){$b.lengthText=g.lF(Be.text);var Jd=Be.text.accessibility;if(Jd){var pf=Jd.accessibilityData;pf&&pf.label&&($b.Xw=pf.label||"")}break}}$b.Z=kS(sa.background);var Oe=sa.nextButton;if(Oe){var Kd= Oe.buttonRenderer;if(Kd){var Ef=Kd.navigationEndpoint;if(Ef){var Td=g.V(Ef,g.PS);Td&&($b.XD=Td)}}}if(sa.topBadges){var ee=sa.topBadges[0];if(ee){var Ld=g.V(ee,aWa);Ld&&"BADGE_STYLE_TYPE_PREMIUM"===Ld.style&&($b.RL=!0)}}var zd=sa.alternativeTitle;zd&&($b.Os=g.lF(zd));var bd={autonav:"1",playnext:String(L)};$b.playlistId&&(bd.autoplay="1");if(fc){var Md,Ze,qf,Xf,se=null==(Md=fc.autoplay)?void 0:null==(Ze=Md.autoplay)?void 0:null==(qf=Ze.sets)?void 0:null==(Xf=qf[0])?void 0:Xf.autoplayVideo;if(se){var rc= se.clickTrackingParams;rc&&(bd.itct=rc);var Pe=g.V(se,g.PS);Pe&&($b.xW=Pe)}}else if(sa){var Vh,ie,ph,Ni=null==(Vh=sa.nextButton)?void 0:null==(ie=Vh.buttonRenderer)?void 0:null==(ph=ie.navigationEndpoint)?void 0:ph.clickTrackingParams;Ni&&(bd.itct=Ni)}bd.itct||(bd.feature="related-auto");$b.WD=bd;a.suggestions||(a.suggestions=[]);a.qv=$b}null!=sa.countDownSecs&&(a.EW=1E3*sa.countDownSecs);null!=sa.countDownSecsForFullscreen&&(a.GC=0<=sa.countDownSecsForFullscreen?1E3*sa.countDownSecsForFullscreen: -1);if(a.L("web_player_autonav_next_button_renderer")){var sf;a.lda=null==(sf=sa.nextButton)?void 0:sf.buttonRenderer}var df;a.Rca=null==(df=sa.cancelButton)?void 0:df.buttonRenderer;a.L("web_autonav_color_transition")&&sa.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.V(sa.watchToWatchTransitionRenderer,bWa))}var te=ZUa(a);if(te){var ai,uc,wc,Hc=null==te?void 0:null==(ai=te[0])?void 0:null==(uc=ai.endScreenVideoRenderer)?void 0:null==(wc=uc.navigationEndpoint)?void 0:wc.clickTrackingParams, vj=g.QS(a);Hc&&vj&&(vj.sessionData={itct:Hc})}a.Na.currentVideoThumbnail&&(a.Z=kS(a.Na.currentVideoThumbnail));var If,Qg,sg,Oi,bi,Pi=null==(If=a.Na)?void 0:null==(Qg=If.contents)?void 0:null==(sg=Qg.twoColumnWatchNextResults)?void 0:null==(Oi=sg.results)?void 0:null==(bi=Oi.results)?void 0:bi.contents;if(Pi&&Pi[1]){var tf,hd,uf,ci,ef=null==(tf=Pi[1].videoSecondaryInfoRenderer)?void 0:null==(hd=tf.owner)?void 0:null==(uf=hd.videoOwnerRenderer)?void 0:null==(ci=uf.thumbnail)?void 0:ci.thumbnails;ef&& ef.length&&(a.profilePicture=ef[ef.length-1].url)}var $f=AB(b),ag,di=null==(ag=a.getWatchNextResponse())?void 0:ag.onResponseReceivedEndpoints;if(di)for(var Jf=g.u(di),tg=Jf.next();!tg.done;tg=Jf.next()){var qh=tg.value;g.V(qh,RS)&&(a.ZT=g.V(qh,RS));var Rg=g.V(qh,cWa),ug=void 0;if(null==(ug=Rg)?0:ug.entityKeys)a.Qy=Rg.entityKeys||[],Rg.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Rg.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var ue=g.SS.getState().entities,Se=g.oO("visibility_override","markersVisibilityOverrideEntity"); var je=qO(ue,"markersVisibilityOverrideEntity",Se);a.Be=(null==je?void 0:je.videoId)===(a.videoId||$f)&&(null==je?0:je.visibilityOverrideMarkersKey)?je.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.qa(a.Be))}}}; VVa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)}; dWa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; VS=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&TS(a)&&(b=!1);var c=!!a.j&&a.j.Zb,d=a.Da,e=a.hQ(),f=US(a),h=a.nN,l=b,m=a.isOtf();b=a.CN();var n=a.zb,p=a.Rf,q=eWa(a),r=new dTa(d);if(d.zc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.La=h&&d.N;r.Rf=p;g.nB("windows nt 5.1")&&!g.bR&&(r.zo=!0);if(f=e)f=g.VR(d)?kUa(d):!1;f&&(r.Ca=!0);l&&(r.zo=!0,r.qc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.zo=!0);"picasaweb"===d.playerStyle&&(m&&(r.zo=!1),r.Ga=!1);n&&(r.zo=!0);qP(d.G, rP.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Na=!0));d.L("html5_block_8k_hfr")&&(r.Za=!0);r.K=g.EI(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.EI(d.experiments,"html5_min_selectable_quality_ordinal");zR&&(r.Tb=480);if(c||e)r.Ga=!1;r.gb=!1;r.disableAv1=q;c=fTa(d,r.j,void 0,r.disableAv1);0c&&(EK()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+EK(), r.jj=c);2160<=c&&(r.Ea=!0);VOa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Bc=!1);r.CN=b;r.Va=g.VC||rqa()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");qB()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.wy&&(r.qa=a.wy),a.vy&&(r.C=a.vy));r.Sa=a.isLivePlayback&&a.Ui()&&a.Da.L("html5_drm_live_audio_51"); r.zb=a.dD;return a.nf=r}; eWa=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&TS(a)?!0:!1}; gWa=function(a){eH("drm_pb_s",void 0,a.Sa);a.Wa||a.j&&mP(a.j);var b={};a.j&&(b=hQa(a.Gv,VS(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set)); b=new cR(b,a.Da,a.fW,a.useCobaltWidevine?qB()?fWa(a):!1:!1,function(c,d){a.ma(c,d)}); g.N(a,b);a.cn=!1;a.loading=!0;lTa(b,function(c){eH("drm_pb_f",void 0,a.Sa);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Wa=a.Wa;e.My=a.My;e.Ly=a.Ly;break;case "widevine":e.Nl=a.Nl}a.Vo=c;if(0p&&(p=t.getInfo().audio.numChannels)}2=a.C.videoInfos.length)&&(b=oK(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Vo),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}}; ZS=function(a,b){a.pd=b;jWa(a,new iP(g.$r(a.pd,function(c){return c.getInfo()})))}; nWa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.Ry&&(b.ptk=a.Ry,b.oid=a.gU,b.ptchn=a.fU,b.pltype=a.hU,a.Iv&&(b.m=a.Iv));return b}; g.$S=function(a){return JS(a)&&a.Wa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.le||null}; rWa=function(a){var b=qWa(a);return b&&b.text?g.lF(b.text):a.paidContentOverlayText}; sWa=function(a){var b=qWa(a);return b&&b.durationMs?bf(b.durationMs):a.paidContentOverlayDurationMs}; qWa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.V(null==(b=a.Na)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.playerDisclosure,tWa)||null}; aT=function(a){var b="";if(a.lF)return a.lF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.bb?"window":"live");a.Zd&&(b="post");return b}; g.bT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; uWa=function(a){return!!a.qj||!!a.CH||!!a.Ty||!!a.Uy||a.A0||a.N.focEnabled||a.N.rmktEnabled}; g.cT=function(a){return!!(a.Qc||a.Qf||a.Ml||a.hlsvp||a.Dw())}; FS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Ea,"ypc");a.ypcPreview&&(b=!1);return a.ue()&&!a.loading&&(g.cT(a)||g.Fb(a.Ea,"heartbeat")||b)}; LS=function(a,b){a=Bpa(a);var c={};if(b){b=g.u(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.u(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}; pWa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Gk);for(var c=0;c1E3*a.maxStatefulTimeThresholdSec&& (a.Da.Dl=Infinity,a.Da.El=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Da.Dl)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Da.Dl=c+e,a=a.Da,c=Date.now(),a.El=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b}; US=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.gR(a.Da)&&"MUSIC"===a.Da.j.ctheme;a.wj||!g.jG(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.wj=!0);if(b=g.pB())b=/Starboard\/([0-9]+)/.exec(g.oc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Da;c=("TVHTML5_CAST"===g.gR(c)||"TVHTML5"===g.gR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Da.j.ctheme;var d;if(d=!a.wj)c||(c=a.Da,c= "TVHTML5"===g.gR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.wj=!0);return a.Da.deviceIsAudioOnly||a.wj&&a.Da.N}; JWa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; rT=function(a){return!(!a.Vm||!a.Da.N)&&a.Dw()}; KWa=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; NS=function(a){if(a.g_||a.cotn||!a.j||a.j.isOtf||a.Y2&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.nX&&!!a.Yo;var b=!a.j.Zb&&!a.Ui(),c=b&&hR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!hR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=LWa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Ui()&&!a.j.Zb&&hR&&("1"===a.Dl?!1:!0);(c=c||b||d||e)&&!a.Yo&&a.ma("sabr",{loc:"m"},!0); return c&&!!a.Yo}; LWa=function(a){var b;if(!(b=a.Zb()&&a.Ui()&&hR&&("1"===a.Dl?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.Zb()&&!a.Ui()&&hR;var c=a.Zb()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e="ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr"); c=!a.enableServerStitchedDai&&c;a=a.Zb()&&!hR&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a}; g.sT=function(a){return a.zZ&&NS(a)}; PVa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.sS(b);return b&&!a.Vm}; g.tT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&vP(b[a.B.id].resource.j);b=!!b[a.D.id]&&vP(b[a.D.id].resource.j);return("0"===a.B.itag||c)&&b}; MWa=function(a){return a.Sy?["OK","LIVE_STREAM_OFFLINE"].includes(a.Sy.status):!0}; zWa=function(a){return(a=a.Xm)&&a.showError?a.showError:!1}; KS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")}; HVa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")}; NWa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; FVa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Uy=new cVa(b));if(b=b.video_masthead_ad_quartile_urls)a.CH=b.quartile_0_url,a.BV=b.quartile_25_url,a.GV=b.quartile_50_url,a.HV=b.quartile_75_url,a.AV=b.quartile_100_url,a.Ty=b.quartile_0_urls,a.wC=b.quartile_25_urls,a.yC=b.quartile_50_urls,a.AC=b.quartile_75_urls,a.uC=b.quartile_100_urls}; EVa=function(a){var b={};a=g.u(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}; BVa=function(a){if(a){if(XBa(a))return a;a=YBa(a);if(XBa(a,!0))return a}return""}; g.OWa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.bT(a,"yt:cc_default_lang")||a.Da.nj}; uT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.QS=function(a){var b;return a.qv||(null==(b=a.suggestions)?void 0:b[0])||null}; PWa=function(a){var b={isSabr:NS(a)},c;if(a=null==(c=a.getHeartbeatResponse())?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b}; g.vT=function(a){return a.Hf&&a.Da.Wo}; g.wT=function(a){var b,c;return!!(null==(b=a.embeddedPlayerConfig)?0:null==(c=b.embeddedPlayerFlags)?0:c.enableMusicUx)}; g.xT=function(a){var b=a.U(),c=g.QWa(b),d=a.ra;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=mT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.zb?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.To)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:RWa[e]}});if(b=a.bA)d.unpluggedAppInfo= {enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:SWa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.nj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=TWa[b];c.request=d;d=c.user||{};if(b=a.Ca)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}]; if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c}; g.QWa=function(a){var b=g.qG(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(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.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo, {deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Qc)b.thirdParty={embedUrl:a};return b}; YWa=function(a,b,c){var d=a.videoId,e=g.xT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(YD()),referer:document.location.toString(),signatureTimestamp:19864};g.bC();a.isAutonav&&(h.autonav=!0);g.cC(0,141)&&(h.autonavState=g.cC(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.cC(0,66);HWa(a)&&(h.autoplay=!0);f.N&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l= l.split(",");l=g.u(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.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId= String(v));else if("video_ad"===p.adtype){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=UWa[p.breaktype])w.breakType=p;q&&(w.url=q);r&&(w.presetAd=r);t&&(w.viralAdResponseUrl=t);v&&(w.viralCampaignId=String(v));n.push(w)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.vF;if(null!=m){m={startWalltime:String(m)};if(n=a.Gl)m.manifestDuration=String(n||14400); h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Sf?0:a.Sg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Xv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Dj){n=a.DC;l=[];p=g.u(YPa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.QY?"INACTIVE":"ACTIVE",clientFormFactor:VWa[r]||"UNKNOWN_FORM_FACTOR",clientName:$Pa[q.E1]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:WWa[r]||"UNKNOWN_PLATFORM"}; r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.JE(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p= {},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0d&&(d=-(d+1));Hf(a,b,d);b.setAttribute("data-layer",String(c))}; g.VT=function(a){var b=a.U();if(!b.Be)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!uT(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Wk();var f=c.Na&&c.Na.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Hf&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Ea,"ypc")&& !a&&(!g.BR(b)||f)}; yXa=function(a){a=g.HT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.U2)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ma("iqss",{trigger:d},!0),!0):!1}; zXa=function(){aC.apply(this,arguments);this.requestHeaders={}}; WT=function(){AXa||(AXa=new zXa);return AXa}; XT=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization}; g.ZT=function(a,b,c,d){d=void 0===d?!1:d;g.iF.call(this,b);var e=this;this.J=a;this.Ga=d;this.N=new g.cK(this);this.qa=new g.MF(this,c,!0,void 0,void 0,function(){e.JX()}); g.N(this,this.N);g.N(this,this.qa)}; BXa=function(a){a.B&&(document.activeElement&&g.Rf(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.UB(a.N);a.Y=void 0}; $T=function(a,b,c){a.Zj()?a.Nb():a.od(b,c)}; CXa=function(a,b,c,d){d=new g.W({I:"div",Ka:["ytp-linked-account-popup-button"],xa:d,X:{role:"button",tabindex:"0"}});b=new g.W({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",xa:b},{I:"div",S:"ytp-linked-account-popup-description",xa:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.ZT.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.N(this,this.dialog); d.listen("click",function(){e.Nb()}); g.N(this,d);g.UT(this.J,this.element,4);this.hide()}; g.aU=function(a,b,c,d){g.iF.call(this,a);this.priority=b;c&&this.Dk(c);d&&this.Md(d)}; g.bU=function(a,b,c,d){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;d=void 0===d?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Ka:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",xa:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",xa:"{{label}}"},{I:"div",S:"ytp-menuitem-content",xa:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",xa:"{{secondaryIcon}}"});return a}; cU=function(a){g.aU.call(this,g.bU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Bb=a.Fn();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Lc(c)}); this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; dU=function(a){return a?g.lF(a):""}; eU=function(a){g.I.call(this);this.api=a}; fU=function(a){eU.call(this,a);var b=this;zT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); zT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new cU(b.api);g.N(b,b.menuItem)})}; DXa=function(a){this.api=a;this.j={}}; gU=function(a,b,c,d){b in a.j||(c=new g.jJ(c,d,{id:b,priority:2,namespace:"appad"}),a.api.gf([c],1),a.j[b]=c)}; EXa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(this);g.N(this,this.events);this.j=new DXa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}}); this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;gU(d,"part2viewed",1,0x8000000000000);gU(d,"engagedview",Math.max(1,1E3*c.Gb),0x8000000000000);c.isLivePlayback||(c=1E3*c.lengthSeconds,gU(d,"videoplaytime25",.25*c,c),gU(d,"videoplaytime50",.5*c,c),gU(d,"videoplaytime75",.75*c,c),gU(d,"videoplaytime100",c,0x8000000000000),gU(d,"conversionview",c,0x8000000000000),gU(d,"videoplaybackstart",1,c),gU(d,"videoplayback2s",2E3,c),gU(d,"videoplayback10s",1E4,c))}); this.events.T(this.api,g.kJ("appad"),this.B);this.events.T(this.api,g.lJ("appad"),this.B)}; IXa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.dv(c,d);d=void 0;d=void 0===d?!1:d;(d=dJ(eJ(c,FXa,null),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=dJ(eJ(c,GXa,null),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=dJ(eJ(c,HXa,null),c,d,"Nielsen OCR URL"));g.yD(c,void 0,d)}return!0}; hU=function(a,b){JXa(a,b).then(function(c){g.yD(b,void 0,void 0,c)})}; iU=function(a,b){b.forEach(function(c){hU(a,c)})}; JXa=function(a,b){return g.PI(a.api.U())&&TA(b)&&SA(b)?g.$R(a.api.U(),g.qT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):iB()}; KXa=function(a){eU.call(this,a);this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})), contentCpn:b.clientPlaybackNonce}};g.qC("adsClientStateChange",e)}})}; MXa=function(a){g.W.call(this,{I:"button",Ka:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.ZC);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&& LXa(this);LT(a,this.element,this);this.ZC()}; LXa=function(a){a.B.push(a.T(a.J,"videodatachange",a.ZC));a.B.push(a.T(a.J,"videoplayerreset",a.ZC));a.B.push(a.T(a.J,"onPlaylistUpdate",a.ZC));a.B.push(a.T(a.J,"autonavchange",a.pV))}; NXa=function(a){a.isChecked=a.isChecked;a.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Rh()}; OXa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&VVa(a.Ld())}; PXa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new MXa(a);g.N(b,c);a.cz(c)})}; jU=function(a,b){g.aU.call(this,g.bU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; kU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))}; QXa=function(a){var b=!a.U().zk&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b}; g.lU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.dG(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.yya(a,d,!0);return!1}; g.mU=function(a,b,c){if(PR(b.U())&&2!==b.getPresentingPlayerType()){if(g.dG(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.dG(c);d&&b.pauseVideo();g.yya(a,void 0,!0);d&&(g.nG(a),c.preventDefault())}return!1}; SXa=function(){var a=RXa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a}; TXa=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}}; UXa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}}; oU=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";jU.call(this,b,g.nU.w3);var c=this;this.J=a;this.j=!1;this.B=new g.xv(function(){g.Hv(c.element,"ytp-menuitem-highlighted")},0); this.Bb=a.Fn();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(VXa,this.D);g.N(this,this.B)}; XXa=function(a){eU.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){WXa(b)}); a.addEventListener("highlightSettingsMenu",function(c){WXa(b);var d=b.menuItem;"menu_item_cinematic_lighting"===c&&(g.Fv(d.element,"ytp-menuitem-highlighted"),g.Fv(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())}); zT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})}; WXa=function(a){a.menuItem||(a.menuItem=new oU(a.api),g.N(a,a.menuItem),a.menuItem.Ta(a.j))}; pU=function(a,b,c,d){jU.call(this,"Stable Volume",g.nU.o6);g.Fv(this.element,"ytp-drc-menu-item");this.Bb=a.Fn();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=1===this.j()&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.B,this);kU(this,a);this.Bb.Rc(this)}; qU=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new pU(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.N(b,b.menuItem))}); zT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)}); zT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()}); zT(this.api,"hasDrcAudioTrack",function(){return b.B()}); var c;this.j=null!=(c=g.YB("yt-player-drc-pref"))?c:1;this.updateEnvironmentData()}; rU=function(a){eU.call(this,a);var b=this;this.j={};this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()}); this.events.T(a,g.kJ("embargo"),function(c){b.api.Do(!0);var d,e=null!=(d=b.j[c.id])?d:[];d=g.u(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Zf("auth",2,"This video isn't available in your current playback area",VJ({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.jb("innertubeCommand",f)}})}; YXa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)}; ZXa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}}; $Xa=function(a){eU.call(this,a);var b=this;this.j=[];this.events=new g.cK(a);g.N(this,this.events);zT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Yo&&b.addEmbedsConversionTrackingParams(c)}); this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Ok(c.visualElement.getAsJspb(),2),b.j.push(c))})}; aYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){QO(PO(),16623);b.j=g.FE();var d=a.U().Ki&&!c.Sf;if(pT(c)&&d){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=null==(e=c.getWatchNextResponse())?void 0:e.trackingParams;f&&SO(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&SO(c)}}else QO(PO(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=null==(f=c.getEmbeddedPlayerResponse())?void 0:f.trackingParams)&&SO(h)}); this.events.T(a,"loadvideo",function(){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); this.events.T(a,"cuevideo",function(){QO(PO(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); this.events.T(a,"largeplaybuttonclicked",function(c){QO(PO(),27240,c.visualElement)}); this.events.T(a,"playlistnextbuttonclicked",function(c){QO(PO(),27240,c.visualElement)}); this.events.T(a,"playlistprevbuttonclicked",function(c){QO(PO(),27240,c.visualElement)}); this.events.T(a,"playlistautonextvideo",function(){QO(PO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; bYa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null}; sU=function(a){g.W.call(this,{I:"div",Ka:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",xa:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",xa:"\u2022"},{I:"span",xa:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; dYa=function(a,b){a.j||(a.B=b,a.C=(0,g.EC)(),a.j=new g.wv(function(){cYa(a)},null),cYa(a))}; cYa=function(a){var b=Math,c=b.round,d=Math.min((0,g.EC)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",bKa({seconds:b}));0>=b&&a.j?eYa(a):a.j&&a.j.start()}; eYa=function(a){a.j&&(a.j.dispose(),a.j=null)}; fYa=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new sU(a);g.N(b,b.j);g.UT(a,b.j.element,4);b.j.hide()})}; tU=function(a){g.W.call(this,{I:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ka:["ytp-fullerscreen-edu-text"],xa:"Scroll for details"},{I:"div",Ka:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Ua=a;this.j=new g.MF(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.N(this, this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()}; uU=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);zT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); zT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&PR(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new tU(a);g.N(b,b.j);a.cz(b.j)})}; gYa=function(a){g.W.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Ka:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.pF()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", xa:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Fa("ytp-gated-actions-overlay-background");this.B=this.Fa("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Fa("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.jb("onCloseMiniplayer")}); this.hide()}; iYa=function(a,b){var c=0;c=0;for(var d={};c e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;iYa(c,d.actionButtons||[]);c.show()}else c.hide()}); g.UT(this.api,this.j.element,4)}; kYa=function(a){eU.call(this,a);var b=a.U();b.Bj=!1;b.bb=!1;b.Sm=!1;BT(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()}); BT(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()}); BT(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)}); BT(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()}); BT(a,"getPreferredQuality",function(){return a.getPreferredQuality()}); BT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()}); BT(a,"setPlaybackQuality",function(c){a.setPlaybackQuality(c)})}; lYa=function(a){eU.call(this,a);a=a.U();a.rh.push("flix");a.bb=!1;a.Bj=!1}; vU=function(a){eU.call(this,a);var b=this;BT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); BT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.qa(g.Ja.apply(0,arguments)))}); AT(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()}); AT(this.api,"setSphericalProperties",function(){var c=g.Ja.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.qa(c))})}; mYa=function(a){eU.call(this,a);zT(a,"createClientVe",this.createClientVe.bind(this));zT(a,"createServerVe",this.createServerVe.bind(this));zT(a,"destroyVe",this.destroyVe.bind(this));zT(a,"hasVe",this.hasVe.bind(this));zT(a,"logClick",this.logClick.bind(this));zT(a,"logVisibility",this.logVisibility.bind(this));zT(a,"setTrackingParams",this.setTrackingParams.bind(this))}; wU=function(a){eU.call(this,a);var b=this;this.events=new g.cK(a);g.N(this,this.events);zT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}); zT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}); zT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})}; nYa=function(a,b,c){var d=1E3*a.api.getCurrentTime()=c.width||!c.height||0>=c.height||g.gJ(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; pYa=function(a){a=a.api.getPlayerStateObject();a=a.isCued()||a.isError()?"none":a.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=a}; yU=function(a){eU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.cK(a);g.N(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.V(l.compositeVideoOverlay,uYa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e= e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.jM({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})}); this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.mf("compositeembargo",1);var e=null==d?void 0:d.FC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?vYa(b,e.filter(function(f){return wYa(b,f)})):(null==d?0:d.cueRanges)&&vYa(b,d.cueRanges.filter(function(f){return wYa(b,f)})); "dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.No())}); this.events.T(a,g.kJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.Do(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.oy!==f&&(d.oy=f,b.api.No());xYa(b,c)}}}); this.events.T(a,g.lJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.Do(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.oy=void 0;b.api.No();xYa(b)}}); this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)}); this.events.T(a,"onPlaybackAudioChange",function(){b.api.No()}); zT(a,"setCompositeParam",function(c){b.compositeVideoState=c})}; xYa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Fo([a.j],1)),a.j=b)}; vYa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}}; wYa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)}; yYa=function(a){eU.call(this,a);zT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));zT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));zT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));zT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));zT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));zT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));zT(this.api,"setUpPositionSyncInterval", this.setUpPositionSyncInterval.bind(this))}; zU=function(a){eU.call(this,a);var b=this;zT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()}); zT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})}; zYa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d}; AYa=function(a){for(var b=0,c=0;c=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];LYa(a,b,c,!0)}}; LYa=function(a,b,c,d){MYa(a);b&&(b.unsubscribe("size-change",a.kC,a),b.unsubscribe("back",a.Wi,a));c.subscribe("size-change",a.kC,a);c.subscribe("back",a.Wi,a);if(a.Fb){g.Fv(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;KYa(a);g.Ts(a.element,e);a.G=new g.xv(function(){NYa(a,b,c,d)},20,a); a.G.start()}else c.Ja(a.element),b&&b.detach()}; NYa=function(a,b,c,d){a.G.dispose();a.G=null;g.Fv(a.element,"ytp-popup-animating");d?(g.Fv(b.element,"ytp-panel-animate-forward"),g.Hv(c.element,"ytp-panel-animate-back")):(g.Fv(b.element,"ytp-panel-animate-back"),g.Hv(c.element,"ytp-panel-animate-forward"));g.Ts(a.element,a.size);a.K=new g.xv(function(){g.Hv(a.element,"ytp-popup-animating");b.detach();g.Iv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a); a.K.start()}; MYa=function(a){a.G&&g.zv(a.G);a.K&&g.zv(a.K)}; LU=function(a){g.IU.call(this,a,"ytp-shopping-product-menu");this.Pe=new g.GU(this.J);g.N(this,this.Pe);this.hide();g.JU(this,this.Pe);g.UT(this.J,this.element,4)}; PYa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=OYa(a,c,e,null==b?void 0:b.icon,null==b?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.jb("innertubeCommand",b.navigationEndpoint);a.hide()},a))}; QYa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&OYa(a,c,e,null==b?void 0:b.icon).listen("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.jb("innertubeCommand",b.serviceEndpoint);a.hide()},a)}; OYa=function(a,b,c,d,e){b=new g.aU(g.bU({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",RYa(e));b.setIcon(RYa(d));g.N(a,b);a.Pe.Rc(b,!0);return b}; RYa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return rxa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return rF()}}; MU=function(a){DU.call(this,a,!1,!0);this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}});this.thumbnailImage.hide();g.N(this, this.thumbnailImage);this.thumbnailIcon=new g.W({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.N(this,this.thumbnailIcon);this.banner=new g.W({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",xa:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",xa:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text",xa:"{{metadata}}"}]},this.dismissButton, this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.B.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.kJ("suggested_action_view_model"),this.taa);this.T(this.J,g.lJ("suggested_action_view_model"),this.uaa);this.T(this.overflowButton.element,"click",this.z5);this.T(a,"featuredproductdismissed",this.yu)}; SYa=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,CU(a),a.Bl(),g.hF(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.hF(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.hF(a.overflowButton,a.isVisible))}; NU=function(){MU.apply(this,arguments)}; TYa=function(a){eU.call(this,a);this.j=new NU(this.api);g.N(this,this.j);g.UT(this.api,this.j.element,4)}; g.OU=function(a,b,c,d,e,f,h){g.aU.call(this,g.bU({"aria-haspopup":"true"}),b,a);this.Bb=d;this.N=!1;this.C=null;this.options={};this.B=new g.GU(c,void 0,a,e,f,h);g.N(this,this.B);this.listen("keydown",this.A5);this.listen("click",this.open)}; UYa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}}; g.PU=function(a,b){g.HU(a.B);for(var c={},d=!1,e=0;ef.start&&dF;F++)if(D=(D<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),4==F%5){for(var H="",L=0;6>L;L++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(D&31)+H,D>>= 5;A+=H}w=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else w="";m={video_id_and_cpn:String(c.videoId)+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""}; n=e.clientWidth+"x"+e.clientHeight+(1M)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency": "Optimized for Smooth Streaming";e+=a;(M=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+M.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=bV(l,"bandwidth");m.network_activity_samples=bV(l,"networkactivity");m.live_latency_samples=bV(l,"livelatency");m.buffer_health_samples=bV(l,"bufferhealth");b=g.tT(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+ b;m.cotn_and_local_media_style=m.cotn_and_local_media?"":"display:none";KS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240520_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0=a.length?0:b}; FZa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.pV=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.ES(a.Da,b),g.N(a,e),e.Tm=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; GZa=function(a,b){a.index=g.Ce(b,0,a.length-1);a.startSeconds=0}; HZa=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.pV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; KZa=function(a,b){var c,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){c=g.uH();var p=a.U(),q={context:g.xT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r= b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,w,A,D,F,H;r=(null==(H=g.V(null==(v=r)?void 0:null==(w=v.embedPreview)?void 0:null==(A=w.thumbnailPreviewRenderer)?void 0:null==(D=A.playButton)?void 0:null==(F=D.buttonRenderer)?void 0:F.navigationEndpoint,g.PS))?void 0:H.videoId)||null}else r=null}v=(v=r)?v:void 0;w=a.playlistId?a.playlistId:b.list;A=b.listType;if(w){var L;"user_uploads"===A?L={username:w}:L={playlistId:w};IZa(p,v,b,L);q.playlistRequest= L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},IZa(p,v,b,L),q.playlistRequest=L):v&&(L={videoId:v},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.tG(JZa);g.Ba(n,2);return g.z(n,g.lH(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ea=vqa(b,g.BR(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ea,f&&(l=f,l.trackingParams&&SO(l.trackingParams)),n.return(new g.ES(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.IE(m);return n.return(a)})}; IZa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.rV=function(a,b){qV.get(a);qV.set(a,b)}; g.sV=function(a){g.aF.call(this);this.loaded=!1;this.player=a}; LZa=function(){this.B=[];this.j=[]}; g.tV=function(a,b){return b?a.j.concat(a.B):a.j}; g.uV=function(a,b){switch(b.kind){case "asr":MZa(b,a.B);break;default:MZa(b,a.j)}}; MZa=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)}; g.vV=function(a){g.I.call(this);this.W=a;this.B=new LZa;this.D=[];this.N=[]}; g.wV=function(a,b,c){g.vV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.uv;this.N=b.IC;this.C=g.nT(b)}; NZa=function(){this.ej=!1}; OZa=function(a){a=void 0===a?{}:a;var b=void 0===a.OE?!1:a.OE,c=new NZa;c.ej=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c}; g.PZa=function(a){this.Da=a;this.N=new NZa;this.jq=this.bq=!1;this.Zo=2;this.Ca=20971520;this.bb=8388608;this.ra=120;this.Qc=62914560;this.yp=g.EI(this.Da.experiments,"html5_min_readbehind_secs");this.cD=g.EI(this.Da.experiments,"html5_min_readbehind_cap_secs");this.tj=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.sb=NaN;this.fv=this.Fl=this.Jv=2;this.wj=1024*xV(this,"html5_request_size_min_kb",64);this.Na=2097152;this.Qy=xV(this,"html5_bypass_contention_secs");this.ev= 1048576;this.Ll=!1;this.uj=xV(this,"html5_repredict_interval_ms",1800);this.HC=xV(this,"html5_head_miss_secs",5);this.eD=xV(this,"html5_min_upgrade_health_secs",10);this.gb=15;this.Qf=1;this.Z=1.15;this.Y=1.05;this.Hl=1;this.dD=xV(this,"html5_min_seconds_between_format_selections",8);this.GC=xV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Fs=hR;this.qn=this.qc=!1;this.qj=6;this.j=!1;this.sj=g.EI(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.oy=g.EI(this.Da.experiments, "html5_post_interrupt_readahead");this.Uy=this.Da.L("html5_disable_classic_alr");this.uy=g.EI(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Hv=100;this.Ki=10;this.gD=6;this.xv=xV(this,"html5_ssdai_failure_retry_limit",3);this.Kl=this.Da.experiments.fb("html5_clone_original_for_fallback_location");this.Sg=!1;this.Kb=g.EI(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Ak=g.EI(this.Da.experiments,"html5_subsegment_readahead_timeout_secs");this.CH= g.EI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.zk=g.EI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.uC=g.EI(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.Gv=g.EI(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.wC=g.EI(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Mi=xV(this,"html5_hopeless_secs",15);this.Vo=1;this.Jd=!1;this.CF=this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests"); this.IC=g.EI(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.kD=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.qD=this.Da.L("html5_prefer_server_bwe3");this.zC=this.Da.L("html5_last_slice_transition");this.xH=this.Da.L("html5_store_xhr_headers_readable");this.uv=this.rh=this.Sj=!1;this.Xo=g.EI(this.Da.experiments,"html5_max_drift_per_track_secs");this.Gp=this.Da.L("html5_no_placeholder_rollbacks");this.zH=this.Da.L("html5_subsegment_readahead_enable_mffa");this.nf= this.Da.L("html5_allow_video_keyframe_without_audio");this.jD=this.Da.L("html5_enable_vp9_fairplay");this.Za=!0;this.Be=this.Va=this.Tb=!1;this.Tm=!0;this.hv=!1;this.D="";this.bA=1048576;this.Sd=[];this.PA=this.Da.L("html5_woffle_resume");this.El=this.Da.L("html5_abs_buffer_health");this.vC=this.Da.L("html5_interruption_resets_seeked_time");this.aD=g.EI(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.La=!1;this.Ym=this.Da.L("html5_explicitly_dispose_xhr");this.vy=!1; this.Gl=!this.Da.L("html5_encourage_array_coalescing");this.Jl=!1;this.vF=this.Da.L("html5_restart_on_unexpected_detach");this.jj=0;this.rb="";this.yH=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.Ly=this.Da.L("html5_abort_before_separate_init");this.lG=oqa();this.nH=this.Da.L("html5_serialize_server_stitched_ad_request");this.Ry=this.Da.L("html5_skip_buffer_check_seek_to_head");this.je=!1;this.Py=this.Da.L("html5_attach_po_token_to_bandaid"); this.fp=g.EI(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.Bj=this.Da.L("html5_rewrite_timestamps_for_webm");this.zb=this.Da.L("html5_only_media_duration_for_discontinuities");this.lF=g.EI(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.yC=this.Da.L("html5_onesie_premieres");this.yA=this.Da.L("html5_drop_onesie_for_live_mode_mismatch");this.hD=g.EI(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.Qp=g.EI(this.Da.experiments, "html5_attach_num_random_bytes_to_bandaid");this.iD=g.EI(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.B=!1;this.xf=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.iC=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.gz=this.Da.L("html5_disable_ssap_append_pause");this.tC=this.Da.L("html5_sabr_ignore_changetype_exception");this.DB=this.Da.L("html5_reinit_source_buffer_on_sabr_format");this.Sm=this.Da.L("html5_init_source_buffer_after_metadata");this.BH=this.Da.L("html5_gapless_fallback_on_append_error"); this.Iv=!1;this.Ea=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.AC=this.Da.L("html5_use_post_for_media");this.Ob=this.Da.L("html5_use_live_ump_heartbeat");this.Gk=this.Da.L("html5_use_sps_ump_part");this.DC=this.Da.L("html5_sabr_use_sps_ump_part");this.cg=this.Da.L("html5_enable_sps_non_fatal_logs");this.wH=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.Wa=this.Ga=!1;this.pD=this.Da.Sf;this.dF=this.Da.L("html5_reset_primary_stats_on_redirector_failure"); this.sD=this.Da.L("html5_remap_to_original_host_when_redirected");this.Ml=this.Sf=this.C=!1;this.Rf=this.Da.L("html5_enable_sabr_format_selection");this.Wy=this.Da.L("html5_disable_sabr_fallback_on_player_exception");this.Um=this.Da.L("html5_sabr_support_quality_constraints");this.fE=this.Da.L("html5_sabr_remove_all_quality_constraints");this.Sy=this.Da.L("html5_iterative_seeking_buffered_time");this.Dl=this.Da.L("html5_use_network_error_code_enums");this.Vy=this.Da.L("html5_disable_overlapping_requests"); this.G=!1;this.enableServerDrivenRequestCancellation=this.Da.L("html5_enable_server_driven_request_cancellation");this.qC=this.Da.L("html5_enable_sabr_request_timing");this.Vm=this.Da.L("html5_enable_server_format_filter");this.xA=this.Da.L("html5_drc_edit_sync_workaround");this.aB=this.Da.L("html5_enable_lawnmower");this.oB=this.Da.L("html5_enable_lawnmower_messaging");this.Pf=this.Da.zc()?g.EI(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.xC=g.EI(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")|| NaN;this.Pp=g.EI(this.Da.experiments,"html5_normal_latency_mffa_ms")||NaN;this.fD=g.EI(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.Pp;this.EC=this.Da.L("html5_live_defrag_only_h264_playbacks");this.CC=this.Da.L("html5_live_defrag_only_h264_formats");this.rD=this.Da.L("html5_record_now");this.yf=!1;this.Ol=g.EI(this.Da.experiments,"html5_drm_byterate_soft_cap");this.Pl=g.EI(this.Da.experiments,"html5_drm_live_byterate_soft_cap");this.To=this.wy=!1;this.Jb=this.Da.L("html5_sabr_report_request_cancellation_info"); this.Of=this.Tp=this.Fv=!1;this.wv=this.Da.L("html5_spoof_4k");this.hp=xV(this,"html5_min_media_duration_for_cabr_slice");this.bD=this.Gl?0:xV(this,"html5_min_media_duration_for_append_prop");this.cF=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Bc=!0;this.Ty=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.Jz=this.Da.L("html5_disable_urgent_adaptation");this.Oy=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.tv=this.Da.L("html5_send_video_playback_ustreamer_config"); this.Wo=xV(this,"html5_max_discontinuity_rewrite_count");this.Yo=xV(this,"html5_max_drift_seconds");this.cn=xV(this,"html5_fixed_media_duration_for_request");this.qv=this.Da.L("html5_sabr_use_init_selected_audio");this.Il=this.Da.L("html5_use_init_selected_audio");this.Sa=!1;this.yd=xV(this,"html5_sabr_request_limit_per_period");this.Xm=this.K=this.ov=this.Fk=!1;this.Gb=this.Da.L("html5_sabr_live_partial_segment");this.pd=this.Da.L("html5_sabr_dispose_media_objects");this.Nl=!1;this.Ny=this.Da.L("html5_account_for_underrun_advance_in_sabr"); this.Zm=this.Da.L("html5_fix_underrun_advance_with_buffer_tracking_in_sabr");this.Li=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Uo=this.Da.L("html5_log_post_size");this.py=this.nj=!1;this.BB=this.Da.L("html5_enable_d6de4");this.My=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.gp=g.EI(this.Da.experiments,"html5_micro_discontinuity_threshold_ms_in_buffer_timeline");this.FC=this.Da.L("html5_ssap_keep_only_ssap_eos_check")}; QZa=function(a,b,c){c=void 0===c?!1:c;1080f;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{0!==d&&b.free(d)}}; CV=function(a,b){this.instance=a;this.Kp=b;this.exports=this.instance.exports}; e_a=function(a,b,c){c=void 0===c?!1:c;var d=DV.us();return d_a(a,b,{fz:c,Id:!0,sync:!0,streaming:!0}).then(function(e){DV.Wq(e.Kp?"winitjs":"winit",d);return e})}; d_a=function(a,b,c){XZa||(XZa=new BV(a,b));return ZZa(c).then(function(d){return new CV(d.instance,d.Kp)})}; f_a=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.DI={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.cK(this);this.qd={Bpb:function(){return c.j}}; this.He=new Map;g.N(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)}; g.EV=function(a){return a.He.get("captions")}; l_a=function(a,b){switch(b){case "ad":return g_a(a);case "annotations_module":return a.J.Yc()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.UT||"3"===a.controlsType?!1:a.Na.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Va||!!g.lT(b)||!!g.GWa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return h_a(a);case "embed":return g.BR(a.J.U());case "endscreen":return g.i_a(a);case "heartbeat":return a.YS();case "inline_preview":return a.J.U().showInlinePreviewUi; case "kids":return MR(a.J.U());case "remote":return a.J.U().wj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().sj;case "captions":return j_a(a);case "unplugged":return g.HR(a.J.U());case "ux":return a.J.U().bb;case "webgl":return k_a(a);case "ypc":return a.TG();case "ypc_clickwrap":return a=a.J.getVideoData(),a.cg&&!a.qD;case "yto":return!!a.J.getVideoData().Ea.includes("yto");default:return g.IE(Error("Module descriptor "+b+" does not match")),!1}}; FV=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.He.get(b);if(!h||d)if(e||(e=function(){FV(a,b,c,d)}),f||(f=function(){a.J.zg(b)}),h=h||m_a(a,b,l_a(a,b),e,f))a.He.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Hm("onApiChange")}; o_a=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.G(function(l){if(1==l.j)return(c=a.He.get("asmjs"))&&!b?l.return(c):null!=(d=qV.get("asmjs"))?(e=d,l.Ia(2)):g.z(l,new Promise(function(m,n){n_a(a,"asmjs",function(){var p=qV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3); 2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.He.set("asmjs",h);h.create();return l.return(h)})}; r_a=function(a){p_a(a)&&a.qO();q_a(a)&&(FV(a,"captions",!0),FV(a,"endscreen"),a.AI(),FV(a,"creatorendscreen",!0))}; q_a=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c}; p_a=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Fb(a.Ea,"ad")||uWa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=e=void 0;f=Number(null==(e=f)?void 0:null== (h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;dMath.random()){var A=new g.eC("Unable to load player module",b,document.location&&document.location.origin);g.IE(A)}Wf(e);r&&r(w)}; var t=m,v=t.onreadystatechange;t.onreadystatechange=function(w){switch(t.readyState){case "loaded":case "complete":Wf(f)}v&&v(w)}; l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.Ve(m,g.Xw(b)),h=g.of("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))}; z_a=function(a,b,c,d,e){g.aF.call(this);var f=this;this.target=a;this.pI=b;this.B=0;this.K=!1;this.D=new g.Ie(NaN,NaN);this.j=new g.cK(this);this.Ca=this.C=this.N=null;g.N(this,this.j);b=d||e?4E3:3E3;this.Y=new g.xv(function(){LV(f,1,!1)},b,this); g.N(this,this.Y);this.qa=new g.xv(function(){LV(f,2,!1)},b,this); g.N(this,this.qa);this.ra=new g.xv(function(){LV(f,512,!1)},b,this); g.N(this,this.ra);this.Ga=3E3;d||(this.C=this.j.T(a,"mouseover",this.kx),this.j.T(a,"mousemove",this.C5),this.j.T(a,"mouseleave",this.A$));Js?this.j.T(a,"keypress",this.S9):this.j.T(a,"focusin",this.d8);this.G=this.j.T(a,"mousedown",this.tV);this.Z=this.j.T(a,"touchstart",this.uV,void 0,!0);LV(this,640,!0)}; A_a=function(a){LV(a,4,!1);a.N&&(a.j.Pc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.kx));a.C&&(a.j.Pc(a.C),a.C=a.j.T(a.target,"mouseover",a.kx))}; LV=function(a,b,c){a.Ma();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.qa.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.qa.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.yv(a.ra,a.Ga);b=!a.B;d!==b&&a.publish("autohideupdate",b)}; g.NV=function(a){g.W.call(this,{I:"button",Ka:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ta);this.T(a,"basechromeinitialized",this.Cea);a=this.api.U();a.Z&&MV&&(this.listen("click",this.U8,this),this.listen("touchstart",this.Lca,this));g.GR(a)&&g.Fv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Ta()}; g.OV=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.K&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.W.call(this,{I:"div",Ka:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");c=new g.NV(a);g.N(this,c);c.Ja(b);this.D=new g.cK(this);g.N(this,this.D);this.api=a;this.G=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.MF(this,250);g.N(this,this.B);this.j=new g.xv(this.Ta, 0,this);g.N(this,this.j);this.Ta();this.T(a,"appresize",this.dc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.sca);DR(a.U())&&this.T(a,"videoplayerreset",this.onReset)}; B_a=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.getPlayerStateObject();a=g.TF(a,64)&&g.TF(a,1);return 0===b&&a}; g.PV=function(a){g.W.call(this,{I:"div",Ka:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap", V:[{I:"div",S:"ytp-error-content-wrap-reason",xa:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",xa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[];this.C=!1;a.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Fb)}; g.QV=function(a){a=a.split(C_a);for(var b=[],c=0;c1+b&&a.api.toggleFullscreen()}; K_a=function(a){a=oB()&&67<=iqa()&&!a.api.U().Z;return!g.nB("tizen")&&!zR&&!a&&!0}; XV=function(a,b){b=void 0===b?2:b;g.aF.call(this);this.api=a;this.j=null;this.Ed=new SB(this);g.N(this,this.Ed);this.B=rya;this.Ed.T(this.api,"presentingplayerstatechange",this.G5);this.j=this.Ed.T(this.api,"progresssync",this.Sc);this.Mo=b;1===this.Mo&&this.Sc()}; g.YV=function(a){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",xa:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",xa:"{{icon}}"}]}]});this.J=a;this.B=new g.xv(this.show,10,this);this.j=new g.xv(this.hide,500,this);g.N(this,this.B);g.N(this,this.j);this.hide()}; $V=function(a,b,c){if(0>=b){c=Gxa();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";ZV(a,c,b,d+"%")}; Q_a=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:qxa();var c=a.J.getPlaybackRate(),d=g.qJ("Speed is $RATE",{RATE:String(c)});ZV(a,b,d,c+"x")}; R_a=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";ZV(a,SXa(),b)}; ZV=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Av(a.j);a.B.start();a.updateValue("title",d);g.Jv(a.element,"ytp-bezel-text-hide",!d)}; S_a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?txa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {I:"div",S:"ytp-cards-button-title",xa:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div", S:"ytp-cards-button-title",xa:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.MF(this,250,!0,100);g.N(this,this.B);g.Jv(this.C,"ytp-show-cards-title",g.BR(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Aaa);this.PG(!0)}; T_a=function(a,b){g.W.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[txa()]},{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.pF()]}]:[{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"}]}]});var c=this;this.J=a;this.Ug= b;this.D=new g.MF(this,250,!1,250);this.j=null;this.N=new g.xv(this.Oaa,300,this);this.K=new g.xv(this.Naa,2E3,this);this.G=[];this.B=null;this.Y=new g.xv(function(){c.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.N(this,this.D);g.N(this,this.N);g.N(this,this.K);g.N(this,this.Y);a.U().L("player_new_info_card_format")?(g.Fv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.H5),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.pT),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.pT)):this.listen("click",this.pT);this.T(b.element,"mouseover",this.wV);this.T(b.element,"mouseout",this.vV);this.T(a,"cardsteasershow", this.cca);this.T(a,"cardsteaserhide",this.Nb);this.T(a,"cardstatechange",this.B2);this.T(a,"presentingplayerstatechange",this.B2);this.T(a,"appresize",this.dN);this.T(a,"onShowControls",this.dN);this.T(a,"onHideControls",this.g7);this.listen("mouseenter",this.I5)}; U_a=function(a){g.W.call(this,{I:"button",Ka:[aW.BUTTON,aW.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:aW.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.xxa()]},{I:"div",S:aW.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; V_a=function(a,b){a.j=b;a.element.classList.toggle(aW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.iN:c.hN)?(a=a.api.jm())?kH(a,b):g.IE(Error("No innertube service available when updating notification preferences.")):g.IE(Error("No update preferences command available.")):g.IE(Error("No video data when updating notification preferences."))}; X_a=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=W_a(a,b);if(a=g.Qe(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))gua(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; W_a=function(a,b){var c=document.location.protocol;return Bfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; g.bW=function(a,b,c,d,e,f,h,l,m,n,p,q){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 r=p.U(),t=r.userDisplayName&&g.GR(r);g.W.call(this,{I:"div",Ka:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.qJ("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":nUa(r),"data-tooltip-opaque":String(g.BR(r)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",xa:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.qJ("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":nUa(r),"data-tooltip-opaque":String(g.BR(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count", xa:d}:""]}],X:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var w=this.Fa("ytp-sb-subscribe"),A=this.Fa("ytp-sb-unsubscribe");f&&g.Fv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var D=function(){if(r.Ca){var H=v.channelId;if(m||n){var L={c:H};var M;g.VO.isInitialized()&&(M=FOa(L));L=M||"";if(M=p.getVideoData())if(M=M.subscribeCommand){var R=p.jm();R?(kH(R,M,{botguardResponse:L,feature:m}),p.jb("SUBSCRIBE",H)):g.IE(Error("No innertube service available when updating subscriptions."))}else g.IE(Error("No subscribe command in videoData.")); else g.IE(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else X_a(g.NR(v.J.U()),"sb_button",v.D)},F=function(){var H=v.channelId; if(m||n){var L=p.getVideoData();kH(p.jm(),L.unsubscribeCommand,{feature:m});p.jb("UNSUBSCRIBE",H)}w.focus();w.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}; this.T(w,"click",D);this.T(A,"click",F);this.T(w,"keypress",function(H){13===H.keyCode&&D(H)}); this.T(A,"keypress",function(H){13===H.keyCode&&F(H)}); this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(vXa(p),LT(p,w,this),LT(p,A,this))}else g.Fv(w,"ytp-sb-disabled"),g.Fv(A,"ytp-sb-disabled")}; Z_a=function(a){g.W.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",xa:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Fa("ytp-title-channel");this.j=this.Fa("ytp-title-channel-logo");this.channelName=this.Fa("ytp-title-expanded-title");this.G=this.Fa("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this, 37220);g.BR(this.api.U())&&Y_a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(cW(b));c.preventDefault()}),this.T(this.j,"click",this.caa)); this.Ta()}; $_a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.bW("Subscribe",null,"Subscribed",null,!0,!1,b.Cl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new U_a(a.api);a.B=e;g.N(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Ll&&(e.show(),a.api.logVisibility(e.element,!0))}); a.T(a.api,"UNSUBSCRIBE",function(){b.Ll&&(e.hide(),a.api.logVisibility(e.element,!1),V_a(e,!1))})}}; Y_a=function(a){var b=a.api.U();$_a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||(a0a(a)&&(c.preventDefault(),a.isExpanded()?a.xI():a.aJ()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.aJ),a.T(a.channel,"mouseleave",a.xI),a.T(a.channel,"focusin", a.aJ),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.xI()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)})); a.C=new g.xv(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.N(a,a.C);a.T(a.channel,b0a,function(){c0a(a)}); a.T(a.api,"onHideControls",a.vS);a.T(a.api,"appresize",a.vS);a.T(a.api,"fullscreentoggled",a.vS)}; c0a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; a0a=function(a){var b=a.api.getPlayerSize();return g.BR(a.api.U())&&524<=b.width}; cW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.ZR(b)+c.Bc;if(!g.BR(b))return c;b={};g.CT(a.api,"addEmbedsConversionTrackingParams",[b]);g.XO(b,"emb_ch_name_ex");return g.lo(c,b)}; dW=function(a){var b=g.bU({"aria-haspopup":"true"});g.aU.call(this,b,a);this.listen("keydown",this.j)}; eW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; d0a=function(a,b){g.W.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Ca&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},xa:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},xa:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},xa:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},xa:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Ca||a.U().Tb||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.K5));this.closeButton=new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.sF()]});this.closeButton.Ja(this.element); g.N(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.J5);this.Ta()}; f0a=function(a,b,c){g.GU.call(this,a);this.Bb=b;this.ke=c;this.getVideoUrl=new dW(6);this.In=new dW(5);this.Cn=new dW(4);this.kc=new dW(3);this.wG=new g.aU(g.bU({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.aU(g.bU(),1,"Stats for nerds");this.zz=new g.iF({I:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},xa:"{{text}}"});this.cX=new FU(this.J,this.zz);this.sH=this.Ot=null;g.BR(this.J.U())&&(this.closeButton= new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.sF()]}),g.N(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.j7,this));g.BR(this.J.U())&&(this.wl=new g.aU(g.bU(),8,"Account"),g.N(this,this.wl),this.Rc(this.wl,!0),this.wl.listen("click",this.Rba,this),a.createClientVe(this.wl.element,this.wl,137682));this.J.U().Xm&&(this.Zk=new jU("Loop",7),g.N(this,this.Zk),this.Rc(this.Zk,!0),this.Zk.listen("click",this.Haa,this),a.createClientVe(this.Zk.element, this.Zk,28661));g.N(this,this.getVideoUrl);this.Rc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.yaa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.In);this.Rc(this.In,!0);this.In.listen("click",this.zaa,this);a.createClientVe(this.In.element,this.In,28660);g.N(this,this.Cn);this.Rc(this.Cn,!0);this.Cn.listen("click",this.xaa,this);a.createClientVe(this.Cn.element,this.Cn,28658);g.N(this,this.kc);this.Rc(this.kc,!0);this.kc.listen("click",this.waa, this);g.N(this,this.wG);this.Rc(this.wG,!0);this.wG.listen("click",this.yba,this);g.N(this,this.showVideoInfo);this.Rc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Sba,this);g.N(this,this.zz);this.zz.listen("click",this.iaa,this);g.N(this,this.cX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Saa("Chromium")&&(b=!0);40>=Saa("Firefox")&&(b=!1);b&&(this.Ot=new g.W({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.N(this,this.Ot), this.Ot.Ja(this.element));var d;null==(d=this.wl)||d.setIcon(zxa());var e;null==(e=this.Zk)||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.kc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.wG.setIcon(rxa());this.showVideoInfo.setIcon(sxa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);e0a(this);this.QG(this.J.getVideoData())}; fW=function(a,b){var c=!1;if(a.Ot){var d=a.Ot.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Bb.Nb():(a.zz.Md(b,"text"),g.JU(a.Bb,a.cX),UXa(a.zz.element),a.Ot&&(a.Ot=null,e0a(a)));return c}; e0a=function(a){var b=!!a.Ot;a.kc.Dk(b?"Copy debug info":"Get debug info");eW(a.kc,!b);a.Cn.Dk(b?"Copy embed code":"Get embed code");eW(a.Cn,!b);a.getVideoUrl.Dk(b?"Copy video URL":"Get video URL");eW(a.getVideoUrl,!b);a.In.Dk(b?"Copy video URL at current time":"Get video URL at current time");eW(a.In,!b);a.Cn.setIcon(b?oxa():null);a.getVideoUrl.setIcon(b?qF():null);a.In.setIcon(b?qF():null)}; g0a=function(a){return g.BR(a.J.U())?a.wl:a.Zk}; i0a=function(a,b){g.IU.call(this,a);this.ke=b;this.D=new g.cK(this);this.ra=new g.xv(this.hca,1E3,this);this.Ca=this.C=null;g.N(this,this.D);g.N(this,this.ra);a.createClientVe(this.element,this,28656);g.Fv(this.element,"ytp-contextmenu");h0a(this);this.hide()}; h0a=function(a){g.UB(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.Wa||(b=a.J.ob(),a.D.T(b,"contextmenu",a.faa),a.D.T(b,"touchstart",a.M5,null,!0),a.D.T(b,"touchmove",a.P_,null,!0),a.D.T(b,"touchend",a.P_,null,!0))}; j0a=function(a){a.J.isFullscreen()?g.UT(a.J,a.element,10):a.Ja(document.body)}; gW=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",xa:"{{icon}}"},{I:"div",S:"ytp-copylink-title",xa:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Oe=b;this.j=c;this.visible=!1;this.tooltip=this.Oe.Te();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Jv(this.element,"ytp-show-copylink-title",g.BR(b));a.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.KT(this.tooltip,this.element))}; k0a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.ob().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.gp&&!g.vT(c)&&!a.api.Yc()&&!b}; l0a=function(a){a.updateValue("icon",kxa());if(a.api.U().B)a.tooltip.VG(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Rh();a.tooltip.VG(a.element);var b=a.listen("mouseleave",function(){a.Pc(b);a.Ta();a.tooltip.Yl()})}}; m0a=function(a,b){return g.G(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.Cf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(UC){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f); return d.call(c,e)})}; hW=function(a){g.W.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div", S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",xa:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",xa:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.xv(this.show,10,this);this.B=new g.xv(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Fa("ytp-doubletap-static-circle");g.N(this,this.D);g.N(this,this.B);this.hide();this.N=this.Fa("ytp-doubletap-fast-forward-ve");this.Y=this.Fa("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y, this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")}; iW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.ob().getPlayerSize();a.G?a.B.stop():g.Av(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Fv(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";n0a(a,a.G?a.C:c)}; o0a=function(a,b,c){g.Av(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Fv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; n0a=function(a,b){b=g.qJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; p0a=function(a){DU.call(this,a,!1,!0);this.Ga=[];this.Ob=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ea=new g.W({I:"div",S:"ytp-featured-product-open-in-new"});g.N(this,this.Ea);this.countdownTimer=new g.W({I:"text",S:"ytp-featured-product-countdown",xa:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.C=new g.W({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text", xa:"{{trendingOffer}}"}]});this.C.hide();g.N(this,this.C);this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.infoButton=new g.W({I:"button",Ka:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.N(this,this.infoButton);this.N=new g.W({I:"text",S:"ytp-featured-product-exclusive-countdown",xa:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.N.hide();g.N(this,this.N);this.K=new g.W({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",xa:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.N(this,this.K);this.banner=new g.W({I:"a",S:"ytp-featured-product-container", V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ea]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",xa:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text", xa:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",xa:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",xa:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div", S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",xa:"{{affiliateDisclaimer}}"},this.C,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",xa:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",xa:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.C,{I:"text",S:"ytp-featured-product-vendor", xa:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.B.element);this.T(this.J,g.kJ("featured_product"),this.Eda);this.T(this.J,g.lJ("featured_product"),this.GB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Baa);this.T(this.overflowButton.element,"click",this.N5);this.T(a,"featuredproductdismissed",this.yu)}; q0a=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f;return(null==a||!a.affiliateDisclaimer)&&(null==a?0:null==(d=a.exclusivesData)?0:d.exclusiveOfferLabelText)&&(null==a?0:null==(e=a.exclusivesData)?0:e.expirationTimestampMs)&&(null==a?0:null==(f=a.exclusivesData)?0:f.exclusiveOfferCountdownText)?!0:!1}; s0a=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.exclusivesData)?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(0b){var h,l,m,n;c=null==(h=a.j)?void 0:null==(l=h.bannerData)?void 0:null==(m=l.itemData)?void 0:null==(n=m.exclusivesData)?void 0:n.exclusiveOfferCountdownText;if(void 0!==c)for(h=Date.now(),l=g.u(c),m=l.next();!m.done;m=l.next())if(m=m.value,void 0!==m&&void 0!==m.text&&(n=Number(m.textDisplayStartTimestampMs), !isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(bKa({seconds:b}))),a.N.Md(b)):a.N.Md(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:null==(p=a.j)?void 0:null==(q=p.bannerData)?void 0:null==(r=q.itemData)?void 0:null==(t=r.exclusivesData)?void 0:t.exclusiveOfferLabelText});a.K.show();jW(a);var v;null==(v=a.Tb)||v.start()}else r0a(a)}; r0a=function(a){var b;null==(b=a.Tb)||b.stop();a.N.hide();a.K.hide();kW(a)}; t0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(null==d||!d.priceReplacementText)&&(null==d?0:d.promotionText)?null==d?void 0:d.promotionText.content:null}; u0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f;if(!(null!=d&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice)){var h,l;return null==d?void 0:null==(h=d.dealsData)?void 0:null==(l=h.sales)?void 0:l.originalPrice}return null}; v0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f,h,l;if(!((null==d?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice))&&(null==d?0:null==(h=d.dealsData)?0:null==(l=h.priceDrop)?0:l.referencePrice)){var m,n;return null==d?void 0:null==(m=d.dealsData)?void 0:null==(n=m.priceDrop)?void 0:n.referencePrice}return null}; w0a=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;if(null==d?0:d.priceReplacementText)return null==d?void 0:d.priceReplacementText;if((null==d?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(e=d.promotionText)?void 0:e.content)}var f,h;if(null==d?0:null==(f=d.dealsData)?0:null==(h=f.sales)?0:h.originalPrice){var l,m;return null==d?void 0:null==(l= d.dealsData)?void 0:null==(m=l.sales)?void 0:m.salesPriceAccessibilityLabel}var n,p;if(null==d?0:null==(n=d.dealsData)?0:null==(p=n.priceDrop)?0:p.referencePrice){var q,r;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(q=d.dealsData)?void 0:null==(r=q.priceDrop)?void 0:r.referencePrice)}return null==d?void 0:d.price}; x0a=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.C.Fb?null:null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:d.vendorName}var e,f,h,l,m,n;return a.C.Fb||a.K.Fb||(null==(e=a.j)?0:null==(f=e.bannerData)?0:null==(h=f.itemData)?0:h.affiliateDisclaimer)?null:null==(l=a.j)?void 0:null==(m=l.bannerData)?void 0:null==(n=m.itemData)?void 0:n.vendorName}; z0a=function(a,b){lW(a);if(b){var c=g.SS.getState().entities;c=qO(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.Ga.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=y0a(h.startTimeSec);void 0!==f&&(h=y0a(h.endTimeSec),b.push(new g.jJ(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier, namespace:"featured_product"})))}}}a.J.gf(b)}}}; kW=function(a){if(a.trendingOfferEntityKey){var b=g.SS.getState().entities;if(b=qO(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?jW(a):(a.C.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.C.show(),a.banner.update({vendor:x0a(a)}))}else jW(a)}else jW(a)}; jW=function(a){a.C.hide();a.banner.update({vendor:x0a(a)})}; lW=function(a){a.Ga=[];a.GB();a.J.mf("featured_product")}; A0a=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Md(bKa({seconds:b}));if(0a)))return a}; G0a=function(a,b,c){g.W.call(this,{I:"div",Ka:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",xa:"{{disclaimer}}"},{I:"a",Ka:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",xa:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",xa:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Fa("ytp-info-panel-action-item-disclaimer");this.button= this.Fa("ytp-info-panel-action-item-button");this.ue=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.V(null==b?void 0:b.onTap,ME);var d=g.V(c,g.yF);this.ue=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ue=!0,g.Me(this.button,g.he(a))):(d=g.V(c,C0a))&&!this.j?((a=d.phoneNumbers)&&0b);d=a.next())c++;return 0===c?c:c-1}; O0a=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b=a.C&&!b}; f1a=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.Oe.Tq(),$T(a.B,a.element,!1)):g.IE(b))}; h1a=function(a,b){var c=dF(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:dF(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},xa:"Share"},{I:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},xa:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox", checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[TXa()]},{I:"div",S:"ytp-share-panel-service-buttons",xa:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",xa:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Ka:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.pF()]}]};g.ZT.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Te();this.C=[];this.G=this.Fa("ytp-share-panel-inner-content"); this.closeButton=this.Fa("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nb);this.addOnDisposeCallback(g.KT(this.tooltip,this.closeButton));this.D=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Fa("ytp-share-panel-link");this.addOnDisposeCallback(g.KT(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=g1a(e,h); g.mU(h,e.api,f)&&e.api.jb("SHARE_CLICKED")}); this.listen("click",this.V5);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.h$);this.hide()}; j1a=function(a,b){i1a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;fd;e={Yw:void 0,Jm:void 0},f++){e.Yw=c[f];a:switch(e.Yw.img||e.Yw.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Yw.sname||e.Yw.serviceName;e.Jm=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],X:{href:e.Yw.url,target:"_blank",title:l},V:[h]});e.Jm.listen("click",function(p){return function(q){var r=p.Yw.url;if(g.dG(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var w=r instanceof g.ae?r:g.he("undefined"!=typeof r.href?r.href:String(r));var A=void 0!==self.crossOriginIsolated, D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);var F="unsafe-url"===D;D=v.noreferrer;if(A&&D){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");D=!1}r=v.target||r.target;A=[];for(var H in v)switch(H){case "width":case "height":case "top":case "left":A.push(H+"="+v[H]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(H+"="+(v[H]?1:0))}H=A.join(",");Lc()&& t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.Cf("A"),v.href=Lba(w),v.target=r,D&&(v.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(w),t={}):D?(t=Mba("",t,r,H),w=g.be(w),t&&(t.opener=null,""===w&&(w="javascript:''"),w=re(''),(v=t.document)&&v.write&&(v.write(g.qe(w)),v.close()))):((t=Mba(w,t,r,H))&&v.noopener&&(t.opener=null),t&&v.noreferrer&& (t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e)); e.Jm.addOnDisposeCallback(g.KT(a.tooltip,e.Jm.element));"Facebook"===l?a.api.createClientVe(e.Jm.element,e.Jm,164504):"Twitter"===l&&a.api.createClientVe(e.Jm.element,e.Jm,164505);a.T(e.Jm.element,"click",function(p){return function(){a.api.logClick(p.Jm.element)}}(e)); a.api.logVisibility(e.Jm.element,!0);a.C.push(e.Jm);d++}}var m=b.more||b.moreLink,n=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=g1a(a,q);g.mU(q,a.api,p)&&a.api.jb("SHARE_CLICKED")}); n.addOnDisposeCallback(g.KT(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)}); a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)}; g1a=function(a,b){var c={};g.BR(a.api.U())&&(g.CT(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.lo(b,g.XO(c,"emb_share")));return b}; i1a=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]}; xW=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0}; k1a=function(a,b){a.startSec+=b;a.endSec+=b}; m1a=function(a){DU.call(this,a);this.C=this.j=this.isContentForward=this.N=!1;l1a(this);this.T(this.J,"changeProductsInVideoVisibility",this.dba);this.T(this.J,"videodatachange",this.onVideoDataChange)}; n1a=function(a){a.K&&a.La.element.removeChild(a.K.element);a.K=void 0}; p1a=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.V(c,o1a))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.W({I:"img", S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.N(a,c);return c})}; q1a=function(a,b){a.isContentForward=b;g.Jv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; yW=function(a){var b=a.isContentForward&&!a.OL();g.Jv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Jv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.C)}; zW=function(a,b,c){return new g.jJ(1E3*a,1E3*b,{priority:9,namespace:c})}; r1a=function(a){a.J.mf("shopping_overlay_visible");a.J.mf("shopping_overlay_preview_collapsed");a.J.mf("shopping_overlay_preview_expanded");a.J.mf("shopping_overlay_expanded")}; l1a=function(a){a.T(a.J,g.kJ("shopping_overlay_visible"),function(){a.Jf(!0)}); a.T(a.J,g.lJ("shopping_overlay_visible"),function(){a.Jf(!1)}); a.T(a.J,g.kJ("shopping_overlay_expanded"),function(){a.ra=!0;CU(a)}); a.T(a.J,g.lJ("shopping_overlay_expanded"),function(){a.ra=!1;CU(a)}); a.T(a.J,g.kJ("shopping_overlay_preview_collapsed"),function(){a.j=!0;yW(a)}); a.T(a.J,g.lJ("shopping_overlay_preview_collapsed"),function(){a.j=!1;yW(a)}); a.T(a.J,g.kJ("shopping_overlay_preview_expanded"),function(){a.C=!0;yW(a)}); a.T(a.J,g.lJ("shopping_overlay_preview_expanded"),function(){a.C=!1;yW(a)})}; t1a=function(a){g.W.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Fa("ytp-shorts-title-channel-logo");this.channelName=this.Fa("ytp-shorts-title-expanded-title"); this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.Qe(AW(b)),c.preventDefault()):b.api.logClick(b.j)}); a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(AW(b));c.preventDefault()}); s1a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()}; s1a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.bW("Subscribe",null,"Subscribed",null,!0,!1,b.Cl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}}; AW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.ZR(b)+c.Bc;if(!g.BR(b))return c;b={};g.CT(a.api,"addEmbedsConversionTrackingParams",[b]);g.XO(b,"emb_ch_name_ex");return g.lo(c,b)}; BW=function(a){g.ZT.call(this,a,{I:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",xa:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.xv(function(){b.hide()},5E3); this.yf=this.Mi=NaN;g.N(this,this.j);this.K=function(){b.show()}; this.G=function(){b.hide()}; this.D=function(){var c=b.J.getCurrentTime();c>b.Mi/1E3&&c=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 "+r+"px/"+l+"px "+m+"px"}; x1a=function(a){return a.L("web_big_boards")?a.isMinimized()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1}; FW=function(a,b){g.W.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",xa:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Fa("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.cK(this);this.j=new g.MF(this,100);g.N(this,this.events);g.N(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.lw()}); x1a(this.api)&&g.Fv(this.element,"ytp-storyboard-framepreview-big-boards")}; y1a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){y1a(a,a.api.Wj())}),a.events.T(a.api,"progresssync",a.xg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,z1a(a),a.j.show(200)):(c&&g.UB(a.events),a.j.hide(),a.j.stop())}; z1a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.ob().getPlayerSize(),e=xS(b,d.width);e=uVa(b,e,c);a.update({timestamp:g.cG(c)});e!==a.C&&(a.C=e,sVa(b,e,d.width),b=qVa(b,e,d.width),w1a(a.D,b,d.width,d.height))}; A1a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.Oe=b;this.message=null;this.j=g.KT(this.Oe.Te(),this.element);this.B=new g.xv(this.b7,2E3,this);g.N(this,this.B);this.T(a,"fullscreentoggled",this.Km);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"resize",this.Ta);this.listen("click",this.onClick);g.JB()&& (b=this.J.ob(),this.T(b,Oqa(),this.oR),this.T(b,Nqa(document),this.xx));a.U().Gb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Ta();this.Km(a.isFullscreen())}; GW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0=h)break}a.D=d;a.frameCount=b.iJ();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d= void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.B.pop())||d.dispose(); for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; i2a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; f2a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; g2a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",xa:"{{chapterTitle}}"}]})}; k2a=function(a){g.W.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Fa("ytp-heat-map-svg");this.C=this.Fa("ytp-heat-map-path");this.G=this.Fa("ytp-heat-map-graph");this.D=this.Fa("ytp-heat-map-play");this.B=this.Fa("ytp-heat-map-hover");this.ue=!1;this.j=60;a=""+g.fb(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path", a);this.api.L("web_heat_map_v2")&&g.Fv(this.api.getRootNode(),"ytp-heat-map-v2")}; l2a=function(a,b){0=h&&w<=p&&f.push(r)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0a.rb&&(a.rb=m/f),d=!0)}c++}}return d}; TW=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:uT(d))&&b.airingStart&&b.airingEnd?F2a(a,b.airingStart,b.airingEnd):F2a(a,b.seekableStart,b.seekableEnd);d=gG(c,b.loaded,0);b=gG(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;UW(a,b,d);e&&G2a(a);H2a(a)}}}; F2a=function(a,b,c){return I2a(a)?new fG(Math.max(b,a.Ab.startTimeMs/1E3),Math.min(c,a.Ab.endTimeMs/1E3)):new fG(b,c)}; J2a=function(a,b){var c;if("repeatChapter"===(null==(c=a.Ab)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[nW(a.j,b.startTimeMs)],g.Jv(b.j,"ytp-repeating-chapter",!1)),a.Ab&&(b=a.j[nW(a.j,a.Ab.startTimeMs)],g.Jv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Jv(d.j,"ytp-exp-chapter-hover-container",!a.Ab)})}; WW=function(a,b){var c=tya(a.C,b.B);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)}; G2a=function(a){a.Sf.style.removeProperty("height");for(var b=g.u(Object.keys(a.La)),c=b.next();!c.done;c=b.next())L2a(a,c.value);XW(a);UW(a,a.qa,a.gb)}; SW=function(a){var b=a.Za.x;b=g.Ce(b,0,a.N);a.rh.update(b,a.N);return a.rh}; ZW=function(a){return(a.D?135:90)-YW(a)}; YW=function(a){var b=48,c=a.api.U();a.D?b=54:g.BR(c)&&!c.B&&(b=40);return b}; UW=function(a,b,c){a.qa=b;a.gb=c;var d=SW(a),e=a.C.j,f=tya(a.C,a.qa),h=g.qJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.cG(f,!0),DURATION:g.cG(e,!0)}),l=nW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Ab&&2!==a.api.getPresentingPlayerType()&&(e=a.Ab.startTimeMs/1E3,f=a.Ab.endTimeMs/1E3);e=gG(a.C,e,0);l=gG(a.C,f,1);h=a.api.getVideoData();f=g.Ce(b,e,l);c=(null==h?0:g.tT(h))?1:g.Ce(c, e,l);b=RW(a,b,d);g.Is(a.Sg,"transform","translateX("+b+"px)");$W(a,d,e,f,"PLAY_PROGRESS");(null==h?0:uT(h))?(b=a.api.getProgressState().seekableEnd)&&$W(a,d,f,gG(a.C,b),"LIVE_BUFFER"):$W(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}}; $W=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=VW(a,l);var m=d*h;h=VW(a,m);"HOVER_PROGRESS"===e&&(h=VW(a,b.j*d,!0),m=b.j*d-M2a(a,b.j*d)*(a.D?3:2));d=Math.max(l-N2a(a,c),0);for(l=c;l=a.j.length)return a.N;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; RW=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.D}; M2a=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d}; g.Q2a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Qf=b;a.N=c;a.D=d;OW(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);G2a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.QW(a);a.B&&f&&OW(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-YW(a),a.bb.style.height=c+"px",g.Is(a.ra,"transform","translateY("+-d+"px)"),g.Is(a.progressBar,"transform","translateY("+-d+"px)")),h2a(a.B))}; XW=function(a){var b=!!a.Ab&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Ab?(c=a.Ab.startTimeMs/1E3,d=a.Ab.endTimeMs/1E3):(e=c>a.C.B,f=0a.qa);g.Jv(a.Sf,"ytp-scrubber-button-hover",c===d&&1b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=qVa(a.B,a.D,b);w1a(a.bg,d,b,c,!0);a.Ea.start()}}; G3a=function(a){var b=a.j;3===a.type&&a.La.stop();a.api.removeEventListener("appresize",a.Ga);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null}; I3a=function(a){g.W.call(this,{I:"button",Ka:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.BR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",xa:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",xa:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;vXa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize", this.LC);this.T(a,"videodatachange",this.LC);this.T(a,"presentingplayerstatechange",this.LC);this.LC();a=this.J.U();var b=g.YB("yt-player-watch-later-pending");a.D&&b?(TOa(),H3a(this)):this.Ta(2);g.Jv(this.element,"ytp-show-watch-later-title",g.BR(a));LT(this.J,this.element,this)}; J3a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.BR(c)&&g.RT(a.J)&&g.TF(a.J.getPlayerStateObject(),128),f=c.C;return c.je&&240<=b.width&&!d.isAd()&&d.je&&!e&&!g.vT(d)&&!a.J.Yc()&&!f}; K3a=function(a,b){X_a(g.NR(a.J.U()),"wl_button",function(){TOa({videoId:b});window.location.reload()})}; H3a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.jm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.VG(a.element);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_ADDED")}; kH(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.jb("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; L3a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=TXa();break;case 1:c=kxa();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path", Hc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}}; g.xX=function(){g.VV.apply(this,arguments);this.TJ=(this.Er=g.BR(this.api.U()))&&(this.api.U().B||vB()||qqa());this.bO=48;this.cO=69;this.JD=this.wi=null;this.wu=[];this.YL=this.gi=this.ZL=this.ew=this.ke=null;this.kH=[];this.contextMenu=this.Ag=this.overflowButton=this.Zh=this.Ug=this.searchButton=this.vn=this.shareButton=this.Po=this.Pg=this.title=this.channelAvatar=this.tB=this.tooltip=null;this.JN=!1;this.iG=this.Vw=this.dE=this.eE=null;this.PR=this.IQ=this.oO=!1}; M3a=function(a){var b=a.api.U(),c=g.TF(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()}; N3a=function(a){if(a.Lg()&&!a.api.Yc()&&a.Zh){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Po||b&&!J3a(a.Po)||V0a(a.Zh,a.Po);!a.shareButton||b&&!e1a(a.shareButton)||V0a(a.Zh,a.shareButton);!a.vn||b&&!k0a(a.vn)||V0a(a.Zh,a.vn)}else{if(a.Zh){b=a.Zh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Rf(a.Pg.element,a.searchButton.element)&&a.searchButton.Ja(a.Pg.element);a.Po&&!g.Rf(a.Pg.element,a.Po.element)&&a.Po.Ja(a.Pg.element); a.shareButton&&!g.Rf(a.Pg.element,a.shareButton.element)&&a.shareButton.Ja(a.Pg.element);a.vn&&!g.Rf(a.Pg.element,a.vn.element)&&a.vn.Ja(a.Pg.element)}}; O3a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Ms(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=O3a(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexa.j||c.push(d)}return c}; j4a=function(a,b,c){var d=g4a[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=h4a[a]||[]);b.push.apply(b,g.qa(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.qa(i4a[a]||[]))}; p4a=function(a,b){var c=VS(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Yj();if(d){if(!e.B){if(f&&EX)return EX;if(FX)return FX}}else if(FX&&!e.B)return FX;var h=[],l=[],m={},n=GX.concat(k4a);d&&(n=GX.concat(l4a));a.L("html5_early_media_for_drm")&&(n=n.concat(m4a),a.L("allow_vp9_1080p_mq_enc")&&n.push(n4a));var p=[].concat(g.qa(o4a));c.Z&&(p[0]=["141"]);n=g.u(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.u(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var v= b4a(t,f&&d);if(v&&v.video&&!(lK(v)&&!c.Ea&&v.video.j>c.jj)){var w=g.EI(a.U().experiments,"html5_drm_byterate_soft_cap");0w||(r?(h.push(t),j4a(t,h,a)):(v=lP(c,v,e),!0===v?(r=!0,h.push(t),j4a(t,h,a)):m[t]=v))}}}p=g.u(p);for(n=p.next();!n.done;n=p.next())for(n=g.u(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=d4a(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!MDa(q)&&!mK(q)))if(q=lP(c,q,e),!0===q){l.push(r);j4a(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B= !1,EX=FX=void 0),f?EX={video:h,audio:l}:FX={video:h,audio:l};FX={video:h,audio:l};e.B=!1;return FX}; q4a=function(){for(var a=HX.length;4>a;a++){var b=g.Cf("VIDEO");b.load();HX.push(new g.ZU(b))}}; r4a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.Xg()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Se())&&d.isView()&&(d=d.mediaElement);if(d&&12m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.kJ("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.jJ(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0, b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,MX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,MX(b)+m)),h=USa(f,l)||d,h!==d&&a.j.ma("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().nj=!0;d.getVideoData().Y=!0;g.OX(d,!0);f={};a.B&&(f=g.LM(a.B.uc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ma("queued",f);0!==b&&d.seekTo(b+.01,{Hw:!0,wT:3,wd:"videoqueuer_queued"});a.C=new v4a(a.N,a.app.Wc(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&& (LX(c,1),c.j.subscribe("internalvideodatachange",c.pn,c),c.B.subscribe("internalvideodatachange",c.pn,c),c.kd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.pn,c),c.B.subscribe("internalvideoformatchange",c.pn,c)),c.j.subscribe("mediasourceattached",c.pn,c),c.B.subscribe("statechange",c.pU,c),c.j.subscribe("newelementrequired",c.x_,c),c.pn());return a.D}; G4a=function(a){var b,c,d,e,f;g.G(function(h){switch(h.j){case 1:if(a.Ma()||!a.D||!a.j)return h.return();a.Z&&PX(a.app.Wc(),!0,!1);b=null;if(!a.C){h.Ia(2);break}g.Ba(h,3);return g.z(h,A4a(a.C),5);case 5:g.Ca(h,2);break;case 3:b=c=g.Da(h);case 2:if(!a.j)return h.return();g.KX.Co("vqsp",function(){QX(a.app,a.j)}); d=a.j.Se();a.app.U().L("html5_gapless_seek_on_negative_time")&&d&&-.01>d.getCurrentTime()&&a.j.seekTo(0);g.KX.Co("vqpv",function(){a.app.playVideo()}); b&&(a.j?J4a(a.j,b.message):null==(e=a.B)||e.ma("gapsp",{}));f=a.D;NX(a);f&&f.resolve();return h.return(Promise.resolve())}})}; NX=function(a,b){b=void 0===b?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.kJ("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(c=a.C,Infinity!==c.status.status&&1!==c.G&&c.yg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.HT(a.app,1)&&a.j!==a.app.Wc()&&a.j.dispose();a.j&&b&&RX(a.j);a.j=null;a.Z=!1}; K4a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1}; L4a=function(a,b,c){if(a.Tn())return"qie";if(null==a.j||a.j.Ma()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.qe())return"vinm";if(0>=K4a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=r4a(d.policy,d.j,d.B,d.Pm)?a="pge":(c=E4a(d),b=c.XS,a=g.EI(d.kd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=xK(c.s1.Je(),d),b=xK(b.Je(),d),a=!(0c.OB||0>c.Xr||0>d||0>h||0>c.Wr||0>f)return WX(a,b),[];a=kQ(c.OB,c.Wr);b=c.BK||0;return[new mQ(3,e,a,"makeSliceInfosMediaBytes",c.Xr-1,h/f,d/ f,b,a.length-b,void 0,c.Fj,c.clipId)]}if(0>c.Xr)return WX(a,b),[];var q;return(null==(q=a.manifest)?0:q.Zb)?(b=e.Gj,l=b*e.info.sb,a=(null==(h=a.hf)?0:h.Gb)?c.BK:void 0,[new mQ(3,e,void 0,"makeSliceInfosMediaBytes",c.Xr,void 0,b,a,l,!0,c.Fj,c.clipId)]):[]}; $4a=function(a,b,c){a.manifest=b;a.hf=c;b=g.u(a.Vc);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.GS),f=e.next();!f.done;f=e.next()){f=f.value;var h=Z4a(a,c,f);Y4a(a,f.Ip,d,h)}}}; a5a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength}); (a=a.Vc.get(c))&&!a.Kg&&(VX?(a.vj.has(b)||a.vj.set(b,{data:new BN,jI:0,Ow:!1}),CN(a.vj.get(b).data,d)):CN(a.wf,d),a.bytesReceived+=d.totalLength,a.eS=!0)}; S4a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b}); var c=a.Vc.get(b);c&&!c.Kg&&(c.Kg=!0,c.xg&&c.xg(),b5a(a)&&a.D.k_())}; b5a=function(a){a=g.u(a.Vc.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Kg)return!1;return!0}; YX=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)}; c5a=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.qa(new Uint8Array(c))));a.close()}return b}; h5a=function(a){var b=a.experiments,c=b.fb.bind(b);d5a=c("html5_use_async_stopVideo");e5a=c("html5_pause_for_async_stopVideo");f5a=c("html5_not_reset_media_source");hEa=c("html5_rebase_video_to_ad_timeline");IK=c("html5_not_reset_media_source");g5a=c("html5_not_reset_media_source");TDa=c("html5_retain_source_buffer_appends_for_debugging");c("html5_mediastream_applies_timestamp_offset")&&(ZX=!0);var d=g.EI(b,"html5_cobalt_override_quic");d&&YX("QUIC",+(0a.segments.length)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.u(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.u(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.u(f.segments),l=h.next();!l.done;l=h.next())(l=aY(l.value))&&d.push(l);f.removeAll()}}}(c=aY(b))&&d.push(c);d=g.u(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}}; bY=function(a,b,c,d){if(!a.j||b>c)return!1;b=new $X(a.W,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=aY(c);e&&e!==aY(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.Ye())?a.j.get(b.Ye()).push(b):a.j.set(b.Ye(),[b]);return!0}; cY=function(a,b){return a.B.get(b)}; j5a=function(a,b,c){a.B.set(b,c)}; dY=function(a,b,c,d,e,f){return new k5a(c,c+(d||0),!d,b,a,e,f)}; k5a=function(a,b,c,d,e,f,h){g.I.call(this);this.jc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.jK=h;this.j=new Map;pWa(f)}; aY=function(a){return a.videoData.clientPlaybackNonce}; l5a=function(a){if(a.j.size)for(var b=g.u(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()}; m5a=function(a){this.end=this.start=a}; g.eY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.ea=c;this.Ea=new Map;this.bb=new Map;this.La=new Map;this.B=new Map;this.C=[];this.G=[];this.D=new Map;this.Tb=new Map;this.Y=new Map;this.Ob=NaN;this.zb=this.Za=this.Kb=null;this.Gb=new g.xv(function(){n5a(d,d.Ob,d.Kb||void 0)}); this.events=new g.cK(this);this.Jb=15E3;this.Z=new g.xv(function(){d.Ca=!0;var e=d.ea,f=d.Jb;e.ma("sdai",{aftimeout:f});e.Wd(new WJ("ad.fetchtimeout",{timeout:f}));o5a(d);d.IE(!1)},this.Jb); this.Ca=!1;this.K=new Map;this.rb=[];this.ra=null;this.Be=new Set;this.Ga=[];this.qc=[];this.yd=[];this.Jd=[];this.j=void 0;this.Wa=0;this.Sa=!0;this.qa=!1;this.Na=[];this.pd=new Set;this.Sd=new Set;this.je=new Set;this.fm=0;this.gb=new Set;this.Qc=0;this.yn=this.Bc=!1;this.pc=this.N="";this.qd={Gob:function(){return d.B}, Qob:function(){return d.C}, Hob:function(){return d.D}, T7:function(e){d.onCueRangeEnter(d.B.get(e))}, Aob:function(e){d.onCueRangeExit(d.B.get(e))}, Iqb:function(e,f){d.B.set(e,f)}, Kqb:function(e){d.pc=e}, nE:function(){return d.nE()}}; this.ea.getPlayerType();p5a(this.ea,this);this.Va=this.W.zc();g.N(this,this.Gb);g.N(this,this.events);g.N(this,this.Z);this.events.T(this.api,g.kJ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.lJ("serverstitchedcuerange"),this.onCueRangeExit)}; t5a=function(a,b,c,d,e,f,h,l){var m=q5a(a,f,f+e);a.Ca&&a.ea.ma("sdai",{adaftto:1});a.yn&&a.ea.ma("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=void 0===h?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.ma("sdai",{attl0d:1});f>h&&fY(a,{reason:"enterTime_greater_than_return",jc:f,Vd:h});var p=1E3*n.Dd();fn&&fY(a,{reason:"parent_return_greater_than_content_duration", Vd:h,nqb:n});n=null;p=g.Sb(a.G,{Vd:f},function(q,r){return q.Vd-r.Vd}); 0<=p&&(n=a.G[p],n.Vd>f&&r5a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;pd?-1*(d+2):d;return 0<=d&&(a=a.G[d],a.Vd>=c)?{un:a,xu:b}:{un:void 0,xu:b}}; kY=function(a,b){var c="";(b=w5a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0}; w5a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.pc){var c=a.B.get(a.pc);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.u(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; n5a=function(a,b,c){var d=a.zb||a.api.Wc().getPlayerState();lY(a,!0);a.ea.seekTo(b,c);a=a.api.Wc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()}; lY=function(a,b){a.Ob=NaN;a.Kb=null;a.Gb.stop();a.Za&&b&&x5a(a.Za);a.zb=null;a.Za=null}; y5a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.jcc)&&d.push(f);a.G=d;d=g.u(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.ma("sdai",{rmAdCR:1}));d=v5a(a,b/1E3);b=d.un;d=d.xu;if(b&&(d=1E3*d-b.jc,e=b.jc+d,b.durationMs=d,b.Vd=e,d=a.B.get(b.cpn))){e=g.u(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= b.jc+b.durationMs:f.end===d.start&&(f.end=b.jc);d.start=b.jc;d.end=b.jc+b.durationMs}if(b=v5a(a,c/1E3).un){var h;d="playback_timelinePlaybackId_"+b.bd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.jc+"_parentReturnTimeMs_"+b.Vd;a.Vp("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; z5a=function(a){a.Ea.clear();a.bb.clear();a.La.clear();a.B.clear();a.C=[];a.G=[];a.D.clear();a.Tb.clear();a.Y.clear();a.K.clear();a.rb=[];a.ra=null;a.Be.clear();a.Ga=[];a.qc=[];a.yd=[];a.Jd=[];a.Na=[];a.pd.clear();a.Sd.clear();a.je.clear();a.gb.clear();a.Ca=!1;a.j=void 0;a.Wa=0;a.Sa=!0;a.qa=!1;a.fm=0;a.Qc=0;a.Bc=!1;a.yn=!1;a.N="";a.Z.isActive()&&gY(a)}; B5a=function(a,b,c,d,e,f){if(!a.yn)if(!a.W.L("html5_ssdai_use_media_time")&&g.A5a(a,c))a.Va&&a.ea.ma("sdai",{gdu:"undec",seg:c,itag:e});else if(b=mY(a,b,c,d,f),!(a.ea.getVideoData().Rn()&&(null==b?0:b.uA)))return b}; mY=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=nY(a,b))return f;var h=oY(a,c-1,null!=d?d:2);if(e)return a.ea.ma("sdai",{misscue:e,sq:c,type:d,prevsstate:null==h?void 0:h.Zy,prevrecord:a.K.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?nY(a,b-5):a.K.get(c-1);if(2===(null==h?void 0:h.Zy)&&(a.ea.ma("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f}; nY=function(a,b){b+=a.It();if(a.W.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=void 0===c?0:c;var d=1E3*b;a=g.u(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Kq?1E3*e.Kq:e.jc;if(d>=e.jc-1E3*c&&d<=f+e.durationMs+1E3*c){b={un:e,xu:b};break a}}b={un:void 0,xu:b}}else b=v5a(a,b,1);return b.un}; C5a=function(a){if(a.Na.length)for(var b=g.u(a.Na),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.u(a.C);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.C=[];a.Ea.clear();a.bb.clear();a.La.clear();a.j||(a.Sa=!0)}; u5a=function(a,b,c,d,e,f,h){if(b&&c){a.pc=c.cpn;a.api.publish("serverstitchedvideochange",c.bd,c.Kq);var l=hY(a,"a2a",c);a.ea.ma("sdai",l);a.fm++;iY(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.ma("sdai",{misspbkonadtrans:1,enter:(null==c?void 0:c.cpn)||"",exit:(null==b?void 0:b.cpn)||"",seek:f,skip:h})}; oY=function(a,b,c){if(1===c){if(a.Ea.has(b))return a.Ea.get(b)}else{if(2===c&&a.bb.has(b))return a.bb.get(b);if(3===c&&a.La.has(b))return a.La.get(b)}}; E5a=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;D5a(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.ea.removeCueRange(e);if(a.Na.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else D5a(a,b,c)}; D5a=function(a,b,c){b=a.CI(b,c);c=!0;g.Yb(a.C,b,function(h,l){return h.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.ZD("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())}; pY=function(a,b,c){if(void 0===c||!c){c=g.u(a.rb);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.rb.push(new m5a(b))}}; g.A5a=function(a,b){a=g.u(a.rb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; r5a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",iqb:b,jc:c,Vd:d,yob:e.bd,zob:(null==(f=e.videoData)?void 0:f.videoId)||"",vob:e.durationMs,wob:e.jc,xob:e.Vd};fY(a,b)}; fY=function(a,b,c){a=a.ea;a.ma("timelineerror",b);b=new WJ("dai.timelineerror",b);c?a.Zf("dai.timelineerror",1,"RETRYABLE_ERROR",VJ(b.details)):a.Wd(b)}; F5a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; G5a=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; H5a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c}; I5a=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Vd!==b.jc&&c++;return c}; J5a=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Vd!==e.jc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Sd.has(e)&&(a.ea.ma("sdai",{decoratedAd:e}),a.Sd.add(e)))}}; o5a=function(a){a.Va&&a.ea.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Qc)+"_isTimeout_"+a.Ca})}; q5a=function(a,b,c){if(a.Ga.length)for(var d=g.u(a.Ga),e=d.next(),f={};!e.done;f={Cz:void 0},e=d.next()){f.Cz=e.value;e=1E3*f.Cz.startSecs;var h=1E3*f.Cz.Ah+e;if(b>e&&be&&c1E3*b+a.zda)return!1;if(d=Q5a(a,c)){b=!1;c=void 0;d=g.u(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}aY(e)===a.pc&&(b=!0)}d=void 0;if(c)d=aY(c);else if(b){var f;d=null==(f=a.timeline.j)?void 0:aY(f)}if(d)return a.finishSegmentByCpn(a.pc,d,2,void 0),!0;var h;a.api.ma("ssap",{mfnc:1,mfncc:null== (h=a.timeline.j)?void 0:aY(h)})}return!1}; rY=function(a,b){a=cY(a.timeline,b);return(null==a?0:a.length)?a[0].Ye():0}; sY=function(a,b){if(!a.timeline.j)return{clipId:"",bl:0};if(b=qY(a,b,!1))return{clipId:aY(b)||"",bl:b.Ye()};a.api.ma("ssap",{mci:1});return{clipId:"",bl:0}}; tY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(0===b.j.size)return(b.Bi()-b.Ye())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Bi()-d.Ye())/1E3}return a}; S5a=function(a,b){b*=1E3;return a.api.L("html5_ssap_get_current_time_refactor")?(a=R5a(a,b))?a.Ye():0:(a=qY(a,b))?a.Ye():0}; T5a=function(a,b){return(a=qY(a,1E3*b))?(a.Bi()-a.Ye())/1E3:0}; R5a=function(a,b){if(a=cY(a.timeline,a.pc)){a=g.u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ye()<=b&&c.Bi()>=b)return c}}; U5a=function(a){var b=a.ea.getVideoData();a.pc&&(a=a.Zs.get(a.pc))&&(b=a);return b}; Q5a=function(a,b,c){c=void 0===c?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Vb(e);b=g.Sb(e,b);b=d.get(e[0>b?-1*(b+2):b]);if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&!c&&b){c=g.u(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Ye()!==b.Bi())return b;return a.timeline}return b&&0b)return h;if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&c&&d.Ye()===d.Bi())return e[0]}}else a.api.ma("ssap",{ctnf:1})}; K5a=function(a,b){var c;if(a.Yx)for(c=a.bG.shift();c&&c!==a.Yx;)c=a.bG.shift();else c=a.bG.shift();if(c)return a.jk.has(c)?V5a(a,c):3===b&&(a.yK.stop(),a.api.playVideo(1)),a.lH.set(a.pc,b),a.api.ma("ssap",{onvftn:1}),W5a(a,c),!1;a.api.ma("ssap",{onvftv:1});a.yK.stop();return!0}; V5a=function(a,b){b=cY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.yK.start(b[0].jK)}; W5a=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.pc,f=!1;if(""===e)e=d,f=!0;else if(void 0===e){var h=a.ea.Uz().Hg;h&&a.timeline.B.has(h)&&(e=h);a.api.ma("ssap",{mcc:e+";"+b});a.ea.Wd(new WJ("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&X5a(a,c,f);else if(h=a.lH.get(e),f||3===h||a.api.hC(),a.pc=b,b=cY(a.timeline,a.pc),null==b?0:b.length){var l=b[0];b=l.getType();e!==d&&(a.eK=e,c=a.Zs.get(e));h?a.lH.delete(e):h=f?1:2;a:{var m=a.pc;if(!a.Qi.has(m))for(var n= g.u(a.Qi),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.pc;q=a.ea.Uz();if(q.Hg!==p){var r=q.uc(q.Hg);m=q.uc(p);q.Hg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.zc()&&p.ma("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.LM(p.provider),Y5a(p,n,"SU")),isNaN(p.K)||g.$A(p.K)),m.resume())}n=a.ea.getCurrentTime();m=Math.max(0,n-rY(a,e)/1E3);n=Math.max(0, n-rY(a,a.pc)/1E3);p=3===h;l=l.getVideoData();q=a.ea.Uz();r=e;var t=a.pc,v=a.ea.getPlayerState();if(r!==t){var w=q.uc(r),A=q.uc(t),D,F=r===(null==(D=w.getVideoData())?void 0:D.clientPlaybackNonce),H;D=t===(null==(H=A.getVideoData())?void 0:H.clientPlaybackNonce);var L;H=F?(null==(L=w.getVideoData())?void 0:L.videoId)||"":"nvd";var M;L=D?(null==(M=A.getVideoData())?void 0:M.videoId)||"":"nvd";F&&null!=(M=w.qoe)&&(uY(M,4,p?4:0,t,L,m),M.reportStats());D&&(vY(A),null!=(M=A.qoe)&&(uY(M,4,p?5:1,r,H,n),M.reportStats()), Z5a(A,new g.SF(v,A.Fe)),$5a(A));a6a(q,r)}var R;AZa(e,a.pc,d,(0,g.EC)(),l,null!=(R=a.cM.get(e))?R:(0,g.EC)(),c);a.cM.delete(e);f?c=void 0:c||a.api.ma("ssap",{pvdm:e+";"+a.pc,pvdmc:a.pc===d?"1":"0"});a.api.ma("ssap",{tpac:e+";"+a.pc,tpcc:d,tpv:(null==l?0:l.ue())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",l,b,c,h);a.jk.delete(e);a.Yx="";l&&1===b?X5a(a,l):a.ea.ma("ssap",{nis:a.pc});2===b?a.fm++:a.fm=0}}; X5a=function(a,b,c){c=void 0===c?!1:c;if(b.startSeconds&&a.w1){var d=b.startSeconds;b=cY(a.timeline,b.clientPlaybackNonce);if(null==b?0:b.length)d+=b[0].Ye()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.hP()||(a.ea.seekTo(d,{hT:!0}),a.w1=!1,a.ea.ma("ssap",{is:a.pc,co:c?"1":"0",tse:d.toFixed()}))}}; b6a=function(a,b,c){b=cY(a.timeline,b);if(null==b?0:b.length)if(b=Q5a(a,b[0].Ye())){b=g.u(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(aY(d)===c)break;if(d=aY(d))a.Qi.delete(d),(d=a.Qi.get(d))&&a.ea.removeCueRange(d)}}}; c6a=function(a,b,c){qY(a,b)||a.ea.ma("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:wY(a)})}; wY=function(a){var b=a.pc;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d;a=Array.from(null!=(d=null==(c=a.timeline.j)?void 0:c.j.values())?d:[]);c=[];if(null==a?0:a.length)for(d=g.u(a),a=d.next();!a.done;a=d.next())if(a=a.value,a.length&&a[0]&&(a=a[0].segments,a.length)){a=g.u(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;e="st."+f.Ye()+";";e+="et."+f.Bi()+";";var h=aY(f);h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+(null!=(h=f.videoId)?h: "nvd");c.push(e)}}return c.length?c.join(","):"empty."+b}; L5a=function(a){a.ea.tG(Array.from(a.Qi.values()));a.Qi.clear()}; e6a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.xv(function(){d6a(d,d.qa,d.Y||void 0)}); this.ra=[];this.Ca=new g.xv(function(){var e=d.ra.pop();if(e){var f=e.bd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.yv(d.Ca,4500))}}); this.events=new g.cK(this);c.getPlayerType();g.N(this,this.Z);g.N(this,this.Ca);g.N(this,this.events);this.events.T(this.api,g.kJ("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.nk)}; i6a=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return xY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Dd();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.Kc(),xY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.jc&&eq.jc)return xY(a,"overlappingReturn",h,l),"";if(f===q.jc)return xY(a,"outOfOrder",h,l),"";e===q.Vd&&(n=q)}h="cs_childplayback_"+f6a++;l={Xd:yY(d,!0),Pm:Infinity,target:null};var r={bd:h,playerVars:b,playerType:c,durationMs:d,jc:e,Vd:f,qt:l};a.B=a.B.concat(r).sort(function(w,A){return w.jc-A.jc}); n?g6a(a,n,{Xd:yY(n.durationMs,!0),Pm:n.qt.Pm,target:r}):(b={Xd:yY(e,!1),Pm:e,target:r},a.K.set(b.Xd,b),m.addCueRange(b.Xd));b=!0;if(a.j===a.api.Wc()&&(m=1E3*m.getCurrentTime(),m>=r.jc&&mb)break;if(f>b)return{un:d,xu:b-e};c=f-d.Vd/1E3}return{un:null,xu:b-c}}; d6a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.Wc().getPlayerState();BY(a,!0);b=isFinite(b)?b:a.j.ir();var e=m6a(a,b);b=e.un;e=e.xu;var f=b&&!zY(a,b)||!b&&a.j!==a.api.Wc(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||AY(a);b?h6a(a,b,e,c,d):n6a(a,e,c,d)}; n6a=function(a,b,c,d){var e=a.j,f=a.api.Wc();e!==f&&a.api.Nx();e.seekTo(b,Object.assign({},{wd:"application_timelinemanager"},c));o6a(a,d)}; h6a=function(a,b,c,d,e){var f=zY(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.ES(a.W,b.playerVars);h.bd=b.bd;a.api.mu(h,b.playerType)}h=a.api.Wc();f||h.addCueRange(b.qt.Xd);h.seekTo(c,Object.assign({},{wd:"application_timelinemanager"},d));o6a(a,e)}; o6a=function(a,b){a=a.api.Wc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()}; BY=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&x5a(a.D);a.G=null;a.D=null}; zY=function(a,b){a=a.api.Wc();return!!a&&a.getVideoData().bd===b.bd}; p6a=function(a){var b=a.B.find(function(e){return zY(a,e)}); if(b){var c=a.api.Wc();AY(a);var d=new g.QK(8);b=l6a(a,b)/1E3;n6a(a,b,{},d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}}; r6a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Pm>=d&&l.target&&l.target.Vd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.jc>=d&&l.Vd<=e){var m=a;m.N===l&&AY(m);zY(m,l)&&m.api.Nx()}else f.push(l);a.B=f;d=m6a(a,b/1E3);b=d.un;d=d.xu;b&&(d*=1E3,q6a(a,b,d,b.Vd===b.jc+b.durationMs?b.jc+d:b.Vd));(b=m6a(a,c/1E3).un)&& xY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.bd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.jc+" parentReturnTimeMs="+b.Vd+"}.Child playbacks can only have duration updated not their start."))}; q6a=function(a,b,c,d){b.durationMs=c;b.Vd=d;d={Xd:yY(c,!0),Pm:c,target:null};g6a(a,b,d);zY(a,b)&&1E3*a.api.Wc().getCurrentTime()>c&&(b=l6a(a,b)/1E3,c=a.api.Wc().getPlayerState(),n6a(a,b,{},c))}; xY=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; t6a=function(a){a&&"web"!==a&&s6a.includes(a)}; EY=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.xv(function(){CY(c);DY(c)}); g.N(this,this.j)}; u6a=function(a){CY(a);return a.data.map(function(b){return b.value})}; CY=function(a){var b=(0,g.EC)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)}; x6a=function(a,b){a.dataset.version=b}; A6a=function(a){g.W.call(this,{I:"div",Ka:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.HY.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.yz=this.Fa(g.HY.VIDEO_CONTAINER);this.vB=new g.Fs(0,0,0,0);this.Dc=null;this.nL=new g.Fs(0,0,0,0);this.yP=this.LQ=this.KQ=NaN;this.MJ=this.kL=this.bS=this.PW=!1;this.mO=NaN;this.pQ=!1;this.tF=null;this.mR=function(){b.element.focus({preventScroll:!0})}; this.RK=function(){b.app.Ua.publish("playerUnderlayVisibilityChange","visible");b.Dc.classList.remove(g.HY.VIDEO_CONTAINER_TRANSITIONING);b.Dc.removeEventListener(VXa,b.RK);b.Dc.removeEventListener("transitioncancel",b.RK)}; 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.U();e.transparentBackground&&this.Ns("ytp-transparent");"0"===e.controlsType&&this.Ns("ytp-hide-controls");g.Fv(this.element,"ytp-exp-bottom-control-flexbox");g.Fv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.TR(e)&&g.Fv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Fv(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Fv(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.Fv(this.element,"ytp-cairo-refresh-signature-moments"); x6a(this.element,y6a(a));this.v1=!1;this.cE=new g.Ke(NaN,NaN);z6a(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; z6a=function(a){function b(){a.Dc&&IY(a);JY(a)!==a.pQ&&a.resize()} function c(h,l){a.Kt(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.nL=new g.Fs(0,0,0,0);a.vB=new g.Fs(0,0,0,0)} var f=a.app.Ua;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; C6a=function(a){var b=g.HT(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.sT(b))c=a.app.Ua.getVideoData();if(c){if(g.hT(c)||g.iT(c)||g.jT(c))return 16/9;if(dWa(c)&&c.C.j)return a=c.C.videoInfos[0].video,B6a(a.width,a.height)}return(a=a.Dc)?B6a(a.videoWidth,a.videoHeight):16/9}; D6a=function(a,b,c,d){var e=c,f=B6a(b.width,b.height);a.PW?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(E6a*b-a)||1>Math.abs(E6a/a-b)?E6a:a/b}; JY=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.HT(a.app);if(!b||b.Kn())return!1;a=a.app.Ua.getPlayerStateObject();b=!g.TF(a,2)||b&&b.getVideoData().Y;var c=g.TF(a,1024);return a&&b&&!c&&!a.isCued()}; IY=function(a){var b="3"===a.app.U().controlsType&&!a.MJ&&JY(a)&&!a.app.WA||!1;a.Dc.controls=b;a.Dc.tabIndex=b?0:-1;b?a.Dc.removeEventListener("focus",a.mR):a.Dc.addEventListener("focus",a.mR)}; F6a=function(a){var b=a.Th(),c=1,d=!1,e=D6a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=pqa(),m=g.EI(f.experiments,"player_underlay_min_player_width");m=h&&a.bS&&a.getPlayerSize().width>m;if(JY(a)){var n=C6a(a);var p=isNaN(n)||g.VC||KY&&g.zC||m;UC&&!g.Pc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Fs(p,0,b.width,b.height)):p=new g.Fs(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Fs((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.zC&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.v1)a.Dc.style.display="";a.pQ=!0}else{p=-b.height;UC?p*=window.devicePixelRatio:g.UR&&(p-=window.screen.height);p=new g.Fs(0,p,b.width,b.height);if(l||a.v1)a.Dc.style.display="none";a.pQ=!1}Gs(a.nL,p)||(a.nL=p,g.HR(f)?(a.Dc.style.setProperty("width", p.width+"px","important"),a.Dc.style.setProperty("height",p.height+"px","important")):g.Ts(a.Dc,p.getSize()),d=new g.Ie(p.left,p.top),g.Ps(a.Dc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Fs((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Gs(a.vB,b)||(a.vB=b,d=!0);g.Is(a.Dc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.kL&&(m&&(a.Dc.addEventListener(VXa,a.RK),a.Dc.addEventListener("transitioncancel",a.RK),a.Dc.classList.add(g.HY.VIDEO_CONTAINER_TRANSITIONING)),a.kL=m,a.app.Ua.publish("playerUnderlayVisibilityChange", a.kL?"transitioning":"hidden"));return d}; G6a=function(){this.csn=g.FE();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set}; H6a=function(a){if(a.csn!==g.FE())if("UNDEFINED_CSN"===a.csn)a.csn=g.FE();else{var b=g.FE(),c=g.EE();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.aB("combine_ve_grafts")?RO(PO(),e,c):g.JA(g.RE)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.VE(b,c)}}; I6a=function(a,b){this.Nc=a;this.policy=b;this.playbackRate=1}; J6a=function(a,b){var c=Math.min(2.5,vR(a.Nc));a=LY(a);return b-c*a}; L6a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.cn)return Math.ceil(a.policy.cn*b);a.policy.El&&(d=Math.abs(d));d/=a.playbackRate;var f=1/wR(a.Nc);c=Math.max(.9*(d-3),vR(a.Nc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0e&&(a=e);return Infinity>a?a/1E3:a}; NY=function(a,b,c,d,e){this.ya=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Zd;this.D=null;this.C=0}; O6a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Ln(d)||c&&c.Pa===d?(b.G=!a.Ln(d),b.qa=!a.Ln(d)):(b.G=!0,b.qa=!0)}}; Q6a=function(a,b,c,d,e){var f=a.policy.Gb?e:void 0;if(!b.j.fg()){if(!(f=0===c||!!b.C.length&&b.C[0]instanceof OY))a:{if(b.C.length&&(f=b.C[0],f instanceof PY&&f.qh&&f.ji)){f=!0;break a}f=!1}f||a.policy.C||QY(b);return c}var h=RY(b,c);if(!isNaN(h))return h;if(a.ya.kQ(1E3*c))return c;e.eF||(b.Pk(),a.ya.CG(!0));return d&&(a=yK(d.Je(),c),!isNaN(a))?(SY(b,a+P6a,f),c):SY(b,c,f)}; T6a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Za||g.ig(function(){TY(a)}); else{if(a.isSeeking()&&a.j){var e=R6a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.ig(function(){a.ya.ma("seekreason",{reason:"behindMinSq",tgt:e});S6a(a,e)}); return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.Ry||!a.B;0<=RY(a.videoTrack,a.j)&&0<=RY(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.ig(function(){if(a.B||!a.policy.Za)TY(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.ja.seekCount?(a.seekCount++,a.ya.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.ya.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G= !1,a.audioTrack.G=!1,UY(a.ya,h+.1,{Hw:!0,wd:"chunkSelectorSynchronizeMedia",Lq:!0})))}}})}}; R6a=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Di(a.j);return(c.Ln(a.manifest.cf)||b.Pa===a.manifest.cf)&&da.N.length){var d=new Uint8Array(2*a.N.length);d.set(a.N);a.N=d}W6a(a,Math.ceil(b)-Math.ceil(a.Y));W6a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.K/1024)))}d=b-a.Y;var e=c-a.K;a.Ob=e;a.Sa=Math.max(a.Sa,e/(d+.01)*1E3);a.Y=b;a.K=c;a.Ca&&c>a.Ca&&V6a(a)}; W6a=function(a,b){for(;31>=5;a.N[a.bb++]=WY[b]}; X6a=function(a){return a.N?g.LN(a.N.subarray(0,a.bb)):""}; Y6a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; ZY=function(a,b){XY.call(this,a,b);this.zb=this.Kb=!1;this.Ea=this.ra=Infinity;this.La=NaN;this.Jb=!1;this.Za=NaN;this.Tb=0;this.Iz=b.Iz||1;this.OR=b.OR||this.Iz;this.al=b.al;this.Pa=b.Pa;this.eh=b.eh;Z6a(this);this.pS(this.j);this.Wa=(this.Za-this.j)/1E3}; $6a=function(a,b,c){a.Qq||(b=Math.max(b,.01),sR(a.Nc,b,c,b))}; a7a=function(a,b){return b?a.WJ()&&!a.policy.j?!0:2048<=b||a.policy.j&&a.G:!1}; b7a=function(a){return(a.D-a.j)/1E3}; Z6a=function(a){a.La=a.j+1E3*a.snapshot.delay;a.Jb=!1}; e7a=function(a,b){if(a.al&&void 0!==a.Pa&&void 0!==a.eh){var c=Math,d=c.min,e=a.ra;var f=a.al;var h=a.j;if(c7a(f,a.Pa))f=b;else{var l=0;f.ej&&(l=.2);f=h+1E3*(f.Hj+l)}a.ra=d.call(c,e,f);c=Math;d=c.min;e=a.Ea;f=a.al;h=a.j;l=d7a(f,a.Pa,a.eh);2!==l&&(b=l?b:h+1E3*f.Hj,f.ej&&(b+=1E3*f.Hj));a.Ea=d.call(c,e,b);a.ra<=a.j?Z6a(a):(a.La=a.ra,a.Jb=!0)}}; f7a=function(a,b){if(b+1<=a.totalLength){var c=GN(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=GN(a,b++);else if(2===c)c=GN(a,b++),a=GN(a,b++),a=(c&63)+64*a;else if(3===c){c=GN(a,b++);var d=GN(a,b++);a=GN(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=GN(a,b++);d=GN(a,b++);var e=GN(a,b++);a=GN(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),NJa(a,c,4)?a=OJa(a).getUint32(c-a.C,!0):(d=GN(a,c+2)+256*GN(a,c+3),a=GN(a,c)+256*(GN(a,c+ 1)+256*d)),b+=5;return[a,b]}; $Y=function(a){this.Eb=a;this.j=new BN}; aZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.pB=this.NP=!1;this.Xf=null}; g7a=function(a){return g.as(a.info.ib,function(b){return 3===b.type})}; h7a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Eb=c;this.status=0;this.j=new BN;this.B=0;this.Ma=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(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.gB()}; this.xhr.onload=function(){return e.onDone()}; this.xhr.onerror=function(){return e.onError()}; this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.EC)();e.Eb.Pr(f,e.B)},function(){},d.body||null)}; i7a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; gVa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=bZ.us();d=new g.wN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;bZ.Wq("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})}; mVa=function(a,b){var c,d,e;return g.G(function(f){if(1==f.j){if(!b)return f.return(b);c=bZ.us();d=new g.wN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;bZ.Wq("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})}; j7a=function(a,b){var c=this;this.j=a;this.Eb=b;this.loaded=this.status=0;this.error="";a=jQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new BN;this.MB().then(function(){c.Eb.po()},function(d){c.error=""+d||"unknown_err"; c.Eb.po()})}; l7a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Eb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.Ma()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Eb.Eu(),k7a(e)); else e.onDone();else e.onError(Error("null_response"))}; this.Z=function(f){var h=(0,g.EC)();e.Ma()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),k7a(e),e.Eb.Pr(h,e.B)))}; this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; this.j=new BN;this.D=window.AbortController?new AbortController:void 0;this.start(a)}; k7a=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Bra)}; m7a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Eb=b;this.B=this.status=0;this.Ma=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(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.gB(f)}; a=sO(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",sO(function(f){d.xg(f)}),!1)}; cZ=function(a,b,c,d,e){if(vP(a.base))return new j7a(a,c);a=a.Le();return d?LOa()?new h7a(a,b,c,e):new l7a(a,b,c,e):new m7a(a,c,e)}; dZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Eb=a;this.policy=b;this.ge=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.Bx=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.xv(this.eda,this.policy.uj,this)}; n7a=function(a){a.resource.Z=(0,g.EC)();a=eZ(a);a.B=(0,g.EC)();a.started+=1}; o7a=function(a,b,c){a.timing.XQ((0,g.EC)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;lRa(eZ(a));if(null!=(b=a.Bx)&&(a=a.ge.base,!((0,g.EC)()(null==b?void 0:b.maxWidth)||(null==a?void 0:a.maxHeight)>(null==b?void 0:b.maxHeight)}; s7a=function(a,b){for(var c=g.u(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),0!==d.length){g.Vb(d,function(l,m){return m.maxFramerate-l.maxFramerate}); for(var e=[d[0]],f=0,h=1;hD)&&!0===lP(l,A,m)){n.push({videoCodec:t7a[iK[w]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}p=g.u(t);for(q=p.next();!q.done;q=p.next())for(q=g.u(q.value),t=q.next();!t.done;t=q.next())if(t=t.value,(r=d4a(t))&&r.audio&&(e.L("html5_onesie_51_audio")||!MDa(r)&&!mK(r))&&!0===lP(l,r,m)){h.push({audioCodec:u7a[iK[t]],numChannels:r.audio.numChannels}); break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var F;if(null==(F=a.hf)?0:F.C&&F.Vm){h=e.G;b&&b("ssap",{clientCapabilities:nP(h)});F=[];m=[];n=new Map;if((p=h.j)&&0q.maxBitrateBps&&(q.maxBitrateBps=v))),t=r+"_"+t.VE,r=n.get(t)||[],r.push(q),n.set(t,r));F=s7a(F,n);if(b){h="";if(n)for(p=g.u(n.keys()),q=p.next();!q.done;q=p.next())q=q.value,h+=q+"-"+q7a(n.get(q))+";";n=h;h=q7a(F);p="";if(m)for(q=g.u(m),t=q.next();!t.done;t=q.next())t=t.value,p+=t.audioCodec+"_"+t.numChannels+"_"+t.maxBitrateBps+"_"+t.spatialCapabilityBitmask+";";b("ssap",{vfcm:n,vfcam:h, afcam:p})}c.mediaCapabilities={videoFormatCapabilities:F,audioFormatCapabilities:m,hdrModeBitmask:3}}var H;if(null==(H=a.hf)?0:H.C){c.zo=l.zo;var L;c.jj=null==(L=a.hf)?void 0:L.jj}e.Sf&&(c.I7=e.Sf);c.aS=a.LD;if(e.L("html5_fix_time_since_last_seek_reporting")?void 0!==a.Rp:a.Rp)c.lea=(0,g.EC)()-a.Rp;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);hR||(c.w$=!0);b=1E3*vR(e.schedule);0a.mx&&(c.mx=a.mx);d=d.getPlaybackRate(); 1!==d&&(c.playbackRate=d);var R;(null==(R=a.hf)?0:R.Jb)&&a.kq&&(c.Sv=a.Sv,c.gy=a.gy,c.kq=a.kq);f.isProximaLatencyEligible&&(e.L("html5_sabr_enable_proxima_user_preference")&&1===MOa()&&(c.W9=1),e.L("html5_sabr_force_proxima")&&(c.V9=1),f=g.EI(e.experiments,"html5_sabr_force_min_bandwidth_estimate_bytes_per_sec"),0this.policy.IC?!1:!0:!1)b=null,this.policy.CC&& this.policy.Sj?b=[1]:w&&(b=[]),null!=b&&(this.policy.cF&&b.push(2),this.ge.set("defsel",b.join(",")));this.Bd=new dZ(this,this.policy,this.ge,this.info.resource,this.timing,this.logger,d,q);this.dG=l||null;this.pB=z7a(this);n7a(this.Bd);d=void 0;if(this.policy.AC||this.zl||this.policy.Ea)d={method:"POST"},l=(0,g.iZ)([120,0]),q={},this.policy.BB&&h&&(h=hZ(void 0,h),q.dC=h),this.policy.tv&&this.ji&&(q.videoPlaybackUstreamerConfig=this.ji),this.policy.Ea&&(h=this.info.D)&&Object.assign(q,h),0a.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Pa===b){d=a.j;f=d.Vg;var h=e.Au(f);a.ma("sdai",{onqevt:f.event,sq:b,gab:h});if(h)"predictStart"!==f.event?d.NE?oZ(a,4,"cue"):(a.G=b,a.K=c,a.ma("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.Y=Date.now(),oZ(a,2,"join"),e.DJ(d.Vg)):(a.policy.K?(a.C=Math.floor(c-f.j/1E3),a.ma("sdai",{onpred:c,est:a.C})):(a.D=b+ Math.max(Math.ceil(-f.j/5E3),1),a.ma("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),oZ(a,3,"predict"),e.DJ(d.Vg));else if(1===a.B){var l;(null==(l=a.N)?0:l.BO(c))?(Y7a(a.ya,c,c,b),oZ(a,4,"sk2had")):oZ(a,5,"nogab")}else"predictStart"===f.event&&(a.policy.K&&0c||c===a.G)&&!isNaN(a.K)?a.K:b}; $7a=function(a,b){if(a.j){var c=a.j.Vg.Ah-(b.startTime+a.Z-a.j.Vg.startSecs);0>=c||(c=new GP(a.j.Vg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Vg.context,a.j.Vg.identifier,"stop",a.j.Vg.j+1E3*b.duration),a.ma("cuepointdiscontinuity",{segNum:b.Pa}),nZ(a,c,b.Pa))}}; oZ=function(a,b,c){a.B!==b&&(a.ma("sdai",{setsst:b,old:a.B,r:c}),a.B=b)}; pZ=function(a,b,c,d){(void 0===d?0:d)?oZ(a,1,"sk2h"):0a.policy.jj,l=e<=a.policy.jj?lK(d):kK(d);if(!f||h||l)c[e]=d}return c}; xZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.EC)();c=g.Pt(c,function(r){if(r.sb>this.policy.sb)return!1;var t=this.manifest.j[r.id];return uZ(this.G).get(r.id)>d?!1:4=r.video.width&&480>=r.video.height}))}c.length||(c=a.K.videoInfos); var e=g.Pt(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Db(c,function(r){return r.id===a.G.j}); f?e=[f]:vZ(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.yH&&KY&&g.zC&&(!f||1080>b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)})); if(0c.KN.video.width?(g.Gb(e,b),b--):BZ(a,c.rN)*a.policy.Z>BZ(a,c.KN)&&(g.Gb(e,b-1),b--);var q=e[e.length-1];a.bb=!!a.C&&!!a.C.info&&a.C.info.qb!==q.qb;a.logger.debug(function(){return"Constraint: "+hP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+tK(q)}); a.D=e;a.Va.clear();c=!1;for(b=0;bd}; wZ=function(a){if(!a.B||!a.policy.D&&!a.B.info.lc){var b=a.K.j;a.B&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j)); a.B=a.manifest.j[b[0].id];if(1a.j.j:q8a(a,a.B))a.B=a.manifest.j[g.Bb(b).id]}}}; yZ=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Bb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+tK(a.nextVideo.info)}); else{for(var b=Math.min(a.Z,a.D.length-1),c=MY(a.Ca),d=BZ(a,a.B.info),e=c/a.policy.Y-d;0=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+tK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+hP(a.j)}); a.Z=b}}; e8a=function(a){var b=a.policy.Y,c=MY(a.Ca),d=c/b-BZ(a,a.B.info);b=g.Eb(a.D,function(e){return BZ(this,e)b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+tK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; f8a=function(a){if(a.gb.length){var b=a.gb,c=function(d,e){if("f"===d.info.qb||b.includes(qK(d.info,a.manifest.Zb)))return d;for(var f={},h=0;h=n+h.j?h=!0:p+h.j(0,g.EC)()-a.G&&(a.logger&&a.logger({dend:d.info.zd()}),c=RDa(c,e,e+.01))}d=[];for(var f=e=0;e=h){var p=0;if(a.Uc){var q=sY(a.Uc,1E3*m);q&&(p=q.bl/1E3)}q=Object.assign({},a.md[f]);var r=a.md[f].formatId;r=a.manifest.N.get(r.itag+";"+ (r.lmt||0)+";"+r.xtags);h=Math.max(m,h);var t=r.index.Di(h+a.j/1E3-p),v=r.index.getStartTime(t)+p,w=t+ +(Math.abs(v-h)>a.j/1E3),A=w+a.D;w=1E3*(r.index.getStartTime(w)+p);if(a.policy.Fk){var D=Math.abs(h-v)>a.j/1E3,F=r.index.qE(t)+p;m=v>=m&&F<=n;D&&m&&d.push({formatId:q.formatId,startTimeMs:1E3*v,durationMs:w-1E3*v,Nm:t,Si:t,Dx:1E3*v,Cx:w-1E3*v,bL:{Og:1E3*h,Gz:w-1E3*h,zs:1E3}})}a.policy.Fk||!a.policy.ov||f!==a.C||b?(q.Nm=A,q.startTimeMs=w):(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:1E3*v}), q.Nm=t+a.D,q.startTimeMs=1E3*v);q.Dx=q.startTimeMs;m=void 0;h=(null==(m=a.B)?void 0:m.info.duration)||11;f===a.C&&la.j/1E3);m=h+a.D;p=1E3*(r.index.qE(h)+p);q.Si=m;q.durationMs=p-q.startTimeMs;q.Cx=q.durationMs;q.Nm<=q.Si&&d.push(q)}na.j)return!1;if(x8a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.Cx=b.durationMs,b.Si=Math.max(b.Si,c.Si),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.Nm,h=b.Si;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Nm=c.Nm;b.Cx=c.durationMs;b.Si=c.Si;c.formatId=a;c.startTimeMs=e;c.Dx=e;c.durationMs=d-e;c.Cx=c.durationMs; c.Nm=f;c.Si=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.Cx=b.durationMs);return!1}; x8a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Zb||b.lmt===c.lmt}; B8a=function(a,b,c){if(a.logger&&a.policy.To){for(var d=[],e=0;e=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.j.totalLength)throw Error();return GN(a.j,a.offset++)}; U8a=function(a,b){b=void 0===b?!1:b;var c=T8a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=T8a(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+T8a(a),d*=128;return b?c:c-d}; V8a=function(a){try{var b=U8a(a,!0),c=U8a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}}; W8a=function(a){for(var b=new IZ(a),c=-1,d=0,e=0;!d||!e;){var f=V8a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.mm()}else if(186===h){if(2!==f)return;e=b.mm()}374648427===h?c=b.mm()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=FN(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new BN([b]);CN(d,a);return d}; Y8a=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.RQ("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Ea=NaN;this.qa=0;this.C=NaN;this.Z=this.Na=0;this.Wa=-1;this.La=this.G=this.D=this.Ga=null;this.Za=this.Va=NaN;this.N=this.ra=this.bb=this.gb=null;this.rb=!1;this.Sa=this.timestampOffset=0;this.qd={eY:function(){return d.B}}; if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Wa&&a.ma("atv",{ap:this.policy.Wa});this.N=new F8a(this.policy,e,function(h,l,m){JZ(a,new HZ(d.policy.D,2,{hG:new S8a(f,h,e.info,l,m)}))}); this.N.Z.promise.then(function(h){d.N=null;1===h?JZ(a,new HZ(d.policy.D,h)):d.ya.ma("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); h instanceof FZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.ma("offlinenwerr",{em:l}),X8a(d),JZ(a,new HZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.ma("dldbwerr",{em:l}),X8a(d),JZ(a,new HZ(d.policy.D,4,{NJ:!0})))})}}; Z8a=function(a){return a.B.length?a.B[0]:null}; f9a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Rb+a.G.B;if(0=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:wRa(e,f)))||$8a(a,"d")}else if(0=a.Ca&&0===a.Y){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8e&&(f=-1)}else{h=new IZ(h);for(m=l=!1;;){n=h.mm();var p=V8a(h),q=p.id;p=p.size;if(!(0f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.mm()+p);if(160===q){0>f&&(e=f=h.mm()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=c9a(a,a.Ca),d.G&&d9a(a,d),a9a(a,b,d),e9a(a,d),a.Ca=0):a.Y&&(d=c9a(a,0>a.Y?Infinity:a.Y),a.Y-=d.j.totalLength,e9a(a,d))}}a.j&&a.j.info.Ue&&(e9a(a,a.j),a.j=null)}; b9a=function(a,b){!b.info.j.zm()&&0===b.info.Rb&&(g.nK(b.info.j.info)||b.info.j.info.Me())&&eSa(b);if(1===b.info.type)try{d9a(a,b),g9a(a,b)}catch(e){g.IE(e);var c=rQ(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.DP(b);a.N&&K8a(a.N,b);if(c.fg()&&a.policy.C)a:{a=a.ya.manifest;b=b.info.clipId;c=pK(c.info,a.Zb);if(b){var d=BSa(a,c);if(a.La[d])break a;a.La[d]=b}a.Ea.push(c)}}; X8a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null}; h9a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; i9a=function(a){if(a.ra&&!a.policy.Gp){var b=a.ya;b.manifest.isManifestless&&OQ(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.gb;a.C=a.G?a.C-a.qa:NaN;KZ(a)}; c9a=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=YRa(c,b);a.j=c[1];return c[0]}; d9a=function(a,b){var c=CQ(b);if(LDa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new SP(c);UP(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;kK(d)&&!LDa(d)&&(d=CQ(b),(new SP(d)).Qn(),YP([408125543,374648427,174,224],21936,d));b.info.j.info.vg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.nK(d.info)?d.B=TQa(c):d.info.Me()&&(d.B=cRa(c))));b.info.j.info.Me()&& b.info.vg()&&(c=CQ(b),(new SP(c)).Qn(),YP([408125543,374648427,174,224],30320,c)&&YP([408125543,374648427,174,224],21432,c));if(a.policy.lG&&b.info.j.info.Me()){c=CQ(b);var e=new SP(c);if(UP(e,[408125543,374648427,174,29637])){d=XP(e,!0);e=e.start+e.pos;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=DP(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Ga&&!!a.Ga.K.D)if(b=c.info.vg())b=cSa(c),h=a.Ga,ZX?(l=1/b,b=LZ(a,b)>=LZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&j9a(c)&&(b=a.Ga,ZX?(l=cSa(c),h=1/l,l=LZ(a,l),b=LZ(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,SQa(CQ(c),b))}else{h=!1;a.D||(eSa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.rl,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.C&&(a.K.index.B=!f.C),f=c.info.j.info,d=CQ(c),g.nK(f)?YQa(d,1701671783):f.Me()&&YP([408125543],307544935,d)));a:if((f=EQ(c,a.policy.zb))&&dSa(c))l=k9a(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.Bj?a.C+f:NaN;else{if(a.policy.uv){if(d=m=a.ya.Lq(ZRa(c),1),0<=a.C&&6!==c.info.type){if(a.policy.Bj&&isNaN(a.Va)){g.JE(new g.eC("Missing duration while processing previous chunk", c.info.zd()));a.ya.isOffline()&&!a.policy.tj||l9a(a,c,d);$8a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.La?a.La.Pa:-1,t=a.Za,v=a.Va,w=a.policy.Xo&&n>a.policy.Xo,A=10Math.abs(a.C-d);if(1E-4=a.policy.Wo&&(a.Sa=0,a.ya.Go({resetForRewrites:"count"})), a.policy.Yo&&a.Z>a.policy.Yo&&a.ya.Go({resetForRewrites:"threshold"}))}a.La=c.info;a.Va=bSa(c);0<=c.C&&(a.Za=c.C);if(h&&a.D){h=m9a(a,!0);GRa(c.info,h);a.j&&GRa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.rl)||GRa(l,h);(c.info.Ue||a.j&&a.j.info.Ue)&&6!==c.info.type||(a.ra=h,b=a.ya,b.manifest.isManifestless&&n9a(b,h,null,!!a.K.info.video),a.policy.je||o9a(a))}}g9a(a,c);a.timestampOffset&&aSa(c,a.timestampOffset)}; e9a=function(a,b){if(b.info.Ue){a.gb=b.info;if(a.D){var c=a.D,d=m9a(a,!1),e=null;if(a.D.NE()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=NQa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.u(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.u(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new O8a(e,f,h,l,g.OQa(c),g.PQa(c))}a.ya.yR(a.K,d,e);a.ra||a.policy.je||o9a(a);a.ra=null}KZ(a)}a.N&&K8a(a.N,b);if(c=a.xo())if(c=DQ(c,b,a.policy.Gl)){a.B.pop();a.B.push(c);return}a.B.push(b)}; KZ=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Ea=NaN;a.qa=0;a.ra=null}; $8a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.La?a.La.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.La=null;a.Za=NaN;a.Va=NaN;a.bb=null;a.ya.ma("mdstm",b)}; g9a=function(a,b){if(a.K.info.le){if(b.info.j.info.Me()){var c=new SP(CQ(b));if(UP(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=XP(c,!0);c=16!==d?null:bRa(c,d)}else c=null;d="webm"}else b.info.N=M8a(CQ(b)),c=N8a(b.info.N),d="cenc";c&&c.length&&(c=new GZ(c,d),a.policy.jD&&g.nK(b.info.j.info)&&(d=$Qa(CQ(b)))&&(c.B=d),c.Me=b.info.j.info.Me(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.zx(c))}}; o9a=function(a){var b=a.D,c=LQa(b);c&&(c.startSecs+=a.Ea,a.ya.xR(a.K,c,b.rl,b.NE()))}; m9a=function(a,b){var c,d=a.D;if(c=LQa(d))c.startSecs+=a.Ea;return new yP(d.rl,a.Ea,b?d.Gj:a.qa,d.ingestionTime,"sq/"+d.rl,void 0,void 0,b,c)}; l9a=function(a,b,c){if(!$Ra(b,c))return b=rQ(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ea)&&(a.Ea=c);return!0}; k9a=function(a,b,c){var d=0;if(b.info.j.info.Me()&&!dSa(b))return 0;if(a.Ga&&!a.Ch()){var e=0;c&&g.nK(b.info.j.info)?e=c-a.C:b.info.j.info.Me()&&(e=a.Z);var f=b.info.Pa;c=EQ(b,a.policy.zb);var h=a.Ga;var l=h.Wa;h=h.Z;var m=.02l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.nK(b.info.j.info))SQa(CQ(b),d);else if(b.info.j.info.Me()&&(f=e-h,!g.nK(b.info.j.info)&&(b.info.j.info.Me(),d=new SP(CQ(b)),l=b.G?d:new SP(new DataView(b.info.j.j.buffer)),EQ(b,!0)))){var n= 1E3*f,p=cQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||dQ(d))if(WP(d,160))if(XP(d,!0),WP(d,155)){if(f=d.pos,m=XP(d,!0),d.pos=f,n=1E9*n/p,p=ZP(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=EQ(b,a.policy.zb);d=c-d}d&&b.info.j.info.Me()&&a.ya.ma("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; j9a=function(a){return a.info.j.zm()&&a.info.Pa===a.info.j.index.Cd()}; LZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()}; p9a=function(a,b){0>b||(a.B.forEach(function(c){aSa(c,b)}),a.timestampOffset=b)}; OY=function(a,b,c,d,e){aZ.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Vf=d;this.lastError=null;this.j=new g.xv(function(){f.isComplete()||(f.lastError="net.timeout",f.Gc(5))},this.policy.iD); this.xg=function(){f.Ma()||(f.Vf.Vc.has(f.formatId)?(f.isComplete()||f.j.start(),XX(f.Vf,f.formatId)&&f.ZA(2),f.Vf.Kg(f.formatId)&&(W4a(f.Vf,f.formatId)?f.Gc(4):(f.lastError="net.closed",f.Gc(5)))):(f.lastError="player.exception",f.Gc(5)))}; this.j.start();R4a(this.Vf,this.formatId,this.xg);g.ig(this.xg)}; q9a=function(a,b,c,d){var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.RQ("dash");this.C=[];this.ra=[];this.B=this.Sb=null;this.Ga=!1;this.Ea=this.La=0;this.K=-1;this.qa=!1;this.Ca=-1;this.Y=NaN;this.qd={jP:function(){return e.D}, qpb:function(){return e.C}, Mob:function(){return e.N}}; this.D=new Y8a(a,b,c);this.policy.C&&(this.N=new u8a(this.D,this.ya.getManifest(),this.policy,function(f){e.ya.ma("buftl",f)})); this.sb=c.info.sb;this.Z=c.qA();this.isManifestless=c.qA();this.G=this.Z}; MZ=function(a,b,c){c=void 0===c?!1:c;b&&ZX&&p9a(a.D,b.vP());if(!c){var d;null==(d=a.N)||C8a(d)}a.Sb=b;null!=(b=a.N)&&(b.Sb=a.Sb)}; NZ=function(a){var b=a.Sb&&a.Sb.mJ();if(a.policy.Iv){if(null==(a=a.N))a=void 0;else{var c;a=null==(c=a.B)?void 0:c.info}return a||null}return b}; r9a=function(a){for(var b={},c=0;cb&&c.B.pop();v9a(a);a.B&&b=b&&(e.B.pop(),e.C-=EQ(l,e.policy.zb),f=l.info)}f&&(e.G=0c?SY(a,d):a.B=a.j.Ls(b-1,!1).ib[0]}; VZ=function(a,b){var c;for(c=0;c=a.Ca:c}; WZ=function(a){var b;return QZ(a)||SZ(a,null==(b=a.D.xo())?void 0:b.info)}; z9a=function(a){var b=[],c=NZ(a);c&&b.push(c);b=g.Kb(b,a.D.Gn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.ib),f=e.next(),h={};!f.done;h={zG:void 0},f=e.next())h.zG=f.value,d.NP&&(b=g.Pt(b,function(l){return function(m){return!ERa(m,l.zG)}}(h))),(pQ(h.zG)||4===h.zG.type)&&b.push(h.zG)}a.B&&!vRa(a.B,g.Bb(b),a.B.j.zm())&&b.push(a.B); return b}; y9a=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:y9a(a,c?b:0)?a[b].startTime:NaN}; XZ=function(a){return!(!a.B||a.B.j===a.j)}; F9a=function(a){return XZ(a)&&a.j.fg()&&a.B.j.info.sbb&&d.Db)return!0;var c=a.Cd();return bb)return 1;c=a.Cd();return bd)return 0;a=fQ(c,pRa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2}; S9a=function(a,b,c){if(!(b.uy&&a.isComplete()&&a.canRetry()&&a.info.resource.Jj(b,c)))return 0;a=fQ(c,pRa(a.info.resource,!1,b));return a.B+b.uy*mRa(a,!0)>(0,g.EC)()?0:1}; $Z=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.I.call(this);var v=this;this.ya=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.UL=r;this.ji=t;this.qa=!1;this.nG="";this.al=null;this.eh=NaN;this.ra=!1;this.B=null;this.qh=this.Z=NaN;this.Wp=this.K=0;this.logger=new g.RQ("dash");this.qd={lQ:function(w,A){return v.lQ(w,A)}}; 0h&&(d=c.j.Hy(c,e-f.B)))),c=d):(0>d.Pa&&(c=rQ(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.G,a.ya.ma("nosq", c)),c=f.XC(d));if(a.policy.Ga)for(d=g.u(c.ib),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.zm()?(c=L6a(a.G,b.j.info.sb,c.j.info.sb,0),c=d.j.Hy(d,c)):c=d.j.XC(d);if(a.B){var l=c.ib[0].j.info.id;d=a.j;e=c.ib[0].Pa;d=0>e&&!isNaN(d.G)?d.G:e;e=Z7a(a.j,c.ib[0].C,d);var m=b===a.audioTrack?1:2;h=c.ib[0].j.info.qb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Vg.event;if(n.j.Pa===d){n="predictStart"===p?void 0:n.j.Vg.event;break a}if(n.j.Pa===d-1){n="start"===p||"continue"===p?p:void 0;break a}}n= void 0}if(a.policy.Ea&&0!==a.j.B){var q=a.B.BJ(e,d,l,m,h,n);0>d&&2===m&&pZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.Im)?void 0:r.kt)||"";var t;r=(null==(t=q.Im)?void 0:t.B1)||-1;a.ya.ma("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.Oz(e,d,l,m,h,n),0>d&&2===m&&pZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.nH&&b.isRequestPending(d-1)){a.ya.ma("sdai",{wt_daistate_on_sg:d-1});return}a.ya.ma("sdai",r);t&&(c.j=new g.sP(t));a.policy.j&&(t=c.resource.rJ("id")|| "",r=(null==(q=c.j)?void 0:q.get("id"))||"",t!==r&&a.ya.ma("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.ya.ma("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Jl&&-1!==c.ib[0].Pa&&c.ib[0].Pa=e.D?(e.ma("sdai",{haltrq:f+1,est:e.D}),d=!1):d=2!==e.B;if(!d||!qRa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!xR(a.schedule)||a.ya.KI))return!1;if(a.policy.D&&5<=vS)return g.yv(a.ya.rF),!1;if(a.manifest.isManifestless){if(0=a.policy.Vo||!a.policy.kD&&0=a.policy.Zo)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.fg()&&(b.B=g.Bb(d.j.IB(d)),d=b.B); if(!nQ(d)&&!d.j.Ks(d))return!1;f=a.manifest.Zd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Cd();var h=c.j.index.Cd();f=Math.min(f,h);if(0=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&4===d.type||nQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!SZ(c,c.B)&&c.B.DX9a(a,b)?(X9a(a,b),!1):(a=b.Sb)&&a.isLocked()?!1:!0}; X9a=function(a,b){var c=a.j;c=c.j?c.j.Vg:null;if(a.policy.Ga&&c)return c.startSecs+c.Ah+15;b=a_(a.ya,b);0f){if(a.policy.j){var n=e.timing.Eq();n.rst=e.state;n.strm=e.xhr.eC();n.cncl=e.xhr&&e.Bd.D?1:0;a.ya.ma("rqs",n)}e.b1&&a.ya.ma("sbwe3",{},!0)}if(!a.Ma()&&2<=e.state){T7a(a.timing,e,h);var p=a.ya;a.qh&&e.kI&&p&&(a.qh=NaN,a.ya.SS(e.kI),a.ya.eO(),a.ya.ma("cabrUtcSeek",{mediaTimeSeconds:e.kI}));e.NB&&(0=a.policy.xv&&a.B&&b.info.Lp()&&"net.badstatus"===d&&a.B.QD(f,e))){e=(c.info.video&&1=b&&d.video.j<=c})}; f$a=function(a){var b=null;if(b=a.hf.qv?b8a(a.j,a.Ca):g.Db(a.Z,function(c){var d;return!(null==(d=c.lc)||!d.isDefault)}))a.D=[b]}; n$a=function(a,b){return a.map(function(c){return qK(c,b)})}; o$a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=uZ(a.j);b=g.Pt(a.videoInfos,function(d){return d.sb>a.hf.sb?!1:!c.has(d.id)}); a8a(a.j)&&(b=g.Pt(b,function(d){return 854>=d.video.width&&480>=d.video.height})); return b}; p$a=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.sT(e),h=w7a({Da:e.U(),ea:a.ea,LD:a.LD,hf:a.hf,Rp:a.Rp,mx:a.mx,Sv:a.Sv,gy:a.gy,kq:a.kq,isPrefetch:a.isPrefetch,xG:a.xG,AG:a.AG,qz:a.qz,sabrLicenseConstraint:e.sabrLicenseConstraint,TA:a.TA,LA:a.LA},c),l=hZ(e,a.rB,a.nextRequestPolicy,a.Xj,a.gS,a.fda),m=a.JG,n=a.KG;if(void 0===n&&void 0===m){var p;n=d.Zb;n=(m=null==(p=a.PN)?void 0:p.video)?[pK(m.info,n)]:[];var q;p=d.Zb;m=(m=null==(q=a.PN)?void 0:q.audio)?[pK(m.info,p)]:[]}if(e.ji)var r= e.ji;e={Ts:h,uo:a.uo,JG:m,KG:n,videoPlaybackUstreamerConfig:r,dC:l};a.Im&&(e.Im=a.Im);if(f&&b){f=new Map;var t=g.u(d.Ea);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.La[BSa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.u(a.md);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=null==(q=b)?void 0:sY(q,l),q=r.clipId,r=r.bl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,md:[],Kw:n})), 0!==r&&(h.startTimeMs=l-r),d.get(q).md.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:(null==(q=h.formatId)?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:wY(b)}));e.aH=[];d=g.u(d.entries());for(f=d.next();!f.done;f=d.next())f=g.u(f.value),f.next(),f=f.next().value,e.aH.push(f);if(a.md.length&&!e.aH.length){if(c){e="";a=g.u(a.md);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+((null==(f=d.formatId)?void 0:f.itag)||"")+"_"+((null==(t=d.formatId)? void 0:t.lmt)||0)+"_"+((null==(h=d.formatId)?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:wY(b)})}return}a.fK&&(e.fK=a.fK);a.cK&&(e.cK=a.cK)}else e.md=a.md,e.Kw=d.Ea,f&&0<(null==(t=a.md)?void 0:t.length)&&!b&&c&&c("ssap",{bldmistlm:"1"});return e}; f_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Eb=c;this.B=null;this.qd={Qpb:function(){var e;return null==(e=d.data)?void 0:e.isPrefetch}}}; q$a=function(a,b,c){if(a.Vt())return!0;a.data=b;a.j=p$a(b,c,function(d,e){var f;null==(f=a.Eb)||f.Dm(d,e)}); if(!a.j)return!1;a.B=g.mO(a.j,wPa);return!0}; I7a=function(a,b,c){void 0===a.Jj&&(a.Jj=a.resource.Jj(b,c));return a.Jj}; r$a=function(a){var b,c;return(null==(b=a.j)?void 0:null==(c=b.Ts)?void 0:c.aS)||0}; s$a=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;ea;a++)j_[a]=255>=a?9:7;y$a.length=32;y$a.fill(5);k_.length=286;k_.fill(0);for(a=261;285>a;a++)k_[a]=Math.floor((a-261)/4);l_[257]=3;for(a=258;285>a;a++){var b=l_[a-1];b+=1<a;a++)z$a[a]=3>=a?0:Math.floor((a-2)/2);for(a=m_[0]=1;30>a;a++)b=m_[a-1],b+=1<a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output}; E$a=function(a,b,c){b=C$a(b);c=C$a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,256a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(F$a(a,7);0>c;)c=b[n_(a,1)-c];return c>>4}; n_=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<>=b;a.j-=b;return c}; F$a=function(a,b){a.j-=b;a.register>>=b}; C$a=function(a){for(var b=[],c=g.u(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; I$a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.G(function(v){switch(v.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=DV.Co(b.Kp?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f); h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return v.return(h)}catch(w){g.IE(w)}if(!("DecompressionStream"in window))return DV.isActive()?v.return(DV.Co("gzj",function(){return g.G$a(new g.A$a(a))})):v.return(g.G$a(new g.A$a(a))); l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new BN([]);if(DV.isActive())return v.return(DV.Co("gzn",function(){var w,A,D;return g.G(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){w=F.B;A=w.value;if(D=w.done)return F.Ia(4);p.append(A);return F.Ia(1)}return F.return(EN(p))})})); case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ia(4);break}p.append(r);v.Ia(2);break;case 4:return v.return(EN(p))}})}; J$a=function(a){jZ.call(this,"onesie");this.hd=a;this.j={};this.D=!0;this.C=null;this.queue=new x$a(this);this.G={}}; K$a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.AY){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||i_(e)}}}; M$a=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.BR(b,a.D).then(function(f){var h=a.hd;h.Rd("oprr");h.playerResponse=f;h.HQ||(h.BG=!1);o_(h)},function(f){a.hd.pj(f)}); break;case 2:a.Rd("ormk");b=EN(b);var e;a.queue.decrypt(b,!L$a(a.hd),null==(e=a.hd.U())?void 0:e.Id);break;default:d=!0}a.hd.tm&&a.hd.ma("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null}; N$a=function(a){return new Promise(function(b){setTimeout(b,a)})}; O$a=function(a,b){var c=iR(b.W.experiments,"debug_bandaid_hostname");if(c)b=BX(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=oR(a.videoId);a=[];if(b)for(b=g.u(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}}; P$a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.G(function(f){if(1==f.j)return d=[],d.push(b.load()),0=a.policy.yd){if(a.C===a.policy.yd){var d={reason:"toomanyrequests"};d.limit=a.C;a.ya.handleError("player.exception",d);a.C+=1}return!1}}else a.Ea=c,a.C=0}b=!b&&!xR(a.Nc);if(a.ya.isSuspended&&(a.ya.KI||b)||a.qa&&(0,g.EC)()=c.C?(c.ma("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.ya.ma("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.j&& a.ya.ma("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.j&&a.ya.ma("sabrcrq",{noreadahead:1}),!0;if(a.policy.G&&a.ya.bF())return a.policy.j&&a.ya.ma("sabrcrq",{seekToHead:1}),!0;d=Math.min(1E3*a_(a.ya,a.audioTrack),a.B.targetAudioReadaheadMs);b=Math.min(1E3*a_(a.ya,a.videoTrack),a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=1E3*TZ(a.audioTrack,!0);var f=1E3*TZ(a.videoTrack,!0);var h=c>e;e=f>e;if((!h||!e)&&a.policy.j&&a.policy.Of){var l=a.ya.kc(); l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.ma("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.B)&&(d=a.ya,d.Qa&&d.Qa.j&&d.Qa.B&&d.Ib&&!PQ(d.manifest)?(b=d.getCurrentTime(),f=d.Qa.j.Je(),c=d.Qa.B.Je(),f=f?yK(f,b):b,b=c?yK(c,b):b,b=Math.min(f,b),isNaN(b)?d=!1:(d=tY(d.Ib),d=b>=d-.01)):d=!1);if(d)return!1;a.policy.j&&a.ya.ma("sabrcrq",{allow:1});return!0}; cab=function(a,b,c){var d={Nc:a.Nc,Iu:function(m,n){a.ea.rG(m,n)}, vp:a.policy.Nl,QI:a.policy.j},e=I7a(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,hab(a));c=fab(a,c);if((a.policy.B||a.policy.qa)&&a.policy.j&&c.Xj){for(var f=e="",h=g.u(c.Xj),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.ma("sabrbldrqs",{ctxts:e,misctxts:f})}q$a(b,c,a.ya.dg())||!a.policy.B&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new lZ(a.policy,b,a.manifest,a.G,a,d,a.ya.Wz(),a.policy.xf?a.ya.dg():void 0); mZ(a.timing);a.policy.j&&a.ya.ma("sabrcrq",{rn:d.rr(),probe:b.Vt()});return d}; kab=function(a,b){if(!b.Ma()&&!a.Ma()){if(a.policy.j&&b.isComplete()&&b instanceof lZ){var c=a.ya,d=c.ma;var e=Object.assign(b.Fd.Eq(),{rst:b.state,strm:b.xhr.eC(),d:X6a(b.Fd),cncl:b.xhr&&b.Bd.D?1:0});b.policy.Uo&&(e.rqb=b.K0);e=Object.assign(s$a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Vt())b.dispose();else{if(b.iZ())b instanceof lZ&&T7a(a.timing,b),hab(a),iab(a);else if(b.ym())b instanceof q_?a.j.pop():(c=1,b.canRetry()&&d$a(a.ya)&&(jab(a,b),c=0),a.ya.handleError(b.Yg(),b.er(),c));else{if(a.ya.isSuspended&& !b.isComplete())return;if(a.policy.K&&b.jZ()&&a.K&&(d=b.jY(),c=d.rl,e=d.IG,d=d.Lp,-1=e.length||l.Ma()||(l=l.j,l.array.sort(l.j))}b.api.ma("ssap",{tu:wY(b)});e=HV(b.api.yb());b.api.ma("ssap",{am:e?1:0})}else b.api.ma("ssap",{tnu:1});b=!0}else b.api.ma("ssap",{htsm:h?0:1}),b=!1}b?a.videoData.Wy=c.version||"":a.ya.ma("ssap",{v:c.version,tlnu:1})}; hab=function(a){a.Xj.clear();if(0=a.policy.Gv,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e=a.policy.Ak&&!a.C;if(!f&&!c&&uab(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.EC)()/1E3-(a.rz.Zg()||0)-a.N.j-a.policy.Kb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){s_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.zk;d=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.ma("ostmf",{ct:a.currentTime,a:b.j.info.Ch()}),!1;null!=(a=a.Ca)&&(a.Vc.get(c).uD=!0);return!0}; Aab=function(a){if(!a.manifest.Zb)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&v_(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&v_(a.ea)&&(b.Zd||b.isPremiere))return a.ma("ombpa",{}),!1;var c,d;if(a.policy.yA&&!!(null==(c=a.ra)?0:null==(d=c.AZ)?0:d.Gca)!==a.manifest.Zd)return a.ma("ombplmm",{}),!1;c=b.Kb||b.liveUtcStartSeconds||b.uj;if(a.manifest.Zd&&c)return a.ma("ombplst",{}),!1;if(a.manifest.Y)return a.ma("ombab",{}),!1;c=Date.now();if(PQ(a.manifest)&& !isNaN(a.Ga)&&c-a.Ga>1E3*a.policy.hD)return a.ma("ombttl",{}),!1;if(!(a=a.manifest.cf&&a.manifest.C||!a.policy.yC&&a.manifest.isPremiere||XS(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!(null==(e=b.playerResponse)||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0}; Bab=function(a,b){var c=b.j,d=a.manifest.Zb;if(Aab(a))if(a.Ca&&a.Ca.Vc.has(qK(c.info,d))){if(d=qK(c.info,d),zab(a,b)){var e=new sQ(a.Ca.Gn(d)),f=function(h){try{if(h.ym())a.handleError(h.Yg(),h.er()),VZ(b,h),tQ(h.info)&&b_(a.D,b,c,!0),a.lf();else if(b$a(a.D,h)){var l;null==(l=a.G)||X7a(l,h.info,a.N);a.lf()}}catch(m){h=YJ(m),a.handleError(h.errorCode,h.details,h.severity),a.Pk()}}; c.C=!0;HRa(e)&&(s9a(b,new OY(a.policy,d,e,a.Ca,f)),mZ(a.timing))}}else a.ma("ombfmt",{})}; w_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=c_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Di(b)||0;e.Ga!==b&&(e.La={},e.Ga=b,xZ(e,e.j));b=!e.j.isLocked()&&-1b.j&&"b"===b.reason;d||e||c?(a.ea.Go({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Li||(a.C.j.B=!1)):(a.policy.Li&&(a.C.j.B=!1),y_(a))}}else if(!i8a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); c=a.j.j;Iab(a,k8a(a.j,b));w_(a);d=b.isLocked()&&"m"===b.reason&&a.j.ra;e=a.policy.rh&&"l"===b.reason&&XZ(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.bb&&!EK();d||e||c||f?a.ea.Go({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):y_(a)}}; Kab=function(a,b,c){if((!a.Qa||HK(a.Qa)&&!a.policy.Ll)&&!a.B.isSeeking()&&(yV(a.policy)||XZ(b)&&b.j.fg()&&a.j.qa)){var d=a.currentTime+M6a(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); C9a(b,d)}}; Iab=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+tK(b.video.info)}),Lab(a.ea,new rZ(b.video,b.reason))); if(a.j.Wa){var c=AZ(a.j,"a");a.ea.yx(new rZ(c.audio,c.reason))}}; $9a=function(a){a=a.ea;a=a.videoData.videoId?a.videoData.Pea:void 0;if(a)return oR(a)||void 0}; y_=function(a){g.yv(a.zb)}; Mab=function(a,b){var c=(0,g.EC)()-b,d=1E3*TZ(a.audioTrack,!0),e=1E3*TZ(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c}); if(a.policy.j&&(a.ma("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),zV(a.policy))){var f=MY(a.Y);a.ma("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:N6a(a.Y,a.Np,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Np,ps:(a.policy.oD||"").toString(),rn:(a.policy.lD||"").toString()})}}; Nab=function(a){if(a.policy.B&&YZ(a.videoTrack)&&YZ(a.audioTrack))return"ssap";if(L9a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(WZ(a.audioTrack)||WZ(a.videoTrack)&&"f"!==a.videoTrack.j.info.qb)return"";if(a.B.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.sj;zV(b.policy)&&(e=N6a(b,!1,MY(b)));b=e;c=TZ(d,!0)>=b&&TZ(c,!0)>=b}else c.C.length||d.C.length?(e=c.j.info.sb+d.j.info.sb,e=10*(1-MY(b)/e),b=Math.max(e, b.policy.sj),c=TZ(d,!0)>=b&&TZ(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0a.currentTime;a.policy.Xm||(c=c||360H9a(f.qa))return a.B.isSeeking()&&y_(a),!1;if(!t_(a,b,c,d.info))return!1;if(a.manifest.B&&0===d.info.Rb){if(e=Pab(b,c,d))f=NZ(b),a.ma("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa});f=g.nK(d.info.j.info);a.policy.qc&& f&&!e&&fSa(d)}e=a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Rb||f&&!e)&&Qab(a,c,d))return!0;if(e)return!1;e=a_(a,b);if(d.info.C>a.currentTime+e)return a.policy.C&&!a.La&&(a.La=(0,g.EC)()),!1;a.La&&(a.La=0);var h;a.policy.Bc&&c===(null==(h=a.Qa)?void 0:h.j)&&a.Wa&&(0===c.CJ()?(a.Wa=!1,a.policy.Bc=!1):a.bb=c.CJ());if(!Rab(a,c,d))return!1;b.Lu(d);n8a(a.j,d.info);a.logger.debug(function(){return"Appended "+d.info.zd()+", buffered: "+vK(c.Je())}); return!0}; Rab=function(a,b,c){var d=a.policy.La?(0,g.EC)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=Uab(a,c,f)||f);var h=EN(f);f=a.policy.La?(0,g.EC)():0;e=Vab(a,b,h,c.info,e);a.policy.La&&(!c.info.Rb||c.info.Ue||10>c.info.C)&&(b=b.kc({as:c.info.zd(),pdur:Math.round(f-d),adur:Math.round((0,g.EC)()-f)}),b.omt=(a.getCurrentTime()+a.Kc()).toFixed(3),b.to=a.Kc(),a.ma("sba",b));if("s"===e)return a.Na&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Na=!1,a.rb=!1),a.gb=0,!0;if("i"===e||"x"===e)return Wab(a, "checked",e,c.info),!1;if("q"===e){if(!a.Na)return a.logger.debug("QuotaExceeded, retrying."),a.Na=!0,!1;if(!a.rb)return a.rb=!0,a.ea.seekTo(a.currentTime,{wd:"quotaExceeded",Lq:!0}),!1;c.info.vg()?(b=a.policy,b.Ca=Math.floor(.8*b.Ca),b.Qc=Math.floor(.8*b.Qc),b.ra=Math.floor(.8*b.ra)):(b=a.policy,b.bb=Math.floor(.8*b.bb),b.ra=Math.floor(.8*b.ra));yV(a.policy)?tZ(a.C.j,c.info.j,!1):zZ(a.j,c.info.j)}a.ea.Go({reattachOnAppend:e});return!1}; Uab=function(a,b,c){var d;if(d=a.policy.wv&&a.Qa&&!a.Qa.qa&&!a.ea.RI())b=b.info.j.info,d=b.Me()&&kK(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,bK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=W8a(c),a.policy.j&&a.ma("sp4k",{s:!!c}),c}; Wab=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",yV(a.policy)?!d.j.info.video||0a.gb?(a.gb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=rQ(d);var h;d.mrs=null==(h=a.Qa)?void 0:MK(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; n9a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=rK(f.j[p].info.mimeType)||f.j[p].info.vg();if(d===m)if(m=f.j[p].index,m.Ln(b.Pa)){if(!f.Sa){h=m;m=b;var n=h.Bn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.ZM(m),h=!0):h=!1}h&&(l=b.Pa)}else m.ZM(b),h=!0}if(0<=l){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;T6a(a.B,b,d,f);a.G.yR(b,c,d,e);b.Pa===a.manifest.cf&&f&&MQ(a.manifest)&&b.startTime>MQ(a.manifest)&&(a.manifest.Za=b.startTime+(isNaN(a.timestampOffset)? 0:a.timestampOffset),a.B.isSeeking()&&a.B.j=b&&yab(a,d.startTime,!1)}); return c&&c.startTimea.getCurrentTime())return c.start/1E3;return Infinity}; fbb=function(a){var b=NZ(a.videoTrack),c=NZ(a.audioTrack);return b&&!N9a(a.videoTrack)?b.startTime:c&&!N9a(a.audioTrack)?c.startTime:NaN}; Xab=function(a,b,c){a.policy.BH&&TS(a.ea.getVideoData())?(a.ea.aF()||Wab(a,"sepInit",b,c.info),gbb(a.ea,"sie")):Wab(a,"sepInit",b,c.info)}; d$a=function(a){return a.Sa=a.length))for(var b=(0,g.iZ)([60,0,75,0,73,0,68,0,62,0]),c=28;cd;++d)b[d]=a[c+2*d];a=JN(b);a=Mg(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}}; C_=function(a,b,c){A_.call(this);var d=this;this.C=a;this.j=[];this.qd={Vob:function(){return d.j.length}}; this.D=c.fb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.xv(function(){d.publish("log_qoe",{wvagt:"timer",reqlen:d.j?d.j.length:-1});if(d.j){if(0d;d++)c[2*d]=''.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new F_(null,null,null,null,a)}; Pbb=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c}; Mbb=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=a&&(c=.75*a),b=.5*(a-c),c=new B_(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new C_(b,this,a);break a;default:c=null}if(this.G=c)g.N(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.oW,this),this.G.subscribe("log_qoe",this.hj,this);gTa(this.W.experiments);this.hj({cks:this.j.getInfo()})}; Rbb=function(a){var b=a.D.FN();b?b.then(sO(function(){Tbb(a)}),sO(function(c){if(!a.Ma()){g.IE(c); var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.hj({mdkrdy:1}),a.Y=!0); a.qa&&(b=a.qa.FN())}; Vbb=function(a,b,c){a.Sa=!0;c=new GZ(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));Ubb(a,c)}; Ubb=function(a,b){if(!a.Ma()){a.hj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.hj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ea&&!a.videoData.isLivePlayback)I_(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Me)){a.Ea=!0;c=b.cryptoPeriodIndex;var d=b.j;Q8a(b);b.Me||(d&&b.j!==d?a.publish("ctmp","cpsmm", {emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.oW(b)}}; Tbb=function(a){if(!a.Ma())if(a.W.L("html5_drm_set_server_cert")||$Q(a.j)){var b=a.D.setServerCertificate();b?b.then(sO(function(c){a.W.zc()&&a.publish("ctmp","ssc",{success:c})}),sO(function(c){a.publish("ctmp","ssce",{n:c.name, m:c.message})})).then(sO(function(){Wbb(a)})):Wbb(a)}else Wbb(a)}; Wbb=function(a){a.Ma()||(a.Y=!0,a.hj({onmdkrdy:1}),I_(a))}; Xbb=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")}; I_=function(a){if((a.Sa||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ga){for(;a.C.length;){var b=a.C[0],c=Xbb(a)?R8a(b):g.Kg(b.initData);if($Q(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||$Q(a.j)){a.C.shift();continue}else a.B.delete(c);Q8a(b);break}}a.C.length&&a.createSession(a.C[0])}}; Ybb=function(a){var b;if(b=g.pB()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.LN(b),a.publish("ctmp","drm",{metrics:b}))}; Zbb=function(a){g.I.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.kF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.EI(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.xv(function(){J_(b.ea)},g.EI(this.Da.experiments,"html5_delayed_retry_delay_ms")); g.N(this,this.j)}; ccb=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;TS(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&gbb(a.ea,"pe");if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.ea.rk.G&&d&&"22"===d.itag)return a.ea.rk.G=!0,a.Wd("qoe.restart",{reason:"fmt.unplayable.22"}),K_(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.C3)c.mimeType=f.type,a.ma("3pp",{url:f.url});c.ns="3pp";a.ea.Zf(b,1,"VIDEO_UNAVAILABLE",VJ((new WJ(b, c,1)).details));return!0}var h=a.kF+3E4<(0,g.EC)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Wd("auth",c),!0;h||$Ya(a.ea.pm())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:MDa(e)||mK(e))&&(DTa(a.Da.G,e.qb),c.acfallexp=e.qb,f=h=!0);!h&&0=a.Da.Kb)return!1;b.exiled=""+a.Da.Kb;a.Wd("qoe.start15s",b);a.ea.publish("playbackstalledatstart");return!0}; acb=function(a){return a.B?!0:"yt"===a.Da.ra?a.videoData.Ga?25>a.videoData.Tb:!a.videoData.Tb:!1}; bcb=function(a){if(!a.B){a.B=!0;var b=a.ea.getPlayerState();b=b.isPaused()||b.isSuspended();a.ea.Eo();b&&!rT(a.videoData)||a.ea.publish("signatureexpired")}}; dcb=function(a,b){if((a=a.ea.Se())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Yg();b.details.merr=c?c.toString():"0";b.details.mmsg=a.qf()}}; ecb=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)}; fcb=function(a,b){return a.Da.L("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1}; hcb=function(a,b){if(!fcb(a,b)&&!a.B)return!1;b.details.sts="19864";if(acb(a))return XJ(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new WJ("qoe.restart",b)),a.Wd(b.errorCode,b.details),bcb(a),!0;6048E5<(0,g.EC)()-a.Da.Rf&&gcb(a,"signature");return!1}; gcb=function(a,b){try{window.location.reload(),a.Wd("qoe.restart",{detail:"pr."+b})}catch(c){}}; icb=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Wd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});J_(a.ea,!0)}; jcb=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e}; kcb=function(a,b,c){this.W=a;this.WG=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.EI(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; mcb=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.PI(a.W)&&(c=c.compose(lcb(a,b)));return c}; ocb=function(a,b){var c,d=ncb(a,null==(c=b.j)?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return 1(0,g.EC)()-a.D?0:f||0a.Y||!e||g.PI(a.W))return!1;a.j=(60e?a.j+1:0;if(3!==a.j)return!1;rcb(a,b.videoData.B);a.ea.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},tcb()));return!0}; rcb=function(a,b){var c=a.W,d=b.qb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(49=f&&bTa("VideoPlayer",321298775,b,f.toFixed(0)),c=TQ(c,d,e,h),0=h){d=h;break}}return new bP(0,d,!1,"b")}; wcb=function(a,b){var c=a.ea.pm();return c.isInline()&&!b.jN?new bP(0,480,!1,"v"):c.isBackground()&&60e?(c&&(d=xcb(a,c,d)),new bP(0,d,!1,"e")):DS}; xcb=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.LM(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.TF(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; Ccb=function(a){var b;switch(null==(b=a.W.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Ecb=function(a,b){b?Dcb.test(a):(a=g.OA(a),Object.keys(a).includes("cpn"))}; Gcb=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(RA(a)&&SA()){if(h){var n;2!==(null==(n=Fcb.uaChPolyfill)?void 0:n.state.type)?h=null:(h=Fcb.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.FA("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= d:g.FA("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.FA("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!SR(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Ll&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&Dcb.test(a)&&(l.withCredentials=!0)}0h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b}; g.P_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.RQ("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.Fe="N";this.Z=this.xB=this.wB=this.Jb=this.G=0;this.Na=this.qc="";this.Ob=this.Sa=NaN;this.Kb=0;this.Bc=-1;this.Tb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Za=this.rb=this.Ga=this.isOffline=this.isBuffering=!1;this.Jd=[];this.qa=null;this.bb=this.C=this.Wa=this.N=!1;this.B=-1;this.Va=!1;this.Qc=new g.xv(this.f9,750,this);this.Y=this.adCpn=this.ra=this.contentCpn= "";this.adFormat=void 0;this.je=0;this.pd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.yd=new Set(["gd"]);this.gb=!1;this.Gb=NaN;this.Ea=0;this.zb=!1;this.Ca=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.qd={tL:function(e){c.tL(e)}, jpb:function(){return c.D}, Jg:function(){return c.contentCpn}, Rob:function(){return c.ra}, reportStats:function(){c.reportStats()}, Nob:function(){return c.j.cat}, rJ:function(e){return c.j[e]}, Hpb:function(){return c.Ca}}; var d=g.EI(this.provider.W.experiments,"html5_qoe_proto_mock_length");d&&!N_.length&&(N_=Jcb(d));g.N(this,this.Qc);try{navigator.getBattery().then(function(e){c.qa=e})}catch(e){}g.O_(this,0,"vps",["N"]); a.W.zc()&&(this.Ea=(0,g.EC)(),this.Gb=g.YA(function(){var e=(0,g.EC)(),f=e-c.Ea;500a.D.f_+100&&a.D){var d=a.D,e=d.isAd;c=1E3*c-d.f_;a.La=1E3*b-d.oda-c-d.Wca;c=(0,g.EC)()-c;b=a.La;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;gH(f,h);g.fH({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);eH("pbs",c,f)}else c=a.provider.ea.Ai(),c.K!==d.clientPlaybackNonce? (c.G=d.clientPlaybackNonce,c.B=b):d.Yj()||g.JE(new g.eC("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ma("gllat",{l:a.La.toFixed(),prev_ad:+e});delete a.D}}; Q_=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.LM(a.provider);var c=a.provider.ea.DE(),d=c.Cs-(a.Sa||0);0=a.playTimeSecs&&(a.provider.ea.HF(),a.j.qoealert=["1"],a.Za=!0)),"B"!==c||"PL"!==a.Fe&&"PB"!==a.Fe||(a.isBuffering=!0),a.G=b);"PL"===a.Fe&&("B"===c||"S"===c)||a.provider.W.zc()?Q_(a,b):(a.gb||"PL"!==c||(a.gb=!0,Ncb(a,b,a.provider.ea.DE())),Lcb(a,b));"PL"===c&&g.yv(a.Qc);var e=[c];"S"===c&&d&&e.push("ss."+d);g.O_(a, b,"vps",e);a.Fe=c;a.Jb=b;a.G=b;a.C=!0}}; R_=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c}; uY=function(a,b,c,d,e,f){var h=g.LM(a.provider);1!==c&&3!==c&&5!==c||g.O_(a,h,"vps",[a.Fe]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l}; Tcb=function(a,b){if(!a.bb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.bb=!0}}; Ucb=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a}; Wcb=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.Sp=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=T_(this.provider)}; U_=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Bb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?0===a.B.endTime&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=T_(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j}; Ycb=function(a){Xcb(a);a.K=g.YA(function(){a.update()},100); a.Sp=g.LM(a.provider);a.B=T_(a.provider)}; Xcb=function(a){g.$A(a.K);a.K=NaN}; Zcb=function(a,b,c){c-=a.Sp;return b===a.j&&.5a.j)&&2=a.provider.videoData.Gb;return!!b}; idb=function(a){a.provider.W.L("html5_remarketing_urls_cleanup")||(a.provider.videoData.remarketingUrl&&!a.Ga&&($_(a,a.provider.videoData.remarketingUrl),a.Ga=!0),a.provider.videoData.ppvRemarketingUrl&&!a.Ca&&($_(a,a.provider.videoData.ppvRemarketingUrl),a.Ca=!0));a.provider.videoData.youtubeRemarketingUrl&&!a.La&&($_(a,a.provider.videoData.youtubeRemarketingUrl),a.La=!0);a.provider.videoData.googleRemarketingUrl&&!a.ra&&($_(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0);a.Xu()}; pdb=function(a){if(!a.Ma()&&a.C){a.K="paused";var b=b0(a);b.isFinal=!0;b.send();a.dispose()}}; qdb=function(a,b){if(!a.Ma())if(g.TF(b.state,2)||g.TF(b.state,512)){if(a.K="paused",g.VF(b,2)||g.VF(b,512))g.VF(b,2)&&(a.j.previouslyEnded=!0),a.C&&(a0(a),b0(a).send(),a.G=NaN)}else if(g.TF(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?Z_(a):NaN;!isNaN(c)&&(0>UF(b,64)||0>UF(b,512))&&(a=odb(a,!1),a.G=c,a.send())}else a.K="paused"}; rdb=function(a,b,c){if(!a.qa){c||(c=Y_(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.qa=!0}}; $_=function(a,b){var c=a.provider.W;g.$R(a.provider.W,g.qT(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=Gcb(b,c,e,f,d);Hcb(b,d,{token:a.provider.videoData.G,vT:a.provider.videoData.Rm,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})}; sdb=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; c0=function(a,b,c){this.videoData=a;this.W=b;this.ea=c;this.j=void 0}; g.LM=function(a){return tdb(a)()}; tdb=function(a){if(!a.j){var b=g.ib(function(d){var e=(0,g.EC)();d&&631152E6>=e&&(a.ea.ma("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.ea.DR()}return a.j}; mdb=function(a){var b=a.ea.vr()||{};b.fs=a.ea.UE();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.inview=a.ea.tE();b.size=a.ea.gE();b.clipid=a.ea.Mz();var c;b.playerheight=(null==(c=a.ea.getPlayerSize())?void 0:c.height)||0;var d;b.playerwidth=(null==(d=a.ea.getPlayerSize())?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Fk&&(c.infringe= 1);(a.Sf?0:a.Sg)&&(c.splay=1);(d=aT(a))&&(c.live=d);a.mq&&(c.sautoplay=1);a.fl&&(c.autoplay=1);a.Vy&&(c.sdetail=a.Vy);a.La&&(c.partnerid=a.La);a.osid&&(c.osid=a.osid);a.bD&&(c.cc=g.JUa(a.bD));return Object.assign(b,c)}; Mcb=function(a){if(navigator.connection&&navigator.connection.type)return udb[navigator.connection.type]||udb.other;if(g.PI(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; T_=function(a){var b=new sdb,c;b.G=(null==(c=mdb(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.rb&&(b.B=1);b.C=a.videoData.oy;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.lc&&c.lc.id&&"und"!==c.lc.id&&(b.D=c.lc.id);b.connectionType=Mcb(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.Mz()||"-";b.j=a.videoData.KV||"-";return b}; g.d0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Fe=new g.QK;this.qd={spb:function(){return c.qoe}, Gpb:function(){return c.j}, cpb:function(){return c.B}}; this.provider.videoData.ue()&&!this.provider.videoData.Ml&&(this.j=new X_(this.provider),g.N(this,this.j),this.qoe=new g.P_(this.provider,b),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Hg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Hg,this.j));if("canary"===a.W.playerCanaryState||"holdback"===a.W.playerCanaryState)this.B=new M_(this.provider),g.N(this,this.B)}; vdb=function(a){return!!a.j&&!!a.qoe}; vY=function(a){a.B&&Acb(a.B);a.qoe&&Vcb(a.qoe)}; wdb=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.W.rh),c=b.next();!c.done;c=b.next())R_(a,c.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(b=g.u(a.provider.videoData.Wo),c=b.next();!c.done;c=b.next())R_(a,c.value);else a.provider.videoData.rh&&R_(a,a.provider.videoData.rh);a.provider.videoData.Zb()&&(b=a.provider.videoData.j,OS(a.provider.videoData)&&R_(a,"manifestless"),b&&NQ(b)&&R_(a,"live-segment-"+NQ(b).toFixed(1)));NS(a.provider.videoData)&&R_(a,"sabr");a.provider.videoData.gatewayExperimentGroup&& (b=a.provider.videoData.gatewayExperimentGroup,"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===b?b="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),R_(a,b));"yt"!==a.provider.W.ra&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!rT(a.provider.videoData)&&a.tL(!0);a.provider.W.zc()&&(b=c5a())&&a.ma("cblt",{m:b});XS(a.provider.videoData)&&(a.provider.ea.getProximaLatencyPreference()?R_(a,"proximaui"):R_(a,"proximaexp"))}}; $5a=function(a){if(a.provider.ea.dg()){if(a.D)return;a.D=!0}a.j&&jdb(a.j);if(a.B){a=a.B;var b=g.LM(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}}; Z5a=function(a,b){if(g.VF(b,1024)||g.VF(b,512)||g.VF(b,4)){if(a.B){var c=a.B;0<=c.B||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Hg){var d;null==(d=a.C.get(a.Hg))||qdb(d,b)}else a.j&&qdb(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.LM(d.provider),f=d.getPlayerState(c);Y5a(d,e,f,c.seekSource||void 0);f=c.Ig;g.TF(c,128)&&f&&(f.qL=f.qL||"",Rcb(d,e,f.errorCode,f.WI,f.qL));(g.TF(c,2)||g.TF(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(0<=d.B&& (d.j.user_intent=[d.B.toString()]),d.N=!0);Pcb(d)}a.B&&(d=a.B,Bcb(d),d.playerState=b.state,0<=d.B&&g.VF(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.dg()&&(a.Fe=b.state)}; xdb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Hg){var b;null!=(b=a.C.get(a.Hg))&&U_(b.j)}else a.j&&U_(a.j.j)}; ydb=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){"PL"===b.Fe&&(b.Fe="N");var c=g.LM(b.provider);g.O_(b,c,"vps",[b.Fe]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.zc()&&b.ma("finalized",{});b.Ga=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())pdb(c.value);else a.j&&pdb(a.j);a.dispose()}; zdb=function(a,b){a.j&&rdb(a.j,b)}; Adb=function(a){if(!a.j)return null;var b=Y_(a.j,"atr");return function(c){a.j&&rdb(a.j,c,b)}}; Bdb=function(a,b,c,d){c.adFormat=c.yd;var e=b.ea;b=new X_(new c0(c,b.W,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Xg:function(){return e.Xg()}, dg:function(){return e.dg()}, DE:function(){return e.DE()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, HE:function(){return e.HE()}, getVisibilityState:function(){return e.getVisibilityState()}, Ai:function(){return e.Ai()}, vr:function(){return e.vr()}, getVolume:function(){return e.getVolume()}, isMuted:function(){return e.isMuted()}, UE:function(){return e.UE()}, Mz:function(){return e.Mz()}, tE:function(){return e.tE()}, gE:function(){return e.gE()}, getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, DR:function(){e.DR()}, HF:function(){e.HF()}, ma:function(f,h){e.ma(f,h)}})); b.B=d;g.N(a,b);return b}; Cdb=function(){this.Rv=0;this.C=this.Uu=this.Cs=this.B=NaN;this.j={};this.bandwidthEstimate=NaN}; e0=function(a,b,c){g.I.call(this);var d=this;this.W=a;this.ea=b;this.B=c;this.j=new Map;this.Hg="";this.qd={En:function(){return Array.from(d.j.keys())}}}; a6a=function(a,b){a.j.has(b)&&(ydb(a.j.get(b)),a.j.delete(b))}; Ddb=function(){this.j=g.bCa;this.array=[]}; Fdb=function(a,b,c){var d=[];for(b=Edb(a,b);bc)break}return d}; Gdb=function(a,b){var c=[];a=g.u(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; Hdb=function(a){return a.array.slice(Edb(a,0x7ffffffffffff),a.array.length)}; Edb=function(a,b){a=Tb(a.array,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; Idb=function(a,b){var c=NaN;a=g.u(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.startb&&a.D.start()))}; Mdb=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Y(g.kJ(d.namespace),d):a.Y(g.lJ(d.namespace),d)}}; Ndb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.PI(a)&&(this.C=.01)}; g0=function(a,b){return b>a.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1}; Odb=function(a,b){this.videoData=a;this.j=b}; Pdb=function(a,b,c){return b.gI(c).then(function(){return iB(new Odb(b,b.C))},function(d){d instanceof Error&&g.JE(d); var e=$J('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=bK('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.yTa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Dw(),d:!!b.Qc,drm:b.Ui(),f18:0<=b.Qf.indexOf("itag=18"),c18:e};b.j&&(b.Ui()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=bK('video/mp4; codecs="avc1.42001E"'), e.cVP9=bK('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new WJ(d,e,h)})}; Qdb=function(a){this.G=a;this.C=this.B=0;this.D=new $U(50)}; i0=function(a,b,c){g.aF.call(this);this.videoData=a;this.experiments=b;this.Z=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new Rdb;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.zb?c.B=3:g.fT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.EI(b,"html5_liveness_drift_proxima_override");if(XS(a)&&d){c.j=d;var e;(null==(e=a.j)?0:uSa(e))&&c.j--}if(g.nB("trident/")||g.nB("edge/"))c.C=Math.max(c.C,g.EI(b,"html5_platform_minimum_readahead_seconds")||3);g.EI(b,"html5_minimum_readahead_seconds")&& (c.C=g.EI(b,"html5_minimum_readahead_seconds"));g.EI(b,"html5_maximum_readahead_seconds")&&(c.K=g.EI(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.EI(b,"html5_liveness_drift_chunk_override"))c.j=b;WS(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.N=1!==this.policy.B;this.j=h0(this,Sdb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; Tdb=function(a,b){if(b)return b=a.videoData,b=Sdb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),h0(a,b);if(a.B.length){if(1=c-a}; Vdb=function(a,b,c){b=k0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.N=2===a.policy.B||3===a.policy.B&&a.C}; Wdb=function(a,b){b=k0(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b}; Sdb=function(a,b,c){c.zb&&b--;WS(c)&&(b=1);if(XS(c)&&(a=g.EI(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;(null==(d=c.j)?0:uSa(d))&&b++}return b}; j0=function(a){return a.videoData.j?NQ(a.videoData.j)||5:5}; h0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/j0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/j0(a))),b)}; Rdb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1}; n0=function(a){g.I.call(this);this.ea=a;this.W=this.ea.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.xv(this.lf,1E3,this);this.rb=new l0({delayMs:g.EI(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ea=new l0({delayMs:g.EI(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.zb=m0(this,"html5_seek_set_cmt");this.Va=m0(this,"html5_seek_jiggle_cmt");this.bb=m0(this,"html5_seek_new_elem");this.Tb=m0(this,"html5_unreported_seek_reseek");this.Ca=m0(this,"html5_long_rebuffer_jiggle_cmt"); this.La=m0(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ga=new l0({delayMs:2E4});this.Wa=m0(this,"html5_seek_new_elem_shorts");this.gb=m0(this,"html5_seek_new_media_source_shorts_reuse");this.Za=m0(this,"html5_seek_new_media_element_shorts_reuse");this.Sa=m0(this,"html5_reseek_after_time_jump");this.Z=m0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=m0(this,"html5_gapless_slow_seek");this.Y=m0(this,"html5_gapless_slice_append_stuck");this.ra=m0(this,"html5_gapless_slow_start"); this.N=m0(this,"html5_ads_preroll_lock_timeout");this.Ob=m0(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new l0({delayMs:g.EI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Az:!this.W.L("html5_report_slow_ads_as_error")});this.Gb=new l0({delayMs:g.EI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Az:!this.W.L("html5_skip_slow_buffering_ad")});this.Kb=new l0({delayMs:g.EI(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Na=m0(this,"html5_slow_start_no_media_source"); this.B={};g.N(this,this.G)}; m0=function(a,b){var c=g.EI(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new l0({delayMs:c,Az:a})}; Xdb=function(a,b){a.j=b}; o0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Wd(e,b,h),b.Az||f()):(b.yL&&b.B&&!b.D?(c=(0,g.EC)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.yL,c=b.j&&c-b.j>b.nS||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.kc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.ma("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))}; l0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.nS?1E3:b.nS,d=void 0===b.yL?3E4:b.yL;b=void 0===b.Az?!1:b.Az;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.nS=c;this.yL=d;this.Az=b}; aeb=function(a){g.I.call(this);var b=this;this.ea=a;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new Ydb;this.ra=new n0(this.ea);this.K=this.B=this.ya=this.mediaElement=this.playbackData=null;this.j=NaN;this.D=0;this.La=NaN;this.C=null;this.Na=NaN;this.G=this.Y=null;this.qa=!1;this.Za=NaN;this.rb=0;this.N=!1;this.Ea=new g.xv(function(){Zdb(b,!1)},2E3); this.zb=new g.xv(function(){p0(b)}); this.Va=new g.xv(function(){b.qa=!0;$db(b,{})}); this.timestampOffset=0;this.Ca=!0;this.Sa=0;this.gb=NaN;this.Ga=new g.xv(function(){var c=b.W.Of;c.j+=1E4/36E5;c.j-c.C>1/6&&(RTa(c),c.C=c.j);b.Ga.start()},1E4); this.Wa=this.Jb=!1;this.Z=0;this.bb=!1;g.N(this,this.ra);g.N(this,this.Ea);g.N(this,this.Va);g.N(this,this.zb);g.N(this,this.Ga)}; ceb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Qdb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(OS(a.videoData)&&a.ya){var c=a.ya.uI.Zg()||0;break a}if(a.videoData.j){c=a.videoData.j.Ca;break a}}c=0}return c}),a.B=new i0(a.videoData,a.W.experiments,function(){return a.Ke(!0)})); beb(a)||(a.D=a.D||(g.sT(a.videoData)?0:a.videoData.startSeconds)||0)}; eeb=function(a,b){(a.ya=b)?deb(a,!0):q0(a)}; feb=function(a,b){g.yv(a.ra.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.yv(a.Ga):a.Ga.stop());if(a.mediaElement)if(8===b.bB.state&&mEa(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Sh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?wK(c,Math.max(b-3.5,0)):wK(c,b-3.5);0<=d&&b>c.end(d)-1.1&&d+1c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(a.gb-d)||(a.ea.ma("seekover",{b:vK(c,"_"),cmt:b}), a.gb=d,a.seekTo(d,{Hw:!0,wd:"seektimeline_postLiveDisc"})))}else(null==(c=b.state)?0:8===c.state)&&!a.Wa&&(0=e.B&&ce.D||3E3>g.kb()-e.K||(e.K=g.kb(),e.B.push(f),50=a.getCurrentTime()-a.Za,c=1E3<=a.rb,b||c||(b=a.ea.uc(),b.qoe&&(b=b.qoe,c=g.LM(b.provider), g.O_(b,c,"lh",[d?"1":"0"])),a.Jb=d,a.rb++,a.Za=a.getCurrentTime()))}; Zdb=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!k0(c,d)&&c.Fr()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=dMath.abs(b)))if(b=a.mediaElement.getCurrentTime()-a.j,Math.abs(b)<=a.Sa||a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b))a.C&&a.C.resolve(a.mediaElement.getCurrentTime()); else{if(a.videoData.eD)a.videoData.eD=!1;else if(!MS(a.videoData)&&a.j>=a.Ke()-.1){a.j=a.Ke();a.C.resolve(a.Ke());PX(a.ea);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.ra.j=c;a.Na=c;a.D=a.j;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}}; neb=function(a){if(!a.mediaElement||0===a.mediaElement.Kk()||a.mediaElement.hasError())return!1;var b=0a.Ke()||c< a.Dd())d.minSeekableTime=a.Dd(),d.maxSeekableTime=a.Ke(),d.cmt=a.getCurrentTime(),d.it=a.Ze(a.getCurrentTime()),d.ss=c,d.utc=qeb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Kb:0,a.ea.ma("startSecondsOutOfBounds",d),a.videoData.Zb()&&(c=meb(a,c,!1));a.seekTo(c,{wd:"seektimeline_startSeconds"});d[b]=c;a.ea.ma("startSeconds",d);a.Ca=!1}else a.videoData.Kb&&(d[b]=a.videoData.Kb+a.Kc(),a.ea.ma("startSeconds",d))}}; reb=function(a,b){a.ea.ma("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.j=b;a.D=b;keb(a).then(function(c){leb(a,c)},function(){q0(a)})}; geb=function(a){return a.mediaElement?PK(a.mediaElement):0}; Ydb=function(){}; s0=function(){this.j=this.started=!1}; xeb=function(a){function b(e){return c.Jl&&(!d.Vm||!d.Da.N)||"yt"!==c.ra&&(38===d.La&&"books"===c.playerStyle||30===d.La&&"docs"===c.playerStyle||33===d.La&&"google-live"===c.playerStyle)?seb(a,d,e):teb(a,d).then(function(){t0(a,d)},function(f){t0(a,d,!0); throw f;})} var c=a.U(),d=a.getVideoData();d.Ma();d.loading=!0;return ueb(a)?veb(a,d).then(function(){t0(a,d)},function(e){e=YJ(e); if(XJ(e.severity))return t0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(web=!0);a.handleError(e);return b("onesie")}):b("gvi")}; ueb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.ra)return!1;var c=b.Gk;if(!c||!c.j)return a.handleError(new WJ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.EC)()&&(a.ma("okexp","1"),(c=a.Wz())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:uP(d.location))&&!DX(b)&&c.j.delete(0)}if(web)return a.ma("ost3","1"),!1;d={};return 0Math.random())try{g.JE(new g.eC("b/152131571",btoa(f)))}catch(R){}return v.return(Promise.reject(new WJ(r,{backend:"gvi"},t)))}})}; Ceb=function(a,b){function c(A){return d(A.xhr)} function d(A){if(!a.Ma()){A=A?A.status:-1;var D=0,F=((0,g.EC)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";429===A?(H="auth",D=2):200r.j&&3!==r.provider.ea.getVisibilityState()&&Acb(r)}q.qoe&&(q=q.qoe,q.Va&&0>q.B&&q.provider.W.Pf&& Vcb(q),q.C&&Q_(q));p.ya&&u0(p);p.W.fp&&!p.videoData.backgroundable&&p.mediaElement&&!p.Vh()&&(p.isBackground()&&p.mediaElement.QH()?(p.ma("bgmobile",{suspend:1}),p.Eo(!0,!0)):p.isBackground()||v0(p)&&p.ma("bgmobile",{resume:1}))}; this.qd={Yp:function(q){p.Yp(q)}, Nqb:function(q){p.Ce=q}, lpb:function(){return p.HA}, Uz:function(){return p.IA}, Kob:function(){return p.HN}, Lob:function(){return p.IN}, jqb:function(){}, U:function(){return p.W}, Se:function(){return p.mediaElement}, lqb:function(q){p.SK(q)}}; this.logger.debug(function(){return"creating, type "+b}); this.yh=new g.f0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.kJ("endcr")||g.TF(p.playerState,32)||PX(p); p.W.zc()&&q===g.kJ("ad")&&p.ma("acre",{st:r.start,et:r.end,acpn:r.C,cpn:m.clientPlaybackNonce});e(q,r,p.playerType)}); g.N(this,this.yh);g.N(this,this.Zc);Heb(this,m);this.videoData.subscribe("dataupdated",this.nca,this);this.videoData.subscribe("dataloaded",this.aO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.EB,this);this.BI();O4a(this.Jf);this.visibility.subscribe("visibilitystatechange",this.Jf);this.HN=new g.xv(this.GL,g.EI(this.W.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.IN= new g.xv(this.GL,g.EI(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; KK=function(a){return a.L("html5_not_reset_media_source")&&!a.Ui()&&!a.videoData.isLivePlayback&&g.nT(a.videoData)&&!a.W.supportsGaplessShorts()}; Heb=function(a,b){if(2===a.playerType||a.W.hp)b.VT=!0;var c=NUa(b.yd,b.PA,a.W.D,a.W.N);c&&(b.adFormat=c);2===a.playerType&&(b.fl=!0);if(a.isFullscreen()||a.W.D)c=g.YB("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&r0(a,b.endSeconds)}; Jeb=function(a){if(a.videoData.Y){var b=a.kd.Wc();a.videoData.vy=a.videoData.vy||(null==b?void 0:b.XO());a.videoData.wy=a.videoData.wy||(null==b?void 0:b.aP())}if(zWa(a.videoData)||!MWa(a.videoData))b=a.videoData.errorDetail,a.Zf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.An||void 0);a.videoData.Rf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&Ieb(a);a.L("html5_enable_d6de4")&&a.GT()}; Keb=function(a){ydb(a.HA);g.vb(a.HA);for(var b=a.IA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())ydb(d.value);b.j.clear();g.vb(a.IA)}; Leb=function(a){return a.mediaElement&&a.mediaElement.Ev()?a.mediaElement.Hb():null}; x0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.ue())return!0;a.Zf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.OX=function(a,b){(b=void 0===b?!1:b)||g.sT(a.videoData)||vY(a.uc());a.Tt=b;!x0(a)||a.eq.Xt()?g.PI(a.W)&&a.videoData.isLivePlayback&&a.eq.Xt()&&!a.eq.j&&!a.Tt&&a.aO():(a.eq.start(),b=a.uc(),g.LM(b.provider),b.qoe&&Qcb(b.qoe),a.aO())}; Meb=function(a){var b=a.videoData;Feb(a).then(void 0,function(c){a.videoData!==b||b.Ma()||(c=YJ(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Zf(c.errorCode,2,unescape(a.videoData.errorReason),VJ(c.details),a.videoData.errorDetail,a.videoData.An||void 0):a.handleError(c))})}; p5a=function(a,b){a.Uc=b;a.ya&&abb(a.ya,new g.z_(b))}; Peb=function(a){if(!g.TF(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.cq=g.Lb(a.videoData.Ea),g.cT(a.videoData)){a.Mb.tick("bpd_s");y0(a).then(function(){a.Mb.tick("bpd_c");if(!a.Ma()){a.Tt&&(a.Fc(TK(TK(a.playerState,512),1)),v0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&r0(a,c.endSeconds);a.eq.j=!0;z0(a,"dataloaded");a.Sr.Xt()&&Neb(a);zcb(a.rk,a.Kf)}}); a.L("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Of.toFixed(3)},!0);var b=NWa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);Oeb(a)}else z0(a,"dataloaded")}; y0=function(a){A0(a);a.Kf=null;var b=Pdb(a.W,a.videoData,a.Vh());a.ZF=b;a.ZF.then(function(c){Qeb(a,c)},function(c){a.Ma()||(c=YJ(c),a.visibility.isBackground()?(B0(a,"vp_none_avail"),a.ZF=null,a.eq.reset()):(a.eq.j=!0,a.Zf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",VJ(c.details))))}); return b}; K_=function(a){a.logger.debug("Updating for format change");y0(a).then(function(){return v0(a)}); a.playerState.isOrWillBePlaying()&&a.playVideo()}; Qeb=function(a,b){if(!a.Ma()&&!b.videoData.Ma()){a.logger.debug("finished building playback data");a.Kf=b;ceb(a.Zc,a.Kf);if(a.videoData.isLivePlayback){var c=v6a(a.kd.pu,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ga);c=a.L("html5_onesie_live")&&c;0UTa(b.W.Of,"sticky-lifetime")?"auto":fP[YO()]:d=fP[YO()],d=g.dP("auto",d,!1,"s");if(eP(d)){d=lcb(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;kqa()&&!g.PI(b.W)&&kK(c.j.videoInfos[0])&& (f=Math.min(f,g.eK.large));h=g.EI(b.W.experiments,"html5_chipset_soft_cap");0h&&0!==h&&b.j===h)){var l;f=ncb(c,null==(l=e.j)?void 0:l.videoInfos);l=c.ea.getPlaybackRate();1n&&(n+=l.j);for(var p=0;pa.Qa.getDuration()&&a.Qa.vl(f)}else a.Qa.vl(e);Gab(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}}; Lab=function(a,b){Ueb(a,b.reason,b.j.info,b.token,b.videoId)}; J_=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.G(function(h){if(1==h.j){a.ya&&a.ya.Cw();a.ya&&a.ya.Ma()&&A0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Ui()&&null!=(d=a.videoData.j)){var l=d,m;for(m in l.j)l.j.hasOwnProperty(m)&&(l.j[m].j=null,l.j[m].C=!1)}a.Fc(TK(a.playerState,2048));a.publish("newelementrequired");return b?g.z(h,y0(a),2):h.Ia(2)}a.videoData.Zb()&&(null==(e=a.ya)?0:e.Ga)&&((f=a.isAtLiveHead())&&MS(a.videoData)?a.seekTo(Infinity,{wd:"videoPlayer_getNewElement"}): a.videoData.Zd&&a.ya&&(l=a.ya,l.manifest.Zb&&(l.manifest.Zd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{wd:"loader_resetSqless"}),l.videoTrack.Z=!0,l.audioTrack.Z=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):PQ(l.manifest)&&d_(l))));c&&a.seekTo(0);g.TF(a.playerState,8)&&a.playVideo();g.Aa(h)})}; F0=function(a,b){a.ma("hgte",{ne:+b});a.videoData.Y=!1;b&&J_(a);a.ya&&Dab(a.ya)}; J4a=function(a,b){a.ma("newelem",{r:b});J_(a)}; efb=function(a,b){a.Mb.D.cR();g.TF(a.playerState,32)||(a.Fc(TK(a.playerState,32,null==b?void 0:b.seekSource)),g.TF(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Sc()}; x5a=function(a,b){b=null==b?void 0:b.seekSource;g.TF(a.playerState,32)?(a.Fc(VK(a.playerState,16,32,b)),a.publish("endseeking",a)):g.TF(a.playerState,2)||a.Fc(TK(a.playerState,16,b));a.Mb.D.iR(a.videoData,a.playerState.isPaused())}; dZa=function(a){var b=0,c="";if(a.Uc){if(a.Uc.yn)return"D,";b=a.Uc.WO();c=a.Uc.Nz().substring(0,4)}else a.Ib&&(b=a.Ib.WO(),c=a.Ib.Nz().substring(0,4));return 0a.qZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&RSa(a.videoData.j))){var b=a.uc();if(b.qoe){b=b.qoe;var c=b.provider.ea.DE(),d=g.LM(b.provider);Ncb(b,d,c);c=c.C;isNaN(c)||g.O_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.NI(b.U())?!0:"TVHTML5"===g.gR(b.U())?"6"===b.Dl:!1):b=g.NI(a.W);b&&a.ma("rawlat",{l:cV(a.mT,"rawlivelatency").toFixed(3)});a.qZ=Date.now()}a.videoData.B&&oK(a.videoData.B)&&(b=Leb(a))&& b.videoHeight!==a.tQ&&(a.tQ=b.videoHeight,Ueb(a,"a",Web(a,a.videoData.gb)))}; Web=function(a,b){if("auto"===b.j.video.quality&&oK(b.getInfo())&&a.videoData.pd)for(var c=g.u(a.videoData.pd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.tQ&&"auto"!==d.j.video.quality)return d.getInfo();return b.getInfo()}; Geb=function(a){if(!MS(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=OS(a.videoData)?a.ya.uI.Zg()||0:a.videoData.j.Ca);return(0,g.EC)()/1E3-a.Ze()-b}; mfb=function(a){a.mediaElement&&a.mediaElement.Vh()&&(a.bK=(0,g.EC)());a.W.Qp?g.XA(function(){lfb(a)},0):lfb(a)}; lfb=function(a){var b;if(null==(b=a.Qa)||!b.xm()){if(a.mediaElement)try{a.fL=a.mediaElement.playVideo()}catch(d){B0(a,"err."+d)}if(a.fL){var c=a.fL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d}); if(!g.TF(a.playerState,4)&&!g.TF(a.playerState,256)&&a.fL===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message}); else{var e="promise";d&&d.name&&(e+=";m."+d.name);B0(a,e);a.yW=!0;a.videoData.Sf=!0}})}}}; B0=function(a,b){g.TF(a.playerState,128)||(a.Fc(VK(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.publish("onAutoplayBlocked"))}; v0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=bfb(a);var d;null==(d=a.ya)||d.resume()}else A0(a),a.videoData.gb&&(c=a.videoData.gb.YC());b=c;d=a.mediaElement.QH();c=!1;d&&null!==b&&b.resource===d.resource||(nfb(a,b),c=!0);g.TF(a.playerState,2)||(b=a.Zc,b.G||!(0=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d}; agb=function(a){var b,c=null==(b=g.HT(a))?void 0:b.ya;a.tb&&TS(a.getVideoData())&&c&&c.policy.Va&&(b=g.EI(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=1E3*Zfb(a)-b,a.L("html5_gapless_new_slr")?(a=a.pM,$fb(a.app,"gaplessshortslooprange"),b=new g.jJ(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Wc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; bgb=function(a){if(!(g.TF(a.xb.getPlayerState(),64)&&a.Ld().isLivePlayback&&5E3>a.Ab.startTimeMs)){if("repeatChapter"===a.Ab.type){var b,c=null==(b=oXa(a.yb()))?void 0:b.zi(),d;b=null==(d=a.getVideoData())?void 0:d.zk;c instanceof g.VV&&b&&(d=b[nW(b,a.Ab.startTimeMs)],c.uG(0,d.title));isNaN(Number(a.Ab.loopCount))?a.Ab.loopCount=0:a.Ab.loopCount++;1===a.Ab.loopCount&&a.Ua.jb("innertubeCommand",a.getVideoData().Xea)}c={wd:"application_loopRangeStart"};if("clips"===a.Ab.type||"shortsLoop"===a.Ab.type)c.seekSource= 58;a.xb.seekTo(.001*a.Ab.startTimeMs,c)}}; Cfb=function(a,b){var c=a.Ua.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}; Zfb=function(a,b){b=g.HT(a,b);if(!b)return 0;b=L0(a,b);return W0(a,MX(b),b)}; W0=function(a,b,c){if(a.Gf(c)){c=c.getVideoData();if(X0(a))c=b;else{a=a.Uc;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.bd===e.bd){b+=e.jc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.bd===e.bd)break;var f=e.jc/1E3;if(fd?e=!0:1d.length||(d[0]in Bgb&&(f.clientName=Bgb[d[0]]),d[1]in Cgb&&(f.platform=Cgb[d[1]]),f.applicationState=h,f.clientVersion=2=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{s7:new Vv(b,c),H9:new GP(b,c-b,a.context,a.identifier,a.event,a.j)}}; Lhb=function(){this.j=[]}; $Ea=function(a,b,c){var d=g.Sb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; G1=function(a,b,c){g.I.call(this);this.J=a;this.Aa=b;this.Oa=c;this.listeners=[];this.D=!1;this.eM=[];this.B=null;this.G=new F1(this,chb(b.get()));this.C=new Lhb;this.j=null}; Mhb=function(a,b){a.eM.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.w_(b)||c;a.D=c}; Ohb=function(a,b){tL(a.Oa.get(),{cuepointTrigger:{event:Nhb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.Ah,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})}; Nhb=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:return Ne(a,"Unexpected cuepoint event")}}; H1=function(a){this.J=a}; Phb=function(a,b){a.J.cueVideoByPlayerVars(b,2)}; I1=function(a){this.J=a}; J1=function(a){this.J=a}; Qhb=function(a){this.J=a}; Rhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)}); g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)}); g.N(this,l);var m=XI(function(){return new RM}); g.N(this,m);var n=XI(function(){return new OM(a)}); g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)}); g.N(this,p);var q=XI(function(){return new kN}); g.N(this,q);this.Cc=XI(function(){return new D1(b)}); g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)}); g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)}); g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)}); g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)}); g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)}); g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)}); g.N(this,this.Aa);var r=XI(function(){return new C1(d)}); g.N(this,r);var t=XI(function(){return new FI(f.Aa)}); g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,"SLOT_TYPE_ABOVE_FEED",f.Rj)}); g.N(this,v);this.Tf=XI(function(){return new I1(b)}); g.N(this,this.Tf);this.Xn=XI(function(){return new aJ}); g.N(this,this.Xn);this.Ra=XI(function(){return new w1(b,q,f.Aa)}); g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Af=XI(function(){return new G1(b,f.Aa,f.Oa)}); g.N(this,this.Af);this.Mc=XI(function(){return new J1(b)}); g.N(this,this.Mc);this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)}); g.N(this,this.Ha);this.df=XI(function(){return new bJ}); this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)}); g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)}); g.N(this,this.Oa);this.wk=new MM(KIa,K1,function(F,H,L,M){return zM(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra); g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra,this.Af);this.uh=XI(function(){return D}); this.wx=D;this.Rj=new JM(n,p,this.uh,this.Af,this.Ha,this.Aa,this.Oa,this.Mc);g.N(this,this.Rj);this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha,f.Mc)}); g.N(this,this.Mj);this.Xe=XI(function(){return new nJ}); g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.Wv=new XM(a);g.N(this,this.Wv);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.ax=new aN(a,this.Ra);g.N(this,this.ax);this.rf=new bN(a);g.N(this,this.rf);this.ze=new eN(a);g.N(this,this.ze);this.qk=new cN(a);g.N(this,this.qk);this.iy=new dN(a);g.N(this,this.iy);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM}); g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)}); g.N(this,this.xk);this.iW=XI(function(){return new ZCa(f.Cc,f.Oa,a,m,f.ub)}); g.N(this,this.iW);this.Lj=XI(function(){return new HJ(f.Td,n,h)}); g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)}); g.N(this,this.Uj);this.vk=XI(function(){return new zFa(a,f.ze,f.rf,f.Ra,f.Mc,f.Ha,f.Oa,q,f.Af,f.ub,f.df,f.ud,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,m,A)}); g.N(this,this.vk);this.XR=XI(function(){return new rDa(f.Ha,f.Oa,f.Aa,f.ub)}); g.N(this,this.XR);this.Pt=XI(function(){return new JFa(f.Cc,f.Ha,f.Oa,m,f.ub,f.Wv,f.iy,f.Lb,f.Aa,c)}); g.N(this,this.Pt);this.w2=XI(function(){return new aDa(f.Cc)}); g.N(this,this.w2);this.vN=new B1(a,this.Xn,h);g.N(this,this.vN);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Rj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_ABOVE_FEED",this.Xe],["SLOT_TYPE_FORECASTING",this.Xe], ["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Bf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Bf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Bf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Bf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ax],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ax],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.iy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Re],["SLOT_TYPE_PLAYBACK_TRACKING",this.Re],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Re]]),fu:new Map([["SLOT_TYPE_ABOVE_FEED", this.iW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_PLAYER_BYTES",this.vk],["SLOT_TYPE_PLAYBACK_TRACKING",this.XR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.XR],["SLOT_TYPE_IN_PLAYER",this.Pt],["SLOT_TYPE_PLAYER_UNDERLAY",this.w2]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:this.Xn.get(),Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}}; Shb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)}); g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)}); g.N(this,l);var m=XI(function(){return new RM}); g.N(this,m);var n=XI(function(){return new OM(a)}); g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)}); g.N(this,p);var q=XI(function(){return new kN}); g.N(this,q);this.Cc=XI(function(){return new D1(b)}); g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)}); g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)}); g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)}); g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)}); g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)}); g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)}); g.N(this,this.Aa);var r=XI(function(){return new C1(d)}); g.N(this,r);var t=XI(function(){return new FI(f.Aa)}); g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,f.Rj)}); g.N(this,v);this.Tf=XI(function(){return new I1(b)}); g.N(this,this.Tf);this.Xn=XI(function(){return new aJ}); g.N(this,this.Xn);this.Ra=XI(function(){return new w1(b,q,f.Aa)}); g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Af=XI(function(){return new G1(b,f.Aa,f.Oa)}); this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)}); g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)}); g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)}); g.N(this,this.Oa);this.df=XI(function(){return new bJ}); g.N(this,this.df);this.wk=new MM(KIa,K1,function(F,H,L,M){return zM(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra); g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra,this.Af);this.uh=XI(function(){return D}); this.wx=D;this.Rj=new JM(n,p,this.uh,this.Af,this.Ha,this.Aa,this.Oa);g.N(this,this.Rj);this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha)}); g.N(this,this.Mj);this.Xe=XI(function(){return new nJ}); g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.Wv=new XM(a);g.N(this,this.Wv);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.iy=new dN(a);g.N(this,this.iy);this.Mc=XI(function(){return new J1(b)}); g.N(this,this.Mc);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM}); g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)}); g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)}); g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)}); g.N(this,this.Uj);this.Pt=XI(function(){return new KFa(f.Cc,f.Ha,f.Oa,m,f.ub,f.Wv,f.iy,f.Lb,f.Aa,c)}); g.N(this,this.Pt);this.vk=XI(function(){return new wL(a,f.ze,f.rf,f.Oa,f.ub,f.df,f.ud,f.Ra,f.Ha,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,f.Mc,A)}); g.N(this,this.vk);this.vN=new B1(a,this.Xn,h);g.N(this,this.vN);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Rj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe], ["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Xb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Wv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.iy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_IN_PLAYER",this.Pt],["SLOT_TYPE_PLAYER_BYTES",this.vk]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:this.Xn.get(),Zn:this.Tg, Yk:m.get(),Lf:this.Ra.get()}}; Thb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)}); g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)}); g.N(this,l);var m=XI(function(){return new RM}); g.N(this,m);var n=XI(function(){return new OM(a)}); g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)}); g.N(this,p);var q=XI(function(){return new kN}); g.N(this,q);this.Cc=XI(function(){return new D1(b)}); g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)}); g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)}); g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)}); g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)}); g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)}); g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)}); g.N(this,this.Aa);var r=XI(function(){return new C1(d)}); g.N(this,r);var t=XI(function(){return new FI(f.Aa)}); g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,null)}); g.N(this,v);this.Tf=XI(function(){return new I1(b)}); g.N(this,this.Tf);this.Ra=XI(function(){return new w1(b,q,f.Aa)}); g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)}); g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)}); g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)}); g.N(this,this.Oa);this.df=XI(function(){return new bJ}); g.N(this,this.df);this.wk=new MM(KIa,K1,function(F,H,L,M){return zM(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra); g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra);this.uh=XI(function(){return D}); this.wx=D;this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha)}); g.N(this,this.Mj);this.Xe=XI(function(){return new nJ}); g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.Mc=XI(function(){return new J1(b)}); g.N(this,this.Mc);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM}); g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)}); g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)}); g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)}); g.N(this,this.Uj);this.X_=XI(function(){return new oDa(f.Cc,f.Ha,f.Oa,m,c,f.Aa)}); g.N(this,this.X_);this.vk=XI(function(){return new wL(a,f.ze,f.rf,f.Oa,f.ub,f.df,f.ud,f.Ra,f.Ha,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,f.Mc,A)}); g.N(this,this.vk);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Bf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_IN_PLAYER", this.X_],["SLOT_TYPE_PLAYER_BYTES",this.vk]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}}; Uhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)}); g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)}); g.N(this,l);var m=XI(function(){return new RM}); g.N(this,m);var n=XI(function(){return new OM(a)}); g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)}); g.N(this,p);var q=XI(function(){return new kN}); g.N(this,q);this.dn=XI(function(){return new Qhb(b)}); g.N(this,this.dn);this.Cc=XI(function(){return new D1(b)}); g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)}); g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)}); g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)}); g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)}); g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)}); g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)}); g.N(this,this.Aa);var r=XI(function(){return new C1(d)}); g.N(this,r);var t=XI(function(){return new FI(f.Aa)}); g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,null)}); g.N(this,v);this.Tf=XI(function(){return new I1(b)}); g.N(this,this.Tf);this.Ra=XI(function(){return new w1(b,q,f.Aa)}); g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)}); g.N(this,this.Ha);this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)}); g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)}); g.N(this,this.Oa);this.df=XI(function(){return new bJ}); g.N(this,this.df);this.wk=new MM(MIa,K1,function(F,H,L,M){return fJa(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra); g.N(this,this.wk);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra);this.uh=XI(function(){return D}); this.wx=D;this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha)}); g.N(this,this.Mj);this.Xe=XI(function(){return new nJ}); g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.Mc=XI(function(){return new J1(b)}); g.N(this,this.Mc);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM}); g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)}); g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)}); g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)}); g.N(this,this.Uj);this.vk=XI(function(){return new wL(a,f.ze,f.rf,f.Oa,f.ub,f.df,f.ud,f.Ra,f.Ha,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,f.Mc,A)}); g.N(this,this.vk);this.T2=XI(function(){return new MFa(f.Cc,f.Ha,f.Oa,m,f.dn,c,f.Ra)}); g.N(this,this.T2);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Bf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_IN_PLAYER",this.T2],["SLOT_TYPE_PLAYER_BYTES", this.vk]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}}; Vhb=function(a,b,c,d,e){g.I.call(this);var f=this,h=XI(function(){return new fN(f.Aa)}); g.N(this,h);var l=XI(function(){return new gN(h,f.Aa)}); g.N(this,l);var m=XI(function(){return new RM}); g.N(this,m);var n=XI(function(){return new OM(a)}); g.N(this,n);var p=XI(function(){return new hN(h,l,f.Aa)}); g.N(this,p);var q=XI(function(){return new kN}); g.N(this,q);this.dn=XI(function(){return new Qhb(b)}); g.N(this,this.dn);this.Cc=XI(function(){return new D1(b)}); g.N(this,this.Cc);this.Lb=XI(function(){return new YI(e)}); g.N(this,this.Lb);this.yc=XI(function(){return new h1(b)}); g.N(this,this.yc);this.Oc=XI(function(){return new j1(b)}); g.N(this,this.Oc);this.ud=XI(function(){return new H1(b)}); g.N(this,this.ud);this.Xc=XI(function(){return new k1(b)}); g.N(this,this.Xc);this.Aa=XI(function(){return new l1(b)}); g.N(this,this.Aa);var r=XI(function(){return new C1(d)}); g.N(this,r);var t=XI(function(){return new FI(f.Aa)}); g.N(this,t);var v=XI(function(){return new HM(h,p,l,f.Aa,t,null,f.Rj,3)}); g.N(this,v);this.Tf=XI(function(){return new I1(b)}); g.N(this,this.Tf);this.Ra=XI(function(){return new w1(b,q,f.Aa)}); g.N(this,this.Ra);var w=f1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context;this.Qb=w.Qb;this.Af=XI(function(){return new G1(b,f.Aa,f.Oa)}); g.N(this,this.Af);this.Mc=XI(function(){return new J1(b)}); g.N(this,this.Mc);this.Ha=XI(function(){return new x1(b,f.Ra,f.Aa)}); g.N(this,this.Ha);this.df=XI(function(){return new bJ}); this.ub=XI(function(){return new q1(f.Ha,b,f.Aa)}); g.N(this,this.ub);this.Oa=XI(function(){return new v1(b,m,f.ub,f.Ra,f.Qb,f.Aa)}); g.N(this,this.Oa);this.Pd=new NM(n,v,c,this.Aa,a,this.Ra,this.Ha,this.yc);g.N(this,this.Pd);var D=new g1(b,this.Pd,this.Ha,this.Ra,this.Af);this.uh=XI(function(){return D}); this.wx=D;this.wk=new MM(NIa,K1,function(F,H,L,M){return fJa(l.get(),F,H,L,M)},n,p,l,t,this.Aa,this.Ra); g.N(this,this.wk);this.Rj=new JM(n,p,this.uh,this.Af,this.Ha,this.Aa,this.Oa,this.Mc);g.N(this,this.Rj);this.Bg=new PM(n,p,this.Oc,this.uh,A);g.N(this,this.Bg);this.Td=new sM(this.Aa,n,p,v,this.Ra,this.Bg,c);g.N(this,this.Td);this.Mj=XI(function(){return new mJ(r,l,t,f.Aa,f.Oa,f.Ha,f.Mc)}); g.N(this,this.Mj);this.Xe=XI(function(){return new nJ}); g.N(this,this.Xe);this.Tg=new VM(a,this.Cc,this.Aa);g.N(this,this.Tg);this.Xb=new WM(a);g.N(this,this.Xb);this.wh=new ZM(a,this.uh,A);g.N(this,this.wh);this.Bf=new $M(a,this.Oc,this.Ha,this.Ra,A);g.N(this,this.Bf);this.ax=new aN(a,this.Ra);g.N(this,this.ax);this.rf=new bN(a);g.N(this,this.rf);this.qk=new cN(a);g.N(this,this.qk);this.ze=new eN(a);g.N(this,this.ze);this.Re=XI(function(){return new SM}); g.N(this,this.Re);this.xk=XI(function(){return new TM(f.Ha)}); g.N(this,this.xk);this.Lj=XI(function(){return new HJ(f.Td,n,h)}); g.N(this,this.Lj);this.Uj=XI(function(){return new JJ(f.Aa,f.Oa,f.rf,f.ub)}); g.N(this,this.Uj);this.vk=XI(function(){return new zFa(a,f.ze,f.rf,f.Ra,f.Mc,f.Ha,f.Oa,q,f.Af,f.ub,f.df,f.ud,f.Oc,f.yc,f.Xc,f.Lb,f.Tf,f.Aa,m,A)}); g.N(this,this.vk);this.Pt=XI(function(){return new NFa(f.Cc,f.Ha,f.Oa,m,f.dn,c,f.Aa,f.Ra)}); g.N(this,this.Pt);this.nh={mB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Rj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Pd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Bg]]),At:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Mj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),Qm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Tg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Xb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Xb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Xb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Xb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Xb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.wh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Bf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.ax],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.ax],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.rf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.wh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ze]]),Pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES", this.xk]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lj],["SLOT_TYPE_FORECASTING",this.Uj],["SLOT_TYPE_PLAYER_BYTES",this.vk],["SLOT_TYPE_IN_PLAYER",this.Pt]])};this.listeners=[m.get()];this.DA={Td:this.Td,Rk:this.Aa.get(),kb:this.Lb.get(),sB:this.Ha.get(),Pd:this.Pd,Gw:h.get(),mF:null,Zn:this.Tg,Yk:m.get(),Lf:this.Ra.get()}}; Xhb=function(a,b,c,d){g.I.call(this);var e=this;this.j=Whb(function(){return e.B},a,b,c,d); g.N(this,this.j);this.B=(new GBa(this.j)).C();g.N(this,this.B)}; L1=function(a){return a.j.DA}; Whb=function(a,b,c,d,e){try{var f=b.U();if(g.RR(f))var h=new Rhb(a,b,c,d,e);else if(g.TR(f))h=new Shb(a,b,c,d,e);else if(MR(f))h=new Thb(a,b,c,d,e);else if(g.jG(f))h=new Uhb(a,b,c,d,e);else if(g.HR(f))h=new Vhb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),RF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Opb:h.j.cver,Npb:h.j.ctheme,Mpb:h.j.cplayer,uqb:h.playerStyle}),new Hhb(a,b,c,d,e)}}; Yhb=function(a){EF.call(this,a)}; Zhb=function(a,b,c,d,e){JF.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Fa("ytp-ad-timed-pie-countdown");this.D=this.Fa("ytp-ad-timed-pie-countdown-container"); this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.G=this.Fa("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(10*Math.PI);this.hide()}; $hb=function(a,b,c,d,e,f){jF.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div", S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.eT=e;this.NL=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ea=this.Fa("ytp-ad-action-interstitial-instream-info");this.ra=this.Fa("ytp-ad-action-interstitial-image-container");this.Y=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-image");g.N(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Fa("ytp-ad-action-interstitial-headline-container"); this.G=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-headline");g.N(this,this.G);this.G.Ja(this.Wa);this.Va=this.Fa("ytp-ad-action-interstitial-description-container");this.C=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-description");g.N(this,this.C);this.C.Ja(this.Va);this.Za=this.Fa("ytp-ad-action-interstitial-background-container");this.Na=new BF(this.api,this.layoutId,this.interactionLoggingClientData, this.kb,"ytp-ad-action-interstitial-background",!0);g.N(this,this.Na);this.Na.Ja(this.Za);this.gb=this.Fa("ytp-ad-action-interstitial-action-button-container");this.slot=this.Fa("ytp-ad-action-interstitial-slot");this.zf=this.Fa("ytp-ad-action-interstitial-card");this.D=new SB;g.N(this,this.D);this.hide()}; aib=function(a){var b=g.xf("html5-video-player");b&&g.Jv(b,"ytp-ad-display-override",a)}; eib=function(a,b,c,d){jF.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.gb=this.Ea=this.D=this.Za=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Fa("ytp-ad-overlay-container");this.Na=new PF(a,45E3,6E3,.3,.4);g.N(this,this.Na);this.C=bib(this);g.N(this,this.C);this.C.Ja(a);this.B=cib(this);g.N(this,this.B);this.B.Ja(a);this.j=dib(this);g.N(this,this.j);this.j.Ja(a);this.hide()}; bib=function(a){var b=new g.iF({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[tF(fib)]}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){M1(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){M1(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.AM);b.hide();return b}; cib=function(a){var b=new g.iF({I:"div",Ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[tF(fib)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){M1(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){M1(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.AM);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.dca);b.hide();return b}; dib=function(a){var b=new g.iF({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[tF(fib)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){M1(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.AM);b.hide();return b}; gib=function(a,b){if(b){var c=g.V(b,oM)||null;if(null==c)g.IE(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.xf("video-ads ytp-ad-module")||null,null==b)g.IE(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ea=new g.iF({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(a,a.Ea),a.Ea.Ja(b),b=new HF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.Ea.element,!1),g.N(a,b),b.init(ZE("ad-info-hover-text-button"), c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.I$,a);b.subscribe("e",a.AR,a);a.T(a.G,"click",a.J$);var d=g.xf("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.V(null==(e=g.V(c.button,g.qM))?void 0:e.serviceEndpoint,$xa))a.Wa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.gb=b}else g.IE(Error("Ad info button container within overlay ad was not present."))}else g.JE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; iib=function(a,b){if(hib(a,N1)||a.api.isMinimized())return!1;var c=kF(b.title),d=kF(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",kF(b.title));a.C.updateValue("description",kF(b.description));a.C.updateValue("displayUrl",kF(b.displayUrl));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.C.show();a.Na.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++}); return!0}; jib=function(a,b){if(hib(a,N1)||a.api.isMinimized())return!1;var c=kF(b.title),d=kF(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",kF(b.title));a.B.updateValue("description",kF(b.description));a.B.updateValue("displayUrl",kF(b.displayUrl));a.B.updateValue("imageUrl",hxa(b.image));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.Za=b.imageNavigationEndpoint||null;a.B.show();a.Na.start();a.logVisibility(a.B.element,!0); a.T(a.B.element,"mouseover",function(){a.ra++}); return!0}; kib=function(a,b){if(a.api.isMinimized())return!1;var c=ixa(b.image),d=c;c.widthMath.random()&&RF("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; Vib=function(a){a=g.u(L1(a.j).Yk.aj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; BGa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=L1(a.j).Rk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Zb();c=Qib(b,c,f,L1(a.j).Gw);FGa(L1(a.j).Td,d,c.aL,c.nW,b,e)}; Qib=function(a,b,c,d){b={aL:[],nW:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.V(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,GM)?(h=g.V(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,GM),h=aJa(h,p),g.OE(f.sandwichedLinearAdRenderer.adVideoStart,GM,h)):g.V(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,GM)&& (m=g.V(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,GM),h=aJa(m,p),g.OE(f.linearAdSequenceRenderer.adStart,GM,h))}b.aL.push(e)}return b}; g.c2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=Ula(a);return b.parseFromString(g.qe(a),"application/xml")}throw Error("Your browser does not support loading xml documents");}; g.d2=function(a){g.I.call(this);this.callback=a;this.j=new Tv(0,0,.4,0,.2,1,1,1);this.delay=new g.wv(this.next,window,this);g.N(this,this.delay)}; g.Wib=function(a){var b=a.U();return b.yd&&!b.C&&g.BR(b)?a.Yc()?(a=a.Hn(),315<=Math.min(a.width,a.height)):!a.Lg():!1}; g.e2=function(a){g.W.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.cK(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.W({I:"h2",S:"ytp-related-title",xa:"{{title}}"});this.previous=new g.W({I:"button",Ka:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.nF()]});this.N=new g.d2(function(c){b.suggestions.element.scrollLeft=-c}); this.next=new g.W({I:"button",Ka:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.oF()]});g.N(this,this.D);this.K=a.U().D;g.N(this,this.title);this.title.Ja(this.element);this.suggestions=new g.W({I:"div",S:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.Ja(this.element);g.N(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.o4,this);g.N(this,this.N);Xib(this);g.N(this,this.next);this.next.Ja(this.element);this.next.listen("click", this.n4,this);this.D.T(this.api,"appresize",this.dc);this.D.T(this.api,"fullscreentoggled",this.xx);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.dc(this.api.ob().getPlayerSize());this.onVideoDataChange()}; Xib=function(a){for(var b={gA:0};16>b.gA;b={gA:b.gA},++b.gA){var c=new g.W({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", xa:"{{duration}}"}]}]});g.N(a,c);var d=c.Fa("ytp-suggestion-link");g.Is(d,"transitionDelay",b.gA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.gA;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Uk(),l={},g.wXa(a.api,l,"emb_rel_pause"),h=g.lo(h,l),g.mU(h,a.api,f)):g.lU(f,a.api,a.K,m||void 0)&&a.api.Qo(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b)); c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}}; Yib=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)}; g.f2=function(a){var b=a.api.Dh()?32:16;b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.Jv(a.element,"ytp-scroll-min",0<=b);g.Jv(a.element,"ytp-scroll-max",b<=c)}; $ib=function(a){for(var b=a.suggestionData.length,c=0;cb)for(;16>b;++b)c=a.C[b].Fa("ytp-suggestion-link"),g.Is(c,"display","none");g.f2(a)}; aaa=[];ma="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; g.ha=caa(this);oa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)} function c(f,h){this.j=f;ma(this,"description",{configurable:!0,writable:!0,value:h})} if(a)return a;c.prototype.toString=function(){return this.j}; var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b}); oa("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=e}}); oa("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.u([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); oa("Array.prototype.entries",function(a){return a?a:function(){return Ka(this,function(b,c){return[b,c]})}}); oa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ma(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}}); oa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); oa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); oa("Array.prototype.values",function(a){return a?a:function(){return Ka(this,function(b,c){return c})}}); oa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); oa("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}}); oa("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}}); oa("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}}); oa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}}); oa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push(b[d]);return c}}); oa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); oa("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));cc&&(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>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); oa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c; })})}}); oa("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ma(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); oa("Int8Array.prototype.copyWithin",Oa);oa("Uint8Array.prototype.copyWithin",Oa);oa("Uint8ClampedArray.prototype.copyWithin",Oa);oa("Int16Array.prototype.copyWithin",Oa);oa("Uint16Array.prototype.copyWithin",Oa);oa("Int32Array.prototype.copyWithin",Oa);oa("Uint32Array.prototype.copyWithin",Oa);oa("Float32Array.prototype.copyWithin",Oa);oa("Float64Array.prototype.copyWithin",Oa);oa("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}}); oa("Int8Array.prototype.findLastIndex",Ra);oa("Uint8Array.prototype.findLastIndex",Ra);oa("Uint8ClampedArray.prototype.findLastIndex",Ra);oa("Int16Array.prototype.findLastIndex",Ra);oa("Uint16Array.prototype.findLastIndex",Ra);oa("Int32Array.prototype.findLastIndex",Ra);oa("Uint32Array.prototype.findLastIndex",Ra);oa("Float32Array.prototype.findLastIndex",Ra);oa("Float64Array.prototype.findLastIndex",Ra); oa("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}}); oa("Number.parseInt",function(a){return a||parseInt}); oa("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h>>0);maa=0;g.k=sb.prototype;g.k.G6=function(a){var b=g.Ja.apply(1,arguments),c=this.UO(b);c?c.push(new paa(a)):this.e1(a,b)}; g.k.e1=function(a){this.j.set(this.aV(g.Ja.apply(1,arguments)),[new paa(a)])}; g.k.UO=function(){var a=this.aV(g.Ja.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0}; g.k.m8=function(){var a=this.UO(g.Ja.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.k.clear=function(){this.j.clear()}; g.k.aV=function(){var a=g.Ja.apply(0,arguments);return a?a.join(","):"key"};g.y(tb,sb);tb.prototype.B=function(a){var b=g.Ja.apply(1,arguments),c=0,d=this.m8(b);d&&(c=d.j);this.e1(c+a,b)};g.y(ub,sb);ub.prototype.lh=function(a){this.G6(a,g.Ja.apply(1,arguments))};g.k=g.I.prototype;g.k.Gy=!1;g.k.Ma=function(){return this.Gy}; g.k.dispose=function(){this.Gy||(this.Gy=!0,this.va())}; g.k.addOnDisposeCallback=function(a,b){this.Gy?void 0!==b?a.call(b):a():(this.qn||(this.qn=[]),this.qn.push(void 0!==b?(0,g.gb)(a,b):a))}; g.k.va=function(){if(this.qn)for(;this.qn.length;)this.qn.shift()()};g.nb(xb,Error);xb.prototype.name="CustomError";var Tba;g.nb(yb,xb);yb.prototype.name="AssertionError";g.Ab.prototype.stopPropagation=function(){this.B=!0}; g.Ab.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,bs,Ys;saa=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;cc&&(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.ac=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/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var tc,kjb=g.Ta.navigator;tc=kjb?kjb.userAgentData||null:null;Nc[" "]=function(){};var Js,KY,qgb,ljb,mjb,njb,yR,zR,ojb;g.AR=Ac();g.Ks=Naa();g.VC=yc("Edge");g.UR=g.VC||g.Ks;Js=yc("Gecko")&&!(jc(g.oc(),"WebKit")&&!yc("Edge"))&&!(yc("Trident")||yc("MSIE"))&&!yc("Edge");g.Qc=jc(g.oc(),"WebKit")&&!yc("Edge");KY=Mc();qgb=Uaa();g.uB=Taa();ljb=Kc();mjb=yc("iPad");njb=yc("iPod");yR=Lc();zR=jc(g.oc(),"KaiOS"); a:{var pjb="",qjb=function(){var a=g.oc();if(Js)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.VC)return/Edge\/([\d\.]+)/.exec(a);if(g.Ks)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Qc)return/WebKit\/(\S+)/.exec(a);if(g.AR)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); qjb&&(pjb=qjb?qjb[1]:"");if(g.Ks){var g2,rjb=g.Ta.document;g2=rjb?rjb.documentMode:void 0;if(null!=g2&&g2>parseFloat(pjb)){ojb=String(g2);break a}}ojb=pjb}var Xaa=ojb,Vaa={};var b0a=Yaa("AnimationEnd"),VXa=Yaa("TransitionEnd");g.nb(Rc,g.Ab);var sjb={2:"touch",3:"pen",4:"mouse"}; Rc.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)?Js&&(Oc(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:sjb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j= a;a.defaultPrevented&&Rc.Nf.preventDefault.call(this)}; Rc.prototype.stopPropagation=function(){Rc.Nf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; Rc.prototype.preventDefault=function(){Rc.Nf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zaa="closure_listenable_"+(1E6*Math.random()|0);var $aa=0;var fba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=pd.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=rd(a,b,d,e);-1>>0);g.nb(g.Dd,g.I);g.Dd.prototype[Zaa]=!0;g.k=g.Dd.prototype;g.k.addEventListener=function(a,b,c,d){g.ud(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){mba(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.RR;if(b){var c=[];for(var d=1;b;b=b.RR)c.push(b),++d}b=this.A6;d=a.type||a;if("string"===typeof a)a=new g.Ab(a,b);else if(a instanceof g.Ab)a.target=a.target||b;else{var e=a;a=new g.Ab(d,b);g.od(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Ed(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Ed(h,d,!0,a)&&e,a.B||(e=Ed(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&fHh.length&&Hh.push(this)}; nh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.aI=!1}; nh.prototype.reset=function(){this.j=this.D}; var Hh=[];Ih.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>h2.length&&h2.push(this)}; Ih.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1}; var h2=[];var sda,vda;Oh.prototype.length=function(){return this.j.length}; Oh.prototype.end=function(){var a=this.j;this.j=[];return a};var i2=Xh(),Uda=Xh("0di"),Rj=Xh("2ex"),gea=Xh("0dg");Math.max.apply(Math,g.qa(Object.values({aLa:1,UKa:2,LKa:4,J_a:8,I_a:16,NWa:32,gva:64,tfb:128,HHa:256,EHa:512,VKa:1024,iHa:2048,jcb:4096,jHa:8192})));var Zh=i2?function(a,b){a[i2]|=b}:function(a,b){void 0!==a.Nn?a.Nn|=b:Object.defineProperties(a,{Nn:{value:b, configurable:!0,writable:!0,enumerable:!1}})},Wj=i2?function(a,b){a[i2]&=~b}:function(a,b){void 0!==a.Nn&&(a.Nn&=~b)},wi=i2?function(a){return a[i2]|0}:function(a){return a.Nn|0},Nj=i2?function(a){return a[i2]}:function(a){return a.Nn},si=i2?function(a,b){a[i2]=b; return a}:function(a,b){void 0!==a.Nn?a.Nn=b:Object.defineProperties(a,{Nn:{value:b, configurable:!0,writable:!0,enumerable:!1}});return a};var lj={},Dda={},zjb,Vj,Ajb=[];si(Ajb,55);Vj=Object.freeze(Ajb);zi.prototype.next=function(){if(this.C>>0,c=a.j.j+c;a.j.j>>0);return!0},function(a,b,c){b=Ji(b); null!=b&&null!=b&&(Sh(a,c,0),Ph(a.j,b))}),Tjb=Nl(function(a,b,c){if(0!==a.B)return!1; Pl(b,c,Ch(a.j));return!0},function(a,b,c){b=Ii(b); null!=b&&(b=parseInt(b,10),Sh(a,c,0),yda(a.j,b))});g.y(Vl,T);Vl.wb=[1,2,3,4];g.y(Wl,T);var bm=[1,2,3],Ujb=[0,bm,Qjb,Kjb,Ojb];var Vjb=[0,k2,[0,Cjb,Fjb]];g.y(Xl,T);var am=[1,2,3],Wjb=[0,am,Hjb,Ejb,l2,Vjb];g.y(Yl,T);Yl.wb=[1];var Xjb=[0,k2,Ujb,Wjb];var Yjb=[0,[1,2,3],l2,[0,j2,-1,Njb],l2,[0,j2,-1,Ijb,Njb],l2,[0,j2]];g.y(Zl,T);Zl.prototype.gr=function(){var a=xea(this,3,3,void 0,!0);Fda(a);return a[void 0]}; Zl.wb=[3,6,4];Zl.prototype.j=Yea([0,j2,Yjb,Pjb,k2,Xjb,Ljb,Mjb]);g.y($l,T);$l.wb=[1];var efa={};g.k=cm.prototype;g.k.isEnabled=function(){if(!g.Ta.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{uF: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.tda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.uF}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;ed&&this.Yn?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0}; l=function(m,n){var p=sea(e,Wm);var q=Lk(e,14);g.Mm(c.D);c.j.setInterval(c.D.getValue());401===m&&f&&(c.ra=f);q&&(c.G+=q);void 0===n&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.PD||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z}; c.network&&c.network.send(d,h,l)}}}}; g.k.KO=function(){pfa(this.B,!0);this.flush();pfa(this.B,!1)}; g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a}; Zm.prototype.MG=function(a){this.j.MG(a);return this}; Zm.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Uj(cn(this),Qm,11)){var h=dn(this);Uk(h,3,c)}Uj(cn(this),Qm,11)&&(c=dn(this),Uk(c,4,e));Uj(cn(this),Qm,11)&&(e=dn(this),Uk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Tj(f,4,Mi(e));a=Jk(f,Wm,3,a);d&&(f=new Jm,d=Uk(f,13,d),f=new Km,d=Hk(f,Jm,2,d),f=new Vm,d=Hk(f,Km,1,d),d=S(d,2,9),Hk(a,Vm,18,d));b&&Wk(a,14,b);return a};en.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t,v,w;return g.G(function(A){switch(A.j){case 1:return f=(e=d.z6?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(A,2,3),h=Object.assign({},{method:a.requestType, headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.z(A,fetch(a.url,h),5);case 5:l=A.B;if(200!==l.status){null==(m=c)||m(l.status);A.Ia(3);break}if(null==(n=b)){A.Ia(7);break}q=p=n;return g.z(A,l.text(),8);case 8:q(A.B);case 7:case 3:g.Ea(A);clearTimeout(f);g.Fa(A,0);break;case 2:r=g.Da(A);switch(null==(t=r)?void 0:t.name){case "AbortError":null==(v=c)||v(408);break;default:null==(w=c)||w(400)}A.Ia(3)}})}; en.prototype.zJ=function(){return 4};g.y(fn,g.I);fn.prototype.oX=function(){this.D=!0;return this}; fn.prototype.build=function(){this.network||(this.network=new en);var a=new an({logSource:this.logSource,iE:this.iE?this.iE:hfa,sessionIndex:this.sessionIndex,Iea:this.B,Sw:this.C,PD:!1,oX:this.D,BW:this.BW,network:this.network});g.N(this,a);if(this.j){var b=this.j,c=bn(a.B);Q(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.AB&&(a.AB=this.AB);this.pageId&&(a.pageId=this.pageId);this.Vv&&((c=this.Vv)?(a.experimentIds||(a.experimentIds=new Hm),b=a.experimentIds,c=c.Ck(),Q(b,4,c)):a.experimentIds&& Tj(a.experimentIds,4));qfa(a.B);this.network.MG&&this.network.MG(this.logSource);this.network.Jda&&this.network.Jda(a);return a};g.y(jn,g.I);jn.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new $l,c=[],d=0;d>>3;1!=f.C&&2!=f.C&&15!=f.C&&tq(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0} function c(m){f.D++;5==f.D&&m&240&&tq(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())} function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()} function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0} for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Aq(this,7):7==c?Aq(this,8):d||Aq(this,3)),this.B||(this.B=Aga(this.j),null==this.B&&Aq(this,5)),2this.C){var h=a.length;c=[];try{if(this.B.WH())for(var l=0;lthis.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Aq(this,5);Bq(this);break a}}4==b?(0!=e.length|| this.Y?Aq(this,2):Aq(this,4),Bq(this)):Aq(this,1)}}}catch(p){Aq(this,6),Bq(this)}};g.k=Bga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this}; g.k.addListener=function(a,b){this.on(a,b);return this}; g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Hb(c,b);(a=this.j[a])&&g.Hb(a,b);return this}; g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; g.k.jaa=function(a){var b=this.B.data;b&&Cga(a,b);(b=this.j.data)&&Cga(a,b);this.j.data=[]}; g.k.Zba=function(){switch(this.C.getStatus()){case 1:Cq(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Cq(this,"error");break;case 8:Cq(this,"close");break;case 2:Cq(this,"end")}};Dga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Ega(function(h){var l=h.nJ(),m=h.getMetadata(),n=Hga(e,!1);m=Iga(e,m,n,f+l.getName());var p=Jga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,jga(d,b,c))};Eq.prototype.create=function(a,b){return Dq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},ekb)}; Eq.prototype.ping=function(a,b){return Dq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},gkb)};var nkb=1,Lq=new WeakMap;g.y(Fq,g.I);Fq.prototype.signal=function(){var a=new Hq(!1);this.signals.add(a);g.N(this,a);return a}; Fq.prototype.zA=function(a){this.signals.has(a);return a.zA()}; g.y(Hq,g.I);g.k=Hq.prototype;g.k.FN=function(){var a=this,b=nkb++;Iq(function(){Lga(a,b)}); return b}; g.k.detach=function(a){var b=this;Iq(function(){var c=b.slots.get(a);c&&c.lX()})}; g.k.value=function(a){return this.promise(!0,a)}; g.k.zA=function(){return this.tZ}; g.k.next=function(a){return this.promise(!1,a)}; g.k.promise=function(a,b){var c=this,d=lca();Iq(function(){if(c.Ma())d.reject(new qg("Signal initially disposed"));else if(b&&b.Ma())d.reject(new qg("Owner initially disposed"));else if(a&&c.IW&&c.CY)d.resolve(c.tZ);else if(c.JB.add(d),pg(d.promise,function(){c.JB.delete(d)}),b){var e=function(){d.reject(new qg("Owner asynchronously disposed"))}; pg(d.promise,function(){var f=Lq.get(b);f&&g.Hb(f,e)}); Pga(b,e)}}); return d.promise}; g.k.va=function(){var a=this;g.I.prototype.va.call(this);Iq(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.lX,c();a.slots.clear();b=g.u(a.JB);for(c=b.next();!c.done;c=b.next())c.value.reject(new qg("Signal asynchronously disposed"));a.JB.clear()})}; var Jq=[],Kq=!1;g.y(Mq,g.I);Mq.prototype.start=function(){var a=this;if(this.Ma())throw new Oq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0=this.qa&&this.D.resolve();var b=Pq(a,this.logger),c=new zo(this.logger,"C"),d=this.Z(b);c.done();if(void 0===d)throw new Rq(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new Rq(18,"ODM:Invalid");var e;if(null==(e=a.kz)?0:e.Xda)try{var f;null==(f=this.N())||Xfa(f,b,d,a.kz.HW,this.K)}catch(h){Qq(new Rq(24,"ELX:write",h),this.logger,this.onError)}return d}; g.y(Vq,Sq);Vq.prototype.j=function(){return this.K}; g.y(Wq,Sq);Wq.prototype.j=function(){return Mg(this.K)}; Wq.prototype.G=function(){return this.K}; g.y(Xq,Sq);Xq.prototype.j=function(){if(this.K)return this.K;this.K=Vga(this,function(a){return"_"+$fa(a)}); return Vga(this,function(a){return a})}; g.y(Yq,Sq);Yq.prototype.j=function(a){var b=Pq(a,this.logger);if(118>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;dd)return"";this.j.sort(function(n,p){return n-p}); c=null;b="";for(var e=0;e=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};ds.prototype.setInterval=function(a,b){return Or.setInterval(a,b)}; ds.prototype.clearInterval=function(a){Or.clearInterval(a)}; ds.prototype.setTimeout=function(a,b){return Or.setTimeout(a,b)}; ds.prototype.clearTimeout=function(a){Or.clearTimeout(a)};g.y(fs,T);fs.prototype.j=Yea([0,Djb,Gjb,-2,Jjb]);var Jha={R2a:1,w6:2,xWa:3};Lha.prototype.dS=function(a){if("string"===typeof a&&0!=a.length){var b=this.Jc;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1=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};Ds.prototype.Hb=function(){return this.N};var pkb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fu={p6:"start",L3:"firstquartile",b6:"midpoint",q6:"thirdquartile",COMPLETE:"complete",ERROR:"error",a6:"metric",PAUSE:"pause",k6:"resume",l6:"skip",v6:"viewable_impression",e6:"mute",u6:"unmute",M3:"fullscreen",K3:"exitfullscreen",t3:"bufferstart",s3:"bufferfinish",N3:"fully_viewable_audible_half_duration_impression",Z5:"measurable_impression",e3:"abandon",J3:"engagedview",Q3:"impression",z3:"creativeview",Y5:"loaded", u4a:"progress",CLOSE:"close",Lua:"collapse",O0a:"overlay_resize",P0a:"overlay_unmeasurable_impression",Q0a:"overlay_unviewable_impression",S0a:"overlay_viewable_immediate_impression",R0a:"overlay_viewable_end_of_session_impression",B3:"custom_metric_viewable",l3:"audio_audible",n3:"audio_measurable",m3:"audio_impression"},yka="start firstquartile midpoint thirdquartile resume loaded".split(" "),zka=["start","firstquartile","midpoint","thirdquartile"],pja=["abandon"],Au={UNKNOWN:-1,p6:0,L3:1,b6:2, q6:3,COMPLETE:4,a6:5,PAUSE:6,k6:7,l6:8,v6:9,e6:10,u6:11,M3:12,K3:13,N3:14,Z5:15,e3:16,J3:17,Q3:18,z3:19,Y5:20,B3:21,t3:22,s3:23,m3:27,n3:28,l3:29};var $ha={ega:"addEventListener",oHa:"getMaxSize",pHa:"getScreenSize",qHa:"getState",rHa:"getVersion",z5a:"removeEventListener",hLa:"isViewable"};g.k=g.Fs.prototype;g.k.clone=function(){return new g.Fs(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.Ie?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.getSize=function(){return new g.Ke(this.width,this.height)}; g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var dia={};mia.prototype.update=function(a){a&&a.document&&(this.N=Es(!1,a,this.isMobileDevice),this.j=Es(!0,a,this.isMobileDevice),oia(this,a),nia(this,a))};bt.prototype.cancel=function(){es().clearTimeout(this.j);this.j=null}; bt.prototype.schedule=function(){var a=this,b=es(),c=hs().j.j;this.j=b.setTimeout(gs(c,ts(143,function(){a.B++;a.C.sample()})),Yha())};g.k=ct.prototype;g.k.UC=function(){return!1}; g.k.initialize=function(){return this.isInitialized=!0}; g.k.Pz=function(){return this.j.Ea}; g.k.ME=function(){return this.j.qa}; g.k.pj=function(a,b){if(!this.qa||(void 0===b?0:b))this.qa=!0,this.Ea=a,this.Z=0,this.j!=this||et(this)}; g.k.getName=function(){return this.j.Sa}; g.k.Dt=function(){return this.j.WX()}; g.k.WX=function(){return{}}; g.k.wr=function(){return this.j.Z}; g.k.bV=function(){var a=Zs();a.j=Es(!0,this.C,a.isMobileDevice)}; g.k.cV=function(){nia(Zs(),this.C)}; g.k.kY=function(){return this.D.j}; g.k.sample=function(){}; g.k.isActive=function(){return this.j.K}; g.k.Zz=function(a){var b=this.j;this.j=a.wr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,et(this)):this.K!==this.j.K&&(this.K=this.j.K,et(this))}; g.k.Lt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&ria(this)}}; g.k.lq=function(){return this.Y}; g.k.dispose=function(){this.Ga=!0}; g.k.Ma=function(){return this.Ga};g.k=pt.prototype;g.k.UM=function(){return!0}; g.k.NH=function(){}; g.k.dispose=function(){if(!this.Ma()){var a=this.B;g.Hb(a.G,this);a.Y&&this.lq()&&qia(a);this.NH();this.qa=!0}}; g.k.Ma=function(){return this.qa}; g.k.Dt=function(){return this.B.Dt()}; g.k.wr=function(){return this.B.wr()}; g.k.Pz=function(){return this.B.Pz()}; g.k.ME=function(){return this.B.ME()}; g.k.Zz=function(){}; g.k.Lt=function(){this.Qs()}; g.k.lq=function(){return this.ra};g.k=qt.prototype;g.k.wr=function(){return this.j.wr()}; g.k.Pz=function(){return this.j.Pz()}; g.k.ME=function(){return this.j.ME()}; g.k.create=function(a,b,c){var d=null;this.j&&(d=this.OH(a,b,c),dt(this.j,d));return d}; g.k.dV=function(){return this.VC()}; g.k.VC=function(){return!1}; g.k.init=function(a){return this.j.initialize()?(dt(this.j,this),this.D=a,!0):!1}; g.k.Zz=function(a){0==a.wr()&&this.D(a.Pz(),this)}; g.k.Lt=function(){}; g.k.lq=function(){return!1}; g.k.dispose=function(){this.G=!0}; g.k.Ma=function(){return this.G}; g.k.Dt=function(){return{}};rt.prototype.add=function(a,b,c){++this.C;a=new sia(a,b,c);this.j.push(new sia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};xia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=ut(this.j);0=h;h=!(0=h)||c;this.j[e].update(f&&l,d,!f||h)}};Dt.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.De):b.De;this.ra=Math.max(this.ra,b.De);this.Ca=-1!=this.Ca?Math.min(this.Ca,b.Bk):b.Bk;this.Ea=Math.max(this.Ea,b.Bk);this.Za.update(b.Bk,c.Bk,b.j,a,d);this.B.update(b.De,c.De,b.j,a,d);c=d||c.Nw!=b.Nw?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Sa.update(c,a,b)}; Dt.prototype.Hr=function(){return this.Sa.C>=this.bb};if($s&&$s.URL){var qkb=$s.URL,rkb;if(rkb=!!qkb){var skb;a:{if(qkb){var tkb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var p2=tkb.exec(decodeURIComponent(qkb));if(p2){skb=p2[1]&&1=(this.Nw()?.3:.5),this.IT(f,a,d),this.Sp=b,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=a.bottom||a.left>=a.right?new As(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.eZ(c)?c=new As(0,0,0,0):(d=Zs().D,b=new As(0,d.height,d.width,0),d=Ht(c,this.j),e=Ht(c,Zs().j),b=Ht(c,b)));c=c.top>=c.bottom||c.left>=c.right?new As(0,0,0, 0):Cs(c,-this.j.left,-this.j.top);at()||(e=d=0);this.N=new Ds(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.B.getName()};var ykb=new As(0,0,0,0);g.y(Zt,Yt);g.k=Zt.prototype;g.k.UM=function(){this.C();return!0}; g.k.Lt=function(){Yt.prototype.Qs.call(this)}; g.k.KW=function(){}; g.k.RN=function(){}; g.k.Qs=function(){this.C();Yt.prototype.Qs.call(this)}; g.k.Zz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Zs().j=new As(0,0,0,0),this.j=new As(0,0,0,0),this.D=new As(0,0,0,0),this.timestamp=-1));this.K=a};var t2={},mja=(t2.firstquartile=0,t2.midpoint=1,t2.thirdquartile=2,t2.complete=3,t2);g.y(au,It);g.k=au.prototype;g.k.lq=function(){return!0}; g.k.Un=function(){return 2==this.gk}; g.k.aY=function(a){return Oia(this,a,Math.max(1E4,this.C/3))}; g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.od(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Sa=m.isYouTube||this.Sa;es();this.rb=!1;e=eja(this,b);1===dja(this)&&(f=e);It.prototype.Ta.call(this,a,b,c,d,m,f,h);this.Jr&&this.Jr.C&&g.ac(this.K,function(n){n.B(l)})}; g.k.IT=function(a,b,c){It.prototype.IT.call(this,a,b,c);du(this).update(a,b,this.Xh,c);this.gb=Mt(this.Xh)&&Mt(b);-1==this.Ea&&this.Za&&(this.Ea=this.rj().C.j);this.Fg.C=0;a=this.Hr();b.isVisible()&&Rt(this.Fg,"vs");a&&Rt(this.Fg,"vw");Xs(b.volume)&&Rt(this.Fg,"am");Mt(b)?Rt(this.Fg,"a"):Rt(this.Fg,"mut");this.lA&&Rt(this.Fg,"f");-1!=b.B&&(Rt(this.Fg,"bm"),1==b.B&&(Rt(this.Fg,"b"),Mt(b)&&Rt(this.Fg,"umutb")));Mt(b)&&b.isVisible()&&Rt(this.Fg,"avs");this.gb&&a&&Rt(this.Fg,"avw");0this.j.Z&&(this.j=this,et(this)),this.Z=a);return 2==a};uu.prototype.sample=function(){xu(this,lu(),!1)}; uu.prototype.D=function(){var a=at(),b=vs();a?(xs||(ys=b,g.ac(ku.j,function(c){var d=c.rj();d.Na=Ut(d,b,1!=c.gk)})),xs=!0):(this.N=Oja(this,b),xs=!1,nja=b,g.ac(ku.j,function(c){c.TD&&(c.rj().Z=b)})); xu(this,lu(),!a)}; var vu=cs(uu);var Qja=null,Uu="",Tu=!1;var Tja=Sja().tp,zu=Sja().xp;var Wja={PEa:"visible",Ypa:"audible",Rdb:"time",Udb:"timetype"},Xja={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)}}; Vja.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.y(Du,Vt);Du.prototype.getId=function(){return this.N}; Du.prototype.K=function(){return!0}; Du.prototype.j=function(a){var b=a.rj(),c=a.getDuration();return Ys(this.Z,function(d){if(void 0!=d.j)var e=Zja(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0=d);return d})};g.y(Eu,Yia);Eu.prototype.j=function(a){var b=new Xia;b.j=Qt(a,vkb);b.B=Qt(a,xkb);return b};g.y(Fu,Vt);Fu.prototype.j=function(a){return gja(a)};g.y(Gu,cja);g.y(Hu,Vt);Hu.prototype.j=function(a){return a.rj().Hr()};g.y(Iu,Wt);Iu.prototype.j=function(a){var b=g.Fb(this.N,Ir(hs().Jc,"ovms"));return!a.Qt&&(0!=a.gk||b)};g.y(Ju,Gu);Ju.prototype.B=function(){return new Iu(this.j)}; Ju.prototype.C=function(){return[new Hu("viewable_impression",this.j),new Fu(this.j)]};g.y(Ku,Zt);Ku.prototype.C=function(){var a=g.Xa("ima.admob.getViewability"),b=Ir(this.Jc,"queryid");"function"===typeof a&&b&&a(b)}; Ku.prototype.getName=function(){return"gsv"};g.y(Lu,qt);Lu.prototype.getName=function(){return"gsv"}; Lu.prototype.VC=function(){var a=Zs();hs();return a.B&&!1}; Lu.prototype.OH=function(a,b,c){return new Ku(this.j,b,c)};g.y(Mu,Zt);Mu.prototype.C=function(){var a=this,b=g.Xa("ima.bridge.getNativeViewability"),c=Ir(this.Jc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.jd(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=kia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?ykb.clone():kia(e);a.timestamp=d.opt_nativeTime||-1;Zs().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; Mu.prototype.getName=function(){return"nis"};g.y(Nu,qt);Nu.prototype.getName=function(){return"nis"}; Nu.prototype.VC=function(){var a=Zs();hs();return a.B&&!1}; Nu.prototype.OH=function(a,b,c){return new Mu(this.j,b,c)};g.y(Ou,ct);g.k=Ou.prototype;g.k.UC=function(){return null!=this.B.Yn}; g.k.WX=function(){var a={};this.La&&(a.mraid=this.La);this.Ca&&(a.mlc=1);a.mtop=this.B.Qda;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a}; g.k.Ku=function(a){var b=g.Ja.apply(1,arguments);try{return this.B.Yn[a].apply(this.B.Yn,b)}catch(c){us(538,c,.01,function(d){d.method=a})}}; g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.ME();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.pj("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.pj("w"),!1;Zs().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?cka(this):Ft(this.C,"load",function(){es().setTimeout(ts(292,function(){return cka(a)}),100)},292); return!0}; g.k.bV=function(){var a=Zs(),b=hka(this,"getMaxSize");a.j=new As(0,b.width,b.height,0)}; g.k.cV=function(){Zs().D=hka(this,"getScreenSize")}; g.k.dispose=function(){eka(this);ct.prototype.dispose.call(this)};var Gha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=Qu.prototype;g.k.II=function(a){Jt(a,!1);Bja(a)}; g.k.AJ=function(){}; g.k.sG=function(a,b,c,d){var e=this;a=new au(Or,a,c?b:-1,7,this.sO(),this.eX());a.Xi=d;bha(a.Jc);Hr(a.Jc,"queryid",a.Xi);a.dS("");Ria(a,function(){return e.tY.apply(e,g.qa(g.Ja.apply(0,arguments)))},function(){return e.k9.apply(e,g.qa(g.Ja.apply(0,arguments)))}); (d=cs(mu).j)&&Nia(a,d);a.Qj.nu&&cs(Kja);return a}; g.k.Zz=function(a){switch(a.wr()){case 0:if(a=cs(mu).j)a=a.j,g.Hb(a.G,this),a.Y&&this.lq()&&qia(a);Su();break;case 2:wu()}}; g.k.Lt=function(){}; g.k.lq=function(){return!1}; g.k.k9=function(a,b){a.Qt=!0;switch(a.Dp()){case 1:nka(a,b);break;case 2:this.oS(a)}}; g.k.t9=function(a){var b=a.N(a);b&&(b=b.volume,a.zb=Xs(b)&&0a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)}; hv.prototype.get=function(a){return!!this.data[a]};var jv;g.nb(g.wv,g.I);g.k=g.wv.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Lka(this),b=Mka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.ud(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(oba(this.C),20)}; g.k.stop=function(){if(this.isActive()){var a=Lka(this),b=Mka(this);a&&!b&&this.B.mozRequestAnimationFrame?Ad(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null}; g.k.isActive=function(){return null!=this.j}; g.k.r5=function(){this.D&&this.j&&Ad(this.j);this.j=null;this.K.call(this.G,g.kb())}; g.k.va=function(){this.stop();g.wv.Nf.va.call(this)};g.nb(g.xv,g.I);g.k=g.xv.prototype;g.k.WC=0;g.k.va=function(){g.xv.Nf.va.call(this);this.stop();delete this.j;delete this.B}; g.k.start=function(a){this.stop();this.WC=g.Dg(this.C,void 0!==a?a:this.Ti)}; g.k.stop=function(){this.isActive()&&g.Ta.clearTimeout(this.WC);this.WC=0}; g.k.isActive=function(){return 0!=this.WC}; g.k.fV=function(){this.WC=0;this.j&&this.j.call(this.B)};g.Bv.prototype[Symbol.iterator]=function(){return this}; g.Bv.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.nb(g.Kv,g.Dd);g.k=g.Kv.prototype;g.k.isPlaying=function(){return 1==this.j}; g.k.isPaused=function(){return-1==this.j}; g.k.EK=function(){this.zn("begin")}; g.k.Nr=function(){this.zn("end")}; g.k.onFinish=function(){this.zn("finish")}; g.k.onStop=function(){this.zn("stop")}; g.k.zn=function(a){this.dispatchEvent(a)};var Ekb=Id(function(){var a=g.Cf("DIV"),b=g.Qc?"-webkit":Js?"-moz":g.Ks?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!ujb.test("div"))throw Error("");if("DIV"in wjb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!ujb.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof Od)e=Pd(e);else if("style"==h.toLowerCase()){if(!g.cb(e))throw Error("");if(!(e instanceof g.ne)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.ne(l,ze):Vka}e=oe(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in vjb)if(e instanceof g.Wd)e=g.Xd(e).toString();else if(e instanceof g.ae)e=g.be(e);else if("string"===typeof e)e=g.he(e).toString();else throw Error("");}f=h+'="'+gc(String(e))+ '"';d+=" "+f}}var n="":(b=Eba(b),n+=">"+g.qe(b).toString()+"");n=re(n);if(xjb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.qe(n);return""!=g.Ls(a.firstChild,"transition")});g.nb(Lv,g.Kv);g.k=Lv.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.EK();this.zn("play");this.startTime=g.kb();this.j=1;if(Ekb())return g.Is(this.B,this.K),this.C=g.Dg(this.Bca,void 0,this),!0;this.VM(!1);return!1}; g.k.Bca=function(){g.Us(this.B);Pka(this.B,this.N);g.Is(this.B,this.D);this.C=g.Dg((0,g.gb)(this.VM,this,!1),1E3*this.G)}; g.k.stop=function(){this.isPlaying()&&this.VM(!0)}; g.k.VM=function(a){g.Is(this.B,"transition","");g.Ta.clearTimeout(this.C);g.Is(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.onStop();else this.onFinish();this.Nr()}; g.k.va=function(){this.stop();Lv.Nf.va.call(this)}; g.k.pause=function(){};var Rka={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};Mv("Element","attributes")||Mv("Node","attributes");Mv("Element","innerHTML")||Mv("HTMLElement","innerHTML");Mv("Node","nodeName");Mv("Node","nodeType");Mv("Node","parentNode");Mv("Node","childNodes");Mv("HTMLElement","style")||Mv("Element","style");Mv("HTMLStyleElement","sheet");var Yka=Tka("getPropertyValue"),Zka=Tka("setProperty");Mv("Element","namespaceURI")||Mv("Node","namespaceURI");var Xka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var dla,Zib,bla,ala,ela;dla=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]");Zib=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Fkb=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.Nv=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]");bla=/^http:\/\/.*/;g.Gkb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");ala=/\s+/;ela=/[\d\u06f0-\u06f9]/;Pv.prototype.Tl=function(){return new Qv(this.B())}; Pv.prototype[Symbol.iterator]=function(){return new Rv(this.B())}; Pv.prototype.j=function(){return new Rv(this.B())}; g.y(Qv,g.Kt);Qv.prototype.next=function(){return this.B.next()}; Qv.prototype[Symbol.iterator]=function(){return new Rv(this.B)}; Qv.prototype.j=function(){return new Rv(this.B)}; g.y(Rv,Pv);Rv.prototype.next=function(){return this.C.next()};Tv.prototype.clone=function(){return new Tv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Vv.prototype.clone=function(){return new Vv(this.start,this.end)};(function(){if(qgb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.oc()))?a[1]:"0"}return KY?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.oc()))?a[0].replace(/_/g,"."):"10"):g.uB?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.oc()))?a[1]:""):ljb||mjb||njb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.oc()))?a[1].replace(/_/g,"."):""):""})();var gla=function(){if(g.bR)return Wv(/Firefox\/([0-9.]+)/);if(g.Ks||g.VC||g.AR)return Xaa;if(g.aK){if(Lc()||Mc()){var a=Wv(/CriOS\/([0-9.]+)/);if(a)return a}return Wv(/Chrome\/([0-9.]+)/)}if(g.zC&&!Lc())return Wv(/Version\/([0-9.]+)/);if(sB||tB){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.oc()))return a[1]+"."+a[2]}else if(g.aUa)return(a=Wv(/Android\s+([0-9.]+)/))?a:Wv(/Version\/([0-9.]+)/);return""}();g.nb(g.Yv,g.I);g.k=g.Yv.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Nh(a)}return!1}; g.k.Nh=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Hb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.k.publish=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.q2;var e=c.key(b++);if(a)return g.Lt(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Lt(e)}; return d}; g.k.clear=function(){ew(this);this.j.clear()}; g.k.key=function(a){ew(this);return this.j.key(a)};g.nb(fw,dw);g.nb(mla,dw);g.nb(gw,cw);gw.prototype.set=function(a,b){this.B.set(this.j+a,b)}; gw.prototype.get=function(a){return this.B.get(this.j+a)}; gw.prototype.remove=function(a){this.B.remove(this.j+a)}; gw.prototype.Tl=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Kt;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.Lt(a?e.slice(c.j.length):c.B.get(e))}; return d};iw.prototype.getValue=function(){return this.B}; iw.prototype.clone=function(){return new iw(this.j,this.B)};g.k=jw.prototype;g.k.Bh=function(a,b){var c=this.j;c.push(new iw(a,b));a=c.length-1;b=this.j;for(c=b[a];0>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c}; g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.nm=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;0!==c;){f=2E3v2;v2++){u2=v2;for(var Mkb=0;8>Mkb;Mkb++)u2=u2&1?3988292384^u2>>>1:u2>>>1;Lkb[v2]=u2}Nw=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^Lkb[(a^b[d])&255];return a^-1};var Dw={};Dw={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var ww=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],zw=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Jla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Hw=Array(576);nw(Hw);var Iw=Array(60);nw(Iw);var yw=Array(512);nw(yw);var vw=Array(256);nw(vw);var xw=Array(29);nw(xw);var Aw=Array(30);nw(Aw);var Gla,Hla,Ila,Fla=!1;var Sw;Sw=[new Rw(0,0,0,0,function(a,b){var c=65535;for(c>a.Gm-5&&(c=a.Gm-5);;){if(1>=a.ac){Ow(a);if(0===a.ac&&0===b)return 1;if(0===a.ac)break}a.Db+=a.ac;a.ac=0;var d=a.Ok+c;if(0===a.Db||a.Db>=d)if(a.ac=a.Db-d,a.Db=d,Jw(a,!1),0===a.ye.Ie)return 1;if(a.Db-a.Ok>=a.gj-262&&(Jw(a,!1),0===a.ye.Ie))return 1}a.Bh=0;if(4===b)return Jw(a,!0),0===a.ye.Ie?3:4;a.Db>a.Ok&&Jw(a,!1);return 1}), new Rw(4,4,8,4,Pw),new Rw(4,5,16,8,Pw),new Rw(4,6,32,32,Pw),new Rw(4,4,16,16,Qw),new Rw(8,16,32,32,Qw),new Rw(8,16,128,128,Qw),new Rw(8,32,128,256,Qw),new Rw(32,128,258,1024,Qw),new Rw(32,258,258,4096,Qw)];var Ela={};Ela=function(){this.input=null;this.ly=this.lj=this.nx=0;this.output=null;this.xT=this.Ie=this.XA=0;this.msg="";this.state=null;this.wO=2;this.Ud=0};var Kla=Object.prototype.toString; Tw.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=nla(a):"[object ArrayBuffer]"===Kla.call(a)?c.input=new Uint8Array(a):c.input=a;c.nx=0;c.lj=c.input.length;do{0===c.Ie&&(c.output=new mw.yy(d),c.XA=0,c.Ie=d);a=Dla(c,e);if(1!==a&&0!==a)return this.Nr(a),this.ended=!0,!1;if(0===c.Ie||0===c.lj&&(4===e||2===e))if("string"===this.options.to){var f=mw.fT(c.output,c.XA);b=f;f=f.length;if(65537>f&&(b.subarray&& Kkb||!b.subarray))b=String.fromCharCode.apply(null,mw.fT(b,f));else{for(var h="",l=0;lc;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}}; RB.prototype.va=function(){g.$A(this.Z);g.PB(this.ra)};g.y(SB,g.I);SB.prototype.T=function(a,b,c,d,e){c=g.JA((0,g.gb)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&Xqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c}; SB.prototype.Pc=function(a){for(var b=0;b=M.hn)||A.j.version>=R||A.j.objectStoreNames.contains(L)||F.push(L)}m=F;if(0===m.length){w.Ia(5);break}n=Object.keys(c.options.Mr); p=l.objectStoreNames();if(c.Gc.options.version+1)throw r.close(),c.C=!1,isa(c,t);return w.return(r);case 8:throw b(), q instanceof Error&&!g.aB("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Ira(q,c.name,"",null!=(v=c.options.version)?v:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw isa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,eea:b,upgrade:this.options.upgrade};return this.j=d=a()};var jsa=new RC("YtIdbMeta",{Mr:{databases:{hn:1}},upgrade:function(a,b){b(1)&&g.FC(a,"databases",{keyPath:"actualName"})}});var psa,nsa=new function(){}(new function(){});new g.Lo;g.y(YC,RC);YC.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?usa:tsa)(a,b,Object.assign({},c))}; YC.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?ysa:vsa)(this.name,a)};var lnb={},Asa=g.ZC("ytGcfConfig",{Mr:(lnb.coldConfigStore={hn:1},lnb.hotConfigStore={hn:1},lnb),shared:!1,upgrade:function(a,b){b(1)&&(g.LC(g.FC(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.LC(g.FC(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.y(Gsa,g.I);Gsa.prototype.va=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.I.prototype.va.call(this)};eD.prototype.Yr=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var mnb="undefined"!==typeof TextEncoder?new TextEncoder:null,wta=mnb?function(a){return mnb.encode(a)}:function(a){a=g.Jg(a); for(var b=new Uint8Array(a.length),c=0;c=b?!1:!0}; g.k.DL=function(){var a=this;if(!tD(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Fh.bY("QUEUED",this.Cf).then(function(b){b&&!a.AL(b,a.C0)?a.Vn.Ni(function(){return g.G(function(c){if(1==c.j)return void 0===b.id?c.Ia(2):g.z(c,a.Fh.wS(b.id,a.Cf),2);a.DL();g.Aa(c)})}):a.hh.Eh()&&a.gC()})};var wD;var Eva={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138, mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168, kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77, dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447, tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476, tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496};var onb={},Ota=g.ZC("ServiceWorkerLogsDatabase",{Mr:(onb.SWHealthLog={hn:1},onb),shared:!0,upgrade:function(a,b){b(1)&&g.LC(g.FC(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Vta={},Uta=0;var Xta;AD.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; AD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null}; AD.prototype.removeParams=function(a){return a.split("?")[0]}; AD.prototype.removeParams=AD.prototype.removeParams;AD.prototype.isEndpointCFR=AD.prototype.isEndpointCFR;AD.prototype.requestComplete=AD.prototype.requestComplete;AD.getInstance=BD;g.y(CD,g.Dd);g.k=CD.prototype;g.k.Eh=function(){return this.j.Eh()}; g.k.lx=function(a){this.j.j=a}; g.k.O8=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.P7=function(){this.B=!0}; g.k.listen=function(a,b){return this.j.listen(a,b)}; g.k.HL=function(a){a=ev(this.j,a);a.then(function(b){g.aB("use_cfr_monitor")&&BD().requestComplete("generate_204",b)}); return a}; CD.prototype.sendNetworkCheckRequest=CD.prototype.HL;CD.prototype.listen=CD.prototype.listen;CD.prototype.enableErrorFlushing=CD.prototype.P7;CD.prototype.getWindowStatus=CD.prototype.O8;CD.prototype.networkStatusHint=CD.prototype.lx;CD.prototype.isNetworkAvailable=CD.prototype.Eh;CD.getInstance=Zta;g.y(g.DD,g.Dd);g.DD.prototype.Eh=function(){var a=g.Xa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0}; g.DD.prototype.lx=function(a){var b=g.Xa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)}; g.DD.prototype.HL=function(a){var b=this,c;return g.G(function(d){c=g.Xa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.aB("skip_network_check_if_cfr")&&BD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.lx((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Eh())})):c?d.return(c(a)):d.return(!0)})};var aua;g.y(ED,uD);ED.prototype.writeThenSend=function(a,b){b||(b={});b=eua(a,b);g.gC()||(this.j=!1);uD.prototype.writeThenSend.call(this,a,b)}; ED.prototype.sendThenWrite=function(a,b,c){b||(b={});b=eua(a,b);g.gC()||(this.j=!1);uD.prototype.sendThenWrite.call(this,a,b,c)}; ED.prototype.sendAndWrite=function(a,b){b||(b={});b=eua(a,b);g.gC()||(this.j=!1);uD.prototype.sendAndWrite.call(this,a,b)}; ED.prototype.awaitInitialization=function(){return this.C.promise};var fua=g.Ta.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",fua);g.GD.prototype.isReady=function(){!this.config_&&Tsa()&&(this.config_=g.gD());return!!this.config_};var pnb,JD,LD;pnb=g.Ta.ytPubsubPubsubInstance||new g.Yv;JD=g.Ta.ytPubsubPubsubSubscribedKeys||{};LD=g.Ta.ytPubsubPubsubTopicToKeys||{};g.KD=g.Ta.ytPubsubPubsubIsSynchronous||{};g.Yv.prototype.subscribe=g.Yv.prototype.subscribe;g.Yv.prototype.unsubscribeByKey=g.Yv.prototype.Nh;g.Yv.prototype.publish=g.Yv.prototype.publish;g.Yv.prototype.clear=g.Yv.prototype.clear;g.Va("ytPubsubPubsubInstance",pnb);g.Va("ytPubsubPubsubTopicToKeys",LD);g.Va("ytPubsubPubsubIsSynchronous",g.KD); g.Va("ytPubsubPubsubSubscribedKeys",JD);var mua={};g.y(RD,g.I);RD.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Hb();this.Hb().appendChild(a)}; g.y(SD,RD);SD.prototype.Hb=function(){return this.j};g.y(rua,g.I);var TD=Date.now().toString();var wua={};var aE=Symbol("injectionDeps");ZD.prototype.toString=function(){return"InjectionToken("+this.name+")"}; xua.prototype.resolve=function(a){return a instanceof $D?bE(this,a.key,[],!0):bE(this,a,[])};var Aua;var dE=window;var eE=g.aB("web_enable_lifecycle_monitoring")&&0!==Bua(),Kua=g.aB("web_enable_lifecycle_monitoring");Fua.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.oL||this.scheduler.Oj(b.jobId),b.oL=!0;this.B.resolve()};g.k=fE.prototype;g.k.install=function(a){this.plugins.push(a);return this}; g.k.uninstall=function(){var a=this;g.Ja.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1Math.pow(5,2))b.D=!0}; g.k.s5=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&sua(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}}; g.k.FG=function(a){this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(new g.eC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)}; g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)}; g.k.va=function(){this.clear(null);this.Pc(this.rb);for(var a=g.u(this.Ga),b=a.next();!b.done;b=a.next())this.Pc(b.value);g.iF.prototype.va.call(this)};g.y(uF,jF); uF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.JE(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.Fv(this.element,a);null!=b.text&&(a=g.lF(b.text),g.ec(a)||(this.element.setAttribute("aria-label",a),this.C=new g.iF({I:"span",S:"ytp-ad-button-text",xa:a}),g.N(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&& b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.ec(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=tF(b.icon),null!=b&&(this.B=new g.iF({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.N(this,this.B)),this.D?Hf(this.element,this.B.element,0):this.B.Ja(this.element))}}; uF.prototype.clear=function(){this.hide()}; uF.prototype.onClick=function(a){jF.prototype.onClick.call(this,a);a=g.u(Hxa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.IE(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.y(vF,g.I);vF.prototype.va=function(){this.B&&g.PB(this.B);this.j.clear();wF=null;g.I.prototype.va.call(this)}; vF.prototype.register=function(a,b){b&&this.j.set(a,b)}; var wF=null;g.y(zF,jF); zF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.V(b.button,g.qM)||null;null==b?g.IE(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.button),this.button.init(ZE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.lF(a)),this.button.Ja(this.element),this.G&&!g.Ev(this.button.element,"ytp-ad-clickable")&&g.Fv(this.button.element, "ytp-ad-clickable"),a&&(this.B=new g.iF({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.iF({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.N(this,b)),g.N(this,this.B),this.B.Ja(this.element),b=xF(a),Hf(this.B.element,b,0)),this.show())}; zF.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();jF.prototype.hide.call(this)}; zF.prototype.show=function(){this.button&&this.button.show();jF.prototype.show.call(this)};g.y(BF,jF); BF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&AF(a)||"";g.ec(c)?.01>Math.random()&&g.JE(Error("Found AdImage without valid image URL")):(this.j?g.Is(this.element,"backgroundImage","url("+c+")"):yf(this.element,{src:c}),yf(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; BF.prototype.clear=function(){this.hide()};g.y(CF,jF);g.k=CF.prototype;g.k.hide=function(){jF.prototype.hide.call(this);this.C&&this.C.focus()}; g.k.show=function(){this.C=document.activeElement;jF.prototype.show.call(this);this.D.focus()}; g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.IE(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.IE(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Lxa(this,b):g.IE(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.UB(this.j);this.hide()}; g.k.eR=function(){this.hide()}; g.k.WM=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.k.fR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for confirm dialog.")));this.hide()};g.y(DF,jF);g.k=DF.prototype; g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.IE(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.IE(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.Fv(this.D,a)}a={};b.defaultText? (c=g.lF(b.defaultText),g.ec(c)||(a.buttonText=c,this.api.U().experiments.fb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.fb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Vs(this.Ea,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=tF(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra= !0,c=tF(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Vs(this.Y,!0),g.Vs(this.G,!1)),g.Vs(this.j,!1)):g.Vs(this.B,!1);g.jd(a)||this.update(a);b.isToggled&&(g.Fv(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Mxa(this);this.T(this.element,"change",this.gV);this.show()}}; g.k.onClick=function(a){0a&&g.IE(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.gb&&(this.D?g.Fv(this.B.element,"modern-countdown-next-to-thumbnail"):g.Fv(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Na=null==a||0===a?this.j.im():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview); this.C.init(ZE("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Jl&&b.thumbnail?this.G.init(ZE("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.gb&&g.Fv(this.C.element,"ytp-ad-preview-text-modern-postroll"))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();LF(this);JF.prototype.hide.call(this)}; g.k.show=function(){KF(this);this.B.show();this.C.show();this.G.show();JF.prototype.show.call(this)}; g.k.hq=function(){this.hide()}; g.k.Ao=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Wa&&a>=this.Na?(this.Ea.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Na-a)/1E3)),a!=this.Za&&(cya(this.C,{TIME_REMAINING:String(a)}),this.Za=a)))}};g.y(eya,JF);g.k=eya.prototype; g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.V(b.actionButton,g.qM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0=this.Ea&&(LF(this),g.Hv(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; g.k.hq=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.iV.bind(this))}; g.k.show=function(){this.B&&this.B.show();JF.prototype.show.call(this)}; g.k.hide=function(){this.B&&this.B.hide();JF.prototype.hide.call(this)}; g.k.iV=function(a){"hidden"==a?this.show():this.hide()};g.y(fya,jF);g.k=fya.prototype; g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.V(this.j.likeButton,B2),b=this.j.dislikeButton&&g.V(this.j.dislikeButton,B2),this.C.init(ZE("toggle-button"),a,c),this.B.init(ZE("toggle-button"),b,c),this.T(this.element,"change",this.jV),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.kb.executeCommand(a,this.layoutId):g.IE(Error("Missing layoutId for instream user sentiment."))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.C.hide();this.B.hide();jF.prototype.hide.call(this)}; g.k.show=function(){this.C.show();this.B.show();jF.prototype.show.call(this)}; g.k.jV=function(){Oka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.jb("onYtShowToast",this.j.postMessageAction);this.D.hide()}; g.k.onClick=function(a){0=this.G&&pya(this,!0)};g.y(qya,uF);qya.prototype.init=function(a,b,c){uF.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.lF(b.text),a=!g.ec(a));a?null==b.navigationEndpoint?g.JE(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.JE(Error("Button style was not a link-style type in renderer,")):this.show():g.JE(Error("No visit advertiser text was present in the renderer."))};g.y(ZF,jF); ZF.prototype.init=function(a,b,c){jF.prototype.init.call(this,a,b,c);a=b.text;g.ec(kF(a))?g.JE(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),a.init(ZE("simple-ad-badge"),b,c),a.Ja(this.element),g.N(this,a)),this.api.U().experiments.fb("enable_unified_ad_badge_style_fix")&&this.C&& this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())}; ZF.prototype.clear=function(){this.hide()};g.y($F,$E);g.y(aG,g.aF);g.k=aG.prototype;g.k.im=function(){return this.durationMs}; g.k.stop=function(){this.j&&this.Ed.Pc(this.j)}; g.k.Sc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")}; g.k.getProgressState=function(){return this.B}; g.k.v5=function(a){g.VF(a,2)&&this.publish("g")};g.y(bG,g.aF);g.k=bG.prototype;g.k.im=function(){return this.durationMs}; g.k.start=function(){this.j||(this.j=!0,this.We.start())}; g.k.stop=function(){this.j&&(this.j=!1,this.We.stop())}; g.k.Sc=function(){this.cj+=100;var a=!1;this.cj>this.durationMs&&(this.cj=this.durationMs,this.We.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.cj/1E3};this.publish("h");a&&this.publish("g")}; g.k.getProgressState=function(){return this.B};g.y(eG,JF);g.k=eG.prototype;g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.JE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.B.init(ZE("ad-text"),a,{});this.B.Ja(this.element);g.N(this,this.B)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){LF(this);JF.prototype.hide.call(this)}; g.k.hq=function(){this.hide()}; g.k.Ao=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof aG?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof bG?a.seekableEnd:this.api.getDuration(2,!1))-a.current,cya(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.cG(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.k.show=function(){KF(this);JF.prototype.show.call(this)};g.y(sya,IF);sya.prototype.onClick=function(a){IF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.y(hG,g.iF);hG.prototype.Sc=function(){var a=this.B.getProgressState();this.progressBar.style.width=100*gG(new fG(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; hG.prototype.onStateChange=function(){g.HR(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Sc,this),this.Sc()):-1!==this.j&&(this.hide(),this.B.Nh(this.j),this.j=-1))};g.y(iG,jF); iG.prototype.init=function(a,b,c,d){jF.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.V(c,vL),c=g.V(c,pM),a?(c=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,this.Y),c.Ja(this.G),c.init(ZE("skip-button"),a,this.macros),g.N(this,c)):c&&(a=new OF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!1),a.Ja(this.G),a.init(ZE("ad-preview"),c,this.macros),dya(a),g.N(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, c=new fya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.ra),c.init(ZE("instream-user-sentiment"),a,this.macros),g.N(this,c));if(a=g.V(b,Pkb))if(a=g.V(a,Pkb))c=new eya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!!b.showWithoutLinkedMediaLayout),g.N(this,c),c.Ja(this.C),c.init(ZE("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}), c=new ZF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,c),c.Ja(this.j),c.init(ZE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new eG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d),g.N(this,d),d.Ja(this.j),d.init(ZE("ad-duration-remaining"), a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,oM))&&(a=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,a),a.Ja(this.j),a.init(ZE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.V(b.visitAdvertiserRenderer,g.qM))&&(a=uya(this)&&this.D?this.D:this.j)&&(b=new qya(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,b),b.Ja(a),b.init(ZE("visit-advertiser"),d,this.macros),iv(b.element),d=vv(b.element), kv(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.FR(b)&&"3"==b.controlsType&&(b=new hG(this.api,this.B),b.Ja(this.Ea),g.N(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Fv(this.element,"ytp-ad-player-overlay-updated-focus-style");this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()}; iG.prototype.clear=function(){this.hide()};lG.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)}; lG.prototype.get=function(a){return this.j.get(a)}; lG.prototype.remove=function(a){this.j.remove(a)};var Aya=null,Cya=null,Eya=null,Gya=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return Aya}); g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Cya}); g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Eya}); g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Gya});var Iya=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);oG.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Jp.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; oG.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Kya(this,b)};var tnb=window.location.hostname.split(".").slice(-2).join("."),I2;pG.getInstance=function(){I2=g.Xa("yt.clientLocationService.instance");I2||(I2=new pG,g.Va("yt.clientLocationService.instance",I2));return I2}; g.k=pG.prototype; g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)}; g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.FA("INNERTUBE_CLIENT_NAME")?(this.localStorage=Lya(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.lB("YT_CL",JSON.stringify({loctok:a}),15552E3,tnb,!0))}; g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=Lya(this))&&this.localStorage.remove("yt-location-playability-token"):g.dqa("YT_CL")}; g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.FA("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b, maximumAge:0,timeout:c})})}; g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};g.k=Qya.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)}; g.k.get=function(a){if(this.contains(a))return this.j[a]}; g.k.set=function(a,b){this.j[a]=b}; g.k.En=function(){return Object.keys(this.j)}; g.k.remove=function(a){delete this.j[a]};rG.prototype.getModuleId=function(a){return a.serviceId.getModuleId()}; rG.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Ne(b)}}return a}; rG.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a}; new rG;var J2={},Rya=(J2.WEB_UNPLUGGED="^unplugged/",J2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",J2.WEB_UNPLUGGED_OPS="^unplugged/",J2.WEB_UNPLUGGED_PUBLIC="^unplugged/",J2.WEB_CREATOR="^creator/",J2.WEB_KIDS="^kids/",J2.WEB_EXPERIMENTS="^experiments/",J2.WEB_MUSIC="^music/",J2.WEB_REMIX="^music/",J2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",J2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",J2);Tya.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?hD:c;var d={context:g.qG(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.tG(this.C());(e=null==(f=g.V(a.commandMetadata,g.x2))?void 0:f.apiUrl)&&(b=e);f=gqa(fqa(b));a=Object.assign({},{command:a},void 0);d={input:f,Ju:hqa(f),Jp:d,config:a};d.config.Ov?d.config.Ov.identity=c:d.config.Ov={identity:c};return d}g.IE(new g.eC("Error: Failed to create Request from Command.",a))}; g.ha.Object.defineProperties(Tya.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.y(uG,Tya);g.y(vG,uG);vG.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Ju:hqa("/getDatasyncIdsEndpoint","GET"),Jp:{}}}; vG.prototype.C=function(){return[]}; vG.prototype.B=function(){}; vG.prototype.j=function(){};var unb={},Gza=(unb.GET_DATASYNC_IDS=sG(vG),unb);var K2={},$ya=(K2.auto_search="LATENCY_ACTION_AUTO_SEARCH",K2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",K2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",K2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",K2.app_startup="LATENCY_ACTION_APP_STARTUP",K2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",K2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",K2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",K2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS", K2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",K2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",K2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",K2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",K2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",K2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",K2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",K2["asset.metadata"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",K2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",K2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",K2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",K2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",K2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",K2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",K2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS", K2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",K2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",K2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",K2.browse="LATENCY_ACTION_BROWSE",K2.cast_splash="LATENCY_ACTION_CAST_SPLASH",K2.channels="LATENCY_ACTION_CHANNELS",K2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",K2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",K2["channel.comments"]= "LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",K2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",K2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",K2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",K2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",K2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",K2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",K2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", K2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",K2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",K2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",K2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",K2.chips="LATENCY_ACTION_CHIPS",K2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",K2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",K2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT", K2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",K2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",K2.embed="LATENCY_ACTION_EMBED",K2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",K2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",K2.explore="LATENCY_ACTION_EXPLORE",K2.favorites="LATENCY_ACTION_FAVORITES",K2.home="LATENCY_ACTION_HOME",K2.inboarding="LATENCY_ACTION_INBOARDING",K2.library="LATENCY_ACTION_LIBRARY",K2.live= "LATENCY_ACTION_LIVE",K2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",K2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",K2.onboarding="LATENCY_ACTION_ONBOARDING",K2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",K2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",K2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",K2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",K2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",K2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS", K2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",K2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",K2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",K2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",K2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",K2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",K2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",K2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY", K2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",K2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",K2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",K2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",K2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",K2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",K2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",K2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",K2.parent_profile_settings= "LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",K2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",K2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",K2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",K2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",K2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",K2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",K2.prebuffer="LATENCY_ACTION_PREBUFFER",K2.prefetch="LATENCY_ACTION_PREFETCH",K2.profile_settings= "LATENCY_ACTION_KIDS_PROFILE_SETTINGS",K2.profile_switcher="LATENCY_ACTION_LOGIN",K2.reel_watch="LATENCY_ACTION_REEL_WATCH",K2.results="LATENCY_ACTION_RESULTS",K2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",K2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",K2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",K2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",K2.search_ui="LATENCY_ACTION_SEARCH_UI",K2.search_suggest="LATENCY_ACTION_SUGGEST",K2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE", K2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",K2.seek="LATENCY_ACTION_PLAYER_SEEK",K2.settings="LATENCY_ACTION_SETTINGS",K2.store="LATENCY_ACTION_STORE",K2.tenx="LATENCY_ACTION_TENX",K2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",K2.watch="LATENCY_ACTION_WATCH",K2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",K2["watch,watch7"]="LATENCY_ACTION_WATCH",K2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",K2["watch,watch7ad"]="LATENCY_ACTION_WATCH",K2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH", K2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",K2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",K2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",K2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",K2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",K2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",K2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",K2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",K2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC", K2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",K2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",K2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",K2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",K2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",K2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",K2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",K2.cast_load_by_entity_to_watch= "LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",K2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",K2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",K2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",K2);var X={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279, LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170, LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158, LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138, LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81, LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45, LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136, LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA:287,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267, LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING:285,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125, LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT:286,LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235, LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237, LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89, LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50, LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108, LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252, LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207, LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256, LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177, LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181, LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29, LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106, LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,LATENCY_ACTION_FAVORITES:283,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187, LATENCY_ACTION_UNKNOWN:0};X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";X[X.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";X[X.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";X[X.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER"; X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";X[X.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";X[X.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";X[X.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";X[X.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";X[X.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW"; X[X.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";X[X.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER";X[X.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";X[X.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";X[X.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";X[X.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";X[X.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION"; X[X.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";X[X.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";X[X.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";X[X.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";X[X.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC"; X[X.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";X[X.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";X[X.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";X[X.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";X[X.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";X[X.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC"; X[X.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";X[X.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";X[X.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";X[X.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC"; X[X.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";X[X.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";X[X.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";X[X.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";X[X.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT"; X[X.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";X[X.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";X[X.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";X[X.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";X[X.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";X[X.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";X[X.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW"; X[X.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";X[X.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";X[X.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";X[X.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";X[X.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";X[X.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF"; X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";X[X.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";X[X.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";X[X.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";X[X.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM"; X[X.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";X[X.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";X[X.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";X[X.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";X[X.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";X[X.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH"; X[X.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";X[X.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";X[X.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";X[X.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";X[X.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";X[X.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION"; X[X.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";X[X.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";X[X.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";X[X.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";X[X.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";X[X.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";X[X.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES"; X[X.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";X[X.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";X[X.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";X[X.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";X[X.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";X[X.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";X[X.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";X[X.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH"; X[X.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";X[X.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";X[X.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";X[X.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";X[X.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";X[X.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";X[X.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS"; X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE"; X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";X[X.LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA]="LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA";X[X.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";X[X.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD"; X[X.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";X[X.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";X[X.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING]="LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING";X[X.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";X[X.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER"; X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";X[X.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";X[X.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD"; X[X.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";X[X.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM"; X[X.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";X[X.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";X[X.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";X[X.LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT]="LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT";X[X.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";X[X.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT"; X[X.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";X[X.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";X[X.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";X[X.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";X[X.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";X[X.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA"; X[X.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";X[X.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";X[X.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";X[X.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";X[X.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL"; X[X.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";X[X.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";X[X.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";X[X.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE"; X[X.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";X[X.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";X[X.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";X[X.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";X[X.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";X[X.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";X[X.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";X[X.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS"; X[X.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";X[X.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";X[X.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";X[X.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";X[X.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";X[X.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT"; X[X.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";X[X.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR"; X[X.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";X[X.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";X[X.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";X[X.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";X[X.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS"; X[X.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";X[X.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";X[X.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";X[X.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";X[X.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";X[X.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST"; X[X.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";X[X.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";X[X.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";X[X.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS"; X[X.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";X[X.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";X[X.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";X[X.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";X[X.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES"; X[X.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";X[X.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";X[X.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";X[X.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS"; X[X.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES"; X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY"; X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS"; X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS"; X[X.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";X[X.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";X[X.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";X[X.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS"; X[X.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";X[X.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";X[X.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD"; X[X.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";X[X.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";X[X.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";X[X.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS"; X[X.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";X[X.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";X[X.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";X[X.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";X[X.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";X[X.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD"; X[X.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";X[X.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";X[X.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";X[X.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";X[X.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";X[X.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";X[X.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";X[X.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST"; X[X.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";X[X.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";X[X.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";X[X.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";X[X.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";X[X.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";X[X.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL"; X[X.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";X[X.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";X[X.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";X[X.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";X[X.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";X[X.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";X[X.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD"; X[X.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";X[X.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";X[X.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";X[X.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";X[X.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";X[X.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";X[X.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES"; X[X.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";X[X.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";X[X.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";X[X.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";X[X.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";X[X.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";X[X.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";X[X.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";X[X.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME"; X[X.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";X[X.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";X[X.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";X[X.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";X[X.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var QG={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};QG[QG.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";QG[QG.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI"; QG[QG.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var RG={CONN_INVALID:31,CONN_WIRED:30,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};RG[RG.CONN_INVALID]="CONN_INVALID";RG[RG.CONN_WIRED]="CONN_WIRED";RG[RG.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";RG[RG.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA"; RG[RG.CONN_WIFI_METERED]="CONN_WIFI_METERED";RG[RG.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";RG[RG.CONN_DISCO]="CONN_DISCO";RG[RG.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";RG[RG.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";RG[RG.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";RG[RG.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";RG[RG.CONN_WIFI]="CONN_WIFI";RG[RG.CONN_NONE]="CONN_NONE";RG[RG.CONN_UNKNOWN]="CONN_UNKNOWN";RG[RG.CONN_DEFAULT]="CONN_DEFAULT"; var SG={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113, DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};SG[SG.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; SG[SG.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";SG[SG.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";SG[SG.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";SG[SG.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";SG[SG.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";SG[SG.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; SG[SG.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";SG[SG.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";SG[SG.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";SG[SG.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";SG[SG.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";SG[SG.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";SG[SG.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";SG[SG.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; SG[SG.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";SG[SG.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";SG[SG.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";SG[SG.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";SG[SG.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";SG[SG.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";SG[SG.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";SG[SG.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; SG[SG.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";SG[SG.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";SG[SG.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";SG[SG.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var TG={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0}; TG[TG.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";TG[TG.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";TG[TG.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";TG[TG.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";TG[TG.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";TG[TG.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";TG[TG.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";TG[TG.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var UG={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};UG[UG.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";UG[UG.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";UG[UG.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";UG[UG.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var VG={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; VG[VG.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";VG[VG.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var WG={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};WG[WG.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";WG[WG.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";WG[WG.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; WG[WG.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";WG[WG.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";WG[WG.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var XG={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};XG[XG.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";XG[XG.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";XG[XG.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";XG[XG.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var YG={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};YG[YG.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";YG[YG.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";YG[YG.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var ZG={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};ZG[ZG.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; ZG[ZG.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";ZG[ZG.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var dza="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo renderCounters playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata videoMetadataParsingContext".split(" ");g.y(aza,iD);var uza=new jD("aft-recorded",aza);var JG=g.Ta.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",JG);DG.prototype.tick=function(a,b,c,d){KG(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.aB("web_csi_via_jspb")?(d=new fpa,Q(d,1,a),Q(d,2,b),a=g.aB("jspb_sparse_encoded_pivot")?new BA([{}]):new BA,Ik(a,fpa,5,BE,d),AE("latencyActionTicked",a,c)):g.qC("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; DG.prototype.info=function(a,b,c){var d=Object.keys(a).join("");KG(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.qC("latencyActionInfo",a,{cttAuthInfo:c}))}; DG.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=this.start&&(aUF(a,4)&&!(0>UF(a,2))&&qCa(this.Ya,"resume"))}; g.k.Ei=function(){}; g.k.gR=function(a){DJ(this.Ya)&&BJ(this.Ya,1E3*a,!1);0Cnb.length)Anb=void 0;else{var Dnb=Bnb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Anb=Dnb&&6===Dnb.length?Number(Dnb[5].replace("_",".")):0}var IS=Anb,MV=0<=IS;g.y(g.cK,SB);g.cK.prototype.T=function(a,b,c,d,e){return SB.prototype.T.call(this,a,b,c,d,e)};var O2={},FSa=(O2.FAIRPLAY="fairplay",O2.PLAYREADY="playready",O2.WIDEVINE="widevine",O2.CLEARKEY=null,O2.FLASHACCESS=null,O2.UNKNOWN=null,O2.WIDEVINE_CLASSIC=null,O2);dK.prototype.isMultiChannelAudio=function(){return 2this.hE()?(this.Sb.appendWindowEnd=b,this.Sb.appendWindowStart=a):(this.Sb.appendWindowStart=a,this.Sb.appendWindowEnd=b))}; g.k.vP=function(){return this.timestampOffset}; g.k.rq=function(a){ZX?this.timestampOffset=a:this.supports(1)&&(this.Sb.timestampOffset=a)}; g.k.Kc=function(){return ZX?this.timestampOffset:this.supports(1)?this.Sb.timestampOffset:0}; g.k.Je=function(a){if(void 0===a?0:a)return this.FD||this.dk()||(this.QN=this.Je(!1),this.FD=!0),this.QN;try{return this.Sb?this.Sb.buffered:this.pg?this.pg.webkitSourceBuffered(this.id):uK([0],[Infinity])}catch(b){return uK([],[])}}; g.k.dk=function(){var a;return(null==(a=this.Sb)?void 0:a.updating)||!1}; g.k.xm=function(){return this.tI}; g.k.fQ=function(){return!this.tI&&this.dk()}; g.k.nz=function(){this.tI=!1}; g.k.Uw=function(a){var b=null==a?void 0:a.qb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.qb&&a===this.containerType}; g.k.nw=function(){return this.iF}; g.k.kJ=function(){return this.uQ}; g.k.FT=function(a,b){this.containerType!==a&&(this.supports(4),EK()&&this.Sb.changeType(b));this.containerType=a}; g.k.mJ=function(){return this.If}; g.k.isView=function(){return!1}; g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Sb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Sb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Sb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Sb)?0:e.addEventListener)&&(null==(f=this.Sb)?0:f.removeEventListener));case 4:return!(!this.Sb||!this.Sb.changeType);default:return!1}}; g.k.oI=function(){return!this.dk()}; g.k.isLocked=function(){return!1}; g.k.kc=function(a){a.to=this.Kc();a.up=this.dk();var b,c=(null==(b=this.Sb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Sb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=vK(this.Je())}catch(e){}return a}; g.k.CJ=function(){var a;return(null==(a=this.Sb)?void 0:a.writeHead)||0}; g.k.lJ=function(){for(var a={},b=0;bIS&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; g.k.Eo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;JK(this,{l:"mer",sr:null==(a=this.ea)?void 0:KK(a),rs:MK(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.eC("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.IE(a),this.stopVideo()}else this.stopVideo()}; g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Qa)||aEa(b);if(d5a){if(!this.C){var c=new NK;c.then(void 0,function(){}); this.C=c;e5a&&this.pause();g.XA(function(){a.C===c&&(iEa(a),c.resolve())},200)}}else iEa(this)}}; g.k.Sz=function(){var a=this.Sh();return 0performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((null==c?0:c.xm())||b<=((null==c?void 0:c.N)||0)){var d;JK(this,{l:"mede",sr:null==(d=this.ea)?void 0:KK(d),et:a.type});return!1}if(this.OJ)return JK(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.N=performance.now(),this.OJ=!1),!1}return this.D.dispatchEvent(a)}; g.k.CO=function(){this.K=!1}; g.k.zO=function(){this.K=!0;this.RB(!0)}; g.k.VW=function(){this.K&&!this.oJ()&&this.RB(!0)}; g.k.va=function(){this.N&&this.removeEventListener("volumechange",this.VW);d5a&&iEa(this);g.I.prototype.va.call(this)}; var d5a=!1,e5a=!1,f5a=!1,hEa=!1;g.k=g.QK.prototype;g.k.isPaused=function(){return g.TF(this,4)}; g.k.isPlaying=function(){return g.TF(this,8)&&!g.TF(this,512)&&!g.TF(this,64)&&!g.TF(this,2)}; g.k.isOrWillBePlaying=function(){return g.TF(this,8)&&!g.TF(this,2)&&!g.TF(this,1024)}; g.k.isCued=function(){return g.TF(this,64)&&!g.TF(this,8)&&!g.TF(this,4)}; g.k.isBuffering=function(){return g.TF(this,1)&&!g.TF(this,2)}; g.k.isError=function(){return g.TF(this,128)}; g.k.isSuspended=function(){return g.TF(this,512)}; g.k.YE=function(){return g.TF(this,64)&&g.TF(this,4)}; g.k.toString=function(){return"PSt."+this.state.toString(16)}; var U2={},V2=(U2.BUFFERING="buffering-mode",U2.CUED="cued-mode",U2.ENDED="ended-mode",U2.PAUSED="paused-mode",U2.PLAYING="playing-mode",U2.SEEKING="seeking-mode",U2.UNSTARTED="unstarted-mode",U2);g.y(YK,g.I);g.k=YK.prototype;g.k.cP=function(){return this.B}; g.k.Vb=function(){return this.slot}; g.k.eb=function(){return this.layout}; g.k.init=function(){var a=zI(this.layout.Ba,"metadata_type_video_length_seconds"),b=zI(this.layout.Ba,"metadata_type_active_view_traffic_type");vJ(this.layout.Cb)&&s1(this.ub.get(),this.layout.layoutId,b,a,this);vhb(this.Oa.get(),this);this.Jw()}; g.k.release=function(){vJ(this.layout.Cb)&&t1(this.ub.get(),this.layout.layoutId);whb(this.Oa.get(),this);this.Mx()}; g.k.Rr=function(){}; g.k.Ur=function(){}; g.k.startRendering=function(a){var b=ZK(this),c=b.layoutId,d=b.Op;if(b.Tw){var e={};UJ(b.Lf,"slse",(e.ec=c,e.is=d,e.ctp=TJ(c),e))}a.layoutId!==this.layout.layoutId?this.Io.jf(this.slot,a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.hc="rendering_start_requested",this.iq(-1),this.ws(a),this.uf()|| this.fI(!1))}; g.k.vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.hc="rendering";this.j=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();this.Ub("impression");this.Ub("start");if(this.Ha.get().isMuted()){dL(this,"mute");var c;a=(null==(c=XK(this))?void 0:c.muteCommands)||[];ZI(this.Lb.get(),a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Mh("fullscreen");var d;c=(null==(d=XK(this))?void 0:d.fullscreenCommands)||[];ZI(this.Lb.get(),c,this.layout.layoutId)}this.uf()||(d=this.yc.get(), d.D&&!d.B&&(d.G=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?iH("pbs",void 0,d.actionType):eH("pbs",void 0,d.actionType),g.aB("finalize_all_timelines")&&yza(d.actionType))));this.iq(1);this.sR(b);var e;b=(null==(e=XK(this))?void 0:e.impressionCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.YA=function(a,b,c){this.K={rM:3,tH:"load_timeout"===a?402:400,errorMessage:b.message};this.Ub("error");var d;a=(null==(d=XK(this))?void 0:d.errorCommands)||[];ZI(this.Lb.get(),a,this.layout.layoutId);this.uf()||this.Io.jf(this.slot,this.layout,b,c)}; g.k.j2=function(){if("rendering"===this.hc){dL(this,"pause");var a,b=(null==(a=XK(this))?void 0:a.pauseCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId);this.iq(2)}}; g.k.l2=function(){if("rendering"===this.hc){dL(this,"resume");var a,b=(null==(a=XK(this))?void 0:a.resumeCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.Xz=function(a,b){b=void 0===b?!1:b;if("rendering"===this.hc){BJ(this.Ya,1E3*a,b);this.j||BJ(this.Ya,1E3*a,void 0===b?!1:b);var c=this.Rz();c&&(c/=1E3,(a>=.25*c||b)&&this.Ub("first_quartile"),(a>=.5*c||b)&&this.Ub("midpoint"),(a>=.75*c||b)&&this.Ub("third_quartile"),this.Aa.get().J.U().experiments.fb("enable_progress_command_flush_on_kabuki")?LCa(this.C,1E3*a,b):LCa(this.C,1E3*a,rEa(this)?b:!1))}}; g.k.Jg=function(){var a;return(null==(a=this.Ra.get().Yd(1))?void 0:a.clientPlaybackNonce)||""}; g.k.dJ=function(){var a;return(null==(a=this.Ra.get().Yd(2))?void 0:a.clientPlaybackNonce)||""}; g.k.qy=function(a,b){a.layoutId!==this.layout.layoutId?this.Io.jf(this.slot,a,new wI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()}; g.k.Ec=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.hc="not_rendering",this.layoutExitReason=void 0,this.uf()||(a="normal"!==c||this.position+1===this.G)&&this.fI(a),this.JK(b,c),this.iq(0),c){case "abandoned":if(CJ(this.Ya,"impression")){var d,e=(null==(d=XK(this))?void 0:d.abandonCommands)||[];ZI(this.Lb.get(),e,this.layout.layoutId)}break;case "normal":d=(null==(e=XK(this))?void 0:e.completeCommands)||[];ZI(this.Lb.get(),d,this.layout.layoutId);break;case "skipped":var f;d= (null==(f=XK(this))?void 0:f.skipCommands)||[];ZI(this.Lb.get(),d,this.layout.layoutId)}}; g.k.pw=function(){return this.layout.layoutId}; g.k.RO=function(){return this.K}; g.k.tx=function(){if("rendering"===this.hc){this.Ya.Ub("active_view_measurable");var a,b=(null==(a=XK(this))?void 0:a.activeViewMeasurableCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.sx=function(){if("rendering"===this.hc){this.Ya.Ub("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=XK(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.vx=function(){if("rendering"===this.hc){this.Ya.Ub("active_view_viewable");var a,b=(null==(a=XK(this))?void 0:a.activeViewViewableCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.ox=function(){if("rendering"===this.hc){this.Ya.Ub("audio_audible");var a,b=(null==(a=XK(this))?void 0:a.activeViewAudioAudibleCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.qx=function(){if("rendering"===this.hc){this.Ya.Ub("audio_measurable");var a,b=(null==(a=XK(this))?void 0:a.activeViewAudioMeasurableCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}}; g.k.fI=function(a){this.yc.get().fI(zI(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.G,!1)}; g.k.onFullscreenToggled=function(a){if("rendering"===this.hc)if(a){this.Mh("fullscreen");var b,c=(null==(b=XK(this))?void 0:b.fullscreenCommands)||[];ZI(this.Lb.get(),c,this.layout.layoutId)}else this.Mh("end_fullscreen"),b=(null==(c=XK(this))?void 0:c.endFullscreenCommands)||[],ZI(this.Lb.get(),b,this.layout.layoutId)}; g.k.onVolumeChange=function(){if("rendering"===this.hc)if(this.Ha.get().isMuted()){dL(this,"mute");var a,b=(null==(a=XK(this))?void 0:a.muteCommands)||[];ZI(this.Lb.get(),b,this.layout.layoutId)}else dL(this,"unmute"),a=(null==(b=XK(this))?void 0:b.unmuteCommands)||[],ZI(this.Lb.get(),a,this.layout.layoutId)}; g.k.jh=function(){}; g.k.yj=function(){}; g.k.Vi=function(){}; g.k.xj=function(){}; g.k.Aj=function(){}; g.k.Mh=function(a){this.Ya.Mh(a,!this.j)}; g.k.Ub=function(a){this.Ya.Ub(a,!this.j)}; g.k.uf=function(){var a=zI(this.slot.Ba,"metadata_type_eligible_for_ssap");return void 0===a?(RF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Aa.get().uf(a)};g.y(gL,YK);g.k=gL.prototype;g.k.jO=function(){this.layoutExitReason?this.Io.Ec(this.slot,this.layout,this.layoutExitReason):nEa(this)}; g.k.Jw=function(){}; g.k.Mx=function(){var a=this.Oa.get();a.gH===this&&(a.gH=null);this.We.stop()}; g.k.Rr=function(){this.We.stop();YK.prototype.j2.call(this)}; g.k.Ur=function(){tEa(this);YK.prototype.l2.call(this)}; g.k.Rz=function(){return zI(this.eb().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Gd=function(a,b){var c=this;this.qy(a,function(){"rendering_stop_requested"!==c.hc&&(c.hc="rendering_stop_requested",c.layoutExitReason=b,$K(c,b),c.We.stop())})}; g.k.JP=function(){zDa(ZK(this));this.Xs()}; g.k.Sc=function(){var a=Date.now(),b=a-this.xQ;this.xQ=a;this.cj+=b;this.cj>=this.Rz()?this.qY():(this.Xz(this.cj/1E3),sEa(this,this.cj))}; g.k.JK=function(){}; g.k.Ei=function(){}; g.y(vEa,gL);g.k=vEa.prototype;g.k.kh=function(a){if("not_rendering"!==this.hc){a=aL(this,a);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.hc?b&&PJ(a)&&this.xz():b?g.VF(a,2)?RF("Receive player ended event during MediaBreak",this.Vb(),this.eb()):bL(this,a):this.Bw()}}; g.k.ws=function(){pEa(this);Ghb(this.Ha.get());this.Oa.get().gH=this;hH("pbp")||hH("pbs")||iH("pbp");hH("pbp","watch")||hH("pbs","watch")||iH("pbp",void 0,"watch");this.xz()}; g.k.sR=function(a){this.yc.get();var b=zI(a.Ba,"metadata_type_ad_placement_config").kind,c=0===this.position;a=zI(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:cL(b),adType:IEa(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";eH("ad_mbs",void 0,d);g.fH(a,d);tEa(this)}; g.k.Bw=function(){this.Xs()}; g.k.qY=function(){uEa(this);this.Xs()}; g.y(hL,gL);g.k=hL.prototype;g.k.kh=function(a){"not_rendering"!==this.hc&&(a=aL(this,a),bL(this,a))}; g.k.ws=function(){this.Oa.get().gH=this;this.xz()}; g.k.sR=function(){tEa(this)}; g.k.Bw=function(){oEa(this);this.Xs()}; g.k.qY=function(){uEa(this);this.Io.HB(this.Vb(),this.eb(),"normal")}; g.y(wEa,hL);wEa.prototype.Gd=function(a,b){var c=this;this.qy(a,function(){tDa(c.B,b)&&(c.hc="rendering_stop_requested",c.layoutExitReason=b,$K(c,b),c.We.stop())})};g.y(kL,YK);g.k=kL.prototype;g.k.jO=function(){this.layoutExitReason?this.Io.Ec(this.slot,this.layout,this.layoutExitReason):nEa(this)}; g.k.Bw=function(){oEa(this);this.Xs()}; g.k.kh=function(a){if("not_rendering"!==this.hc){a=aL(this,a);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.hc?b&&PJ(a)&&this.xz():b?g.VF(a,2)?this.Xs():bL(this,a):this.Bw()}}; g.k.Jw=function(){zI(this.eb().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=zI(this.eb().Ba,"metadata_type_shrunken_player_bytes_config")}; g.k.Mx=function(){zI(this.eb().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.Ws&&this.Oc.get().removeCueRange(this.Ws);this.Ws=void 0;var a;null==(a=this.pK)||a.dispose();this.QA&&this.QA.dispose()}; g.k.ws=function(a){var b=iL(this.Aa.get()),c=jL(this.Aa.get());if(b&&c&&!this.uf()){c=zI(a.Ba,"metadata_type_preload_player_vars");var d=g.EI(this.Aa.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.QA&&this.QA.start(1E3*d)}AEa(this,a);pEa(this);b?(c=this.ud.get(),a=zI(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):Phb(this.ud.get(),zI(a.Ba,"metadata_type_player_vars"));var e;null==(e=this.pK)||e.start();b||this.ud.get().J.playVideo(2)}; g.k.sR=function(){var a;null==(a=this.pK)||a.stop();this.Ws="adcompletioncuerange:"+this.eb().layoutId;this.Oc.get().addCueRange(this.Ws,0x7ffffffffffff,0x8000000000000,!1,this,2,2);QM(this.context.Aa.get())&&(a={},this.context.Pq.Dm("mccr",(a.cid=this.Ws,a)));(this.adCpn=this.dJ())||RF("Media layout confirmed started, but ad CPN not set.");this.Xc.get().Gu("onAdStart",this.adCpn);this.mW=Date.now()}; g.k.Rz=function(){var a;return null==(a=this.Ra.get().Yd(2))?void 0:a.Cca}; g.k.xL=function(){this.Ya.Mh("clickthrough")}; g.k.Gd=function(a,b){var c=this;this.qy(a,function(){if("rendering_stop_requested"!==c.hc){c.hc="rendering_stop_requested";c.layoutExitReason=b;$K(c,b);var d;null==(d=c.pK)||d.stop();c.QA&&c.QA.stop();BEa(c)}})}; g.k.onCueRangeEnter=function(a){a!==this.Ws?RF("Received CueRangeEnter signal for unknown layout.",this.Vb(),this.eb(),{cueRangeId:a}):(this.Oc.get().removeCueRange(this.Ws),this.Ws=void 0,a=zI(this.eb().Ba,"metadata_type_video_length_seconds"),this.Xz(a,!0),this.Ub("complete"))}; g.k.JK=function(a,b){"abandoned"!==b&&this.Xc.get().Gu("onAdComplete");this.Xc.get().Gu("onAdEnd",this.adCpn)}; g.k.JP=function(){zDa(ZK(this));this.Xs()}; g.k.onCueRangeExit=function(){}; g.k.Ei=function(a){"rendering"===this.hc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().WB(!0),this.Xz(a))}; g.k.Xz=function(a,b){YK.prototype.Xz.call(this,a,void 0===b?!1:b);if(5<=a&&!this.BY){b=Date.now()-this.mW;a*=1E3;var c={contentCpn:this.Jg(),adCpn:this.dJ()},d=1E3>b?0:1;iya(d,"i.k_",{metadata:c,D6:b,E6:Math.floor(a/1E3)});EA("IKDSTAT",d);0===d&&this.dT()&&this.Xc.get().Gu("onAbnormalityDetected");this.BY=!0}}; g.k.dT=function(){if(!this.Aa.get().dT())return!1;var a=zI(this.Vb().Ba,"metadata_type_player_bytes_slot_metadata");void 0===a&&RF("PlayerBytesSlotMetadata is not filled",this.Vb(),this.eb());return!0===(null==a?void 0:a.Ut)};g.y(lL,kL);lL.prototype.kh=function(a){"not_rendering"!==this.hc&&(a=aL(this,a),bL(this,a))}; lL.prototype.ws=function(a){AEa(this,a);this.xz()}; g.y(CEa,lL);CEa.prototype.Gd=function(a,b){var c=this;this.qy(a,function(){tDa(c.B,b)&&(c.hc="rendering_stop_requested",c.layoutExitReason=b,$K(c,b),BEa(c))})};g.y(KEa,g.I);g.k=KEa.prototype;g.k.init=function(){var a=zI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ra.get().addListener(this);this.Hd.init();uDa([this.layout],this.Ra.get());this.BN()}; g.k.BN=function(){var a=zI(this.Hd.eb().Ba,"metadata_type_player_vars");a?this.ud.get().addPlayerResponseForAssociation({playerVars:a}):(a=JEa(this.Hd.eb()),this.ud.get().addPlayerResponseForAssociation({FI:a}))}; g.k.release=function(){this.Ra.get().removeListener(this);this.Hd.release();vDa()}; g.k.MK=function(){}; g.k.dB=function(a,b,c){BDa({cpn:a,Lf:this.Ra.get(),Op:!0});if(this.layout.layoutId===a)if(void 0!==this.j){var d=this.j;3!==c&&RF("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.As.Ec(this.slot,this.layout,d);this.j=void 0}else this.B&&RF("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,2===c?qL(this.rf,this.layout,"normal"):4===c?(a=new wI("Non video ad expired during SSAP single layout.", {playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Hd.YA("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.As.jf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):RF("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})}; g.k.GF=function(a){ADa({cpn:a,Lf:this.Ra.get(),Op:!0});this.layout.layoutId===a&&$Ia(this.ze,this.slot.slotId)}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.As.jf(this.Vb(),a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),GI(this.wc(),this),this.Hd.startRendering(this.layout),this.As.vc(this.slot,this.layout))}; g.k.Gd=function(a,b){this.Hd.Gd(this.layout,b);this.Ha.get().removeListener(this);this.B?(this.As.Ec(this.slot,this.layout,b),this.B=!1):(void 0!==this.j&&RF("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.Mc.get().finishSegmentByCpn(this.layout.layoutId,this.Ra.get().Yd(1).clientPlaybackNonce))}; g.k.Vb=function(){return this.slot}; g.k.eb=function(){return this.layout}; g.k.Rr=function(){this.Hd.Rr()}; g.k.Ur=function(){this.Hd.Ur()}; g.k.kB=function(a,b){RF("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})}; g.k.vc=function(a,b){this.Hd.vc(a,b)}; g.k.Ec=function(a,b,c){b.layoutId===this.layout.layoutId&&HI(this.wc(),this);this.Hd.Ec(a,b,c)}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.Mg=function(){}; g.k.Ei=function(a){this.Hd.Ei(a)}; g.k.kh=function(a){if(a.state.isError()){var b,c=new wI("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Ig)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Hd.YA(null==(d=a.state.Ig)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.As.jf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Hd.kh(a)}; g.k.onFullscreenToggled=function(a){this.Hd.onFullscreenToggled(a)}; g.k.jh=function(a){this.Hd.jh(a)}; g.k.Vi=function(a){this.Hd.Vi(a)}; g.k.onVolumeChange=function(){this.Hd.onVolumeChange()}; g.k.xj=function(){}; g.k.Aj=function(){}; g.k.yj=function(){};g.y(mL,g.I);g.k=mL.prototype;g.k.Vb=function(){return this.slot}; g.k.eb=function(){return this.layout}; g.k.MK=function(){}; g.k.Rr=function(a,b){var c=this.xd[this.jd];b.layoutId!==oL(c,a,b)?RF("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Rr()}; g.k.Ur=function(a,b){var c=this.xd[this.jd];b.layoutId!==oL(c,a,b)?RF("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Ur()}; g.k.kB=function(a,b){var c=this.xd[this.jd];this.jd===this.xd.length-1&&RF("Unexpected skip requested during the last sublayout",c.Vb(),c.eb(),{requestingSlot:a,requestingLayout:b});b.layoutId!==oL(c,a,b)?RF("onSkipRequested for a PlayerBytes layout that is not currently active",c.Vb(),c.eb(),{requestingSlot:a,requestingLayout:b}):this.ZI(c.Vb(),c.eb(),"skipped")}; g.k.aca=function(a,b){var c=Object.assign({},nL(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Op;if(c.Tw){var f={};UJ(c.Lf,"wrse",(f.ec=d,f.is=e,f.ctp=TJ(d),f))}nBa(this.xs,a,b)}; g.k.vc=function(a,b){var c=this.xd[this.jd];c&&c.vc(a,b)}; g.k.Ec=function(a,b,c){b.layoutId===this.eb().layoutId&&(this.Iw=!1,HI(this.wc(),this));var d=this.xd[this.jd];d&&d.Ec(a,b,c)}; g.k.CQ=function(){var a=this.xd[this.jd];a&&a.Bw()}; g.k.Ei=function(a){var b=this.xd[this.jd];b&&b.Ei(a)}; g.k.CP=function(a,b,c){-1===this.jd&&(this.callback.vc(this.slot,this.layout),this.jd++);var d=this.xd[this.jd];d?(d.YA(a,b,c),this.uf()&&this.callback.jf(this.slot,this.layout,b,c)):RF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.jd),layoutId:this.eb().layoutId})}; g.k.onFullscreenToggled=function(a){var b=this.xd[this.jd];if(b)b.onFullscreenToggled(a)}; g.k.jh=function(a){var b=this.xd[this.jd];b&&b.jh(a)}; g.k.Vi=function(a){var b=this.xd[this.jd];b&&b.Vi(a)}; g.k.onVolumeChange=function(){var a=this.xd[this.jd];if(a)a.onVolumeChange()}; g.k.kO=function(a,b,c){oBa(this.xs,a,b,c);this.LP=!1}; g.k.I1=function(a){this.LP=!0;a.startRendering(a.eb())}; g.k.init=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ra.get().Yd(1).daiEnabled&&RF("Unexpected VOD LRA on DAI content",this.slot,this.layout);if(1>this.xd.length)throw new xI("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.xd.length)});if(a=zI(this.eb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.u(this.xd);for(var b=a.next();!b.done;b=a.next())b= b.value,b.init(),kBa(this.xs,this.slot,b.eb()),lBa(this.xs,this.slot,b.eb());if(this.uf())for(this.Ra.get().addListener(this),uDa(MEa(this),this.Ra.get()),a=MEa(this),a=g.u(a),b=a.next();!b.done;b=a.next())this.BN(b.value)}; g.k.BN=function(a){var b=zI(a.Ba,"metadata_type_player_vars");b?("LAYOUT_TYPE_MEDIA"!==a.layoutType&&RF("Non-video ad contains playerVars",this.slot,a),this.ud.get().addPlayerResponseForAssociation({playerVars:b})):(a=JEa(a),this.ud.get().addPlayerResponseForAssociation({FI:a}))}; g.k.release=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=zI(this.eb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.u(this.xd);for(var b=a.next();!b.done;b=a.next())b=b.value,mBa(this.xs,this.slot,b.eb()),b.release();this.uf()&&(this.Ra.get().removeListener(this),vDa())}; g.k.qy=function(a){return a.layoutId!==this.eb().layoutId?(this.callback.jf(this.Vb(),a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.eb().layoutId+("and LayoutType: "+this.eb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.k.ZH=function(){this.Ha.get().addListener(this);GI(this.wc(),this)}; g.k.kh=function(a){if(a.state.isError()){var b,c;this.CP(null==(b=a.state.Ig)?void 0:b.errorCode,new wI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ig)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.xd[this.jd])&&b.kh(a)}; g.k.uf=function(){var a=zI(this.Vb().Ba,"metadata_type_eligible_for_ssap");return void 0===a?(RF("Expected SSAP eligibility in PlayerBytes slots",this.Vb(),this.eb()),!1):this.Aa.get().uf(a)}; g.k.yj=function(){}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.Mg=function(){}; g.k.xj=function(){}; g.k.Aj=function(){}; g.y(SEa,mL);g.k=SEa.prototype;g.k.O_=function(a,b,c){this.ZI(a,b,c)}; g.k.N_=function(a,b){this.ZI(a,b,"error")}; g.k.ZI=function(a,b,c){var d=this;pL(this,a,b,c,function(){PEa(d,d.jd+1)})}; g.k.startRendering=function(a){this.qy(a)&&(this.ZH(),o1(this.Aa.get())&&i1(this.yc.get()),dhb(this.Aa.get())||Ghb(this.Ha.get()),o1(this.Aa.get())||i1(this.yc.get()),-1===this.jd&&PEa(this,this.jd+1))}; g.k.Gd=function(a,b){var c=this;this.Iw=!0;this.jd===this.xd.length?this.callback.Ec(this.slot,this.layout,b):(a=this.xd[this.jd],a.Gd(a.eb(),b),this.UP=function(){c.callback.Ec(c.slot,c.layout,b)}); this.Ha.get().J.Nx();Phb(this.ud.get(),{});a=r1(this.Ha.get(),1);a.isPaused()&&!g.TF(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.Iw&&this.CQ()}; g.k.dB=function(){}; g.k.GF=function(){}; g.k.HB=function(){}; g.k.yI=function(){}; g.y(rL,mL);g.k=rL.prototype;g.k.dB=function(a,b){var c=this;BDa(Object.assign({},nL(this),{cpn:a}));var d=this.xd[this.jd];d&&this.LP&&(d.eb().layoutId!==a&&RF("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.SW=function(e){e.layoutId!==a&&RF("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.xd.some(function(f){return f.eb().layoutId===b})||(c.jd=c.xd.length,qL(c.Yh,c.layout,"normal"))},d.JP())}; g.k.GF=function(a){ADa(Object.assign({},nL(this),{cpn:a}));var b=this.xd.findIndex(function(c){return c.eb().layoutId===a}); -1!==b&&(-1===this.jd&&$Ia(this.ze,this.slot.slotId),REa(this,b))}; g.k.O_=function(a,b,c){a=Object.assign({},nL(this),{layoutId:b.layoutId,layoutExitReason:c});var d=a.layoutId,e=a.layoutExitReason,f={};UJ(a.Lf,"prse",(f.xc=d,f.ler=e,f.ctp=TJ(d),f));TEa(this,b,c)}; g.k.N_=function(a,b,c,d){this.callback.jf(this.slot,this.layout,c,d)}; g.k.ZI=function(a,b,c){this.yI(b,this.jd+1,c)}; g.k.startRendering=function(a){this.qy(a)&&this.ZH()}; g.k.Gd=function(a,b){var c=this;if(this.jd===this.xd.length)this.callback.Ec(this.slot,this.layout,b);else{a=this.xd[this.jd];if(!a){RF("Expected active sublayout when composite layout stops rendering",this.slot,this.layout,{activeSubLayoutIndex:this.jd,subLraCount:this.xd.length});return}a.Gd(a.eb(),b);this.UP=function(){c.callback.Ec(c.slot,c.layout,b)}; this.Mc.get().finishSegmentByCpn(a.eb().layoutId,this.Ra.get().Yd(1).clientPlaybackNonce)}this.Ha.get().removeListener(this)}; g.k.HB=function(a,b,c){this.yI(b,this.jd+1,c)}; g.k.yI=function(a,b,c){var d=this;pL(this,this.slot,a,c,function(){if(b>=d.xd.length+1||0>b)RF("Unexpected target sublayout index",d.slot,d.layout,{targetSubLayoutIndex:b});else{d.jd=b;if(b===d.xd.length){var e=d.Ra.get().Yd(1).clientPlaybackNonce;qL(d.Yh,d.layout,"normal")}else e=d.xd[b].eb().layoutId;d.Mc.get().finishSegmentByCpn(a.layoutId,e)}})}; g.y(UEa,rL);g.k=UEa.prototype;g.k.I1=function(a){QF(void 0===this.Ri,"replacing another adapter");this.Ri=a;a.startRendering(a.eb())}; g.k.kO=function(a,b,c){oBa(this.xs,a,b,c);var d;QF(b.layoutId===(null==(d=this.Ri)?void 0:d.eb().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:lya(b)})&&(this.Ri=void 0)}; g.k.release=function(){rL.prototype.release.call(this);QF(void 0===this.Ri,"currentAdapter is still active during release");this.Ri=void 0}; g.k.Gd=function(a,b){QF(a.layoutId===this.eb().layoutId,"StopRendering for wrong layout")&&tDa(this.hO,b)&&this.Ri&&(this.Ri.Gd(this.Ri.eb(),b),2===this.Ha.get().getPresentingPlayerType()&&this.Mc.get().finishSegmentByCpn(this.Ri.eb().layoutId,this.Ra.get().Yd(1).clientPlaybackNonce))}; g.k.Ec=function(a,b,c){rL.prototype.Ec.call(this,a,b,c);b.layoutId===this.eb().layoutId&&this.Ha.get().removeListener(this)}; g.k.Jg=function(){return this.Ra.get().Yd(1).clientPlaybackNonce}; g.k.dB=function(a,b,c){BDa(Object.assign({},nL(this),{cpn:a}));this.Ri&&this.Ri.eb().layoutId===a&&WEa(this,this.Ri,c);b===this.Jg()&&(void 0!==this.Ri&&(RF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:lya(this.Ri.eb())}),WEa(this,this.Ri,c)),2>this.hO.currentState&&qL(this.Yh,this.layout,VEa(c)),this.callback.Ec(this.slot,this.layout,this.hO.j))};g.y(YEa,g.I);g.k=YEa.prototype;g.k.Vb=function(){return this.Hd.Vb()}; g.k.eb=function(){return this.Hd.eb()}; g.k.init=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Jw()}; g.k.Jw=function(){this.Hd.init()}; g.k.release=function(){var a=zI(this.eb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Mx()}; g.k.Mx=function(){this.Hd.release()}; g.k.Rr=function(){this.Hd.Rr()}; g.k.Ur=function(){this.Hd.Ur()}; g.k.kB=function(a,b){RF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Vb(),this.eb(),{requestingSlot:a,requestingLayout:b})}; g.k.startRendering=function(a){a.layoutId!==this.eb().layoutId?this.callback.jf(this.Vb(),a,new wI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.eb().layoutId+("and LayoutType: "+this.eb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),GI(this.wc(),this),o1(this.Aa.get())&&i1(this.yc.get()),dhb(this.Aa.get())||Ghb(this.Ha.get()),o1(this.Aa.get())||i1(this.yc.get()),this.ws(a))}; g.k.ws=function(a){this.Hd.startRendering(a)}; g.k.Gd=function(a,b){this.Iw=!0;this.TL(a,b);this.Ha.get().J.Nx();Phb(this.ud.get(),{});a=r1(this.Ha.get(),1);a.isPaused()&&!g.TF(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.Iw&&this.CQ()}; g.k.TL=function(a,b){this.Hd.Gd(a,b)}; g.k.vc=function(a,b){this.Hd.vc(a,b)}; g.k.Ec=function(a,b,c){this.JK(b,c);this.Hd.Ec(a,b,c);b.layoutId===this.eb().layoutId&&QEa(this.yc.get())}; g.k.JK=function(a){a.layoutId===this.eb().layoutId&&(this.Iw=!1,HI(this.wc(),this))}; g.k.CQ=function(){this.Hd.Bw()}; g.k.Ei=function(a){this.Hd.Ei(a)}; g.k.kh=function(a){if(a.state.isError()){var b,c;this.CP(null==(b=a.state.Ig)?void 0:b.errorCode,new wI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ig)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Hd.kh(a)}; g.k.CP=function(a,b,c){this.Hd.YA(a,b,c)}; g.k.onFullscreenToggled=function(a){this.Hd.onFullscreenToggled(a)}; g.k.jh=function(a){this.Hd.jh(a)}; g.k.Vi=function(a){this.Hd.Vi(a)}; g.k.onVolumeChange=function(){this.Hd.onVolumeChange()}; g.k.yj=function(){}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.Mg=function(){}; g.k.xj=function(){}; g.k.Aj=function(){};g.k=sL.prototype;g.k.Vb=function(){return this.slot}; g.k.eb=function(){return this.layout}; g.k.init=function(){this.Af.get().addListener(this);this.Ha.get().addListener(this);this.Jw();var a=zI(this.layout.Ba,"metadata_type_layout_enter_ms"),b=zI(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ra.get().dw)?void 0:c.clientPlaybackNonce;c=this.layout.Yb.adClientDataEntry;tL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Af.get();e=$Ea(e.C,a,b);null!==e&&(tL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Mc.get().mz(e,b))}; g.k.release=function(){this.Mx();this.Af.get().removeListener(this);this.Ha.get().removeListener(this)}; g.k.startRendering=function(){this.ws();this.callback.vc(this.slot,this.layout)}; g.k.Gd=function(a,b){this.TL(b);null!==this.driftRecoveryMs&&(bFa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(aFa(this)-zI(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().J.jr()).toString()}),this.driftRecoveryMs=null);this.callback.Ec(this.slot,this.layout,b)}; g.k.w_=function(){return!1}; g.k.s_=function(a){var b=zI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=zI(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&YM(this.D,this.layout)}; g.k.onVolumeChange=function(){}; g.k.Ei=function(){}; g.k.onFullscreenToggled=function(){}; g.k.jh=function(){}; g.k.yj=function(){}; g.k.kh=function(){}; g.k.xj=function(){}; g.k.Aj=function(){}; g.k.va=function(){rJ.prototype.va.call(this)}; g.k.release=function(){rJ.prototype.release.call(this);this.Ha.get().removeListener(this)};JFa.prototype.build=function(a,b,c,d){if(b=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.D,this.j,this.Aa))return b;if(GJ(d,GFa()))return new BL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.C,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));if(GJ(d,FFa()))return new AL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));if(GJ(d,{Kd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Ge:["LAYOUT_TYPE_SURVEY"]}))return new IFa(c,d,a,this.Cc,this.B,this.Ha,this.Aa);if(GJ(d, {Kd:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Ge:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new xL(c,d,a,this.Cc,this.Oa);if(GJ(d,mDa()))return new LJ(c,d,a,this.Cc,this.Ha,this.Aa);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};KFa.prototype.build=function(a,b,c,d){if(b=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.D,this.j,this.Aa))return b;if(GJ(d,GFa()))return new BL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.C,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));if(GJ(d,FFa()))return new AL(c,d,this.Oa,this.ub,this.Cc,a,this.B,this.Ha,this.Lb,this.Aa,this.j,new CL(this.Ha));throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.y(DL,KJ);DL.prototype.startRendering=function(a){KJ.prototype.startRendering.call(this,a);if(a.renderingContent?fDa(a,this.Ra.get().Yd(2)||void 0):zI(this.layout.Ba,"metadata_ad_video_is_listed"))a=a.renderingContent?eDa(a,this.Ra.get().Yd(2)||void 0):zI(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.dn.get().J.jb("onAdMetadataAvailable",a)};MFa.prototype.build=function(a,b,c,d){if(GJ(d,LFa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===d.layoutType&&void 0!==g.V(d.renderingContent,MJ))return new DL(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.dn,this.j,this.Ra);throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};NFa.prototype.build=function(a,b,c,d){if(GJ(d,LFa()))return new DL(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.dn,this.j,this.Ra);if(a=OJ(a,c,d,this.Cc,this.Ha,this.Oa,this.B,this.j,this.Aa))return a;throw new wI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+AI(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};SL.prototype.clone=function(a){var b=this;return new SL(function(){return b.triggerId},a)};TL.prototype.clone=function(a){var b=this;return new TL(function(){return b.triggerId},a)};UL.prototype.clone=function(a){var b=this;return new UL(function(){return b.triggerId},a)};VL.prototype.clone=function(a){var b=this;return new VL(function(){return b.triggerId},a)};WL.prototype.clone=function(a){var b=this;return new WL(function(){return b.triggerId},a)};XL.prototype.clone=function(a){var b=this;return new XL(function(){return b.triggerId},a)};g.y(sM,g.I);var qHa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Tc:[],layoutExitUserInputSubmittedTriggers:[]};var UHa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15, "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var KR={YRa:1,ZRa:2,aSa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.y(JM,g.I);g.k=JM.prototype;g.k.w_=function(a){if(!this.j){var b;null==(b=this.Mc)||b.get().Du(a.identifier);return!1}IIa(this,this.j,a);return!0}; g.k.s_=function(){}; g.k.lk=function(a){this.j&&this.j.contentCpn!==a&&(RF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.k.ao=function(a){this.j&&this.j.contentCpn!==a&&RF("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null}; g.k.va=function(){g.I.prototype.va.call(this);this.j=null};var K1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Onb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.y(MM,g.I);g.k=MM.prototype;g.k.vc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(uI(b,this.K)||uI(b,Onb))){var d=this.Ra.get().Yd(2),e=this.D(b,d||void 0);e?oJ(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[cHa(c.j.get(),e.contentCpn,e.xq,function(h){return c.G(h.slotId,"core",e,DI(c.Ne.get(),h))},e.inPlayerSlotId)]; e.instreamAdPlayerUnderlayRenderer&&dHa(c.Aa.get())&&f.push(OIa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):RF("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.sf=function(){}; g.k.Hh=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.Mg=function(){}; g.k.Ec=function(){};g.y(NM,g.I);NM.prototype.lk=function(a,b,c,d,e,f,h){var l=this,m=this.Ra.get().Yd(1);!ahb(this.Aa.get())&&m.mp?y1(this.Ha.get()):(Xgb(this.yc.get(),d),oJ(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return EGa(l.j.get(),d,e,f,a,b,h,m,"")}),Tib(this.C))}; NM.prototype.ao=function(){};g.y(OM,g.I);g.y(PM,g.I);PM.prototype.onCueRangeEnter=function(){}; PM.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Oc.get().removeCueRange(a),oJ(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=pJ(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?hJa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:iJa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:iJa(c.slotId,d,c.slotExpirationTriggers)})]}, c.slotId))}; PM.prototype.lk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Oc.get().removeCueRange(b);this.j.clear()}; PM.prototype.ao=function(){};g.y(RM,g.I);g.k=RM.prototype;g.k.Ng=function(){}; g.k.Kh=function(a){var b=this;g.jC(g.lC(),function(){var c=b.j.get(a);c&&RF("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.qa(c)).map(function(d){return d.layoutType})})},0)}; g.k.sf=function(){}; g.k.Hh=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)}; g.k.gg=function(a,b){this.aj.has(a)&&this.aj.get(a)===b&&RF("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):RF("Trying to unscheduled a Layout that was not scheduled.",a,b)}else RF("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.k.vc=function(a,b){this.aj.set(a,b)}; g.k.Ec=function(a){this.aj.delete(a)}; g.k.Mg=function(){};g.k=RIa.prototype;g.k.init=function(){}; g.k.Vb=function(){return this.slot}; g.k.UI=function(){this.callback.sf(this.slot)}; g.k.XI=function(){this.callback.tf(this.slot)}; g.k.release=function(){};SM.prototype.build=function(a,b){return new RIa(a,b)};g.k=SIa.prototype;g.k.init=function(){}; g.k.Vb=function(){return this.slot}; g.k.UI=function(){z1(this.Ha.get(),"ad-showing");this.callback.sf(this.slot)}; g.k.XI=function(){this.callback.tf(this.slot);A1(this.Ha.get(),"ad-showing")}; g.k.release=function(){};g.k=TIa.prototype;g.k.init=function(){}; g.k.Vb=function(){return this.slot}; g.k.UI=function(){z1(this.Ha.get(),"ad-showing");z1(this.Ha.get(),"ad-interrupting");this.B=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.sf(this.slot)}; g.k.XI=function(){A1(this.Ha.get(),"ad-showing");A1(this.Ha.get(),"ad-interrupting");var a=this.B?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().J.seekTo(a,void 0,void 0,1);this.callback.tf(this.slot)}; g.k.release=function(){};g.k=UIa.prototype;g.k.init=function(){}; g.k.Vb=function(){return this.slot}; g.k.UI=function(){z1(this.Ha.get(),"ad-showing");z1(this.Ha.get(),"ad-interrupting");this.callback.sf(this.slot)}; g.k.XI=function(){y1(this.Ha.get());A1(this.Ha.get(),"ad-showing");A1(this.Ha.get(),"ad-interrupting");this.callback.tf(this.slot)}; g.k.release=function(){y1(this.Ha.get())};TM.prototype.build=function(a,b){if(BI(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new SIa(a,b,this.Ha);if(b.slotEntryTrigger instanceof NL&&BI(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new TIa(a,b,this.Ha);if(BI(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new UIa(a,b,this.Ha);throw new xI("Unsupported slot with type "+b.slotType+" and client metadata: "+(AI(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.y(UM,g.I);UM.prototype.j=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof RL&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?QI(this.XM(),b):RF("Mute requested but no registered triggers can be activated.")};g.y(VM,UM);g.k=VM.prototype;g.k.eg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof RL&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&QI(this.XM(),a)}else FM(this.Aa.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&VIa(this,b):"survey-submit"===a?VIa(this,b):"survey-single-select-answer-button"===a&&VIa(this,b)}; g.k.EP=function(a){UM.prototype.j.call(this,a)}; g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof YL||b instanceof RL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Wb.set(b.triggerId,new $L(a,b,c,d))}; g.k.Al=function(a){this.Wb.delete(a.triggerId)}; g.k.BP=function(){}; g.k.AP=function(){}; g.k.EJ=function(){};g.y(WM,g.I);g.k=WM.prototype; g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof SL||b instanceof TL||b instanceof UL||b instanceof VL||b instanceof WL||b instanceof XL||b instanceof VFa||b instanceof KL||b instanceof ML||b instanceof LL||b instanceof OL||b instanceof JL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new $L(a,b,c,d);this.Wb.set(b.triggerId,a);b instanceof WL&&this.G.has(b.triggeringSlotId)&&QI(this.j(),[a]);b instanceof SL&&this.C.has(b.triggeringSlotId)&&QI(this.j(),[a]);b instanceof KL&&this.B.has(b.triggeringLayoutId)&&QI(this.j(),[a])}; g.k.Al=function(a){this.Wb.delete(a.triggerId)}; g.k.Ng=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof WL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0UF(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.vc=function(){}; g.k.Ec=function(){}; g.k.Mg=function(){}; g.k.Ei=function(){}; g.k.onFullscreenToggled=function(){}; g.k.jh=function(){}; g.k.yj=function(){}; g.k.Vi=function(){}; g.k.onVolumeChange=function(){}; g.k.xj=function(){}; g.k.Aj=function(){};g.y(aN,g.I);g.k=aN.prototype; g.k.ll=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new xI("Tried to re-register the trigger.");a=new $L(a,b,c,d);if(a.trigger instanceof RFa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof QFa)this.C.set(a.trigger.triggerId,a);else throw new xI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&QI(this.D(),[a])}; g.k.Al=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)}; g.k.MK=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.qa(YIa(this.C,this.j)));null!=a&&b.push.apply(b,g.qa(YIa(this.B,a)));this.j=a;b.length&&QI(this.D(),b)}}; g.k.dB=function(){}; g.k.GF=function(){};g.y(bN,g.I);g.k=bN.prototype;g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof PL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d))}; g.k.Al=function(a){this.Wb.delete(a.triggerId)}; g.k.vc=function(){}; g.k.Ec=function(){}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.Mg=function(){};g.y(cN,g.I);g.k=cN.prototype;g.k.Mg=function(a,b){for(var c=[],d=g.u(this.Wb.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&&QI(this.j(),c)}; g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof KBa))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d))}; g.k.Al=function(a){this.Wb.delete(a.triggerId)}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.vc=function(){}; g.k.Ec=function(){};g.y(dN,g.I);g.k=dN.prototype;g.k.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof ZL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new $L(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)}; g.k.Al=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof ZL))throw new xI("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)}; g.k.Ng=function(){}; g.k.Kh=function(){}; g.k.Hh=function(){}; g.k.sf=function(){}; g.k.tf=function(){}; g.k.Ih=function(){}; g.k.Jh=function(){}; g.k.ih=function(){}; g.k.gg=function(){}; g.k.Mg=function(){}; g.k.vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={dM:void 0},d=a.next())b.dM=d.value,d=new g.xv(function(e){return function(){var f=c.Wb.get(e.dM.triggerId);QI(c.C(),[f])}}(b),b.dM.durationMs),d.start(),this.B.set(b.dM.triggerId,d)}}; g.k.Ec=function(){};g.y(eN,g.I);eN.prototype.ll=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new xI("Tried to register duplicate trigger for slot.");if(!(b instanceof EL))throw new xI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new $L(a,b,c,d))}; eN.prototype.Al=function(a){this.Wb.delete(a.triggerId)};hN.prototype.Ut=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};g.y(jN,g.I);g.k=jN.prototype;g.k.logEvent=function(a){this.Ir(a)}; g.k.Kj=function(a,b,c){this.Ir(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)}; g.k.Ph=function(a,b,c,d){this.Ir(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)}; g.k.YM=function(a,b,c,d){FM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);eBa(this.j.get())&&this.Ir(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; g.k.TH=function(a,b,c,d,e){this.Ir(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)}; g.k.Sl=function(a,b,c,d){this.Ir("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})}; g.k.Ir=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=void 0===q?0:q;FM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,arb:d,erb:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Aa.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==a||r.aT())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a){a||RF("Empty PACF event type",e,f);var v=eBa(r.j.get()), w={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=aBa(v,e));f&&(A.layoutData=bBa(v,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=CI(l.trigger,l.category));b&&(A.opportunityData=cBa(v,b,c,d));v={organicPlaybackContext:{contentCpn:r.Ra.get().Yd(1).clientPlaybackNonce}};v.organicPlaybackContext.isLivePlayback=r.Ra.get().Yd(1).Zb;var D;v.organicPlaybackContext.isMdxPlayback= null==(D=r.Ra.get().Yd(1))?void 0:D.isMdxPlayback;var F;if(null==(F=r.Ra.get().Yd(1))?0:F.daiEnabled)v.organicPlaybackContext.isDaiContent=!0;var H;if(D=null==(H=r.Ra.get().Yd(2))?void 0:H.clientPlaybackNonce)v.adVideoPlaybackContext={adVideoCpn:D};v&&(A.externalContext=v);w.adClientData=A;m&&(w.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(w.serializedAdServingData=n.serializedAdServingDataEntry);p&&(w.errorInfo=p);g.qC("adsClientStateChange",{adsClientEvent:w})}}; q&&0this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;db;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var qJa=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f=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{LJ:b,Om:c}}; BN.prototype.isFocused=function(a){return a>=this.C&&a=Math.random()&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a= Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var Z2={},fVa=g.ZC("yt-player-local-media",{Mr:(Z2.index={hn:2},Z2.media={hn:2},Z2.captions={hn:5},Z2),shared:!1,upgrade:function(a,b){b(2)&&(g.FC(a,"index"),g.FC(a,"media"));b(5)&&g.FC(a,"captions");b(6)&&(GC(a,"metadata"),GC(a,"playerdata"))}, version:5});var dob={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},$2;a:{var a3=g.oc();a3=a3.toLowerCase();if(g.ic(a3,"android")){var eob=a3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(eob){var fob=parseFloat(eob[1]);if(100>fob){$2=fob;break a}}var gob=a3.match("("+Object.keys(dob).join("|")+")");$2=gob?dob[gob[0]]:0}else $2=void 0}var ER=$2,bUa=0<=ER;var Fcb=window;var zOa=Id(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var BOa;g.VO=new yH;BOa=0;var WO={mD:function(a){a.reverse()}, Wm:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}, FQ:function(a,b){a.splice(0,b)}};var Beb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var hR=LOa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.VC?!0:!1;var ZTa={xka:"adunit",Bxa:"detailpage",nya:"editpage",vya:"embedded",FOa:"leanback",k3a:"previewpage",t4a:"profilepage",TV:"unplugged",t2a:"playlistoverview",sab:"sponsorshipsoffer",a8a:"shortspage",BHa:"handlesclaiming",mJa:"immersivelivepage",Tva:"creatormusic",nJa:"immersivelivepreviewpage",fga:"admintoolyurt"};var ZPa={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},$Pa={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"},Kcb={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var CVa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.aP.prototype.getLanguageInfo=function(){return this.lc}; g.aP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1c.timedOut&&1>c.j)return!1;c=c.timedOut+c.j;a=nRa(this,a);b=fQ(b,uP(a));return b.timedOut+b.j+0a.Pa&&this.index.Dn()<=a.Pa+1}; g.k.update=function(a,b,c){this.index.append(a);FQa(this.index,c);this.index.B=b}; g.k.fg=function(){return this.vA()?!0:hQ.prototype.fg.call(this)}; g.k.Ls=function(a,b){var c=this.index.vJ(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.k.jJ=function(){return this.Hp}; g.k.Lz=function(a){if(!this.jn)return g.zP.prototype.Lz.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Hj+1);else{b=Tb(this.segments,function(d){return 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.Pa-b.Pa-1))+1)+b.Pa}return this.Bn(b)}; g.k.Bn=function(a){if(!this.jn)return g.zP.prototype.Bn.call(this,a);if(!this.segments.length)return null;var b=yQ(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Hj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new yP(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.y(zQ,uQ);g.k=zQ.prototype;g.k.qA=function(){return!0}; g.k.fg=function(){return!0}; g.k.Ks=function(a){return this.Pw()&&a.B&&!a.Ue||!a.j.index.mQ(a.Pa)}; g.k.ww=function(){}; g.k.qr=function(a,b){return"number"!==typeof a||isFinite(a)?uQ.prototype.qr.call(this,a,void 0===b?!1:b):new sQ([new mQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Gj,void 0,this.Gj*this.info.sb)],"")}; g.k.Ls=function(a,b){var c=void 0===c?!1:c;if(this.index.Ln(a))return uQ.prototype.Ls.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Gj*this.info.sb),f=this.Gj;b&&(f=e=0);return new sQ([new mQ(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};g.y(AQ,hQ);g.k=AQ.prototype;g.k.zm=function(){return!1}; g.k.Pw=function(){return!1}; g.k.qA=function(){return!1}; g.k.ww=function(){return new sQ([new mQ(1,this,void 0,"otfInit")],this.G)}; g.k.Hy=function(){return null}; g.k.XC=function(a){this.Ks(a);return WRa(this,xRa(a),!1)}; g.k.qr=function(a,b){b=void 0===b?!1:b;a=this.index.Di(a);b&&(a=Math.min(this.index.Cd(),a+1));return WRa(this,a,!0)}; g.k.DP=function(a){1===a.info.type&&(this.j||(this.j=FN(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&XRa(this,a.B))}; g.k.Ks=function(a){return 0===a.B?!0:this.index.Cd()>a.Pa&&this.index.Dn()<=a.Pa+1}; g.k.kP=function(){return 0}; g.k.VR=function(){return!1};g.k=g.hSa.prototype;g.k.Ln=function(a){return a<=this.Cd()}; g.k.mm=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.Og[a]/this.j}; g.k.qE=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.yJ=da(1);g.k.Ze=function(){return NaN}; g.k.getDuration=function(a){a=this.RX(a);return 0<=a?a/this.j:-1}; g.k.RX=function(a){return a+1=this.Cd())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,iSa(this,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.Og;this.Og=new Float64Array(a+1);for(a=0;a=b+c)break}e.length||g.IE(new g.eC("b189619593",""+a,""+b,""+c));return new sQ(e)}; g.k.mV=function(a){for(var b=this.IB(a.info),c=a.info.range.start+a.info.Rb,d=[],e=0;e=this.index.mm(c+1);)c++;return this.BE(c,b,a.B).ib}; g.k.Ks=function(a){nQ(a);return this.fg()?!0:a.range.end+1this.info.contentLength&&(b=new iQ(b.start,this.info.contentLength-1)),new sQ([new mQ(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.IB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Rb+a.B;3===a.type&&(nQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.BE(c,d,b)}; g.k.XC=function(){return null}; g.k.qr=function(a,b,c){b=void 0===b?!1:b;a=this.index.Di(a);b&&(a=Math.min(this.index.Cd(),a+1));return this.BE(a,this.index.mm(a),0,c)}; g.k.zm=function(){return!0}; g.k.Pw=function(){return!0}; g.k.qA=function(){return!1}; g.k.kP=function(){return this.indexRange.length+this.initRange.length}; g.k.VR=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var c3={},DSa=(c3.COLOR_PRIMARIES_BT709="bt709",c3.COLOR_PRIMARIES_BT2020="bt2020",c3.COLOR_PRIMARIES_UNKNOWN=null,c3.COLOR_PRIMARIES_UNSPECIFIED=null,c3),d3={},lSa=(d3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",d3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",d3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",d3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",d3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,d3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,d3);g.GQ.prototype.getName=function(){return this.name}; g.GQ.prototype.getId=function(){return this.id}; g.GQ.prototype.getIsDefault=function(){return this.isDefault}; g.GQ.prototype.toString=function(){return this.name}; g.GQ.prototype.getName=g.GQ.prototype.getName;g.GQ.prototype.getId=g.GQ.prototype.getId;g.GQ.prototype.getIsDefault=g.GQ.prototype.getIsDefault;var qSa=/action_display_post/;var rSa,sSa,tSa;g.y(IQ,g.aF);g.k=IQ.prototype;g.k.isLoading=function(){return 1===this.state}; g.k.ym=function(){return 3===this.state}; g.k.tca=function(a){var b=a.getElementsByTagName("Representation");if(0=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.gm=!0}; qR.prototype.Zg=function(){return this.K?(rR(this,this.D-this.K)+rR(this,this.D)+rR(this,this.D+this.K))/3:rR(this,this.D)};g.y(ITa,g.I);ITa.prototype.Va=function(){var a;null==(a=this.La)||a.start();if(xR(this)&&this.policy.N){var b;null==(b=this.kd)||b.AF()}};g.y(STa,g.I);var $Ta="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),iUa={Soa:"caoe",ura:"cbrand",Dra:"cbr",Era:"cbrver",nua:"cchip",Jua:"ccappver",Kua:"ccrv",dFa:"cfrmver",XJa:"c",aKa:"cver",ZJa:"ctheme",YJa:"cplayer",wWa:"cmodel",lXa:"cnetwork",I0a:"cos",J0a:"cosver",E1a:"cplatform",E5a:"crqyear"};g.y(gUa,g.I);g.k=gUa.prototype;g.k.L=function(a){return this.experiments.fb(a)}; g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.NR(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.HR(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),UC&&(a=vpa())&&(b.ebc=a));return g.lo(f,b)}; g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.NR(this)+"/embed/"+b;d&&(b=g.lo(b,{list:d}));d=c.width;c=c.height;b=Ye(b);a=Ye(null!=a?a:"YouTube video player");return'')}; g.k.supportsGaplessAudio=function(){return g.aK&&!UC&&74<=iqa()||g.bR&&g.Pc(68)?!0:!1}; g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.zC?!1:!0}; g.k.getPlayerType=function(){return this.j.cplayer}; g.k.zc=function(){return this.Qf}; g.k.Cu=function(){this.L("html5_enable_lawnmower_messaging")}; var oUa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],hUa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],lUa=[19];g.k=aS.prototype;g.k.getInfo=function(){return this.j}; g.k.YC=function(){return null}; g.k.nV=function(){var a=this.YC();return a?(a=g.OA(a.resource),Number(a.expire)):NaN}; g.k.IS=function(){}; g.k.getHeight=function(){return this.j.video.height};pUa.prototype.build=function(){tUa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.lc){if(e.lc.getIsDefault()){c=e.lc.getId();break a}c||(c=e.lc.getId())}}d=g.u(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.lc||e.lc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.u(e);for(var 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.lc){p=f.lc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=rUa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(sUa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=pob,d=(h=d.lc)?'#EXT-X-MEDIA:URI="'+rUa(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=0f.getHeight())&&c.push(f)}return c}; BS.prototype.G=function(a,b,c,d){return new g.AS(a,b,c,d)};g.y(vVa,g.AS);g.k=vVa.prototype;g.k.iJ=function(){return this.B.Vz()}; g.k.UH=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Cd();a=c.Di(a);return a>d-b?-1:a}; g.k.Iy=function(){return this.B.Cd()}; g.k.aN=function(){return this.B.Dn()}; g.k.oV=function(a){this.B=a};g.y(CS,BS);CS.prototype.B=function(a,b){return BS.prototype.B.call(this,"$N|"+a,b)}; CS.prototype.G=function(a,b,c){return new vVa(a,b,c,this.isLive)};var TVa=[],SVa=new Set;g.y(g.ES,g.aF);g.k=g.ES.prototype;g.k.U=function(){return this.Da}; g.k.L=function(a){return this.Da.L(a)}; g.k.Wh=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.nf)||!a.rb)}; g.k.t_=function(){this.Ma()||(this.j.B||this.j.unsubscribe("refresh",this.t_,this),this.TW(-1))}; g.k.TW=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=JSa(this.j,this.dF);if(0d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Wh(),clipEnd:b.clipEnd, clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInline=function(a){this.app.setInline(a)}; g.k.L8=function(){return g.HT(this.app,1).kc(!0)}; g.k.toggleSubtitles=function(){var a=g.EV(this.app.yb());a&&a.mea()}; g.k.getPlayerSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}}; g.k.wakeUpControls=function(){var a=g.IT(this);a&&a.Vu()}; g.k.setCenterCrop=function(a){this.app.ob().setCenterCrop(a)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var jXa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response 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(" "), mXa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var i3={},qXa=(i3["api.invalidparam"]=2,i3.auth=150,i3["drm.auth"]=150,i3["heartbeat.net"]=150,i3["heartbeat.servererror"]=150,i3["heartbeat.stop"]=150,i3["html5.unsupportedads"]=5,i3["fmt.noneavailable"]=5,i3["fmt.decode"]=5,i3["fmt.unplayable"]=5,i3["html5.missingapi"]=5,i3["html5.unsupportedlive"]=5,i3["drm.unavailable"]=5,i3["mrm.blocked"]=151,i3);g.y(g.JT,iXa);g.k=g.JT.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.qa[a]&&b&&eJ(b,xnb,ynb))}; g.k.getBandwidthEstimate=function(){return wR(this.app.U().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.HT(this.app);b&&(a={gpu:(0,g.S_)(),d:a},b.handleError(new WJ("feedback",a)))}; g.k.getInternalApi=function(){return Object.assign({},this.state.B)}; g.k.getInternalApiInterface=function(){return g.dd(this.state.B)}; g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)}; g.k.A8=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.TF(a,1),isCued:a.isCued(),isDomPaused:g.TF(a,1024),isEnded:g.TF(a,2),isError:g.TF(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.TF(a,16),isUiSeeking:g.TF(a,32),isUnstarted:g.TF(a,64)}}; g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.k.startSeekCsiAction=function(){this.app.Ai().D.j=(0,g.EC)()}; g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=void 0===b?!0:b;var f=g.HT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Kc()&&(h=f.getStreamTimeOffset());c1(e,a-h,b,c,1,d)}; g.k.getStreamTimeOffset=function(){var a=g.HT(this.app,1);return a?a.getStreamTimeOffset():0}; g.k.seekToLiveHead=function(a,b){var c=g.HT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&c1(this.app,Infinity,a,b,1)}; g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.HT(this.app,1);c&&c.tS(a,b)}; g.k.setVolume=function(a,b){this.ML(a,void 0===b?!0:b)}; g.k.mute=function(a){this.xK(void 0===a?!0:a)}; g.k.unMute=function(a){this.hM(void 0===a?!0:a)}; g.k.syncVolume=function(){var a=yfb(this.app);U0(this.app,{volume:a.volume,muted:a.muted},!1)}; g.k.getAvailableQualityLabels=function(){var a=g.HT(this.app,1);return a?g.$r(a.Ct(),function(b){return b.qualityLabel}):[]}; g.k.channelSubscribed=function(){this.jb("SUBSCRIBE",this.app.Ld().Cl)}; g.k.channelUnsubscribed=function(){this.jb("UNSUBSCRIBE",this.app.Ld().Cl)}; g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.k.getCurrentPlaylistSequence=function(){return g.HT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.k.getPlaylistSequenceForTime=function(a){return g.HT(this.app).getPlaylistSequenceForTime(a)}; g.k.shouldSendVisibilityState=function(){return!0}; g.k.confirmYpcRental=function(){var a=g.HT(this.app,1);a&&a.zg("ypc_clickwrap")}; g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a}; g.k.setConnectedRemoteApps=function(a){this.app.U().uj=a}; g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=xB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,fUa)}; g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a}; g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.k.addUtcCueRange=function(a,b,c,d,e){return lgb(this.app,a,b,c,d,e)}; g.k.I8=function(a){a=void 0===a?1:a;var b=this.lY(a);if(a=g.HT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ra;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?bf(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)? bf(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.E3;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=rWa(a);b.paidContentOverlayDurationMs=sWa(a);a.j&&jP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b}; 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.HT(this.app,1))?a.getPlayerState():null)?a.Ig:null;return!!(a&&b&&g.TF(a,128)&&5===rXa(b.errorCode))}; g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()}; g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()}; 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.zi=function(){return g.IT(this)}; g.k.sendAbandonmentPing=function(){var a=g.HT(this.app);a&&a.sendAbandonmentPing()}; g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Ld(),null==b?0:VVa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.EC=b.autonavState);else if(void 0!==b.EC)a=b.EC,b.EC=void 0;else return}sgb(this.app,a)}; g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)}; g.k.setLoopRange=function(a){this.app.setLoopRange(a)}; g.k.getLoopRange=function(){return this.app.getLoopRange()}; g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.HT(this.app,1))||!a.hasSupportedAudio51Tracks())}; g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.HT(this.app,1);c&&c.setUserAudio51Preference(a,b)}; g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.HT(this.app,1))?void 0:a.getUserAudio51Preference())?b:1}; g.k.setProximaLatencyPreference=function(a){var b=g.HT(this.app,1);b&&b.setProximaLatencyPreference(a)}; g.k.getProximaLatencyPreference=function(){var a=g.HT(this.app,1);return a?a.getProximaLatencyPreference():0}; g.k.isProximaLatencyEligible=function(){var a=g.HT(this.app,1);return a?a.isProximaLatencyEligible():!1}; g.k.getAppState=function(){return this.app.getAppState()}; g.k.updateLastActiveTime=function(){WD()}; g.k.setBlackout=function(a){this.app.setBlackout(a)}; g.k.setUserEngagement=function(a){this.app.U().Ml!==a&&(this.app.U().Ml=a,(a=g.HT(this.app,1))&&C0(a))}; g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.EV(this.app.yb()).H2(a,b)}; g.k.getCaptionWindowContainerId=function(){var a=g.EV(this.app.yb());return a?a.getCaptionWindowContainerId():""}; g.k.toggleSubtitlesOn=function(){var a=g.EV(this.app.yb());a&&a.Z1()}; g.k.isSubtitlesOn=function(){var a=g.EV(this.app.yb());return a?a.isSubtitlesOn():!1}; g.k.getPlayerResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getPlayerResponse():null}; g.k.z8=function(){return this.getPlayerResponse(1)}; g.k.getEmbeddedPlayerResponse=function(){var a=g.HT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null}; g.k.getWatchNextResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getWatchNextResponse():null}; g.k.N8=function(){return this.getWatchNextResponse(1)}; g.k.getHeartbeatResponse=function(a){return(a=g.HT(this.app,a))?a.getVideoData().getHeartbeatResponse():null}; g.k.u8=function(){return this.getHeartbeatResponse(1)}; g.k.getStoryboardFrame=function(a,b){var c=this.app.Wj();if(!c)return null;b=c.levels[b];return b?(a=g.zS(b,a))?{column:a.column,columns:a.columns,height:a.jx,row:a.row,rows:a.rows,url:a.url,width:a.xF}:null:null}; g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Wj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Kc();return b.UH(a)}; g.k.getStoryboardLevel=function(a){var b=this.app.Wj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Iy(),minFrameIndex:b.aN()}:null:null}; g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Wj();return a?a.levels.length:0}; g.k.h8=function(){return this.getAudioTrack(1)}; g.k.getAudioTrack=function(a){return(a=g.HT(this.app,a))?a.getAudioTrack():this.app.getVideoData().Gk}; g.k.setAudioTrack=function(a,b){3===this.tJ()&&QT(this.app.yb()).IF("control_set_audio_track",a);var c=g.HT(this.app,this.playerType);if(c)if(c.Ma()||g.TF(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Kc():NaN;if(b){var e=geb(c.Zc);c.ma("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(Yeb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d=b.pd.length)b=!1;else{d=g.u(b.pd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof cS)){b=!1;break b}var f=a.lc.getId();e.B&&(qUa(e.B,f),e.resource=null)}b.Zo=a;b=!0}b&&v0(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.ma("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a}; g.k.k8=function(){return this.getAvailableAudioTracks(1)}; g.k.getAvailableAudioTracks=function(a){return g.HT(this.app,a).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.HT(this.app,1);return a&&a.getVideoData().B?gP(a.Kf?mcb(a.rk,a.Kf,a.qw()):DS):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.HT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.EV(this.app.yb());return a?a.F8():null}; g.k.resetSubtitlesUserSettings=function(){g.EV(this.app.yb()).ida()}; g.k.setMinimized=function(a){this.app.setMinimized(a)}; g.k.setOverlayVisibility=function(a){this.publish("overlayvisibilitychange",a)}; g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.k.setSqueezeback=function(a){this.app.setSqueezeback(a)}; g.k.setGlobalCrop=function(a){this.app.ob().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.isMinimized();return this.app.getVisibilityState(this.Vh(),this.isFullscreen()||g.FR(this.app.U()),a,this.isInline(),this.app.Rt(),this.app.pA(),this.app.wA(),this.app.bk())}; g.k.isMutedByMutedAutoplay=function(){return this.app.WA}; g.k.setInternalSize=function(a,b){this.app.ob().setInternalSize(new g.Ke(a,b))}; g.k.Kc=function(){var a=g.HT(this.app);return a?a.Kc():0}; g.k.isMinimized=function(){return this.app.isMinimized()}; g.k.Vh=function(){var a=g.HT(this.app,this.playerType);return!!a&&a.Vh()}; g.k.setSafetyMode=function(a){this.app.U().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;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.xi=wB(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.pV(b).videoId||(a.index=b.index)):P0(this.app,{list:a.list,index:a.index,playlist_length:d.length});HZa(this.app.getPlaylist(),a);this.Ac("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.HT(this.app,this.playerType||1);c&&g.HS(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){dUa(this.app.U(),a,!1)}; g.k.Bda=function(a){this.app.sendVideoStatsEngageEvent(a,1)}; g.k.productsInVideoVisibilityUpdated=function(a){this.publish("changeProductsInVideoVisibility",a)}; g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.k.getVideoAspectRatio=function(){return this.app.ob().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.HT(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.getPlaybackQualityLabel=function(a){if(a=g.HT(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""}; g.k.setPlaybackQualityRange=function(a,b,c){var d=g.HT(this.app,this.playerType);d&&g.Veb(d,g.dP(a,b||a,!0,"m"),!0,c)}; g.k.onAdUxClicked=function(a,b){this.publish("aduxclicked",a,b)}; g.k.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.k.dispatchReduxAction=function(a){g.SS.dispatch(a)}; g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Be.includes(e)||(c.Be.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Hb(c.Be,e)&&(d=!0)}); d&&this.publish("updatemarkervisibility")}; g.k.highlightSettingsMenuItem=function(a){this.publish("highlightSettingsMenu",a)}; g.k.openSettingsMenuItem=function(a){this.publish("openSettingsMenuItem",a)}; g.k.L6=function(a,b){this.state.j.subscribe(a,b)}; g.k.Xca=function(a,b){this.state.j.unsubscribe(a,b)}; g.k.v7=function(a,b){this.cueVideoByPlayerVars(a,void 0===b?1:b)}; g.k.a$=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,void 0===c?1:c,d)}; g.k.Jca=function(a,b,c,d){this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,d)}; g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.k.Dh=function(){return g.IT(this).Dh()}; g.k.Lg=function(){return g.IT(this).Lg()}; g.k.Am=function(){return g.IT(this).Am()}; g.k.Te=function(){return this.zi().Te()}; g.k.Yl=function(){var a=g.Ja.apply(0,arguments),b;(b=this.Te()).Yl.apply(b,g.qa(a))}; g.k.Rh=function(){this.Te().Rh()}; g.k.RP=function(){this.Te().RP()}; g.k.Uh=function(){this.Te().hide()}; g.k.SL=function(a,b,c,d,e,f,h,l){this.Te().SL(a,b,c,d,e,f,h,l)}; g.k.VG=function(a,b){this.Te().VG(a,b)}; g.k.Gx=function(a,b,c,d,e){this.zi().Gx(a,b,c,d,e)}; g.k.PG=function(a){this.Te().setEnabled(a)}; g.k.cz=function(a){this.zi().cz(a)}; g.k.VD=function(a,b){this.zi().VD(a,b)}; g.k.Hz=function(a,b){this.zi().Hz(a,b)}; g.k.Tq=function(){this.zi().Tq()}; g.k.OS=function(a,b){this.zi().OS(a,b)}; g.k.SB=da(5);g.k.TB=da(7);g.k.hs=da(10);g.k.gs=da(13);g.k.uG=function(a,b){this.zi().uG(a,b)}; g.k.lw=function(){this.zi().lw()}; g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()}; g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};g.y(g.NT,g.JT);g.k=g.NT.prototype;g.k.Qo=function(a,b,c,d,e,f,h){return this.app.Qo(a,b,c,d,e,f,h)}; g.k.kE=function(){return this.app.kE()}; g.k.Bt=da(15);g.k.yb=function(){return this.app.yb()}; g.k.Ff=function(){var a=this.yb().He.get("endscreen");return!!a&&a.Ff()}; g.k.getRootNode=function(){return this.ob().element}; g.k.U=function(){return this.app.U()}; g.k.Tz=da(17);g.k.jm=function(a){return this.app.jm(a)}; g.k.Fn=function(){var a;return(null==(a=g.IT(this))?void 0:a.Fn())||null}; g.k.getPlayerStateObject=function(a){return this.app.getPlayerStateObject(a)}; g.k.ob=function(){return this.app.ob()}; g.k.getPlaylist=function(){return this.app.getPlaylist()}; g.k.getVideoData=function(a){var b=g.HT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.sT(b)&&1!==a)a:{var d=this.app;b=d.getVideoData();if(d.xe){a=d.xe;d=d.getCurrentTime();if(a.yn)var e=void 0;else{var f=void 0,h=a.api.L("html5_ssdai_enable_current_cpn");h&&a.pc&&(f=a.D.get(a.pc));if(!f){f=kY(a,1E3*d);var l=null==(e=f)?void 0:e.cpn;h?a.ea.ma("sdai",{cpcna:l,cmt:d.toFixed(3)}):a.pc&&l&&a.pc!==l&&a.ea.ma("sdai",{cpcnm:l+"_"+a.pc,cmt:d.toFixed(3)})}e= null==(c=f)?void 0:c.videoData}b=e||b}else if(d.Ib&&d.tb){if(d.L("html5_ssap_get_video_data_fix")){c=d.Ib.getVideoData(a);break a}b=U5a(d.Ib)||b}c=b}else c=b;return c}; g.k.Wj=function(a){return this.app.Wj(a)}; g.k.bk=function(){return this.app.bk()}; g.k.isHdr=function(){var a=g.HT(this.app);return a?a.isHdr():!1}; g.k.nQ=function(){return this.app.nQ()}; g.k.Yc=function(){var a=g.IT(this),b=this.getVideoData();a=a?a.QJ:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.Yc(new g.Ke(a.width,a.height),c))}; g.k.VB=function(a){this.app.VB(a)}; g.k.Zf=function(a,b,c,d,e){this.app.yg(a,b,c,d,e)}; g.k.ls=function(a,b){this.app.ls(a,b)}; g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){QT(this.app.yb()).IF("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=HV(this.app.yb());if(b&&Vib(b))return}}catch(c){g.IE(c)}this.app.playVideo(a)}; g.k.stopVideo=function(a){g.HT(this.app,a).stopVideo()}; g.k.Eo=function(a){g.HT(this.app,a).Eo()}; g.k.addEventListener=function(a,b){this.state.C.subscribe(a,b)}; g.k.removeEventListener=function(a,b){this.state.C.unsubscribe(a,b)}; g.k.kG=function(a){this.app.kG(a)}; g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)}; g.k.Ct=function(){var a={},b=g.HT(this.app).Ct();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a}; g.k.lE=function(){return g.HT(this.app).lE()}; g.k.xE=da(21);g.k.zL=function(a){this.app.zL(a);a&&sgb(this.app,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.yE=da(23);g.k.jo=da(27);g.k.Do=function(a){var b=g.HT(this.app);b&&b.Do(a)}; g.k.GA=function(a,b){this.yb().GA(a,b)}; g.k.Nk=function(){var a=g.KV(this.yb());return!!a&&a.Nk()}; g.k.kp=function(){var a=g.KV(this.yb());return!!a&&a.kp()}; g.k.QB=function(a,b,c){var d=g.KV(this.yb());d&&d.QB(a,b,c)}; g.k.PB=da(28);g.k.No=function(){var a=g.HT(this.app);a&&a.No()}; g.k.IL=function(a){this.Ac("onVideoAreaChange");this.Ac(a?"onShowControls":"onHideControls")}; g.k.Hn=function(a,b){var c=g.IT(this);if(c)return c.Hn(a,b);a=this.app.ob().Th();return new g.Fs(0,0,a.width,a.height)}; g.k.pm=function(){return this.app.pm()}; g.k.XE=function(){var a=this.yb().He.get("heartbeat");return!!a&&a.XE()}; g.k.Wh=function(){var a=this.U();if(a.Sa||a.disableSeek)return!1;var b=g.HT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.ue()||g.fT(c)||2===this.getPresentingPlayerType()&&!this.app.Gf()||c.Rn()&&2===this.getPresentingPlayerType(!0)||b.Kn()&&3!==this.getPresentingPlayerType()||g.FB(g.JR(a))&&!c.Tm||g.GT(this.app)?!1:!0}; g.k.TE=function(){var a;return(null==(a=g.HT(this.app))?void 0:a.TE)||!1}; g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.k.Nu=function(){var a=g.HT(this.app);a&&a.Nu()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)}; g.k.gf=function(a,b,c){this.app.bz(a,b,c)}; g.k.Fo=function(a,b){this.app.tG(a,b)}; g.k.mf=function(a,b){$fb(this.app,a,b)}; g.k.KE=da(30);g.k.hC=function(){this.app.hC()}; g.k.zg=function(a,b){(b=g.HT(this.app,b))&&b.zg(a)}; g.k.Kn=function(){var a=g.HT(this.app);return a?a.Kn():!0}; g.k.Dw=function(){var a=this.getVideoData();return!!a&&(a.Dw()||!!a.hlsFormats||!!a.Qc)}; g.k.getPlaybackRate=function(){return g.HT(this.app,1).getPlaybackRate()}; g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)}; g.k.Se=function(){return this.app.Se()}; g.k.Ai=function(){return this.app.Ai()}; g.k.Ci=function(a){return this.app.Ci(a)}; g.k.createClientVe=function(a,b,c,d){this.U().Za&&this.app.Cr.createClientVe(a,b,c,void 0===d?!1:d)}; g.k.createServerVe=function(a,b,c){this.U().Za&&this.app.Cr.createServerVe(a,b,void 0===c?!1:c)}; g.k.setTrackingParams=function(a,b){this.U().Za&&this.app.Cr.setTrackingParams(a,b)}; g.k.logClick=function(a,b){this.U().Za&&(this.app.Cr.click(a,b),this.publish("veClickLogged",a))}; g.k.logVisibility=function(a,b,c){if(this.U().Za){var d=this.app.Cr;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.FE(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.WE(e,[f]):g.XE(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.VE(e,f,void 0,c),d.C.add(a))}}; g.k.hasVe=function(a){return this.U().Za?this.app.Cr.hasVe(a):!1}; g.k.destroyVe=function(a){this.U().Za&&this.app.Cr.destroyVe(a)}; g.k.Wc=function(){return g.HT(this.app)}; g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)}; g.k.Nx=function(){this.app.Nx()}; g.k.Bz=function(a,b){return this.app.Bz(a,b)}; g.k.qq=function(a){this.app.qq(a)}; g.k.JA=function(){this.app.JA()}; g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)}; g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)}; g.k.wD=function(a,b,c,d,e,f,h){return this.app.wD(a,b,c,d,e,f,h)}; g.k.QE=function(a,b,c,d,e,f,h){return this.app.QE(a,b,c,d,e,f,h)}; g.k.rA=function(){return this.app.rA()}; g.k.Du=function(a){this.app.Du(a)}; g.k.mz=function(a,b){b=void 0===b?Infinity:b;this.app.mz(void 0===a?-1:a,b)}; g.k.jM=function(a){var b;null==(b=g.EV(this.yb()))||b.jM(a)}; g.k.qH=function(a,b,c){this.app.qH(a,b,c)}; g.k.jr=function(){return this.app.jr()}; g.k.TI=function(a,b,c){this.app.TI(a,b,void 0===c?0:c)}; g.k.Tn=function(){return this.app.Tn()}; g.k.Gf=function(){return this.app.Gf()}; g.k.mu=function(a,b,c){return this.app.mu(a,b,c)}; g.k.ma=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.HT(this.app,d))||e.ma(a,b,c)}; g.k.aR=function(a,b){this.publish("aduxmouseover",a,b)}; g.k.ZQ=function(a,b){this.publish("aduxmouseout",a,b)}; g.k.AR=function(a,b){this.publish("muteadaccepted",a,b)}; g.k.ZE=function(){return this.app.ob().ZE()}; g.k.WB=function(a){this.app.ob().WB(a)}; g.k.qs=function(a){return a?this.app.iT():(a=g.HT(this.app))?a.qs():!1}; g.k.QS=function(a){this.app.QS(a)}; g.k.OA=function(a){var b,c=null==(b=g.HT(this.app))?void 0:b.ya;c&&c.OA(a)}; g.k.Xu=function(){g.HT(this.app,1).Xu()}; g.k.xJ=function(){var a=g.HT(this.app);return a?a.xJ():0}; g.k.OG=function(a){var b=g.HT(this.app);b&&b.OG(a)}; g.k.LS=function(a){var b=g.HT(this.app);b&&b.LS(a)};var AXa;g.y(zXa,aC);zXa.prototype.jE=function(a,b){a=aC.prototype.jE.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.y(g.ZT,g.iF);g.k=g.ZT.prototype;g.k.show=function(){var a=this.Zj();g.iF.prototype.show.call(this);this.Ga&&(this.N.T(window,"blur",this.Nb),this.N.T(document,"click",this.x5));a||this.publish("show",!0)}; g.k.hide=function(){var a=this.Zj();g.iF.prototype.hide.call(this);BXa(this);a&&this.publish("show",!1)}; g.k.od=function(a,b){this.B=a;this.qa.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.rW)),this.rW()):this.Y&&(this.N.Pc(this.Y),this.Y=void 0)}; g.k.JX=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())}; g.k.rW=function(){var a=g.IT(this.J);this.B&&a.Gx(this.element,this.B)}; g.k.Nb=function(){var a=this.Zj();BXa(this);this.qa.hide();a&&this.publish("show",!1)}; g.k.x5=function(a){var b=QB(a);b&&(g.Rf(this.element,b)||this.B&&g.Rf(this.B,b)||!g.dG(a))||this.Nb()}; g.k.Zj=function(){return this.Fb&&4!==this.qa.state};g.y(CXa,g.ZT);CXa.prototype.od=function(){g.ZT.prototype.od.call(this);this.dialog.focus()};g.y(g.aU,g.iF);g.aU.prototype.setIcon=function(a){this.updateValue("icon",a)}; g.aU.prototype.Dk=function(a){this.updateValue("label",a)}; g.aU.prototype.updateValue=function(a,b){g.iF.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.nU={o6:15,x5a:14,r8a:13,c6:12,r6:11,o3:10,w3:9,g3:8,AUDIO:7,SUBTITLES:6,n6:5,SLEEP_TIMER:4,j6:3,nQa:2,REMOTE:1,qva:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SPEED",4:"SLEEP_TIMER",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.y(cU,g.aU);cU.prototype.Lc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)}; cU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;this.setIcon(qF());var e;this.Dk(dU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new CXa(this.J,dU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),dU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),dU(null==a?void 0: null==(l=a.menuData)?void 0:l.confirmButtonText));g.N(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Bb.Rc(this);this.j=!0}else!c&&this.j&&(this.Bb.oh(this),this.j=!1)}; cU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Bb.Nb();this.C&&this.C.od()};g.y(eU,g.I);eU.prototype.L=function(a){return this.api.L(a)};g.y(fU,eU);fU.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.KV=b}; fU.prototype.setAccountLinkState=function(a){this.api.getVideoData().KV=a;this.api.No()}; fU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.publish("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.y(EXa,eU); EXa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.L("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.IV&&g.yD(c.IV),c.CH&&hU(this,c.CH),c.Ty)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.u(c.Ty),h=f.next();!h.done;h=f.next())hU(this,g.dv(h.value,e))}else"conversionview"===b?this.api.Xu():"engagedview"===b&&c.qj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.yD(g.dv(c.qj, e)));c.JV&&(e=c.JV,f=a.getId(),e=PA(e,{label:f}),g.yD(e));switch(b){case "videoplaytime25":c.BV&&hU(this,c.BV);c.wC&&iU(this,c.wC);c.NV&&g.yD(c.NV);break;case "videoplaytime50":c.GV&&hU(this,c.GV);c.yC&&iU(this,c.yC);c.SV&&g.yD(c.SV);break;case "videoplaytime75":c.HV&&hU(this,c.HV);c.AC&&iU(this,c.AC);c.VV&&g.yD(c.VV);break;case "videoplaytime100":c.AV&&hU(this,c.AV),c.uC&&iU(this,c.uC),c.LV&&g.yD(c.LV)}(e=this.api.getVideoData().fv)&&IXa(this,e,a.getId())&&IXa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&& !d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.Uy)?void 0:l.j;m&&hU(this,m);break;case "videoplayback2s":(l=null==(m=c.Uy)?void 0:m.C)&&hU(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.Uy)?void 0:n.B)&&hU(this,l)}this.api.Fo([a],1)};g.y(KXa,eU);g.y(MXa,g.W);g.k=MXa.prototype; g.k.ZC=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.VT(this.J)&&400<=this.J.ob().getPlayerSize().width)if(a=this.Ld(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.hF(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||LXa(this), b=this.Ld(),this.pV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.hF(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Pc(c.value)}; g.k.pV=function(a){OXa(this)?this.isChecked=1!==a:((a=1!==a)||(g.bC(),a=g.aB("web_autonav_allow_off_by_default")&&!g.cC(0,141)&&g.FA("AUTONAV_OFF_BY_DEFAULT")?!1:!g.cC(0,140)),this.isChecked=a);NXa(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.zL(this.isChecked?2:1);NXa(this);if(OXa(this)){var a=this.Ld().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.jb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.jb("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.Ld=function(){return this.J.getVideoData(1)};g.y(PXa,eU);g.y(jU,g.aU);jU.prototype.onClick=function(){this.enabled&&(kU(this,!this.checked),this.publish("select",this.checked))}; jU.prototype.getValue=function(){return this.checked}; jU.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var RXa=["en-CA","en","es-MX","fr-CA"];g.y(oU,jU);oU.prototype.Ta=function(a){a?this.j||(this.Bb.Rc(this),this.j=!0):this.j&&(this.Bb.oh(this),this.j=!1);this.j&&kU(this,AOa())}; oU.prototype.D=function(){g.Hv(this.element,"ytp-menuitem-highlight-transition-enabled")}; oU.prototype.C=function(a){var b=AOa();a!==b&&(b=g.bC(),pra(190,a),pra(192,!0),b.save(),this.J.jb("cinematicSettingsToggleChange",a))}; oU.prototype.va=function(){this.j&&this.Bb.oh(this);jU.prototype.va.call(this)};g.y(XXa,eU);XXa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.y(pU,jU);pU.prototype.B=function(a){this.C(a?1:0)}; pU.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=1===this.j()&&a;kU(this,b);this.setEnabled(a)}; pU.prototype.va=function(){this.Bb.oh(this);jU.prototype.va.call(this)};g.y(qU,eU);qU.prototype.getDrcUserPreference=function(){return this.j}; qU.prototype.setDrcUserPreference=function(a){g.XB("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Wc())&&this.B()&&K_(a))}; qU.prototype.updateEnvironmentData=function(){this.api.U().Sf=1===this.j}; qU.prototype.B=function(){var a,b,c=null==(a=this.api.getVideoData())?void 0:null==(b=a.C)?void 0:b.j;return c?Ys(c,function(d){var e;return!0===(null==(e=d.audio)?void 0:e.j)}):!1};g.y(rU,eU);rU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.mf("embargo",1);var c=null==b?void 0:b.FC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?ZXa(this,c.filter(function(d){return YXa(a,d)})):(null==b?0:b.cueRanges)&&ZXa(this,b.cueRanges.filter(function(d){return YXa(a,d)}))}; rU.prototype.B=function(a){return void 0!==a.embargo}; rU.prototype.va=function(){eU.prototype.va.call(this);this.j={}};g.y($Xa,eU); $Xa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Qc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");0a)){var c=this.api.getVideoData(),d=c.zk;if(d&&a=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.y(iZa,eU);g.y(hV,g.I);hV.prototype.j=function(){var a=(0,g.EC)()-this.startTime;a=aa&&this.delay.start()}; var sob=new Tv(0,0,.4,0,.2,1,1,1),oZa=/[0-9.-]+|[^0-9.-]+/g;g.y(iV,g.W);iV.prototype.onClick=function(){var a=this.api.app;var b=a.L("web_log_theater_mode_visibility")?!a.bk():!a.oQ;a.Ua.jb("SIZE_CLICKED",b);this.api.logClick(this.element)}; iV.prototype.Ta=function(){g.hF(this,this.api.nQ()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Fb){var a=this.api.bk();this.bk!==a&&this.YB(a)}this.api.logVisibility(this.element,this.Fb)}; iV.prototype.YB=function(a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};null==this.bk?this.updateValue("icon",b):nZa(this.transition,this.element, b);this.bk=a;b=g.MT(this.api,"Default view","t");var c=g.MT(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.Rh()};g.y(pZa,eU);g.y(qZa,eU);jV.prototype.send=function(a,b){var c;return g.G(function(d){if(1==d.j)return g.Ba(d,2),g.z(d,eB(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Da(d);if(c instanceof dB)throw new ln(kn(VA(c.xhr)),c.message);throw c;})}; jV.prototype.aE=function(a,b){var c=this,d,e,f,h,l,m;return g.G(function(n){if(1==n.j){var p=new Po;d=Zk(p,1,c.Zi);a&&Zk(d,2,a);b&&Zk(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Ck()},c.j)),2)}e=n.B;f=dkb(e.xhr.responseText);h=ck(f,2);if(!h.isEmpty()){if(g.pB()&&10>jqa())throw Error("Unsupported");l=Mg(eda(h));return n.return(iga(l))}m=g.Gk(f,Ko,1);if(!m)throw Error("Missing field");return n.return(m)})}; jV.prototype.DX=function(a){var b=this,c,d;return g.G(function(e){if(1==e.j){var f=new Qo;f=Zk(f,1,b.Zi);c=Zk(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Ck()},b.j)),2)}d=e.B;return e.return(fkb(d.xhr.responseText))})};var j3={},vZa=(j3[1]="pot_ss",j3[2]="pot_sf",j3[3]="pot_se",j3[4]="pot_xs",j3[5]="pot_xf",j3[6]="pot_xe",j3);g.y(kV,eU);kV.prototype.va=function(){this.C&&(g.$A(this.C),this.C=void 0);eU.prototype.va.call(this)}; kV.prototype.QO=function(a){var b=this;return g.G(function(c){return b.j?c.return(b.j.ready().then(function(){b.Mb.Lh("pot_if");return wZa(b,a)})):c.return(Promise.reject("web po not ready"))})}; kV.prototype.OQ=function(a){return wZa(this,a)}; kV.prototype.JT=function(){this.j&&!this.j.isReady()&&lV(this)};g.y(xZa,eU);g.y(mV,g.I);mV.prototype.j=function(){for(var a=g.u(g.Ja.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)}; mV.prototype.va=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.va.call(this)};nV.prototype.cR=function(){this.B=(0,g.EC)()}; nV.prototype.reset=function(){this.j=this.B=NaN}; nV.prototype.iR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});gH("seek",c);g.fH({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||eH("pl_ss",this.B,"seek");eH(b,(0,g.EC)(),"seek")}this.reset()}};g.k=yZa.prototype;g.k.reset=function(){cH(this.timerName)}; g.k.tick=function(a,b){eH(a,b,this.timerName)}; g.k.Lh=function(a){return Cza(a,this.timerName)}; g.k.Tu=function(a){fL(a,void 0,this.timerName)}; g.k.infoGel=function(a){g.fH(a,this.timerName)};g.y(CZa,g.aF);g.k=CZa.prototype;g.k.Wk=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.y(F_a,g.W);g.k=F_a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.jb("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.lU(a,this.J,!0);this.J.logClick(this.element)}; g.k.onVideoDataChange=function(a,b){H_a(this,b);this.Fe&&I_a(this,this.Fe)}; g.k.F5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&H_a(this,b);this.j&&I_a(this,a.state);this.Fe=a.state}; g.k.od=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; g.k.Nb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.y(TV,g.W);TV.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)}; TV.prototype.onStateChange=function(a){this.Gc(a.state)}; TV.prototype.Gc=function(a){if(g.TF(a,128))var b=!1;else{var c;b=(null==(c=this.api.Wc())?0:c.Tt)?!1:g.TF(a,16)||g.TF(a,1)?!0:!1}b?this.j.start():this.hide()}; TV.prototype.B=function(){this.message.style.display="block"};g.y(UV,g.ZT);UV.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(J_a(this),this.od()):(this.j&&this.logClick(),this.Nb()))}; UV.prototype.nk=function(a){this.api.isMutedByMutedAutoplay()&&g.VF(a,2)&&this.Nb()}; UV.prototype.onClick=function(){this.api.unMute();this.logClick()}; UV.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.y(g.VV,g.cK);g.k=g.VV.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.QJ=a.getPlayerSize();this.Fc(b);this.zq();this.dc();this.api.publish("basechromeinitialized",this);this.uP()&&this.api.publish("standardControlsInitialized")}; g.k.onVideoDataChange=function(a,b){var c=this.jF!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.QJ=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.sT(d))&&this.yq()}c&&(this.jF=b.videoId,c=this.Eg,c.Ga=3E3,LV(c,512,!0),this.zq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.C1=572)}; g.k.bba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.k.ZB=function(){var a=this.api.Nk()&&this.api.kp(),b=this.api.rA();return this.oO||a||this.PP||b}; g.k.yq=function(){var a=!this.ZB();g.Jv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.sT(b))&&g.Jv(this.api.getRootNode(),"ytp-hide-controls",!a)}; g.k.pI=function(a){try{if(!g.Rf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!$ba(a);)a=a===this.api.getRootNode()?null:g.Qf(a);return!!a}; g.k.cB=function(a){var b=this.api.getRootNode();g.Jv(b,"ytp-autohide",a);g.Jv(b,"ytp-autohide-active",!0);this.wW.start(a?250:100);a&&(this.aM=!1,g.Hv(b,"ytp-touch-mode"));this.pO=!a;this.api.IL(!a)}; g.k.bR=function(){var a=this.api.getRootNode();g.Jv(a,"ytp-autohide-active",!1)}; g.k.Iba=function(){this.yT=!0}; g.k.Hba=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.yT=!1,this.zT&&this.Pc(this.zT),0===this.BF&&WV(this,a)?(this.QP(),this.MI.start(),this.zT=this.T(this.api.ob(),"touchmove",this.Iba,void 0,!0)):this.MI.stop();N_a(this)&&WV(this,a)&&!this.api.U().Z&&L_a(this);var b=this.DT.Zj();if(!g.BR(this.api.U())&&yR&&O_a(this,a))b&&a.preventDefault();else if(this.aM=!0,g.Fv(this.api.getRootNode(),"ytp-touch-mode"),this.Eg.Vu(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b= this.api.getPlayerStateObject(),!(!this.api.Wh()||g.TF(b,2)&&g.OT(this.api)||g.TF(b,64))){b=Date.now()-this.sZ;this.BF+=1;if(350>=b){this.SD=!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.BF-1);02*b&&d<3*b&&(this.vG(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else MV&& this.api.U().Z&&WV(this,a)&&a.preventDefault();this.sZ=Date.now();this.M0.start()}}; g.k.Gba=function(){this.vK.kA=!1;this.api.publish("rootnodemousedown",this.vK)}; g.k.Cba=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(O_a(this,a)||this.vK.kA)return}else if(this.vK.kA||O_a(this,a))return;N_a(this)||!WV(this,a)||this.MI.isActive()||(L_a(this),a.preventDefault());this.SD&&(this.SD=!1)}; g.k.QP=function(){}; g.k.UG=function(){}; g.k.vG=function(){}; g.k.uG=function(){}; g.k.Bs=function(){var a=this.api.getPlayerStateObject();g.TF(a,2)&&g.OT(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.xn&&(a=this.xn.C,document.activeElement===a.element&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.JA(),this.api.playVideo(),this.xn&&document.activeElement===this.xn.C.element&&(null==(a=this.uP())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))}; g.k.Dba=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!M_a(this,QB(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.SD)this.SD=!1;else if(a.Gb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.JE(d)})}catch(d){this.JE(d)}}; g.k.JE=function(a){String(a).includes("fullscreen error")?g.JE(a):g.IE(a)}; g.k.Eba=function(a){P_a(this,.3,a.scale);a.preventDefault()}; g.k.Fba=function(a){P_a(this,.1,a.scale)}; g.k.dc=function(){var a=this.api.ob().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Eg.resize();g.Jv(b,"ytp-fullscreen",this.api.isFullscreen());g.Jv(b,"ytp-large-width-mode",c);g.Jv(b,"ytp-small-mode",this.Lg());g.Jv(b,"ytp-tiny-mode",this.XJ());g.Jv(b,"ytp-big-mode",this.Dh());this.qg&&this.qg.resize(a)}; g.k.nk=function(a){this.Fc(a.state);this.zq()}; g.k.TB=da(6);g.k.fP=function(){var a=!!this.jF&&!this.api.Ff()&&!this.QR,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(mjb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=HV(this.api.yb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.NI(b.player.U()):!1);return a}return a&&(c.Um||this.api.isFullscreen()||c.Ak)}; g.k.zq=function(){var a=this.fP();this.Pn!==a&&(this.Pn=a,g.Jv(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.k.Fc=function(a){var b=a.isCued()||this.api.Kn()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.AT&&this.Pc(this.AT),this.AT=this.T(this.api.ob(),"touchstart",this.Hba,void 0,b));var c=this.Eg,d=a.isPlaying()&&!g.TF(a,32)||this.api.XE();LV(c,128,!d);c=this.Eg;d=3===this.api.getPresentingPlayerType();LV(c,256,d);c=this.api.getRootNode();g.TF(a,2)?d=[V2.ENDED]:(d=[],g.TF(a,8)?d.push(V2.PLAYING):g.TF(a,4)&&d.push(V2.PAUSED),g.TF(a,1)&&!g.TF(a,32)&&d.push(V2.BUFFERING), g.TF(a,32)&&d.push(V2.SEEKING),g.TF(a,64)&&d.push(V2.UNSTARTED));g.Wb(this.tN,d)||(g.Iv(c,this.tN),this.tN=d,g.Gv(c,d));d=this.api.U();var e=g.TF(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.TF(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:Vib(HV(this.api.yb())))||this.api.rA()||g.BR(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Jv(c,"ytp-hide-controls",!f);g.Jv(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.PP); g.TF(a,128)&&!g.BR(d)?(this.qg||(this.qg=new g.PV(this.api),g.N(this,this.qg),g.UT(this.api,this.qg.element,4)),this.qg.B(a.Ig),this.qg.show()):this.qg&&(this.qg.dispose(),this.qg=null)}; g.k.Tq=function(){return this.api.Nk()&&this.api.kp()?(this.api.QB(!1,!1),!0):this.api.Ff()?(g.PT(this.api,!0),!0):!1}; g.k.onMutedAutoplayChange=function(a){this.PP=a;this.yq()}; g.k.Dh=function(){return!1}; g.k.Lg=function(){return!this.Dh()&&(this.api.getPlayerSize().widththis.api.getPlayerSize().height)}; g.k.XJ=function(){return this.Lg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.Am=function(){return this.aM}; g.k.Fn=function(){return null}; g.k.PX=function(){return null}; g.k.Hn=function(){var a=this.api.ob().getPlayerSize();return new g.Fs(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.Gx=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.ob().IL(a)}; g.k.Vu=function(){}; g.k.uP=function(){return null};g.y(XV,g.aF);g.k=XV.prototype;g.k.im=function(){return 1E3*this.api.getDuration(this.Mo,!1)}; g.k.stop=function(){this.j&&this.Ed.Pc(this.j)}; g.k.Sc=function(){var a=this.api.getProgressState(this.Mo);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Mo,!1)};this.publish("h")}; g.k.getProgressState=function(){return this.B}; g.k.G5=function(a){g.VF(a,2)&&this.publish("g")};g.y(g.YV,g.W);g.YV.prototype.show=function(){g.W.prototype.show.call(this);g.yv(this.j)}; g.YV.prototype.hide=function(){this.B.stop();g.W.prototype.hide.call(this)}; g.YV.prototype.UG=function(a){a?g.TF(this.J.getPlayerStateObject(),64)||ZV(this,Bxa(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?ZV(this,Fxa(),"Stop live playback"):ZV(this,yxa(),"Pause"))};g.y(S_a,g.W);g.k=S_a.prototype;g.k.PG=function(a){a?this.j=LT(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)}; g.k.od=function(){this.J.U().L("player_new_info_card_format")&&g.Ev(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.BR(this.J.U())||(this.B.show(),g.OD("iv-button-shown"))}; g.k.Nb=function(){g.OD("iv-button-hidden");this.B.hide()}; g.k.Zj=function(){return this.Fb&&4!==this.B.state}; g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)}; g.k.Aaa=function(){g.OD("iv-button-mouseover")}; g.k.onClicked=function(a){this.J.Nk();var b=g.Ev(this.J.getRootNode(),"ytp-cards-teaser-shown");g.OD("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.kT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.lT(d);(null==a?0:a.onIconTapCommand)&&this.J.jb("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.QB(!this.J.kp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.y(T_a,g.W);g.k=T_a.prototype;g.k.B2=function(){this.J.Nk()&&this.J.kp()&&this.Zj()&&this.Nb()}; g.k.pT=function(){this.Nb();!this.J.Nk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Ug.Nb();g.OD("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.jb("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.kT(a))||this.J.QB(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.k.I5=function(){g.OD("iv-teaser-mouseover");this.j&&this.j.stop()}; g.k.cca=function(a){this.J.U().L("player_new_info_card_format")&&!g.BR(this.J.U())?this.Ug.Nb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Ug.od();this.j||!a||this.J.kp()||this.B&&this.B.isActive()||(this.od(a),g.OD("iv-teaser-shown"))}; g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Ov(a.teaserText));this.D.show();this.B=new g.xv(function(){g.Fv(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.BR(this.J.U())&&this.Ug.Nb();this.dN()},0,this); this.B.start();this.Ug.PG(!1);this.j=new g.xv(this.Nb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.wV,this));this.G.push(this.listen("mouseout",this.vV,this))}; g.k.dN=function(){if(!this.J.U().L("player_new_info_card_format")&&g.BR(this.J.U())&&this.Fb){var a=this.Ug.element.offsetLeft,b=g.xf("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Ug.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.g7=function(){g.BR(this.J.U())&&this.J.Lg()&&this.Fb&&this.Y.start()}; g.k.wV=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()}; g.k.vV=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()}; g.k.Oaa=function(){this.j&&this.j.stop()}; g.k.Naa=function(){this.Nb()}; g.k.H5=function(){this.Nb()}; g.k.Nb=function(){!this.j||this.C&&this.C.isActive()||(g.OD("iv-teaser-hidden"),this.D.hide(),g.Hv(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.xv(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Pc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Ug.PG(!0);!this.J.Nk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Ug.Nb()},330,this),this.C.start())}; g.k.Zj=function(){return this.Fb&&4!==this.D.state}; g.k.va=function(){var a=this.J.getRootNode();a&&g.Hv(a,"ytp-cards-teaser-shown");g.wb(this.B,this.C,this.j);g.W.prototype.va.call(this)};var l3={},aW=(l3.BUTTON="ytp-button",l3.TITLE_NOTIFICATIONS="ytp-title-notifications",l3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",l3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",l3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",l3);g.y(U_a,g.W);U_a.prototype.onClick=function(){this.api.logClick(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);V_a(this,a)};g.Va("yt.pubsub.publish",g.OD);g.y(g.bW,g.W);g.bW.prototype.D=function(){window.location.reload()}; g.bW.prototype.j=function(){g.Fv(this.element,"ytp-sb-subscribed")}; g.bW.prototype.B=function(){g.Hv(this.element,"ytp-sb-subscribed")};g.y(Z_a,g.W);g.k=Z_a.prototype;g.k.caa=function(a){this.api.logClick(this.j);var b=this.api.U();b.B||b.Wa?a0a(this)&&(this.isExpanded()?this.xI():this.aJ()):g.Qe(cW(this));a.preventDefault()}; g.k.vS=function(){c0a(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.aJ=function(){if(a0a(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0)); var a=this.api.getVideoData();this.B&&a.Ll&&a.subscribed&&(this.B.show(),this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.xI=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()}; g.k.Ta=function(){var a=this.api.U();g.hF(this,!this.api.Yc());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Bc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.BR(c)&&(this.D=e&&!g.vT(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.BR(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K= c),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",cW(this)),this.updateValue("channelLogoLabel",g.qJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Fv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Hv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Cl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")|| this.updateValue("channelTitleLink",cW(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)}; g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.j,this.D&&a)};g.y(dW,g.aU);dW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.y(d0a,g.W);g.k=d0a.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")}; g.k.hide=function(){g.W.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")}; g.k.J5=function(a){var b=QB(a),c=g.Rf(this.closeButton.element,b),d=g.Rf(this.element,b);a=this.j&&g.Rf(this.j,b)&&g.dG(a);b&&(d||a)&&!c||this.hide()}; g.k.K5=function(){X_a(g.NR(this.Ua.U()),"user_info_panel",function(){window.location.reload()})}; g.k.Ta=function(){var a=this.Ua.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Mi};this.updateValue("icon",zxa());this.updateValue("watchingAsUsername",g.qJ("Watching as $USER_NAME",b));a.Mi?this.updateValue("watchingAsEmail",g.qJ("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.y(f0a,g.GU);g.k=f0a.prototype;g.k.j7=function(){this.Bb.Nb()}; g.k.iaa=function(){UXa(this.zz.element)}; g.k.waa=function(){fW(this,this.J.getDebugText(!0))&&ZV(this.ke,kxa())}; g.k.xaa=function(){fW(this,this.J.getVideoEmbedCode())&&ZV(this.ke,oxa());this.J.logClick(this.Cn.element);vya("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")}; g.k.yaa=function(){fW(this,this.J.getVideoUrl(!0,!0))&&ZV(this.ke,qF());this.J.logClick(this.getVideoUrl.element);vya("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")}; g.k.zaa=function(){fW(this,this.J.getVideoUrl(!1,!0))&&ZV(this.ke,qF());this.J.logClick(this.In.element);vya("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")}; g.k.onLoopChange=function(a){var b;null==(b=this.Zk)||kU(b,a)}; g.k.Haa=function(){this.J.setLoopVideo(this.Zk.getValue());this.Bb.Nb();this.J.logClick(this.Zk.element)}; g.k.yba=function(a){this.J.reportPlaybackIssue();if(g.lU(a,this.J,!PR(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.Ac("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Bb.Nb()}; g.k.Sba=function(){g.CT(this.J,"isVideoInfoVisible",[])?g.CT(this.J,"hideVideoInfo",[]):g.CT(this.J,"showVideoInfo",[]);this.Bb.Nb()}; g.k.Rba=function(){this.wl&&(this.sH||(this.sH=new d0a(this.J,this.wl.element),g.N(this,this.sH),g.UT(this.J,this.sH.element,4)),this.sH.show(),this.Bb.Nb(),this.J.logClick(this.wl.element))}; g.k.onVideoDataChange=function(a,b){this.QG(b)}; g.k.QG=function(a){var b=this.J.U(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.qa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.La&&(b.partnerid=a.La),b=g.lo("//support.google.com/googleplay/",b));g.hF(this.Cn,d&&a.allowEmbed);g.hF(this.getVideoUrl,d);g.hF(this.In,d&& !a.isLivePlayback);this.wG.Md(b,"href");var e;null==(e=this.Zk)||g.hF(e,!a.isLivePlayback&&!c);var f;null==(f=this.wl)||g.hF(f,!c)}; g.k.Lc=function(a){g.GU.prototype.Lc.call(this,a);this.J.logVisibility(this.Cn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.In.element,a);this.Zk&&this.J.logVisibility(this.Zk.element,a);this.wl&&this.J.logVisibility(this.wl.element,a)};g.y(i0a,g.IU);g.k=i0a.prototype;g.k.M5=function(a){var b=QB(a);if(!(b&&(Uf(b,"a")||Uf(b,null,"ytp-no-contextmenu"))||this.Fb)){var c;this.Ca=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ie(a.clientX,a.clientY):new g.Ie(0,0);this.ra.start()}}; g.k.P_=function(){this.ra.stop()}; g.k.hca=function(){this.open(this.Ca)}; g.k.JX=function(){if(this.C&&g0a(this.C)){var a=g0a(this.C).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()}; g.k.show=function(){this.C||(this.C=new f0a(this.J,this,this.ke),g.N(this,this.C),g.JU(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.IU.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Lc(!0)}; g.k.hide=function(){h0a(this);g.IU.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Lc(!1)}; g.k.faa=function(a){var b=QB(a);this.Fb||b&&(Uf(b,"a")||Uf(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ie(a.pageX,a.pageY)))}; g.k.od=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ie(b.x,b.y))}g.IU.prototype.od.call(this,a)}; g.k.open=function(a){j0a(this);var b=this.J.getVideoData();g.Jv(this.element,"ytp-dni",b.Hf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.IU.prototype.od.call(this);var c=document.body;b=new As(0,Infinity,Infinity,0);var d=mf(c);for(var e=d.j.body,f=d.j.documentElement,h=Wba(d.j);c=eia(c);)if((!g.Qc||0!=c.clientHeight||c!=e)&&c!=e&&c!=f&&"visible"!=Ns(c,"overflow")){var l=g.Rs(c),m=new g.Ie(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,l.y);b.right=Math.min(b.right, l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=Vba(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x=d.right)&&(e&=-2),132==(e&132)&&(a.y=d.bottom)&&(e&= -5),a.xd.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.yd.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));d=new g.Fs(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ps(this.element,new g.Ie(d.left,d.top));g.UB(this.D);this.D.T(document,"contextmenu",this.qaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.L5)}; g.k.qaa=function(a){if(!a.defaultPrevented){var b=QB(a);g.Rf(this.element,b)||this.Nb();this.J.U().disableNativeContextMenu&&a.preventDefault()}}; g.k.onFullscreenToggled=function(){this.Nb();j0a(this)}; g.k.L5=function(){this.Nb()};g.y(gW,g.W);gW.prototype.onClick=function(){var a=this,b,c,d,e;return g.G(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,m0a(a,e),2);f.B&&l0a(a);a.api.logClick(a.element);g.Aa(f)})}; gW.prototype.Ta=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=k0a(this);g.Jv(this.element,"ytp-copylink-button-visible",this.visible); g.hF(this,this.visible);this.tooltip.Rh();this.api.logVisibility(this.element,this.visible&&this.Z)}; gW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; gW.prototype.va=function(){g.W.prototype.va.call(this);g.Hv(this.element,"ytp-copylink-button-visible")};g.y(hW,g.W);hW.prototype.show=function(){g.W.prototype.show.call(this);g.yv(this.B)}; hW.prototype.hide=function(){this.D.stop();this.C=0;g.Hv(this.element,"ytp-chapter-seek");g.Hv(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)}; hW.prototype.vG=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Av(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.ob().getPlayerSize().height;e=this.J.ob().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5* f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.ob().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");n0a(this,this.G?this.C:d)};g.y(p0a,DU);g.k=p0a.prototype;g.k.N5=function(a){this.Na||(this.Na=new LU(this.J),g.N(this,this.Na));var b,c;if(null==(b=this.zb)?0:null==(c=b.menu)?0:c.menuRenderer)this.Na.open(this.zb.menu.menuRenderer,a.target),a.preventDefault()}; g.k.Baa=function(){this.J.jb("innertubeCommand",this.Jd);this.J.logClick(this.infoButton.element)}; g.k.Vx=function(){return!!this.j}; g.k.OL=function(){return!!this.j}; g.k.EF=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Bc&&this.J.jb("innertubeCommand",this.Bc),EU(this,!1))}; g.k.yu=function(){EU(this,!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.GB()}; g.k.qV=function(){this.GB();lW(this)}; g.k.Eda=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.GB();c=g.u(this.Ga);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.Ob.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element, d.trackingParams));this.qa.show();CU(this);g.hF(this.Ea,!d.stayInApp);B0a(this);r0a(this);kW(this);this.Bc=g.V(d.onTapCommand,ME);if(e=g.V(d.menuOnTap,ME))this.zb=g.V(e,Emb);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:u0a(this),priceDropReferencePrice:v0a(this),promotionText:t0a(this),priceA11yText:w0a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:x0a(this)}); l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.Kb=new g.xv(function(){A0a(b)},1E3),this.Ea.hide(),this.countdownTimer.show(),A0a(this)); this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&q0a(this)&&(this.Tb=new g.xv(function(){s0a(b)},1E3),s0a(this))}}}}; g.k.GB=function(){this.j&&(this.j=void 0,this.Bl())}; g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&lW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.V(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,Cmb);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&& a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)? void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.lF(p));this.Jd=null==b?void 0:b.onClickCommand;this.Ga.length||(z0a(this,n),kW(this));var r;null==(r=this.Qc)||r.call(this);this.Qc=g.SS.subscribe(function(){z0a(c,n);kW(c)})}else{var t; null==(t=this.Qc)||t.call(this);this.GB()}}; g.k.va=function(){lW(this);B0a(this);r0a(this);DU.prototype.va.call(this)};g.y(G0a,g.W);G0a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.y(H0a,g.ZT);g.k=H0a.prototype;g.k.show=function(){g.ZT.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);I0a(this,!0)}; g.k.hide=function(){g.ZT.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);I0a(this,!1)}; g.k.getId=function(){return this.D}; g.k.Cp=function(){return this.itemData.length}; g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Fl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Fl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Fl)?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Fl)?0:l.ctaButtons)for(b=g.u(b.Fl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.V(l.value, qlb))l=new G0a(this.J,l,this.j),l.ue&&(this.itemData.push(l),l.Ja(this.items))}}; g.k.va=function(){this.hide();g.ZT.prototype.va.call(this)};g.y(L0a,g.W);g.k=L0a.prototype;g.k.onVideoDataChange=function(a,b){K0a(this,b);this.Fe&&N0a(this,this.Fe)}; g.k.Q5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&K0a(this,b);N0a(this,a.state);this.Fe=a.state}; g.k.r_=function(a){(this.D=a)?this.hide():this.j&&this.show()}; g.k.P5=function(){this.B||this.od();this.showControls=!0}; g.k.O5=function(){this.B||this.Nb();this.showControls=!1}; g.k.od=function(){this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; g.k.Nb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; g.k.Ida=function(){this.B=!1;this.showControls||this.Nb()};var uob={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(uob).reduce(function(a,b){a[uob[b]]=b;return a},{}); var vob={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(vob).reduce(function(a,b){a[vob[b]]=b;return a},{}); var wob={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(wob).reduce(function(a,b){a[wob[b]]=b;return a},{});var xob,yob;xob=[{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"}];yob=[{option:0,text:mW(0)},{option:.25,text:mW(.25)},{option:.5,text:mW(.5)},{option:.75,text:mW(.75)},{option:1,text:mW(1)}]; g.pW=[{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:xob},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:mW(.5)},{option:-1,text:mW(.75)},{option:0,text:mW(1)},{option:1,text:mW(1.5)},{option:2, text:mW(2)},{option:3,text:mW(3)},{option:4,text:mW(4)}]},{option:"background",text:"Background color",options:xob},{option:"backgroundOpacity",text:"Background opacity",options:yob},{option:"windowColor",text:"Window color",options:xob},{option:"windowOpacity",text:"Window opacity",options:yob},{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:mW(.25)},{option:.5,text:mW(.5)},{option:.75,text:mW(.75)},{option:1,text:mW(1)}]}];var zob=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.y(T0a,g.cK);g.k=T0a.prototype; g.k.uY=function(a){a.repeat||(this.C.PJ=!1);var b=!1,c=a.keyCode,d=QB(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.GT(this.api.app)||zob.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.xf&&!g.GT(this.api.app)&&(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);$V(this.ke,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0); $V(this.ke,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Wh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Wh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&oW(this,!0);(b||h)&&this.Eg.Vu();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey, shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Ac("onKeyPress",a))}; g.k.vY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()}; g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.PJ)return b;(c=g.ST(this.api.yb()))&&(c=c.Qu)&&c.Fb&&(c.sY(a),b=!0);switch(a){case 9:oW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().xf){var l,m;a=null==(l=this.progressBar)? void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Bs(a)}}return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.PJ=!1);var m=!1,n=this.api.U();if(n.xf&&!g.GT(this.api.app))return m;var p=g.ST(this.api.yb());if(p&&(p=p.Qu)&&p.Fb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.rY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&Oka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.GT(this.api.app)|| zob.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.zk:[];t=KY?d:c;switch(a){case 80:b&&!n.Sa&&(ZV(this.ke,Cxa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Sa&&(ZV(this.ke,wxa(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Wh()&&(this.api.startSeekCsiAction(),this.j?iW(this.j,-1,10):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill", X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Wh()&&(this.api.startSeekCsiAction(),this.j?iW(this.j,1,10):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Wh()&&(this.api.startSeekCsiAction(),t?(t=Q0a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(o0a(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?iW(this.j,-1,5):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Wh()&&(this.api.startSeekCsiAction(),t?(t=P0a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(o0a(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?iW(this.j,1,5):ZV(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$V(this.ke,this.api.getVolume(),!1)):(this.api.mute(),$V(this.ke,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Sa:this.Bs(p);break;case 75:m=this.Bs(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),Q_a(this.ke,!1),m=!0):this.api.Wh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&& (m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),Q_a(this.ke,!0),m=!0):this.api.Wh()&&(this.step(-1),m=!0);break;case 70:QXa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); break;case 27:p?(this.progressBar.lw(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.EV(this.api.yb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),R_a(this.ke,!n||n&&!n.displayName),m=!0);break;case 79:qW(this,"textOpacity");break;case 87:qW(this,"windowOpacity");break;case 187:case 61:qW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:qW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Wh()&& (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Eg.Vu()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m}; g.k.step=function(a){this.api.Wh();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0this.api.ob().getPlayerSize().width&&!a);this.api.Yc()?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.qJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.qJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Fb||(this.show(),this.api.Rh()),this.visible= !0,this.Lc(!0)):this.Fb&&this.hide()}; sW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; sW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ta,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ta,this);this.Ta()};g.y(Z0a,g.W);g.k=Z0a.prototype;g.k.T5=function(){this.C?c1a(this):b1a(this)}; g.k.S5=function(){this.C?(tW(this),this.G=!0):b1a(this)}; g.k.H$=function(){this.D=!0;this.LG(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);tW(this);this.j&&this.J.logClick(this.acceptButton)}; g.k.oaa=function(){this.D=!0;this.LG(2);tW(this);this.j&&this.J.logClick(this.dismissButton)}; g.k.U5=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.K){var b=!0,c=g.xf("ytp-ad-overlay-ad-info-dialog-container"),d=QB(a);if(this.B&&d&&g.Rf(this.B,d))this.B=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)}); var e=d1a(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Rf(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.Rf(this.element,d))}this.targetElement&&this.Fb&&!c&&(!d||b&&g.dG(a))&&(this.D=!0,tW(this))}}}; g.k.LG=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.V(d,plb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.jm(),(null==a?0:Oya(d,a.EO))&&kH(a,d,e))}}; g.k.dc=function(){this.G||(this.targetElement||(this.targetElement=$0a(this)),c1a(this))}; var a1a={"ytp-settings-button":g.Exa()};g.y(uW,g.W);uW.prototype.onStateChange=function(a){this.Gc(a.state)}; uW.prototype.Gc=function(a){g.hF(this,g.TF(a,2))}; uW.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.y(vW,g.W);vW.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.lo(this.api.U().Ga,{focusSearch:"true"}),c={};g.CT(this.api,"addEmbedsConversionTrackingParams",[c]);g.XO(c,"emb_search");b=g.lo(b,c);var d;(c=null==(d=this.api.getVideoData().q3)?void 0:d.params)&&(b=g.lo(b,{bp:c}));g.Qe(b);a.preventDefault()}; vW.prototype.j=function(){if(this.api.L("embeds_web_enable_search_button")){var a=this.api.U();var b=this.api.getVideoData(),c=this.api.ob().getPlayerSize().width;a=g.BR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.Yc()}else a=!1;this.visible=a;g.hF(this,this.visible);g.Jv(this.element,"ytp-search-button-visible",this.visible);g.Jv(this.element,"ytp-show-search-title",!this.api.Lg());this.api.logVisibility(this.element,this.visible&&this.Z)}; vW.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(g.wW,g.W);g.k=g.wW.prototype;g.k.hs=da(9);g.k.onClick=function(){var a=this,b=this.api.U(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){f1a(a,f)})}catch(f){f instanceof Error&&f1a(this,f)}else this.Oe.Tq(),$T(this.B,this.element,!1); this.api.logClick(this.element)}; g.k.Ta=function(){var a=this.api.U(),b=this.api.Yc();g.Jv(this.element,"ytp-show-share-title",g.BR(a)&&!b);this.Oe.Dh()&&b?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.element,"right",a+"px")):b&&g.Is(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=e1a(this);g.Jv(this.element,"ytp-share-button-visible",this.visible);g.hF(this,this.visible);this.tooltip.Rh();this.api.logVisibility(this.element,e1a(this)&&this.Z)}; g.k.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; g.k.va=function(){g.W.prototype.va.call(this);g.Hv(this.element,"ytp-share-button-visible")};g.y(h1a,g.ZT);g.k=h1a.prototype;g.k.V5=function(a){a=QB(a);g.Rf(this.G,a)||g.Rf(this.closeButton,a)||$T(this)}; g.k.Nb=function(){g.ZT.prototype.Nb.call(this);this.tooltip.Yl(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}; g.k.show=function(){var a=this.Fb;g.ZT.prototype.show.call(this);this.Ta();a||this.api.jb("onSharePanelOpened")}; g.k.h$=function(){this.Fb&&this.Ta()}; g.k.Ta=function(){var a=this;g.Fv(this.element,"ytp-share-panel-loading");g.Hv(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&kH(this.api.jm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ma()||(g.Hv(a.element,"ytp-share-panel-loading"),j1a(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.qJ("Share link $URL",{URL:b}));UXa(this.j);this.api.logVisibility(this.j,!0)}; g.k.onFullscreenToggled=function(a){!a&&this.Zj()&&$T(this)}; g.k.focus=function(){this.j.focus()}; g.k.va=function(){g.ZT.prototype.va.call(this);i1a(this)};g.y(m1a,DU);g.k=m1a.prototype;g.k.va=function(){r1a(this);DU.prototype.va.call(this)}; g.k.EF=function(a){a.target!==this.dismissButton.element&&(EU(this,!1),this.J.jb("innertubeCommand",this.onClickCommand))}; g.k.yu=function(){this.Wa=!0;EU(this,!0);this.Bl()}; g.k.dba=function(a){this.N=a;this.Bl()}; g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Ca=!0,this.Y=this.ra=!1,r1a(this),q1a(this,!1),this.C=this.j=!1,yW(this),n1a(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.Jf(!1);else{var e,f,h;b=g.V(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer, Cmb);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.SS.getState().entities;var l;if(null==(l=qO(f,"featuredProductsEntity",e))?0:l.productsData){this.Jf(!1);return}}this.enabled=!0;if(!this.D){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!(null==(n=b.dismissButton)||!n.trackingParams)){var p; this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,q1a(this,!0),n1a(this),m=p1a(this,m),n=[],0this.api.getPlayerSize().width));var d=b.profilePicture;a=g.BR(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0=== a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",AW(this)),this.updateValue("channelLogoLabel",g.qJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Fv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Hv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName, c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Cl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",AW(this))};g.y(BW,g.ZT);BW.prototype.show=function(){g.ZT.prototype.show.call(this);this.j.start()}; BW.prototype.hide=function(){g.ZT.prototype.hide.call(this);this.j.stop()}; BW.prototype.Kt=function(a,b){"dataloaded"===a&&((this.Mi=b.Mi,this.yf=b.yf,isNaN(this.Mi)||isNaN(this.yf))?this.C&&(this.J.mf("intro"),this.J.removeEventListener(g.kJ("intro"),this.K),this.J.removeEventListener(g.lJ("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.kJ("intro"),this.K),this.J.addEventListener(g.lJ("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.jJ(this.Mi,this.yf,{priority:9,namespace:"intro"}), this.J.gf([a]),this.C=!0))};g.y(CW,g.W);CW.prototype.onClick=function(){this.J.Nu()}; CW.prototype.Ta=function(){var a=!0;g.BR(this.J.U())&&(a=a&&480<=this.J.ob().getPlayerSize().width);g.hF(this,a);this.updateValue("icon",this.J.Vh()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.y(v1a,g.W);v1a.prototype.va=function(){this.j=null;g.W.prototype.va.call(this)};g.y(DW,g.W);DW.prototype.onClick=function(){this.J.jb("innertubeCommand",this.B)}; DW.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()}; DW.prototype.K=function(){this.j.disabled=null==this.B;g.Jv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Sc()};g.y(EW,DW);EW.prototype.onClickCommand=function(a){g.V(a,RS)&&this.Sc()}; EW.prototype.updateVideoData=function(a,b){var c,d,e;a=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,$Ua);var f;this.B=null==(f=g.V(null==a?void 0:a.playerBarActionButton,g.qM))?void 0:f.command;DW.prototype.K.call(this)}; EW.prototype.Sc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.oR()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=IB(["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.ZT(this.J,{I:"div",Ka:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924", target:this.J.U().Y},xa:b[2]},b[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(c){a.Oe.VD(a.message,c)}); g.UT(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.k.Ta=function(){var a=QXa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.hF(this,a&&!b);this.J.logVisibility(this.element,this.Fb)}; g.k.Km=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g", S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.MT(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.JE(c)})}else b={I:"svg", X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3", V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.MT(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Oe.Te().Rh()}; g.k.va=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.va.call(this)};g.y(GW,g.W);GW.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.qa(a)),g.yv(this.B))};g.y(HW,DW);HW.prototype.onClickCommand=function(a){g.V(a,Amb)&&this.Sc()}; HW.prototype.updateVideoData=function(){var a,b;this.B=null==(a=C1a(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;DW.prototype.K.call(this)}; HW.prototype.Sc=function(){var a="",b=this.D.K,c,d=null==(c=C1a(this))?void 0:c.headerTitle;c=d?g.lF(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1=i2a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Is(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),N1a(this,a)):this.C=this.N))}; g.k.T3=function(){this.ra&&(this.ra.kA=!0);var a=300>(0,g.EC)()-this.Va;if(5>Math.abs(this.Y)&&!a){this.Va=(0,g.EC)();a=this.qa+this.Y;var b=this.j/2-a;this.zM(a);this.yM(a+b);e2a(this);this.api.logClick(this.G)}e2a(this)}; g.k.iB=function(){LW(this,this.api.getCurrentTime())}; g.k.play=function(a){this.api.seekTo(j2a(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)}; g.k.onExit=function(a){this.api.seekTo(this.Sa,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)}; g.k.dc=function(a,b){this.Na=a;this.j=b;LW(this,this.api.getCurrentTime())}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Sa=this.api.getCurrentTime(),N1a(this,this.Sa),g.Jv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.La=this.T(this.element,"wheel",this.U3),this.logVisibility(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.Jv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.La&&this.Pc(this.La);this.logVisibility(this.isEnabled)}; g.k.reset=function(){this.disable();this.D=[];this.Ea=!1}; g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)}; g.k.va=function(){for(;this.B.length;){var a=void 0;null==(a=this.B.pop())||a.dispose()}g.W.prototype.va.call(this)}; g.y(f2a,g.W);g.y(g2a,g.W);g.y(k2a,g.W);g.y(MW,g.W);MW.prototype.Hb=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};n2a.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.Ce(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.y(o2a,g.W);g.y(g.PW,g.iF);g.k=g.PW.prototype; g.k.D2=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.mf("timedMarkerCueRange");r2a(this);for(var c=g.u(b.Be),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Na[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Na[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new o2a;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j= Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;x2a(this,f)}y2a(this,this.K);a=this.K;f=this.Sd;e=[];h=null;for(l=0;lm&&(h.end=m);m=R0a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.gf(e);this.yf=this.Na[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&& d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m=p&&v<=q&&n.push(t)}0this.clipEnd)&&this.vL()}; g.k.V3=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}}; g.k.Kt=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.c9=function(){this.Kt("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.ue();c&&(uT(a)||I2a(this)?this.Be=!1:this.Be=a.allowLiveDvr,g.Jv(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!uT(a))));T2a(this,this.api.Wh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;XW(this);for(UW(this,this.qa,this.gb);0m&&(c=m,a.position=gG(this.C,m)*SW(this).j),b=this.C.B; I2a(this)&&(b=this.C.B);m=f||g.cG(this.Be?c-this.C.j:c-b);b=a.position+this.Qf;c-=this.api.Kc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.Wj()){if(1=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.yf?(n=O0a(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=nW(this.j,1E3*c),n=this.j[n].title):(n=nW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=nW(this.j,1E3*c);this.Wa=K2a(this,c,d)?d:K2a(this,c,d+1)?d+1:-1;g.Jv(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.cG(h.decorationTimeMillis/1E3),d=!0)}this.pd!==d&&(this.pd=d,this.api.logVisibility(this.Jd,this.pd));g.Jv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&& (l-=10);this.G.length&&this.G[0].ue&&(l-=14*(this.D?2:1),this.Ea||(this.Ea=!0,this.api.logVisibility(this.ra,this.Ea)));var q;if(OW(this)&&((null==(q=this.B)?0:q.isEnabled)||0=.5*a?(this.B.enable(),LW(this.B,this.api.getCurrentTime()),S2a(this,a)):bX(this)}if(g.TF(this.api.getPlayerStateObject(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Jd)}g.Hv(this.element,"ytp-drag");this.nf&&!g.TF(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.k.kba=function(a,b){a=SW(this);a=WW(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;OW(this)&&(null==(c=this.B)?0:c.Ea)&&(LW(this.B,a),this.B.isEnabled||(this.Va=g.Ce(this.Rf-b-10,0,ZW(this)),S2a(this,this.Va)))}; g.k.Uh=function(){this.tooltip.RP()}; g.k.o_=function(){this.Ab||(this.updateValue("clipstarticon",lxa()),this.updateValue("clipendicon",lxa()),g.Fv(this.element,"ytp-clip-hover"))}; g.k.n_=function(){this.Ab||(this.updateValue("clipstarticon",nxa()),this.updateValue("clipendicon",mxa()),g.Hv(this.element,"ytp-clip-hover"))}; g.k.vL=function(){this.clipStart=0;this.clipEnd=Infinity;XW(this);UW(this,this.qa,this.gb)}; g.k.Gea=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.Cf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Ob[c]=d;g.Dv(d,b.style);L2a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else R2a(this,b)}; g.k.bda=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())R2a(this,b.value)}; g.k.lw=function(a){this.B&&(this.B.onExit(null!=a),bX(this))}; g.k.LO=function(a){this.B&&(this.B.play(null!=a),bX(this))}; g.k.va=function(){T2a(this,!1);g.iF.prototype.va.call(this)};g.y(cX,g.W);cX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; cX.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1=c;g.hF(this,a);this.J.logVisibility(this.element,a)}; dX.prototype.C=function(){if(this.Bb.Fb)this.Bb.Nb();else{var a=g.EV(this.J.yb());a&&!a.loaded&&(a.Qh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Bb.od(this.element)}}; dX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.TT(this.J),e=c&&!!g.ST(this.J.yb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Jv(this.element,"ytp-hdr-quality-badge",a);g.Jv(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Jv(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Jv(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Jv(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.Jv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Jv(this.element,"ytp-3d-badge",!a&&e&&d)};g.y(eX,jU);eX.prototype.isLoaded=function(){var a=g.KV(this.J.yb());return void 0!==a&&a.loaded}; eX.prototype.Ta=function(){void 0!==g.KV(this.J.yb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Bb.Rc(this),this.j=!0):this.j&&(this.Bb.oh(this),this.j=!1);kU(this,this.isLoaded())}; eX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)}; eX.prototype.va=function(){this.j&&this.Bb.oh(this);jU.prototype.va.call(this)};g.y(fX,g.OU);fX.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.N:this.N;this.Tx(b);a.preventDefault()}; g.k.X3=function(a){a=(a-g.Rs(this.C).x)/this.qa*this.range+this.B;this.Tx(a)}; g.k.Tx=function(a,b){b=void 0===b?"":b;a=g.Ce(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a}; g.k.focus=function(){this.Ea.focus()};g.y(iX,hX);iX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)}; iX.prototype.Tx=function(a){hX.prototype.Tx.call(this,a,a3a(this,a).toString());this.G&&($2a(this),this.La())}; iX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();a3a(this,this.j)!==a&&(this.Tx(a),$2a(this))};g.y(b3a,g.iF);b3a.prototype.focus=function(){this.j.focus()};g.y(c3a,FU);g.y(d3a,g.OU);g.k=d3a.prototype;g.k.Lk=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Ta=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);h3a(this)}; g.k.Jy=function(a){g.OU.prototype.Jy.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),h3a(this),f3a(this,this.J.getPlaybackRate())):(this.Pc(this.K),this.K=null)}; g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||g3a(this,b);f3a(this,a)}; g.k.Dg=function(a){g.OU.prototype.Dg.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Bb.Wi()}; g.k.VH=function(a){jX(this.J)?a!==this.j?g.OU.prototype.VH.call(this,a):(a=new c3a(this.J),g.JU(this.Bb,a)):g.OU.prototype.VH.call(this,a)};g.y(j3a,g.OU);g.k=j3a.prototype;g.k.Ji=function(a){g.OU.prototype.Ji.call(this,a)}; g.k.mU=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.Lk=function(a){return this.getOption(a).text||""}; g.k.Dg=function(a){g.OU.prototype.Dg.call(this,a);this.publish("settingChange",this.K,this.settings[a].option)};g.y(kX,g.GU);kX.prototype.ph=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.uu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ji(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; kX.prototype.pk=function(a,b){this.publish("settingChange",a,b)};g.y(lX,g.OU);lX.prototype.j=function(a){return a.languageCode}; lX.prototype.Lk=function(a){return this.languages[a].languageName||""}; lX.prototype.Dg=function(a){this.publish("select",a);this.J.logClick(this.element);g.KU(this.Bb)};g.y(m3a,g.OU);g.k=m3a.prototype;g.k.KC=function(a){return g.jd(a)?"__off__":a.displayName}; g.k.Lk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.Dg=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.HOa(this.J.U(),this.J.getVideoData());g.nG(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=n3a(this);mX(this,c);g.OU.prototype.Dg.call(this,this.KC(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)? void 0:e.openTranscriptCommand;this.J.jb("innertubeCommand",c);this.Bb.Wi();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=n3a(this);mX(this,b);g.OU.prototype.Dg.call(this,this.KC(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.jb("innertubeCommand",b)}else this.J.logClick(this.element), mX(this,"__off__"===a?{}:this.tracks[a]),g.OU.prototype.Dg.call(this,a);this.Bb.Wi()}}; g.k.Ta=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.tv,d,e=!(null==(d=this.J.getVideoData())||!g.tT(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.bc(d,this.KC,this);e=g.$r(d,this.KC);var m,n;n3a(this)&&(null==(f=b.getPlayerResponse())?0:null==(m=f.captions)?0:null==(n=m.playerCaptionsTracklistRenderer)? 0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.jd(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p}); Aaa(l,f)}k3a(this.j,l);e.push("__translate__")}f=this.KC(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.PU(this,e);this.Ji(f);h&&h.translationLanguage?this.j.Ji(this.j.j(h.translationLanguage)):UYa(this.j);a&&this.G.ph(this.J.getSubtitlesUserSettings());this.countLabel.Md(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.Z3=function(a){var b=this.J.getOption("captions","track");b=g.md(b);b.translationLanguage=this.j.languages[a];mX(this,b)}; g.k.pk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}l3a(this,!0);this.K.start();this.G.ph(this.J.getSubtitlesUserSettings())}; g.k.Qba=function(a){a||g.Av(this.K)}; g.k.va=function(){g.Av(this.K);g.OU.prototype.va.call(this)}; g.k.open=function(){g.OU.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.y(o3a,g.IU);g.k=o3a.prototype; g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.hS=new W2a(this.J,this)}catch(c){g.JE(Error("QualityMenuItem creation failed"))}g.N(this,this.hS);var b=new m3a(this.J,this);g.N(this,b);a.C||(b=new eX(this.J,this),g.N(this,b));a.enableSpeedOptions&&(b=new d3a(this.J,this),g.N(this,b));(g.BR(a)||a.K)&&(a.B||a.Wa)&&(b=new V2a(this.J,this),g.N(this,b));a.Be&&!a.L("web_player_move_autonav_toggle")&&(a=new gX(this.J,this),g.N(this,a));a=new fX(this.J,this); g.N(this,a);this.J.publish("settingsMenuInitialized");U2a(this.settingsButton,this.Pe.Cp())}}; g.k.Rc=function(a){this.initialize();this.Pe.Rc(a);U2a(this.settingsButton,this.Pe.Cp())}; g.k.oh=function(a){this.Fb&&1>=this.Pe.Cp()&&this.hide();this.Pe.oh(a);U2a(this.settingsButton,this.Pe.Cp())}; g.k.od=function(a){this.initialize();0=b;g.hF(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.y(g.pX,g.W);g.k=g.pX.prototype; g.k.Sc=function(){var a=this.api.ob().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!rX(this)||!g.TF(this.api.getPlayerStateObject(),64));g.hF(this,b);g.Jv(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);qX(this)&&(c-=this.Ab.startTimeMs/1E3);c=g.cG(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=qX(this)?g.cG((this.Ab.endTimeMs- this.Ab.startTimeMs)/1E3):g.cG(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!rX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Sc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Md(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.KT(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Ab!== a;this.Ab=a;b&&oX(this)}; g.k.onLoopRangeChange=function(a){var b=this.Ab!==a;this.Ab=a;b&&(this.Sc(),oX(this))}; g.k.oca=function(){this.api.setLoopRange(null)}; g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Sc();oX(this)}; g.k.updateVideoData=function(a){this.WE=a.isLivePlayback&&!a.zb;this.B=uT(a);this.isPremiere=a.isPremiere;g.Jv(this.element,"ytp-live",rX(this))}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};g.y(s3a,g.W);g.k=s3a.prototype;g.k.xx=function(){var a=this.api.Dh();this.C!==a&&(this.C=a,r3a(this,this.api.getVolume(),this.api.isMuted()))}; g.k.nU=function(a){g.hF(this,350<=a.width)}; g.k.d4=function(a){if(!a.defaultPrevented){var b=a.keyCode,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.Ce(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}}; g.k.a4=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.Ce(b/10,-10,10));a.preventDefault()}; g.k.Vba=function(){sX(this,this.j,!0,this.B,this.api.Am());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.b4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Rs(this.N).x;this.api.setVolume(100*g.Ce((a-c/2)/(b-c),0,1))}; g.k.Uba=function(){sX(this,this.j,!1,this.B,this.api.Am());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))}; g.k.onVolumeChange=function(a){r3a(this,a.volume,a.muted)}; g.k.UW=function(){sX(this,this.j,this.isDragging,this.B,this.api.Am())}; g.k.va=function(){g.W.prototype.va.call(this);g.Hv(this.K,"ytp-volume-slider-active")};g.y(tX,g.W); tX.prototype.onVideoDataChange=function(){var a=this.api.U();this.dc();this.visible=!!this.api.getVideoData().videoId&&!g.vT(this.api.getVideoData(1));g.hF(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Pc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Fv(this.element,"no-link")); b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.NR(b),0===b.indexOf("www.")&&(b=b.substring(4)),c=g.wT(a)?"Watch on YouTube Music":"youtube.com"===b?"Watch on YouTube":g.qJ("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)}; tX.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.dG(a),!1,!0,!0);if(g.BR(b)){var d={};g.BR(b)&&g.CT(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.lo(c,g.XO(d,"emb_logo"))}g.mU(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; tX.prototype.dc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Hc:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, b=28666,c=this.api.getVideoData();this.api.Yc()?a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.wT(c)&&(a={I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 86 51",width:"100%"},V:[{I:"path",X:{d:"M1 41.39H5.42V27.23C5.42 23.03 5.32 18.69 5.06 13.59H5.56L6.32 16.89L11.3 41.39H15.8L20.7 16.89L21.52 13.59H22C21.78 18.45 21.66 22.89 21.66 27.23V41.39H26.08V8.79H18.58L16.04 20.81C14.98 25.85 14.14 32.01 13.64 35.19H13.36C12.96 31.95 12.12 25.81 11.04 20.85L8.44 8.79H1V41.39Z",fill:"white"}},{I:"path",X:{d:"M34.08 41.73C36.54 41.73 38.46 40.59 39.8 38.13H39.98L40.32 41.39H44.06V17.73H39.1V36.61C38.54 37.67 37.44 38.29 36.36 38.29C34.96 38.29 34.52 37.17 34.52 35.13V17.73H29.56V35.43C29.56 39.49 30.82 41.73 34.08 41.73Z", fill:"white"}},{I:"path",X:{d:"M53.42 41.89C57.78 41.89 60.38 39.83 60.38 35.65C60.38 31.79 58.56 30.39 54.48 27.47C52.30 25.91 51.02 25.09 51.02 22.95C51.02 21.47 51.90 20.61 53.52 20.61C55.32 20.61 55.96 21.81 55.96 25.29L60.08 25.07C60.40 19.57 58.34 17.23 53.60 17.23C49.20 17.23 46.80 19.27 46.80 23.45C46.80 27.25 48.60 28.83 51.56 31.03C54.52 33.23 56.18 34.53 56.18 36.23C56.18 37.75 55.14 38.61 53.64 38.61C51.76 38.61 50.74 36.97 50.92 34.41L46.84 34.49C46.14 39.25 48.52 41.89 53.42 41.89Z", fill:"white"}},{I:"path",X:{d:"M65.12 14.59C66.84 14.59 67.66 13.99 67.66 11.59C67.66 9.33 66.78 8.65 65.12 8.65C63.46 8.65 62.56 9.27 62.56 11.59C62.56 13.99 63.44 14.59 65.12 14.59ZM62.82 41.39H67.62V17.73H62.82V41.39Z",fill:"white"}},{I:"path",X:{d:"M77.58 41.79C79.94 41.79 81.26 41.49 82.34 40.47C83.94 39.01 84.60 36.63 84.48 33.11L80.04 32.87C80.04 36.87 79.44 38.45 77.66 38.45C75.76 38.45 75.40 36.45 75.40 31.97V27.21C75.40 22.41 75.86 20.51 77.70 20.51C79.30 20.51 79.92 22.01 79.92 26.47L84.28 26.15C84.60 22.93 84.22 20.29 82.72 18.83C81.64 17.77 80.00 17.29 77.78 17.29C72.28 17.29 70.38 20.73 70.38 28.03V31.17C70.38 38.47 71.86 41.79 77.58 41.79Z", fill:"white"}}]},b=216163);g.wT(c)?g.Fv(this.element,"ytp-youtube-music-button"):g.Hv(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)}; tX.prototype.Lc=function(a){g.W.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(u3a,g.cK);g.k=u3a.prototype;g.k.xg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.TF(this.J.getPlayerStateObject(),2))this.progressBar.Sc(),this.Ca.Sc()}; g.k.cB=function(){this.KT();this.Eg.B?this.xg():this.progressBar.Uh()}; g.k.e4=function(){this.xg();this.Z.start()}; g.k.KT=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.QR(),c=a.C;a=300>1E3*(c.j-c.B)/a.api.getPlaybackRate()/b}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Eg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.xg)):this.ra&&(this.Pc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()}; g.k.dc=function(){var a=this.J.Dh(),b=this.J.ob().getPlayerSize(),c=w3a(this),d=Math.max(b.width-2*c,100);if(this.gb!==b.width||this.Za!==a){this.gb=b.width;this.Za=a;var e=x3a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.Q2a(this.progressBar,c,e,a);this.J.Te().oU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-y3a(this))));c.maxWidth=d;c.maxHeight=a;c.kC();this.KT();this.J.U().L("html5_player_dynamic_bottom_gradient")&&u1a(this.Wa, b.height)}; g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Na.style.background=a.Hf?a.zp:"";this.qa&&B1a(this.qa,a.showSeekingControls);this.Y&&B1a(this.Y,a.showSeekingControls)}; g.k.Hb=function(){return this.C.element};g.y(z3a,DU);g.k=z3a.prototype;g.k.EF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand),this.yu())}; g.k.yu=function(){this.enabled=!1;this.qa.hide()}; g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&A3a(this);a=[];var c,d,e,f;if(b=null==(f=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,Ymb))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.V(d.value,Zmb))&&g.V(d.trigger,Xmb)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.V(d.trigger,Xmb))f=(f=d.title)?g.lF(f):"View Chapters", b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.jJ(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.gf(c)}}; g.k.Vx=function(){return this.enabled}; g.k.Jf=function(){this.enabled?this.Sa.start():BU(this);this.Bl()}; g.k.va=function(){A3a(this);DU.prototype.va.call(this)};var m3={},uX=(m3.CHANNEL_NAME="ytp-title-channel-name",m3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",m3.LINK="ytp-title-link",m3.SESSIONLINK="yt-uix-sessionlink",m3.SUBTEXT="ytp-title-subtext",m3.TEXT="ytp-title-text",m3.TITLE="ytp-title",m3);g.y(vX,g.W);vX.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.dG(a),!1,!0);g.BR(b)&&(b={},g.CT(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.lo(c,g.XO(b,"emb_title")));g.mU(c,this.api,a)}; vX.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:uX.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},xa:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:uX.CHANNEL_NAME,xa:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);B3a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Bc&&c.profilePicture?(this.updateValue("channelLink", c.Bc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):B3a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Ak;g.Jv(this.link,uX.FULLERSCREEN_LINK,c);b.qa||!a.videoId||c||g.vT(a)||b.C?this.j&&(this.updateValue("url",null),this.Pc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.BR(b)?a.expandedTitle: a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.y(g.wX,g.W);g.k=g.wX.prototype;g.k.setEnabled=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:D3a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a}; g.k.SL=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){3===this.type&&this.Uh();1!==this.type&&(g.Dv(this.element,"ytp-tooltip ytp-bottom"),(x1a(this.api)||this.api.isInline())&&g.Fv(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Wj())&&this.B.subscribe("l",this.v_,this));if(l){var m=g.Us(this.bg).height||this.Ca;this.Sa.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.Jv(this.text,"ytp-tooltip-text-no-title", 1===this.type&&!f);this.api.isInline()&&g.Fv(this.text,"ytp-modern-tooltip-text");g.Jv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=xS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=uVa(this.B,c,b));F3a(this,c);if(h)switch(b=g.Us(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right= b/2+"px",this.title.style.textAlign="center"}E3a(this,!!d,a,e)}}; g.k.RP=function(){1===this.type&&this.Uh()}; g.k.VG=function(a,b){if(this.type)if(3===this.type)this.Uh();else return;C3a(this,a,3,b)}; g.k.Rh=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&D3a(this))}; g.k.v_=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,F3a(this,a))}; g.k.X9=function(){sVa(this.B,this.D,this.N*this.scale)}; g.k.Uh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);G3a(this);break;case 3:G3a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.v_,this),this.B=null),this.api.removeEventListener("videoready",this.Ga),this.Ea.stop()}this.type=null;this.Y&&this.K.hide()}; g.k.Yl=function(){if(this.j)for(var a=0;a(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.cB=function(a){a&&(this.api.Yl(this.gi.element),this.Ag&&this.api.Yl(this.Ag.Hb()));this.TJ&&(g.Jv(this.contextMenu.element,"ytp-autohide",a),g.Jv(this.contextMenu.element,"ytp-autohide-active",!0));g.VV.prototype.cB.call(this,a)}; g.k.bR=function(){g.VV.prototype.bR.call(this);this.TJ&&(g.Jv(this.contextMenu.element,"ytp-autohide-active",!1),this.TJ&&(this.contextMenu.hide(),this.Zh&&this.Zh.hide()))}; g.k.Hn=function(a,b){var c=this.api.ob().getPlayerSize();c=new g.Fs(0,0,c.width,c.height);if(a||this.Eg.B&&!this.ZB()){if(this.api.U().Um||b)a=this.Dh()?this.cO:this.bO,c.top+=a,c.height-=a;this.Ag&&(c.height-=y3a(this.Ag))}return c}; g.k.xx=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.eE.element,b),b.parentElement.insertBefore(this.dE.element,b.nextSibling))):g.IE(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.eE.detach(),this.dE.detach());this.dc();this.zq()}; g.k.Dh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1}; g.k.showControls=function(a){this.oO=!a;this.yq()}; g.k.dc=function(){var a=this.Dh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Jv(this.contextMenu.element,"ytp-big-mode",a);this.yq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||N3a(this);this.zq();var b=this.api.Yc();b&&a?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.gi.element,"padding-left",a+"px"),g.Is(this.gi.element,"padding-right",a+"px")):b&&(g.Is(this.gi.element,"padding-left",""),g.Is(this.gi.element,"padding-right",""));g.VV.prototype.dc.call(this)}; g.k.fP=function(){if(M3a(this)&&!g.RT(this.api))return!1;var a=this.api.getVideoData();return!g.BR(this.api.U())||2===this.api.getPresentingPlayerType()||!this.wi||((a=this.wi||a.wi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.V(a.videoDetails,wWa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.VV.prototype.fP.call(this):!1}; g.k.zq=function(){g.VV.prototype.zq.call(this);this.api.logVisibility(this.title.element,!!this.Pn);this.tB&&this.tB.Lc(!!this.Pn);this.channelAvatar.Lc(!!this.Pn);this.overflowButton&&this.overflowButton.Lc(this.Lg()&&!!this.Pn);this.shareButton&&this.shareButton.Lc(!this.Lg()&&!!this.Pn);this.Po&&this.Po.Lc(!this.Lg()&&!!this.Pn);this.searchButton&&this.searchButton.Lc(!this.Lg()&&!!this.Pn);this.vn&&this.vn.Lc(!this.Lg()&&!!this.Pn);if(!this.Pn){this.api.Yl(this.gi.element);for(var a=0;a=b)return d.return();(c=a.j.get(0))&&V3a(a,c);g.Aa(d)})}; var S3a={l3a:0,y6a:1,B4a:2,A6a:3,gwa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var n3={},t7a=(n3["1h"]=8,n3["9h"]=4,n3["1"]=8,n3["9"]=4,n3["("]=4,n3.h=2,n3.H=2,n3),o3={},u7a=(o3.o=3,o3.O=3,o3.so=3,o3.a=1,o3.ah=1,o3.A=1,o3.m=1,o3.M=1,o3.sa=1,o3.mac3=7,o3.MAC3=7,o3.meac3=5,o3.MEAC3=5,o3),p3={},v7a=(p3.o=0,p3.O=0,p3.a=0,p3.ah=0,p3.A=0,p3.m=1,p3.M=1,p3.mac3=1,p3.MAC3=1,p3.meac3=1,p3.MEAC3=1,p3.so=4,p3.sa=4,p3);var q3={},c4a=(q3["140"]={numChannels:2},q3["141"]={numChannels:2},q3["251"]={audioSampleRate:48E3,numChannels:2},q3["380"]={numChannels:6},q3["328"]={numChannels:6},q3),r3={},$3a=(r3["1"]='video/mp4; codecs="av01.0.08M.08"',r3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',r3["9"]='video/webm; codecs="vp9"',r3["("]='video/webm; codecs="vp9"',r3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',r3.h='video/mp4; codecs="avc1.64001e"',r3.H='video/mp4; codecs="avc1.64001e"',r3.o= 'audio/webm; codecs="opus"',r3.a='audio/mp4; codecs="mp4a.40.2"',r3.ah='audio/mp4; codecs="mp4a.40.2"',r3.mac3='audio/mp4; codecs="ac-3"; channels=6',r3.meac3='audio/mp4; codecs="ec-3"; channels=6',r3),s3={},a4a=(s3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},s3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},s3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},s3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},s3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},s3["700"]={width:2560, height:1440,bitrate:1E7,fps:60},s3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},s3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},s3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},s3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},s3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},s3["360"]={width:1920,height:1080,bitrate:5331E3, fps:30,cryptoblockformat:"subsample"},s3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},s3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},s3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},s3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},s3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},s3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},s3["302"]={width:1280,height:720,bitrate:25E5, fps:60},s3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},s3["298"]={width:1280,height:720,bitrate:35E5,fps:60},s3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},s3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},s3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},s3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},s3["398"]={width:1280,height:720,bitrate:1E6,fps:60},s3["397"]={width:854,height:480,bitrate:4E5,fps:30},s3["396"]={width:640,height:360,bitrate:25E4,fps:30},s3["313"]= {width:3840,height:2160,bitrate:8E6,fps:30},s3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},s3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},s3["247"]={width:1280,height:720,bitrate:15E5,fps:30},s3["244"]={width:854,height:480,bitrate:52E4,fps:30},s3["243"]={width:640,height:360,bitrate:28E4,fps:30},s3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},s3["136"]={width:1280,height:720,bitrate:3E6,fps:30},s3["135"]={width:854,height:480,bitrate:1E6,fps:30},s3["385"]={width:1920,height:1080, bitrate:6503313,fps:60},s3["376"]={width:1280,height:720,bitrate:5706960,fps:60},s3["384"]={width:1280,height:720,bitrate:3660979,fps:60},s3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},s3["224"]={width:1280,height:720,bitrate:453E4,fps:30},s3["145"]={width:1280,height:720,bitrate:2682052,fps:30},s3);var FX,EX,GX=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"]],k4a=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],l4a=["571 401 400 399 398 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],m4a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],n4a=["412","359"],o4a=[["140"],["251"],["380"],["328"]],Hfb="781 780 779 777 776 775 244 243 242".split(" "),t3={},g4a=(t3["398"]= ["397","396","395","394"],t3["247"]=["244","243","242"],t3["136"]=["135","134","133","160"],t3["141"]=["140"],t3["251"]=["250"],t3),u3={},h4a=(u3["135"]=["134","133","160"],u3["243"]=["242"],u3["781"]=["780","779"],u3["777"]=["776","775"],u3["396"]=["395","394"],u3["141"]=["140"],u3["251"]=["250"],u3),v3={},i4a=(v3["274"]=["317","273","318","280","279"],v3["145"]=["144","222","223","143","142"],v3["141"]=["149"],v3["140"]=["149"],v3["380"]=["381"],v3["328"]=["329"],v3),w3={},e4a=(w3["133"]=240,w3["134"]= 360,w3["135"]=480,w3["136"]=720,w3["137"]=1080,w3["242"]=240,w3["243"]=360,w3["244"]=480,w3["247"]=720,w3["248"]=1080,w3["298"]=720,w3["299"]=1080,w3["302"]=720,w3["303"]=1080,w3["395"]=240,w3["396"]=360,w3["397"]=480,w3["398"]=720,w3["399"]=1080,w3);var HX=[],xfb=!1;g.S_=Id(function(){var a="";try{var b=g.Cf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.y(IX,g.I);IX.prototype.K=function(){null!=this.j&&this.app.getVideoData()!==this.j&&FS(this.j)&&ggb(this.app,this.j,void 0,void 0,this.B)}; IX.prototype.G=function(){if(null!=this.j&&this.app.getVideoData()!==this.j&&null!=this.tb&&null!=this.C&&null!=this.D&&FS(this.j)){var a=s4a(this.tb,this.C,this.D);null==a?ggb(this.app,this.j,void 0,void 0,this.B):(this.tb.ma("sgap",a),this.tb.getVideoData().Y&&F0(this.tb,!1))}}; IX.prototype.N=function(a){var b=this.app.Wc();if(b){var c=this.app.getCurrentTime();5e?this.yg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=$Da(a,c,d,!0),this.D=$Da(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),B4a(this.j,this.C,!1,C4a(this)),this.j.setMediaElement(x4a(b, c,d,!this.j.getVideoData().isAd())),LX(this,2),F4a(this))))}else this.yg("no-elem")}; g.k.zy=function(a){var b=a===E4a(this).XS,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;xK(a.Je(),d-.01)&&(LX(this,4),c.l1(!1),(1===this.G?this.j:this.B).ma("sbh",{}),b.l1(!0),0!==this.G&&(this.j.getVideoData().cW=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(LX(this,5),0!==this.G)){this.j.ma("sbs",{});var e;if(null!=(e=this.B)&&TS(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;null!=(f=e.ya)&&f.lf()}}}}; g.k.x_=function(){this.St()&&this.yg("player-reload-after-handoff")}; g.k.yg=function(a,b){b=void 0===b?{}:b;if(!this.Ma()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Wd(new WJ("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Pm,msg:a})));F0(this.j,c)}this.wq.reject(a);this.dispose()}}; g.k.St=function(){return 4<=this.status.status&&6>this.status.status}; g.k.va=function(){D4a(this);this.j.unsubscribe("newelementrequired",this.x_,this);if(this.C){var a=this.C.B;this.C.j.Qd.unsubscribe("updateend",this.zy,this);a.Qd.unsubscribe("updateend",this.zy,this)}g.I.prototype.va.call(this)}; g.k.pU=function(a){g.VF(a,128)&&this.yg("player-error-event")};g.y(H4a,g.I);g.k=H4a.prototype;g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&F0(this.B,!1);NX(this,a)}; g.k.Tn=function(){return!this.j}; g.k.aF=function(a){return this.j===a}; g.k.St=function(){var a;return(null==(a=this.C)?void 0:a.St())||!1}; g.k.va=function(){NX(this);g.I.prototype.va.call(this)};g.y(Q4a,g.aF);g.k=Q4a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:M4a()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0}; g.k.Km=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Jf())}; g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Jf())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Jf())}; g.k.UB=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Jf())}; g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Jf())}; g.k.YB=function(a){this.D!==a&&(this.D=a,this.Jf())}; g.k.Vh=function(){return this.j}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.Qz=function(){return this.fullscreen}; g.k.isMinimized=function(){return this.B}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return M4a()}; g.k.Rt=function(){return this.pictureInPicture}; g.k.pA=function(){return!1}; g.k.wA=function(){return this.C}; g.k.bk=function(){return this.D}; g.k.Jf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Vh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Rt(),this.pA(),this.wA(),this.bk());a!==this.K&&this.publish("visibilitystatechange");this.K=a}; g.k.va=function(){P4a(this.G);g.aF.prototype.va.call(this)};g.y(SX,g.I);SX.prototype.Ek=function(){if(!this.wf.length)return[];var a=this.wf;this.wf=[];this.C=g.Bb(a).info;return a}; SX.prototype.aG=function(){return this.wf}; SX.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.wf.length=0;this.ib.length=0;this.C=null};g.y(UX,g.I);g.k=UX.prototype;g.k.Yq=function(){return Array.from(this.Vc.keys())}; g.k.Lu=function(a){a=this.Vc.get(a);var b=a.wf;a.jz+=b.totalLength;a.wf=new BN;return b}; g.k.Kg=function(a){return this.Vc.get(a).Kg}; g.k.Lw=function(a){return this.Vc.get(a).Lw}; g.k.jB=function(a,b,c,d){this.Vc.get(a)||X4a(this,a,b);b=this.Vc.get(a);if(this.manifest){a=Z4a(this,a,c);if(d)for(var e=g.u(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.Z=h;f.startTime+=h;f.C+=h;f.D+=h}Y4a(this,c.Ip,b,a)}else c.Qn?b.TY=c.Wr:b.wF.push(c),b.GS.push(c)}; g.k.Gn=function(a){var b;return(null==(b=this.Vc.get(a))?void 0:b.ib)||[]}; g.k.ZA=function(){for(var a=g.u(this.Vc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.eS&&(b.xg&&b.xg(),b.eS=!1)}; g.k.Zp=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); var c=this.Vc.get(b);if(VX){if(c&&!c.Kg){if(c.vj.get(a))c.vj.get(a).Ow=!0;else{var d;(null==(d=this.hf)?0:d.Gb)&&c.vj.set(a,{data:new BN,jI:0,Ow:!0})}c.Lw=!0}}else c&&!c.Lw&&(c.Lw=!0)}; g.k.Ek=function(a){if(VX){var b=this.Vc.get(a);if(b)for(var c=g.u(b.vj),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=b.YG.get(d);if(oQ(f[0])){if(!e.Ow)continue;var h=e.data,l=0,m=[];f=g.u(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=DN(h,l,p);l+=p;m.push(new BQ(n,q))}b.ix.push.apply(b.ix,g.qa(m))}else if(0=e.Xx?e.Xx:void 0;return{Im:{XH:a?F5a(this,a):[],pW:l,kt:d,B1:b,O2:bf(m.split(";")[0]), P2:m.split(";")[1]||""}}}; g.k.tP=function(a){a:{if(!this.yn){var b=nY(this,a);if(!(this.ea.getVideoData().Rn()&&(null==b?0:b.uA)))break a}b=void 0}if(!b)return this.ea.ma("sdai",{gvprp:"ncp",mt:a}),null;a=b.Ul;b=oR(b.ssdaiAdsConfig||"")||void 0;var c=this.ea.getVideoData(),d,e=(null==(d=c.B)?void 0:d.containerType)||0;d=c.aD[e];return{XH:a?F5a(this,a):[],pW:b,O2:bf(d.split(";")[0]),P2:d.split(";")[1]||""}}; g.k.Oz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=B5a(this,a,b,d,c,f);this.Va&&this.ea.ma("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return pY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.ea.ma("sdai",{gdu:"noadpfmts",seg:b,itag:h}),pY(this,b,e),null;l=f.find(function(v){return v.itag===h}); if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.ma("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});pY(this,b,e);return null}a.locations.set(h,new g.sP(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.ma("sdai",{gdu:"nourl",seg:b,itag:h}),pY(this,b,e),null;l=new eQ(l);this.Bc&&(l.get("dvc")?this.ea.ma("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=oY(this,b-1,d))?void 0:q.kt)&& l.set("daistate",m);a.Xx&&b>=a.Xx&&l.set("skipsq",""+a.Xx);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Ul&&(q=F5a(this,a.Ul),0d?(this.Ou(a,c,!0),this.ea.seekTo(d),!0):!1}; g.k.Ou=function(a,b,c){c=void 0===c?!1:c;if(a=mY(this,a,b)){var d=void 0,e=a.Ul;if(e){this.ea.ma("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Y.get(e);if(!c)return;c=g.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.Xx=b,e.jc>a.jc&&(d=e)}this.N=a.cpn;C5a(this);b=this.ea.getCurrentTime();u5a(this,a,d,b,b,!1,!0)}}; g.k.xS=function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())b.value.Xx=NaN;C5a(this);this.ea.ma("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""}; g.k.pH=da(44); g.k.FR=function(a,b,c,d,e,f,h,l,m){this.W.L("html5_enable_ssdai_cue_logs")&&0=c+l)c=h.end;else{var p=!1;h?(n?(h.start=c-m,h.end=c+l):c=l){h=this.api.L("html5_ssap_abandon_on_skip_fix");this.lH.set(a,c);if(h)b6a(this,a,b);else if(c=this.Qi.get(a))this.ea.removeCueRange(c),this.Qi.delete(a);this.cM.set(a,(0,g.EC)());if(c=this.Qi.get(b))for(c=c.getId().split(","),c=g.u(c),l=c.next();!l.done;l=c.next())l=l.value,l!==b&&this.jk.has(l)&&(this.jk.delete(l),this.XG.add(l));d&&J_(this.ea); b=f.Ye()/1E3;h?(d=void 0,f=null!=(d=g.EI(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))?d:0,this.ea.seekTo(b+f/1E3)):this.ea.seekTo(b);e&&this.api.playVideo(1);return[a]}}}return[]}; g.k.hP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Bi();a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Bi()>b&&(b=d.Bi())}return b/1E3}; g.k.Dd=function(){var a=1E3*this.ea.getCurrentTime();if(this.api.L("html5_ssap_get_min_seekable_time_refactor")){var b=R5a(this,a);if(!b){var c=cY(this.timeline,this.pc);if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ye()>a&&(b=d)}}}else b=qY(this,a);return b&&1===b.getType()?b.Ye()/1E3:0}; g.k.getVideoData=function(a){if(2===a&&!this.wm()){if(this.eK&&this.Zs.has(this.eK))return this.Zs.get(this.eK);this.api.ma("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return U5a(this)}; g.k.wm=function(){var a=cY(this.timeline,this.pc);return(null==a?0:a.length)?2===a[0].getType():!1}; g.k.rA=function(){var a=cY(this.timeline,this.pc);return(null==a?0:a.length)?a[0].C:!1}; g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=S5a(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)}; g.k.CI=function(a,b,c){return new g.jJ(a,b,{id:c,namespace:"ssap",priority:9})}; g.k.onCueRangeEnter=function(a){if(!this.hL.has(a.getId())){for(var b=a.getId().split(","),c=0;cc+1)for(d=c+1;dthis.C;)(c=this.data.shift())&&FY(this,c,!0);DY(this)}; g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(FY(this,c,b),g.Ib(this.data,function(d){return d.key===a}),DY(this))}; g.k.removeAll=function(a){if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())FY(this,c.value,a);this.data=[];DY(this)}; g.k.va=function(){var a=this;g.I.prototype.va.call(this);this.data.forEach(function(b){FY(a,b,!0)}); this.data=[]};g.y(GY,g.I);GY.prototype.hJ=function(a){if(a)return this.B.get(a)}; GY.prototype.va=function(){this.j.removeAll();this.B.removeAll();g.I.prototype.va.call(this)};g.y(w6a,g.I);w6a.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.B&&this.B.disconnect()};g.Aob=Id(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var x3;x3={};g.HY=(x3.STOP_EVENT_PROPAGATION="html5-stop-propagation",x3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",x3.IV_DRAWER_OPEN="ytp-iv-drawer-open",x3.MAIN_VIDEO="html5-main-video",x3.VIDEO_CONTAINER="html5-video-container",x3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",x3.HOUSE_BRAND="house-brand",x3);g.y(A6a,g.W);g.k=A6a.prototype;g.k.Ns=function(){g.Gv(this.element,g.Ja.apply(0,arguments))}; g.k.Ej=function(){this.Dc&&(this.Dc.removeEventListener("focus",this.mR),g.Pf(this.Dc),this.Dc=null)}; g.k.xO=function(){this.Ma();var a=this.app.U();a.Ym||this.Ns("tag-pool-enabled");a.K&&this.Ns(g.HY.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Ns("ytp-gvn"),this.element.style.backgroundColor="transparent");a.qc&&(this.mO=g.MD("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; g.k.IL=function(a){g.FR(this.app.U());this.MJ=!a;IY(this)}; g.k.resize=function(){if(this.Dc){var a=this.Th();if(!a.isEmpty()){var b=!g.Le(a,this.vB.getSize()),c=F6a(this);b&&(this.vB.width=a.width,this.vB.height=a.height);a=this.app.U();(c||b||a.qc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}}; g.k.Kt=function(a,b){this.updateVideoData(b)}; g.k.updateVideoData=function(a){if(this.Dc){var b=this.app.U();UC&&(this.Dc.setAttribute("x-webkit-airplay","allow"),a.title?this.Dc.setAttribute("title",a.title):this.Dc.removeAttribute("title"));this.Dc.setAttribute("controlslist","nodownload");b.jq&&a.videoId&&(this.Dc.poster=a.dh("default.jpg"))}b=g.bT(a,"yt:bgcolor");this.yz.style.backgroundColor=b?b:"";this.KQ=uqa(g.bT(a,"yt:stretch"));this.LQ=uqa(g.bT(a,"yt:crop"),!0);g.Jv(this.element,"ytp-dni",a.Hf);this.resize()}; g.k.setGlobalCrop=function(a){this.yP=uqa(a,!0);this.resize()}; g.k.setCenterCrop=function(a){this.PW=a;this.resize()}; g.k.Km=function(){}; g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.BR(a);if(b&&oB()&&!c)return new g.Ke(window.outerWidth,window.outerHeight);c=!isNaN(this.cE.width)&&!isNaN(this.cE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Ke(this.element.clientWidth,this.element.clientHeight);if(b||a.Zo){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.tF&&this.tF.media=== a||(this.tF=window.matchMedia(a));var e=this.tF&&this.tF.matches}if(e)return new g.Ke(window.innerWidth,window.innerHeight)}else if(c)return this.cE.clone();return new g.Ke(this.element.clientWidth,this.element.clientHeight)}; g.k.Th=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.EI(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.bS&&b.width>c?new g.Ke(b.width*g.EI(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.k.getVideoAspectRatio=function(){return isNaN(this.KQ)?C6a(this):this.KQ}; g.k.getVideoContentRect=function(a){var b=this.Th();a=D6a(this,b,this.getVideoAspectRatio(),a);return new g.Fs((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.k.WB=function(a){this.bS=a;this.resize()}; g.k.ZE=function(){return this.kL}; g.k.onMutedAutoplayChange=function(){IY(this)}; g.k.setInternalSize=function(a){g.Le(this.cE,a)||(this.cE=a,this.resize())}; g.k.va=function(){this.mO&&g.ND(this.mO);this.Ej();g.W.prototype.va.call(this)};g.k=G6a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.FE();c&&a.visualElement&&g.YE(c,a.visualElement,b)}; g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Zva(c);a.visualElement=c;var f=g.FE(),h=g.EE();f&&h&&(g.aB("combine_ve_grafts")?RO(PO(),c,h):g.JA(g.RE)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)}); d&&this.B.add(a)}; g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)}); c&&this.B.add(a)}; g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)}; g.k.fX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,QO(PO(),a),H6a(this))}; g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.DE(b))}; g.k.hasVe=function(a){return this.elements.has(a)};I6a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; I6a.prototype.getPlaybackRate=function(){return this.playbackRate};NY.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.Sb,f=Q6a(this,this.videoTrack,a,this.videoTrack.Sb,b);b=Q6a(this,this.audioTrack,this.policy.nf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(O6a(this,this.videoTrack,c),O6a(this,this.audioTrack,d));return a}; NY.prototype.isSeeking=function(){return this.G}; NY.prototype.SS=function(a){this.C=a}; var P6a=2/24;var U6a=0;g.k=XY.prototype;g.k.Eu=function(){this.Z=this.now();KTa(this.Nc,this.Z);this.Eb.Eu()}; g.k.Pr=function(a,b){var c=this.policy.B?(0,g.EC)():0;YY(this,a,b);10>a-this.D&&this.Sn()||this.yv(a,b);this.Eb.Pr(a,b);this.policy.B&&(a=(0,g.EC)()-c,this.Gb+=a,this.rb=Math.max(a,this.rb))}; g.k.yv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Qq||(MTa(this.Nc,c,d),this.Iu(c,d));this.D=a;this.B=b}; g.k.po=function(){this.Ca&&V6a(this);this.Eb.po()}; g.k.Or=function(a){this.Ca||(this.Ca=this.K-this.Ob+a,this.qc=this.K,this.Bc=this.Y)}; g.k.E0=function(){}; g.k.Eq=function(){var a={rn:this.requestNumber,rt:(this.Y-this.j).toFixed(),lb:this.K,stall:(1E3*this.C).toFixed(),ht:(this.Z-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.Na,d:X6a(this)};this.url&&Q3a(a,this.url);this.policy.B&&(a.mph=this.rb.toFixed(),a.tph=this.Gb.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Sa;return a}; g.k.now=function(){return(0,g.EC)()}; g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; var WY;g.y(ZY,XY);g.k=ZY.prototype;g.k.Eq=function(){var a=XY.prototype.Eq.call(this);a.pb=this.Iz;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a}; g.k.Zq=function(){var a=this.Eb;this.gb||(this.gb=a.Zq?a.Zq():1);return this.gb}; g.k.WJ=function(){return this.al?1!==this.Zq():!1}; g.k.XQ=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.Qq){YY(this,a,b);this.yv(a,b);var d=this.Zq();this.Tb=c;2===d?this.Qq||(this.Ga?sR(this.Nc,this.Ga/1E3,this.Va,.25):sR(this.Nc,b/(c||this.Sa),b,.01),uR(this.Nc,b,this.C)):1===d&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.zb||this.policy.G||!this.Sn()||$6a(this,c,b),this.Sn()&&uR(this.Nc,b,this.C));tR(this.Nc,(a-this.j)/1E3||.01,this.B,this.Wa,this.vp)}this.deactivate()}}; g.k.yv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Zq();this.isActive?1===e&&((0d)?(this.C+=c,0this.OR&&a7a(this,this.B)}; g.k.uJ=function(){return this.Za}; g.k.pS=function(a){a=void 0===a?this.now():a;if(this.al){e7a(this,a);if(this.gb?this.WJ():this.ra!==this.Ea){var b=this.Ea;if(ac&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.Za=c=this.Sn()?c+a:c+Math.max(a,b)}; g.k.gJ=function(){return this.now()-this.qa}; g.k.nP=function(){return 1E3*(this.B-this.Na)/this.gJ()||0}; g.k.gY=function(){return this.qa};$Y.prototype.feed=function(a){CN(this.j,a);this.lf()}; $Y.prototype.lf=function(){if(this.D){if(!this.j.totalLength)return;var a=this.j.split(this.C-this.B),b=a.LJ;a=a.Om;if(!this.Eb.Or(this.D,b,this.B,this.C))return;this.B+=b.totalLength;this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u(f7a(this.j,c));b=a.next().value;c=a.next().value;c=g.u(f7a(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.Eb.Or&&c+1<=this.j.totalLength))break;c=this.j.split(c).Om;this.Eb.Or(b,c,0, a)&&(this.D=b,this.B=c.totalLength,this.C=a,this.j=new BN([]));break}a=this.j.split(c).Om.split(a);c=a.Om;this.Eb.lB(b,a.LJ);this.j=c}}; $Y.prototype.dispose=function(){this.j=new BN};g.k=aZ.prototype;g.k.VO=function(){return 0}; g.k.jJ=function(){return null}; g.k.VX=function(){return null}; g.k.Xt=function(){return 1<=this.state}; g.k.isComplete=function(){return 3<=this.state}; g.k.ym=function(){return 5===this.state}; g.k.onStateChange=function(){}; g.k.Gc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; g.k.ZA=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.k.mE=function(){return+this.getResponseHeader("content-length")}; g.k.lm=function(){return this.B}; g.k.Jx=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.k.Dr=function(){return 0this.status&&!!this.B}; g.k.Dr=function(){return!!this.j.totalLength}; g.k.Ux=function(){var a=this.j;this.j=new BN;return a}; g.k.eL=function(){return this.j}; g.k.Ma=function(){return this.G}; g.k.abort=function(){this.C&&this.C.cancel().catch(function(){}); this.D&&this.D.abort();this.G=!0}; g.k.eC=function(){return!0}; g.k.rL=function(){return this.K}; g.k.qf=function(){return this.errorMessage};g.k=m7a.prototype;g.k.onDone=function(){if(!this.Ma){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Eb.po()}}; g.k.gB=function(){2===this.xhr.readyState&&this.Eb.Eu()}; g.k.xg=function(a){this.Ma||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Eb.Pr((0,g.EC)(),a.loaded))}; g.k.Mt=function(){return 2<=this.xhr.readyState}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.JE(Error("Could not read XHR header "+a)),""}}; g.k.mE=function(){return+this.getResponseHeader("content-length")}; g.k.lm=function(){return this.B}; g.k.Jx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B}; g.k.Dr=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.k.Ux=function(){var a=this.response;this.response=void 0;return new BN([new Uint8Array(a)])}; g.k.eL=function(){return new BN([new Uint8Array(this.response)])}; g.k.abort=function(){this.Ma=!0;this.xhr.abort()}; g.k.eC=function(){return!1}; g.k.rL=function(){return!1}; g.k.qf=function(){return""};g.y(dZ,g.I);g.k=dZ.prototype;g.k.eda=function(){if(!this.Ma()){var a=(0,g.EC)(),b=!1;if(this.timing.Sn()){if(this.G)return;var c=this.timing.uJ();this.timing.pS();var d=this.timing.uJ();d-c>=.8*this.policy.uj?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.fY(); 01E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0this.state)return!1;if(this.Xf&&this.Xf.wf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Dr())?!0:!1}; g.k.aG=function(){this.qm(!1);return this.Xf?this.Xf.aG():[]}; g.k.qm=function(a){try{if(a||this.xhr.Mt()&&this.xhr.Dr()&&!B7a(this)&&!this.pB)this.Xf||(this.Xf=new SX(this.policy,this.info.ib)),this.xhr.Dr()&&(this.zl?this.zl.feed(this.xhr.Ux()):TX(this.Xf,this.xhr.Ux(),a&&!this.xhr.Dr()))}catch(b){this.zl?A7a(this,b):g.JE(b)}}; g.k.lB=function(a,b){switch(a){case 21:a=b.split(1).Om;D7a(this,a);break;case 22:this.t2=!0;TX(this.Xf,new BN([]),!0);break;case 43:if(a=UN(new ON(b),1))this.info.Vk(this.ge,a),this.gM=!0;break;case 45:b=SPa(new ON(b));a=b.DS;b=b.ES;a&&b&&(this.kI=a/b);break;case 44:this.NB=RPa(new ON(b));var c,d,e;!this.timing.G&&4===(null==(c=this.NB)?void 0:c.action)&&(null==(d=this.NB)?0:null==(e=d.T0)?0:e.Ap)&&(this.Ap=this.NB.T0.Ap);break;case 53:this.policy.Ob&&(a=OPa(new ON(b)).Wp)&&(this.vu||(this.Wp=a,this.vu= new g.xv(this.PZ,a,this)),this.vu.start());break;case 60:this.CA=CPa(new ON(b));break;case 64:this.policy.oB&&(a=EPa(new ON(b)),this.policy.Cu(a));break;case 58:this.policy.Gk&&(a=sPa(new ON(b)))&&(this.bj=a,this.policy.cg&&3===a.bj&&(this.Wt=!0))}}; g.k.Or=function(a,b,c,d){c||this.timing.Or(d);if(21!==a)return!1;if(a=this.policy.hp)if(a*=this.info.ib[0].j.info.sb,b.totalLength+c!==d&&b.totalLength this.info.ib[0].Pa)return!1;return!0}; g.k.sP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.jJ=function(){this.xhr&&(this.Hp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Hp}; g.k.VX=function(){this.xhr&&(this.Ar=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ar}; g.k.Yg=function(){return this.Bd.Yg()}; g.k.PZ=function(){if(!this.Ma()&&this.xhr){this.X1="heartbeat";var a=this.Bd;a.j+=2;this.FP()}};jZ.prototype.lB=function(a,b){switch(a){case 20:a=new ON(b);a={Ip:RN(a,1),videoId:UN(a,2),itag:RN(a,3),lmt:RN(a,4),xtags:UN(a,5),OB:RN(a,6),Qn:SN(a,8),Xr:RN(a,9),pob:RN(a,10),startMs:RN(a,11),durationMs:RN(a,12),Wr:RN(a,14),timeRange:VN(a,15,gPa),Fj:RN(a,16),BK:RN(a,17),clipId:UN(a,1E3)};this.wR(a);break;case 21:this.uR(b,!1);break;case 22:this.Zp(b);break;case 31:a=YN(b,JPa);this.fB(a);break;case 52:a=YN(b,PPa);this.hB(a);break;default:this.kR(a,b)}}; jZ.prototype.wR=function(){}; jZ.prototype.kR=function(){};g.y(kZ,XY);g.k=kZ.prototype;g.k.yv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Sn()?0d?(this.C+=c,.2c.tK||0c.NQ)){this.rS=(0,g.EC)();var d;null==(d=this.yG)||d.stop();this.policy.Jb&&(d=this.Eb,a={Sv:Math.round(b*a/1E3),gy:a},d.policy.Jb&&(d.Ca=a,d.kq++));this.Bd.mH(!1)}}}}; g.k.QF=function(a){this.Eb.QF(a)}; g.k.ER=function(a){this.U0=!0;this.info.resource.Vk(this.ge,a.redirectUrl)}; g.k.UF=function(a){this.Fd instanceof kZ&&this.Fd.UF(a)}; g.k.LF=function(a){this.Fd instanceof kZ&&this.Fd.LF(a)}; g.k.IR=function(a,b,c){this.Eb.IR(a,b,c,this.rr())}; g.k.nR=function(a){if(yV(this.policy)){var b=a.formatId,c=G7a({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new iQ((null==(d=a.UY)?void 0:d.first)||0,(null==(e=a.UY)?void 0:e.nZ)||0),h,l;d=new iQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.nZ)||0);this.manifest.N.get(c)||(c=a.NO||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=KQ(""),c=JQ(c,null),HQ(a,new FQ(b,c,f,d)))}}; g.k.SF=function(a){this.Eb.SF(a)}; g.k.fB=function(a){this.Eb.fB(a)}; g.k.OF=function(a,b,c){this.Eb.OF(a,b,c)}; g.k.PF=function(a){2===a.scope&&(this.qda=a);this.Eb.PF(a)}; g.k.NF=function(){this.sW=!0;this.Eb.NF()}; g.k.TF=function(a){this.policy.Vm&&this.Eb.TF(a)}; g.k.RF=function(a){this.Eb.RF(a,this.rr())}; g.k.Em=function(a){this.policy.DC&&(this.policy.cg&&3===a.bj&&(this.Wt=!0),this.Eb.Em(a))}; g.k.canRetry=function(){this.Ma();return this.Bd.canRetry(!1)}; g.k.dispose=function(){if(!this.Ma()){g.I.prototype.dispose.call(this);this.Bd.dispose();var a;null==(a=this.yG)||a.dispose();this.Gc(-1);this.Yy()}}; g.k.Gc=function(a){this.state=a;kab(this.Eb,this)}; g.k.Vt=function(){return this.info.Vt()}; g.k.SN=function(){return this.sW}; g.k.qP=function(){return this.qda}; g.k.jB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.K&&!b&&(this.rl=c.Xr,this.IG=c.startMs);var d=0;this.policy.xf&&this.QZ&&this.clipId&&(d=rY(this.QZ,this.clipId)/1E3);this.Vf.jB(a,b,c,d);this.Vf.Vc.get(a).uD=!0}; g.k.Zp=function(a,b){this.Vf.Zp(a,b)}; g.k.hB=function(a){this.requestIdentifier=a}; g.k.Ek=function(a){return this.Vf.Ek(a)}; g.k.Gn=function(a){return this.Vf.Gn(a)}; g.k.il=function(a){return this.Vf.il(a)}; g.k.Yq=function(){return this.Vf.Yq()}; g.k.Zq=function(){return 1}; g.k.rr=function(){return this.Fd.requestNumber}; g.k.oP=function(){return this.requestIdentifier}; g.k.OX=function(){return this.clipId}; g.k.Le=function(){return this.ge.Le()}; g.k.k_=function(){this.Yy()}; g.k.Yy=function(){this.Fd.deactivate();var a;null==(a=this.xhr)||a.abort()}; g.k.isComplete=function(){return 3<=this.state}; g.k.iZ=function(){return 3===this.state}; g.k.ym=function(){return 5===this.state}; g.k.jZ=function(){return 4===this.state}; g.k.HY=function(){return this.isComplete()}; g.k.Xt=function(){return 1<=this.state}; g.k.xw=function(){return 0}; g.k.MX=function(){var a;return null==(a=this.info.data)?void 0:a.PN}; g.k.FP=function(){}; g.k.hY=function(){return r$a(this.info)}; g.k.Yg=function(){return this.Bd.Yg()}; g.k.er=function(){var a=p7a(this.Bd);Object.assign(a,s$a(this.info));a.req="sabr";a.rn=this.rr();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Dl?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.qf())&&(a.msg=b);this.rS&&(c=J7a(this,this.rS-this.Fd.gY()),a.letm=c.T9,a.mrbps=c.tK,a.mram=c.NQ);return a}; g.k.jY=function(){return{rl:this.rl,IG:this.IG,Lp:this.info.Lp()}};K7a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.EC)()};g.y(V7a,g.aF);g.k=V7a.prototype; g.k.yR=function(a,b,c,d){if(this.N&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Zy);this.N.FR(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.Ca.has(a.Pa)){c=a.startTime;d=[];for(e=0;ethis.policy.jj&&(null==(e=this.C)?0:lK(e.info))&&(null==(f=this.nextVideo)||!lK(f.info))&&(this.qa=!0)}};u8a.prototype.iP=function(a){var b=pK(a.info.j.info,this.manifest.Zb),c=a.info.Pa+this.D,d=1E3*a.info.startTime;if(this.policy.Sa)try{d=this.policy.Sa?1E3*ZRa(a):1E3*a.info.startTime}catch(h){.99d||0>f)&&this.logger&&(this.logger({missingSegInfo:a.info.zd(),startTimeMs:d,durationMs:f}),0>d&&(d=1E3*a.info.startTime),0>f&&(f=1E3*a.info.duration));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,J7:f}}; u8a.prototype.rq=function(a){this.timestampOffset=a};F8a.prototype.dispose=function(){this.ra=!0}; F8a.prototype.Ma=function(){return this.ra}; g.y(FZ,Error);var ofb=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);IZ.prototype.skip=function(a){this.offset+=a}; IZ.prototype.mm=function(){return this.offset};g.k=Y8a.prototype;g.k.eY=function(){return this.B}; g.k.xo=function(){return this.B.length?this.B[this.B.length-1]:null}; g.k.Pk=function(){this.B=[];KZ(this);X8a(this)}; g.k.Lu=function(){this.bb=this.B.shift().info}; g.k.Gn=function(){return g.$r(this.B,function(a){return a.info})}; g.k.Ch=function(){return!!this.K.info.audio}; g.k.getDuration=function(){return this.K.index.Ft()};g.y(OY,aZ);g.k=OY.prototype;g.k.onStateChange=function(){this.Ma()&&(WX(this.Vf,this.formatId),this.j.dispose())}; g.k.er=function(){var a=U4a(this.Vf,this.formatId),b;var c=(null==(b=this.Vf.Vc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Vf.Vc.get(this.formatId))?void 0:d.jz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:V4a(this.Vf,this.formatId),isAnyMediaEndReceived:this.Vf.Lw(this.formatId)}}; g.k.QX=function(){return 0}; g.k.Qw=function(){return!0}; g.k.Ek=function(){return this.Vf.Ek(this.formatId)}; g.k.aG=function(){return[]}; g.k.il=function(){return this.Vf.il(this.formatId)}; g.k.Yg=function(){return this.lastError}; g.k.xw=function(){return 0};g.k=q9a.prototype;g.k.xo=function(){return this.D.xo()}; g.k.Lu=function(a){this.D.Lu(a);var b;null!=(b=this.N)&&(b.C=y8a(b,b.md,b.nB,b.C,a),b.B=a,b.G=(0,g.EC)());this.sb=Math.max(this.sb,a.info.j.info.sb||0)}; g.k.getDuration=function(){if(this.policy.B){var a=this.ya.dg();if(a)return tY(a)}return this.j.index.Ft()}; g.k.Pk=function(){QY(this);this.D.Pk()}; g.k.jP=function(){return this.D}; g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.ib[0].Pa:!1}; g.k.rq=function(a){var b;null==(b=this.N)||b.rq(a)};g.y(ZZ,g.I);ZZ.prototype.C=function(){15Math.abs(this.j[0].hY()-a)}; g.k.aq=function(a){this.B=a;this.qa=(0,g.EC)()+(a.backoffTimeMs||0)}; g.k.QF=function(a){if(void 0!==a.action&&(0!==a.action||!this.La)){var b={};b.reason=a.Sca;b.action=a.action;switch(a.action){case 1:this.policy.K&&this.K&&this.K.QD(void 0,void 0,b);break;case 0:this.La=!0;this.ya.LI(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:case 6:b=this.ea;b.W.experiments.fb("enable_adb_handling_in_sabr")&&(b.pauseVideo(!0),b.DK());break;case 3:this.policy.iC&&(null!=(a=this.manifest.Z)&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}}; g.k.IR=function(a,b,c,d){if(this.policy.B){this.ya.ma("ssap",{rn:d,v:b,tl:qab(a)});var e=this.ya.dg();a={Us:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.Xj.add(c.type));e?nab(this,e,a):(this.ya.ma("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}}; g.k.PF=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.Xj.add(a.type)}; g.k.NF=function(){}; g.k.SF=function(a){if(void 0!==a.DS&&a.ES){var b=a.DS/a.ES;this.audioTrack.Z=!1;this.videoTrack.Z=!1;var c={wd:"sabr_seek",eF:!0,hT:!0};a.seekSource&&(c.seekSource=a.seekSource);UY(this.ya,b,c)}}; g.k.fB=function(a){a.JJ&&a.KJ&&XSa(this.manifest,a.JJ,a.KJ)}; g.k.Em=function(a){this.ya.Em(a)}; g.k.OF=function(a,b,c){this.policy.j&&this.ya.ma("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.Xj.add(d.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.Xj.has(a)&&this.Xj.delete(a);if(c)for(c=g.u(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),3===b&&(this.videoData.Wy=""))}; g.k.TF=function(){}; g.k.RF=function(a,b){RZa(this.policy,a,4,b)}; g.k.qe=function(){return this.ea.qe()||""}; g.k.ZO=function(){var a=1E3*TZ(this.audioTrack,!0),b=1E3*TZ(this.videoTrack,!0);return Math.min(a,b)}; g.k.Dm=function(a,b){this.ya.ma(a,b)}; g.k.FJ=function(a){Iab(this.ya,m8a(this.ra,a))}; g.k.va=function(){g.I.prototype.va.call(this);this.B=void 0;mab(this,!0);this.j=[]};rab.prototype.lf=function(a,b){if(this.D)return wab(this,b);if(b=VY(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.ym()&&0===a.info.eh&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN}; rab.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.y(g.u_,g.I);g.k=g.u_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a}); a=a||0;yV(this.policy)||(b=AZ(this.j),Lab(this.ea,new rZ(b.video,b.reason)),this.ea.yx(new rZ(b.audio,b.reason)));this.manifest.isManifestless&&e$a(this.D);this.K&&tab(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;var d=!this.manifest.isManifestless;this.policy.py&&(d=d||this.manifest.Zd);this.currentTime=d?a:b;if(this.policy.C){var e;(null==(e=this.ra)?0:$$a(e,this.qe()||""))&&Aab(this)&&zab(this,this.videoTrack)&&zab(this,this.audioTrack)&&pab(this.qa,this.ra)}else this.Ca&& (Bab(this,this.videoTrack),Bab(this,this.audioTrack),T4a(this.Ca),delete this.Ca);c?(this.policy.Be?(this.Jb=c,x_(this,c)):x_(this,!1),g.yv(this.rF)):(c=0===this.currentTime,b_(this.D,this.videoTrack,this.videoTrack.j,c),b_(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&dab(this.qa,!0),this.seek(this.currentTime,{}).xl(function(){}),this.timing.tick("gv")); (this.manifest.cf||this.manifest.Gh||this.manifest.Za||this.manifest.Ob||this.manifest.qc)&&this.ea.qG(this.manifest)}; g.k.resume=function(){if(this.isSuspended||this.Np){this.logger.debug("Resumed.");this.KI=this.Np=this.isSuspended=!1;try{this.lf()}catch(a){g.IE(a)}}}; g.k.Ez=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");Eab(this);KK(this.ea)&&(this.Z=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ea&&this.ma("loader",{setsmb:1}),this.policy.Ga=!0):this.policy.Be?x_(this,this.Jb):x_(this,!1);this.Pk()}; g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.Ma()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Bc&&(this.Wa=!0));if(yV(this.policy)){var e=this.C.W0(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id}); this.ea.yx(e)}else{var f=l8a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); this.ea.yx(new rZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Di(b),this.ma("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){D9a(this.audioTrack,c,NaN,NaN);OQ(this.manifest,c,!1);return}this.ea.Go()}}; g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)}; g.k.HK=function(a){var b=a.j.info.Ch();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+tK(a.j.info)}); b?this.ea.yx(a):Lab(this.ea,a)}; g.k.FJ=function(a){pQ(a.ib[a.ib.length-1])&&Iab(this,m8a(this.j,a.ib[0].j))}; g.k.sJ=function(){return this.ea.sJ()}; g.k.Em=function(a){if(this.policy.cg)if(1===a.bj)this.Sa=0;else{if(2===a.bj||3===a.bj){var b=!1;if(3===a.bj){++this.Sa;var c;this.Tb=null!=(c=a.H0)?c:Infinity;this.ea.OG(this.Sa);(b=d$a(this))&&this.OA(!0)}this.ea.GR(!0,b)}}else this.ea.Em(a)}; g.k.Wz=function(){return this.ea.Wz()}; g.k.Sk=function(){return this.ea.Sk()}; g.k.KR=function(a){this.ea.KR(a)}; g.k.Fca=function(){var a,b=null==(a=this.ea.Se())?void 0:a.getCurrentTime();b?this.ea.ma("rms",{cta:b}):g.yv(this.Ob)}; g.k.lf=function(){Hab(this);if(this.Qa&&HK(this.Qa)&&!this.Qa.dk()){var a=NZ(this.videoTrack);a=this.policy.zC&&a&&nQ(a);this.manifest.isManifestless&&this.manifest.C&&LQ(this.manifest)?(this.Z=LQ(this.manifest),this.Qa.vl(this.Z)):PQ(this.manifest)&&!a?isNaN(this.Z)?(this.Z=this.currentTime+3600,this.Qa.vl(this.Z)):this.Z<=this.currentTime+1800&&(this.Z=Math.max(this.Z+1800,this.currentTime+3600),this.Qa.vl(this.Z)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()), (!isFinite(this.Z)||this.Z!==a)&&0h||h!==l)&&b.ma("sbu_mismatch",{b:vK(f),c:b.currentTime,s:e.zd()})},0)}}this.lf()}; g.k.Q$=function(a){if(this.Qa){var b=NZ(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.pP())for(var c=0;c=c||cthis.C&&(this.C=c,g.jd(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.yv(this.B))}}; B_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(sn),f=[],h=g.u(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.We(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=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length, ignore:this.D});0>=c?ibb(this,a):this.D||(this.j.push({time:b+c,info:a}),g.yv(this.B,c))}}; C_.prototype.va=function(){this.j=[];A_.prototype.va.call(this)};var y3={},qbb=(y3.DRM_TRACK_TYPE_AUDIO="AUDIO",y3.DRM_TRACK_TYPE_SD="SD",y3.DRM_TRACK_TYPE_HD="HD",y3.DRM_TRACK_TYPE_UHD1="UHD1",y3);g.y(mbb,g.I);g.y(sbb,g.aF);g.k=sbb.prototype;g.k.Yp=function(a){var b=this;this.Ma()||0>=a.size||(a.forEach(function(c,d){var e=XQ(b.B)?d:c;d=new Uint8Array(XQ(b.B)?c:d);XQ(b.B)&&Jbb(d);c=g.Kg(d,4);Jbb(d);d=g.Kg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),Ebb(this,","),D_(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.k.error=function(a,b,c,d){this.Ma()||(this.publish("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));XJ(b)&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Ea&&this.N?!1:!a&&this.requestNumber===b.requestNumber}; g.k.va=function(){this.j={};g.aF.prototype.va.call(this)}; g.k.kc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ga,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a}; g.k.getInfo=function(){var a=this.D.join();if(E_(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.k.Le=function(){return this.url};g.y(F_,g.I);g.k=F_.prototype;g.k.g4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}}; g.k.Yp=function(){this.N&&this.N(this.j.keyStatuses)}; g.k.onClosed=function(){this.Ma()||g.nB("xboxone")&&this.C&&this.C("closed")}; g.k.E_=function(a){this.G&&this.G(a.message,"license-request")}; g.k.D_=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.k.C_=function(){this.K&&this.K()}; g.k.update=function(a){var b=this;if(this.j)return(fR.isActive()?fR.Co("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,sO(function(c){Lbb(b,"t.update",c)})); this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return iB()}; g.k.va=function(){this.j&&(this.Y?this.j.close().catch(g.JE):this.j.close());this.element=null;g.I.prototype.va.call(this)};g.y(G_,g.I);g.k=G_.prototype;g.k.FN=function(){var a=this;if(this.j.keySystemAccess)return(fR.isActive()?fR.Co("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ma())if(a.B=c,fR.isActive())fR.Co("emeset",function(){return a.element.setMediaKeys(c)}); else{var d;null==(d=a.element)||d.setMediaKeys(c)}}); if(WQ(this.j))this.C=new (VQ())(this.j.keySystem);else if(YQ(this.j)){this.C=new (VQ())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else fR.isActive()&&this.ma("emev",{v:"01b"}),TB(this.G,this.element,["keymessage","webkitkeymessage"],this.l4),TB(this.G,this.element,["keyerror","webkitkeyerror"],this.j4),TB(this.G,this.element,["keyadded","webkitkeyadded"],this.i4);return null}; g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Nl?this.B.setServerCertificate(this.j.Nl):$Q(this.j)&&this.j.Wa?this.B.setServerCertificate(this.j.Wa):null:null}; g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();ZQ(this.j)?c=Mbb(c,this.j.Wa):$Q(this.j)&&(c=hbb(c)||new Uint8Array(0));b&&b("genreq");var e=fR.isActive()?fR.Co("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); var f=new F_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},sO(function(l){Lbb(f,"t.generateRequest",l)})); return f}if(WQ(this.j))return Obb(this,c);if(YQ(this.j))return Nbb(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new F_(this.element,this.j,c,null,null,this.N)}; g.k.l4=function(a){var b=Pbb(this,a);b&&b.E_(a)}; g.k.j4=function(a){var b=Pbb(this,a);b&&b.D_(a)}; g.k.i4=function(a){var b=Pbb(this,a);b&&b.C_(a)}; g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a}; g.k.va=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.va.call(this);delete this.element};g.k=H_.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; g.k.removeAll=function(){this.keys=[];this.values=[]}; g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; g.k.findIndex=function(a){return g.Eb(this.keys,function(b){return g.Wb(a,b)})};g.y(Sbb,g.aF);g.k=Sbb.prototype;g.k.saa=function(a){this.hj({onecpt:1});a.initData&&Vbb(this,new Uint8Array(a.initData),a.initDataType)}; g.k.Raa=function(a){this.hj({onndky:1});Vbb(this,a.initData,a.contentType)}; g.k.zx=function(a){this.hj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));Ubb(this,a)}; g.k.oW=function(a){this.C.push(a);I_(this)}; g.k.createSession=function(a){var b=Xbb(this)?R8a(a):g.Kg(a.initData);this.B.get(b);this.Ga=!0;a=new sbb(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.FK,this);a.subscribe("keystatuseschange",this.Yp,this);a.subscribe("licenseerror",this.KK,this);a.subscribe("newlicense",this.z_,this);a.subscribe("newsession",this.A_,this);a.subscribe("sessionready",this.L_,this);a.subscribe("fairplay_next_need_key_info",this.u_,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", this.LT,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Jba,this);wbb(a,this.D)}; g.k.z_=function(a){this.Ma()||(this.hj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))}; g.k.A_=function(){this.Ma()||(this.hj({newlcssn:1}),this.C.shift(),this.Ga=!1,I_(this))}; g.k.L_=function(){if(WQ(this.j)&&(this.hj({onsnrdy:1}),this.Na--,0===this.Na)){var a=this.qa,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}}; g.k.Yp=function(a){if(!this.Ma()){!this.La&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(Ybb(this),this.La=!0);this.hj({onksch:1});var b=this.LT;if(!E_(a)&&g.VC&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(E_(a))for(var e=g.u(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!E_(a)||d)c=a.D;c=Dbb(c)}b.call(this,c);this.publish("keystatuseschange", a)}}; g.k.FK=function(a,b){this.Ma()||this.publish("ctmp",a,b)}; g.k.u_=function(a,b){this.Ma()||this.publish("fairplay_next_need_key_info",a,b)}; g.k.KK=function(a,b,c,d){this.Ma()||(this.videoData.L("html5_log_drm_metrics_on_error")&&Ybb(this),this.publish("licenseerror",a,b,c,d))}; g.k.qw=function(){return this.Z}; g.k.LT=function(a){var b=g.dP("auto",a,!1,"l");if(this.videoData.El){if(bQa(this.Z,b))return}else if(cQa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.hj({updtlq:a})}; g.k.Jba=function(a){this.videoData.sabrLicenseConstraint=a}; g.k.va=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.JE):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.FK,this),b.unsubscribe("keystatuseschange",this.Yp,this),b.unsubscribe("licenseerror",this.KK,this),b.unsubscribe("newlicense",this.z_,this),b.unsubscribe("newsession",this.A_,this),b.unsubscribe("sessionready",this.L_,this),b.unsubscribe("fairplay_next_need_key_info", this.u_,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.LT,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.aF.prototype.va.call(this)}; g.k.kc=function(){for(var a={systemInfo:this.j.kc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.kc());return a}; g.k.getInfo=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")}; g.k.hj=function(a,b){b=void 0===b?!1:b;this.Ma()||(VJ(a),(this.W.zc()||b)&&this.publish("ctmp","drmlog",a))};g.y(Zbb,g.I);g.k=Zbb.prototype;g.k.RI=function(){return!!this.kF}; g.k.YJ=function(){return this.B}; g.k.handleError=function(a){var b=this;dcb(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!ccb(this,a.errorCode,a.details))&&!hcb(this,a)){if("yt"!==this.Da.ra&&fcb(this,a)&&this.videoData.hp&&(0,g.EC)()/1E3>this.videoData.hp&&"hm"===this.Da.ra){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.hp;c.init=this.videoData.iU/1E3;c.now=(0,g.EC)()/1E3;c.systelapsed=((0,g.EC)()-this.videoData.iU)/1E3; a=new WJ(a.errorCode,c,2);this.ea.Zf(a.errorCode,2,"SIGNATURE_EXPIRED",VJ(a.details))}if(XJ(a.severity)){var d;c=null==(d=this.ea.ya)?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(ecb(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Da.K&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else ecb(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.ea.Zf(a.errorCode, a.severity,e,VJ(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Wd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.EC)(),zX(a,"manifest",function(h){b.K=!0;b.ma("pathprobe",h)},function(h){b.Wd(h.errorCode,h.details)}))}}; g.k.ma=function(a,b){this.ea.uc().ma(a,b)}; g.k.Wd=function(a,b){b=VJ(b);this.ea.uc().Wd(a,b)};kcb.prototype.SO=function(a){return a?{e0:vcb(this,a)}:{e0:DS}}; kcb.prototype.L=function(a){return this.W.L(a)};g.y(M_,g.I);M_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(Bob)?this.networkErrorCount++:this.nonNetworkErrorCount++}; M_.prototype.send=function(){if(!(this.C||0>this.j)){Bcb(this);var a=g.LM(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Ig;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.TF(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.TF(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.TF(this.playerState,16)||g.TF(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.TF(this.playerState,1)&&g.TF(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.TF(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.TF(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.TF(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=jfb[aT(this.provider.videoData)];a:switch(this.provider.W.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=Ccb(this.provider), f=0>this.B?a:this.B-this.j;a=this.provider.W.Rf+36E5<(0,g.EC)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.$S(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:NS(this.provider.videoData)};a||g.qC("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}}; M_.prototype.va=function(){this.C||this.send();window.removeEventListener("error",this.eB);window.removeEventListener("unhandledrejection",this.eB);g.I.prototype.va.call(this)}; var Bob=/\bnet\b/;var Dcb=/[?&]cpn=/;var Icb=Math.pow(10,8);g.y(g.P_,g.I);g.k=g.P_.prototype;g.k.f9=function(){var a=g.LM(this.provider);Lcb(this,a)}; g.k.vE=function(){return this.La}; g.k.zE=function(){return{wB:this.wB,xB:this.xB}}; g.k.NG=function(a,b){this.wB=a;this.xB=b}; g.k.qG=function(a){this.j.lwc=[[a.cf?a.cf.toFixed():"",a.Gh?a.Gh.toFixed():"",a.Za?(1E3*a.Za).toFixed():"",a.Ob?(1E3*a.Ob).toFixed():"",a.qc?(1E3*a.qc).toFixed():""].join(":")]}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ma()&&(a=0<=a?a:g.LM(this.provider),-1<["PL","B","S"].indexOf(this.Fe)&&(!g.jd(this.j)||a>=this.G+30)&&(g.O_(this,a,"vps",[this.Fe]),this.G=a),!g.jd(this.j))){7E3===this.sequenceNumber&&g.JE(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){Q_(this,a);var b=a,c=this.provider.ea.HE(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.wB,h=e&&!this.xB;d>c.totalVideoFrames||5E3=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Zcb(this,a,b)){var c;if(!(c=ab-this.Sp+2||Zcb(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0a&&(a=(a-this.C)/this.ra(),this.D.start(a)))}}; g.k.bZ=function(){if(this.started&&!this.Ma()){this.D.stop();var a=this.G();g.TF(a,32)&&this.qa.start();for(var b=g.TF(this.G(),2)?0x8000000000000:1E3*this.Z(),c=g.TF(a,2),d=[],e=[],f=g.u(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.YI(e));f=e=null;c?(a=Gdb(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Hdb(this.j)):a=this.C<=b&&mEa(a)?Fdb(this.j,this.C,b):Gdb(this.j,b); d=d.concat(this.VI(a));e&&(d=d.concat(this.YI(e)));f&&(d=d.concat(this.VI(f)));this.C=b;Mdb(this,d)}}; g.k.va=function(){this.B=[];this.j.array=[];g.I.prototype.va.call(this)}; g.KX.SJ(g.f0,{gf:"crmacr",VI:"crmncr",YI:"crmxcr",bZ:"crmis",Fo:"crmrcr"});g.y(i0,g.aF);i0.prototype.Fr=function(){return this.N}; i0.prototype.ir=function(){return Math.max(this.Z()-j0(this)*this.j,this.videoData.Dd())};g.y(n0,g.I);n0.prototype.lf=function(){var a=this,b=this.ea.Se(),c=this.ea.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.TF(c,8)&&g.TF(c,16),h=this.ea.pm().isBackground()||c.isSuspended();o0(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.j);l=f&&l&&gEa(b,this.j);var m=!d||10d+5,w=m&&q&&v,A=this.ea.getVideoData();o0(this,this.Wa,.002>d&&.002>this.j&&f&&g.PI(this.W)&&g.nT(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");o0(this,this.qa,A.Yj()&&f&&!h&&!A.Ga,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");o0(this,this.Ca,w&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");o0(this,this.Ga,w&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var D=n.getCurrentTime(); f=b.yw();f=SDa(f,D);f=!n.isSeeking()&&d===f;o0(this,this.Tb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(D)},"seek_to_loader")}f={}; p=wK(r,Math.max(d-3.5,0));w=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1F;f.close2edge=w;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);if(p=this.ea.dg()){w=p.Nz();F=w!==sY(p,1E3*d).clipId;var H=g.EI(this.W.experiments,"html5_ssap_skip_seeking_offset_ms"),L=(rY(p,w)+H)/1E3;o0(this,this.La,F&&m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){b.seekTo(L)},"ssap_clip_not_match")}o0(this,this.Ea,m&&q&&!h,m&&!q,"qoe.longrebuffer", function(){},"timeout",f); f=c.isSuspended();f=v_(this.ea)&&!f;o0(this,this.N,f,!f,"qoe.start15s",function(){a.ea.zg("ad")},"ads_preroll_timeout"); p=.5>d-this.C;var M;f=!(null==(M=this.ea.dg())||!M.wm());F=(w=A.isAd()||f&&this.W.experiments.fb("html5_ssap_skip_slow_ad"))&&m&&!q&&p;M=function(){var R=a.ea,ea=g.sT(R.videoData)&&R.Ib,la=R.kd.Wc();(!la||!R.videoData.isAd()||la.getVideoData().bd!==R.getVideoData().bd)&&R.videoData.Gf||ea?KS(R.videoData,"html5_ssap_skip_slow_ad")&&ea&&R.Ib.wm()&&P5a(R.Ib):R.Zf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId)}; o0(this,this.Jb,F,!F,"ad.rebuftimeout",M,"skip_slow_ad");p=w&&q&&xK(b.Sh(),d+5)&&p;o0(this,this.Gb,p,!p,"ad.rebuftimeout",M,"skip_slow_ad_buf");M=c.isOrWillBePlaying()&&g.TF(c,64)&&!h;o0(this,this.Kb,M,e,"qoe.start15s",function(){},"timeout"); M=!!n&&!n.Qa&&c.isOrWillBePlaying();o0(this,this.Na,M,e,"qoe.start15s",l,"newElemMse");M=AK(r,0);p=g.TF(c,16)||g.TF(c,32);p=!h&&c.isOrWillBePlaying()&&q&&!p&&(g.TF(c,64)||0===d)&&5MX(this.ea)-d&&!v&&this.ea.St();o0(this,this.Z,A.Yj()&&h&&q&&v,m&&!q,"qoe.longrebuffer",function(){J_(a.ea,!1,!0)},"handoff_end_long_buffer_reload"); n=(null==n?void 0:fbb(n))||NaN;n=1d);o0(this,this.Ob,c,.5=this.G)return this.B=a,!0;this.C+=1;return!1}; l0.prototype.kc=function(){var a={},b=(0,g.EC)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.y(aeb,g.I);g.k=aeb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.uS()||this.seekTo(.01,{wd:"seektimeline_setupMediaElement"})),p0(this)):q0(this)}; g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&neb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.k.Xg=function(){return this.getCurrentTime()-this.Kc()}; g.k.ir=function(){return this.B?this.B.ir():Infinity}; g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return k0(this.B,a)}; g.k.Fr=function(){return!!this.B&&this.B.Fr()}; g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.oH?!1:c.oH;var d=void 0===c.CT?0:c.CT,e=void 0===c.Hw?!1:c.Hw,f=void 0===c.wT?0:c.wT,h=void 0===c.wd?"":c.wd,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.eF?!1:c.eF,n=void 0===c.hT?!1:c.hT;if(void 0===c.Lq?0:c.Lq)a+=this.Kc();if(c=a=this.Ke())||!g.fT(this.videoData))||this.ea.ma("seeknotallowed",{st:w,mst:this.Ke()});if(!p)return this.C&&(this.C=null,keb(this)),mg(this.getCurrentTime());if(.005>Math.abs(a- this.j)&&this.qa)return this.G;h&&(w=a,(this.W.zc()||this.L("html5_log_seek_reasons"))&&this.ea.ma("seekreason",{reason:h,tgt:w}));l&&(this.ra.D=l);this.qa&&q0(this);this.G||(this.G=new NK);a&&!isFinite(a)&&deb(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Sq&&h&&isFinite(f)&&Teb(e);fb.start&&Teb(this.ea);return this.G}; g.k.Ke=function(a){if(!this.videoData.isLivePlayback)return ufb(this.ea);var b;return uT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),JWa(1E3*this.Ze(a))+a):OS(this.videoData)&&this.videoData.bb&&this.videoData.j?this.videoData.j.Ke()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.ir():ufb(this.ea)+this.timestampOffset:this.mediaElement?qB()?JWa(this.mediaElement.RH().getTime()):bEa(this.mediaElement)+this.timestampOffset|| this.timestampOffset:this.timestampOffset}; g.k.Dd=function(){if(g.sT(this.videoData)){var a=this.ea;g.sT(a.videoData);var b,c;return null!=(c=null==(b=a.Ib)?void 0:b.Dd())?c:a.videoData.Dd()}b=this.videoData?this.videoData.Dd()+this.timestampOffset:this.timestampOffset;return uT(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.Ze(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b}; g.k.MO=function(){this.G||this.seekTo(this.D,{wd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.k.bF=function(){return this.qa&&!isFinite(this.j)}; g.k.va=function(){eeb(this,null);this.ra.dispose();g.I.prototype.va.call(this)}; g.k.kc=function(){var a={};this.ya&&Object.assign(a,this.ya.kc());this.mediaElement&&Object.assign(a,this.mediaElement.kc());return a}; g.k.JR=function(a){this.timestampOffset=a}; g.k.getStreamTimeOffset=function(){return OS(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.k.Kc=function(){return this.timestampOffset}; g.k.Ze=function(a){return this.videoData.j.Ze(a-this.timestampOffset)}; g.k.uw=function(){if(!this.mediaElement)return 0;if(gT(this.videoData)){var a=this.mediaElement,b=a.Sh();a=(0=a.start);return a}; g.k.Fr=function(){return this.Zc.Fr()}; g.k.isPlaying=function(){return this.playerState.isPlaying()}; g.k.YE=function(){return this.playerState.YE()&&this.videoData.Hl}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.Kf){var a=this.Kf;a=a.videoData.xA.compose(a.videoData.mX);a=gP(a)}else a="auto";return a}; g.k.xE=da(20);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Hb()===this.mediaElement.Hb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.UB(this.nC),this.mediaElement=a,this.mediaElement.ea=this,ffb(this),this.Zc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ej();if(!this.playerState.isError()){var b=UK(this.playerState,512);g.TF(b,8)&&!g.TF(b,2)&&(b=TK(b,1));a.isView()&&(b=UK(b,64));this.Fc(b)}this.mediaElement= a;this.mediaElement.ea=this;WR(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ffb(this);this.Zc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Qk.RI()&&cEa(this.mediaElement)}}; g.k.Ej=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0this.mediaElement.getCurrentTime()&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2Math.abs(l-f);var m="pause"===a.type&&e.isEnded();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.TF(b,4)&&!g0(d,l);if(m||f&&l)0a-this.bK||(this.bK=a,b!==this.Vh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Jf()),this.ma("airplay",{rbld:b}),K_(this)),this.publish("airplayactivechange"))}; g.k.IE=function(a){if(this.ya){var b=this.ya,c=b.G,d=b.currentTime,e=Date.now()-c.Y;c.Y=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&3!==c.B&&Y7a(c.ya,d,c.K,c.G);c.policy.K?c.C=NaN:c.D=NaN;oZ(c,4,3===c.B?"adfps":"adf");y_(b)}}; g.k.Sc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){heb(this.Zc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.TF(this.playerState,4)&&g.fT(this.videoData)||NS(this.videoData)&&g.TF(this.playerState,32)||bbb(this.ya,c);5Math.abs(m-h)?(b.ma("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Et()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{wd:"videoplayer_loop",seekSource:37})):PX(b)):(b.playerState.isBuffering()||qfb(b,"progress_fix"),b.Fc(TK(b.playerState,1)))):(m&&!n&&!p&&0n-1&&b.ma("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&5UF(b,8)||g.VF(b, 1024))&&this.bx.stop();!g.VF(b,8)||this.videoData.Ga||g.TF(b.state,1024)||this.bx.start();g.TF(b.state,8)&&0>UF(b,16)&&!g.TF(b.state,32)&&!g.TF(b.state,2)&&this.playVideo();g.TF(b.state,2)&&gT(this.videoData)&&(this.vl(this.getCurrentTime()),this.Sc(!0));g.VF(b,2)&&this.GL(!0);g.VF(b,128)&&this.Eo();this.videoData.j&&this.videoData.isLivePlayback&&!this.E2&&(0>UF(b,8)?SSa(this.videoData.j):g.VF(b,8)&&this.videoData.j.resume());feb(this.Zc,b);Z5a(this.uc(),b);if(c&&!this.Ma())try{for(var e=g.u(this.jL), f=e.next();!f.done;f=e.next()){var h=f.value;Ldb(this.yh,h);this.publish("statechange",h)}}finally{this.jL.length=0}}}; g.k.HF=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")}; g.k.DR=function(){this.Mb.tick("qoes")}; g.k.MO=function(){this.Zc.MO()}; g.k.KK=function(a,b,c,d){a:{var e=this.Qk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=XJ(b);"drm.keyerror"===a&&this.Ce&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())icb(e,a);else{if(e.ea.Zf(a,b,d,c),$bb(e,{detail:c}))break a}else e.Wd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.D++,pfb(e.ea))}}; g.k.Daa=function(){var a=this,b=g.EI(this.W.experiments,"html5_license_constraint_delay"),c=rqa();b&&c?(b=new g.xv(function(){C0(a);z0(a)},b),g.N(this,b),b.start()):(C0(this),z0(this))}; g.k.JF=function(a){this.publish("heartbeatparams",a)}; g.k.Yp=function(a){this.ma("keystatuses",Fbb(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=Gbb(b,c);d=E_(a)?Hbb(a,d):a.D.includes(d)}else{a:{b=Gbb(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.Ce)?0:$Q(f.j))if(null==(c=this.Ce))c= 0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=Ibb(h,"SD")),b||(b=Ibb(h,"AUDIO"));c.hj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.ma("drm",{dshdr:1});icb(this.Qk);return}}else{this.videoData.dD||(this.videoData.dD=!0,this.ma("drm",{dphdr:1}),J_(this,!0));return}var l;if(null==(l=this.Ce)?0:$Q(l.j))return}else if(l=a.Z&&d,c&&!l){icb(this.Qk);return}d||Hbb(a,"AUDIO")&&Hbb(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), a=Fbb(a),this.AS?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Zf("drm.keyerror",2,void 0,"info."+a)):(this.AS=!0,this.Wd(new WJ("qoe.restart",Object.assign({},{retrydrm:1},a))),u0(this),pfb(this)))}; g.k.Faa=function(){if(!this.videoData.Ga&&this.mediaElement&&!this.isBackground()){var a="0";0=b.B.size){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=Fbb(b.B.values().next().value),b=VJ(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.ya)?void 0:d.kc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.kc())||{});this.uc().Wd("qoe.start15s",VJ(a));this.publish("loadsofttimeout")}}; g.k.vl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,z0(this))}; g.k.GL=function(a){var b=this;a=void 0===a?!1:a;if(!this.eI)if(hH("att_s","player_att")||iH("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.G(function(l){switch(l.j){case 1:if(!(d=a)){l.Ia(2);break}return g.z(l,g.cAa(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.Ba(l,4);e=Adb(b.uc());if(!e)throw Error();f={};return g.z(l,g.bAa((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f)),6);case 6:h=l.B;if(b.eI)throw Error(); b.eI=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):m.push("r1a="+h.webResponse);var n;void 0!==(null==(n=h.adblockReporting)?void 0:n.reportingStatus)&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;void 0!==(null==(p=h.adblockReporting)?void 0:p.broadSpectrumDetectionResult)&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));iH("att_f",void 0,"player_att");g.Ca(l,0);break;case 4:g.Da(l),iH("att_e",void 0,"player_att"),g.Aa(l)}})})().then(function(){}); else{var c=new g.IOa(this.videoData);if("c1a"in c.Oq&&!g.VO.isInitialized()){iH("att_wb",void 0,"player_att");2===this.GN&&.01>Math.random()&&g.JE(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.GN){g.yv(this.IN);this.GN++;return}}(c=g.JOa(c))?(iH("att_f",void 0,"player_att"),zdb(this.uc(),c),this.eI=!0):iH("att_e",void 0,"player_att")}}; g.k.Ke=function(a){return this.Zc.Ke(void 0===a?!1:a)}; g.k.Dd=function(){return this.Zc.Dd()}; g.k.Kc=function(){return this.Zc?this.Zc.Kc():0}; g.k.getStreamTimeOffset=function(){return this.Zc?this.Zc.getStreamTimeOffset():0}; g.k.It=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Kc():this.getStreamTimeOffset());return a}; g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&ncb(this.rk,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.playbackRate=a,u0(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; g.k.getPlaybackRate=function(){return this.playbackRate}; g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=Leb(this);b&&0=+c),b.dis=this.mediaElement.EE("display"));a&&((a=(0,g.S_)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date=(new Date).toString();b.origin=window.origin; b.timestamp=Date.now();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.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240520_01_RC00"},b=this.getPlayerStateObject().Ig;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(N0(this))return 3;var b;if(a&&(null==(b=this.xe)?0:b.wm(this.getCurrentTime())))return 2;var c;return g.sT(this.getVideoData())&&(null==(c=this.Ib)?0:c.wm())?2:g.HT(this).getPlayerType()}; g.k.rA=function(){return g.sT(this.getVideoData())&&this.Ib?this.Ib.rA():!1}; g.k.getPlayerStateObject=function(a){return 3===this.getPresentingPlayerType()?QT(this.Od).Fe:g.HT(this,a).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.SK=function(a){switch(a.type){case "loadedmetadata":this.CL.start();a=g.u(this.LB);for(var b=a.next();!b.done;b=a.next())b=b.value,lgb(this,b.id,b.Oea,b.Nea,void 0,!1);this.LB=[];break;case "loadstart":this.Mb.Tu("gv");break;case "progress":case "timeupdate":2<=zK(a.target.Sh())&&this.Mb.Tu("l2s");break;case "playing":g.UR&&this.CL.start();if(g.PI(this.W))a=!1;else{b=g.ST(this.yb());a="none"===this.mediaElement.EE("display")||0===this.mediaElement.getSize().area();var c=JY(this.template),d=this.tb.getVideoData(), e=g.jG(this.W);d=US(d);b=!c||b||e||d||this.W.rb;a=a&&!b}a&&(this.tb.ma("hidden",{},!0),this.getVideoData().Tb||(this.getVideoData().Tb=1,this.y_(),this.tb.playVideo()))}}; g.k.onLoadProgress=function(a,b){this.Ua.Ac("onLoadProgress",b)}; g.k.Yba=function(){this.Ua.publish("playbackstalledatstart")}; g.k.onVideoProgress=function(a,b){a=M0(this,a);b=W0(this,a.getCurrentTime(),a);this.Ua.Ac("onVideoProgress",b)}; g.k.onAutoplayBlocked=function(){this.Ua.Ac("onAutoplayBlocked")}; g.k.mba=function(){this.Ua.publish("progresssync")}; g.k.Zaa=function(){this.Ua.Ac("onPlaybackPauseAtStart")}; g.k.T$=function(a){if(1===this.getPresentingPlayerType()){g.VF(a,1)&&!g.TF(a.state,64)&&this.Ld().isLivePlayback&&this.xb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){bgb(this);return}Pfb(this)}if(g.TF(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Ig;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Hm("onError",rXa(b.errorCode));this.Ua.Ac("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.GO,cpn:b.cpn});6048E5<(0,g.EC)()-this.W.Rf&&this.Ua.Ac("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!hH("pbresume","ad_to_video")&&hH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.fH(b,"ad_to_video");eH("pbresume",void 0,"ad_to_video");r_a(this.Od)}this.Ua.publish("applicationplayerstatechange",a)}}; g.k.R_=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("presentingplayerstatechange",a)}; g.k.nk=function(a){K0(this,WK(a.state));g.TF(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(U0(this,{muted:!1,volume:this.Hi.volume},!1),V0(this,!1))}; g.k.P$=function(a,b,c){"newdata"===a&&Efb(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})}; g.k.DF=function(){this.Ua.Ac("onPlaybackAudioChange",this.Ua.getAudioTrack().lc.name)}; g.k.VF=function(a){var b=this.tb.getVideoData();a===b&&this.Ua.Hm("onPlaybackQualityChange",a.B.video.quality)}; g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId}); this.W.zc()&&b.ma("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.xb&&(this.W.tj=c.oauthToken);if(b===this.xb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.eY(this.Ua,this.W,this.xb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.W.zc()&&g.sT(c)){var d,e;b.ma("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:(null==(d=this.fq.j)?void 0:null==(e=d.getVideoData())? void 0:e.clientPlaybackNonce)||""})}var f,h;!g.sT(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(f=this.fq.j)?void 0:null==(h=f.getVideoData())?void 0:h.clientPlaybackNonce)?!g.sT(this.getVideoData())&&this.Ib&&(this.W.zc()&&b.ma("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.Ib.dispose(),this.Ib=null):(i5a(this.fq),d=dY(this.fq,1,0,1E3*this.getDuration(1),this.getVideoData()),this.fq.enqueue(d,!0),bY(this.fq,0,1E3* this.getDuration(1),[d]),j5a(this.fq,this.getVideoData().clientPlaybackNonce,[d]),this.Ib&&(this.Ib.dispose(),this.Ib=null,this.W.zc()&&b.ma("ssap",{tlmdis:1})),this.W.zc()&&b.ma("ssap",{tlmcreate:1}),this.Ib=new M5a(this.Ua,this.fq,this.xb),this.xb.LL(this.Ib))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),GV(this.Od,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.tb===this.xb?(dUa(c.Da,c.xV),Ufb(this)):Sfb(this));1===b.getPlayerType()&& (this.W.Va&&tgb(this),this.getVideoData().isLivePlayback&&!this.W.Tp&&this.yg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((uWa(c)||this.getVideoData().fv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&fgb(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Ac("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.FL();(d=c.EG)?this.Cr.fX(d,c.clientPlaybackNonce):H6a(this.Cr)}; g.k.sI=function(){P0(this,null);this.Ua.Ac("onPlaylistUpdate")}; g.k.lba=function(a){delete this.pL[a.getId()];this.xb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Na)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.Na)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.u(q),c=b.next();!c.done;c=b.next())if(c=c.value, e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.V(c,g.PS),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.V(a,g.PS))&&this.Ua.jb("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; g.k.qq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&(K0(this,-1),K0(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))}; g.k.yg=function(a,b,c,d,e){this.xb.Zf(a,b,c,d,e)}; g.k.ls=function(a,b){this.xb.handleError(new WJ(a,b))}; g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.HT(this,a);if(!c)return!1;a=L0(this,c);c=M0(this,c);return a!==c?a.isAtLiveHead(W0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; g.k.jr=function(){var a=g.HT(this);return a?L0(this,a).jr():0}; g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.HT(this,d))2===this.appState&&S0(this),this.Gf(d)?X0(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.Uc.seekTo(a,{seekSource:e},b,c):g.sT(this.getVideoData())&&this.Ib?this.Ib.seekTo(a,{oH:!b,CT:c,wd:"application",seekSource:e}):d.seekTo(a,{oH:!b,CT:c,wd:"application",seekSource:e})}; g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; g.k.iB=function(){this.Ua.Ac("SEEK_COMPLETE")}; g.k.DK=function(){this.Ua.jb("onAbnormalityDetected")}; g.k.Nba=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.TF(a.getPlayerState(),512)||S0(this):this.Ua.Ac("SEEK_TO",b)}; g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.Ac("onAirPlayActiveChange",this.Ua.Vh())}; g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.Ac("onAirPlayAvailabilityChange",this.Ua.TE())}; g.k.showAirplayPicker=function(){var a;null==(a=this.tb)||a.Nu()}; g.k.cR=function(){this.Ua.publish("beginseeking")}; g.k.iR=function(){this.Ua.publish("endseeking")}; g.k.getStoryboardFormat=function(a){return(a=g.HT(this,a))?L0(this,a).getVideoData().getStoryboardFormat():null}; g.k.Wj=function(a){return(a=g.HT(this,a))?L0(this,a).getVideoData().Wj():null}; g.k.Gf=function(a){a=a||this.tb;var b=!1;if(a){a=a.getVideoData();if(X0(this))a=a===this.xe.ea.getVideoData();else a:if(b=this.Uc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.bd===c.value.bd){a=!0;break a}a=!1}b=a}return b}; g.k.wD=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+d+" enterTimeMs="+e}); var l="",m=X0(this),n;null==(n=g.HT(this))||n.ma("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?t5a(this.xe,a,b,c,d,e,f,h):i6a(this.Uc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l}); return l}; g.k.QE=function(a,b,c,d,e,f,h){if(X0(this)){var l=t5a(this.xe,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""}; g.k.Du=function(a){var b;null==(b=this.xe)||b.Du(a)}; g.k.mz=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;X0(this)||r6a(this.Uc,a,b)}; g.k.qH=function(a,b,c){if(X0(this)){var d=this.xe,e=d.Tb.get(a);e?(void 0===c&&(c=e.Vd),e.durationMs=b,e.Vd=c):d.Vp("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Uc;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.bd===a){e=h;break}e?(void 0===c&&(c=e.Vd),q6a(d,e,b,c)):xY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Gf();a=new g.ES(this.W,a);d&&(a.bd=d);ggb(this,a,b,c)}; g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.Wc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.pM,d=this.Hk.N,c.C!==a&&(c.tb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=s4a(b,a,this.Hk.N),null!=c?(b.ma("sgap",c),b.getVideoData().Y&&F0(b,!1)):(a=a.getVideoData(),b=this.pM,b.j!== a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))}; g.k.TI=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.HT(this);f&&(L0(this,f).E2=!0);I4a(this.Hk,a,b,c,d).then(function(){e.Ua.Ac("onQueuedVideoLoaded")},function(){})}; g.k.Tn=function(){return this.Hk.Tn()}; g.k.aF=function(a){return this.Hk.aF(a)}; g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("Clearing queue");this.Hk.clearQueue(a,b)}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Ld().enableServerStitchedDai&&this.xb&&!v_(this.xb)){var f;null==(f=this.xb)||f.ma("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.ES(this.W,a);g.TR(this.W)&&!f.fl&&oV(this.Mb);var l,m=this.Mb,n=null!=(l=f.Sa)?l:"";m.timerName=n;this.Mb.Lh("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Mb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&& !this.L("html5_shorts_gapless_always_fallback")){l=L4a(this.Hk,f,b);if(null==l){K0(this,-1);a=this.Hk;a.app.U().L("html5_gapless_new_slr")?$fb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().eD=!0;var p,q;null==(p=a.j)||null==(q=p.ya)||q.resume();var r;null==(r=a.j)||vY(r.uc());c={wd:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.Wc())||t.seekTo(K4a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var v;null==(v=g.HT(a.app))||v.playVideo(!0)}a.K();return!0}t= this.L("html5_shorts_gapless_preload_fallback");v=this.Hk.j;t&&v&&!v.Ma()&&(p=v.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?Z0(this,b,p):$0(this,b,p.videoId,p.bd),this.Hx.set(p,v,3600));this.Hk.clearQueue(t);var w;null==(w=g.HT(this))||w.ma("sgap",{f:l})}if(e){for(;f.Cm.length&&f.Cm[0].isExpired();)f.Cm.shift();h=f.Cm.length-1;h=0Math.random()&&g.qC("autoplayTriggered",{intentional:this.aZ});this.HZ=!1;r_a(this.Od);this.L("web_player_defer_ad")&&Tfb(this);this.Ua.Ac("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),MR(this.W))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate= 20;gH("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.RR(this.W)||"MWEB"===g.gR(this.W)?g.jC(g.lC(),function(){T0(b)}):T0(this); this.FL();agb(this)}; g.k.KF=function(){this.Ua.publish("internalAbandon");Y0(this)}; g.k.onApiChange=function(){this.W.N&&this.tb?this.Ua.Hm("onApiChange",this.tb.getPlayerType()):this.Ua.Hm("onApiChange")}; g.k.Maa=function(){var a=this.mediaElement;a={volume:g.Ce(Math.floor(100*a.getVolume()),0,100),muted:a.oJ()};a.muted||V0(this,!1);this.Hi=g.md(a);this.Ua.Ac("onVolumeChange",a)}; g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.SQ)&&(this.SQ=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.SQ}),this.Ua.Ac("onMutedAutoplayStarts"))}; g.k.onFullscreenChange=function(){var a=pgb(this);this.Km(a?1:0);rgb(this,!!a)}; g.k.Km=function(a){var b=!!a,c=!!this.Qz()!==b;this.visibility.Km(a);this.template.Km(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&pgb(this)===this.mediaElement.Hb()&&this.mediaElement.YD();this.template.resize();c&&this.Mb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Ld(),b={fullscreen:b,videoId:a.pN||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Ac("onFullscreenChange",b))}; g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.Qz=function(){return this.visibility.Qz()}; g.k.Aba=function(){this.tb&&(0!==this.Qz()&&1!==this.Qz()||this.Km(pgb(this)?1:0),this.W.Hl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.YD())}; g.k.Eaa=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("liveviewshift",a)}; g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a}); var b=g.HT(this,a);b&&(2===this.appState?(g.TR(this.W)&&oV(this.Mb),S0(this)):g.TF(b.getPlayerState(),2)?(b=36,this.getVideoData().Yj()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())}; g.k.pauseVideo=function(a,b){(a=g.HT(this,a))&&a.pauseVideo(b)}; g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"}); var b=this.xb.getVideoData(),c=new g.ES(this.W,{video_id:b.pN||b.videoId,oauth_token:b.oauthToken});c.Z=g.md(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.RV=!0);this.cancelPlayback(6);b1(this,c,1)}; g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b}); var d=g.HT(this,b);d?2===b&&1===d.getPlayerType()&&(KWa(this.Ld())||g.sT(this.getVideoData()))?d.ma("canclpb",{r:"no_adpb_ssdai"}):(this.W.zc()&&d.ma("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.tb&&(this.logger.debug("cancel playback, destroy modules"),GV(this.Od,a)),1===b&&(d.stopVideo(),Y0(this)),d.Eo(void 0,6!==a),J0(this,"cuerangesremoved",d.Sk()),d.yh.reset(),this.Hk&&d.isGapless()&& (d.Ej(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.HT(this,b))&&mUa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.Ci=function(a){var b=g.HT(this);return b&&mUa(this.W,a)?b.Ci(a):null}; g.k.updatePlaylist=function(){PR(this.W)?Q0(this):g.BR(this.W)&&Vfb(this);this.Ua.Ac("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.A1=a;this.L("web_log_theater_mode_visibility")?this.YB(b):this.oQ=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()}; g.k.YB=function(a){this.visibility.YB(a)}; g.k.bk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.bk():this.oQ}; g.k.isMinimized=function(){return this.visibility.isMinimized()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.Rt=function(){return this.visibility.Rt()}; g.k.pA=function(){return this.visibility.pA()}; g.k.wA=function(){return this.visibility.wA()}; g.k.nQ=function(){return this.A1}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return QT(this.Od).getAdState();if(!this.Gf()){var a=HV(this.yb());if(a)return a.getAdState()}return-1}; g.k.zba=function(a){var b=this.template.getVideoContentRect();Gs(this.uZ,b)||(this.uZ=b,this.tb&&C0(this.tb),this.xb&&this.xb!==this.tb&&C0(this.xb),1===this.Qz()&&this.YF&&rgb(this,!0));this.vQ&&g.Le(this.vQ,a)||(this.Ua.publish("appresize",a),this.vQ=a)}; g.k.Wh=function(){return this.Ua.Wh()}; g.k.Tba=function(){2===this.getPresentingPlayerType()&&this.Uc.isManifestless()?p6a(this.Uc):(this.xe&&(y5a(this.xe),Y0(this)),Ofb(this,"signature"))}; g.k.y_=function(){this.Ej();I0(this)}; g.k.Saa=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.W.experiments.fb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.jb("onPlayerRequestAuthFailed")}; g.k.HF=function(){this.Ua.Ac("CONNECTION_ISSUE")}; g.k.JF=function(a){this.Ua.publish("heartbeatparams",a)}; g.k.zL=function(a){this.Ua.jb("onAutonavChangeRequest",1!==a)}; g.k.Se=function(){return this.mediaElement}; g.k.setBlackout=function(a){this.W.rb!==a&&(this.W.rb=a,this.tb&&(this.tb.No(),this.W.Va&&tgb(this),this.tb.Do(a)))}; g.k.Uaa=function(){var a=g.HT(this);if(a){var b=!this.Ua.XE();(a.yY=b)||a.bx.stop();a.videoData.j&&(b?a.videoData.j.resume():SSa(a.videoData.j));a.ya&&(b?a.ya.resume():E0(a,!0));g.TF(a.playerState,2)||b?g.TF(a.playerState,512)&&b&&a.Fc(UK(a.playerState,512)):a.Fc(TK(a.playerState,512));a=a.uc();a.qoe&&(a=a.qoe,g.O_(a,g.LM(a.provider),"stream",[b?"A":"I"]))}}; g.k.onLoadedMetadata=function(){this.Ua.Ac("onLoadedMetadata")}; g.k.onDrmOutputRestricted=function(){this.Ua.Ac("onDrmOutputRestricted")}; g.k.JA=function(){this.aZ=!0}; g.k.va=function(){this.Od.dispose();this.b8.dispose();this.Uc.dispose();this.xe&&this.xe.dispose();this.fq.removeAll();this.fq.dispose();this.Ib&&this.Ib.dispose();this.xb.dispose();this.Ej();g.wb(g.cd(this.Gs),this.playlist);g.I.prototype.va.call(this)}; g.k.L=function(a){return this.W.L(a)}; g.k.setScreenLayer=function(a){this.screenLayer=a}; g.k.getInternalApi=function(){return this.Ua.getInternalApi()}; g.k.createSubtitlesModuleIfNeeded=function(){return this.Od.createSubtitlesModuleIfNeeded()}; g.k.isOrchestrationLeader=function(){var a=JV(this.Od);return a?a.isOrchestrationLeader():!1}; g.k.getVideoUrl=function(a,b,c,d,e){if(this.Ab&&this.Ab.postId)return a=this.W.getVideoUrl(a),a=oo(a,"v"),a.replace("/watch","/clip/"+this.Ab.postId);var f=this.Ua.Yc()||"shortspage"===this.W.La,h=g.wT(this.getVideoData());return this.W.getVideoUrl(a,b,c,d,e,f,h)}; g.k.St=function(){return this.Hk.St()}; g.k.Em=function(a){this.Ua.publish("spsumpstatuschange",a)}; g.k.GR=function(a,b){this.Ua.publish("spsumpreject",a,b)}; g.k.AF=function(){try{for(var a=g.u(Object.values(this.Gs)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ma()||c.AF()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.u(u6a(this.Hx)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ma()||f.AF()}this.xb.AF()}catch(h){g.JE(h)}}; g.k.iT=function(){return this.xe?this.xe.iT():!1}; var D3={};var Hgb=/[&\?]action_proxy=1/,Ggb=/[&\?]token=([\w-]*)/,Igb=/[&\?]video_id=([\w-]*)/,Jgb=/[&\?]index=([\d-]*)/,Kgb=/[&\?]m_pos_ms=([\d-]*)/,Mgb=/[&\?]vvt=([\w-]*)/,ygb="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(" "),Lgb="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(" "),Bgb={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"},Cgb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Egb={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};e1.prototype.GA=function(a){this.player.Ai().tick(a)}; e1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=1===this.j;d&&this.GA("a_bid_s");var e=wgb();if(null!==e)return d&&this.GA("a_bid_f"),this.B(a,b,e);e=xgb();d&&pg(e,function(){c.GA("a_bid_f")}); return e.then(function(f){return c.B(a,b,f)})}; e1.prototype.B=function(a,b,c){var d=this,e=void 0===b?{}:b;b=e.cw;var f=e.Xd,h=e.cueProcessedMs;c=void 0===c?"":c;var l=this.player.getVideoData(1);e=this.player.U().uj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Ah:0,AUTONAV_STATE:d1(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*this.player.jr(),LACT:YD(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:this.player.getVisibilityState(), P_H:this.player.ob().Th().height,P_W:this.player.ob().Th().width,YT_REMOTE:e?e.join(","):""},n=Gpa(Fpa);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())}); ""!==c&&(mya("biscotti id requested"),m.BISCOTTI_ID=c);c={};TA(a)&&(c.sts="19864",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=QA(g.dv(a,m),c);return 2!==p.split("?").length?ng(Error("Invalid AdBreakInfo URL")):g.$R(this.player.U(),null==l?void 0:l.oauthToken).then(function(q){if(q&&SA()){var r=WT();XT(r,q)}q=d.player.jm(r);r=Ngb(d,p,m,l.isMdxPlayback,h);return g.lH(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})}; e1.prototype.reset=function(){this.C=this.j=1};g.y(Ogb,e1); Ogb.prototype.B=function(a,b,c){b=void 0===b?{}:b;var d=b.cw,e=b.Xd,f=b.cueProcessedMs;c=void 0===c?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:Pgb(this,a,{cw:d,Xd:e},c,b);if(2!==h.split("?").length)return mya("Invalid AdBreakInfo URL"),ng(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=Ggb.exec(h);c=null!=c&&2<=c.length?c[1]:"";a=Hgb.test(h);e=Igb.exec(h);e=null!=e&&2<=e.length?e[1]:"";var n=Jgb.exec(h); n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Kgb.exec(h);p=null!=p&&2<=p.length?p[1]:"0";var q=LR(this.player.U().Ga),r=g.qG(this.player.getVideoData(1).ra,!0);Agb(this,r,h,""===m?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(YD()),playerHeightPixels:Math.trunc(this.player.ob().Th().height),playerWidthPixels:Math.trunc(this.player.ob().Th().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19864,autonavState:d1(this.player.U())};if(l){l= {};var t=this.player.U().uj;Dgb(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=Lgb.includes(q)?void 0:g.mB("PREF")){t=l.split(RegExp("[:&]"));for(var v=0,w=t.length;v=d?(Wgb(this),this.G=!b&&0===c):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==this.actionType&& (this.D=!0,hH("_start",this.actionType)&&Ygb(this)))}; h1.prototype.reset=function(){return new h1(this.J)};g.y(j1,g.I);j1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?RF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new $gb(a,b,c,d,f),this.j.set(a.id,{Xd:a,listener:e,Mo:h}),this.J.gf([a],h))}; j1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Fo([b.Xd],b.Mo),this.j.delete(b.Xd.id)):RF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; j1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; j1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; g.y($gb,g.jJ);k1.prototype.kG=function(a){this.J.kG(a)}; k1.prototype.Gu=function(a){var b=g.Ja.apply(1,arguments);"onAdStart"===a||"onAdEnd"===a?this.J.Hm.apply(this.J,[a].concat(g.qa(b))):this.J.jb.apply(this.J,[a].concat(g.qa(b)))};l1.prototype.uf=function(a){return a&&m1(this)}; l1.prototype.aT=function(){return this.J.U().experiments.fb("h5_enable_generic_error_logging_event")}; l1.prototype.dT=function(){return this.J.U().experiments.fb("enable_ips_gating")};var hhb=null;g.y(ghb,g.aF);ghb.prototype.dP=function(a){return this.j.hasOwnProperty(a)?this.j[a].dP():{}}; g.Va("ytads.bulleit.getVideoMetadata",function(a){return p1().dP(a)}); g.Va("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=p1();c=fhb(c);null!==c&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=q1.prototype; g.k.Mh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=cs(cv).AJ(a,{});c?bu(c):b&&(a=cs(cv).sG(null,vs(),!1,a),a.gk=3,Dja([a]));return{}}b=jhb(b);if(null===b)return{};var d=this.J.Wc(),e=d&&Leb(d);if(!e)return{};n1(this.Aa.get())?(d=this.J.getPresentingPlayerType(!0),d=null==(c=this.J.getVideoData(d))?void 0:c.isAd()):d=this.J.U().L("enable_server_stitched_dai")?2===this.J.getPresentingPlayerType(!0):2=== d.getPlayerType();if(!d)return{};c={opt_adElement:e,opt_fullscreen:this.Ha.get().isFullscreen()};return Dka(b,a,c)}; g.k.tx=function(a){var b;null==(b=this.j.get(a.queryId))||b.tx()}; g.k.sx=function(a){var b;null==(b=this.j.get(a.queryId))||b.sx()}; g.k.vx=function(a){var b;null==(b=this.j.get(a.queryId))||b.vx()}; g.k.ox=function(a){var b;null==(b=this.j.get(a.queryId))||b.ox()}; g.k.qx=function(a){var b;null==(b=this.j.get(a.queryId))||b.qx()};phb.prototype.send=function(a,b,c,d){try{qhb(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.y(rhb,phb);shb.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.eq(a),h;if(h=!this.Aa.get().J.U().experiments.fb("replace_client_url_parsing_with_server_signal"))h="2"===f.C.get("ase");if(h||"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===d||"ATTRIBUTION_SRC_MODE_XHR_OPTION"===d)e=!0,a=Wta(a);d=e;var l=a.match(sn);if("https"===l[1])var m=a;else l[1]="https",m=qn("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Hka(m);l=[];var p=Dpa(m),q=(null===p?!1:"google"===p[1]?!0:"google"===p[2]?"au"===p[0]&&"com"===p[1]?!0: "uk"===p[0]&&"co"===p[1]?!0:!1:!1)&&this.Aa.get().J.U().experiments.fb("add_auth_headers_to_remarketing_google_dot_com_ping");if(TA(m)||q)l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),l.push({headerType:"AUTH_USER"}),l.push({headerType:"DATASYNC_ID"});!this.Aa.get().J.U().experiments.fb("clean_up_manual_attribution_header")&&d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.j.send({baseUrl:m, scrubReferrer:n,headers:l},b,c,d)}catch(r){}};v1.prototype.Ci=function(){var a=this.J.Wc();return a&&(a=a.Ci(1))?a:null};g.y(w1,g.I);g.k=w1.prototype;g.k.Jg=function(){return this.J.getVideoData(1).clientPlaybackNonce}; 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.lk=function(){this.zN.clear();this.yQ=null;this.ys.get().clear()}; g.k.ao=function(){}; g.k.Yd=function(a){var b=this.J.getVideoData(a);return b?this.gI(b,a||this.J.getPresentingPlayerType(!0)):null}; g.k.mca=function(a,b,c,d,e){"nPpU29QrbiU"===b.videoId&&RJ(this,"ads_ssm_vdc_s",{pt:c,dvt:a});KM(this.Aa.get())&&"dataloaded"!==a||Bhb(this,b,c);if(m1(this.Aa.get())&&"newdata"===a&&void 0!==e){a=this.Jg();var f=b.clientPlaybackNonce,h={};UJ(this,"rte",(h.ec=f,h.xc=null==d?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=TJ(f),h));b=b.clientPlaybackNonce;d=null==d?void 0:d.clientPlaybackNonce;e=Chb(e);if(1!==e)if(void 0!==d)for(c=g.u(this.listeners),a=c.next();!a.done;a=c.next())a.value.dB(d, b,e);else RF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.u(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.GF(b)}}; g.k.Oba=function(a,b){void 0!==a&&(this.yQ=a,void 0===b?RF("Expected ad video start time on SS video changed"):this.zN.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).ma("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?Bhb(this,d,c):RF("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; g.k.gI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.bd,h=a.title,l=a.Yi,m=a.Dj,n=a.isMdxPlayback,p=a.Rm,q=a.mdxEnvironment,r=a.isAutonav,t=a.mq,v=a.fl,w=a.mp,A=a.videoId||"",D=a.profilePicture||"",F=a.Cl||"",H=a.Yj()||!1,L=a.Rn()||!1;a=a.Xv||void 0;f=this.ys.get().j.get(f)||{layoutId:null,slotId:null};var M=this.J.getVideoData(1),R=M.Zb();M=M.getPlayerResponse();b=1E3*this.J.getDuration(b);var ea=1E3*this.J.getDuration(1),la,ka,ia=(null==M?void 0:null==(la=M.playerConfig)? void 0:null==(ka=la.daiConfig)?void 0:ka.enableDai)||!1,sa,aa;la=(null==M?void 0:null==(sa=M.playerConfig)?void 0:null==(aa=sa.daiConfig)?void 0:aa.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Cca:b,wp:ea,daiEnabled:ia,jX:la,isListed:e,Zb:R,profilePicture:D,title:h,Cl:F,Yi:l,Dj:m,Xv:a,isMdxPlayback:n,Rm:p,mdxEnvironment:q,isAutonav:r,mq:t,fl:v,mp:w,Yj:H,Rn:L})}; g.k.va=function(){this.listeners.length=0;this.dw=null;g.I.prototype.va.call(this)};g.y(x1,g.I);g.k=x1.prototype;g.k.lk=function(){var a=this;m1(this.Aa.get())||(this.j=Nd(function(){a.J.Ma()||a.J.zg("ad",1)}))}; g.k.ao=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.gR=function(){}; g.k.playVideo=function(){this.J.playVideo()}; g.k.pauseVideo=function(){this.J.pauseVideo()}; g.k.resumeVideo=function(a){this.Un(a)&&this.J.playVideo()}; g.k.Un=function(a){return 2===this.J.getPlayerState(a)}; g.k.getCurrentTimeSec=function(a,b){var c=this.Ra.get().yQ;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):Ehb(this,c)}; g.k.getVolume=function(){return this.J.getVolume()}; g.k.isMuted=function(){return this.J.isMuted()}; g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; g.k.getPlayerState=function(a){return this.J.getPlayerState(a)}; g.k.isFullscreen=function(){return this.J.isFullscreen()}; g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()}; g.k.WB=function(a){this.J.WB(a)}; g.k.nba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){a=g.u(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ei(b)}else if(1===a)for(a=g.u(this.ID),c=a.next();!c.done;c=a.next())c.value.gR(b)}; g.k.cba=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.kh(a,this.getPresentingPlayerType())}; g.k.onFullscreenToggled=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; g.k.onVolumeChange=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; g.k.jh=function(){for(var a=this.J.isMinimized(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.jh(a)}; g.k.yj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.yj(a)}; g.k.dc=function(){for(var a=this.J.ob().Th(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vi(a)}; g.k.xj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.xj(a)}; g.k.Aj=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.Aj()};g.y(Hhb,g.I);g.y(B1,g.I);B1.prototype.va=function(){this.Xn.Ma()||this.Xn.get().removeListener(this);g.I.prototype.va.call(this)};C1.prototype.fetch=function(a){var b=a.hX;return this.j.fetch(a.K2,{cw:void 0===a.cw?void 0:a.cw,Xd:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return Ihb(c,b)})};g.y(D1,g.I);g.k=D1.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.QL=function(a){Jhb(this,a,1)}; g.k.onAdUxClicked=function(a,b){E1(this,function(c){c.eg(a,b)})}; g.k.aR=function(a){E1(this,function(b){b.BP(a)})}; g.k.ZQ=function(a){E1(this,function(b){b.AP(a)})}; g.k.K$=function(a){E1(this,function(b){b.EJ(a)})};F1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={KD:null,wZ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Ah)?RF("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,Mhb(this, c)))}}; g.k.va=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.hR,this),this.j=null);this.listeners.length=0;this.eM.length=0;g.I.prototype.va.call(this)};H1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=J1.prototype;g.k.wD=function(a,b,c,d,e,f,h){return this.J.wD(a,b,c,d,e,f,h)}; g.k.mz=function(a,b){this.J.mz(a,b)}; g.k.qH=function(a,b,c){this.J.qH(a,b,c)}; g.k.Du=function(a){this.J.Du(a)}; g.k.QE=function(a,b,c,d,e,f,h){this.J.QE(a,b,c,d,e,f,h)}; g.k.qs=function(a){return this.J.qs(a)}; g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.y(Rhb,g.I);g.y(Shb,g.I);g.y(Thb,g.I);g.y(Uhb,g.I);g.y(Vhb,g.I);g.y(Xhb,g.I);Xhb.prototype.C=function(){return this.B};g.y(Yhb,EF); Yhb.prototype.D=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.jb("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.jb("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.jb("updateEngagementPanelAction",b.addAction);this.j.jb("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.jb("changeEngagementPanelVisibility",b.hideAction),this.j.jb("updateEngagementPanelAction",b.removeAction)}};g.y(Zhb,JF);g.k=Zhb.prototype; g.k.init=function(a,b,c){JF.prototype.init.call(this,a,b,c);g.Is(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"), this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){LF(this);JF.prototype.hide.call(this)}; g.k.show=function(){KF(this);JF.prototype.show.call(this)}; g.k.hq=function(){this.hide()}; g.k.Ao=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Is(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.y($hb,jF);g.k=$hb.prototype; g.k.init=function(a,b,c){jF.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&&g.V(b.actionButton,g.qM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.IE(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=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(cya(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.y(oib,jF);g.k=oib.prototype; g.k.init=function(a,b,c){jF.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.V(b.actionButton,g.qM)?(this.C.init(ZE("ad-image"),b.image,c),this.B.init(ZE("ad-text"),b.headline,c),this.D.init(ZE("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb, a),b.backgroundColor&&g.Is(this.element,"background-color",g.kG(b.backgroundColor)),g.N(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(ZE("button"),g.V(b.actionButton,g.qM),c),b=g.EI(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Hv(c,"ytp-ad-underlay-left-container"),g.Fv(c,"ytp-ad-underlay-right-container"),g.Is(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Hv(c,"ytp-ad-underlay-right-container"), g.Fv(c,"ytp-ad-underlay-left-container")),g.Is(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.ZE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.qU.bind(this)),this.api.addEventListener("resize",this.wY.bind(this))):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.IE(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){pib(!0);this.actionButton&&this.actionButton.show();jF.prototype.show.call(this)}; g.k.hide=function(){pib(!1);this.actionButton&&this.actionButton.hide();jF.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.qU.bind(this));this.api.removeEventListener("resize",this.wY.bind(this));this.hide()}; g.k.onClick=function(a){jF.prototype.onClick.call(this,a);this.actionButton&&g.Rf(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.k.qU=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.k.wY=function(a){1200a)g.IE(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.V(b.ctaButton,g.qM))if(b.brandImage)if(b.backgroundImage&&g.V(b.backgroundImage,rM)&&g.V(b.backgroundImage,rM).landscape){this.layoutId||g.IE(Error("Missing layoutId for survey interstitial."));Fib(this.interstitial, g.V(b.backgroundImage,rM).landscape);Fib(this.logoImage,b.brandImage);g.Sf(this.text,g.lF(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new uF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,e);g.N(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(ZE("button"),g.V(b.ctaButton,g.qM),c);this.actionButton.show();this.j=new aG(this.api,1E3*a);this.j.subscribe("g",function(){d.transition.hide()}); g.N(this,this.j);this.T(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)}); this.transition.show(100)}else g.IE(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.IE(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.IE(Error("SurveyTextInterstitialRenderer has no button."));else g.IE(Error("SurveyTextInterstitialRenderer has no text."));else g.IE(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; U1.prototype.clear=function(){this.hide()}; U1.prototype.show=function(){Gib(!0);jF.prototype.show.call(this)}; U1.prototype.hide=function(){Gib(!1);jF.prototype.hide.call(this)};g.y(V1,JF);g.k=V1.prototype; g.k.init=function(a,b){JF.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.IE(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.im();var c;if(null==(c=b.previewText)||!c.text||g.ec(b.previewText.text))g.IE(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Sf(this.C,b.previewText.text);var d; if((null==(d=this.api.getVideoData(1))?0:d.Jl)&&b.previewImage){var e,f;(a=(null==(f=iAa((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"")&&a.length?(this.previewImage=new g.iF({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.N(this,this.previewImage),this.previewImage.Ja(this.element)):g.IE(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; g.k.clear=function(){this.hide()}; g.k.hide=function(){LF(this);JF.prototype.hide.call(this)}; g.k.show=function(){KF(this);JF.prototype.show.call(this)}; g.k.hq=function(){this.hide()}; g.k.Ao=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.G)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=null==(c=this.G)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Sf(this.C,a);this.D=b}}}};g.y(W1,jF); W1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=iAa((null==(c=b.image)?void 0:c.sources)||[],Hib(b),!0))?void 0:d.url)||"")&&a.length){c=this.Fa("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.IE(Error("Failed to get imageUrl in AdAvatar."))}; W1.prototype.clear=function(){this.hide()}; W1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a)};g.y(X1,jF); X1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.ec(a))||b.iconImage){c&&(this.buttonText=new g.iF({I:"span",S:"ytp-ad-button__text",xa:a}),g.N(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&kv(this.element,f+" This link opens in new tab");iv(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.u(e.sources), a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,null==(c=a.clientResource)?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:null==(h=e.clientResource)?void 0:h.imageName}}}h=tF(d);null!=h&&(this.buttonIcon=new g.iF({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.N(this,this.buttonIcon),b.iconLeading?(Hf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing")))}this.element.classList.add("ytp-ad-button--style-filled"); switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.JE(Error("AdButton does not have label or an icon."))}; X1.prototype.clear=function(){this.hide()}; X1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a)};g.y(Y1,jF);Y1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});if(a=b.content){g.Sf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.IE(Error("AdSimpleAttributedString does not have text content"))}; Y1.prototype.clear=function(){this.hide()}; Y1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a)};g.y(Kib,JF);g.k=Kib.prototype; g.k.init=function(a,b){JF.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Hf(this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.V(b.avatar,Ykb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.V(b.button,Zkb);e?(this.adAvatar.init(ZE("ad-avatar"),a),this.headline.init(ZE("ad-simple-attributed-string"),new Jib(c)),this.description.init(ZE("ad-simple-attributed-string"),new Jib(d)),c.content&&20=this.B&&(LF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.k.hq=function(){this.clear()}; g.k.onClick=function(a){this.api.pauseVideo();JF.prototype.onClick.call(this,a)}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.rU.bind(this))}; g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();JF.prototype.show.call(this)}; g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();JF.prototype.hide.call(this)}; g.k.rU=function(a){"hidden"===a?this.show():this.hide()};g.y(Lib,jF);g.k=Lib.prototype; g.k.init=function(a,b){jF.prototype.init.call(this,a,b,{});if(!b.label||g.ec(b.label))g.IE(Error("No label is returned for SkipAdButton."));else if(g.Sf(this.D,b.label),a=tF({iconType:"SKIP_NEXT_NEW"}),null==a)g.IE(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.iF({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.$e(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id", b),this.element.setAttribute("data-tooltip-target-fixed","")}; g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(0===jya(a,{contentCpn:null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:""})&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;jF.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.k.clear=function(){this.j.reset();this.hide()}; g.k.hide=function(){jF.prototype.hide.call(this)}; g.k.show=function(){this.j.start();jF.prototype.show.call(this);this.B&&this.api.U().experiments.fb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.y(Mib,JF);g.k=Mib.prototype; g.k.init=function(a,b){JF.prototype.init.call(this,a,b,{});var c=g.V(b.preskipState,$kb);c?(a=g.V(b.skippableState,blb))?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.JE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(ZE("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(ZE("skip-button"),a),this.show()):g.IE(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.IE(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))}; g.k.show=function(){KF(this);JF.prototype.show.call(this)}; g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();LF(this);JF.prototype.hide.call(this)}; g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();LF(this);JF.prototype.hide.call(this)}; g.k.hq=function(){this.hide()}; g.k.Ao=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();null!=(a=this.C)&&(a.transition.show(),a.show())}};g.y(Z1,jF); Z1.prototype.init=function(a,b){jF.prototype.init.call(this,a,b,{});if(b.label){var c;(null==(c=b.label)?0:c.content)&&!g.ec(b.label.content)&&(this.linkText=new g.iF({I:"span",S:"ytp-visit-advertiser-link__text",xa:b.label.content}),g.N(this,this.linkText),this.linkText.Ja(this.element));var d,e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)kv(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;(null==(f=b.label)?0:f.content)&&!g.ec(b.label.content)&&kv(this.element, b.label.content+" This link opens in new tab")}iv(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.IE(Error("No label found in VisitAdvertiserLink."))}; Z1.prototype.onClick=function(a){jF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; Z1.prototype.clear=function(){this.hide()};g.y($1,jF); $1.prototype.init=function(a,b,c,d){jF.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.V(c,clb),c=g.V(c,$kb),a?(this.Ou=new Mib(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.N(this,this.Ou),this.Ou.Ja(this.D),this.Ou.init(ZE("skip-ad"),a)):c&&(this.C=new V1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,1),g.N(this,this.C),this.C.Ja(this.D),this.C.init(ZE("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&& (a=g.V(b.playerAdCard,alb))&&(this.playerAdCard=new Kib(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.N(this,this.playerAdCard),this.playerAdCard.Ja(this.G),this.playerAdCard.init(ZE("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.V(b.adBadgeRenderer,Vkb))&&(this.adBadge=new ZF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,this.adBadge),this.adBadge.Ja(this.B),this.adBadge.init(ZE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&& (a=g.V(b.adDurationRemaining,Okb))&&(this.adDurationRemaining=new eG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,d.videoAdDurationSeconds),g.N(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.B),this.adDurationRemaining.init(ZE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,oM))&&(this.adInfoButton=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,this.adInfoButton),this.adInfoButton.Ja(this.B), this.adInfoButton.init(ZE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.V(b.visitAdvertiserLink,dlb))&&(this.visitAdvertiserLink=new Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.B),this.visitAdvertiserLink.init(ZE("visit-advertiser-link"),b));this.show()}; $1.prototype.clear=function(){this.hide()};var Eob="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 banner-image top-banner-image-text-icon-buttoned".split(" "));g.y(a2,EF); a2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Eob.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.kb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof EJ?c.eT:!1,m=c instanceof EJ||c instanceof $F?c.NL:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new eib(a,f,h,e);break;case "player-overlay":a=new iG(a,f,h,e,new XV(a),m);break;case "player-overlay-layout":a=new $1(a,f,h,e,new XV(a));break;case "survey":a= new T1(a,f,h,e);break;case "ad-action-interstitial":a=new $hb(a,f,h,e,l,m);break;case "survey-interstitial":a=new U1(a,f,h,e);break;case "ad-message":a=new mib(a,f,h,e,new XV(a,1));break;case "player-underlay":a=new oib(a,f,h,e);break;default:a=null}if(!a){g.JE(Error("No UI component returned from ComponentFactory for type: "+d));break}g.ed(this.B,b)?g.JE(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof $Ca?this.C?this.C.append(a.BS):g.IE(Error("Underlay view was not created but UnderlayRenderer was created")): this.G.append(a.BS);break;case 2:b=Nib(this,a);if(null==b)break;b.bind(c);break;case 3:c=Nib(this,a),null!=c&&(g.vb(c),g.ed(this.B,b)?(c=this.B,b in c&&delete c[b]):g.JE(Error("Ad UI component does not exist: "+b)))}}; a2.prototype.va=function(){g.wb(Object.values(this.B));this.B={};EF.prototype.va.call(this)};g.y(Oib,g.sV);g.k=Oib.prototype;g.k.create=function(){try{Pib(this),this.load(),this.created=!0,Pib(this)}catch(a){RF(a instanceof Error?a:String(a))}}; g.k.load=function(){try{Sib(this)}finally{m1(L1(this.j).Rk)&&this.player.zg("ad",1)}}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.wx.ao(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.sV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){RF(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()}; g.k.Lm=function(){return!1}; g.k.getAdState=function(){return-1}; g.k.getOptions=function(){return Object.values(Dob)}; g.k.Qh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=mhb(this.player),Object.assign(b,a.Unb),a=g.dv(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Xp(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; g.k.Au=function(a){var b;return!(null==(b=this.j.j.Af)||!b.get().Au(a))}; g.k.Xp=function(a){a.isMuted&&oAa(L1(this.j).Yk,L1(this.j).Zn,a.layoutId);this.Ms&&this.Ms.Xp()}; g.k.executeCommand=function(a){L1(this.j).kb.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.H0.create);g.Va("yt.player.Application.createAlternate",g.H0.create);rwa(twa(),{Kr:[{SA:/Unable to load player module/,weight:20},{SA:/Failed to fetch/,weight:500},{SA:/XHR API fetch failed/,weight:10},{SA:/JSON parsing failed after XHR fetch/,weight:10},{SA:/Retrying OnePlatform request/,weight:10},{SA:/CSN Missing or undefined during playback association/,weight:100}]});var Fob=g.Xa("ytcsi.tick");Fob&&Fob("pe");g.rV("ad",Oib);g.Gob=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.Gob);g.y(g.d2,g.I);g.d2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.EC)()};this.next()}; g.d2.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.d2.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.EC)()-a;a=this.j;d=fla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=He(a.C,a.y1,d);var f=He(a.y1,a.y2,d);a=He(a.y2,a.D,d);e=He(e,f,d);f=He(f,a,d);a=He(e,f,d)}a=g.Ce(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.y(g.e2,g.W);g.k=g.e2.prototype;g.k.n4=function(){this.B&&this.scrollTo(this.j-this.containerWidth)}; g.k.show=function(){g.W.prototype.show.call(this);Yib(this)}; g.k.o4=function(){this.B&&this.scrollTo(this.j+this.containerWidth)}; g.k.xx=function(){this.dc(this.api.ob().getPlayerSize())}; g.k.dc=function(a){var b=this.api.Yc()?.5625:16/9,c=this.api.Dh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.Fa("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.f2(this)}; g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Hf?!1:a.D;this.suggestionData=b.suggestions?g.Pt(b.suggestions,function(c){return c&&!c.playlistId}):[]; $ib(this);b.Hf?this.title.update({title:g.qJ("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.Yc()?"More shorts":"More videos"})}; g.k.scrollTo=function(a){a=g.Ce(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.f2(this);Yib(this)};})(_yt_player);