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
*/
    /*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
    /*

 (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 ba,baa,caa,oa,daa,pa,eaa,sa,wa,xa,ya,gaa,haa,Ga,Ia,iaa,jaa,Ka,kaa,Ma,Na,Oa,laa,Qa,Xa,ab,naa,oaa,qb,paa,rb,sb,tb,wb,xb,qaa,raa,Bb,taa,uaa,Mb,vaa,Rb,waa,xaa,Ob,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,dc,Faa,fc,ic,lc,tc,xc,yc,zc,Naa,Oaa,Ac,Cc,Bc,Paa,Qaa,Raa,Saa,Dc,Taa,Hc,Ic,Jc,Uaa,Lc,Mc,Waa,Yaa,Pc,Rc,aba,Sc,Xc,bba,cba,fd,dba,md,od,gba,hba,td,mba,Ad,jba,lba,wd,vd,Fd,Gd,nba,Id,oba,Kd,Pd,pba,Rd,Sd,Td,Xd,be,ee,fe,ke,pe,Bba,zba,Aba,Dba,Eba,se,te,ue,Hba,xe,Iba,Jba,Kba,Mba,Lba,Be,Je,Nba,Ne,Re,Ve,Oba,Ye,
        Ze,cf,df,Pba,Qba,Rba,Sba,lf,mf,uf,Vba,Xba,Wba,vf,xf,Yba,wf,Gf,ff,$ba,Zba,Mf,Lf,ef,Of,aca,Qf,Rf,Sf,bca,dca,fca,gg,hg,ig,jca,lca,lg,mca,jg,qca,eg,hca,sca,pca,nca,oca,tca,rca,mg,kca,pg,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Dg,Lca,Pca,Qca,Rca,Wca,Hg,Vca,Sca,Yca,$ca,bda,Jg,dda,Lg,Mg,fda,Og,Ng,gda,Pg,hda,Qg,Zg,ch,ida,dh,jda,kda,eh,$g,fh,hh,gh,ih,jh,lh,mh,Bh,lda,nda,Dh,oda,pda,Eh,Fh,Ih,rda,sda,uda,vda,xda,Jh,yda,Kh,zda,Lh,Ada,Mh,Nh,Bda,Oh,Ph,Qh,Rh,Sh,Uh,Cda,Wh,Dda,Xh,Yh,pi,ri,si,
        Fda,Gda,ti,Hda,Ida,Jda,vi,wi,Kda,Lda,Mda,Nda,xi,yi,zi,Pda,Ai,Bi,Ci,Rda,Fi,Gi,Sda,Tda,Ei,Hi,Qda,Di,Ii,Uda,Vda,Ji,$i,aj,bj,dj,fj,hj,R,ij,Yda,kj,lj,bea,aea,Zda,$da,cea,eea,dea,fea,oj,nj,hea,gea,pj,Gj,mj,jea,Ij,kea,Hj,Lj,Kj,Mj,Pj,Tj,oea,pea,Rj,qea,rea,Uj,tea,Vj,Xj,Wj,uea,vea,bk,ck,dk,Yj,ak,Zj,gk,nea,wea,xea,ik,jk,kk,Qj,Sj,yea,lk,Mk,zea,Nk,Ok,Pk,Qk,Aea,Rk,Bea,Sk,Tk,Cea,Dea,Eea,Uk,Vk,Wk,Xk,Yk,Zk,S,$k,al,T,bl,Fea,cl,Jea,Mea,Gea,Lea,Kea,Iea,Hea,Nea,U,Oea,fl,Rea,gl,kl,Uea,ll,Wea,Xea,Tea,Yea,nl,bfa,cfa,dfa,
        ol,ffa,gfa,hl,efa,hfa,afa,rl,sl,bm,cm,dm,em,jfa,kfa,fm,lfa,gm,hm,jm,mfa,im,km,lm,mm,nm,om,pfa,qfa,sfa,rfa,tfa,rm,sm,tm,vfa,wfa,xfa,Om,Pm,Qm,Rm,Um,Vm,Wm,yfa,Xm,Afa,$m,an,bn,cn,dn,en,Bfa,hn,Dfa,gn,fn,Cfa,Efa,Ffa,kn,Gfa,jn,ln,mn,nn,on,pn,Hfa,qn,Ifa,sn,Jfa,Mfa,tn,un,vn,wn,An,Ofa,Bn,to,uo,Pfa,Qfa,xo,Rfa,yo,zo,Ufa,Wfa,Yfa,Xfa,Zfa,Bo,$fa,Eo,Io,Ko,Lo,Mo,dga,Jo,No,Oo,Po,Ro,So,ega,To,Uo,gga,fga,hga,iga,jga,lga,Vo,Wo,Xo,Yo,mga,Zo,oga,$o,pga,qga,tga,sga,rga,bp,cp,dp,ep,fp,gp,hp,ip,vga,jp,kp,lp,mp,np,wga,op,pp,
        qp,rp,sp,Aga,xga,vp,zga,gq,yga,up,tp,iq,Cga,kq,jq,pq,qq,sq,Fga,rq,vq,Gga,wq,Dga,Jga,Kga,Lga,zq,Aq,Bq,Mga,Cq,Dq,Eq,Fq,Nga,Gq,Hq,Iq,Oga,Pga,Jq,Qga,Kq,Tga,Uga,Vga,Wga,Rga,Lq,Mq,Nq,Oq,Zga,$ga,Yga,Pq,aha,bha,cha,Tq,dha,Uq,Vq,eha,Wq,fha,hha,Xq,gha,iha,jha,kha,lha,Yq,mha,Br,Cr,Dr,Er,Fr,Gr,Hr,nha,Ir,Jr,Kr,oha,qha,rha,Mr,Or,Nr,Qr,Rr,Sr,tha,uha,Tr,Ur,Vr,wha,xha,Aha,yha,Bha,Fha,Wr,Eha,Cha,Xr,Yr,Gha,Zr,Hha,$r,Jha,Iha,Kha,Lha,ds,es,Mha,Nha,Oha,fs,gs,Pha,hs,Qha,Rha,Tha,Xha,is,Yha,Zha,$ha,aia,bia,ls,cia,dia,eia,
        ts,rs,qs,fia,gia,hia,us,vs,ws,jia,Bs,Cs,Ds,kia,Es,mia,nia,oia,Fs,Hs,Is,Ns,Os,Rs,qia,sia,ria,tia,uia,Xs,via,wia,Ys,xia,yia,zia,Aia,bt,$s,lt,mt,nt,Bia,Cia,Dia,ot,pt,qt,Eia,Fia,Gia,rt,Hia,tt,ut,Iia,Jia,Kia,Lia,Mia,Nia,vt,wt,xt,At,Qia,Bt,Ct,Ria,Pia,zt,Sia,Dt,Et,Ft,Ht,Gt,Tia,Uia,Via,It,Xia,Jt,Zia,$ia,aja,bja,cja,dja,eja,fja,Mt,Nt,Ot,hja,gja,ija,jja,Qt,kja,Rt,lja,mja,St,Tt,Ut,nja,Vt,Wt,oja,Xt,Yt,Zt,$t,au,bu,cu,du,pja,qja,rja,sja,eu,tja,vja,uja,gu,hu,xja,wja,Aja,Dja,Cja,iu,Eja,Fja,Gja,Ija,Hja,Jja,ju,Kja,
        Lja,lu,Mja,Nja,Oja,Pja,mu,Qja,nu,Rja,ou,pu,Tja,qu,Uja,ru,tu,Vja,Wja,uu,wu,Yja,xu,Xja,Zja,$ja,aka,cka,yu,dka,Bu,Cu,fka,gka,jka,kka,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,oka,nka,pka,rka,qka,tka,mka,ska,lka,Qu,Ru,vka,wka,xka,Vu,Wu,Xu,Su,zka,Yu,uka,Bka,Cka,Aka,Dka,Eka,Zu,Fka,Gka,yka,Hka,$u,Ika,Jka,Kka,Lka,Mka,Pka,Qka,Rka,Ska,Tka,Wka,Yka,$ka,ala,fla,ela,gla,ila,lla,nla,vv,ola,uv,pla,qla,xv,yv,sla,tla,ula,wla,Ev,xla,yla,Nv,zla,Bla,Ov,Cla,Dla,Jla,Fla,Qv,Rv,Sv,Tv,Uv,Qla,Vv,Wv,Xv,Sla,$v,Tla,Ula,aw,Wla,cw,
        dw,ew,Xla,Yla,fw,hw,iw,Zla,jw,$la,lw,ama,bma,mw,nw,ow,cma,dma,ema,fma,gma,hma,ima,lma,mma,nma,oma,pma,uw,ww,xw,yw,Bw,Cw,Dw,rma,Fw,tma,Gw,uma,vma,Hw,wma,xma,Jw,Fma,Gma,Hma,Ima,Kma,Lma,Oma,Kw,Qma,Pma,Lw,Sma,Tma,Uma,Vma,Wma,Nw,Ow,Xma,Yma,Pw,Zma,$ma,Qw,Rw,Sw,ana,bna,cna,dna,ena,Tw,fna,gna,hna,ina,Uw,Vw,jna,kna,lna,mna,nna,ona,Ww,pna,Xw,qna,rna,sna,tna,una,vna,wna,xna,yna,zna,Yw,Ana,Bna,Zw,$w,ax,bx,cx,Cna,dx,ex,Dna,fx,gx,Ena,hx,ix,jx,Fna,Gna,kx,Hna,Ina,Jna,Kna,Lna,lx,Mna,Nna,Ona,mx,Pna,Qna,Rna,nx,Sna,
        ox,Tna,px,qx,rx,sx,tx,ux,Una,Vna,vx,Wna,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Xna,Yna,Zna,$na,aoa,Ex,boa,coa,doa,eoa,Fx,foa,goa,hoa,Gx,Hx,Ix,Jx,Kx,Lx,ioa,Mx,Nx,Ox,Px,joa,Qx,Rx,Sx,koa,loa,Tx,ay,by,cy,dy,ey,fy,gy,moa,noa,hy,ooa,poa,qoa,iy,roa,soa,toa,jy,uoa,ky,ly,my,voa,ny,woa,oy,py,xoa,qy,yoa,ry,zoa,Aoa,Boa,sy,Coa,ty,uy,vy,Doa,wy,Eoa,yy,zy,Ay,By,Ey,Fy,Gy,Foa,Hy,Iy,Jy,Goa,Ky,Ly,My,Ny,Hoa,Oy,Py,Qy,Ry,Sy,Ioa,Ty,Joa,Uy,Koa,Loa,Vy,Wy,Moa,Xy,Yy,Zy,Noa,Ooa,Poa,Qoa,$y,az,Roa,bz,Soa,Toa,Uoa,Voa,Woa,cz,Xoa,Yoa,Zoa,dz,ez,
        $oa,fz,apa,bpa,gz,cpa,dpa,epa,fpa,hz,iz,jz,kz,gpa,hpa,lz,ipa,jpa,kpa,lpa,mz,mpa,npa,opa,ppa,qpa,rpa,spa,tpa,upa,nz,vpa,oz,pz,wpa,xpa,qz,ypa,zpa,Apa,Bpa,Cpa,Dpa,Epa,Fpa,rz,Gpa,Hpa,Ipa,sz,Jpa,Kpa,tz,uz,Lpa,Mpa,vz,wz,Npa,xz,Opa,yz,Ppa,zz,Az,Qpa,Rpa,Bz,Spa,Tpa,Cz,Upa,Vpa,Wpa,Xpa,Ypa,Zpa,$pa,aqa,bqa,cqa,Dz,dqa,eqa,Ez,fqa,Fz,Gz,gqa,hqa,Hz,iqa,jqa,Iz,kqa,Jz,lqa,Kz,Lz,Mz,Nz,mqa,Oz,Pz,Qz,Rz,nqa,Sz,Tz,oqa,pqa,Uz,Vz,Wz,qqa,Xz,rqa,sqa,tqa,Yz,uqa,vqa,wqa,Zz,xqa,yqa,$z,aA,zqa,bA,Aqa,Bqa,cA,Cqa,dA,Dqa,Eqa,Fqa,fA,
        hA,Gqa,lA,mA,nA,oA,Kqa,qA,rA,Lqa,sA,tA,uA,Nqa,Mqa,Hqa,vA,Qqa,Tqa,wA,Vqa,Uqa,Wqa,Zqa,Yqa,bra,cra,dra,era,gra,lra,hra,jra,kra,GA,FA,mra,IA,JA,KA,ora,pra,qra,rra,sra,tra,QA,ura,SA,vra,wra,TA,yra,zra,Ara,XA,Bra,Cra,YA,ZA,$A,aB,Era,bB,Gra,Fra,Ira,dB,Jra,Nra,Lra,Mra,Ora,Pra,Zra,$ra,Qra,csa,fB,dsa,iB,esa,fsa,hB,jB,hsa,isa,msa,lsa,nsa,nB,oB,pB,qB,sB,psa,rsa,ssa,tsa,yB,usa,vsa,wsa,zsa,Asa,Bsa,ysa,Csa,Esa,Gsa,FB,Hsa,MB,KB,PB,QB,Jsa,Msa,VB,WB,XB,YB,Qsa,$B,Ssa,Tsa,Usa,cC,Wsa,Xsa,Vsa,Ysa,Zsa,eC,$sa,ata,bta,dta,
        hC,gta,hta,eta,ita,jta,lta,kta,lC,fta,ota,pta,qC,nta,qta,rta,rC,sC,sta,uta,uC,vta,wta,yta,Ata,xC,Bta,Cta,Dta,Eta,Fta,Gta,Hta,Ita,zC,Jta,BC,Lta,Mta,Nta,Ota,Pta,Qta,GC,Tta,Wta,HC,Xta,Zta,Sta,$ta,aua,bua,Uta,Vta,CC,Rta,FC,Yta,EC,DC,cua,dua,eua,fua,gua,hua,nua,iua,KC,LC,MC,qua,sua,rua,oua,tua,vua,PC,xua,Aua,SC,zua,Kua,Bua,Jua,WC,Lua,Oua,XC,VC,Mua,Nua,Pua,ZC,Rua,Sua,Tua,Uua,Vua,Wua,Xua,Qua,Zua,$ua,ava,bva,cva,fva,aD,hva,bD,cD,dD,iva,jva,fD,gD,mva,lva,ova,nva,qva,sva,rva,tva,xva,vva,rD,yva,Ava,qD,zva,sD,
        tD,Bva,Cva,vD,Eva,yD,xD,zD,AD,BD,Gva,Hva,DD,Iva,ED,Kva,Lva,Mva,Ova,Pva,Nva,HD,Rva,Qva,Sva,ID,Uva,JD,Wva,KD,Yva,LD,Xva,MD,ND,awa,gwa,iwa,fwa,ewa,hwa,QD,jwa,rwa,nwa,owa,pwa,$va,Awa,Cwa,zwa,Fwa,ywa,PD,Ewa,mwa,qwa,Bwa,kwa,cwa,bwa,dwa,SD,xwa,ZD,Pwa,Owa,Twa,Wwa,Vwa,Ywa,aE,bE,$wa,axa,bxa,cxa,dxa,exa,fxa,dE,hxa,ixa,jxa,kxa,lxa,mxa,nxa,pxa,qxa,hE,sxa,uxa,txa,vxa,xxa,yxa,Cxa,Axa,Exa,Dxa,Gxa,Fxa,iE,Lsa,Oxa,Lxa,Qxa,pE,Sxa,Vxa,Wxa,bya,fya,gya,iya,hya,jya,vE,lya,uE,eya,dya,rE,CE,BE,FE,GE,IE,nya,JE,ME,NE,oya,pya,
        rya,sya,tya,uya,vya,wya,xya,yya,zya,Aya,Bya,TE,Cya,Dya,UE,Fya,Gya,Hya,Iya,Jya,Mya,Nya,WE,XE,Oya,YE,Pya,$E,Rya,Qya,bF,cF,dF,eF,Sya,fF,Tya,Uya,Vya,gF,Wya,$ya,Xya,Zya,Yya,hF,iF,aza,bza,cza,dza,jF,fza,iza,hza,kF,jza,lF,mF,nF,pF,qF,kza,lza,mza,rF,nza,oza,qza,rza,pza,sza,sF,tF,wF,yF,uza,tza,AF,vza,wza,BF,CF,DF,EF,HF,yza,IF,JF,zza,KF,LF,MF,Aza,Bza,PF,Cza,QF,Fza,Hza,Jza,Lza,Nza,Pza,SF,Qza,TF,Rza,Uza,Vza,Wza,VF,WF,Yza,Zza,YF,ZF,$F,aAa,aG,bG,cG,bAa,dG,$za,cAa,eG,eAa,dAa,fG,gAa,gG,hG,jG,hAa,iAa,lG,mG,oG,AG,
        zG,kAa,nG,nAa,oAa,rAa,sAa,tAa,vAa,qAa,wAa,xAa,yAa,BG,mAa,pAa,CG,CAa,DAa,GG,EAa,DG,EG,FAa,HG,HAa,KAa,IAa,IG,LAa,JG,NAa,KG,TAa,RAa,OAa,QAa,PAa,QG,RG,SG,TG,UG,VG,XG,VAa,aBa,ZG,aH,$G,cBa,bBa,dBa,fBa,gBa,eBa,hBa,lBa,nBa,mBa,oBa,pBa,qBa,rBa,tBa,sBa,uBa,bH,vBa,wBa,xBa,yBa,zBa,BBa,CBa,cH,ABa,dH,FBa,HBa,eH,fH,gH,IBa,JBa,hH,iH,KBa,LBa,MBa,NBa,OBa,PBa,jH,kH,lH,mH,nH,oH,pH,qH,rH,sH,tH,QBa,RBa,uH,SBa,TBa,UBa,VBa,vH,wH,xH,yH,WBa,zH,AH,BH,XBa,CH,DH,EH,FH,GH,HH,IH,JH,KH,YBa,LH,MH,NH,ZBa,OH,PH,QH,RH,$Ba,SH,TH,aCa,
        UH,bCa,cCa,VH,dCa,WH,eCa,YH,ZH,fCa,$H,aI,bI,XH,cI,dI,eI,hCa,jCa,kCa,fI,lCa,gI,mCa,iI,nCa,oCa,jI,kI,pCa,sCa,tCa,uCa,vCa,wCa,xCa,qCa,tI,zCa,ACa,BCa,CCa,rCa,ECa,lI,FCa,GCa,uI,HCa,vI,nI,ICa,mI,DCa,wI,LCa,KCa,oI,pI,yI,xI,MCa,zI,NCa,AI,PCa,OCa,BI,CI,DI,EI,FI,RCa,SCa,UCa,VCa,HI,II,YCa,JI,bDa,dDa,fDa,gDa,LI,iDa,jDa,lDa,mDa,nDa,oDa,pDa,qDa,QI,RI,rDa,tDa,sDa,uDa,vDa,wDa,VI,XI,YI,ZI,$I,aJ,xDa,bJ,cJ,WI,zDa,eJ,fJ,gJ,ADa,yDa,CDa,DDa,EDa,FDa,GDa,HDa,IDa,JDa,KDa,LDa,MDa,NDa,ODa,PDa,QDa,RDa,SDa,TDa,UDa,VDa,WDa,XDa,
        YDa,ZDa,$Da,aEa,hJ,iJ,bEa,jJ,kJ,cEa,dEa,eEa,fEa,gEa,hEa,iEa,lJ,jEa,kEa,lEa,mEa,mJ,nEa,oEa,pEa,qEa,rEa,nJ,sEa,tEa,uEa,oJ,vEa,rJ,xEa,sJ,tJ,yEa,zEa,AEa,BEa,CEa,DEa,EEa,wJ,xJ,GEa,HEa,IEa,JEa,yJ,FEa,zJ,KEa,AJ,BJ,CJ,DJ,NEa,EJ,FJ,HJ,OEa,PEa,QEa,JJ,LJ,REa,PJ,QJ,SEa,TEa,RJ,UEa,SJ,VEa,UJ,VJ,WJ,WEa,XEa,YEa,XJ,NJ,YJ,ZJ,$J,ZEa,aK,bK,cK,$Ea,dK,eK,fK,gK,hK,iK,jK,kK,lK,bFa,cFa,dFa,eFa,qK,mK,rK,fFa,gFa,hFa,iFa,sK,tK,jFa,kFa,lFa,oK,mFa,nFa,uK,oFa,qFa,rFa,wK,xK,yK,zK,AK,uFa,BK,DK,EK,vFa,wFa,CK,xFa,yFa,FK,GK,HK,zFa,
        JK,BFa,KK,CFa,LK,MK,EFa,FFa,DFa,GFa,NK,OK,HFa,SK,JFa,KFa,LFa,UK,TK,MFa,NFa,OFa,PFa,RFa,IK,QFa,TFa,VK,SFa,UFa,WK,VFa,XK,WFa,XFa,YFa,ZFa,$Fa,YK,bGa,ZK,aGa,dGa,eGa,aL,fGa,gGa,hGa,iGa,jGa,kGa,lGa,mGa,nGa,bL,pGa,qGa,rGa,tGa,sGa,uGa,vGa,xGa,wGa,yGa,zGa,AGa,BGa,CGa,DGa,EGa,FGa,GGa,HGa,IGa,JGa,KGa,LGa,MGa,NGa,OGa,fL,PGa,gL,hL,RGa,SGa,iL,TGa,jL,UGa,kL,VGa,lL,WGa,XGa,YGa,ZGa,mL,$Ga,aHa,bHa,nL,oL,pL,qL,rL,cHa,sL,tL,uL,dHa,vL,eHa,fHa,gHa,hHa,wL,iHa,xL,jHa,yL,zL,TCa,kHa,lHa,mHa,nHa,oHa,AL,BL,CL,DL,EL,FL,GL,HL,
        IL,JL,KL,sHa,tHa,uHa,vHa,wHa,OL,TL,yHa,DHa,IHa,EHa,KHa,LHa,JHa,NHa,OHa,PHa,bM,SHa,UHa,XHa,YHa,ZHa,dM,aIa,bIa,fIa,eM,gIa,cIa,hIa,fM,iIa,lIa,kIa,pIa,mIa,gM,hM,vIa,wIa,AIa,zIa,yIa,EIa,DIa,GIa,HIa,KIa,IIa,JIa,xIa,LIa,MIa,jM,CIa,NIa,kM,BIa,OIa,PIa,SIa,VIa,TIa,YIa,fJa,eJa,ZIa,gJa,aJa,bJa,$Ia,kJa,mJa,oJa,sJa,vJa,wJa,yJa,AJa,CJa,BJa,KJa,EJa,DJa,LJa,OJa,PJa,QJa,RJa,qM,THa,UJa,SJa,sM,WJa,YJa,$Ja,bKa,cKa,aKa,vM,dKa,wM,xM,SI,yM,RHa,AM,eKa,fKa,gKa,hKa,BM,iKa,jKa,kKa,CM,DM,lKa,EM,FM,GM,HM,IM,JM,mKa,nKa,KM,oKa,
        LM,$K,MM,NM,pKa,OM,PM,qKa,VHa,ZJa,rKa,QM,TI,GI,lM,tKa,uKa,RM,uIa,iM,vKa,rM,VJa,rJa,qJa,RIa,mM,tJa,xJa,zJa,qIa,MJa,wKa,hJa,cJa,SM,XJa,WHa,yKa,xKa,QIa,uJa,zKa,NJa,nM,rIa,tIa,jIa,pJa,nJa,XIa,UIa,eIa,dIa,$Ha,jJa,dJa,FJa,nIa,oIa,IJa,JJa,GJa,HJa,lJa,CKa,AKa,TM,BKa,UM,DKa,VM,WM,bN,FKa,dN,HKa,IKa,JKa,KKa,LKa,MKa,NKa,OKa,fN,iN,PKa,QKa,SKa,RKa,TKa,UKa,VKa,WKa,XKa,YKa,kN,lN,aLa,mN,nN,bLa,cLa,dLa,eLa,oN,pN,qN,fLa,gLa,rN,tN,xN,hLa,yN,zN,AN,BN,CN,DN,EN,FN,GN,HN,IN,iLa,jLa,JN,KN,LN,MN,NN,ON,kLa,lLa,PN,TN,oLa,pLa,
        UN,rLa,qLa,sLa,tLa,WN,XN,YN,Y,vLa,ZN,ALa,ELa,FLa,GLa,PLa,SLa,XLa,YLa,vMa,wMa,xMa,ZLa,$La,fMa,CMa,jMa,kMa,HMa,FMa,JMa,KMa,GMa,LMa,NNa,SMa,ONa,TMa,UMa,hO,QNa,SNa,UNa,TNa,RNa,ZMa,pNa,qNa,YNa,$Na,sNa,tNa,vNa,wNa,xNa,gOa,zNa,CNa,JNa,pOa,kOa,lOa,rOa,uOa,tOa,vOa,wOa,EOa,xOa,kO,BOa,KOa,LOa,MOa,NOa,OOa,ROa,WOa,zPa,yPa,oO,pO,qO,rO,sO,tO,GPa,CO,BO,IPa,EPa,FPa,JPa,HPa,DO,KPa,LPa,EO,MPa,Ksa,OPa,NPa,QPa,SPa,UPa,VPa,TPa,XPa,bQa,HO,cQa,dQa,eQa,fQa,gQa,IO,hQa,iQa,jQa,kQa,lQa,rQa,uQa,vQa,sQa,JO,KO,tQa,wQa,nQa,xQa,
        yQa,zQa,pQa,DQa,CQa,BQa,AQa,EQa,FQa,oQa,GQa,HQa,qQa,IQa,MQa,JQa,KQa,LQa,QQa,OQa,PQa,RQa,SQa,UQa,TQa,XQa,VQa,YQa,WQa,ZQa,$Qa,aRa,bRa,cRa,dRa,eRa,fRa,gRa,hRa,iRa,jRa,kRa,mRa,nRa,oRa,lRa,pRa,qRa,tRa,MO,uRa,PO,RO,vRa,SO,TO,wRa,ARa,CRa,BRa,ERa,MRa,NRa,VO,DRa,zRa,yRa,xRa,$O,WO,ZO,eP,fP,QRa,RRa,gP,dP,VRa,SRa,TRa,WRa,hP,iP,YRa,ZRa,kP,lP,mP,nP,oP,$Ra,aSa,bSa,pP,qP,sP,dSa,eSa,rP,fSa,iSa,jSa,tP,kSa,wP,lSa,xP,zP,nSa,yP,AP,oSa,qSa,rSa,sSa,CP,DP,IP,vSa,FP,JP,LP,wSa,MP,HP,KP,xSa,NP,ySa,OP,zSa,EP,GP,tSa,uSa,PP,ASa,
        BSa,CSa,DSa,ESa,FSa,QP,RP,HSa,GSa,ISa,JSa,KSa,LSa,SP,TP,UP,VP,MSa,WP,XP,NSa,YP,OSa,ZP,$P,aQ,PSa,QSa,RSa,SSa,TSa,bQ,USa,VSa,WSa,XSa,YSa,ZSa,cQ,$Sa,dQ,aTa,bTa,fQ,cTa,gQ,hQ,dTa,eTa,iQ,fTa,gTa,kTa,lTa,hTa,iTa,jTa,nTa,jQ,kQ,lQ,oTa,pTa,mQ,nQ,qTa,oQ,rTa,tTa,sTa,pQ,uTa,vTa,wTa,xTa,yTa,zTa,BTa,CTa,qQ,DTa,FTa,HTa,GTa,tQ,OTa,KRa,XO,PTa,QTa,RTa,STa,TTa,UTa,UO,sQ,VTa,WTa,uQ,aUa,bUa,cUa,dUa,vQ,hUa,eUa,fUa,jUa,kUa,lUa,mUa,iUa,nUa,wQ,xQ,yQ,oUa,pUa,zQ,qUa,rUa,sUa,AQ,ZTa,vUa,wUa,uUa,EQ,yUa,LRa,FRa,AUa,FQ,HQ,IQ,JQ,
        KQ,LQ,GQ,BUa,DUa,OQ,GUa,EUa,IUa,JUa,HUa,FUa,KUa,LUa,MUa,TQ,NUa,OUa,QUa,RUa,PRa,UQ,SUa,VUa,aP,WUa,XUa,YUa,YO,GRa,IRa,JRa,VQ,WQ,XQ,YQ,ZUa,$Ua,ZQ,aVa,$Q,aR,bVa,cVa,bR,dVa,eVa,cR,dR,eR,gVa,hVa,fR,iVa,fVa,gR,jVa,kVa,mVa,oVa,nVa,lVa,BVa,yVa,EVa,xR,yR,pVa,zVa,rI,vR,CR,FVa,GR,HVa,mR,HR,lR,IVa,uR,KR,NVa,LR,MR,OVa,PVa,QVa,RVa,SVa,TVa,UVa,NR,VVa,$Va,ZVa,WVa,YVa,XVa,OR,aWa,PR,bWa,cWa,eWa,fWa,gWa,lWa,UR,VR,oWa,WR,YR,pWa,sWa,tWa,uWa,vWa,ZR,xWa,BWa,CWa,JWa,MWa,GWa,HWa,OWa,hS,PWa,RWa,QWa,SWa,jS,mS,TWa,iS,UWa,nS,
        VWa,ZWa,WWa,bXa,YWa,tXa,CXa,GS,DXa,FXa,oXa,uS,EXa,zS,HS,mXa,HXa,GXa,IS,rS,pXa,JXa,KXa,LXa,NXa,IXa,KS,MXa,QXa,RXa,PXa,MS,TXa,qS,wS,OXa,uXa,XWa,yXa,SS,xS,YS,ES,$S,aT,fYa,gYa,FS,hYa,cT,iYa,jYa,yS,kYa,nXa,lYa,YXa,vS,fXa,mYa,dXa,cXa,$Wa,fT,oYa,yYa,xYa,AYa,BYa,jT,lT,mT,kT,oT,CYa,DYa,pT,FYa,qT,HYa,IYa,GYa,JYa,OYa,MYa,QYa,SYa,TYa,VYa,UYa,wT,WYa,ZYa,$Ya,HT,IT,bZa,KT,cZa,NT,OT,PT,QT,dZa,RT,eZa,iZa,ST,TT,jZa,kZa,mZa,lZa,nZa,oZa,pZa,UT,VT,qZa,sZa,tZa,uZa,$T,xZa,wZa,aU,bU,cU,yZa,zZa,AZa,BZa,CZa,EZa,DZa,FZa,dU,
        HZa,GZa,IZa,JZa,eU,fU,KZa,MZa,NZa,OZa,PZa,gU,QZa,hU,RZa,iU,jU,TZa,UZa,VZa,SZa,kU,ZZa,XZa,YZa,$Za,lU,a_a,b_a,c_a,e_a,d_a,mU,f_a,g_a,h_a,pU,nU,oU,i_a,qU,j_a,k_a,l_a,n_a,m_a,wU,p_a,q_a,o_a,r_a,xU,s_a,yU,t_a,u_a,v_a,w_a,x_a,y_a,BU,EU,CU,z_a,FU,GU,B_a,IU,JU,C_a,HU,E_a,KU,MU,F_a,NU,OU,PU,G_a,J_a,I_a,RU,SU,TU,M_a,K_a,L_a,UU,N_a,R_a,P_a,O_a,Q_a,VU,T_a,U_a,WU,XU,Y_a,W_a,X_a,YU,$_a,V_a,a0a,ZU,$U,b0a,c0a,d0a,aV,e0a,f0a,g0a,h0a,i0a,j0a,k0a,n0a,l0a,o0a,p0a,q0a,r0a,t0a,kV,lV,u0a,jV,pV,qV,rV,sV,x0a,nV,oV,y0a,z0a,
        tV,D0a,E0a,F0a,G0a,H0a,C0a,A0a,uV,J0a,I0a,K0a,Q0a,xV,T0a,W0a,V0a,U0a,O0a,P0a,L0a,M0a,R0a,yV,zV,Y0a,BT,PYa,BV,Z0a,a1a,$0a,S0a,c1a,d1a,e1a,DV,f1a,KV,h1a,i1a,j1a,l1a,k1a,m1a,LV,MV,n1a,q1a,r1a,OV,p1a,s1a,t1a,o1a,PV,SV,u1a,v1a,RV,w1a,x1a,y1a,z1a,B1a,A1a,E1a,F1a,C1a,H1a,I1a,D1a,VV,WV,J1a,L1a,XV,K1a,M1a,O1a,N1a,P1a,YV,Q1a,R1a,S1a,ZV,$V,U1a,T1a,V1a,W1a,Y1a,X1a,Z1a,$1a,a2a,b2a,c2a,e2a,bW,aW,cW,f2a,g2a,d2a,l2a,m2a,n2a,q2a,p2a,o2a,r2a,s2a,dW,eW,t2a,u2a,v2a,w2a,y2a,fW,hW,x2a,z2a,A2a,B2a,C2a,D2a,jW,E2a,F2a,I2a,
        kW,J2a,H2a,lW,mW,K2a,L2a,N2a,P2a,M2a,O2a,oW,Q2a,S2a,T2a,V2a,W2a,pW,qW,X2a,R2a,p3a,o3a,n3a,rW,sW,r3a,q3a,tW,uW,s3a,t3a,vW,u3a,v3a,w3a,wW,x3a,xW,y3a,yW,z3a,C3a,D3a,E3a,G3a,H3a,I3a,F3a,K3a,J3a,L3a,O3a,BW,Q3a,P3a,M3a,N3a,R3a,S3a,CW,DW,T3a,U3a,V3a,W3a,X3a,Y3a,$3a,a4a,i4a,d4a,e4a,b4a,k4a,JW,l4a,p4a,MW,q4a,m4a,IW,PW,OW,KW,QW,t4a,v4a,u4a,RW,LW,HW,s4a,NW,n4a,r4a,x4a,EW,SW,y4a,z4a,o4a,TW,UW,A4a,VW,WW,XW,B4a,C4a,E4a,F4a,D4a,YW,H4a,G4a,ZW,I4a,$W,aX,J4a,K4a,L4a,M4a,N4a,P4a,R4a,Q4a,O4a,bX,T4a,S4a,cX,dX,U4a,W4a,
        X4a,eX,V4a,Y4a,Z4a,fX,$4a,gX,jX,iX,b5a,a5a,c5a,kX,lX,d5a,e5a,g5a,f5a,h5a,i5a,j5a,nX,k5a,l5a,m5a,n5a,o5a,p5a,r5a,s5a,t5a,q5a,u5a,v5a,w5a,x5a,y5a,rX,z5a,sX,C5a,tX,E5a,uX,D5a,G5a,H5a,F5a,vX,I5a,J5a,K5a,L5a,xX,M5a,N5a,O5a,U5a,Z5a,X5a,Q5a,AX,W5a,P5a,Y5a,a6a,b6a,$5a,CX,d6a,e6a,f6a,h6a,i6a,g6a,j6a,D_a,HX,IX,JX,k6a,LX,m6a,n6a,o6a,MX,p6a,q6a,r6a,s6a,t6a,u6a,l6a,v6a,NX,w6a,B6a,C6a,D6a,PX,E6a,RX,SX,F6a,TX,G6a,QX,H6a,I6a,P6a,XX,ZX,R6a,$X,S6a,J6a,aY,U6a,V6a,X6a,bY,cY,Y6a,Q6a,dY,$6a,Z6a,eY,N6a,VX,a7a,b7a,c7a,d7a,
        e7a,K6a,M6a,WX,h7a,i7a,k7a,j7a,gY,iY,jY,n7a,o7a,fY,p7a,l7a,m7a,f7a,q7a,r7a,s7a,y7a,z7a,t7a,mY,hY,g7a,B7a,F7a,oY,G7a,H7a,D7a,qY,I7a,J7a,A7a,K7a,E7a,L7a,rY,pY,M7a,O7a,N7a,nY,Q7a,uY,R7a,sY,vY,tY,wY,S7a,T7a,W7a,V7a,Y7a,Z7a,X7a,zY,yY,a8a,b8a,c8a,d8a,e8a,g8a,f8a,h8a,BY,CY,i8a,j8a,n8a,k8a,o8a,p8a,l8a,m8a,q8a,r8a,DY,s8a,u8a,w8a,z8a,x8a,y8a,JY,NY,B8a,OY,C8a,D8a,E8a,PY,G8a,H8a,I8a,F8a,L8a,M8a,QY,RY,N8a,O8a,P8a,FWa,LWa,Q8a,S8a,R8a,T8a,TY,UY,U8a,V8a,WY,XY,VY,W8a,X8a,Y8a,Z8a,a9a,e9a,k9a,o9a,aZ,p9a,FY,r9a,s9a,
        t9a,u9a,v9a,w9a,x9a,cZ,y9a,dZ,z9a,eZ,B9a,C9a,fZ,D9a,E9a,F9a,G9a,H9a,I9a,J9a,K9a,L9a,M9a,N9a,gZ,P9a,O9a,R9a,S9a,hZ,iZ,jZ,kZ,lZ,mZ,nZ,T9a,oZ,U9a,V9a,$9a,c$a,d$a,e$a,f$a,sZ,tZ,b$a,Z9a,g$a,qZ,W9a,i$a,pZ,rZ,X9a,Y9a,uZ,j$a,k$a,a$a,h$a,l$a,n$a,m$a,vZ,s$a,q$a,r$a,o$a,t$a,wZ,p$a,xZ,yZ,u$a,v$a,w$a,zZ,y$a,z$a,AZ,A$a,BZ,B$a,C$a,D$a,E$a,G$a,H$a,O$a,K$a,F$a,Q$a,R$a,L$a,M$a,J$a,N$a,DZ,I$a,P$a,X$a,V$a,U$a,T$a,S$a,EZ,Y$a,EY,FZ,GZ,HZ,Z$a,$$a,aab,IZ,bab,LY,cab,JZ,HY,IY,t8a,LZ,NZ,gab,hab,PZ,MZ,KZ,QZ,eab,dab,fab,RZ,jab,
        kab,iab,lab,GY,mab,OZ,nab,oab,pab,qab,SZ,rab,sab,tab,uab,J8a,K8a,TZ,vab,wab,xab,yab,UZ,Bab,zab,Cab,Eab,Aab,Gab,Iab,Hab,Kab,XZ,$Z,Nab,Mab,Rab,Pab,Sab,Uab,Oab,Qab,Lab,Vab,Wab,Xab,a_,Yab,A9a,Zab,$ab,b_,abb,bbb,cbb,dbb,ebb,d_,lbb,kbb,i_,mbb,jbb,pbb,qbb,rbb,tbb,ubb,vbb,wbb,xbb,ybb,Abb,Bbb,Cbb,zbb,l_,c_,Dbb,Ebb,j_,Gbb,sbb,k_,Hbb,Ibb,Lbb,Obb,Mbb,Nbb,Pbb,Jbb,Kbb,n_,Rbb,Tbb,Sbb,Ubb,Vbb,Qbb,Wbb,Xbb,m_,Ybb,Zbb,$bb,acb,dcb,ccb,bcb,o_,ecb,gcb,hcb,icb,s_,t_,Q9a,jcb,kcb,ncb,mcb,lcb,ocb,qcb,rcb,pcb,Fab,u_,tcb,ucb,
        vcb,zcb,ycb,Acb,Ccb,W$a,p_,xcb,wcb,Bcb,KY,CZ,WZ,Fcb,Ecb,Gcb,Hcb,Icb,Jcb,fcb,ZZ,YZ,Kcb,Lcb,Mcb,Dab,Ncb,Dcb,Jab,w_,x_,Pcb,y_,Qcb,Rcb,Scb,Tcb,Ucb,Vcb,Xcb,Wcb,Zcb,$cb,ddb,adb,cdb,edb,A_,idb,gdb,hdb,ldb,mdb,ndb,odb,pdb,z_,qdb,kdb,fdb,B_,rdb,bdb,sdb,C_,udb,vdb,wdb,tdb,D_,zdb,ydb,Cdb,Bdb,Adb,Ddb,Edb,E_,Fdb,Gdb,Kdb,Hdb,Idb,Jdb,Ldb,Mdb,Ndb,Pdb,Odb,Qdb,Rdb,Sdb,Udb,Wdb,Vdb,Xdb,Tdb,Ydb,$db,beb,Zdb,ceb,deb,feb,eeb,geb,aeb,I_,heb,ieb,jeb,leb,neb,oeb,qeb,seb,M_,ueb,veb,web,xeb,zeb,yeb,Ceb,u7a,N_,kY,Aeb,Beb,Deb,
        Q_,Feb,Eeb,Geb,Heb,Ieb,Leb,Jeb,Oeb,R_,Keb,Peb,S_,Teb,U_,V_,Ueb,T_,Veb,W_,Yeb,Xeb,Reb,Seb,Zeb,$eb,afb,Qeb,bfb,X_,cfb,Web,teb,P_,efb,lY,ffb,w7a,v7a,gfb,hfb,ifb,jfb,kfb,lfb,Z_,x7a,mfb,ofb,pfb,qfb,nfb,rfb,sfb,$_,tfb,ufb,vfb,wfb,a0,sFa,xfb,yfb,zfb,c0,Cfb,Dfb,d0,Ffb,Gfb,Efb,Bfb,e0,b0,Afb,h0,g0,Hfb,i0,f0,Lfb,Nfb,Pfb,Qfb,Sfb,Jfb,Ofb,Tfb,Kfb,Ufb,Vfb,Xfb,j0,Yfb,Wfb,m0,$fb,agb,l0,Mfb,Zfb,bgb,Rfb,Ifb,o0,hgb,egb,igb,fgb,dgb,jgb,cgb,mgb,p0,ngb,pgb,pK,rgb,sgb,tgb,ugb,t0,vgb,L6a,ygb,u0,G_,zgb,Bgb,wgb,EX,n0,Dgb,Egb,
        z0,Fbb,y0,q0,Hgb,Igb,Kgb,Jgb,Agb,w0,Lgb,GX,Mgb,V5a,Ogb,Ngb,scb,F_,B0,c6a,Pgb,T6a,Qgb,H_a,v0,Rgb,S5a,Sgb,T5a,Tgb,Vgb,Ggb,qgb,Xgb,Wgb,x0,r0,Ygb,C0,BX,$gb,ahb,YX,bhb,chb,dhb,R5a,A0,r_,xgb,ehb,Ocb,Cgb,k0,phb,lhb,rhb,jhb,shb,ihb,E0,FX,xhb,thb,vhb,uhb,zhb,H0,I0,Chb,Bhb,Ahb,K0,ohb,O0,Ehb,N0,J0,Ghb,Jhb,Khb,mhb,Hhb,R0,Lhb,nhb,Dhb,L0,Mhb,G0,Nhb,Ohb,Phb,U0,V0,Fhb,W0,X0,Qhb,M0,yhb,Rhb,Shb,Thb,Ihb,Uhb,P0,Vhb,Q0,Whb,Yhb,F0,Y0,whb,Zhb,$hb,T0,S0,aib,U7a,bib,cib,dib,Z0,$0,gib,jib,lib,fib,tib,uib,vib,wib,xib,yib,zib,
        Bib,Aib,a1,b1,c1,Cib,Dib,d1,cGa,Eib,Fib,e1,Gib,f1,g1,PK,Hib,zM,h1,oM,Iib,tM,TJa,Jib,sIa,Kib,QK,RK,i1,sKa,Lib,Mib,Nib,j1,Pib,Qib,k1,m1,n1,Tib,Uib,o1,Vib,Rib,Sib,Wib,Xib,Yib,Zib,$ib,p1,bjb,BDa,cL,cjb,djb,dL,ajb,dJ,ejb,fjb,gjb,q1,ijb,uJ,jjb,r1,s1,kjb,t1,ljb,l1,mjb,njb,IFa,u1,v1,ojb,w1,x1,pjb,y1,qjb,z1,A1,rjb,sjb,oGa,B1,tjb,vjb,ujb,C1,wjb,D1,E1,xjb,yjb,zjb,Ajb,Bjb,Cjb,Ejb,G1,Djb,Fjb,Gjb,Hjb,Ijb,Mjb,Jjb,Kjb,Ljb,Ojb,Qjb,Rjb,Sjb,Pjb,H1,Tjb,Ujb,Vjb,Wjb,Xjb,J1,Yjb,K1,L1,M1,Zjb,$jb,bkb,ckb,dkb,ekb,gkb,fkb,
        hkb,N1,O1,kkb,ikb,jkb,P1,mkb,nkb,Q1,R1,S1,T1,U1,pkb,V1,qkb,rkb,skb,W1,X1,Y1,tkb,ukb,vkb,ykb,xkb,Z1,zkb,Akb,Bkb,QHa,wkb,Dkb,Ekb,Gkb,aaa,ma;ba=function(a){return function(){return aaa[a].apply(this,arguments)}};
    g.ca=function(a,b){return aaa[a]=b};
    baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
    caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
    oa=function(a,b){if(b)a:{var c=g.ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ma(c,a,{configurable:!0,writable:!0,value:b})}};
    daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
        return a};
    pa=function(a){return a.raw=a};
    g.v=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
    eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
    g.ra=function(a){return a instanceof Array?a:eaa(g.v(a))};
    sa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
    g.x=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(va)va(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Pf=b.prototype};
    wa=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.Y=this.C=null};
    xa=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
    ya=function(a,b){a.C={SX:b,xZ:!0};a.j=a.K||a.G};
    g.z=function(a,b,c){a.j=c;return{value:b}};
    g.Aa=function(a){a.j=0};
    g.Ba=function(a,b,c){a.K=b;c!=void 0&&(a.G=c)};
    g.Ca=function(a,b,c){a.j=b;a.K=c||0};
    g.Da=function(a,b){a.K=b||0;b=a.C.SX;a.C=null;return b};
    g.Ea=function(a){a.Y=[a.C];a.K=0;a.G=0};
    g.Fa=function(a,b){var c=a.Y.splice(0)[0];(c=a.C=a.C||c)?c.xZ?a.j=a.K||a.G:c.Ia!=void 0&&a.G<c.Ia?(a.j=c.Ia,a.C=null):a.j=a.G:a.j=b};
    gaa=function(a){this.j=new wa;this.B=a};
    haa=function(a,b){xa(a.j);var c=a.j.D;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
        a.j.return(b);return Ia(a)};
    Ga=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.D=null,ya(a.j,h),Ia(a)}a.j.D=null;d.call(a.j,f);return Ia(a)};
    Ia=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,ya(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.xZ)throw b.SX;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
    iaa=function(a){this.next=function(b){xa(a.j);a.j.D?b=Ga(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ia(a));return b};
        this.throw=function(b){xa(a.j);a.j.D?b=Ga(a,a.j.D["throw"],b,a.j.Z):(ya(a.j,b),b=Ia(a));return b};
        this.return=function(b){return haa(a,b)};
        this[Symbol.iterator]=function(){return this}};
    jaa=function(a){function b(d){return a.next(d)}
        function c(d){return a.throw(d)}
        return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
            f(a.next())})};
    g.G=function(a){return jaa(new iaa(new gaa(a)))};
    g.Ja=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
    Ka=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
        e[Symbol.iterator]=function(){return e};
        return e};
    kaa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,IM:f}}return{i:-1,IM:void 0}};
    Ma=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
    Na=function(a){return a?a:Array.prototype.fill};
    Oa=function(a){return a?a:Array.prototype.copyWithin};
    laa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length-1;d>=0;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,IM:e}}return{i:-1,IM:void 0}};
    Qa=function(a){return a?a:function(b,c){return laa(this,b,c).i}};
    g.Va=function(a,b,c){a=a.split(".");c=c||g.Ua;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
    Xa=function(a,b){var c=g.Wa("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b};
    g.Wa=function(a,b){a=a.split(".");b=b||g.Ua;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b};
    ab=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"};
    g.bb=function(a){var b=ab(a);return b=="array"||b=="object"&&typeof a.length=="number"};
    g.db=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"};
    g.fb=function(a){return Object.prototype.hasOwnProperty.call(a,eb)&&a[eb]||(a[eb]=++maa)};
    naa=function(a,b,c){return a.call.apply(a.bind,arguments)};
    oaa=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
    g.ib=function(a,b,c){g.ib=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?naa:oaa;return g.ib.apply(null,arguments)};
    g.jb=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
    g.kb=function(){return Date.now()};
    g.lb=function(a,b){function c(){}
        c.prototype=b.prototype;a.Pf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
    qb=function(a){return a};
    paa=function(a){this.j=a};
    rb=function(a,b,c){this.D=a;this.C=b;this.fields=c||[];this.j=new Map};
    sb=function(a,b){rb.call(this,a,3,b)};
    tb=function(a,b){rb.call(this,a,2,b)};
    g.ub=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
    g.vb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.bb(d)?g.vb.apply(null,d):g.ub(d)}};
    g.I=function(){this.cz=this.cz;this.ao=this.ao};
    g.M=function(a,b){a.addOnDisposeCallback(g.jb(g.ub,b))};
    wb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,wb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)};
    xb=function(a,b){var c=wb.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(wb,this,d+a[e])};
    qaa=function(){};
    g.yb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
    g.zb=function(a){return a[a.length-1]};
    raa=function(a,b){var c=a.length,d=typeof a==="string"?a.split(""):a;for(--c;c>=0;--c)c in d&&b.call(void 0,d[c],c,a)};
    g.Cb=function(a,b,c){b=Bb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]};
    Bb=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
    g.Db=function(a,b,c){var d=a.length,e=typeof a==="string"?a.split(""):a;for(--d;d>=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
    g.Eb=function(a,b){return saa(a,b)>=0};
    taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0};
    g.Gb=function(a,b){b=saa(a,b);var c;(c=b>=0)&&g.Fb(a,b);return c};
    g.Fb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};
    g.Ib=function(a,b){b=Bb(a,b);b>=0&&g.Fb(a,b)};
    uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Fb(a,e)&&c++})};
    g.Jb=function(a){return Array.prototype.concat.apply([],arguments)};
    g.Kb=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
    g.Lb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.bb(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
    g.Nb=function(a,b,c,d){Array.prototype.splice.apply(a,Mb(arguments,1))};
    Mb=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
    vaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.db(e)?"o"+g.fb(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
    g.Qb=function(a,b,c){return waa(a,c||Ob,!1,b)};
    Rb=function(a,b){return waa(a,b,!0)};
    waa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);m>0?e=l+1:(f=l,h=!m)}return h?e:-e-1};
    g.Sb=function(a,b){a.sort(b||Ob)};
    xaa=function(a,b){var c=Ob;g.Sb(a,function(d,e){return c(b(d),b(e))})};
    g.Vb=function(a,b){if(!g.bb(a)||!g.bb(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
    Ob=function(a,b){return a>b?1:a<b?-1:0};
    yaa=function(a,b){return a===b};
    g.Xb=function(a,b,c){c=g.Qb(a,b,c);c<0&&g.Nb(a,-(c+1),0,b)};
    g.bc=function(a,b,c){var d={};(0,g.Yb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
        return d};
    zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
    Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
    Baa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
    Daa=function(a){var b=g.Wa("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ua.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Caa(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
        if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,cc[c])c=cc[c];else{c=String(c);if(!cc[c]){var f=/function\s+([^\(]+)/m.exec(c);cc[c]=f?f[1]:"[Anonymous]"}c=cc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,
        name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}};
    Caa=function(a,b){b||(b={});b[Eaa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Eaa(a)]&&(c+="\nCaused by: ",a.stack&&a.stack.indexOf(a.toString())==0||(c+=typeof a==="string"?a:a.message+"\n"),c+=Caa(a,b));return c};
    Eaa=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack};
    dc=function(a,b){return a.lastIndexOf(b,0)==0};
    Faa=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};
    g.ec=function(a){return/^[\s\xa0]*$/.test(a)};
    fc=function(a){if(!Gaa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(Haa,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(Iaa,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(Jaa,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(Kaa,"&quot;"));a.indexOf("'")!=-1&&(a=a.replace(Laa,"&#39;"));a.indexOf("\x00")!=-1&&(a=a.replace(Maa,"&#0;"));return a};
    g.hc=function(a,b){return a.indexOf(b)!=-1};
    ic=function(a,b){return g.hc(a.toLowerCase(),b.toLowerCase())};
    g.mc=function(a,b){var c=0;a=jc(String(a)).split(".");b=jc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(f[0].length==0&&h[0].length==0)break;c=lc(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||lc(f[2].length==0,h[2].length==0)||lc(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c};
    lc=function(a,b){return a<b?-1:a>b?1:0};
    g.nc=function(){var a=g.Ua.navigator;return a&&(a=a.userAgent)?a:""};
    tc=function(a){return pc||rc?sc?sc.brands.some(function(b){return(b=b.brand)&&g.hc(b,a)}):!1:!1};
    xc=function(a){return g.hc(g.nc(),a)};
    yc=function(){return pc||rc?!!sc&&sc.brands.length>0:!1};
    zc=function(){return yc()?!1:xc("Opera")};
    Naa=function(){return yc()?!1:xc("Trident")||xc("MSIE")};
    Oaa=function(){return yc()?tc("Microsoft Edge"):xc("Edg/")};
    Ac=function(){return xc("Firefox")||xc("FxiOS")};
    Cc=function(){return xc("Safari")&&!(Bc()||(yc()?0:xc("Coast"))||zc()||(yc()?0:xc("Edge"))||Oaa()||(yc()?tc("Opera"):xc("OPR"))||Ac()||xc("Silk")||xc("Android"))};
    Bc=function(){return yc()?tc("Chromium"):(xc("Chrome")||xc("CriOS"))&&!(yc()?0:xc("Edge"))||xc("Silk")};
    Paa=function(){return xc("Android")&&!(Bc()||Ac()||zc()||xc("Silk"))};
    Qaa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
        return function(c){return b[c.find(function(d){return d in b})]||""}};
    Raa=function(a){var b=g.nc();if(a==="Internet Explorer"){if(Naa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),c[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
        b=Qaa(c);switch(a){case "Opera":if(zc())return b(["Version","Opera"]);if(yc()?tc("Opera"):xc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(yc()?0:xc("Edge"))return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(Bc())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Ac()||a==="Safari"&&Cc()||a==="Android Browser"&&Paa()||a==="Silk"&&xc("Silk")?(b=c[2])&&b[1]||"":""};
    Saa=function(a){if(yc()&&a!=="Silk"){var b=sc.brands.find(function(c){return c.brand===a});
        if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Raa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
    Dc=function(){return pc||rc?!!sc&&!!sc.platform:!1};
    Taa=function(){return Dc()?sc.platform==="Android":xc("Android")};
    Hc=function(){return xc("iPhone")&&!xc("iPod")&&!xc("iPad")};
    Ic=function(){return Hc()||xc("iPad")||xc("iPod")};
    Jc=function(){return Dc()?sc.platform==="macOS":xc("Macintosh")};
    Uaa=function(){return Dc()?sc.platform==="Windows":xc("Windows")};
    Lc=function(a){Lc[" "](a);return a};
    Mc=function(a,b){try{return Lc(a[b]),!0}catch(c){}return!1};
    Waa=function(a,b){var c=Vaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
    g.Nc=function(a){return Waa(a,function(){return g.mc(Xaa,a)>=0})};
    Yaa=function(a){return g.Oc?"webkit"+a:a.toLowerCase()};
    Pc=function(a,b){g.yb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.j=null;a&&this.init(a,b)};
    Rc=function(a){return!(!a||!a[Zaa])};
    aba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Id=e;this.key=++$aa;this.removed=this.II=!1};
    Sc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Id=null};
    g.Tc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
    g.Uc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
    Xc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
    g.Yc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
    bba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
    g.Zc=function(a){for(var b in a)return b};
    cba=function(a){for(var b in a)return a[b]};
    g.ad=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
    g.bd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
    g.dd=function(a,b){return a!==null&&b in a};
    g.ed=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
    fd=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
    dba=function(a,b){return(b=fd(a,b))&&a[b]};
    g.gd=function(a){for(var b in a)return!1;return!0};
    g.eba=function(a){for(var b in a)delete a[b]};
    g.hd=function(a,b,c){return a!==null&&b in a?a[b]:c};
    g.id=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
    g.jd=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
    g.kd=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.kd(a[c]);return b};
    g.ld=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<fba.length;f++)c=fba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
    md=function(a){this.src=a;this.listeners={};this.j=0};
    g.nd=function(a,b){var c=b.type;c in a.listeners&&g.Gb(a.listeners[c],b)&&(Sc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.j--))};
    od=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.Id==d)return e}return-1};
    g.ud=function(a,b,c,d,e){if(d&&d.once)return td(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.ud(a,b[f],c,d,e);return null}c=vd(c);return Rc(a)?a.listen(b,c,g.db(d)?!!d.capture:!!d,e):gba(a,b,c,!1,d,e)};
    gba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.db(e)?!!e.capture:!!e,l=wd(a);l||(a[xd]=l=new md(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=hba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)iba||(e=h),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(jba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");kba++;return c};
    hba=function(){function a(c){return b.call(a.src,a.listener,c)}
        var b=lba;return a};
    td=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return null}c=vd(c);return Rc(a)?a.MF(b,c,g.db(d)?!!d.capture:!!d,e):gba(a,b,c,!0,d,e)};
    mba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)mba(a,b[f],c,d,e);else d=g.db(d)?!!d.capture:!!d,c=vd(c),Rc(a)?a.Pc(b,c,d,e):a&&(a=wd(a))&&(b=a.UE(b,c,d,e))&&Ad(b)};
    Ad=function(a){if(typeof a!=="number"&&a&&!a.removed){var b=a.src;if(Rc(b))g.nd(b.zm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(jba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);kba--;(c=wd(b))?(g.nd(c,a),c.j==0&&(c.src=null,b[xd]=null)):Sc(a)}}};
    jba=function(a){return a in Bd?Bd[a]:Bd[a]="on"+a};
    lba=function(a,b){if(a.removed)a=!0;else{b=new Pc(b,this);var c=a.listener,d=a.Id||a.src;a.II&&Ad(a);a=c.call(d,b)}return a};
    wd=function(a){a=a[xd];return a instanceof md?a:null};
    vd=function(a){if(typeof a==="function")return a;a[Cd]||(a[Cd]=function(b){return a.handleEvent(b)});
        return a[Cd]};
    g.Ed=function(){g.I.call(this);this.zm=new md(this);this.W6=this;this.lS=null};
    Fd=function(a,b,c,d){b=a.zm.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var l=h.listener,m=h.Id||h.src;h.II&&g.nd(a.zm,h);e=l.call(m,d)!==!1&&e}}return e&&!d.defaultPrevented};
    Gd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
    nba=function(a,b){a.D(b);a.B<100&&(a.B++,b.next=a.j,a.j=b)};
    Id=function(a){return function(){return a}};
    g.Jd=function(){};
    oba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
    Kd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
    Pd=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.Ua.clearTimeout(c);var e=arguments;c=g.Ua.setTimeout(function(){a.apply(b,e)},50)}};
    Rd=function(a,b){this.j=a===qba&&b||"";this.B=rba};
    Sd=function(a){return a instanceof Rd&&a.constructor===Rd&&a.B===rba?a.j:"type_error:Const"};
    Td=function(a){return new Rd(qba,a)};
    Xd=function(){if(Wd===void 0){var a=null,b=g.Ua.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:qb,createScript:qb,createScriptURL:qb})}catch(c){g.Ua.console&&g.Ua.console.error(c.message)}Wd=a}else Wd=a}return Wd};
    g.Yd=function(a){this.M0=a};
    g.Zd=function(a){return a instanceof g.Yd&&a.constructor===g.Yd?a.M0:"type_error:TrustedResourceUrl"};
    be=function(a){var b=Xd();a=b?b.createScriptURL(a):a;return new g.Yd(a,sba)};
    g.ce=function(a){this.O0=a};
    g.de=function(a){if(a instanceof g.ce)return a.O0;throw Error("");};
    ee=function(a){this.ue=a};
    fe=function(a){return new ee(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
    g.je=function(a,b){b=b===void 0?tba:b;a:if(b=b===void 0?tba:b,!(a instanceof g.ce)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ee&&d.ue(a)){a=new g.ce(a);break a}}a=void 0}return a||g.ie};
    ke=function(a){a instanceof g.ce?a=g.de(a):a=uba.test(a)?a:void 0;return a};
    g.oe=function(a){this.L0=a};
    pe=function(a){return a instanceof g.oe&&a.constructor===g.oe?a.L0:"type_error:SafeStyle"};
    Bba=function(a){if(a instanceof g.ce)return'url("'+a.toString().replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Rd)a=Sd(a);else{a=String(a);var b=a.replace(vba,"$1").replace(vba,"$1").replace(wba,"url");if(xba.test(b)){if(b=!yba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);e=="'"&&c?b=!b:e=='"'&&b&&(c=!c)}b=b&&c&&zba(a)}a=b?Aba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new xb("Value does not allow [{;}], got: %s.",[a]);return a};
    zba=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if(e=="]"){if(b)return!1;b=!0}else if(e=="["){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
    Aba=function(a){return a.replace(wba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
        b=g.je(d).toString();return c+f+b+f+e})};
    g.qe=function(a){this.K0=a};
    g.re=function(a){return a instanceof g.qe&&a.constructor===g.qe?a.K0:"type_error:SafeHtml"};
    Dba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=e instanceof g.qe?e:se(fc(String(e))),d.push(g.re(e).toString()))}
        var c=Cba;c=c instanceof g.qe?c:se(fc(String(c)));var d=[];a.forEach(b);return se(d.join(g.re(c).toString()))};
    Eba=function(a){return Dba(Array.prototype.slice.call(arguments))};
    se=function(a){var b=Xd();a=b?b.createHTML(a):a;return new g.qe(a,Fba)};
    te=function(){this.j=Gba[0].toLowerCase()};
    ue=function(a){this.N0=a};
    Hba=function(a){var b=Xd();return new ue(b?b.createScript(a):a)};
    xe=function(a){if(a instanceof ue)return a.N0;throw Error("");};
    Iba=function(a){return pe(a)};
    Jba=function(a){var b=g.Ja.apply(1,arguments);if(b.length===0)return be(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return be(c)};
    Kba=function(a){for(var b=g.Ja.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d])+a[d+1];if(/[<>]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.oe(c,ye)};
    Mba=function(a,b,c,d){a=Lba(a);b=b||g.Ua;c=c instanceof Rd?Sd(c):c||"";return d!==void 0?b.open(a,c,d):b.open(a,c)};
    Lba=function(a){a=ke(a);return a!==void 0?a:g.ie.toString()};
    g.ze=function(a,b,c){return Math.min(Math.max(a,b),c)};
    g.Ae=function(a,b){a%=b;return a*b<0?a+b:a};
    Be=function(a,b,c){return a+c*(b-a)};
    g.Ee=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?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=ke(b);b!==void 0&&(a.href=b)};
    Nba=function(a){var b="true".toString(),c=[new te];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof te)d=d.j;else throw Error("");return d}).every(function(d){return"data-loaded".indexOf(d)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
        a.setAttribute("data-loaded",b)};
    Ne=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);};
    g.Qe=function(a,b,c){var d=window;a=ke(a);return a!==void 0?d.open(a,b,c):null};
    Re=function(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
    Ve=function(a){var b=Re(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
    g.We=function(a,b){a.src=g.Zd(b);Ve(a)};
    Oba=function(a,b){return a.parseFromString(g.re(b),"text/xml")};
    g.Xe=function(a){return encodeURIComponent(String(a))};
    Ye=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
    Ze=function(a){return a=fc(a)};
    g.bf=function(a){return a==null?"":String(a)};
    cf=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
    df=function(a){var b=Number(a);return b==0&&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=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
    lf=function(a){return a?new ef(ff(a)):Tba||(Tba=new ef)};
    mf=function(a,b){return typeof b==="string"?a.getElementById(b):b};
    g.nf=function(a,b){return(b||document).getElementsByTagName(String(a))};
    g.sf=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.of(document,"*",a,b)};
    g.tf=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.of(c,"*",a,b)[0]||null}return a||null};
    g.of=function(a,b,c,d){a=d||a;b=b&&b!="*"?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,typeof b.split=="function"&&g.Eb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
    uf=function(a,b){g.Tc(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Uba.hasOwnProperty(d)?a.setAttribute(Uba[d],c):dc(d,"aria-")||dc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
    Vba=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Ke(a.clientWidth,a.clientHeight)};
    Xba=function(a){var b=Wba(a);a=a.parentWindow||a.defaultView;return new g.Ee(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
    Wba=function(a){return a.scrollingElement?a.scrollingElement:g.Oc||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
    vf=function(a){return a?a.parentWindow||a.defaultView:window};
    xf=function(a,b,c){var d=arguments,e=document,f=d[1],h=wf(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):uf(h,f));d.length>2&&Yba(e,h,d,2);return h};
    Yba=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)}
        for(;d<c.length;d++){var f=c[d];if(!g.bb(f)||g.db(f)&&f.nodeType>0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.db(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}g.Yb(h?g.Kb(f):f,e)}}};
    g.yf=function(a){return wf(document,a)};
    wf=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};
    g.Af=function(a){return document.createTextNode(String(a))};
    g.Bf=function(a,b){a.appendChild(b)};
    g.Cf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
    Gf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
    g.Hf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
    g.If=function(a){var b;if(g.Oc&&(b=a.parentElement))return b;b=a.parentNode;return g.db(b)&&b.nodeType==1?b:null};
    g.Jf=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
    ff=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
    g.Kf=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.Cf(a),a.appendChild(ff(a).createTextNode(String(b)))};
    $ba=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||Zba(a)):a.hasAttribute("tabindex")&&Zba(a)};
    Zba=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
    Mf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Lf(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Eb(e.className.split(/\s+/),c))},!0)};
    Lf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
    ef=function(a){this.j=a||g.Ua.document||document};
    Of=function(a){typeof g.Ua.setImmediate!=="function"||g.Ua.Window&&g.Ua.Window.prototype&&g.Ua.Window.prototype.setImmediate==g.Ua.setImmediate?(Nf||(Nf=aca()),Nf(a)):g.Ua.setImmediate(a)};
    aca=function(){var a=g.Ua.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!xc("Presto")&&(a=function(){var e=g.yf("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=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=(0,g.ib)(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(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.hX;c.hX=null;e()}};
            return function(e){d.next={hX:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ua.setTimeout(e,0)}};
    Qf=function(a){g.Ua.setTimeout(function(){throw a;},0)};
    Rf=function(){this.B=this.j=null};
    Sf=function(){this.next=this.scope=this.Bm=null};
    g.dg=function(a,b){bg||bca();cg||(bg(),cg=!0);cca.add(a,b)};
    bca=function(){if(g.Ua.Promise&&g.Ua.Promise.resolve){var a=g.Ua.Promise.resolve(void 0);bg=function(){a.then(dca)}}else bg=function(){Of(dca)}};
    dca=function(){for(var a;a=cca.remove();){try{a.Bm.call(a.scope)}catch(b){Qf(b)}nba(eca,a)}cg=!1};
    g.fg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Jd)try{var b=this;a.call(void 0,function(c){eg(b,2,c)},function(c){eg(b,3,c)})}catch(c){eg(this,3,c)}};
    fca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
    gg=function(a,b,c){var d=gca.get();d.C=a;d.B=b;d.context=c;return d};
    hg=function(a){if(a instanceof g.fg)return a;var b=new g.fg(g.Jd);eg(b,2,a);return b};
    ig=function(a){return new g.fg(function(b,c){c(a)})};
    g.ica=function(a,b,c){hca(a,b,c,null)||g.dg(g.jb(b,a))};
    jca=function(a){return new g.fg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.ica(e,b,c)})};
    lca=function(){var a,b,c=new g.fg(function(d,e){a=d;b=e});
        return new kca(c,a,b)};
    lg=function(a,b){b=gg(b,b);b.D=!0;jg(a,b);return a};
    mca=function(a,b){if(a.j==0)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);e&&(c.j==0&&d==1?mca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):nca(c),oca(c,e,3,b)))}a.C=null}else eg(a,3,b)};
    jg=function(a,b){a.B||a.j!=2&&a.j!=3||pca(a);a.D?a.D.next=b:a.B=b;a.D=b};
    qca=function(a,b,c,d){var e=gg(null,null,null);e.j=new g.fg(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
        e.B=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof mg?h(l):f(m)}catch(n){h(n)}}:h});
        e.j.C=a;jg(a,e);return e.j};
    eg=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,hca(c,a.Oea,a.Pea,a)||(a.N=c,a.j=b,a.C=null,pca(a),b!=3||c instanceof mg||rca(a,c)))};
    hca=function(a,b,c,d){if(a instanceof g.fg)return jg(a,gg(b||g.Jd,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.db(a))try{var f=a.then;if(typeof f==="function")return sca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
    sca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))}
        function h(m){l||(l=!0,c.call(e,m))}
        var l=!1;try{b.call(a,h,f)}catch(m){f(m)}};
    pca=function(a){a.K||(a.K=!0,g.dg(a.q8,a))};
    nca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
    oca=function(a,b,c,d){if(c==3&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,tca(b,c,d);else try{b.D?b.C.call(b.context):tca(b,c,d)}catch(e){uca.call(null,e)}nba(gca,b)};
    tca=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
    rca=function(a,b){a.G=!0;g.dg(function(){a.G&&uca.call(null,b)})};
    mg=function(a){wb.call(this,a)};
    kca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
    g.ng=function(a,b){g.Ed.call(this);this.Vi=a||1;this.FH=b||g.Ua;this.bX=(0,g.ib)(this.Aea,this);this.MZ=g.kb()};
    g.og=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.ib)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.ib)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.Ua.setTimeout(a,b||0)};
    pg=function(a,b){var c=null;return(new g.fg(function(d,e){c=g.og(function(){d(b)},a);
        c==-1&&e(Error("Failed to schedule timer."))})).Jl(function(d){g.Ua.clearTimeout(c);
        throw d;})};
    g.Cg=function(a){g.I.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.ng(this.flushInterval);this.j.listen("tick",this.hn,!1,this);g.M(this,this.j)};
    vca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.hn()};
    wca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
    xca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
    yca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/fic",{yd:3,xd:"ke"})};
    zca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/fiec",{yd:3,xd:"rk"},{yd:3,xd:"ke"},{yd:2,xd:"ec"})};
    Aca=function(a){this.j=a;this.j.RD("/client_streamz/bg/fil",{yd:3,xd:"rk"},{yd:3,xd:"ke"})};
    Bca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/fcc",{yd:2,xd:"ph"},{yd:3,xd:"ke"})};
    Cca=function(a){this.j=a;this.j.RD("/client_streamz/bg/fcd",{yd:2,xd:"ph"},{yd:3,xd:"ke"})};
    Dca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/fsc",{yd:3,xd:"rk"},{yd:3,xd:"ke"})};
    Eca=function(a){this.j=a;this.j.RD("/client_streamz/bg/fsl",{yd:3,xd:"rk"},{yd:3,xd:"ke"})};
    Fca=function(a){this.j=a;this.j.RD("/client_streamz/bg/wrl",{yd:3,xd:"mn"},{yd:2,xd:"ac"},{yd:2,xd:"sc"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
    Gca=function(a){this.j=a;this.j.RD("/client_streamz/bg/el",{yd:3,xd:"en"},{yd:3,xd:"bk"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
    Hca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/cec",{yd:2,xd:"ec"},{yd:3,xd:"bk"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
    Ica=function(a){this.j=a;this.j.Vj("/client_streamz/bg/po/csc",{yd:2,xd:"cs"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
    Jca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/po/ctav",{yd:3,xd:"av"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
    Kca=function(a){this.j=a;this.j.Vj("/client_streamz/bg/po/cwsc",{yd:3,xd:"su"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
    Dg=function(){throw Error("Invalid UTF8");};
    Lca=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b};
    Pca=function(a){var b=!1;b=b===void 0?!1:b;if(Mca){if(b&&(Nca?!a.h$():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Oca||(Oca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(f<128)d[c++]=f;else{if(f<2048)d[c++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e<a.length){var h=a.charCodeAt(++e);if(h>=56320&&h<=57343){f=(f-55296)*1024+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};
    Qca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")};
    Rca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
    g.Eg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
    g.Fg=function(a,b){b===void 0&&(b=0);Sca();b=Tca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
    g.Gg=function(a,b){if(Uca&&!b)a=g.Ua.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);f>255&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Fg(c,b)}return a};
    Wca=function(a){var b=[];Vca(a,function(c){b.push(c)});
        return b};
    Hg=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.hc("=.",a[b-1])&&(c=g.hc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Vca(a,function(f){d[e++]=f});
        return e!==c?d.subarray(0,e):d};
    Vca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Ig[n];if(p!=null)return p;if(!g.ec(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
        Sca();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(l===64&&e===-1)break;b(e<<2|f>>4);h!=64&&(b(f<<4&240|h>>2),l!=64&&b(h<<6&192|l))}};
    Sca=function(){if(!Ig){Ig={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Tca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];Ig[f]===void 0&&(Ig[f]=e)}}}};
    Yca=function(a){if(!Xca)return g.Fg(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)};
    $ca=function(a){return Zca[a]||""};
    bda=function(a){if(!Xca)return Hg(a);ada.test(a)&&(a=a.replace(ada,$ca));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
    Jg=function(a){return cda&&a!=null&&a instanceof Uint8Array};
    dda=function(a){if(a!==Kg)throw Error("illegal external caller");};
    Lg=function(a,b){dda(b);this.j=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");};
    Mg=function(){return eda||(eda=new Lg(null,Kg))};
    fda=function(a){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=Yca(b)};
    Og=function(a){return new Uint8Array(Ng(a)||0)};
    Ng=function(a){dda(Kg);var b=a.j;b=b==null||Jg(b)?b:typeof b==="string"?bda(b):null;return b==null?b:a.j=b};
    gda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
    Pg=function(){return Error("Failed to read varint, encoding is invalid.")};
    hda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
    Qg=function(a){if(typeof a==="string")return{buffer:bda(a),jx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),jx:!1};if(a.constructor===Uint8Array)return{buffer:a,jx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),jx:!1};if(a.constructor===Lg)return{buffer:Ng(a)||new Uint8Array(0),jx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),jx:!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");
    };
    Zg=function(){return typeof BigInt==="function"};
    ch=function(a){var b=a<0;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.v($g(c,a)),b=c.next().value,a=c.next().value,c=b);ah=c>>>0;bh=a>>>0};
    ida=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a};
    dh=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Zg()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=Math.floor(a/1E7),a%=1E7),c>=1E7&&(b+=Math.floor(c/1E7),c%=1E7),c=b+jda(c)+jda(a));return c};
    jda=function(a){a=String(a);return"0000000".slice(a.length)+a};
    kda=function(){var a=ah,b=bh;b&2147483648?Zg()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.v($g(a,b)),a=b.next().value,b=b.next().value,a="-"+dh(a,b)):a=dh(a,b);return a};
    eh=function(a){if(a.length<16)ch(Number(a));else if(Zg())a=BigInt(a),ah=Number(a&BigInt(4294967295))>>>0,bh=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");bh=ah=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)),bh*=1E6,ah=ah*1E6+d,ah>=4294967296&&(bh+=Math.trunc(ah/4294967296),bh>>>=0,ah>>>=0);b&&(b=g.v($g(ah,bh)),a=b.next().value,b=b.next().value,ah=a,bh=b)}};
    $g=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
    fh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
    hh=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(d<32&&h&128);d>32&&(c|=(h&127)>>4);for(d=3;d<32&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;gh(a,f);if(h<128)return ida(b>>>0,c>>>0);throw Pg();};
    gh=function(a,b){a.j=b;if(b>a.C)throw hda(a.C,b);};
    ih=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 Pg();gh(a,c);return e};
    jh=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];gh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
    lh=function(a){var b=jh(a);return jh(a)*4294967296+(b>>>0)};
    mh=function(a){var b=jh(a),c=jh(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
    Bh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if((f&128)===0)return gh(a,c),!!(b&127)}throw Pg();};
    lda=function(a,b){if(b<0)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw hda(b,a.C-c);a.j=d;return c};
    nda=function(a,b){if(b==0)return Mg();var c=lda(a,b);a.vI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):mda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?Mg():new Lg(c,Kg)};
    Dh=function(a,b){if(Ch.length){var c=Ch.pop();c.init(a,void 0,void 0,b);a=c}else a=new fh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;oda(this,b)};
    oda=function(a,b){b=b===void 0?{}:b;a.XO=b.XO===void 0?!1:b.XO};
    pda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=ih(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw gda(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
    Eh=function(a){switch(a.B){case 0:a.B!=0?Eh(a):Bh(a.j);break;case 1:a=a.j;gh(a,a.j+8);break;case 2:if(a.B!=2)Eh(a);else{var b=ih(a.j)>>>0;a=a.j;gh(a,a.j+b)}break;case 5:a=a.j;gh(a,a.j+4);break;case 3:b=a.D;do{if(!pda(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}Eh(a)}while(1);break;default:throw gda(a.B,a.C);}};
    Fh=function(a,b,c){var d=a.j.C,e=ih(a.j)>>>0,f=a.j.j+e,h=f-d;h<=0&&(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};
    Ih=function(a){var b=ih(a.j)>>>0;a=a.j;var c=lda(a,b);a=a.B;if(qda){var d=a,e;(e=Gh)||(e=Gh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(Hh===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Hh=!0}catch(p){Hh=!1}}!Hh&&(Gh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],l<128?c.push(l):l<224?f>=b?Dg():(m=a[f++],l<194||(m&192)!==128?(f--,Dg()):c.push((l&31)<<6|m&63)):
        l<240?f>=b-1?Dg():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,Dg()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?Dg():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,Dg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Dg(),c.length>=8192&&(h=Lca(h,c),c.length=0);f=Lca(h,c)}return f};
    rda=function(a){var b=ih(a.j)>>>0;return nda(a.j,b)};
    sda=function(a,b){this.B=a>>>0;this.j=b>>>0};
    uda=function(a){if(!a)return tda||(tda=new sda(0,0));if(!/^\d+$/.test(a))return null;eh(a);return new sda(ah,bh)};
    vda=function(a,b){this.B=a>>>0;this.j=b>>>0};
    xda=function(a){if(!a)return wda||(wda=new vda(0,0));if(!/^-?\d+$/.test(a))return null;eh(a);return new vda(ah,bh)};
    Jh=function(){this.j=[]};
    yda=function(a,b,c){for(;c>0||b>127;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
    Kh=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
    zda=function(a,b){if(b>=0)Kh(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
    Lh=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)};
    Ada=function(){this.C=[];this.B=0;this.j=new Jh};
    Mh=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)};
    Nh=function(a,b,c){Kh(a.j,b*8+c)};
    Bda=function(a,b,c){c!=null&&(typeof c==="string"&&uda(c),Nh(a,b,1),typeof c==="number"?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,ah=b,bh=c,Lh(a,ah),Lh(a,bh)):(c=uda(c),a=a.j,b=c.j,Lh(a,c.B),Lh(a,b)))};
    Oh=function(a,b,c){Nh(a,b,2);Kh(a.j,c.length);Mh(a,a.j.end());Mh(a,c)};
    Ph=function(a,b,c,d){this.PM=a;this.QM=b;this.j=c;this.B3=d};
    Qh=function(a){return Array.prototype.slice.call(a)};
    Rh=function(a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():a};
    Sh=function(a,b,c){return c?a|b:a&~b};
    Uh=function(a){Th(a,34);return a};
    Cda=function(a,b){Vh(b,(a|0)&-14591)};
    Wh=function(a,b){Vh(b,(a|34)&-14557)};
    Dda=function(a){a=a>>14&1023;return a===0?536870912:a};
    Xh=function(a){return!(!a||typeof a!=="object"||a.A$!==Eda)};
    Yh=function(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object};
    pi=function(a,b,c){if(a!=null)if(typeof a==="string")a=a?new Lg(a,Kg):Mg();else if(a.constructor!==Lg)if(Jg(a))a=a.length?new Lg(c?a:new Uint8Array(a),Kg):Mg();else{if(!b)throw Error();a=void 0}return a};
    ri=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=qi(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Vh(a,d|1);return!0};
    si=function(a){if(a&2)throw Error();};
    Fda=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();};
    Gda=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();};
    ti=function(a,b,c){this.C=0;this.j=a;this.B=b;this.D=c};
    Hda=function(a,b){(b=ui?b[ui]:void 0)&&(a[ui]=Qh(b))};
    Ida=function(){};
    Jda=function(){var a=Error();Baa(a,"incident");Qf(a)};
    vi=function(a){a=Error(a);Baa(a,"warning");return a};
    wi=function(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
    Kda=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)};
    Lda=function(a){return a.displayName||a.name||"unknown type name"};
    Mda=function(a){if(typeof a!=="boolean")throw Error("Expected boolean but got "+ab(a)+": "+a);return a};
    Nda=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
    xi=function(a){var b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:Oda.test(a)};
    yi=function(a){if(!Number.isFinite(a))throw vi("enum");return a|0};
    zi=function(a){return a==null?a:Number.isFinite(a)?a|0:void 0};
    Pda=function(a){if(typeof a!=="number")throw vi("int32");if(!Number.isFinite(a))throw vi("int32");return a|0};
    Ai=function(a){return a==null?a:Pda(a)};
    Bi=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0};
    Ci=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a>>>0:void 0};
    Rda=function(a,b){b=!!b;if(!xi(a))throw vi("int64");return typeof a==="string"?Di(a):b?Qda(a):Ei(a)};
    Fi=function(a){return a==null?a:Rda(a)};
    Gi=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467};
    Sda=function(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337};
    Tda=function(a){if(a<0){ch(a);var b=dh(ah,bh);a=Number(b);return Number.isSafeInteger(a)?a:b}if(Gi(String(a)))return a;ch(a);return bh*4294967296+(ah>>>0)};
    Ei=function(a){xi(a);a=Math.trunc(a);Number.isSafeInteger(a)||(ch(a),a=ida(ah,bh));return a};
    Hi=function(a){xi(a);a=Math.trunc(a);return a>=0&&Number.isSafeInteger(a)?a:Tda(a)};
    Qda=function(a){xi(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Sda(b)?a=b:(ch(a),a=kda())}return a};
    Di=function(a){xi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));Sda(a)||(eh(a),a=kda());return a};
    Ii=function(a){xi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));Gi(a)||(eh(a),a=dh(ah,bh));return a};
    Uda=function(a){if(a==null)return a;if(xi(a)){if(typeof a==="string")return Ii(a);if(typeof a==="number")return Hi(a)}};
    Vda=function(a){if(a==null||typeof a=="string"||Jg(a)||a instanceof Lg)return a};
    Ji=function(a){if(typeof a!=="string")throw Error();return a};
    $i=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
    aj=function(a){return a==null||typeof a==="string"?a:void 0};
    bj=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Lda(b)+" but got "+(a&&Lda(a.constructor)));return a};
    dj=function(a,b,c,d){if(a!=null&&typeof a==="object"&&a.KK===cj)return a;if(!Array.isArray(a))return c?d&2?(a=b[Wda])?b=a:(a=new b,Uh(a.oa),b=b[Wda]=a):b=new b:b=void 0,b;var e=c=qi(a);e===0&&(e|=d&32);e|=d&2;e!==c&&Vh(a,e);return new b(a)};
    fj=function(a,b){ej=b;a=new a(b);ej=void 0;return a};
    hj=function(a){switch(typeof a){case "boolean":return gj||(gj=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Xda||(Xda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
    R=function(a,b,c){a==null&&(a=ej);ej=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=qi(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(Yh(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<<
        14}}}Vh(a,d);return a};
    ij=function(){this.j=new Map};
    Yda=function(a){return a};
    kj=function(a,b,c,d){c=c===void 0?Yda:c;d=d===void 0?Yda:d;var e=jj.call(this)||this;var f=qi(a);f|=64;Vh(a,f);e.xI=f;e.JM=b;e.EF=c;e.nU=e.JM?Zda:d;for(var h=0;h<a.length;h++){var l=a[h],m=c(l[0],!1,!0),n=l[1];b?n===void 0&&(n=null):n=d(l[1],!1,!0,void 0,void 0,f);jj.prototype.set.call(e,m,n)}return e};
    lj=function(a){if(a.xI&2)throw Error("Cannot mutate an immutable Map");};
    bea=function(a,b){b=b===void 0?$da:b;if(a.size!==0)return aea(a,b)};
    aea=function(a,b){b=b===void 0?$da:b;var c=[];a=jj.prototype.entries.call(a);for(var d;!(d=a.next()).done;)d=d.value,d[0]=b(d[0]),d[1]=b(d[1]),c.push(d);return c};
    Zda=function(a,b,c,d,e,f){b&&bj(a,d);a=dj(a,d,c,f);e&&(a=mj(a));return a};
    $da=function(a){return a};
    cea=function(a){return[a,this.get(a)]};
    eea=function(a,b){return dea(b)};
    dea=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(ri(a,void 0,0))return}else{if(Jg(a))return Yca(a);if(a instanceof Lg)return fda(a);if(a instanceof kj)return bea(a)}}return a};
    fea=function(a,b,c){var d=Qh(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Hda(d,a);return d};
    oj=function(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=ri(a,void 0,0)?void 0:e&&qi(a)&2?a:nj(a,b,c,d!==void 0,e);else if(Yh(a)){var f={},h;for(h in a)f[h]=oj(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
    nj=function(a,b,c,d,e){var f=d||c?qi(a):0;d=d?!!(f&32):void 0;for(var h=Qh(a),l=0;l<h.length;l++)h[l]=oj(h[l],b,c,d,e);c&&(Hda(h,a),c(f,h));return h};
    hea=function(a){return oj(a,gea,void 0,void 0,!1)};
    gea=function(a){return a.KK===cj?a.toJSON():a instanceof kj?bea(a,hea):dea(a)};
    pj=function(a,b,c){c=c===void 0?Wh:c;if(a!=null){if(cda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=qi(a);d&2||(b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16))),a=b?Vh(a,(d|34)&-12293):nj(a,pj,d&4?Wh:c,!0,!0));return a}a.KK===cj?(c=a.oa,d=Fj(c),a=d&2?a:fj(a.constructor,Gj(c,d,!0))):a instanceof kj&&!(a.xI&2)&&(c=Uh(aea(a,pj)),a=new kj(c,a.JM,a.EF,a.nU));return a}};
    Gj=function(a,b,c){var d=c||b&2?Wh:Cda,e=!!(b&32);a=fea(a,b,function(f){return pj(f,e,d)});
        Th(a,32|(c?2:0));return a};
    mj=function(a){var b=a.oa,c=Fj(b);return c&2?fj(a.constructor,Gj(b,c,!1)):a};
    jea=function(a,b,c,d){if(!(4&b))return!0;if(c==null)return!1;!d&&c===0&&(4096&b||8192&b)&&(a.constructor[iea]=(a.constructor[iea]|0)+1)<5&&Jda();return c===0?!1:!(c&b)};
    Ij=function(a,b){a=a.oa;return Hj(a,Fj(a),b)};
    kea=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]};
    Hj=function(a,b,c,d){if(c===-1)return null;var e=Dda(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],d!=null)){if(kea(a,b,e,c)&&Jj!=null){var h;a=(h=lea)!=null?h:lea={};h=a[Jj]||0;h>=4||(a[Jj]=h+1,Jda())}return d}return kea(a,b,e,c)}};
    Lj=function(a,b,c){var d=a.oa,e=Fj(d);si(e);Kj(d,e,b,c);return a};
    Kj=function(a,b,c,d,e){var f=Dda(b);if(c>=f||e&&!mea){var h=b;if(b&256)e=a[a.length-1];else{if(d==null)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);h!==b&&Vh(a,h);return h}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};
    Mj=function(a,b,c){return nea(a,b,c,!1)!==void 0};
    Pj=function(a,b,c,d,e){var f=b&2,h=Hj(a,b,c,e);Array.isArray(h)||(h=Nj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=qi(h);n!==0||!m||f||l?n&1||(n|=1,Vh(h,n)):(n|=33,Vh(h,n));f?(a=!1,n&2||(Uh(h),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Qh(h),d=1,m&&!l&&(d|=32),Vh(h,d),Kj(a,b,c,h,e)):l&&n&32&&!f&&Oj(h,32));return h};
    Tj=function(a,b,c,d,e,f){var h=a.oa,l=Fj(h);d=2&l?1:d;f=!!f;var m=oea(h,l,b,e),n=qi(m);if(jea(a,n,void 0,f)){if(4&n||Object.isFrozen(m))m=Qh(m),n=Qj(n,l),l=Kj(h,l,b,m,e);for(var p=a=0;a<m.length;a++){var q=c(m[a]);q!=null&&(m[p++]=q)}p<a&&(m.length=p);n=pea(n,l);n=Sh(n,20,!0);n=Sh(n,4096,!1);n=Sh(n,8192,!1);Vh(m,n);2&n&&Object.freeze(m)}Rj(n)||(c=n,n=(a=d===1||d===4&&!!(32&n))?Sh(n,2,!0):Sj(n,l,f),n!==c&&Vh(m,n),a&&Object.freeze(m));d===2&&Rj(n)&&(m=Qh(m),n=Qj(n,l),n=Sj(n,l,f),Vh(m,n),Kj(h,l,b,m,
        e));return m};
    oea=function(a,b,c,d){a=Hj(a,b,c,d);return Array.isArray(a)?a:Nj};
    pea=function(a,b){a===0&&(a=Qj(a,b));return a=Sh(a,1,!0)};
    Rj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
    qea=function(a){return pi(a,!0,!0)};
    rea=function(a){return pi(a,!0,!1)};
    Uj=function(a,b){a=a.oa;var c=Fj(a),d=Hj(a,c,b),e=pi(d,!0,!!(c&34));e!=null&&e!==d&&Kj(a,c,b,e);return e==null?Mg():e};
    tea=function(a,b,c){var d=a.oa,e=Fj(d);si(e);if(b==null)return Kj(d,e,3),a;if(!Array.isArray(b))throw vi();var f=qi(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&(void 0===sea||!1);if(jea(a,f))for(f=21,l&&(b=Qh(b),h=0,f=Qj(f,e),f=Sj(f,e,!0)),l=0;l<b.length;l++)b[l]=c(b[l]);m&&(b=Qh(b),h=0,f=Qj(f,e),f=Sj(f,e,!0));f!==h&&Vh(b,f);Kj(d,e,3,b);return a};
    Vj=function(a,b,c,d){var e=a.oa,f=Fj(e);si(f);Kj(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a};
    Xj=function(a,b,c,d,e){Wj(a.oa,b,c,d,e);return a};
    Wj=function(a,b,c,d,e){var f=Fj(a);si(f);a=Pj(a,f,b,2);b=qi(a);d=c(d,!!(4&b)&&!!(4096&b));e!=void 0?a.splice(e,0,d):a.push(d)};
    uea=function(a){return a};
    vea=function(a,b,c,d,e,f){si(Fj(a.oa));b=f(a,b,2,void 0,!0);Gda(b,d);f=qi(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
    bk=function(a,b,c,d){var e=a.oa,f=Fj(e);si(f);if(d==null){var h=Yj(e);if(Zj(h,e,f,c)===b)h.set(c,0);else return a}else f=ak(e,f,c,b);Kj(e,f,b,d);return a};
    ck=function(a,b,c,d){var e=Fj(a);e=ak(a,e,c,b);Kj(a,e,b,d)};
    dk=function(a,b,c){a=a.oa;return Zj(Yj(a),a,Fj(a),b)===c?c:-1};
    Yj=function(a){if(ek){var b;return(b=a[fk])!=null?b:a[fk]=new Map}if(fk in a)return a[fk];b=new Map;Object.defineProperty(a,fk,{value:b});return b};
    ak=function(a,b,c,d){c.includes(d);var e=Yj(a),f=Zj(e,a,b,c);f!==d&&(f&&(b=Kj(a,b,f)),e.set(c,d));return b};
    Zj=function(a,b,c,d){var e=a.get(d);if(e!=null)return e;for(var f=e=0;f<d.length;f++){var h=d[f];Hj(b,c,h)!=null&&(e!==0&&(c=Kj(b,c,e)),e=h)}a.set(d,e);return e};
    gk=function(a,b,c,d){var e=Fj(a),f=Hj(a,e,c,d),h;if(f!=null&&f.KK===cj)return b=mj(f),b!==f&&Kj(a,e,c,b,d),b.oa;if(Array.isArray(f)){var l=qi(f);l&2?h=Gj(f,l,!1):h=f;h=R(h,b[0],b[1])}else h=R(void 0,b[0],b[1]);h!==f&&Kj(a,e,c,h,d);return h};
    nea=function(a,b,c,d){a=a.oa;var e=Fj(a),f=Hj(a,e,c,d);b=dj(f,b,!1,e);b!==f&&b!=null&&Kj(a,e,c,b,d);return b};
    g.hk=function(a,b,c,d){d=d===void 0?!1:d;b=nea(a,b,c,d);if(b==null)return b;a=a.oa;var e=Fj(a);if(!(e&2)){var f=mj(b);f!==b&&(b=f,Kj(a,e,c,b,d))}return b};
    wea=function(a,b,c,d,e,f,h){var l=!!(2&b),m=l?1:2;f=!!f;h&&(h=!l);l=oea(a,b,d,e);var n=qi(l),p=!!(4&n);if(!p){n=pea(n,b);var q=l,r=b,t=!!(2&n);t&&(r=Sh(r,2,!0));for(var u=!t,w=!0,A=0,C=0;A<q.length;A++){var E=dj(q[A],c,!1,r);if(E instanceof c){if(!t){var H=!!(qi(E.oa)&2);u&&(u=!H);w&&(w=H)}q[C++]=E}}C<A&&(q.length=C);n=Sh(n,4,!0);n=Sh(n,16,w);n=Sh(n,8,u);Vh(q,n);t&&Object.freeze(q)}if(h&&!(8&n||!l.length&&(m===1||m===4&&32&n))){Rj(n)&&(l=Qh(l),n=Qj(n,b),b=Kj(a,b,d,l,e));c=l;h=n;for(q=0;q<c.length;q++)n=
        c[q],r=mj(n),n!==r&&(c[q]=r);h=Sh(h,8,!0);h=Sh(h,16,!c.length);Vh(c,h);n=h}Rj(n)||(c=n,n=(h=m===1||m===4&&!!(32&n))?Sh(n,!l.length||16&n&&(!p||32&n)?2:2048,!0):Sj(n,b,f),n!==c&&Vh(l,n),h&&Object.freeze(l));m===2&&Rj(n)&&(l=Qh(l),n=Qj(n,b),n=Sj(n,b,f),Vh(l,n),Kj(a,b,d,l,e));return l};
    xea=function(a,b){a=a.oa;var c=Fj(a);return wea(a,c,b,3,void 0,!1,!(2&c))};
    ik=function(a,b,c,d){d!=null?bj(d,b):d=void 0;return Lj(a,c,d)};
    jk=function(a,b,c,d,e){e!=null?bj(e,b):e=void 0;return bk(a,c,d,e)};
    kk=function(a,b,c,d){var e=a.oa,f=Fj(e);si(f);if(d==null)return Kj(e,f,c),a;if(!Array.isArray(d))throw vi();for(var h=qi(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&(void 0===sea||!1),q=!0,r=!0,t=0;t<d.length;t++){var u=d[t];bj(u,b);m||(u=!!(qi(u.oa)&2),q&&(q=!u),r&&(r=u))}m||(h=Sh(h,5,!0),h=Sh(h,8,q),h=Sh(h,16,r));if(p||n&&h!==l)d=Qh(d),l=0,h=Qj(h,f),h=Sj(h,f,!0);h!==l&&Vh(d,h);Kj(e,f,c,d);return a};
    Qj=function(a,b){a=Sh(a,2,!!(2&b));a=Sh(a,32,!0);return a=Sh(a,2048,!1)};
    Sj=function(a,b,c){32&b&&c||(a=Sh(a,32,!1));return a};
    yea=function(a,b,c,d,e,f,h){a=a.oa;var l=Fj(a);si(l);b=wea(a,l,c,b,f,!0);f=d!=null?bj(d,c):new c;h&&(Gda(b,e),bj(d,c));e!=void 0?b.splice(e,h,f):b.push(f);qi(f.oa)&2?Oj(b,8):Oj(b,16)};
    lk=function(a,b,c,d,e){yea(a,b,c,d,e);return a};
    Mk=function(a,b){a=Ij(a,b);var c;a==null?c=a:xi(a)?typeof a==="number"?c=Ei(a):c=Di(a):c=void 0;return c};
    zea=function(a){a=Ij(a,1);var b=b===void 0?!1:b;b=a==null?a:xi(a)?typeof a==="string"?Di(a):b?Qda(a):Ei(a):void 0;return b};
    Nk=function(a,b){return a!=null?a:b};
    Ok=function(a,b){return aj(Ij(a,b))};
    Pk=function(a,b,c){c=c===void 0?0:c;a=Bi(Ij(a,b));return Nk(a,c)};
    Qk=function(a,b){var c=c===void 0?0:c;return Nk(Ci(Ij(a,b)),c)};
    Aea=function(a,b){var c=c===void 0?0:c;return Nk(Mk(a,b),c)};
    Rk=function(a,b){var c=c===void 0?0:c;a=Ij(a,b);var d;a==null?d=a:xi(a)?typeof a==="number"?d=Hi(a):d=Ii(a):d=void 0;return Nk(d,c)};
    Bea=function(a,b){var c=c===void 0?0:c;a=a.oa;var d=Fj(a),e=Hj(a,d,b),f=Kda(e);f!=null&&f!==e&&Kj(a,d,b,f);return Nk(f,c)};
    Sk=function(a,b){var c=c===void 0?"":c;return Nk(Ok(a,b),c)};
    Tk=function(a,b){var c=0;c=c===void 0?0:c;return Nk(zi(Ij(a,b)),c)};
    Cea=function(a,b,c,d,e){return Tj(a,b,aj,c,d,e)};
    Dea=function(a,b,c,d,e){return Tj(a,b,zi,c,d,e)};
    Eea=function(a,b,c){a=Dea(a,b,3,void 0,!0);Fda(a,c);return a[c]};
    Uk=function(a,b,c){return Lj(a,b,c==null?c:Mda(c))};
    Vk=function(a,b,c){return Lj(a,b,Ai(c))};
    Wk=function(a,b,c){if(c!=null){if(typeof c!=="number")throw vi("uint32");if(!Number.isFinite(c))throw vi("uint32");c>>>=0}Lj(a,b,c)};
    Xk=function(a,b,c){return Lj(a,b,Fi(c))};
    Yk=function(a,b,c){if(c!=null){var d=!!d;if(!xi(c))throw vi("uint64");typeof c==="string"?c=Ii(c):d?(xi(c),c=Math.trunc(c),c>=0&&Number.isSafeInteger(c)?c=String(c):(d=String(c),Gi(d)?c=d:(ch(c),c=dh(ah,bh)))):c=Hi(c)}Lj(a,b,c)};
    Zk=function(a,b,c){return Lj(a,b,wi(c))};
    S=function(a,b,c){return Lj(a,b,$i(c))};
    $k=function(a,b,c){return Vj(a,b,$i(c),"")};
    al=function(a,b,c){return Lj(a,b,pi(c,!1,!1))};
    T=function(a,b,c){return Lj(a,b,c==null?c:yi(c))};
    bl=function(a,b,c,d){bk(a,b,c,d==null?d:yi(d))};
    Fea=function(a){return a};
    cl=function(a){return a};
    Jea=function(a,b,c,d){return Gea(a,b,c,d,Hea,Iea)};
    Mea=function(a,b,c,d){return Gea(a,b,c,d,Kea,Lea)};
    Gea=function(a,b,c,d,e,f){if(!c.length&&!d)return 0;for(var h=0,l=0,m=0,n=0,p=0,q=c.length-1;q>=0;q--){var r=c[q];d&&q===c.length-1&&r===d||(n++,r!=null&&m++)}if(d)for(var t in d)q=+t,isNaN(q)||(p+=Nea(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,w=c.length-1;w>=0;w--){var A=c[w];if(!(A==null||d&&w===c.length-1&&A===d)){A=w-b;var C=e(A,t)+f(q,r,u);C<n&&(a=1+A,n=C);q++;t--;u+=Nea(A);r=Math.max(r,A)}}b=e(0,0)+f(q,r,u);b<n&&(a=0,n=b);if(d){q=l;r=h;u=p;t=m;for(var E in d)d=+E,isNaN(d)||
    d>=1024||(q--,t++,u-=E.length,h=e(d,t)+f(q,r,u),h<n&&(a=1+d,n=h))}return a};
    Lea=function(a,b,c){return c+a*3+(a>1?a-1:0)};
    Kea=function(a,b){return(a>1?a-1:0)+(a-b)*4};
    Iea=function(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b};
    Hea=function(a){return 40+4*a};
    Nea=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2};
    U=function(a,b,c){this.oa=R(a,b,c)};
    Oea=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Th(b,32);return fj(a,b)};
    fl=function(a){var b=dl?a.oa:nj(a.oa,gea,void 0,void 0,!1);var c=!dl;var d=Pea?void 0:a.constructor.yb;var e=Fj(c?a.oa:b);if(a=b.length){var f=b[a-1],h=Yh(f);h?a--:f=void 0;var l=+!!(e&512)-1,m=a-l,n=!!el&&mea&&!(e&512),p;e=(p=el)!=null?p:cl;e=n?e(m,l,b,f):m;p=(m=n&&m!==e)?Array.prototype.slice.call(b,0,a):b;if(h||m){b:{var q=p;var r=f;h={};n=!1;if(m)for(var t=Math.max(0,e+l);t<q.length;t++){var u=q[t],w=t-l;u==null||ri(u,d,w)||Xh(u)&&u.size===0||(q[t]=void 0,h[w]=u,n=!0)}if(r)for(var A in r)if(t=
        +A,isNaN(t))h[A]=r[A];else if(u=r[A],Array.isArray(u)&&(ri(u,d,+A)||Xh(u)&&u.size===0)&&(u=null),u==null&&(n=!0),m&&t<e){n=!0;u=t+l;for(w=q.length;w<=u;w++)q.push(void 0);q[u]=r[t]}else u!=null&&(h[A]=u);if(n){for(var C in h){r=h;break b}r=null}}q=r==null?f!=null:r!==f}m&&(a=p.length);for(var E;a>0;a--){C=a-1;A=p[C];C-=l;if(!(A==null||ri(A,d,C)||Xh(A)&&A.size===0))break;E=!0}if(p!==b||q||E){if(!m&&!c)p=Array.prototype.slice.call(p,0,a);else if(E||q||r)p.length=a;r&&p.push(r)}b=p}return b};
    Rea=function(a){return Array.isArray(a)?a[0]instanceof Ph?a:[Qea,a]:[a,void 0]};
    gl=function(a,b,c){if(Array.isArray(b)){var d=qi(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);h!=null&&(b[f++]=h)}f<e&&(b.length=f);c&&(Vh(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
    kl=function(a){var b=a[Sea];if(!b){var c=Tea(a),d=hl(a),e=d.C;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;pda(h)&&h.B!=4;){var l=h.D,m=d[l];
        if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Uea(n))}m&&m(h,f,l)||(m=h,l=m.C,Eh(m),m.XO?m=void 0:(n=m.j.j-l,m.j.j=l,m=nda(m.j,n)),l=f,m&&(ui||(ui=Symbol()),(n=l[ui])?n.push(m):l[ui]=[m]))}c===il||c===jl||c.G||(f[Vea||(Vea=Symbol())]=c)};
        a[Sea]=b}return b};
    Uea=function(a){a=Rea(a);var b=a[0].PM;if(a=a[1]){var c=kl(a),d=hl(a).kB;return function(e,f,h){return b(e,f,h,d,c)}}return b};
    ll=function(){};
    Wea=function(a,b,c){var d=c[1];if(d){var e=d[ml];var f=e?e.kB:hj(d[0]);a[b]=e!=null?e:d}f&&f===gj?(a.j||(a.j=new Set)).add(b):c[0]&&(a.B||(a.B=new Set)).add(b)};
    Xea=function(a,b){return[a.j,!b||b[0]>0?void 0:b]};
    Tea=function(a){var b=a[ml];if(b)return b;b=nl(a,a[ml]=new ll,Xea,Xea,Wea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(hj(a[0])===gj?jl?b=jl:(b=new ll,b.kB=hj(!0),b=jl=b):b=il||(il=new ll),b=a[ml]=b):b.G=!0}return b};
    Yea=function(a,b,c){a[b]=c};
    nl=function(a,b,c,d,e){e=e===void 0?Yea:e;b.kB=hj(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],typeof h==="function"&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;h!==void 0;){typeof h==="number"&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Ph)var p=h;else p=Zea,f--;if(p.B3){h=a[++f];n=a;var q=f;typeof h=="function"&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;typeof h==="number"&&
    h<0&&(q-=h,h=a[++f]);for(;m<q;m++){var r=l[m];e(b,m,n?d(p,n,r):c(p,r))}}return b};
    bfa=function(a){var b=a[$ea];if(!b){var c=ol(a);b=function(d,e){return afa(d,e,c)};
        a[$ea]=b}return b};
    cfa=function(a){return a.QM};
    dfa=function(a,b){var c,d,e=a.QM;return function(f,h,l){return e(f,h,l,d||(d=ol(b).kB),c||(c=bfa(b)))}};
    ol=function(a){var b=a[pl];if(b)return b;b=nl(a,a[pl]={},cfa,dfa);efa(a);return b};
    ffa=function(a,b){var c=a.PM;return b?function(d,e,f){return c(d,e,f,b)}:c};
    gfa=function(a,b,c){var d=a.PM,e,f;return function(h,l,m){return d(h,l,m,f||(f=hl(b).kB),e||(e=kl(b)),c)}};
    hl=function(a){var b=a[ql];if(b)return b;Tea(a);b=nl(a,a[ql]={},ffa,gfa);efa(a);return b};
    efa=function(a){ql in a&&ml in a&&pl in a&&(a.length=0)};
    hfa=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Rea(c);var d=c[0].QM;if(c=c[1]){var e=bfa(c),f=ol(c).kB;c=(c=a.D)?c(f,e):function(h,l,m){return d(h,l,m,f,e)}}else c=d;
        return a[b]=c}};
    afa=function(a,b,c){for(var d=Fj(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(m!=null){var n=l-e,p=hfa(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[q],f!=null&&(h=hfa(c,e))&&h(b,f,e))}if(a=ui?a[ui]:void 0)for(Mh(b,b.j.end()),c=0;c<a.length;c++)Mh(b,Ng(a[c])||new Uint8Array(0))};
    rl=function(a,b){return new Ph(a,b,!1,!1)};
    sl=function(a,b){return new Ph(a,b,!0,!1)};
    bm=function(a,b,c){Kj(a,Fj(a),b,c)};
    cm=function(a,b,c){b=Kda(b);b!=null&&(Nh(a,c,1),a=a.j,c=ifa||(ifa=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),ah=c.getUint32(0,!0),bh=c.getUint32(4,!0),Lh(a,ah),Lh(a,bh))};
    dm=function(a,b,c){a:if(b!=null){if(xi(b)){if(typeof b==="string"){b=Di(b);break a}if(typeof b==="number"){b=Ei(b);break a}}b=void 0}b!=null&&(typeof b==="string"&&xda(b),b!=null&&(Nh(a,c,0),typeof b==="number"?(a=a.j,ch(b),yda(a,ah,bh)):(c=xda(b),yda(a.j,c.B,c.j))))};
    em=function(a,b,c){b=Bi(b);b!=null&&b!=null&&(Nh(a,c,0),zda(a.j,b))};
    jfa=function(a,b,c){b=Nda(b);b!=null&&(Nh(a,c,0),a.j.j.push(b?1:0))};
    kfa=function(a,b,c){b=aj(b);b!=null&&Oh(a,c,Pca(b))};
    fm=function(a,b,c,d,e){b=b instanceof U?b.oa:Array.isArray(b)?R(b,d[0],d[1]):void 0;if(b!=null){Nh(a,c,2);c=a.j.end();Mh(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;e>127;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
    lfa=function(a){return function(){var b=new Ada;afa(this.oa,b,ol(a));Mh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.C=[c];return c}};
    gm=function(a){return function(b){return Oea(a,b)}};
    hm=function(a){this.oa=R(a)};
    jm=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
        a=mfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=im(a,l),d+=im(a,l+4),e+=im(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 nfa.toString(e)};
    mfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
    im=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
    km=function(a){this.oa=R(a)};
    lm=function(a){this.oa=R(a)};
    mm=function(a){this.oa=R(a)};
    nm=function(a){this.oa=R(a)};
    om=function(a){this.oa=R(a)};
    g.ofa=function(a){var b=new nm;b=S(b,1,a.D);for(var c=[],d=0;d<a.fields.length;d++)c.push(a.fields[d].xd);b=tea(b,c,Ji);c=[];d=[];for(var e=g.v(a.j.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];for(var h=a.C,l=a.rP(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new lm;switch(h){case 3:q=Number(q);Number.isFinite(q)&&bk(p,1,pm,Fi(q));break;case 2:bk(p,2,pm,wi(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new mm;m=ik(n,lm,2,m);n=
        [];p=a;q=[];for(var r=0;r<p.fields.length;r++)q.push(p.fields[r].yd);p=q;for(q=0;q<p.length;q++){var t=p[q],u=f[q];r=new km;switch(t){case 3:bk(r,1,qm,$i(String(u)));break;case 2:t=Number(u);Number.isFinite(t)&&bk(r,2,qm,Ai(t));break;case 1:t=u==="true",t=t==null?t:Mda(t),bk(r,3,qm,t)}n.push(r)}kk(m,km,1,n);c.push(m)}}kk(b,mm,4,c);return b};
    pfa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&&
        c!=="moz-extension"&&c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};
    qfa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
        function b(q){for(var r=h,t=0;t<64;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;t<80;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 u=e[1],w=e[2],A=e[3],C=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var E=A^u&(w^A);var H=1518500249}else E=u^w^A,H=1859775393;else t<60?(E=u&w|A&(u|w),H=2400959708):(E=u^w^A,H=3395469782);E=((q<<5|q>>>27)&4294967295)+E+C+H+r[t]&4294967295;C=A;A=w;w=(u<<30|u>>>2)&4294967295;u=q;q=E}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]=
            e[2]+w&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+C&4294967295}
        function c(q,r){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var t=[],u=0,w=q.length;u<w;++u)t.push(q.charCodeAt(u));q=t}r||(r=q.length);t=0;if(n==0)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,n==64)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
        function d(){var q=[],r=p*8;n<56?c(l,56-n):c(l,64-(n-56));for(var t=63;t>=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var u=24;u>=0;u-=8)q[r++]=e[t]>>u&255;return q}
        for(var e=[],f=[],h=[],l=[128],m=1;m<64;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,Z7:function(){for(var q=d(),r="",t=0;t<q.length;t++)r+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return r}}};
    sfa=function(a,b,c){var d=String(g.Ua.location.href);return d&&a&&b?[b,rfa(pfa(d),a,c||null)].join(" "):null};
    rfa=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],g.Yb(d,function(l){e.push(l)}),tfa(e.join(" "));
        var f=[],h=[];g.Yb(c,function(l){h.push(l.key);f.push(l.value)});
        c=Math.floor((new Date).getTime()/1E3);e=f.length==0?[c,b,a]:[f.join(":"),c,b,a];g.Yb(d,function(l){e.push(l)});
        a=tfa(e.join(" "));a=[c,a];h.length==0||a.push(h.join(""));return a.join("_")};
    tfa=function(a){var b=qfa();b.update(a);return b.Z7().toLowerCase()};
    rm=function(a){this.j=a||{cookie:""}};
    sm=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=jc(a[f]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
    tm=function(a){return!!ufa.FPA_SAMESITE_PHASE2_MOD||!(a===void 0||!a)};
    vfa=function(a){a=a===void 0?!1:a;var b=g.Ua.__SAPISID||g.Ua.__APISID||g.Ua.__3PSAPISID||g.Ua.__OVERRIDE_SID;tm(a)&&(b=b||g.Ua.__1PSAPISID);if(b)return!0;if(typeof document!=="undefined"){var c=new rm(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");tm(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
    wfa=function(a,b,c,d){(a=g.Ua[a])||typeof document==="undefined"||(a=(new rm(document)).get(b));return a?sfa(a,c,d):null};
    xfa=function(a,b){b=b===void 0?!1:b;var c=pfa(String(g.Ua.location.href)),d=[];if(vfa(b)){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("moz-extension:")==0;var e=c?g.Ua.__SAPISID:g.Ua.__APISID;e||typeof document==="undefined"||(e=new rm(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?sfa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&tm(b)&&((b=wfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=wfa("__3PSAPISID","__Secure-3PAPISID",
        "SAPISID3PHASH",a))&&d.push(a))}return d.length==0?null:d.join(" ")};
    Om=function(a){this.oa=R(a)};
    Pm=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.kb()};
        this.B=this.j()};
    Qm=function(a){this.oa=R(a)};
    Rm=function(a){this.oa=R(a)};
    g.Sm=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.K=c||0;this.N=d||2};
    g.Tm=function(a){a.j=Math.min(a.G,a.j*a.N);a.C=Math.min(a.G,a.j+(a.K?Math.round(a.K*(Math.random()-.5)*2*a.j):0));a.B++};
    Um=function(a){this.oa=R(a)};
    Vm=function(a){this.oa=R(a)};
    Wm=function(a){this.oa=R(a)};
    yfa=function(a,b){kk(a,Vm,1,b)};
    Xm=function(a){this.oa=R(a)};
    Afa=function(a,b){b=b===void 0?zfa:b;if(!Ym){var c;a=(c=a.navigator)==null?void 0:c.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));c=(a.brands||[]).map(function(e){var f=new Vm;f=S(f,1,e.brand);return S(f,2,e.version)});
        yfa(Uk(Zm,2,a.mobile),c);Ym=a.getHighEntropyValues(b)}var d=new Set(b);return Ym.then(function(e){var f=Zm.clone();d.has("platform")&&S(f,3,e.platform);d.has("platformVersion")&&S(f,4,e.platformVersion);d.has("architecture")&&S(f,5,e.architecture);d.has("model")&&S(f,6,e.model);d.has("uaFullVersion")&&S(f,7,e.uaFullVersion);return f}).catch(function(){return Zm.clone()})};
    $m=function(a){this.oa=R(a)};
    an=function(a){this.oa=R(a)};
    bn=function(a){this.oa=R(a,4)};
    cn=function(a){this.oa=R(a,35)};
    dn=function(a){this.oa=R(a,19)};
    en=function(a){this.oa=R(a,8)};
    Bfa=function(a){this.oa=R(a)};
    hn=function(a){g.I.call(this);var b=this;this.componentId="";this.C=[];this.ra="";this.pageId=null;this.Ca=this.Y=-1;this.experimentIds=null;this.Z=this.G=0;this.Fa=1;this.timeoutMillis=0;this.logSource=a.logSource;this.HE=a.HE||function(){};
        this.B=new fn(a.logSource,a.qx);this.network=a.network;this.RB=a.RB||null;this.K=a.Yea||null;this.sessionIndex=a.sessionIndex||null;this.mE=a.mE||!1;this.logger=null;this.withCredentials=!a.HX;this.qx=a.qx||!1;this.N=typeof URLSearchParams!=="undefined"&&!!(new URL(gn())).searchParams&&!!(new URL(gn())).searchParams.set;var c=T(new $m,1,1);Cfa(this.B,c);this.D=new g.Sm(1E4,3E5,.1);a=Dfa(this,a.XW);this.j=new Pm(this.D.getValue(),a);this.qa=new Pm(6E5,a);this.mE||this.qa.start();this.qx||(document.addEventListener("visibilitychange",
            function(){document.visibilityState==="hidden"&&b.iP()}),document.addEventListener("pagehide",this.iP.bind(this)))};
    Dfa=function(a,b){return a.N?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
    gn=function(){return"https://play.google.com/log?format=json&hasfast=true"};
    fn=function(a,b){this.qx=b=b===void 0?!1:b;this.B=this.locale=null;this.j=new dn;Number.isInteger(a)&&this.j.kH(a);b||(this.locale=document.documentElement.getAttribute("lang"));Cfa(this,new $m)};
    Cfa=function(a,b){ik(a.j,$m,1,b);Tk(b,1)||T(b,1,1);a.qx||(b=jn(a),Sk(b,5)||S(b,5,a.locale));a.B&&(b=jn(a),g.hk(b,Wm,9)||ik(b,Wm,9,a.B))};
    Efa=function(a,b){Mj(kn(a),Xm,11)&&(a=ln(a),T(a,1,b))};
    Ffa=function(a,b){Mj(kn(a),Xm,11)&&(a=ln(a),Uk(a,2,b))};
    kn=function(a){return g.hk(a.j,$m,1)};
    Gfa=function(a){var b=b===void 0?zfa:b;var c=a.qx?void 0:vf();c?Afa(c,b).then(function(d){a.B=d;d=jn(a);ik(d,Wm,9,a.B);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
    jn=function(a){a=kn(a);var b=g.hk(a,Xm,11);b||(b=new Xm,ik(a,Xm,11,b));return b};
    ln=function(a){a=jn(a);var b=g.hk(a,Um,10);b||(b=new Um,Uk(b,2,!1),ik(a,Um,10,b));return b};
    mn=function(){this.T6=typeof AbortController!=="undefined"};
    nn=function(a,b){g.I.call(this);this.logSource=a;this.sessionIndex=b;this.B="https://play.google.com/log?format=json&hasfast=true";this.j=null;this.C=!1;this.network=null;this.componentId="";this.pageId=this.Gz=this.RB=null};
    on=function(a,b,c,d,e,f,h){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;g.I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new nn(a,"0"),a.componentId=b,g.M(this,a),c!==""&&(a.B=c),d&&(a.C=!0),e&&(a.j=e),h&&(a.network=h),b=a.build());this.j=b};
    pn=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
    Hfa=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
        default:return""}};
    qn=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
    g.rn=function(a){return(new Ifa).Lk(a)};
    Ifa=function(){};
    sn=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),sn(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],typeof f!="function"&&(c.push(e),Jfa(d,c),c.push(":"),sn(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Jfa(b,c);break;case "number":c.push(isFinite(b)&&
    !isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
    Jfa=function(a,b){b.push('"',a.replace(Kfa,function(c){var d=Lfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Lfa[c]=d);return d}),'"')};
    Mfa=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
    tn=function(){};
    un=function(){};
    vn=function(a,b,c,d,e,f,h){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);h&&(l+="#"+h);return l};
    wn=function(a){return a?decodeURI(a):a};
    g.yn=function(a,b){return b.match(xn)[a]||null};
    g.zn=function(a){return wn(g.yn(3,a))};
    g.Nfa=function(a){a=a.match(xn);return vn(a[1],a[2],a[3],a[4])};
    An=function(a){a=a.match(xn);return vn(null,null,null,null,a[5],a[6],a[7])};
    Ofa=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)};
    Bn=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Ye(e):"")}}};
    to=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||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]};
    uo=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)uo(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+g.Xe(b)))};
    Pfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)uo(a[b],a[b+1],c);return c.join("&")};
    g.vo=function(a){var b=[],c;for(c in a)uo(c,a[c],b);return b.join("&")};
    Qfa=function(a,b){var c=arguments.length==2?Pfa(arguments[1],0):Pfa(arguments,1);return to(a,c)};
    g.wo=function(a,b){b=g.vo(b);return to(a,b)};
    xo=function(a,b,c){c=c!=null?"="+g.Xe(c):"";return to(a,b+c)};
    Rfa=function(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var f=a.charCodeAt(b-1);if(f==38||f==63)if(f=a.charCodeAt(b+e),!f||f==61||f==38||f==35)return b;b+=e+1}return-1};
    yo=function(a,b){var c=a.search(Sfa),d=Rfa(a,0,b,c);if(d<0)return null;var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return Ye(a.slice(d,e!==-1?e:0))};
    zo=function(a,b){for(var c=a.search(Sfa),d=0,e,f=[];(e=Rfa(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Tfa,"$1")};
    Ufa=function(a,b,c){return xo(zo(a,b),b,c)};
    g.Ao=function(a){g.Ed.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.Fa=!1;this.ra=0;this.qa=null;this.Ma="";this.K=!1};
    Wfa=function(a,b,c,d,e,f,h){var l=new g.Ao;Vfa.push(l);b&&l.listen("complete",b);l.MF("ready",l.A7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
    Yfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Xfa(a);Bo(a)};
    Xfa=function(a){a.Fa||(a.Fa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
    Zfa=function(a){if(a.C&&typeof Co!="undefined")if(a.Ca[1]&&g.Do(a)==4&&a.getStatus()==2)a.getStatus();else if(a.Z&&g.Do(a)==4)g.og(a.Y_,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Eo(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.Do(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Xfa(a)}}finally{Bo(a)}}};
    Bo=function(a,b){if(a.j){$fa(a);var c=a.j,d=a.Ca[0]?function(){}:null;
        a.j=null;a.Ca=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
    $fa=function(a){a.qa&&(g.Ua.clearTimeout(a.qa),a.qa=null)};
    Eo=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=g.yn(1,String(a.Y)),!a&&g.Ua.self&&g.Ua.self.location&&(a=g.Ua.self.location.protocol.slice(0,-1)),b=!aga.test(a?a.toLowerCase():"");c=b}return c};
    g.Do=function(a){return a.j?a.j.readyState:0};
    g.Fo=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
    g.Go=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ma){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
    g.cga=function(a){var b={};a=(a.j&&g.Do(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.ec(a[c])){var d=Sba(a[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Xc(b,function(h){return h.join(", ")})};
    g.Ho=function(a,b){return a.j?a.j.getResponseHeader(b):null};
    Io=function(){};
    Ko=function(a,b,c){this.logger=a;this.event=b;if(c===void 0||c)this.startMillis=Jo()};
    Lo=function(){};
    Mo=function(a,b,c,d){c=c===void 0?"":c;g.I.call(this);this.Ji=b;this.C=c;this.B=new Map;this.G=new Map;b=new nn(1828,"0");b.j="22";b.network=new Io;d&&(c=new hm,d=tea(c,d,Pda),b.Gz=d);this.K=new on(1828,"","",!1,"",b.build());this.j=new g.Cg(this.K);this.j.C=1E5;d=this.j;d.flushInterval=3E4;d.j.setInterval(3E4);this.Ca=new Aca(this.j);this.Fa=new Dca(this.j);this.Ea=new Eca(this.j);this.ra=new zca(this.j);this.Z=new Bca(this.j);this.Y=new Cca(this.j);this.errorCount=new Hca(this.j);this.qa=new Gca(this.j);
        this.Ma=new Fca(this.j);this.Sa=new Ica(this.j);this.N=new Jca(this.j);this.La=new Kca(this.j);this.D=a?jm(a):"";a=new yca(this.j);this.B.set("h",1);this.B.set("u",2);this.B.set("k",3);this.B.set("P",4);this.B.set("p",5);this.G.set(25,1);this.G.set(26,2);this.G.set(27,3);this.G.set(28,4);a.j.hm("/client_streamz/bg/fic",this.Ji);g.M(this,this.K);g.M(this,this.j)};
    dga=function(a,b){a.D=jm(b)};
    Jo=function(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()};
    No=function(a){this.oa=R(a)};
    Oo=function(a){this.oa=R(a)};
    Po=function(a){this.oa=R(a,0,Po.messageId)};
    g.Qo=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
    Ro=function(a){function b(q,r,t){Promise.resolve().then(function(){n.done();d.xg.hn();m.resolve({q7:q,cea:r,qrb:t})})}
        function c(q,r,t,u){var w="k";r?w="h":t&&(w="u");w!=="k"?u!==0&&d.xg.AK(w,q):d.j<=0?(d.xg.AK(w,q),d.j=Math.floor(Math.random()*200)):d.j--}
        g.I.call(this);var d=this;this.j=Math.floor(Math.random()*200);if(a.challenge instanceof Po){var e=Sk(a.challenge,4);var f=Sk(a.challenge,5)}else e=a.program,f=a.globalName;var h=new g.I;this.addOnDisposeCallback(function(){d.B.then(function(q){q=q.cea;d.xg.hn();q==null||q();h.dispose()})});
        if(a.V0!==!1)if(a.xg)this.xg=a.xg;else{var l;g.M(h,this.xg=new Mo(f,(l=a.Ji)!=null?l:"_"))}else this.xg=new Lo;var m=new g.Qo;this.B=m.promise;var n=new Ko(this.xg,"t",!1);if(!g.Ua[f])throw this.xg.wk(25),this.xg.hn(),Error("EGOU");if(!g.Ua[f].a)throw this.xg.wk(26),this.xg.hn(),Error("ELIU");try{var p=g.Ua[f].a;n.start();this.C=g.v(p(e,b,!0,a.osb,c)).next().value;this.rT=m.promise.then(function(){})}catch(q){throw this.xg.wk(28),this.xg.hn(),q;
        }};
    So=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";c!=null||(c=Error());if(c instanceof Error){this.message=b+c.message;var e;this.stack=(e=c.stack)!=null?e:""}else this.message=b+String(c),this.stack="";Object.setPrototypeOf(this,this.constructor.prototype)};
    ega=function(a){if(!a)return null;a=Ok(a,4);return a===null||a===void 0?null:be(a)};
    To=function(){this.B={};this.j=null};
    Uo=function(){To.instance||(To.instance=new To);return To.instance};
    gga=function(a){var b=Uo();return fga(b,g.hk(a,No,1),g.hk(a,Oo,2),Sk(a,3))};
    fga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return hga(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){hga(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
        h(l)})}));
        return a.B[d]};
    hga=function(a,b){return b?iga(b):a?jga(a):Promise.resolve()};
    iga=function(a){return new Promise(function(b,c){var d=g.yf("SCRIPT"),e=ega(a);g.We(d,e);d.onload=function(){g.Hf(d);b()};
        d.onerror=function(){g.Hf(d);c(Error("EWLS"))};
        (g.nf("HEAD")[0]||document.documentElement).appendChild(d)})};
    jga=function(a){return new Promise(function(b){var c=g.yf("SCRIPT");if(a){var d=Ok(a,6);d=d===null||d===void 0?null:Hba(d)}else d=null;c.textContent=xe(d);Ve(c);(g.nf("HEAD")[0]||document.documentElement).appendChild(c);g.Hf(c);b()})};
    lga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Ua.TextDecoder)b=(new TextDecoder).decode(b);else if(b.length<=8192)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return kga(b)};
    Vo=function(a){this.oa=R(a)};
    Wo=function(a){this.oa=R(a)};
    Xo=function(a){this.oa=R(a)};
    Yo=function(a,b,c){this.client=a;this.ys=b;this.j=c};
    mga=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
    Zo=function(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=Zo(d));b<c;b++)d=typeof a==="string"?a.charCodeAt(b):a[b],e=nga(31,e)+d|0;return e};
    oga=function(a,b){return[Zo(a,0,a.length>>1,b),Zo(a,a.length>>1)]};
    $o=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c};
    pga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new $o(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $o(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $o(a)):new $o(a,c,b)};
    qga=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=pga(a))};
    tga=function(a,b,c,d,e){if(a.index){var f=new Ko(a.logger,"W"),h=(4-(ap.length+c.length)%4)%4,l=new Uint8Array(4+h+ap.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,Math.random()*4294967295);n=n+4+h;l.set(ap,n);n+=ap.length;m.setUint32(n,e);l.set(c,n+4);rga(l,d);b=sga(b!=null?b:[]);a.index.Eh(b,function(p){globalThis.sessionStorage.removeItem(p)})?mga(b,g.Fg(l))?(a.logger.OF("s"),f.done()):a.logger.OF("t"):a.logger.OF("i")}else a.logger.OF("u")};
    sga=function(a){var b=g.v(oga(a,ap));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
    rga=function(a,b){var c=oga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.v(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;n<22;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<a.length&&(a[e+1]^=f[1])}};
    bp=function(a){return uga?Array.from(uga.encode(a)):g.Eg(a)};
    cp=function(a){g.I.call(this);var b=this;this.logger=a;this.D=new g.Qo;this.addOnDisposeCallback(function(){return b.D.reject()})};
    dp=function(a,b){var c=setTimeout(function(){a.D.resolve()},b);
        a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
    ep=function(a,b,c){var d=new Ko(a.logger,a.C);a=a.VF(b,c);d.done();return a};
    fp=function(a,b,c,d,e,f,h){cp.call(this,a);this.N=c;this.Y=d;this.K=f;this.onError=h;this.C="m";this.B="x";this.Z=0;g.M(this,b);dp(this,e);this.G=Math.floor((Date.now()+e)/1E3)};
    gp=function(a,b,c){cp.call(this,a);this.G=b;this.C="f";this.B="z";dp(this,c)};
    hp=function(a,b,c){cp.call(this,a);this.G=b;this.C="w";this.B="z";dp(this,c)};
    ip=function(a,b){cp.call(this,a);this.error=b;this.C="e";this.B="y"};
    vga=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(bp(b)))};
    jp=function(a,b,c){cp.call(this,a);this.G=b;this.clientState=c;this.C="S";this.B="q"};
    kp=function(a){this.oa=R(a)};
    lp=function(a,b,c){this.j=a;this.C=b;this.B=c};
    mp=function(a,b,c){c=c===void 0?{}:c;this.yda=a;this.j=c;this.B=b};
    np=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
    wga=function(a,b,c){c=c===void 0?{}:c;return new lp(b,a,c)};
    op=function(a){this.oa=R(a)};
    pp=function(a){this.oa=R(a)};
    qp=function(a){this.oa=R(a)};
    rp=function(a){this.oa=R(a)};
    sp=function(a,b){this.N=a.W$;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&xga(this)};
    Aga=function(a,b){g.ud(a.j,"complete",function(){if(Eo(a.j)){var c=g.Fo(a.j);if(b&&a.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){tp(a,new qn(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=pn(a.j.getStatus());up(a,vp(a));c==0?yga(a,d):tp(a,new qn(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Fo(a.j);d=vp(a);if(c){var e=zga(a,c);c=e.code;var f=e.details;
        e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;up(a,d);tp(a,new qn(c,f,e))}})};
    xga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){tp(a,new qn(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&yga(a,d)}if("2"in b)for(b=zga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
        a.N.on("end",function(){up(a,vp(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
        a.N.on("error",function(){if(a.B.length!=0){var b=a.j.B;b!==0||Eo(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=pn(c);break;default:d=14}up(a,vp(a));b=Mfa(b)+", error: "+a.j.getLastError();c!=-1&&(b+=", http status code: "+c);tp(a,new qn(d,b))}})};
    vp=function(a){var b={},c=g.cga(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
        return b};
    zga=function(a,b){var c=2,d={};try{var e=Bga(b);c=Pk(e,1);var f=e.getMessage();xea(e,qp).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&a.j.getStatus()===404?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
    gq=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
    yga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
    up=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
    tp=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
    g.hq=function(a){this.K=a.kfa||null;this.G=a.e2||!1;this.B=void 0};
    iq=function(a,b){g.Ed.call(this);this.ra=a;this.K=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.B=null;this.qa="GET";this.Y="";this.j=!1;this.N=this.C=this.D=null};
    Cga=function(a){a.C.read().then(a.q9.bind(a)).catch(a.aK.bind(a))};
    kq=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;jq(a)};
    jq=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
    g.lq=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.B="";this.N=!1;var b;a instanceof g.lq?(this.N=a.N,g.mq(this,a.G),this.Z=a.Z,g.nq(this,a.j),g.oq(this,a.D),this.B=a.B,pq(this,a.C.clone()),this.K=a.K):a&&(b=String(a).match(xn))?(this.N=!1,g.mq(this,b[1]||"",!0),this.Z=qq(b[2]||""),g.nq(this,b[3]||"",!0),g.oq(this,b[4]),this.B=qq(b[5]||"",!0),pq(this,b[6]||"",!0),this.K=qq(b[7]||"")):(this.N=!1,this.C=new rq(null,this.N))};
    g.mq=function(a,b,c){a.G=c?qq(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
    g.nq=function(a,b,c){a.j=c?qq(b,!0):b};
    g.oq=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.D=b}else a.D=null};
    pq=function(a,b,c){b instanceof rq?(a.C=b,Dga(a.C,a.N)):(c||(b=sq(b,Ega)),a.C=new rq(b,a.N))};
    g.tq=function(a,b,c){a.C.set(b,c)};
    g.uq=function(a){return a instanceof g.lq?a.clone():new g.lq(a)};
    qq=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
    sq=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Fga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
    Fga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
    rq=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
    vq=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Bn(a.C,function(b,c){a.add(Ye(b),c)}))};
    Gga=function(a,b){vq(a);b=wq(a,b);return a.j.has(b)};
    g.Hga=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(wq(a,b),g.Kb(c)),a.B=a.B+c.length)};
    wq=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
    Dga=function(a,b){b&&!a.D&&(vq(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Hga(this,e,c))},a));
        a.D=b};
    g.Iga=function(a){var b="";g.Tc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
        return b};
    g.xq=function(a,b,c){if(g.gd(c))return a;c=g.Iga(c);if(typeof a==="string")return xo(a,g.Xe(b),c);g.tq(a,b,c);return a};
    g.yq=function(a){g.I.call(this);this.B=a;this.j={}};
    Jga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Jga(a,b,c[h],d,e,f);else{b=td(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
    Kga=function(){this.C=!0;this.B=0;this.j=""};
    Lga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
    zq=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.Y=0;this.G=null;this.Z=0};
    Aq=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.Y+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
    Bq=function(){this.j=null;this.B=0;this.C=new Kga;this.D=new zq};
    Mga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
    Cq=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};
    Dq=function(a){this.Y=null;this.K=[];this.D="";this.ra=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Ca=/[\\"]/g;this.j=this.G=0;this.qa=!(!a||!a.W7)};
    Eq=function(a,b,c){a.G=3;a.Y="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Y);};
    Fq=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
    Nga=function(a){var b=g.Ho(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Fq:new Dq:b.startsWith("application/x-protobuf")?(a=g.Ho(a,"Content-Transfer-Encoding"))?a.toLowerCase()=="base64"?new Bq:null:new zq:null};
    Gq=function(a){this.j=a;this.B=null;this.D=this.C=0;this.Y=!1;this.G=this.N=this.K=null;this.Z=new g.yq(this);this.Z.listen(this.j,"readystatechange",this.qa)};
    Hq=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
    Iq=function(a){a.Z.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
    Oga=function(a){a=this.C=a;var b=(0,g.ib)(this.Caa,this);a.G=b;a=this.C;b=(0,g.ib)(this.pca,this);a.N=b;this.B={};this.j={}};
    Pga=function(a,b){for(var c={},d=0;d<a.length;c={k_:void 0},d++)c.k_=a[d],b.forEach(function(e){return function(f){try{f(e.k_)}catch(h){}}}(c))};
    Jq=function(a,b){var c=a.B[b];c&&c.forEach(function(d){try{d()}catch(e){}});
        (c=a.j[b])&&c.forEach(function(d){d()});
        a.j[b]=[]};
    Qga=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.G=a.bsb||g.Wa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Wa("withCredentials",a)||!1;this.D=a.Zrb||[];this.K=a.jsb||[];this.j=a.psb;this.C=a.msb||!1};
    Kq=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Rga(function(h){return new Sga(function(l,m){var n={},p=Tga(a,h,f);p.on("error",function(q){return m(q)});
        p.on("metadata",function(q){n=q});
        p.on("data",function(q){var r=h.HJ(),t=n;t=t===void 0?{}:t;l(new mp(q,r,t))})})},a.K).call(a,wga(e,c,d)).then(function(h){return h.yda})};
    Tga=function(a,b,c){var d=b.HJ(),e=b.getMetadata(),f=Uga(a,!0);a=Vga(a,e,f,c+d.getName());c=Wga(f,d.B,!1);Aga(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.j(b.j);f.send(a,"POST",b);return c};
    Uga=function(a,b){b=a.C&&!b;return a.j||b?new g.Ao(new g.hq({kfa:a.j,e2:b})):new g.Ao};
    Vga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e=b.Authorization;if(e&&Xga.has(e.split(" ")[0])||a.B)c.K=!0;if(a.G)d=g.xq(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
    Wga=function(a,b,c){if(c){a.isActive();c=new Gq(a);var d=new Oga(c)}return new sp({xhr:a,W$:d},b)};
    Rga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
        return c};
    Lq=function(){this.j=new Qga;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
    Mq=function(a){g.I.call(this);this.owner=a;this.signals=new Set;a&&g.M(a,this)};
    Nq=function(a,b,c){var d=Yga;a.signals.has(b);d({signal:b,data:c})};
    Oq=function(a){g.I.call(this);this.dX=a;this.slots=new Map;this.aC=new Set;this.VY=!1};
    Zga=function(a,b){a.Na()||a.slots.set(b,{slotId:b,slot:void 0,EX:function(){return a.slots.delete(b)}})};
    $ga=function(a,b){return new Promise(function(c){Pq(function(){a.dX&&(a.KZ=b,a.VY=!0);for(var d=g.v(a.slots.values()),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.slotId;f=f.slot;try{f(b,{signal:a,slotId:e})}catch(h){Qf(h)}}d=g.v(a.aC);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.aC.clear();c()})})};
    Yga=function(){var a=g.Ja.apply(0,arguments);a.length===0?Promise.resolve():a.length===1?(a=a[0],$ga(a.signal,a.data)):Promise.all(a.map(function(b){return $ga(b.signal,b.data)})).then()};
    Pq=function(a){Qq.push(a);aha()};
    aha=function(){var a,b;g.G(function(c){switch(c.j){case 1:if(Rq)return c.return();g.Ba(c,2,3);Rq=!0;a=bha(0);case 5:if(!(a<Qq.length)){c.Ia(3);break}return g.z(c,Promise.resolve(),8);case 8:a=bha(a);c.Ia(5);break;case 3:g.Ea(c);Qq.length=0;Rq=!1;g.Fa(c,0);break;case 2:b=g.Da(c),Qf(b),c.Ia(3)}})};
    bha=function(a){for(var b=a+100;a<b&&a<Qq.length;)try{Qq[a++]()}catch(c){Qf(c)}return a};
    cha=function(a,b){if(a.Na())b();else{var c=Sq.get(a);if(c)c.push(b);else{var d=[b];Sq.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.v([].concat(g.ra(d))),f=e.next();!f.done;f=e.next())f=f.value,f();Sq.delete(a)})}}};
    Tq=function(a,b,c){g.I.call(this);this.N=a;this.milliseconds=b;this.Cb=c;this.state=this.D=0};
    dha=function(a){return new Tq(!1,a,{aS:function(){},
        E_:void 0})};
    Uq=function(a){wb.call(this,a);this.name="TimerCancelledError"};
    Vq=function(a){wb.call(this,a);this.name="TimerDisposedError"};
    eha=function(a){var b=new Lq,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Yo(b,a,function(){return c})};
    Wq=function(a){g.I.call(this);var b=this;this.j=void 0;this.D=new g.Qo;this.state=1;this.C=0;this.cache=this.B=void 0;this.aA=a.aA;this.IR=a.IR;this.onError=a.onError;var c;this.onEvent=(c=a.onEvent)!=null?c:function(){};
        this.logger=a.Arb?new Lo:new Mo(void 0,a.Ji||"_",a.ys,a.Gz);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})};
    fha=function(a,b,c,d){if(!d)throw new So(4,"PMD:Undefined");d=d(Og(Uj(b,1)));if(!(d instanceof Function))throw new So(16,"APF:Failed");return new fp(a.logger,c,d,Qk(b,3),Qk(b,2)*1E3,function(){return a.cache},a.onError)};
    hha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L;return g.G(function(N){switch(N.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Sm(c,6E5,.25,2),e={},f=1;case 2:if(!(f<=2)){N.Ia(4);break}g.Ba(N,5);a.state=3;a.C=f-1;return g.z(N,a.B&&f===1?a.B:a.AE(f),7);case 7:return h=N.B,a.B=void 0,a.state=4,l=new Ko(a.logger,"b"),g.z(N,gga(h),8);case 8:return a.state=5,a.onEvent(1),e.hO=3,a.logger instanceof Mo&&dga(a.logger,Sk(h,5)),m=new Ro({challenge:h,xg:a.logger}),n=Xq(a,12E4).then(function(da){return function(){a.onEvent(da.hO);
        return Promise.reject(new So(15,"MDA:Timeout"))}}(e)),g.z(N,Promise.race([m.rT,
        n]),9);case 9:return a.onEvent(2),p=[],a.onEvent(4),e.hO=6,g.z(N,Promise.race([m.snapshot({s3:p}),n]),10);case 10:return q=N.B,a.onEvent(5),r=g.v(p),u=t=r.next().value,l.done(),a.state=6,g.z(N,gha(a,a.logger.XQ("g",f,a.aA.VX(q)),new So(10,"BWB:Timeout")),11);case 11:w=N.B;a.state=7;A=new Ko(a.logger,"i");if(Sk(w,4)){m.dispose();var Q=new hp(a.logger,Sk(w,4),Qk(w,2)*1E3)}else Qk(w,3)?Q=fha(a,w,m,u):(m.dispose(),Q=new gp(a.logger,Og(Uj(w,1)),Qk(w,2)*1E3));C=Q;A.done();H=E=void 0;(H=(E=a).IR)==null||
    H.call(E,Og(Uj(w,1)));a.state=8;return N.return(C);case 5:L=g.Da(N);b=L instanceof So?L:L instanceof Vq?new So(20,"WTO:Disposed",L):L instanceof qn?new So(11,"EBH:Error",L):new So(12,"BSO:Unknown",L);a.reportError(b);a:{if(L instanceof qn)switch(L.code){case 2:case 13:case 14:case 4:Q=!0;break a;default:Q=!1;break a}Q=L instanceof So?L.code!==20:!0}if(!Q)throw b;return g.z(N,Xq(a,d.getValue()),12);case 12:g.Tm(d);case 3:e={hO:void 0};f++;N.Ia(2);break;case 4:throw b;}})};
    Xq=function(a,b){b=dha(b);g.M(a,b);b.start();return b.Z};
    gha=function(a,b,c){return Promise.race([b,Xq(a,12E4).then(function(){return Promise.reject(c)})])};
    iha=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,hha(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.wk(13);e.Ia(0);break}a.logger.wk(14);b=new ip(a.logger,c instanceof So?c:new So(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,(d=a.j)==null||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)}})};
    jha=function(a,b){var c;return(c=a.j)==null?void 0:ep(c,function(){return Yq(a,b)},b.Cz)};
    kha=function(a,b){return ep(new jp(a.logger,a.C,a.state),function(){return Yq(a,b)})};
    lha=function(a,b,c){c=c instanceof So?c:new So(5,"TVD:error",c);a.reportError(c);return ep(new ip(a.logger,c),function(){return Yq(a,b)},b.Cz)};
    Yq=function(a,b){if(b.vE)return b.vE;if(b.Dt===void 0)return[];a=new Ko(a.logger,"c");var c=bp(b.Dt);a.done();return b.vE=c};
    mha=function(a){var b={};g.Yb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?e!==null&&(c.j(e)||(b[d]=null)):b[d]=c});
        uaa(a,function(c){return b[c.event]===null})};
    Br=function(){this.Be=0;this.j=!1;this.B=-1;this.kx=!1;this.Kk=0};
    Cr=function(){this.B=null;this.j=!1};
    Dr=function(a){Cr.call(this);this.D=a};
    Er=function(){Cr.call(this)};
    Fr=function(){Cr.call(this)};
    Gr=function(){this.j={};this.B=!0;this.C={}};
    Hr=function(a,b,c){a.j[b]||(a.j[b]=new Dr(c));return a.j[b]};
    nha=function(a){a.j.queryid||(a.j.queryid=new Fr)};
    Ir=function(a,b,c){(a=a.j[b])&&a.C(c)};
    Jr=function(a,b){if(g.dd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
    Kr=function(a){var b={},c=g.Uc(a.j,function(d){return d.j});
        g.Tc(c,function(d,e){d=a.C[e]!==void 0?String(a.C[e]):d.j&&d.B!==null?String(d.B):"";d.length>0&&(b[e]=d)},a);
        return b};
    oha=function(a){a=Kr(a);var b=[];g.Tc(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))});
        return b};
    qha=function(a){Hr(a,"od",pha);Hr(a,"opac",Lr).j=!0;Hr(a,"sbeos",Lr).j=!0;Hr(a,"prf",Lr).j=!0;Hr(a,"mwt",Lr).j=!0;Hr(a,"iogeo",Lr)};
    rha=function(){this.j=this.Fu=null};
    Mr=function(){};
    Or=function(){if(!Nr())throw Error();};
    Nr=function(){return!(!Pr||!Pr.performance)};
    Qr=function(a){return a?a.passive&&sha()?a:a.capture||!1:!1};
    Rr=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Qr(d)),!0):!1};
    Sr=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
    tha=function(){};
    uha=function(){return(pc||rc)&&sc?sc.mobile:!Tr()&&(xc("iPod")||xc("iPhone")||xc("Android")||xc("IEMobile"))};
    Tr=function(){return(pc||rc)&&sc?!sc.mobile&&(xc("iPad")||xc("Android")||xc("Silk")):xc("iPad")||xc("Android")&&!xc("Mobile")||xc("Silk")};
    Ur=function(a){try{return!!a&&a.location.href!=null&&Mc(a,"foo")}catch(b){return!1}};
    Vr=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
    wha=function(){var a=[];Vr(vha,function(b){a.push(b)});
        return a};
    xha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""};
    Aha=function(){var a=yha("IFRAME"),b={};g.Yb(zha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
        return b};
    yha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())};
    Bha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Ur(a)&&(b=a);return b};
    Fha=function(a){a=a||Wr();for(var b=new Cha(g.Ua.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&Dha.test(f.url)&&(c=f);if(f.url&&!f.FQ){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new Eha(b,e,c)};
    Wr=function(){var a=g.Ua,b=[],c=null;do{var d=a;if(Ur(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Cha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.Ua;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.FQ=!0);return b};
    Eha=function(a,b,c){this.j=a;this.B=b;this.C=c};
    Cha=function(a,b){this.url=a;this.FQ=!!b;this.depth=null};
    Xr=function(){this.C="&";this.B={};this.D=0;this.j=[]};
    Yr=function(a,b){var c={};c[a]=b;return[c]};
    Gha=function(a,b,c,d,e){var f=[];Vr(a,function(h,l){(h=Zr(h,b,c,d,e))&&f.push(l+"="+h)});
        return f.join(b)};
    Zr=function(a,b,c,d,e){if(a==null)return"";b=b||"&";c=c||",$";typeof c=="string"&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Zr(a[h],b,c,d+1,e));return f.join(c[d])}}else if(typeof a=="object")return e=e||0,e<2?encodeURIComponent(Gha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
    Hha=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};
    $r=function(a,b){this.j=a;this.depth=b};
    Jha=function(){function a(l,m){return l==null?m:l}
        var b=Wr(),c=Math.max(b.length-1,0),d=Fha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new $r([f.url,f.FQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new $r([e.url,2],0));b.url&&b!=f&&h.push(new $r([b.url,0],a(b.depth,c)));d=g.as(h,function(l,m){return h.slice(0,h.length-m)});
        !b.url||(f||e)&&b!=f||(e=xha(b.url))&&d.push([new $r([e,1],a(b.depth,c))]);d.push([]);return g.as(d,function(l){return Iha(c,l)})};
    Iha=function(a,b){g.bs(b,function(e){return e.depth>=0});
        var c=cs(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
        d[0]=a;g.Yb(b,function(e){return d[e.depth+1]=e.j});
        return d};
    Kha=function(){var a=a===void 0?Jha():a;return a.map(function(b){return Zr(b)})};
    Lha=function(a){var b=!1;b=b===void 0?!1:b;Pr.google_image_requests||(Pr.google_image_requests=[]);var c=yha("IMG",Pr.document);b&&(c.attributionSrc="");c.src=a;Pr.google_image_requests.push(c)};
    ds=function(a){var b="ih";if(a.ih&&a.hasOwnProperty(b))return a.ih;var c=new a;a.ih=c;a.hasOwnProperty(b);return c};
    es=function(){this.B=new tha;this.j=Nr()?new Or:new Mr};
    Mha=function(){fs();var a=Pr.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof Pr.setInterval==="function"&&typeof Pr.clearInterval==="function"&&typeof Pr.setTimeout==="function"&&typeof Pr.clearTimeout==="function")};
    Nha=function(){fs();return Kha()};
    Oha=function(){};
    fs=function(){var a=ds(Oha);if(!a.j){if(!Pr)throw Error("Context has not been set and window is undefined.");a.j=ds(es)}return a.j};
    gs=function(a){this.oa=R(a)};
    Pha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
    hs=function(a,b){return function(){var c=g.Ja.apply(0,arguments);if(a.j>-1)return b.apply(null,g.ra(c));try{return a.j=a.C.j.now(),b.apply(null,g.ra(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
    Qha=function(a,b){this.B=a;this.C=b;this.j=new Pha(a)};
    Rha=function(){this.j={}};
    Tha=function(){var a=is().flags,b=Sha;a=a.j[b.key];if(b.valueType==="proto"){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue};
    Xha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Kc=new Gr;Hr(this.Kc,"mv",Uha).j=!0;Hr(this.Kc,"omid",Lr);Hr(this.Kc,"epoh",Lr).j=!0;Hr(this.Kc,"epph",Lr).j=!0;Hr(this.Kc,"umt",Lr).j=!0;Hr(this.Kc,"phel",Lr).j=!0;Hr(this.Kc,"phell",Lr).j=!0;Hr(this.Kc,"oseid",Vha).j=!0;var a=this.Kc;a.j.sloi||(a.j.sloi=new Er);a.j.sloi.j=!0;Hr(this.Kc,"mm",js);Hr(this.Kc,"ovms",Wha).j=!0;Hr(this.Kc,"xdi",Lr).j=!0;Hr(this.Kc,"amp",Lr).j=!0;Hr(this.Kc,"prf",Lr).j=!0;Hr(this.Kc,"gtx",Lr).j=!0;Hr(this.Kc,
        "mvp_lv",Lr).j=!0;Hr(this.Kc,"ssmol",Lr).j=!0;Hr(this.Kc,"fmd",Lr).j=!0;Hr(this.Kc,"gen204simple",Lr);this.j=new Qha(fs(),this.Kc);this.D=!1;this.flags=new Rha};
    is=function(){return ds(Xha)};
    Yha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Xr)var e=c;else e=new Xr,Vr(c,function(h,l){var m=e,n=m.D++;h=Yr(l,h);m.j.push(n);m.B[n]=h});
        var f=e.Ce(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(fs(),Lha(f))}catch(h){}};
    Zha=function(a,b,c){c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
    $ha=function(){var a=a===void 0?g.Ua:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.kb()};
    aia=function(){var a=a===void 0?g.Ua:a;return(a=a.performance)&&a.now?a.now():null};
    bia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
    ls=function(){var a=window;this.events=[];this.B=a||g.Ua;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=ks()||(b!=null?b:Math.random()<1)};
    cia=function(a){a&&ms&&ks()&&(ms.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),ms.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
    dia=function(){var a=ns;this.j=os;this.RX="jserror";this.BT=!0;this.VN=null;this.B=this.aR;this.pd=a===void 0?null:a};
    eia=function(a,b,c){var d=ps;return hs(is().j.j,function(){try{if(d.pd&&d.pd.j){var e=d.pd.start(a.toString(),3);var f=b();d.pd.end(e)}else f=b()}catch(l){var h=d.BT;try{cia(e),h=d.B(a,new qs(rs(l)),void 0,c)}catch(m){d.aR(217,m)}if(!h)throw l;}return f})()};
    ts=function(a,b,c,d){return hs(is().j.j,function(){var e=g.Ja.apply(0,arguments);return eia(a,function(){return b.apply(c,e)},d)})};
    rs=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(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};
    qs=function(a){Zha.call(this,Error(a),{message:a})};
    fia=function(){Pr&&typeof Pr.google_measure_js_timing!="undefined"&&(Pr.google_measure_js_timing||ns.disable())};
    gia=function(a){ps.VN=function(b){g.Yb(a,function(c){c(b)})}};
    hia=function(a,b){return eia(a,b)};
    us=function(a,b){return ts(a,b)};
    vs=function(a,b,c,d){ps.aR(a,b,c,d)};
    ws=function(){return Date.now()-iia};
    jia=function(){var a=is().C,b=xs>=0?ws()-xs:-1,c=ys?ws()-zs:-1,d=As>=0?ws()-As:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];vs(637,Error(),.001);var f=b;c!=-1&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}h===void 0&&(h=e[a.length]);return d!=-1&&d>1500&&d<4E3?500:h};
    Bs=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
    Cs=function(a){return a.right-a.left};
    Ds=function(a,b,c){b instanceof g.Ee?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,typeof c==="number"&&(a.top+=c,a.bottom+=c));return a};
    kia=function(a,b,c){var d=new Bs(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
    Es=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};
    mia=function(a){var b=a!==a.top,c=a.top===Bha(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(lia,function(h){return typeof f[h]==="function"})||(e=1));
        return{Eo:f,compatibility:e,gea:d}};
    nia=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"};
    oia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Ke(b.innerWidth,b.innerHeight)).round():Vba(b||window).round()}catch(d){return new g.Ke(-12245933,-12245933)}};
    Fs=function(a,b,c){try{a&&(b=b.top);var d=oia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new Bs(f,f,f,f);var h=Xba(lf(b.document).j),l=h.x,m=h.y;return new Bs(m,l+f,m+e,l)}catch(n){return new Bs(-12245933,-12245933,-12245933,-12245933)}};
    g.Gs=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
    Hs=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.Js=function(a,b,c){if(typeof b==="string")(b=Is(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Is(c,d);f&&(c.style[f]=e)}};
    Is=function(a,b){var c=pia[b];if(!c){var d=Pba(b);c=d;a.style[d]===void 0&&(d=(g.Oc?"Webkit":Ks?"Moz":g.Ls?"ms":null)+Rba(d),a.style[d]!==void 0&&(c=d));pia[b]=c}return c};
    g.Ms=function(a,b){var c=a.style[Pba(b)];return typeof c!=="undefined"?c:a.style[Is(a,b)]||""};
    Ns=function(a,b){var c=ff(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
    Os=function(a,b){return Ns(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
    g.Qs=function(a,b,c){if(b instanceof g.Ee){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Ps(d,!1);a.style.top=g.Ps(b,!1)};
    Rs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
    qia=function(a){var b=ff(a),c=Os(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=Os(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null};
    g.Ss=function(a){var b=ff(a),c=new g.Ee(0,0);if(a==(b?ff(b):document).documentElement)return c;a=Rs(a);b=Xba(lf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
    sia=function(a,b){var c=new g.Ee(0,0),d=vf(ff(a));if(!Mc(d,"parent"))return c;do{var e=d==b?g.Ss(a):ria(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.Ts=function(a,b){a=tia(a);b=tia(b);return new g.Ee(a.x-b.x,a.y-b.y)};
    ria=function(a){a=Rs(a);return new g.Ee(a.left,a.top)};
    tia=function(a){if(a.nodeType==1)return ria(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ee(a.clientX,a.clientY)};
    g.Us=function(a,b,c){if(b instanceof g.Ke)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.Ps(b,!0);a.style.height=g.Ps(c,!0)};
    g.Ps=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};
    g.Vs=function(a){var b=uia;if(Os(a,"display")!="none")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};
    uia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Oc&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Rs(a),new g.Ke(a.right-a.left,a.bottom-a.top)):new g.Ke(b,c)};
    g.Ws=function(a,b){a.style.display=b?"":"none"};
    Xs=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
    via=function(a){return new Bs(a.top,a.right,a.bottom,a.left)};
    wia=function(a){var b=a.top||0,c=a.left||0;return new Bs(b,c+(a.width||0),b+(a.height||0),c)};
    Ys=function(a){return a!=null&&a>=0&&a<=1};
    xia=function(){var a=g.nc();return a?Zs("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 ic(a,b)})||ic(a,"OMI/")&&!ic(a,"XiaoMi/")?!0:ic(a,"Presto")&&ic(a,"Linux")&&!ic(a,"X11")&&!ic(a,"Android")&&!ic(a,"Mobi"):!1};
    yia=function(){this.C=!Ur(Pr.top);this.isMobileDevice=Tr()||uha();var a=Wr();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.zn(a[a.length-1].url)||"":"";this.j=new Bs(0,0,0,0);this.D=new g.Ke(0,0);this.G=new g.Ke(0,0);this.N=new Bs(0,0,0,0);this.frameOffset=new g.Ee(0,0);this.K=0;this.Z=!1;this.B=!(!Pr||!mia(Pr).Eo);this.update(Pr)};
    zia=function(a,b){b&&b.screen&&(a.D=new g.Ke(b.screen.width,b.screen.height))};
    Aia=function(a,b){a:{var c=a.j?new g.Ke(Cs(a.j),a.j.getHeight()):new g.Ke(0,0);b=b===void 0?Pr:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if(f.compatMode=="CSS1Compat"&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
        m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.Ke(e,d);break a}catch(t){r=new g.Ke(-12245933,-12245933);break a}r=void 0}a.G=r};
    bt=function(){var a=$s();if(a.K>0||a.Z)return!0;a=fs().B.isVisible();var b=Sr(at)===0;return a||b};
    $s=function(){return ds(yia)};
    lt=function(a){this.C=a;this.B=0;this.j=null};
    mt=function(a,b,c){this.C=a;this.Sa=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new kia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Ea="uk";this.Fa=!1;this.K=!0};
    nt=function(a,b){g.Eb(a.G,b)||(a.G.push(b),b.sA(a.j),b.Xt(a.D),b.Dq()&&(a.Y=!0))};
    Bia=function(a){a=a.j;a.yV();a.xV();var b=$s();b.N=Fs(!1,a.C,b.isMobileDevice);Aia($s(),a.C);a.D.j=a.BY()};
    Cia=function(a){a.Y=a.G.length?Zs(a.G,function(b){return b.Dq()}):!1};
    Dia=function(a){var b=g.Kb(a.G);g.Yb(b,function(c){c.Xt(a.D)})};
    ot=function(a){var b=g.Kb(a.G);g.Yb(b,function(c){c.sA(a.j)});
        a.j!=a||Dia(a)};
    pt=function(a,b,c,d){this.element=a;this.j=new Bs(0,0,0,0);this.D=new Bs(0,0,0,0);this.B=b;this.Kc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new Es(b.D,this.element,this.j,new Bs(0,0,0,0),0,0,ws(),0)};
    qt=function(a){this.G=!1;this.j=a;this.D=function(){}};
    Eia=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b};
    Fia=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
    Gia=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.j<typeof b.j?!0:typeof a.j>typeof b.j?!1:a.j<b.j};
    rt=function(){this.C=0;this.j=[];this.B=!1};
    Hia=function(a,b){(0,g.Yb)(b.j,function(c){a.add(c.B,c.j,Fia(c))})};
    tt=function(a,b){var c=c===void 0?0:c;var d=d===void 0?!0:d;Vr(b,function(e,f){d&&e===void 0||a.add(f,e,c)});
        return a};
    ut=function(a){var b=Iia;a.B&&(g.Sb(a.j,function(c,d){return Gia(d,c)?1:Gia(c,d)?-1:0}),a.B=!1);
        return cs(a.j,function(c,d){d=b(d);return""+c+(c!=""&&d!=""?"&":"")+d},"")};
    Iia=function(a){var b=a.B;a=a.j;return a===""?b:typeof a==="boolean"?a?b:"":Array.isArray(a)?a.length===0?b:b+"="+a.join():b+"="+(g.Eb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
    Jia=function(a){var b=b===void 0?!0:b;this.j=new rt;a!==void 0&&Hia(this.j,a);b&&this.j.add("v","unreleased",-16)};
    Kia=function(a){var b=[],c=[];g.Tc(a,function(d,e){if(!(e in Object.prototype)&&typeof d!="undefined")switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
        return b.concat(c)};
    Lia=function(a){a=a.toString();fs();Lha(a)};
    Mia=function(){this.j=0};
    Nia=function(a,b,c){(0,g.Yb)(a.C,function(d){var e=a.j;if(!d.j&&(d.C(b,c),d.D())){d.j=!0;var f=d.B(),h=new rt;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=ds(Mia);h.add("i",d.j++);h.add("adk",e);tt(h,f);e=new Jia(h);Lia(e)}})};
    vt=function(){this.B=this.C=this.D=this.j=0};
    wt=function(a){this.B=a=a===void 0?Oia:a;this.j=g.as(this.B,function(){return new vt})};
    xt=function(a,b){return Pia(a,function(c){return c.j},b===void 0?!0:b)};
    At=function(a,b){return zt(a,b,function(c){return c.j})};
    Qia=function(a,b){return Pia(a,function(c){return c.C},b===void 0?!0:b)};
    Bt=function(a,b){return zt(a,b,function(c){return c.C})};
    Ct=function(a,b){return zt(a,b,function(c){return c.B})};
    Ria=function(a){g.Yb(a.j,function(b){b.B=0})};
    Pia=function(a,b,c){a=g.as(a.j,function(d){return b(d)});
        return c?a:Sia(a)};
    zt=function(a,b,c){var d=g.Db(a.B,function(e){return b<=e});
        return d==-1?0:c(a.j[d])};
    Sia=function(a){return g.as(a,function(b,c,d){return c>0?d[c]-d[c-1]:d[c]})};
    Dt=function(){this.B=new wt;this.Sa=new vt;this.ra=this.N=-1;this.eb=1E3;this.Za=new wt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ea=this.Ca=-1};
    Et=function(a,b){return Qia(a.B,b===void 0?!0:b)};
    Ft=function(a,b,c,d){var e=e===void 0?!1:e;c=ts(d,c);Rr(a,b,c,{capture:e})};
    Ht=function(a,b){b=Gt(b);return b===0?0:Gt(a)/b};
    Gt=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
    Tia=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=g.If(a)||a){var d=ff(a),e=d&&vf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
    Uia=function(a,b,c){if(!a||!b)return!1;b=Ds(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Ur(window.top)&&window.top&&window.top.document&&(window=window.top);if(!nia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ff(c))&&b.defaultView&&b.defaultView.frameElement)&&Tia(b,a);var d=a===c;a=!d&&a&&Lf(a,function(e){return e===c});
        return!(b||d||a)};
    Via=function(a,b,c,d){return $s().C?!1:Cs(a)<=0||a.getHeight()<=0?!0:c&&d?hia(208,function(){return Uia(a,b,c)}):!1};
    It=function(a,b,c){g.I.call(this);this.position=Wia.clone();this.HK=this.KJ();this.VQ=-2;this.timeCreated=Date.now();this.B2=-1;this.hq=b;this.xK=null;this.sE=!1;this.ZK=null;this.opacity=-1;this.requestSource=c;this.Hea=!1;this.bR=function(){};
        this.T2=function(){};
        this.Zj=new rha;this.Zj.Fu=a;this.Zj.j=a;this.fu=!1;this.Cw={kR:null,jR:null};this.R1=!0;this.xH=null;this.EA=this.g$=!1;is().K++;this.gi=this.HP();this.t2=-1;this.Yf=null;this.hasCompleted=this.d$=!1;this.Kc=new Gr;qha(this.Kc);Xia(this);this.requestSource==1?Ir(this.Kc,"od",1):Ir(this.Kc,"od",0)};
    Xia=function(a){a=a.Zj.Fu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Yia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Qba()):!!a.getAttribute("data-"+Qba());b&&($s().B=!0)};
    Jt=function(a,b){b!=a.EA&&(a.EA=b,a=$s(),b?a.K++:a.K>0&&a.K--)};
    Zia=function(a,b){if(a.Yf){if(b.getName()===a.Yf.getName())return;a.Yf.dispose();a.Yf=null}b=b.create(a.Zj.j,a.Kc,a.Dq());if(b=b!=null&&b.oN()?b:null)a.Yf=b};
    $ia=function(a,b,c){if(!a.xK||a.hq==-1||b.B===-1||a.xK.B===-1)return 0;a=b.B-a.xK.B;return a>c?0:a};
    aja=function(a,b,c){if(a.Yf){a.Yf.nt();var d=a.Yf.N,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.ZK=new g.Ee(h.left-f.left,h.top-f.top)}f=a.kM()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.rY(d);a.xK=d;a.Ta(f,b,c,!1,h,e,d.Z)}};
    bja=function(a){if(a.sE&&a.xH){var b=Jr(a.Kc,"od")==1,c=$s().j,d=a.xH,e=a.Yf?a.Yf.getName():"ns",f=a.ZK,h=new g.Ke(Cs(c),c.getHeight());c=a.kM();a={pea:e,ZK:f,gfa:h,kM:c,Be:a.gi.Be,afa:b};if(b=d.B){b.nt();e=b.N;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Ee(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={pea:b.getName(),ZK:h,gfa:l,kM:c,afa:!1,Be:e}}else c=null;c&&Nia(d,a,c)}};
    cja=function(a,b,c){b&&(a.bR=b);c&&(a.T2=c)};
    g.Kt=function(){};
    g.Lt=function(a){return{value:a,done:!1}};
    dja=function(){this.D=this.j=this.C=this.B=this.G=0};
    eja=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};
    fja=function(){Br.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
    Mt=function(a){return Ys(a.volume)&&a.volume>0};
    Nt=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d;
        return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return gja(f,b,c)}};
    Ot=function(a,b){return function(c){return b(c)?c[a]:void 0}};
    hja=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||a[c]===void 0&&!b.hasOwnProperty("e"))return!0;return!1}};
    gja=function(a,b,c){return c===void 0||c?g.Pt(a,function(d,e){return g.Eb(b,e)}):g.as(b,function(d,e,f){return a.slice(e>0?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
    ija=function(){this.B=this.j=""};
    jja=function(){};
    Qt=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else g.ld(c,a);return ut(tt(new rt,c))};
    kja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)this.B[b][1]>0&&(this.j[b]=0);this.C=0};
    Rt=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];d>0&&a.j[b]==0&&(a.j[b]=1)};
    lja=function(a){var b=g.bd(a.B),c=0,d;for(d in a.j)g.Eb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c};
    mja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(d==1||d==2)b+=a.B[c][1]}return b};
    St=function(){this.j=this.B=0};
    Tt=function(){Dt.call(this);this.C=new vt;this.La=this.Y=this.Fa=0;this.Z=-1;this.gb=new vt;this.G=new vt;this.j=new wt;this.K=this.D=-1;this.qa=new vt;this.eb=2E3;this.Ma=new St;this.Wa=new St;this.Va=new St};
    Ut=function(a,b,c){var d=a.La;ys||c||a.Z==-1||(d+=b-a.Z);return d};
    nja=function(){this.C=!1};
    Vt=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0};
    Wt=function(a,b){Vt.call(this,a,b);this.N=[]};
    oja=function(){};
    Xt=function(){};
    Yt=function(a,b,c,d){pt.call(this,a,b,c,d)};
    Zt=function(a,b,c){pt.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
    $t=function(a){return[a.top,a.left,a.bottom,a.right]};
    au=function(a,b,c,d,e,f){f=f===void 0?new Xt:f;It.call(this,b,c,d);this.pS=e;this.UO=0;this.oi={};this.Lg=new kja;this.q3={};this.aj="";this.eb=null;this.Ab=!1;this.j=[];this.Wr=f.B();this.K=f.C();this.D=null;this.C=-1;this.Sa=this.Y=void 0;this.ra=this.qa=0;this.Ea=-1;this.gb=this.Za=!1;this.Fa=this.Z=this.B=this.EC=this.Jb=0;new wt;this.Ma=this.Va=0;this.Wa=-1;this.xk=0;this.N=g.Jd;this.Ca=[this.KJ()];this.Ob=2;this.Py={};this.Py.pause="p";this.Py.resume="r";this.Py.skip="s";this.Py.mute="m";this.Py.unmute=
        "um";this.Py.exitfullscreen="ef";this.G=null;this.rb=this.Bb=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.La=0};
    bu=function(a){a.hasCompleted=!0;a.xk!=0&&(a.xk=3)};
    cu=function(a){return a===void 0?a:Number(a)?Xs(a,3):0};
    du=function(a,b){return a.Ca[b!=null&&b<a.Ca.length?b:a.Ca.length-1]};
    pja=function(a){var b=!!Jr(is().Kc,"umt");return a.Y||!b&&!a.Sa?0:1};
    qja=function(a,b){a.Ao()?b=0:a.hq==-1?b=0:(b-=a.hq,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.qa;var d=c-a.qa,e=0;d>=0?(a.ra+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);d!=0&&(a.ra=0);a.Wa==-1&&d>0&&(a.Wa=As>=0?ws()-As:-1);a.qa=c;return e};
    rja=function(a,b){Zs(a.K,function(c){return c.D==b.D})||a.K.push(b)};
    sja=function(a){var b=At(a.zj().j,1);return eu(a,b)};
    eu=function(a,b,c){return b>=15E3?!0:a.Za?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Ea>0?b>=a.Ea:!1:!1};
    tja=function(a){var b=Xs(a.gi.Be,2),c=a.Lg.C,d=a.gi,e=du(a),f=cu(e.D),h=cu(e.K),l=cu(d.volume),m=Xs(e.N,2),n=Xs(e.ra,2),p=Xs(d.Be,2),q=Xs(e.Ca,2),r=Xs(e.Ea,2);d=Xs(d.Kk,2);a=a.St().clone();a.round();e=Et(e,!1);return{ffa:b,nF:c,LK:f,CK:h,UD:l,MK:m,EK:n,Be:p,PK:q,FK:r,Kk:d,position:a,SK:e}};
    vja=function(a,b){uja(a.j,b,function(){return{ffa:0,nF:void 0,LK:-1,CK:-1,UD:-1,MK:-1,EK:-1,Be:-1,PK:-1,FK:-1,Kk:-1,position:void 0,SK:[]}});
        a.j[b]=tja(a)};
    uja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
    gu=function(a,b,c){var d=a.q3[b];if(d!=null)return d;d=wja(a,b);var e=fd(fu,function(f){return f==b});
        a=xja(a,d,d,c,yja[fu[e]]);b=="fully_viewable_audible_half_duration_impression"&&(a.std="csm");return a};
    hu=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
    xja=function(a,b,c,d,e){if(a.fu)return{"if":0,vs:0};var f=a.St().clone();f.round();var h=$s(),l=is(),m=a.zj(),n=a.Yf?a.Yf.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.timeCreated;p.p=[f.top,f.left,f.bottom,f.right];p.tos=xt(m.B,!1);p.mtos=Et(m);p.mcvt=m.Sa.C;p.ps=void 0;f=Ut(m,ws(),a.Ao());p.vht=f;p.mut=m.gb.C;p.a=cu(a.gi.volume);p.mv=cu(m.K);p.fs=a.EA?1:0;p.ft=m.qa.j;p.at=m.G.j;p.as=m.D>0?1:0;p.atos=xt(m.j);p.ssb=xt(m.Za,!1);p.amtos=Qia(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;n=="nio"&&
    (p.nio=1,p.avms="nio");p.gmm="4";p.gdr=eu(a,m.C.j,!0)?1:0;p.efpf=a.Ob;if(n=="gsv"||n=="nis")n=a.Yf,n.G>0&&(p.nnut=n.G);p.tcm=pja(a);p.nmt=a.Va;p.bt=a.Ma;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Lg.C;a.j.length>=1&&(p.i0=a.j[0].nF,p.a0=[a.j[0].UD],p.c0=[a.j[0].Be],p.ss0=[a.j[0].Kk],n=a.j[0].position,p.p0=n?$t(n):void 0);a.j.length>=2&&(p.i1=a.j[1].nF,p.a1=hu(a.j[1].LK,a.j[1].UD,a.j[1].CK),p.c1=hu(a.j[1].MK,a.j[1].Be,a.j[1].EK),p.ss1=hu(a.j[1].PK,a.j[1].Kk,a.j[1].FK),n=a.j[1].position,
        p.p1=n?$t(n):void 0,p.mtos1=a.j[1].SK);a.j.length>=3&&(p.i2=a.j[2].nF,p.a2=hu(a.j[2].LK,a.j[2].UD,a.j[2].CK),p.c2=hu(a.j[2].MK,a.j[2].Be,a.j[2].EK),p.ss2=hu(a.j[2].PK,a.j[2].Kk,a.j[2].FK),n=a.j[2].position,p.p2=n?$t(n):void 0,p.mtos2=a.j[2].SK);a.j.length>=4&&(p.i3=a.j[3].nF,p.a3=hu(a.j[3].LK,a.j[3].UD,a.j[3].CK),p.c3=hu(a.j[3].MK,a.j[3].Be,a.j[3].EK),p.ss3=hu(a.j[3].PK,a.j[3].Kk,a.j[3].FK),n=a.j[3].position,p.p3=n?$t(n):void 0,p.mtos3=a.j[3].SK);p.cs=mja(a.Lg);b&&(p.ic=lja(a.Lg),p.dvpt=m.C.B,p.dvs=
        Ct(m.B,.5),p.dfvs=Ct(m.B,1),p.davs=Ct(m.j,.5),p.dafvs=Ct(m.j,1),c&&(m.C.B=0,Ria(m.B),Ria(m.j)),a.Ur()&&(p.dtos=m.Fa,p.dav=m.Y,p.dtoss=a.UO+1,c&&(m.Fa=0,m.Y=0,a.UO++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Cs(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.EC&&(p.vds=a.EC);if(a.K.length>0||a.Wr)b=g.Kb(a.K),a.Wr&&b.push(a.Wr),p.pings=g.as(b,function(q){return q.toString()});
        b=g.as(g.Pt(a.K,function(q){return q.K()}),function(q){return q.getId()});
        vaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Fa&&(p.vmiec=a.Fa);p.avms=a.Yf?a.Yf.getName():"ns";a.Yf&&g.ld(p,a.Yf.Ot());d?(p.c=Xs(a.gi.Be,2),p.ss=Xs(a.gi.Kk,2)):p.tth=ws()-zja;p.mc=Xs(m.ra,2);p.nc=Xs(m.N,2);p.mv=cu(m.K);p.nv=cu(m.D);p.lte=Xs(a.VQ,2);d=du(a,e);Et(m);p.qmtos=Et(d);p.qnc=Xs(d.N,2);p.qmv=cu(d.K);p.qnv=cu(d.D);p.qas=d.D>0?1:0;p.qi=a.aj;p.avms||(p.avms="geo");p.psm=m.Ma.j;p.psv=m.Ma.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=oha(l.Kc);l.length&&(p.veid=l);a.G&&g.ld(p,
            eja(a.G));p.avas=a.yJ();p.vs=a.EY();p.co=Aja(a);return p};
    wja=function(a,b){if(g.Eb(Bja,b))return!0;var c=a.oi[b];return c!==void 0?(a.oi[b]=!0,!c):!1};
    Aja=function(a){var b=a.La.toString(10).padStart(2,"0");b=""+a.Kb+b;a.La<99&&a.La++;return b};
    Dja=function(){this.j={};var a=vf();iu(this,a,document);var b=Cja();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){}};
    Cja=function(){var a=document.documentElement;try{if(!Ur(vf().top))return"2";var b=[],c=vf(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}};
    iu=function(a,b,c){Ft(c,"mousedown",function(){return Eja(a)},301);
        Ft(b,"scroll",function(){return Fja(a)},302);
        Ft(c,"touchmove",function(){return Gja(a)},303);
        Ft(c,"mousemove",function(){return Hja(a)},304);
        Ft(c,"keydown",function(){return Ija(a)},305)};
    Eja=function(a){g.Tc(a.j,function(b){b.C>1E5||++b.C})};
    Fja=function(a){g.Tc(a.j,function(b){b.j>1E5||++b.j})};
    Gja=function(a){g.Tc(a.j,function(b){b.j>1E5||++b.j})};
    Ija=function(a){g.Tc(a.j,function(b){b.B>1E5||++b.B})};
    Hja=function(a){g.Tc(a.j,function(b){b.D>1E5||++b.D})};
    Jja=function(){this.j=[];this.B=[]};
    ju=function(a,b){return g.Cb(a.j,function(c){return c.aj==b})};
    Kja=function(a,b){return b?g.Cb(a.j,function(c){return c.Zj.Fu==b}):null};
    Lja=function(a,b){return g.Cb(a.B,function(c){return c.Sp()==2&&c.aj==b})};
    lu=function(){var a=ku;return a.j.length==0?a.B:a.B.length==0?a.j:g.Jb(a.B,a.j)};
    Mja=function(a,b){a=b.Sp()==1?a.j:a.B;var c=Bb(a,function(d){return d==b});
        return c!=-1?(a.splice(c,1),b.Yf&&b.Yf.jI(),b.dispose(),!0):!1};
    Nja=function(a){var b=ku;if(Mja(b,a)){switch(a.Sp()){case 0:var c=function(){return null};
        case 2:c=function(){return Lja(b,a.aj)};
            break;case 1:c=function(){return ju(b,a.aj)}}for(var d=c();d;d=c())Mja(b,d)}};
    Oja=function(a){var b=ku;a=g.Pt(a,function(c){return!Kja(b,c.Zj.Fu)});
        b.j.push.apply(b.j,g.ra(a))};
    Pja=function(a){var b=[];g.Yb(a,function(c){Zs(ku.j,function(d){return d.Zj.Fu===c.Zj.Fu&&d.aj===c.aj})||(ku.j.push(c),b.push(c))})};
    mu=function(){this.j=this.B=null};
    Qja=function(a,b){function c(d,e){b(d,e)}
        if(a.B==null)return!1;a.j=g.Cb(a.B,function(d){return d!=null&&d.zV()});
        a.j&&(a.j.init(c)?Bia(a.j.j):b(a.j.j.gA(),a.j));return a.j!=null};
    nu=function(a){a=Rja(a);qt.call(this,a.length?a[a.length-1]:new mt(Pr,0));this.C=a;this.B=null};
    Rja=function(a){if(!a.length)return[];a=(0,g.Pt)(a,function(c){return c!=null&&c.qD()});
        for(var b=1;b<a.length;b++)nt(a[b-1],a[b]);return a};
    ou=function(a,b,c,d){pt.call(this,a,b,c,d);this.Y=this.Z=this.G=this.K=this.C=null};
    pu=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
    Tja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=is().j.j;a.C=new c.IntersectionObserver(hs(d,function(e){return qu(a,e)}),Sja);
        d=hs(d,function(){a.C.unobserve(b);a.C.observe(b);qu(a,pu(a))});
        c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Ua.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);qu(a,pu(a));return!0};
    qu=function(a,b){try{if(b.length){a.Z||(a.Z=ws());var c=Uja(b),d=sia(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new Bs(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=via(c.intersectionRect);a.D=Ds(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.jI(),vs(299,l)}};
    Uja=function(a){return cs(a,function(b,c){return b.time>c.time?b:c},a[0])};
    ru=function(a){a=a===void 0?Pr:a;qt.call(this,new mt(a,2))};
    tu=function(){var a=Vja();mt.call(this,Pr.top,a,"geo")};
    Vja=function(){is();var a=$s();return a.C||a.B?0:2};
    Wja=function(){};
    uu=function(){this.done=!1;this.j={X6:0,GW:0,Crb:0,KX:0,rQ:-1,K7:0,J7:0,L7:0,mea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new lt(this)};
    wu=function(){var a=vu;a.K||(a.K=!0,Xja(a,function(){return a.D.apply(a,g.ra(g.Ja.apply(0,arguments)))}),a.D())};
    Yja=function(){ds(Wja);var a=ds(mu);a.j!=null&&a.j.j?Bia(a.j.j):$s().update(Pr)};
    xu=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{Yja();var d=ws();is().G=d;if(ds(mu).j!=null)for(var e=0;e<b.length;e++)aja(b[e],d,c);for(d=0;d<b.length;d++)bja(b[d]);++a.j.KX}finally{c?g.Yb(b,function(f){f.gi.Be=0}):a.B.schedule()}}};
    Xja=function(a,b){if(!a.G){b=ts(142,b);fs();var c;at.visibilityState?c="visibilitychange":at.mozVisibilityState?c="mozvisibilitychange":at.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Rr(at,c,b,{capture:!1})&&(a.G=b)}};
    Zja=function(){var a=ds(mu);if(a.j!=null){var b=a.j;g.Yb(lu(),function(c){return Zia(c,b)})}};
    $ja=function(a,b){a=a.N;ys&&(a+=b-zs);return a};
    aka=function(a){a=a===void 0?function(){return{}}:a;
        ps.RX="av-js";os.j=.01;gia([function(b){var c=is(),d={};d=(d.bin=c.B,d.type="error",d);c=Kr(c.Kc);if(!vu.C){var e=vu,f=Pr.document,h=xs>=0?ws()-xs:-1,l=ws();e.j.rQ==-1&&(h=l);var m=$s(),n=is(),p=Kr(n.Kc),q=lu();try{if(q.length>0){var r=m.j;r&&(p.bs=[Cs(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Pr.screen&&(p.scs=[Pr.screen.width,Pr.screen.height])}else p.url=encodeURIComponent(Pr.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
            p.tt=h;p.pt=xs;p.bin=n.B;Pr.google_osd_load_pub_page_exp!==void 0&&(p.olpp=Pr.google_osd_load_pub_page_exp);p.deb=[1,e.j.X6,e.j.GW,e.j.KX,e.j.rQ,0,e.B.B,e.j.K7,e.j.J7,e.j.L7,e.j.mea,-1].join(";");p.tvt=$ja(e,l);m.B&&(p.inapp=1);if(Pr!==null&&Pr!=Pr.top){q.length>0&&(p.iframe_loc=encodeURIComponent(Pr.location.href.substring(0,512)));var u=m.N;p.is=[Cs(u),u.getHeight()]}}catch(w){p.error=1}vu.C=p}r=g.jd(vu.C);t=is().j;Jr(t.C,"prf")==1?(u=new gs,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=Vj(u,1,wi(e.D+
            f),0),e=t.j,u=Vj(u,5,Ai(e.j>-1?e.B+1:e.B),0),u=Vj(u,2,Fi(t.B.j.C()),"0"),u=Vj(u,3,Fi(t.B.j.B()),"0"),t=Vj(u,4,Fi(t.B.j.j()),"0"),u={},t=(u.pf=g.Fg(t.j()),u)):t={};g.ld(r,t);g.ld(b,d,c,r,a())}])};
    cka=function(){var a=bka||Pr;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};
    yu=function(){var a="youtube.player.web_20240623_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240623_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240623_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240623_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20240623_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null};
    dka=function(){return"av.default_js".includes("ima_html5_sdk")?{Hp:"ima",Lp:null}:"av.default_js".includes("ima_native_sdk")?{Hp:"nima",Lp:null}:"av.default_js".includes("admob-native-video-javascript")?{Hp:"an",Lp:null}:"youtube.player.web_20240623_00_RC00".includes("cast_js_sdk")?{Hp:"cast",Lp:yu()}:"youtube.player.web_20240623_00_RC00".includes("youtube.player.web")?{Hp:"yw",Lp:yu()}:"youtube.player.web_20240623_00_RC00".includes("outstream_web_client")?{Hp:"out",Lp:yu()}:"youtube.player.web_20240623_00_RC00".includes("drx_rewarded_web")?
        {Hp:"r",Lp:yu()}:"youtube.player.web_20240623_00_RC00".includes("gam_native_web_video")?{Hp:"n",Lp:yu()}:"youtube.player.web_20240623_00_RC00".includes("admob_interstitial_video")?{Hp:"int",Lp:yu()}:{Hp:"j",Lp:null}};
    Bu=function(a,b){var c={sv:"962"};zu!==null&&(c.v=zu);c.cb=eka;c.nas=ku.j.length;c.msg=a;b!==void 0&&(a=fka(b))&&(c.e=Au[a]);return c};
    Cu=function(a){return dc(a,"custom_metric_viewable")};
    fka=function(a){var b=Cu(a)?"custom_metric_viewable":a.toLowerCase();return fd(fu,function(c){return c==b})};
    gka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
    jka=function(a){try{var b=a.split(",");return b.length>g.bd(hka).length?null:cs(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||ika[d[0]]===void 0||!ika[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
    kka=function(a,b){if(a.j==void 0)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=a===void 0?Pr:a;qt.call(this,new mt(a,2))};
    Mu=function(a,b,c){Zt.call(this,a,b,c)};
    Nu=function(a){a=a===void 0?Pr:a;qt.call(this,new mt(a,2))};
    Ou=function(){mt.call(this,Pr,2,"mraid");this.Ma=0;this.ra=this.Ca=!1;this.N=null;this.B=mia(this.C);this.D.j=new Bs(0,0,0,0);this.La=!1};
    Pu=function(a,b,c){a.Xu("addEventListener",b,c)};
    oka=function(a){is().D=!!a.Xu("isViewable");Pu(a,"viewableChange",lka);a.Xu("getState")==="loading"?Pu(a,"ready",mka):nka(a)};
    nka=function(a){typeof a.B.Eo.AFMA_LIDAR==="string"?(a.Ca=!0,pka(a)):(a.B.compatibility=3,a.N="nc",a.xj("w"))};
    pka=function(a){a.ra=!1;var b=Jr(is().Kc,"rmmt")==1,c=!!a.Xu("isViewable");(b?!c:1)&&fs().setTimeout(us(524,function(){a.ra||(qka(a),vs(540,Error()),a.N="mt",a.xj("w"))}),500);
        rka(a);Pu(a,a.B.Eo.AFMA_LIDAR,ska)};
    rka=function(a){var b=Jr(is().Kc,"sneio")==1,c=a.B.Eo.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Eo.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Eo.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Eo.AFMA_LIDAR_EXP_1=!b)};
    qka=function(a){a.Xu("removeEventListener",a.B.Eo.AFMA_LIDAR,ska);a.Ca=!1};
    tka=function(a,b){if(a.Xu("getState")==="loading")return new g.Ke(-1,-1);b=a.Xu(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)};
    mka=function(){try{var a=ds(Ou);a.Xu("removeEventListener","ready",mka);nka(a)}catch(b){vs(541,b)}};
    ska=function(a,b){try{var c=ds(Ou);c.ra=!0;var d=a?new Bs(a.y,a.x+a.width,a.y+a.height,a.x):new Bs(0,0,0,0);var e=ws(),f=bt();var h=new kia(e,f,c);h.j=d;h.volume=b;c.Xt(h)}catch(l){vs(542,l)}};
    lka=function(a){var b=is(),c=ds(Ou);a&&!b.D&&(b.D=!0,c.La=!0,c.N&&c.xj("w",!0))};
    Qu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.M9,a.firstquartile=this.H9,a.midpoint=this.J9,a.thirdquartile=this.N9,a.complete=this.E9,a.error=this.F9,a.pause=this.oS,a.resume=this.m1,a.skip=this.L9,a.viewable_impression=this.Tp,a.mute=this.CC,a.unmute=this.CC,a.fullscreen=this.I9,a.exitfullscreen=this.G9,a.fully_viewable_audible_half_duration_impression=this.Tp,a.measurable_impression=this.Tp,a.abandon=this.oS,a.engagedview=this.Tp,a.impression=this.Tp,a.creativeview=
        this.Tp,a.progress=this.CC,a.custom_metric_viewable=this.Tp,a.bufferstart=this.oS,a.bufferfinish=this.m1,a.audio_measurable=this.Tp,a.audio_audible=this.Tp,a);a={};this.N=(a.overlay_resize=this.K9,a.abandon=this.dQ,a.close=this.dQ,a.collapse=this.dQ,a.overlay_unmeasurable_impression=function(b){return gu(b,"overlay_unmeasurable_impression",bt())},a.overlay_viewable_immediate_impression=function(b){return gu(b,"overlay_viewable_immediate_impression",bt())},a.overlay_unviewable_impression=function(b){return gu(b,
        "overlay_unviewable_impression",bt())},a.overlay_viewable_end_of_session_impression=function(b){return gu(b,"overlay_viewable_end_of_session_impression",bt())},a);
        is().B=3;uka(this)};
    Ru=function(a,b,c,d){a=a.OG(null,d,!0,b);a.D=c;Oja([a]);return a};
    vka=function(a,b,c){mha(b);var d=a.j;g.Yb(b,function(e){var f=g.as(e.criteria,function(h){var l=jka(h);if(l==null)h=null;else if(h=new gka,l.visible!=null&&(h.j=l.visible/100),l.audible!=null&&(h.B=l.audible==1),l.time!=null){var m=l.timetype=="mtos"?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h});
        Zs(f,function(h){return h==null})||rja(c,new Du(e.id,e.event,f,d))})};
    wka=function(){var a=[],b=is();a.push(ds(tu));Jr(b.Kc,"mvp_lv")&&a.push(ds(Ou));b=[new Lu,new Nu];b.push(new nu(a));b.push(new ru(Pr));return b};
    xka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=ws(),c=is(),d=$s();xs=b;c.C=79463069;a.B!=="o"&&(bka=Bha(Pr));if(Mha()){vu.j.GW=0;vu.j.rQ=ws()-b;var e=wka(),f=ds(mu);f.B=e;Qja(f,function(){Su()})?vu.done||(Zja(),nt(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=ds(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(a.j==null)return b.EC|=4,!1;a=yka(a.j,c,b);b.EC|=a;return a==0};
    Su=function(){var a=[new ru(Pr)],b=ds(mu);b.B=a;Qja(b,function(){Vu("i")})?vu.done||(Zja(),wu()):Vu("i")};
    zka=function(a,b){if(!a.Ab){var c=gu(a,"start",bt());c=a.pS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="962";zu!==null&&(d.v=zu);Bn(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)});
        b=cka();Bn(b,function(e,f){return d[e]=encodeURIComponent(f)});
        b="//pagead2.googlesyndication.com/pagead/gen_204?"+ut(tt(new rt,d));Lia(b);a.Ab=!0}};
    Yu=function(a,b,c){xu(vu,[a],!bt());vja(a,c);c!=4&&uja(a.Ca,c,a.KJ);return gu(a,b,bt())};
    uka=function(a){aka(function(){var b=Aka();a.B!=null&&(b.sdk=a.B);var c=ds(mu);c.j!=null&&(b.avms=c.j.getName());return b})};
    Bka=function(a,b,c,d){var e=Kja(ku,c);e!==null&&e.aj!==b&&(a.eJ(e),e=null);e||(b=a.OG(c,ws(),!1,b),ku.B.length==0&&(is().C=79463069),Pja([b]),e=b,e.D=Wu(a),d&&(e.eb=d));return e};
    Cka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))};
    Aka=function(){var a=$s(),b={},c={},d={};return Object.assign({},(b.sv="962",b),zu!==null&&(c.v=zu,c),(d["if"]=a.C?"1":"0",d.nas=String(ku.j.length),d))};
    Dka=function(a){Vt.call(this,"audio_audible",a)};
    Eka=function(a){Wt.call(this,"audio_measurable",a)};
    Zu=function(){Gu.apply(this,arguments)};
    Fka=function(){};
    Gka=function(a){this.j=a};
    yka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},zu!==null&&(d.v=zu,d),(e.sv="962",e.cb=eka,e.e=Hka(b),e));e=gu(c,b,bt());g.ld(d,e);c.q3[b]=e;d=c.Sp()==2?Kia(d).join("&"):c.pS.j(d).j;try{return a(c.aj,d,b),0}catch(f){return 2}}else return 1};
    Hka=function(a){var b=Cu(a)?"custom_metric_viewable":a;a=fd(fu,function(c){return c==b});
        return Au[a]};
    $u=function(){Qu.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
    Ika=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&vka(a,c,b)};
    Jka=function(a,b,c){var d=ju(ku,b);d||(d=c.opt_nativeTime||-1,d=Ru(a,b,Wu(a),d),c.opt_osdId&&(d.eb=c.opt_osdId));return d};
    Kka=function(a,b,c){var d=ju(ku,b);d||(d=Ru(a,b,"n",c.opt_nativeTime||-1));return d};
    Lka=function(a,b){var c=ju(ku,b);c||(c=Ru(a,b,"h",-1));return c};
    Mka=function(a){is();switch(Wu(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
    Pka=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.ld(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.SJ(b,c);c=f?f.pS:a.OO();if(e.opt_bounds)return c.j(Bu("ol",d));if(d!==void 0)if(fka(d)!==void 0)if(Tu)a=Bu("ue",d);else if(xka(a),Uu=="i")a=Bu("i",d),a["if"]=0;else if(b=a.SJ(b,e)){b:{Uu=="i"&&(b.fu=!0);f=e.opt_fullscreen;f!==void 0&&Jt(b,!!f);var h;if(f=!$s().B)(f=ic(g.nc(),"CrKey")&&!(ic(g.nc(),"CrKey")&&ic(g.nc(),"SmartSpeaker"))||ic(g.nc(),"PlayStation")||ic(g.nc(),"Roku")||xia()||ic(g.nc(),
        "Xbox"))||(f=g.nc(),f=ic(f,"AppleTV")||ic(f,"Apple TV")||ic(f,"CFNetwork")||ic(f,"tvOS")),f||(f=g.nc(),f=ic(f,"sdk_google_atv_x86")||ic(f,"Android TV")),f=!f;f&&(fs(),f=Sr(at)===0);if(h=f){switch(b.Sp()){case 1:zka(b,"pv");break;case 2:a.KS(b)}Vu("pv")}f=d.toLowerCase();if(h=!h)h=Jr(is().Kc,"ssmol")&&f==="loaded"?!1:g.Eb(Nka,f);if(h&&b.xk==0){Uu!="i"&&(vu.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;As=h=typeof h==="number"?h:ws();b.sE=!0;var l=bt();b.xk=1;b.oi={};b.oi.start=!1;b.oi.firstquartile=
        !1;b.oi.midpoint=!1;b.oi.thirdquartile=!1;b.oi.complete=!1;b.oi.resume=!1;b.oi.pause=!1;b.oi.skip=!1;b.oi.mute=!1;b.oi.unmute=!1;b.oi.viewable_impression=!1;b.oi.measurable_impression=!1;b.oi.fully_viewable_audible_half_duration_impression=!1;b.oi.fullscreen=!1;b.oi.exitfullscreen=!1;b.UO=0;l||(b.zj().Z=h);xu(vu,[b],!l)}(h=b.Py[f])&&Rt(b.Lg,h);Jr(is().Kc,"fmd")||g.Eb(Oka,f)&&b.Wr&&b.Wr.B(b,null);switch(b.Sp()){case 1:var m=Cu(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,
        b,e,d),Jr(is().Kc,"fmd")&&g.Eb(Oka,f)&&b.Wr&&b.Wr.B(b,null),d!==void 0)){e=Bu(void 0,f);g.ld(e,d);d=e;break b}d=void 0}b.xk==3&&a.eJ(b);a=d}else a=Bu("nf",d);else a=void 0;else Tu?a=Bu("ue"):f?(a=Bu(),g.ld(a,xja(f,!0,!1,!1))):a=Bu("nf");return typeof a==="string"?c.j():c.j(a)};
    Qka=function(a,b){b&&(a.C=b)};
    Rka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
    Ska=function(a,b,c){c=c===void 0?{}:c;a=Pka(ds($u),b,c,a);return Rka(a)};
    Tka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}};
    Wka=function(a){if(g.ec(g.bf(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.lq(a)}catch(c){return g.Cb(Uka,function(d){return a.search(d)>0})!=null}return b.K.match(Vka)?!0:g.Cb(Uka,function(c){return a.match(c)!=null})!=null};
    g.av=function(a,b){return a.replace(Xka,function(c,d){try{var e=g.hd(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.ec(g.bf(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
    Yka=function(a,b){return Object.is(a,b)};
    g.cv=function(a){var b=bv;bv=a;return b};
    $ka=function(a){if(a.Xi!==void 0){var b=g.dv;g.dv=!0;try{for(var c=g.v(a.Xi),d=c.next();!d.done;d=c.next()){var e=d.value;e.al||g.Zka(e)}}finally{g.dv=b}}};
    ala=function(){var a;return((a=bv)==null?void 0:a.Ct)!==!1};
    g.Zka=function(a){a.al=!0;$ka(a);var b;(b=a.eE)==null||b.call(a,a)};
    g.bla=function(a){a&&(a.UK=0);return g.cv(a)};
    g.dla=function(a,b){g.cv(b);if(a&&a.vg!==void 0&&a.Wm!==void 0&&a.gy!==void 0){if(g.ev(a))for(b=a.UK;b<a.vg.length;b++)g.fv(a.vg[b],a.Wm[b]);for(;a.vg.length>a.UK;)a.vg.pop(),a.gy.pop(),a.Wm.pop()}};
    fla=function(a,b,c){ela(a);if(a.Xi.length===0&&a.vg!==void 0)for(var d=0;d<a.vg.length;d++)a.Wm[d]=fla(a.vg[d],a,d);a.Cu.push(c);return a.Xi.push(b)-1};
    g.fv=function(a,b){ela(a);if(a.Xi.length===1&&a.vg!==void 0)for(var c=0;c<a.vg.length;c++)g.fv(a.vg[c],a.Wm[c]);c=a.Xi.length-1;a.Xi[b]=a.Xi[c];a.Cu[b]=a.Cu[c];a.Xi.length--;a.Cu.length--;b<a.Xi.length&&(c=a.Cu[b],a=a.Xi[b],g.gv(a),a.Wm[c]=b)};
    g.ev=function(a){var b,c;return a.GO||((c=a==null?void 0:(b=a.Xi)==null?void 0:b.length)!=null?c:0)>0};
    g.gv=function(a){a.vg!=null||(a.vg=[]);a.Wm!=null||(a.Wm=[]);a.gy!=null||(a.gy=[])};
    ela=function(a){a.Xi!=null||(a.Xi=[]);a.Cu!=null||(a.Cu=[])};
    gla=function(){throw Error();};
    ila=function(a){function b(){if(g.dv)throw Error("");if(bv!==null){var d=bv.UK++;g.gv(bv);d<bv.vg.length&&bv.vg[d]!==c&&g.ev(bv)&&g.fv(bv.vg[d],bv.Wm[d]);bv.vg[d]!==c&&(bv.vg[d]=c,bv.Wm[d]=g.ev(bv)?fla(c,bv,d):0);bv.gy[d]=c.version}return c.value}
        var c=Object.create(hla);c.value=a;b[g.hv]=c;return b};
    lla=function(a,b){ala()||gla();if(!a.dP(a.value,b)){a.value=b;a.version++;g.jla++;$ka(a);var c;(c=g.kla)==null||c()}};
    g.mla=function(){};
    nla=function(a){return Object.create(Object.assign({},g.tv,{Ct:a}))};
    vv=function(a){g.Ed.call(this);var b=this;this.G=this.B=0;this.Bo=a!=null?a:{Ri:function(e,f){return setTimeout(e,f)},
        Wj:function(e){clearTimeout(e)}};
        var c,d;this.j=(d=(c=window.navigator)==null?void 0:c.onLine)!=null?d:!0;this.C=function(){return g.G(function(e){return g.z(e,uv(b),0)})};
        window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.rf()};
    ola=function(){var a=g.wv;vv.instance||(vv.instance=new vv(a));return vv.instance};
    uv=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.G(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=(e=d)==null?void 0:e.signal,h=!1,g.Ba(l,2,3),d&&(a.B=a.Bo.Ri(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
        signal:f}),5);case 5:h=!0;case 3:g.Ea(l);a.D=void 0;a.B&&(a.Bo.Wj(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Fa(l,0);break;case 2:g.Da(l),h=!1,l.Ia(3)}})})};
    pla=function(){this.data=[];this.j=-1};
    qla=function(a){a.j===-1&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
        return a.j};
    xv=function(a){a.setAttribute("role","link")};
    yv=function(a,b){Array.isArray(b)&&(b=b.join(" "));b===""||b==void 0?(rla||(b={},rla=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=rla,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
    sla=function(a){a=a.getAttribute("aria-label");return a==null||a==void 0?"":String(a)};
    g.zv=function(a,b,c){g.I.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.ib)(this.T5,this)};
    tla=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
    ula=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
    g.Av=function(a,b,c){g.I.call(this);this.j=a;this.Vi=b||0;this.B=c;this.C=(0,g.ib)(this.BV,this)};
    g.Bv=function(a,b){a.isActive()||a.start(b)};
    g.Cv=function(a){a.stop();a.BV()};
    g.Dv=function(a){a.isActive()&&g.Cv(a)};
    g.vla=function(a,b){this.j=a[g.Ua.Symbol.iterator]();this.B=b};
    wla=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
    Ev=function(a){return a.classList?a.classList:wla(a).match(/\S+/g)||[]};
    g.Fv=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
    g.Gv=function(a,b){return a.classList?a.classList.contains(b):g.Eb(Ev(a),b)};
    g.Hv=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Gv(a,b)){var c=wla(a);g.Fv(a,c+(c.length>0?" "+b:b))}};
    g.Iv=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Hv(a,e)});
    else{var c={};Array.prototype.forEach.call(Ev(a),function(e){c[e]=!0});
        Array.prototype.forEach.call(b,function(e){c[e]=!0});
        b="";for(var d in c)b+=b.length>0?" "+d:d;g.Fv(a,b)}};
    g.Jv=function(a,b){a.classList?a.classList.remove(b):g.Gv(a,b)&&g.Fv(a,Array.prototype.filter.call(Ev(a),function(c){return c!=b}).join(" "))};
    g.Kv=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Jv(a,c)}):g.Fv(a,Array.prototype.filter.call(Ev(a),function(c){return!g.Eb(b,c)}).join(" "))};
    g.Lv=function(a,b,c){c?g.Hv(a,b):g.Jv(a,b)};
    xla=function(a,b){var c=!g.Gv(a,b);g.Lv(a,b,c)};
    g.Mv=function(){g.Ed.call(this);this.j=0;this.endTime=this.startTime=null};
    yla=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
        g.Js(a,"transition",b.join(","))};
    Nv=function(a,b,c,d,e){g.Mv.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
    zla=function(a,b,c,d){return new Nv(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
    Bla=function(a){a=jc(a);if(a=="")return null;var b=String(a.slice(0,4)).toLowerCase();if(("url("<b?-1:"url("==b?0:1)==0)return!a.endsWith(")")||(a?a.split("(").length-1:0)>1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Ala))return null}return a};
    Ov=function(a,b){a=g.Ua[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
    Cla=function(a){var b=g.Ua.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
    Dla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ls&&document.documentMode<10){if(!b[c].call)throw Error("IE Clobbering detected");}else if(typeof b[c]!="function")throw Error("Clobbering detected");return b[c].apply(b,d)};
    Jla=function(a){if(!a)return Ela;var b=document.createElement("div").style;Fla(a).forEach(function(c){var d=g.Oc&&c in Gla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");dc(d,"--")||dc(d,"var")||(c=Dla(Hla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Bla(c),c!=null&&Dla(Ila,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
        return new g.oe(b.cssText||"",ye)};
    Fla=function(a){g.bb(a)?a=g.Kb(a):(a=g.bd(a),g.Gb(a,"cssText"));return a};
    g.Pv=function(a){var b,c=b=0,d=!1;a=a.split(Kla);for(var e=0;e<a.length;e++){var f=a[e];g.Lla.test(f)?(b++,c++):Mla.test(f)?d=!0:Nla.test(f)?c++:Ola.test(f)&&(d=!0)}b=c==0?d?1:0:b/c>.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"};
    g.Pla=function(a){if(a instanceof Qv||a instanceof Rv||a instanceof Sv)return a;if(typeof a.next=="function")return new Qv(function(){return a});
        if(typeof a[Symbol.iterator]=="function")return new Qv(function(){return a[Symbol.iterator]()});
        if(typeof a.mm=="function")return new Qv(function(){return a.mm()});
        throw Error("Not an iterator or iterable.");};
    Qv=function(a){this.B=a};
    Rv=function(a){this.B=a};
    Sv=function(a){Qv.call(this,function(){return a});
        this.C=a};
    Tv=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l};
    Uv=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Be(a.j,a.x1,b),d=Be(a.x1,a.x2,b);a=Be(a.x2,a.B,b);c=Be(c,d,b);d=Be(d,a,b);return Be(c,d,b)};
    Qla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=Uv(a,c);var l=(Uv(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(l)<1E-6)break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;Math.abs(f-b)>1E-6&&h<8;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Uv(a,c);return c};
    Vv=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
    Wv=function(a){return(a=a.exec(g.nc()))?a[1]:""};
    Xv=function(a){return g.mc(Rla,a)>=0};
    g.Yv=function(a){g.I.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
    Sla=function(a,b,c){g.dg(function(){a.apply(b,c)})};
    g.Zv=function(a){this.j=a};
    $v=function(a){this.j=a};
    Tla=function(a){this.data=a};
    Ula=function(a){return a===void 0||a instanceof Tla?a:new Tla(a)};
    aw=function(a){this.j=a};
    g.Vla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.kb()||!!b&&b>g.kb()};
    g.bw=function(a){this.j=a};
    Wla=function(){};
    cw=function(){};
    dw=function(a){this.j=a;this.B=null};
    ew=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||Qf(Error("Storage mechanism: Storage unavailable"))};
    Xla=function(){var a=null;try{a=g.Ua.localStorage||null}catch(b){}dw.call(this,a)};
    Yla=function(){var a=null;try{a=g.Ua.sessionStorage||null}catch(b){}dw.call(this,a)};
    fw=function(a,b){this.B=a;this.j=b+"::"};
    g.gw=function(a){var b=new Xla;return b.isAvailable()?a?new fw(b,a):b:null};
    hw=function(a,b){this.j=a;this.B=b};
    iw=function(a){this.j=[];if(a)a:{if(a instanceof iw){var b=a.Sn();a=a.Gm();if(this.j.length<=0){for(var c=this.j,d=0;d<b.length;d++)c.push(new hw(b[d],a[d]));break a}}else b=g.bd(a),a=g.ad(a);for(c=0;c<b.length;c++)this.Eh(b[c],a[c])}};
    Zla=function(){iw.apply(this,arguments)};
    jw=function(){};
    $la=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if((f&64512)===55296&&b+1<d){var h=a.charCodeAt(b+1);(h&64512)===56320&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=f<128?1:f<2048?2:f<65536?3:4}var l=new kw.Ty(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),(f&64512)===55296&&b+1<d&&(h=a.charCodeAt(b+1),(h&64512)===56320&&(f=65536+(f-55296<<10)+(h-56320),b++)),f<128?l[c++]=f:(f<2048?l[c++]=192|f>>>6:(f<65536?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};
    lw=function(a){for(var b=a.length;--b>=0;)a[b]=0};
    ama=function(a,b,c,d,e){this.d2=a;this.s8=b;this.r8=c;this.g8=d;this.G$=e;this.bZ=a&&a.length};
    bma=function(a,b){this.LX=a;this.fB=0;this.ov=b};
    mw=function(a,b){a.rg[a.pending++]=b&255;a.rg[a.pending++]=b>>>8&255};
    nw=function(a,b,c){a.Ai>16-c?(a.tj|=b<<a.Ai&65535,mw(a,a.tj),a.tj=b>>16-a.Ai,a.Ai+=c-16):(a.tj|=b<<a.Ai&65535,a.Ai+=c)};
    ow=function(a,b,c){nw(a,c[b*2],c[b*2+1])};
    cma=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(--b>0);return c>>>1};
    dma=function(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=cma(d[e]++,e))};
    ema=function(a){var b;for(b=0;b<286;b++)a.ek[b*2]=0;for(b=0;b<30;b++)a.Gw[b*2]=0;for(b=0;b<19;b++)a.Ti[b*2]=0;a.ek[512]=1;a.us=a.uC=0;a.Rm=a.matches=0};
    fma=function(a){a.Ai>8?mw(a,a.tj):a.Ai>0&&(a.rg[a.pending++]=a.tj);a.tj=0;a.Ai=0};
    gma=function(a,b,c){fma(a);mw(a,c);mw(a,~c);kw.xz(a.rg,a.window,b,c,a.pending);a.pending+=c};
    hma=function(a,b,c,d){var e=b*2,f=c*2;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
    ima=function(a,b,c){for(var d=a.zg[c],e=c<<1;e<=a.Or;){e<a.Or&&hma(b,a.zg[e+1],a.zg[e],a.depth)&&e++;if(hma(b,d,a.zg[e],a.depth))break;a.zg[c]=a.zg[e];c=e;e<<=1}a.zg[c]=d};
    lma=function(a,b,c){var d=0;if(a.Rm!==0){do{var e=a.rg[a.jE+d*2]<<8|a.rg[a.jE+d*2+1];var f=a.rg[a.NQ+d];d++;if(e===0)ow(a,f,b);else{var h=pw[f];ow(a,h+256+1,b);var l=jma[h];l!==0&&(f-=kma[h],nw(a,f,l));e--;h=e<256?qw[e]:qw[256+(e>>>7)];ow(a,h,c);l=rw[h];l!==0&&(e-=tw[h],nw(a,e,l))}}while(d<a.Rm)}ow(a,256,b)};
    mma=function(a,b){var c=b.LX,d=b.ov.d2,e=b.ov.bZ,f=b.ov.g8,h,l=-1;a.Or=0;a.vA=573;for(h=0;h<f;h++)c[h*2]!==0?(a.zg[++a.Or]=l=h,a.depth[h]=0):c[h*2+1]=0;for(;a.Or<2;){var m=a.zg[++a.Or]=l<2?++l:0;c[m*2]=1;a.depth[m]=0;a.us--;e&&(a.uC-=d[m*2+1])}b.fB=l;for(h=a.Or>>1;h>=1;h--)ima(a,c,h);m=f;do h=a.zg[1],a.zg[1]=a.zg[a.Or--],ima(a,c,1),d=a.zg[1],a.zg[--a.vA]=h,a.zg[--a.vA]=d,c[m*2]=c[h*2]+c[d*2],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=m,a.zg[1]=m++,ima(a,c,1);while(a.Or>=
    2);a.zg[--a.vA]=a.zg[1];h=b.LX;m=b.fB;d=b.ov.d2;e=b.ov.bZ;f=b.ov.s8;var n=b.ov.r8,p=b.ov.G$,q,r=0;for(q=0;q<=15;q++)a.jr[q]=0;h[a.zg[a.vA]*2+1]=0;for(b=a.vA+1;b<573;b++){var t=a.zg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.jr[q]++;var u=0;t>=n&&(u=f[t-n]);var w=h[t*2];a.us+=w*(q+u);e&&(a.uC+=w*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.jr[q]===0;)q--;a.jr[q]--;a.jr[q+1]+=2;a.jr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.jr[q];t!==0;)d=a.zg[--b],d>m||(h[d*2+1]!==q&&(a.us+=(q-h[d*
    2+1])*h[d*2],h[d*2+1]=q),t--)}dma(c,l,a.jr)};
    nma=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];++h<l&&n===f||(h<m?a.Ti[n*2]+=h:n!==0?(n!==e&&a.Ti[n*2]++,a.Ti[32]++):h<=10?a.Ti[34]++:a.Ti[36]++,h=0,e=n,f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
    oma=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];if(!(++h<l&&n===f)){if(h<m){do ow(a,n,a.Ti);while(--h!==0)}else n!==0?(n!==e&&(ow(a,n,a.Ti),h--),ow(a,16,a.Ti),nw(a,h-3,2)):h<=10?(ow(a,17,a.Ti),nw(a,h-3,3)):(ow(a,18,a.Ti),nw(a,h-11,7));h=0;e=n;f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
    pma=function(a){var b=4093624447,c;for(c=0;c<=31;c++,b>>>=1)if(b&1&&a.ek[c*2]!==0)return 0;if(a.ek[18]!==0||a.ek[20]!==0||a.ek[26]!==0)return 1;for(c=32;c<256;c++)if(a.ek[c*2]!==0)return 1;return 0};
    uw=function(a,b,c){a.rg[a.jE+a.Rm*2]=b>>>8&255;a.rg[a.jE+a.Rm*2+1]=b&255;a.rg[a.NQ+a.Rm]=c&255;a.Rm++;b===0?a.ek[c*2]++:(a.matches++,b--,a.ek[(pw[c]+256+1)*2]++,a.Gw[(b<256?qw[b]:qw[256+(b>>>7)])*2]++);return a.Rm===a.NF-1};
    ww=function(a,b){a.msg=vw[b];return b};
    xw=function(a){for(var b=a.length;--b>=0;)a[b]=0};
    yw=function(a){var b=a.state,c=b.pending;c>a.Ie&&(c=a.Ie);c!==0&&(kw.xz(a.output,b.rg,b.BG,c,a.pB),a.pB+=c,b.BG+=c,a.VT+=c,a.Ie-=c,b.pending-=c,b.pending===0&&(b.BG=0))};
    Bw=function(a,b){var c=a.Yk>=0?a.Yk:-1,d=a.Gb-a.Yk,e=0;if(a.level>0){a.ye.SO===2&&(a.ye.SO=pma(a));mma(a,a.uK);mma(a,a.dJ);nma(a,a.ek,a.uK.fB);nma(a,a.Gw,a.dJ.fB);mma(a,a.aX);for(e=18;e>=3&&a.Ti[qma[e]*2+1]===0;e--);a.us+=3*(e+1)+14;var f=a.us+3+7>>>3;var h=a.uC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)nw(a,b?1:0,3),gma(a,c,d);else if(a.strategy===4||h===f)nw(a,2+(b?1:0),3),lma(a,zw,Aw);else{nw(a,4+(b?1:0),3);c=a.uK.fB+1;d=a.dJ.fB+1;e+=1;nw(a,c-257,5);nw(a,d-1,5);nw(a,e-4,4);for(f=0;f<e;f++)nw(a,
        a.Ti[qma[f]*2+1],3);oma(a,a.ek,c-1);oma(a,a.Gw,d-1);lma(a,a.ek,a.Gw)}ema(a);b&&fma(a);a.Yk=a.Gb;yw(a.ye)};
    Cw=function(a,b){a.rg[a.pending++]=b};
    Dw=function(a,b){a.rg[a.pending++]=b>>>8&255;a.rg[a.pending++]=b&255};
    rma=function(a,b){var c=a.f_,d=a.Gb,e=a.Fl,f=a.y_,h=a.Gb>a.lj-262?a.Gb-(a.lj-262):0,l=a.window,m=a.Cv,n=a.yq,p=a.Gb+258,q=l[d+e-1],r=l[d+e];a.Fl>=a.HY&&(c>>=2);f>a.jc&&(f=a.jc);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]&&d<p;);t=258-(p-d);d=p-258;if(t>e){a.dB=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&--c!==
    0);return e<=a.jc?e:a.jc};
    Fw=function(a){var b=a.lj,c;do{var d=a.v3-a.jc-a.Gb;if(a.Gb>=b+(b-262)){kw.xz(a.window,a.window,b,b,0);a.dB-=b;a.Gb-=b;a.Yk-=b;var e=c=a.cK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.yq[--e],a.yq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.ye.rj===0)break;e=a.ye;c=a.window;f=a.Gb+a.jc;var h=e.rj;h>d&&(h=d);h===0?c=0:(e.rj-=h,kw.xz(c,e.input,e.Ix,h,f),e.state.wrap===1?e.Vd=sma(e.Vd,c,h,f):e.state.wrap===2&&(e.Vd=Ew(e.Vd,c,h,f)),e.Ix+=h,e.My+=h,c=h);a.jc+=c;if(a.jc+a.Eh>=3)for(d=a.Gb-
        a.Eh,a.De=a.window[d],a.De=(a.De<<a.Mr^a.window[d+1])&a.Lr;a.Eh&&!(a.De=(a.De<<a.Mr^a.window[d+3-1])&a.Lr,a.yq[d&a.Cv]=a.head[a.De],a.head[a.De]=d,d++,a.Eh--,a.jc+a.Eh<3););}while(a.jc<262&&a.ye.rj!==0)};
    tma=function(a,b){for(var c;;){if(a.jc<262){Fw(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.De=(a.De<<a.Mr^a.window[a.Gb+3-1])&a.Lr,c=a.yq[a.Gb&a.Cv]=a.head[a.De],a.head[a.De]=a.Gb);c!==0&&a.Gb-c<=a.lj-262&&(a.Ve=rma(a,c));if(a.Ve>=3)if(c=uw(a,a.Gb-a.dB,a.Ve-3),a.jc-=a.Ve,a.Ve<=a.ZQ&&a.jc>=3){a.Ve--;do a.Gb++,a.De=(a.De<<a.Mr^a.window[a.Gb+3-1])&a.Lr,a.yq[a.Gb&a.Cv]=a.head[a.De],a.head[a.De]=a.Gb;while(--a.Ve!==0);a.Gb++}else a.Gb+=a.Ve,a.Ve=0,a.De=a.window[a.Gb],a.De=(a.De<<a.Mr^
        a.window[a.Gb+1])&a.Lr;else c=uw(a,0,a.window[a.Gb]),a.jc--,a.Gb++;if(c&&(Bw(a,!1),a.ye.Ie===0))return 1}a.Eh=a.Gb<2?a.Gb:2;return b===4?(Bw(a,!0),a.ye.Ie===0?3:4):a.Rm&&(Bw(a,!1),a.ye.Ie===0)?1:2};
    Gw=function(a,b){for(var c,d;;){if(a.jc<262){Fw(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.De=(a.De<<a.Mr^a.window[a.Gb+3-1])&a.Lr,c=a.yq[a.Gb&a.Cv]=a.head[a.De],a.head[a.De]=a.Gb);a.Fl=a.Ve;a.J0=a.dB;a.Ve=2;c!==0&&a.Fl<a.ZQ&&a.Gb-c<=a.lj-262&&(a.Ve=rma(a,c),a.Ve<=5&&(a.strategy===1||a.Ve===3&&a.Gb-a.dB>4096)&&(a.Ve=2));if(a.Fl>=3&&a.Ve<=a.Fl){d=a.Gb+a.jc-3;c=uw(a,a.Gb-1-a.J0,a.Fl-3);a.jc-=a.Fl-1;a.Fl-=2;do++a.Gb<=d&&(a.De=(a.De<<a.Mr^a.window[a.Gb+3-1])&a.Lr,a.yq[a.Gb&a.Cv]=
        a.head[a.De],a.head[a.De]=a.Gb);while(--a.Fl!==0);a.Bx=0;a.Ve=2;a.Gb++;if(c&&(Bw(a,!1),a.ye.Ie===0))return 1}else if(a.Bx){if((c=uw(a,0,a.window[a.Gb-1]))&&Bw(a,!1),a.Gb++,a.jc--,a.ye.Ie===0)return 1}else a.Bx=1,a.Gb++,a.jc--}a.Bx&&(uw(a,0,a.window[a.Gb-1]),a.Bx=0);a.Eh=a.Gb<2?a.Gb:2;return b===4?(Bw(a,!0),a.ye.Ie===0?3:4):a.Rm&&(Bw(a,!1),a.ye.Ie===0)?1:2};
    uma=function(a,b){for(var c,d,e,f=a.window;;){if(a.jc<=258){Fw(a);if(a.jc<=258&&b===0)return 1;if(a.jc===0)break}a.Ve=0;if(a.jc>=3&&a.Gb>0&&(d=a.Gb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Gb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.Ve=258-(e-d);a.Ve>a.jc&&(a.Ve=a.jc)}a.Ve>=3?(c=uw(a,1,a.Ve-3),a.jc-=a.Ve,a.Gb+=a.Ve,a.Ve=0):(c=uw(a,0,a.window[a.Gb]),a.jc--,a.Gb++);if(c&&(Bw(a,!1),a.ye.Ie===0))return 1}a.Eh=0;return b===
    4?(Bw(a,!0),a.ye.Ie===0?3:4):a.Rm&&(Bw(a,!1),a.ye.Ie===0)?1:2};
    vma=function(a,b){for(var c;;){if(a.jc===0&&(Fw(a),a.jc===0)){if(b===0)return 1;break}a.Ve=0;c=uw(a,0,a.window[a.Gb]);a.jc--;a.Gb++;if(c&&(Bw(a,!1),a.ye.Ie===0))return 1}a.Eh=0;return b===4?(Bw(a,!0),a.ye.Ie===0?3:4):a.Rm&&(Bw(a,!1),a.ye.Ie===0)?1:2};
    Hw=function(a,b,c,d,e){this.k9=a;this.F$=b;this.V$=c;this.E$=d;this.func=e};
    wma=function(){this.ye=null;this.status=0;this.rg=null;this.wrap=this.pending=this.BG=this.Vm=0;this.Pd=null;this.Xn=0;this.method=8;this.TA=-1;this.Cv=this.qU=this.lj=0;this.window=null;this.v3=0;this.head=this.yq=null;this.y_=this.HY=this.strategy=this.level=this.ZQ=this.f_=this.Fl=this.jc=this.dB=this.Gb=this.Bx=this.J0=this.Ve=this.Yk=this.Mr=this.Lr=this.jQ=this.cK=this.De=0;this.ek=new kw.Tq(1146);this.Gw=new kw.Tq(122);this.Ti=new kw.Tq(78);xw(this.ek);xw(this.Gw);xw(this.Ti);this.aX=this.dJ=
        this.uK=null;this.jr=new kw.Tq(16);this.zg=new kw.Tq(573);xw(this.zg);this.vA=this.Or=0;this.depth=new kw.Tq(573);xw(this.depth);this.Ai=this.tj=this.Eh=this.matches=this.uC=this.us=this.jE=this.Rm=this.NF=this.NQ=0};
    xma=function(a,b){if(!a||!a.state||b>5||b<0)return a?ww(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.rj!==0||c.status===666&&b!==4)return ww(a,a.Ie===0?-5:-2);c.ye=a;var d=c.TA;c.TA=b;if(c.status===42)if(c.wrap===2)a.Vd=0,Cw(c,31),Cw(c,139),Cw(c,8),c.Pd?(Cw(c,(c.Pd.text?1:0)+(c.Pd.Zt?2:0)+(c.Pd.extra?4:0)+(c.Pd.name?8:0)+(c.Pd.comment?16:0)),Cw(c,c.Pd.time&255),Cw(c,c.Pd.time>>8&255),Cw(c,c.Pd.time>>16&255),Cw(c,c.Pd.time>>24&255),Cw(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Cw(c,c.Pd.os&
        255),c.Pd.extra&&c.Pd.extra.length&&(Cw(c,c.Pd.extra.length&255),Cw(c,c.Pd.extra.length>>8&255)),c.Pd.Zt&&(a.Vd=Ew(a.Vd,c.rg,c.pending,0)),c.Xn=0,c.status=69):(Cw(c,0),Cw(c,0),Cw(c,0),Cw(c,0),Cw(c,0),Cw(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Cw(c,3),c.status=113);else{var e=8+(c.qU-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Gb!==0&&(e|=32);c.status=113;Dw(c,e+(31-e%31));c.Gb!==0&&(Dw(c,a.Vd>>>16),Dw(c,a.Vd&65535));a.Vd=1}if(c.status===69)if(c.Pd.extra){for(e=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               c.pending;c.Xn<(c.Pd.extra.length&65535)&&(c.pending!==c.Vm||(c.Pd.Zt&&c.pending>e&&(a.Vd=Ew(a.Vd,c.rg,c.pending-e,e)),yw(a),e=c.pending,c.pending!==c.Vm));)Cw(c,c.Pd.extra[c.Xn]&255),c.Xn++;c.Pd.Zt&&c.pending>e&&(a.Vd=Ew(a.Vd,c.rg,c.pending-e,e));c.Xn===c.Pd.extra.length&&(c.Xn=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Pd.name){e=c.pending;do{if(c.pending===c.Vm&&(c.Pd.Zt&&c.pending>e&&(a.Vd=Ew(a.Vd,c.rg,c.pending-e,e)),yw(a),e=c.pending,c.pending===c.Vm)){var f=1;break}f=c.Xn<c.Pd.name.length?
        c.Pd.name.charCodeAt(c.Xn++)&255:0;Cw(c,f)}while(f!==0);c.Pd.Zt&&c.pending>e&&(a.Vd=Ew(a.Vd,c.rg,c.pending-e,e));f===0&&(c.Xn=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Pd.comment){e=c.pending;do{if(c.pending===c.Vm&&(c.Pd.Zt&&c.pending>e&&(a.Vd=Ew(a.Vd,c.rg,c.pending-e,e)),yw(a),e=c.pending,c.pending===c.Vm)){f=1;break}f=c.Xn<c.Pd.comment.length?c.Pd.comment.charCodeAt(c.Xn++)&255:0;Cw(c,f)}while(f!==0);c.Pd.Zt&&c.pending>e&&(a.Vd=Ew(a.Vd,c.rg,c.pending-e,e));f===0&&(c.status=103)}else c.status=
        103;c.status===103&&(c.Pd.Zt?(c.pending+2>c.Vm&&yw(a),c.pending+2<=c.Vm&&(Cw(c,a.Vd&255),Cw(c,a.Vd>>8&255),a.Vd=0,c.status=113)):c.status=113);if(c.pending!==0){if(yw(a),a.Ie===0)return c.TA=-1,0}else if(a.rj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return ww(a,-5);if(c.status===666&&a.rj!==0)return ww(a,-5);if(a.rj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?vma(c,b):c.strategy===3?uma(c,b):Iw[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Ie===0&&(c.TA=
        -1),0;if(d===2&&(b===1?(nw(c,2,3),ow(c,256,zw),c.Ai===16?(mw(c,c.tj),c.tj=0,c.Ai=0):c.Ai>=8&&(c.rg[c.pending++]=c.tj&255,c.tj>>=8,c.Ai-=8)):b!==5&&(nw(c,0,3),gma(c,0,0),b===3&&(xw(c.head),c.jc===0&&(c.Gb=0,c.Yk=0,c.Eh=0))),yw(a),a.Ie===0))return c.TA=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(Cw(c,a.Vd&255),Cw(c,a.Vd>>8&255),Cw(c,a.Vd>>16&255),Cw(c,a.Vd>>24&255),Cw(c,a.My&255),Cw(c,a.My>>8&255),Cw(c,a.My>>16&255),Cw(c,a.My>>24&255)):(Dw(c,a.Vd>>>16),Dw(c,a.Vd&65535));yw(a);c.wrap>0&&
    (c.wrap=-c.wrap);return c.pending!==0?0:1};
    Jw=function(a){if(!(this instanceof Jw))return new Jw(a);a=this.options=kw.assign({level:-1,method:8,chunkSize:16384,Dv:15,L$:8,strategy:0,to:""},a||{});a.raw&&a.Dv>0?a.Dv=-a.Dv:a.l9&&a.Dv>0&&a.Dv<16&&(a.Dv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new yma;this.ye.Ie=0;var b=this.ye;var c=a.level,d=a.method,e=a.Dv,f=a.L$,h=a.strategy;if(b){var l=1;c===-1&&(c=6);e<0?(l=0,e=-e):e>15&&(l=2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=ww(b,-2);else{e===8&&(e=9);var m=
        new wma;b.state=m;m.ye=b;m.wrap=l;m.Pd=null;m.qU=e;m.lj=1<<m.qU;m.Cv=m.lj-1;m.jQ=f+7;m.cK=1<<m.jQ;m.Lr=m.cK-1;m.Mr=~~((m.jQ+3-1)/3);m.window=new kw.Ty(m.lj*2);m.head=new kw.Tq(m.cK);m.yq=new kw.Tq(m.lj);m.NF=1<<f+6;m.Vm=m.NF*4;m.rg=new kw.Ty(m.Vm);m.jE=1*m.NF;m.NQ=3*m.NF;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.My=b.VT=0;b.SO=2;c=b.state;c.pending=0;c.BG=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Vd=c.wrap===2?0:1;c.TA=0;if(!zma){d=Array(16);for(f=h=0;f<28;f++)for(kma[f]=h,e=
        0;e<1<<jma[f];e++)pw[h++]=f;pw[h-1]=f;for(f=h=0;f<16;f++)for(tw[f]=h,e=0;e<1<<rw[f];e++)qw[h++]=f;for(h>>=7;f<30;f++)for(tw[f]=h<<7,e=0;e<1<<rw[f]-7;e++)qw[256+h++]=f;for(e=0;e<=15;e++)d[e]=0;for(e=0;e<=143;)zw[e*2+1]=8,e++,d[8]++;for(;e<=255;)zw[e*2+1]=9,e++,d[9]++;for(;e<=279;)zw[e*2+1]=7,e++,d[7]++;for(;e<=287;)zw[e*2+1]=8,e++,d[8]++;dma(zw,287,d);for(e=0;e<30;e++)Aw[e*2+1]=5,Aw[e*2]=cma(e,5);Ama=new ama(zw,jma,257,286,15);Bma=new ama(Aw,rw,0,30,15);Cma=new ama([],Dma,0,19,7);zma=!0}c.uK=new bma(c.ek,
        Ama);c.dJ=new bma(c.Gw,Bma);c.aX=new bma(c.Ti,Cma);c.tj=0;c.Ai=0;ema(c);c=0}else c=ww(b,-2);c===0&&(b=b.state,b.v3=2*b.lj,xw(b.head),b.ZQ=Iw[b.level].F$,b.HY=Iw[b.level].k9,b.y_=Iw[b.level].V$,b.f_=Iw[b.level].E$,b.Gb=0,b.Yk=0,b.jc=0,b.Eh=0,b.Ve=b.Fl=2,b.Bx=0,b.De=0);b=c}}else b=-2;if(b!==0)throw Error(vw[b]);a.header&&(b=this.ye)&&b.state&&b.state.wrap===2&&(b.state.Pd=a.header);if(a.kE){var n;typeof a.kE==="string"?n=$la(a.kE):Ema.call(a.kE)==="[object ArrayBuffer]"?n=new Uint8Array(a.kE):n=a.kE;
        a=this.ye;f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,b===2||b===1&&n.status!==42||n.jc)b=-2;else{b===1&&(a.Vd=sma(a.Vd,f,h,0));n.wrap=0;h>=n.lj&&(b===0&&(xw(n.head),n.Gb=0,n.Yk=0,n.Eh=0),c=new kw.Ty(n.lj),kw.xz(c,f,h-n.lj,n.lj,0),f=c,h=n.lj);c=a.rj;d=a.Ix;e=a.input;a.rj=h;a.Ix=0;a.input=f;for(Fw(n);n.jc>=3;){f=n.Gb;h=n.jc-2;do n.De=(n.De<<n.Mr^n.window[f+3-1])&n.Lr,n.yq[f&n.Cv]=n.head[n.De],n.head[n.De]=f,f++;while(--h);n.Gb=f;n.jc=2;Fw(n)}n.Gb+=n.jc;n.Yk=n.Gb;n.Eh=n.jc;n.jc=0;n.Ve=n.Fl=2;
            n.Bx=0;a.Ix=d;a.input=e;a.rj=c;n.wrap=b;b=0}else b=-2;if(b!==0)throw Error(vw[b]);this.Oob=!0}};
    Fma=function(a,b){b=b||{};b.l9=!0;b=new Jw(b);b.push(a,!0);if(b.err)throw b.msg||vw[b.err];return b.result};
    Gma=function(){var a=g.Ja.apply(0,arguments);return a.length===0?function(b){return b}:a.length===1?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.ra(g.Ja.apply(0,arguments))))}})};
    Hma=function(){var a=g.Ja.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
        c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.ra(g.Ja.apply(1,arguments))))}};
        d=a.map(function(h){return h(f)});
        e=Gma.apply(null,g.ra(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
    Ima=function(){return Math.random().toString(36).substring(7).split("").join(".")};
    Kma=function(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:Jma})==="undefined")throw Error('The slice reducer for key "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Ima()})==="undefined")throw Error('The slice reducer for key "'+
        b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Jma+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
    Lma=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
        function f(t){if(typeof t!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var u=!0;p===n&&(p=n.slice());p.push(t);return function(){if(u){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
            u=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
        function h(t){if(typeof t!=="object"||t===null)var u=!1;else{for(u=t;Object.getPrototypeOf(u)!==null;)u=Object.getPrototypeOf(u);u=Object.getPrototypeOf(t)===u}if(!u)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
            if(typeof t.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,t)}finally{q=!1}u=n=p;for(var w=0;w<u.length;w++)(0,u[w])();return t}
        if(typeof b==="function"&&typeof c==="function"||typeof c==="function"&&typeof d==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof b==="function"&&typeof c==="undefined"&&(c=b,b=void 0);if(typeof c!=="undefined"){if(typeof c!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
            typeof c+"'");return c(Lma)(a,b)}if(typeof a!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:Jma});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if(typeof t!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:Mma});return r},a[Nma]=function(){var t={};
            return t.subscribe=function(u){function w(){u.next&&u.next(e())}
                if(typeof u!=="object"||u===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof u+"'");w();return{unsubscribe:f(w)}},t[Nma]=function(){return this},t},a);
        return r};
    Oma=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Hba(a):null:null};
    Kw=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?be(a):null:null};
    Qma=function(a){a=Pma(a);return se(a)};
    g.Rma=function(a){a=Pma(a);return be(a)};
    Pma=function(a){return a===null?"null":a===void 0?"undefined":a};
    Lw=function(a){this.oa=R(a)};
    Sma=function(a){var b=a.split(""),c=[-1807110549,663929656,null,-788225549,739146354,2091762463,-451778046,1035070969,611580635,719958256,function(d,e){d.length!=0&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
        733387039,function(d){d.reverse()},
        -844656086,373285033,-1324820891,-1972118963,299183630,-1062099906,1543614105,-540439858,function(d,e,f,h,l,m,n){return d(l,m,n)},
        function(d,e,f){var h=d.length;e.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},f.split(""))},
        55949541,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
        467629678,null,';\'";]"',-1098370898,"},/(",function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
        -1945773814,928320718,-530434247,-1466740190,-1865531765,1641333224,2133149081,function(d,e,f,h,l,m,n,p,q,r,t){return d(f,h,l,m,n,p,q,r,t)},
        -273545372,-1848279678,function(d,e,f,h,l,m){return e(h,l,m)},
        function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
        function(d,e,f,h,l){return e(f,h,l)},
        2008496028,1285101884,b,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
        null,550068604,749437984,1172342790,-566348376,function(d,e){if(d.length!=0){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f}},
        223808685,-932954084,121354367,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
        2117820467,-2139842173,323822818,"debugger",-600332111,b,705104742,"EPnA",-1675683845,373285033,1064517780,b,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
        function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
        -1980193008,-716859876,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
        -600332111,-52892147,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
        -1218955153,-703997727,-1302476300];c[2]=c;c[26]=c;c[48]=c;try{try{c[62-Math.pow(2,3)%254]!=5&&((0,c[41])((0,c[22])((0,c[71])(),c[Math.pow(3,3)+29646+-29627],c[61]),c[57],(0,c[57])(c[36],c[63]),c[54],c[63]),{})||(((0,c[57])(c[80],c[new Date("1970-01-01T11:15:46.000+11:15")/1E3]),c[22])((0,c[71])(),c[69],c[65]),c[22])((0,c[71])(),c[63],c[65]),c[56]>7&&(0,c[43])((((0,c[42])(c[48],c[45]),c[5])(c[20],c[11]),c[72])((0,c[59])(c[17],c[27]),c[41],c[17]),c[1],c[77],c[23]),c[38]!==-1&&((((0,c[1])(c[55],c[0]),
        c[1])(c[31],c[69]),c[70])((0,c[22])(c[21*Math.pow(6,3)+-4461]),c[39],(0,c[5])(c[40],c[75]),c[55],c[78]),1)||(0,c[76])((0,c[70])((0,c[59])(c[31],c[Math.pow(8,2)%353+-61]),c[51],(0,c[39])(c[11],c[52]),(0,c[53])(),c[75],c[13]),c[72],(0,c[5])(c[6],c[77]),c[5],c[48],c[30])}catch(d){(0,c[51])((0,c[18])(),c[-53+Math.pow(4,3)%463],c[9]),(0,c[71])(c[31],c[64]),(0,c[5])(c[36],c[30])}finally{c[80]!=-10?(0,c[39])(c[30],c[66]):(0,c[22])(c[30]),c[3]<=7&&(0,c[72])((0,c[22])(c[-40492+Math.pow(2,2)+40518]),c[59],
        c[11],c[62])}try{(c[37]>-8||((0,c[51])((0,c[53])(),c[11],c[13]),0))&&(0,c[Math.pow(4,3)-19+6])((0,c[new Date("1969-12-31T15:00:19.000-09:00")/1E3])(),c[11],c[13]),(c[2]>-1||((0,c[39])(c[11],c[44]),0))&&(0,c[1])(c[55],c[42]),c[48]!=1&&(0,c[72])((0,c[71])(c[31],c[49]),c[58],c[76],c[11]),c[75]==-4?((0,c[35])((0,c[37])(),c[76],c[78]),(0,c[35])((0,c[2])(),c[76],c[74]),c[35])((0,c[9])(),c[59],c[78]):((0,c[55])(c[76],c[21]),c[56])((0,c[66])(c[61],c[22]),c[55],c[14],c[38]),c[71]!=-4&&(c[32]===-7?(0,c[56])((0,c[56])(((0,c[6])(c[59]),
        c[35])((0,c[3])(),c[14],c[74]),c[66],c[15],c[44]),c[55],c[59],c[52]):(0,c[60])((0,c[120-Math.pow(8,2)%507])((0,c[60-Math.pow(4,3)- -74])(c[73],c[76]),c[66],c[39],c[16]),c[56],(0,c[31])(c[61],c[69]),c[11],c[0])),c[6]>=-5&&(c[21]>0||((((0,c[60+144%Math.pow(1,5)])(c[19],c[46]),c[28])(c[64],c[18]),c[new Date("1969-12-31T21:01:11.000-03:00")/1E3])(c[0],c[69]),0))&&(0,c[61])((0,c[11])(c[20]),c[40],(0,c[8])(),c[19],c[2])^(0,c[30])(c[0])}catch(d){(0,c[61])((0,c[30])(c[19]),c[36],c[20],c[new Date("1970-01-01T11:45:13.000+11:45")/
    1E3]),(0,c[71])(c[64],c[Math.pow(new Date("1969-12-31T15:00:03.000-09:00")/1E3,5)- -9360+-9569]),((0,c[40])((0,c[14])(),c[64],c[2]),c[28])(c[Math.pow(2,1)*-205- -410],c[77]),(0,c[75])(c[23],c[64])}try{c[37]>=0&&((0,c[61])((0,c[60])(c[44],c[15]),c[32],c[16],c[6]),c[73])(c[68],c[50])}catch(d){(0,c[13])(c[2])}finally{c[40]<8&&(c[64]!=-1&&(((0,c[58])(c[41],(0,c[63])((0,c[38])(c[21],c[26]),c[30],c[46],c[72]),c[new Date("1969-12-31T22:46:13.000-01:15")/1E3],(0,c[30])(c[46],c[24]),(0,c[30])(c[68],c[54]),
        (0,c[62])(c[22],c[6]),c[-1*Math.pow(5,2)+28],c[5]),c[46])(c[62],c[53]),1)||((0,c[79])((0,c[-5280-Math.pow(7,2)*-108])(c[23],c[3]),c[12],c[80],c[38]),((0,c[67])(c[48]),c[29])(c[37]),(0,c[78])(c[48],c[68]),c[79])((0,c[58])((0,c[26])(),c[37],c[20]),c[12],c[21],c[62]))}}catch(d){return"enhanced_except_upsBxeT-_w8_"+a}return b.join("")};
    g.Mw=function(a){this.name=a};
    Tma=function(a){this.oa=R(a)};
    Uma=function(a){this.oa=R(a)};
    Vma=function(a){this.oa=R(a)};
    Wma=function(a){this.oa=R(a)};
    Nw=function(a){this.oa=R(a)};
    Ow=function(a){this.oa=R(a)};
    Xma=function(a){this.oa=R(a)};
    Yma=function(a){this.oa=R(a)};
    Pw=function(a){this.oa=R(a)};
    Zma=function(a){this.oa=R(a)};
    $ma=function(a){this.oa=R(a)};
    Qw=function(a){this.oa=R(a)};
    Rw=function(a){this.oa=R(a)};
    Sw=function(a){this.oa=R(a)};
    ana=function(a){this.oa=R(a)};
    bna=function(a){this.oa=R(a)};
    cna=function(a){this.oa=R(a)};
    dna=function(a){this.oa=R(a)};
    ena=function(a){this.oa=R(a)};
    Tw=function(a){this.oa=R(a)};
    fna=function(a){this.oa=R(a)};
    gna=function(a){this.oa=R(a)};
    hna=function(a){this.oa=R(a)};
    ina=function(a){this.oa=R(a)};
    Uw=function(a){this.oa=R(a)};
    Vw=function(a){this.oa=R(a)};
    jna=function(a){this.oa=R(a)};
    kna=function(a){this.oa=R(a)};
    lna=function(a){this.oa=R(a)};
    mna=function(a){this.oa=R(a)};
    nna=function(a){this.oa=R(a)};
    ona=function(a){this.oa=R(a)};
    Ww=function(a){this.oa=R(a)};
    pna=function(a){this.oa=R(a)};
    Xw=function(a){this.oa=R(a)};
    qna=function(a){this.oa=R(a)};
    rna=function(a){this.oa=R(a)};
    sna=function(a){this.oa=R(a)};
    tna=function(a){this.oa=R(a)};
    una=function(a){this.oa=R(a)};
    vna=function(a){this.oa=R(a)};
    wna=function(a){this.oa=R(a)};
    xna=function(a){this.oa=R(a)};
    yna=function(a){this.oa=R(a)};
    zna=function(a){this.oa=R(a)};
    Yw=function(a){this.oa=R(a)};
    Ana=function(a){this.oa=R(a)};
    Bna=function(a){this.oa=R(a)};
    Zw=function(a){this.oa=R(a)};
    $w=function(a){this.oa=R(a)};
    ax=function(a){this.oa=R(a)};
    bx=function(a){this.oa=R(a)};
    cx=function(a){this.oa=R(a)};
    Cna=function(a){this.oa=R(a)};
    dx=function(a){this.oa=R(a)};
    ex=function(a){this.oa=R(a)};
    Dna=function(a){this.oa=R(a)};
    fx=function(a){this.oa=R(a)};
    gx=function(a){this.oa=R(a)};
    Ena=function(a){this.oa=R(a)};
    hx=function(a){this.oa=R(a)};
    ix=function(a){this.oa=R(a)};
    jx=function(a){this.oa=R(a)};
    Fna=function(a){this.oa=R(a)};
    Gna=function(a){this.oa=R(a)};
    kx=function(a){this.oa=R(a)};
    Hna=function(a){this.oa=R(a)};
    Ina=function(a){this.oa=R(a)};
    Jna=function(a){this.oa=R(a)};
    Kna=function(a){this.oa=R(a)};
    Lna=function(a){this.oa=R(a)};
    lx=function(a){this.oa=R(a)};
    Mna=function(a){this.oa=R(a)};
    Nna=function(a){this.oa=R(a)};
    Ona=function(a){this.oa=R(a)};
    mx=function(a){this.oa=R(a)};
    Pna=function(a){this.oa=R(a)};
    Qna=function(a){this.oa=R(a)};
    Rna=function(a){this.oa=R(a)};
    nx=function(a){this.oa=R(a)};
    Sna=function(a){this.oa=R(a)};
    ox=function(a){this.oa=R(a)};
    Tna=function(a,b){return Vk(a,1,b)};
    px=function(a){this.oa=R(a)};
    qx=function(a){this.oa=R(a)};
    rx=function(a){this.oa=R(a)};
    sx=function(a){this.oa=R(a)};
    tx=function(a){this.oa=R(a)};
    ux=function(a){this.oa=R(a)};
    Una=function(a){this.oa=R(a)};
    Vna=function(a){this.oa=R(a)};
    vx=function(a){this.oa=R(a)};
    Wna=function(a){this.oa=R(a)};
    wx=function(a){this.oa=R(a)};
    xx=function(a){this.oa=R(a)};
    yx=function(a){this.oa=R(a)};
    zx=function(a){this.oa=R(a)};
    Ax=function(a){this.oa=R(a)};
    Bx=function(a){this.oa=R(a)};
    Cx=function(a){this.oa=R(a)};
    Dx=function(a){this.oa=R(a)};
    Xna=function(a){this.oa=R(a)};
    Yna=function(a){this.oa=R(a)};
    Zna=function(a){this.oa=R(a)};
    $na=function(a){this.oa=R(a)};
    aoa=function(a){this.oa=R(a)};
    Ex=function(a){this.oa=R(a)};
    boa=function(a){this.oa=R(a)};
    coa=function(a){this.oa=R(a)};
    doa=function(a){this.oa=R(a)};
    eoa=function(a){this.oa=R(a)};
    Fx=function(a){this.oa=R(a)};
    foa=function(a){this.oa=R(a)};
    goa=function(a){this.oa=R(a)};
    hoa=function(a){this.oa=R(a)};
    Gx=function(a){this.oa=R(a)};
    Hx=function(a){this.oa=R(a)};
    Ix=function(a){this.oa=R(a)};
    Jx=function(a){this.oa=R(a)};
    Kx=function(a){this.oa=R(a)};
    Lx=function(a){this.oa=R(a)};
    ioa=function(a){this.oa=R(a)};
    Mx=function(a){this.oa=R(a)};
    Nx=function(a){this.oa=R(a)};
    Ox=function(a){this.oa=R(a)};
    Px=function(a){this.oa=R(a)};
    joa=function(a){this.oa=R(a)};
    Qx=function(a){this.oa=R(a)};
    Rx=function(a){this.oa=R(a)};
    Sx=function(a){this.oa=R(a)};
    koa=function(a){this.oa=R(a)};
    loa=function(a){this.oa=R(a)};
    Tx=function(a){this.oa=R(a)};
    ay=function(a){this.oa=R(a)};
    by=function(a){this.oa=R(a)};
    cy=function(a){this.oa=R(a)};
    dy=function(a){this.oa=R(a)};
    ey=function(a){this.oa=R(a)};
    fy=function(a){this.oa=R(a)};
    gy=function(a){this.oa=R(a)};
    moa=function(a){this.oa=R(a)};
    noa=function(a){this.oa=R(a)};
    hy=function(a){this.oa=R(a)};
    ooa=function(a){this.oa=R(a)};
    poa=function(a){this.oa=R(a)};
    qoa=function(a){this.oa=R(a)};
    iy=function(a){this.oa=R(a)};
    roa=function(a){this.oa=R(a)};
    soa=function(a){this.oa=R(a)};
    toa=function(a){this.oa=R(a)};
    jy=function(a){this.oa=R(a)};
    uoa=function(a){this.oa=R(a)};
    ky=function(a){this.oa=R(a)};
    ly=function(a){this.oa=R(a)};
    my=function(a){this.oa=R(a)};
    voa=function(a){this.oa=R(a)};
    ny=function(a){this.oa=R(a)};
    woa=function(a){this.oa=R(a)};
    oy=function(a){this.oa=R(a)};
    py=function(a){this.oa=R(a)};
    xoa=function(a){this.oa=R(a)};
    qy=function(a){this.oa=R(a)};
    yoa=function(a){this.oa=R(a)};
    ry=function(a){this.oa=R(a)};
    zoa=function(a){this.oa=R(a)};
    Aoa=function(a){this.oa=R(a)};
    Boa=function(a){this.oa=R(a)};
    sy=function(a){this.oa=R(a)};
    Coa=function(a){this.oa=R(a)};
    ty=function(a){this.oa=R(a)};
    uy=function(a){this.oa=R(a)};
    vy=function(a){this.oa=R(a)};
    Doa=function(a){this.oa=R(a)};
    wy=function(a){this.oa=R(a)};
    Eoa=function(a){this.oa=R(a)};
    yy=function(a){this.oa=R(a)};
    zy=function(a){this.oa=R(a)};
    Ay=function(a){this.oa=R(a)};
    By=function(a){this.oa=R(a)};
    g.Cy=function(a){this.oa=R(a)};
    g.Dy=function(a){this.oa=R(a)};
    Ey=function(a){this.oa=R(a)};
    Fy=function(a){this.oa=R(a)};
    Gy=function(a){this.oa=R(a)};
    Foa=function(a){this.oa=R(a)};
    Hy=function(a){this.oa=R(a)};
    Iy=function(a){this.oa=R(a)};
    Jy=function(a){this.oa=R(a)};
    Goa=function(a){this.oa=R(a)};
    Ky=function(a){this.oa=R(a)};
    Ly=function(a){this.oa=R(a)};
    My=function(a){this.oa=R(a)};
    Ny=function(a){this.oa=R(a)};
    Hoa=function(a){this.oa=R(a)};
    Oy=function(a){this.oa=R(a)};
    Py=function(a){this.oa=R(a)};
    Qy=function(a){this.oa=R(a)};
    Ry=function(a){this.oa=R(a)};
    Sy=function(a){this.oa=R(a)};
    Ioa=function(a){this.oa=R(a)};
    Ty=function(a){this.oa=R(a)};
    Joa=function(a){this.oa=R(a)};
    Uy=function(a){this.oa=R(a)};
    Koa=function(a){this.oa=R(a)};
    Loa=function(a){this.oa=R(a)};
    Vy=function(a){this.oa=R(a)};
    Wy=function(a){this.oa=R(a)};
    Moa=function(a){this.oa=R(a)};
    Xy=function(a){this.oa=R(a)};
    Yy=function(a){this.oa=R(a)};
    Zy=function(a){this.oa=R(a)};
    Noa=function(a){this.oa=R(a)};
    Ooa=function(a){this.oa=R(a)};
    Poa=function(a){this.oa=R(a)};
    Qoa=function(a){this.oa=R(a)};
    $y=function(a){this.oa=R(a)};
    az=function(a){this.oa=R(a)};
    Roa=function(a){this.oa=R(a)};
    bz=function(a){this.oa=R(a)};
    Soa=function(a){this.oa=R(a)};
    Toa=function(a){this.oa=R(a)};
    Uoa=function(a){this.oa=R(a)};
    Voa=function(a){this.oa=R(a)};
    Woa=function(a){this.oa=R(a)};
    cz=function(a){this.oa=R(a)};
    Xoa=function(a){this.oa=R(a)};
    Yoa=function(a){this.oa=R(a)};
    Zoa=function(a){this.oa=R(a)};
    dz=function(a){this.oa=R(a)};
    ez=function(a){this.oa=R(a)};
    $oa=function(a){this.oa=R(a)};
    fz=function(a){this.oa=R(a)};
    apa=function(a){this.oa=R(a)};
    bpa=function(a){this.oa=R(a)};
    gz=function(a){this.oa=R(a)};
    cpa=function(a){this.oa=R(a)};
    dpa=function(a){this.oa=R(a)};
    epa=function(a){this.oa=R(a)};
    fpa=function(a){this.oa=R(a)};
    hz=function(a){this.oa=R(a)};
    iz=function(a){this.oa=R(a)};
    jz=function(a){this.oa=R(a)};
    kz=function(a){this.oa=R(a)};
    gpa=function(a){this.oa=R(a)};
    hpa=function(a){this.oa=R(a)};
    lz=function(a){this.oa=R(a)};
    ipa=function(a){this.oa=R(a)};
    jpa=function(a){this.oa=R(a)};
    kpa=function(a){this.oa=R(a)};
    lpa=function(a){this.oa=R(a)};
    mz=function(a){this.oa=R(a)};
    mpa=function(a){this.oa=R(a)};
    npa=function(a){this.oa=R(a)};
    opa=function(a){this.oa=R(a)};
    ppa=function(a){this.oa=R(a)};
    qpa=function(a){this.oa=R(a)};
    rpa=function(a){this.oa=R(a)};
    spa=function(a){this.oa=R(a)};
    tpa=function(a){this.oa=R(a)};
    upa=function(a){this.oa=R(a)};
    nz=function(a){this.oa=R(a)};
    vpa=function(a){this.oa=R(a)};
    oz=function(a){this.oa=R(a)};
    pz=function(a){this.oa=R(a)};
    wpa=function(a){this.oa=R(a)};
    xpa=function(a){this.oa=R(a)};
    qz=function(a){this.oa=R(a)};
    ypa=function(a){this.oa=R(a)};
    zpa=function(a){this.oa=R(a)};
    Apa=function(a){this.oa=R(a)};
    Bpa=function(a){this.oa=R(a)};
    Cpa=function(a){this.oa=R(a)};
    Dpa=function(a){this.oa=R(a)};
    Epa=function(a){this.oa=R(a)};
    Fpa=function(a){this.oa=R(a)};
    rz=function(a){this.oa=R(a)};
    Gpa=function(a){this.oa=R(a)};
    Hpa=function(a){this.oa=R(a)};
    Ipa=function(a){this.oa=R(a)};
    sz=function(a){this.oa=R(a)};
    Jpa=function(a){this.oa=R(a)};
    Kpa=function(a){this.oa=R(a)};
    tz=function(a){this.oa=R(a)};
    uz=function(a){this.oa=R(a)};
    Lpa=function(a){this.oa=R(a)};
    Mpa=function(a){this.oa=R(a)};
    vz=function(a){this.oa=R(a)};
    wz=function(a){this.oa=R(a)};
    Npa=function(a){this.oa=R(a)};
    xz=function(a){this.oa=R(a)};
    Opa=function(a){this.oa=R(a)};
    yz=function(a){this.oa=R(a)};
    Ppa=function(a){this.oa=R(a)};
    zz=function(a){this.oa=R(a)};
    Az=function(a){this.oa=R(a)};
    Qpa=function(a){this.oa=R(a)};
    Rpa=function(a){this.oa=R(a)};
    Bz=function(a){this.oa=R(a)};
    Spa=function(a){this.oa=R(a)};
    Tpa=function(a){this.oa=R(a)};
    Cz=function(a){this.oa=R(a)};
    Upa=function(a){this.oa=R(a)};
    Vpa=function(a){this.oa=R(a)};
    Wpa=function(a){this.oa=R(a)};
    Xpa=function(a){this.oa=R(a)};
    Ypa=function(a){this.oa=R(a)};
    Zpa=function(a){this.oa=R(a)};
    $pa=function(a){this.oa=R(a)};
    aqa=function(a){this.oa=R(a)};
    bqa=function(a){this.oa=R(a)};
    cqa=function(a){this.oa=R(a)};
    Dz=function(a){this.oa=R(a)};
    dqa=function(a){this.oa=R(a)};
    eqa=function(a){this.oa=R(a)};
    Ez=function(a){this.oa=R(a)};
    fqa=function(a){this.oa=R(a)};
    Fz=function(a){this.oa=R(a)};
    Gz=function(a){this.oa=R(a)};
    gqa=function(a){this.oa=R(a)};
    hqa=function(a){this.oa=R(a)};
    Hz=function(a){this.oa=R(a)};
    iqa=function(a){this.oa=R(a)};
    jqa=function(a,b){ik(a,iz,1,b)};
    Iz=function(a){this.oa=R(a)};
    kqa=function(a,b){return ik(a,iz,1,b)};
    Jz=function(a){this.oa=R(a)};
    lqa=function(a,b){return ik(a,iz,2,b)};
    Kz=function(a){this.oa=R(a)};
    Lz=function(a){this.oa=R(a)};
    Mz=function(a){this.oa=R(a)};
    Nz=function(a){this.oa=R(a)};
    mqa=function(a){this.oa=R(a)};
    Oz=function(a){this.oa=R(a)};
    Pz=function(a){var b=new Oz;return S(b,1,a)};
    Qz=function(a,b){return S(a,2,b)};
    Rz=function(a){this.oa=R(a)};
    nqa=function(a){this.oa=R(a)};
    Sz=function(a){this.oa=R(a)};
    Tz=function(a,b){lk(a,68,Oz,b)};
    oqa=function(a){this.oa=R(a)};
    pqa=function(a){this.oa=R(a)};
    Uz=function(a){this.oa=R(a)};
    Vz=function(a){this.oa=R(a)};
    Wz=function(a){this.oa=R(a)};
    qqa=function(a){this.oa=R(a)};
    Xz=function(a){this.oa=R(a)};
    rqa=function(a){this.oa=R(a)};
    sqa=function(a){this.oa=R(a)};
    tqa=function(a){this.oa=R(a)};
    Yz=function(a){this.oa=R(a)};
    uqa=function(a){this.oa=R(a)};
    vqa=function(a){this.oa=R(a)};
    wqa=function(a){this.oa=R(a)};
    Zz=function(a){this.oa=R(a)};
    xqa=function(a){this.oa=R(a)};
    yqa=function(a){this.oa=R(a)};
    $z=function(a){this.oa=R(a)};
    aA=function(a){this.oa=R(a)};
    zqa=function(a){this.oa=R(a)};
    bA=function(a){this.oa=R(a)};
    Aqa=function(a){this.oa=R(a)};
    Bqa=function(a){this.oa=R(a)};
    cA=function(a){this.oa=R(a,497)};
    Cqa=function(a){this.oa=R(a)};
    dA=function(a){this.oa=R(a)};
    Dqa=function(a){this.oa=R(a)};
    Eqa=function(){return g.Wa("yt.ads.biscotti.lastId_")||""};
    Fqa=function(a){g.Va("yt.ads.biscotti.lastId_",a)};
    fA=function(){var a=arguments;a.length>1?eA[a[0]]=a[1]:a.length===1&&Object.assign(eA,a[0])};
    g.gA=function(a,b){return a in eA?eA[a]:b};
    hA=function(a){var b=eA.EXPERIMENT_FLAGS;return b?b[a]:void 0};
    Gqa=function(a){iA.forEach(function(b){return b(a)})};
    g.kA=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.jA(b)}}:a};
    g.jA=function(a){var b=g.Wa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.gA("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),fA("ERRORS",b));Gqa(a)};
    lA=function(a,b,c,d,e){var f=g.Wa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.gA("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),fA("ERRORS",f))};
    mA=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(f.length===1&&f[0]||f.length===2)try{var h=Hqa(f[0]||""),l=Hqa(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.Lb(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(mA);n.args=[{key:p,value:f[1],query:a,method:Iqa===q?"unchanged":q}];Jqa.hasOwnProperty(p)||lA(n)}}return c};
    nA=function(a){var b=[];g.Tc(a,function(c,d){var e=g.Xe(d);g.Yb(Array.isArray(c)?c:[c],function(f){f==""?b.push(e):b.push(e+"="+g.Xe(f))})});
        return b.join("&")};
    oA=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return mA(a,"&")};
    Kqa=function(a){return a.split(",").map(function(b){return oA(b)})};
    g.pA=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),oA(a.length>1?a[1]:a[0])):{}};
    qA=function(a,b){return Lqa(a,b||{},!0)};
    rA=function(a,b){return Lqa(a,b||{},!1)};
    Lqa=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=oA(e[1]||"");for(var f in b)if(c||!g.dd(e,f))e[f]=b[f];return g.wo(a,e)+d};
    sA=function(a){if(!b)var b=window.location.href;var c=g.yn(1,a),d=g.zn(a);c&&d?(a=a.match(xn),b=b.match(xn),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.zn(b)===d&&(Number(g.yn(4,b))||null)===(Number(g.yn(4,a))||null):!0;return a};
    tA=function(a){a||(a=document.location.href);a=g.yn(1,a);return a!==null&&a==="https"};
    uA=function(a){a=Mqa(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
    Nqa=function(a){a=Mqa(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1};
    Mqa=function(a){a=g.zn(a);return a!==null?a.split(".").reverse():null};
    Hqa=function(a){return a&&a.match(Oqa)?a:Ye(a)};
    vA=function(a){var b=Pqa;a=a===void 0?Eqa():a;var c=Object,d=c.assign,e=Qqa(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(C){}try{var m=f.outerWidth;var n=f.outerHeight}catch(C){}try{var p=f.innerWidth;var q=f.innerHeight}catch(C){}try{var r=f.screenLeft;var t=f.screenTop}catch(C){}try{p=f.innerWidth,q=f.innerHeight}catch(C){}try{var u=f.screen.availWidth;var w=f.screen.availTop}catch(C){}f=[r,t,h,l,u,w,m,n,p,q];h=oia(!1,b.j.top);l={};var A=A===void 0?g.Ua:A;m=new pla;"SVGElement"in A&&"createElementNS"in
    A.document&&m.set(0);n=Aha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=qla(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Sr(b.B),l.wgl=!!Pr.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
    Qqa=function(a){var b={};b.dt=Rqa;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?Pr:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=Pr.screen)==null?void 0:f.height;var h;b.u_w=(h=Pr.screen)==null?void 0:h.width;var l;b.u_ah=(l=Pr.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=Pr.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=Pr.screen)==null?void 0:
        n.colorDepth}catch(p){}return b};
    Tqa=function(){if(!Sqa)return null;var a=Sqa();return"open"in a?a:null};
    g.xA=function(a){switch(wA(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
    wA=function(a){return a&&"status"in a?a.status:-1};
    g.yA=function(a,b){typeof a==="function"&&(a=g.kA(a));return window.setTimeout(a,b)};
    g.zA=function(a,b){typeof a==="function"&&(a=g.kA(a));return window.setInterval(a,b)};
    g.AA=function(a){window.clearTimeout(a)};
    g.BA=function(a){window.clearInterval(a)};
    g.CA=function(a){a=Uqa(a);return typeof a==="string"&&a==="false"?!1:!!a};
    g.DA=function(a,b){a=Uqa(a);return a===void 0&&b!==void 0?b:Number(a||0)};
    Vqa=function(){return g.gA("EXPERIMENTS_TOKEN","")};
    Uqa=function(a){return g.gA("EXPERIMENT_FLAGS",{})[a]};
    Wqa=function(){for(var a=[],b=g.gA("EXPERIMENTS_FORCED_FLAGS",{}),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.gA("EXPERIMENT_FLAGS",{});d=g.v(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a};
    Zqa=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.kA(b)(n)}
        c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=Tqa();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.CA("debug_forward_web_query_parameters")&&(a=Xqa(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Yqa(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"===p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type",
            "application/x-www-form-urlencoded");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){lA(q)}}n.send(d);return n};
    Yqa=function(a,b){b=b===void 0?{}:b;var c=sA(a),d=g.gA("INNERTUBE_CLIENT_NAME"),e=g.CA("web_ajax_ignore_global_headers_if_set"),f;for(f in $qa){var h=g.gA($qa[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.gA("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.zn(a)?!1:!0))){m=a;var n;if(n=g.CA("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&Nqa(m))m=wn(g.yn(5,m))||"",m=m.split("/"),
        m="/"+(m.length>1?m[1]:""),n=m==="/pagead";m=n?!0:!1}m=!m}m||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&l||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.zn(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.zn(a)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}p&&(b["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.zn(a)||(b["X-YouTube-Ad-Signals"]=
        nA(vA()));return b};
    bra=function(a,b){var c=g.zn(a);g.CA("debug_handle_relative_url_for_query_forward_killswitch")||!c&&sA(a)&&(c=document.location.hostname);var d=wn(g.yn(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=oA(b),f={};g.Yb(ara,function(h){e[h]&&(f[h]=e[h])});
        return rA(a,f)};
    cra=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.EA(a,b)};
    g.EA=function(a,b){var c=b.format||"JSON";a=dra(a,b);var d=era(a,b),e=!1,f=fra(a,function(m){if(!e){e=!0;l&&g.AA(l);var n=g.xA(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=gra(a,c,m,b.convertToSafeHtml);n&&(n=hra(c,m,p));p=p||{};q=b.context||g.Ua;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&&d>0){var h=b.onTimeout;var l=g.yA(function(){e||(e=!0,f.abort(),g.AA(l),h.call(b.context||g.Ua,f))},d)}return f};
    dra=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.gA("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=qA(a,b);return a};
    era=function(a,b){var c=g.gA("XSRF_FIELD_NAME"),d=g.gA("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.gA("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.zn(a)&&!b.withCredentials&&g.zn(a)!==document.location.hostname||b.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.CA("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=oA(e),g.ld(e,f),e=b.postBodyFormat&&
    b.postBodyFormat==="JSON"?JSON.stringify(e):g.vo(e));f=e||f&&!g.gd(f);!ira&&f&&b.method!=="POST"&&(ira=!0,g.jA(Error("AJAX request with postData should use POST")));return e};
    gra=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,lA(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?jra(a):null)e={},g.Yb(a.getElementsByTagName("*"),function(h){e[h.tagName]=kra(h)})}d&&lra(e);
        return e};
    lra=function(a){if(g.db(a))for(var b in a)b==="html_content"||Faa(b,"_html")?a[b]=se(a[b]):lra(a[b])};
    hra=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}};
    jra=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
    kra=function(a){var b="";g.Yb(a.childNodes,function(c){b+=c.nodeValue});
        return b};
    GA=function(a,b){var c=g.jd(b),d;return(new g.fg(function(e,f){c.onSuccess=function(h){g.xA(h)?e(new mra(h)):f(new FA("Request failed, status="+wA(h),"net.badstatus",h))};
        c.onError=function(h){f(new FA("Unknown request error","net.unknown",h))};
        c.onTimeout=function(h){f(new FA("Request timed out","net.timeout",h))};
        d=g.EA(a,c)})).Jl(function(e){if(e instanceof mg){var f;
        (f=d)==null||f.abort()}return ig(e)})};
    g.HA=function(a,b,c,d){function e(l,m,n){return l.Jl(function(p){if(m<=0||wA(p.xhr)===403)return ig(new FA("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=h>0?Math.min(h,p):p;return f(n).then(function(){return e(GA(a,b),m-1,q)})})}
        function f(l){return new g.fg(function(m){setTimeout(m,l)})}
        var h=h===void 0?-1:h;return e(GA(a,b),c-1,d)};
    FA=function(a,b,c){wb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
    mra=function(a){this.xhr=a};
    IA=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null};
    JA=function(a){var b=new IA;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b};
    KA=function(a){var b=new IA;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b};
    g.NA=function(a,b,c,d,e){LA||MA.set(""+a,b,{SF:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})};
    g.OA=function(a,b){if(!LA)return MA.get(""+a,b)};
    g.nra=function(a,b,c){LA||MA.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)};
    ora=function(){if(g.CA("embeds_web_enable_cookie_detection_fix")){if(!g.Ua.navigator.cookieEnabled)return!1}else if(!MA.isEnabled())return!1;if(!MA.isEmpty())return!0;g.CA("embeds_web_enable_cookie_detection_fix")?MA.set("TESTCOOKIESENABLED","1",{SF:60,Ida:"none",secure:!0}):MA.set("TESTCOOKIESENABLED","1",{SF:60});if(MA.get("TESTCOOKIESENABLED")!=="1")return!1;MA.remove("TESTCOOKIESENABLED");return!0};
    g.V=function(a,b){if(a)return a[b.name]};
    pra=function(a){var b=g.gA("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(An(a)));return a};
    qra=function(a,b){var c={};g.CA("web_api_key_killswitch")&&(g.gA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.gA("INNERTUBE_API_KEY")));g.CA("json_condensed_response")&&(c.prettyPrint="false");return a=rA(a,c)};
    rra=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:sA(a)?"same-origin":"cors",credentials:sA(a)?"same-origin":"include"};b={};for(var d=g.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a};
    sra=function(){var a=/Chrome\/(\d+)/.exec(g.nc());return a?parseFloat(a[1]):NaN};
    tra=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.nc());if(!a)return NaN;var b=[];a=g.v(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),c>=0&&b.push(c);return parseFloat(b.join("."))};
    QA=function(){return g.PA("android")&&g.PA("chrome")&&!(g.PA("trident/")||g.PA("edge/"))&&!g.PA("cobalt")};
    ura=function(){return g.PA("armv7")||g.PA("aarch64")||g.PA("android")};
    g.RA=function(){return g.PA("cobalt")};
    SA=function(){return g.PA("cobalt")&&g.PA("appletv")};
    vra=function(){return g.PA("(ps3; leanback shell)")||g.PA("ps3")&&g.RA()};
    wra=function(){return g.PA("(ps4; leanback shell)")||g.PA("ps4")&&g.RA()};
    g.xra=function(){return g.RA()&&(g.PA("ps4 vr")||g.PA("ps4 pro vr"))};
    TA=function(){var a=/WebKit\/([0-9]+)/.exec(g.nc());return!!(a&&parseInt(a[1],10)>=600)};
    yra=function(){var a=/WebKit\/([0-9]+)/.exec(g.nc());return!!(a&&parseInt(a[1],10)>=602)};
    zra=function(){return g.PA("iemobile")||g.PA("windows phone")&&g.PA("edge")};
    Ara=function(){return(UA||VA)&&g.PA("applewebkit")&&!g.PA("version")&&(!g.PA("safari")||g.PA("gsa/"))};
    XA=function(){return g.WA&&g.PA("version/")};
    Bra=function(){return g.PA("smart-tv")&&g.PA("samsung")};
    g.PA=function(a){var b=g.nc();return b?b.toLowerCase().indexOf(a)>=0:!1};
    Cra=function(){return vfa()||Ara()||XA()?!0:g.gA("EOM_VISITOR_DATA")?!1:!0};
    YA=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1};
    ZA=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
    $A=function(a,b){return b===void 0||b===null?a:Number(b)};
    aB=function(a,b){return b===void 0||b===null?a:b.toString()};
    Era=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(Dra))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN};
    bB=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
    Gra=function(a){return Fra(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
    g.cB=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
    Fra=function(a,b){b=(b===void 0?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?ZA(b,c.embeddedPlayerMode,Hra):b};
    Ira=function(a){wb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof dB;this.isTimeout=a instanceof FA&&a.errorCode=="net.timeout";this.isCanceled=a instanceof mg};
    dB=function(){wb.call(this,"Biscotti ID is missing from server")};
    Jra=function(){if(g.CA("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Cra())return Error("User has not consented - not fetching biscotti id.");var a=g.gA("PLAYER_VARS",{});if(g.hd(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Gra(a))return Error("Biscotti id fetching has been disabled for pfl.")};
    Nra=function(){var a=Jra();if(a!==void 0)return ig(a);eB||(eB=GA("//googleads.g.doubleclick.net/pagead/id",Kra).then(Lra).Jl(function(b){return Mra(2,b)}));
        return eB};
    Lra=function(a){a=a.xhr.responseText;if(!dc(a,")]}'"))throw new dB;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new dB;a=a.id;Fqa(a);eB=KA(a);Ora(18E5,2);return a};
    Mra=function(a,b){b=new Ira(b);Fqa("");eB=JA(b);a>0&&Ora(12E4,a-1);throw b;};
    Ora=function(a,b){g.yA(function(){GA("//googleads.g.doubleclick.net/pagead/id",Kra).then(Lra,function(c){return Mra(b,c)}).Jl(g.Jd)},a)};
    Pra=function(){try{var a=g.Wa("yt.ads.biscotti.getId_");return a?a():Nra()}catch(b){return ig(b)}};
    Zra=function(a){a&&(a.dataset?a.dataset[Qra()]="true":Nba(a))};
    $ra=function(a){return a?a.dataset?a.dataset[Qra()]:a.getAttribute("data-loaded"):null};
    Qra=function(){return asa.loaded||(asa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
    csa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=bsa+"VisibilityState";if(b in a)return a[b]};
    fB=function(a,b){var c;Zs(a,function(d){c=b[d];return!!c});
        return c};
    dsa=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()};
    iB=function(a){var b;g.gB()?hB()==a&&(b=document):b=a;return b&&(a=fB(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
    esa=function(a){return g.Cb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
    fsa=function(){var a=document;return g.Cb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
    g.gB=function(){return!!fB(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
    hB=function(a){a=a===void 0?!1:a;var b=fB(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
    jB=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in gsa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
        if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}};
    hsa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
    isa=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return fd(kB,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.db(e[4])&&g.db(d)&&g.id(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
    g.lB=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=isa(a,b,c,d);if(e)return e;e=++jsa.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new jB(l);if(!Lf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new jB(l);
        l.currentTarget=a;return c.call(a,l)};
        h=g.kA(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ksa()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);kB[e]=[a,b,c,h,d];return e};
    msa=function(a){return lsa(a,function(b){return g.Gv(b,"ytp-ad-has-logging-urls")})};
    lsa=function(a,b){var c=document.body||document;return g.lB(c,"click",function(d){var e=Lf(d.target,function(f){return f===c||b(f)},!0);
        e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
    g.mB=function(a){a&&(typeof a=="string"&&(a=[a]),g.Yb(a,function(b){if(b in kB){var c=kB[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ksa()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete kB[b]}}))};
    nsa=function(a){for(var b in kB)kB[b][0]==a&&g.mB(b)};
    nB=function(a){a=a||window.event;var b;a.composedPath&&typeof a.composedPath==="function"?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a};
    oB=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.ra=g.lB(window,"mousemove",(0,g.ib)(this.Y,this));this.Z=g.zA((0,g.ib)(this.qa,this),25)};
    pB=function(a){g.I.call(this);this.N=[];this.rb=a||this};
    qB=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
    g.rB=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&osa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
    sB=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.jd(b);this.assets=a.assets||{};this.attrs=a.attrs||g.jd(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
    psa=function(a){a instanceof sB||(a=new sB(a));return a};
    g.uB=function(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.tB)():qsa())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
    g.vB=function(a){var b=qsa(),c=(0,g.tB)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
    rsa=function(){var a=(0,g.tB)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
    g.wB=function(a){try{var b=qsa(),c=(0,g.tB)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
    g.xB=function(){return g.vB("yt-remote-session-screen-id")};
    ssa=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c});
        a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
    tsa=function(){if(!g.Ua.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ua.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ua.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ua.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ua.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
    yB=function(){this.m2=!0};
    usa=function(){yB.instance||(yB.instance=new yB);return yB.instance};
    vsa=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
    wsa=function(){this.j=g.gA("ALT_PREF_COOKIE_NAME","PREF");this.B=g.gA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.OA(this.j);a&&this.parse(a)};
    g.zB=function(){xsa||(xsa=new wsa);return xsa};
    g.AB=function(a,b){return!!((ysa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
    zsa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=ysa(c)||0;d=b?d|a:d&~a;d===0?delete BB[c]:(b=d.toString(16),BB[c]=b.toString())};
    Asa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
    Bsa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
    ysa=function(a){a=BB[a]!==void 0?BB[a].toString():null;return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
    Csa=function(){var a=g.Ua.navigator;return a?a.connection:void 0};
    Esa=function(){var a=Csa();if(a){var b=Dsa[a.type||"unknown"]||"CONN_UNKNOWN";a=Dsa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&a!=="CONN_UNKNOWN"&&(b=a);if(b!=="CONN_UNKNOWN")return b;if(a!=="CONN_UNKNOWN")return a}};
    Gsa=function(){var a=Csa();if(a!=null&&a.effectiveType)return Fsa.hasOwnProperty(a.effectiveType)?Fsa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
    g.CB=function(a){var b=g.Ja.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.ra(b))};
    g.EB=function(){try{return g.DB(),!0}catch(a){return!1}};
    g.DB=function(a){if(g.gA("DATASYNC_ID")!==void 0)return g.gA("DATASYNC_ID");throw new g.CB("Datasync ID not set",a===void 0?"unknown":a);};
    FB=function(){this.j=new WeakMap};
    g.LB=function(a,b,c){return KB(b,0,c)};
    Hsa=function(a){var b=g.Wa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
    MB=function(){FB.apply(this,arguments)};
    g.NB=function(){MB.instance||(MB.instance=new MB);return MB.instance};
    g.OB=function(){return!!g.Wa("yt.scheduler.instance")};
    KB=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Wa("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):g.yA(a,c||0)};
    PB=function(a,b){(a=g.Wa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
    QB=function(a){this.j=(a=g.gw(a))?new aw(a):null;this.B=document.domain||window.location.hostname};
    Jsa=function(){var a;return(a=Isa())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
    Msa=function(){var a={};for(RB=new Ksa(a.handleError===void 0?Lsa:a.handleError,a.logEvent===void 0?g.SB:a.logEvent);TB.length>0;)switch(a=TB.shift(),a.type){case "ERROR":RB.wk(a.payload);break;case "EVENT":RB.logEvent(a.eventType,a.payload)}};
    VB=function(a){UB||(RB?RB.wk(a):(TB.push({type:"ERROR",payload:a}),TB.length>10&&TB.shift()))};
    WB=function(a,b){UB||(RB?RB.logEvent(a,b):(TB.push({type:"EVENT",eventType:a,payload:b}),TB.length>10&&TB.shift()))};
    XB=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
    YB=function(a){return a.substr(0,a.indexOf(":"))||a};
    g.ZB=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Nsa[a]:c;d=d===void 0?Osa[a]:d;e=e===void 0?Psa[a]:e;g.CB.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.ZB.prototype)};
    Qsa=function(a,b){g.ZB.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Nsa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Qsa.prototype)};
    $B=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,$B.prototype)};
    Ssa=function(a,b,c,d){b=YB(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.ZB)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.ZB("QUOTA_EXCEEDED",a);if(g.aC&&e.name==="UnknownError")return new g.ZB("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof $B)return new g.ZB("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Rsa.some(function(f){return e.message.includes(f)}))return new g.ZB("EXECUTE_TRANSACTION_ON_CLOSED_DB",
        a);
        if(e.name==="AbortError")return new g.ZB("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",rL:e.name})];e.level="WARNING";return e};
    g.bC=function(a,b,c){var d=Jsa();return new g.ZB("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
    Tsa=function(a){if(!a)throw Error();throw a;};
    Usa=function(a){return a};
    cC=function(a){this.j=a};
    g.dC=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.v(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
        function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=g.v(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
        var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
    Wsa=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.dC?Vsa(a,b,f,d,e):d(f)}catch(h){e(h)}};
    Xsa=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.dC?Vsa(a,b,f,d,e):d(f)}catch(h){e(h)}};
    Vsa=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.dC?Vsa(a,b,f,d,e):d(f)},function(f){e(f)})};
    Ysa=function(a,b,c){function d(){c(a.error);f()}
        function e(){b(a.result);f()}
        function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}}
        a.addEventListener("success",e);a.addEventListener("error",d)};
    Zsa=function(a){return new Promise(function(b,c){Ysa(a,b,c)})};
    eC=function(a){return new g.dC(new cC(function(b,c){Ysa(a,b,c)}))};
    $sa=function(a,b){return new g.dC(new cC(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
        e()}))};
    ata=function(a,b){this.request=a;this.cursor=b};
    bta=function(a){return eC(a).then(function(b){return b?new ata(a,b):null})};
    g.cta=function(a){a.cursor.continue(void 0);return bta(a.request)};
    dta=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.fC)());this.B=!1};
    g.gC=function(a,b,c){a=a.j.createObjectStore(b,c);return new eta(a)};
    hC=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
    g.kC=function(a,b,c){return g.iC(a,[b],{mode:"readwrite",Nb:!0},function(d){return g.jC(d.objectStore(b),c)})};
    g.iC=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,w;return g.G(function(A){switch(A.j){case 1:var C={mode:"readonly",Nb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Nb?3:1;h=0;case 2:if(l){A.Ia(4);break}h++;m=Math.round((0,g.fC)());g.Ba(A,5);n=a.j.transaction(b,e.mode);C=new lC(n);C=fta(C,d);return g.z(A,C,7);case 7:return p=A.B,q=Math.round((0,g.fC)()),gta(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.Da(A);t=Math.round((0,g.fC)());
        u=Ssa(r,a.j.name,b.join(),a.j.version);if((w=u instanceof g.ZB&&!u.j)||h>=f)gta(a,m,t,h,u,b.join(),e),l=u;A.Ia(2);break;case 4:return A.return(Promise.reject(l))}})};
    gta=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.ZB&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&WB("QUOTA_EXCEEDED",{dbName:YB(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.ZB&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=Math.pow(2,31)&&(c=0),WB("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),hta(a,!1,d,f,b,h.tag),VB(e)):hta(a,!0,d,
        f,b,h.tag)};
    hta=function(a,b,c,d,e,f){WB("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
    eta=function(a){this.j=a};
    g.mC=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
    ita=function(a,b){return g.nC(a,{query:b},function(c){return c.delete().then(function(){return g.oC(c)})}).then(function(){})};
    jta=function(a,b,c){var d=[];return g.nC(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.oC(e)}).then(function(){return d})};
    lta=function(a){return"getAllKeys"in IDBObjectStore.prototype?eC(a.j.getAllKeys(void 0,void 0)):kta(a)};
    kta=function(a){var b=[];return g.mta(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.cta(c)}).then(function(){return b})};
    g.jC=function(a,b,c){return eC(a.j.put(b,c))};
    g.nC=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return nta(a).then(function(d){return $sa(d,c)})};
    g.mta=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 bta(a).then(function(e){return $sa(e,c)})};
    lC=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.ZB;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(m===null)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
    fta=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
        return Promise.all([c,a.done]).then(function(d){return g.v(d).next().value})};
    ota=function(a){this.j=a};
    pta=function(a,b,c){var d=[];return g.pC(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.oC(e)}).then(function(){return d})};
    g.pC=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return nta(a).then(function(d){return $sa(d,c)})};
    qC=function(a,b){this.request=a;this.cursor=b};
    nta=function(a){return eC(a).then(function(b){return b?new qC(a,b):null})};
    g.oC=function(a){a.cursor.continue(void 0);return nta(a.request)};
    qta=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new dta(h.result,{closed:q}));return r}
        var h=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.xea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(h.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&WB("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:YB(a)});var u=f(),w=new lC(h.transaction);
            p&&p(u,function(A){return t.oldVersion<A&&t.newVersion>=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(){WB("IDB_UNEXPECTEDLY_CLOSED",{dbName:YB(a),dbVersion:t.version});n&&n()});
            d(f())});
        h.addEventListener("error",function(){e(h.error)});
        l&&h.addEventListener("blocked",function(){l()})})};
    rta=function(a,b,c){c=c===void 0?{}:c;return qta(a,b,c)};
    rC=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.G(function(h){if(h.j==1)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Zsa(c),4);
        if(h.j!=2)return g.Ca(h,0);f=g.Da(h);throw Ssa(f,a,"",-1);})};
    sC=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
    sta=function(a,b){return new g.ZB("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
    g.tC=function(a,b){if(!b)throw g.bC("openWithToken",YB(a.name));return a.open()};
    uta=function(a,b){var c;return g.G(function(d){if(d.j==1)return g.z(d,g.tC(tta,b),2);c=d.B;return d.return(g.iC(c,["databases"],{Nb:!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.jC(f,a).then(function(){})})}))})};
    uC=function(a,b){var c;return g.G(function(d){if(d.j==1)return a?g.z(d,g.tC(tta,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
    vta=function(a,b){var c,d;return g.G(function(e){return e.j==1?(c=[],g.z(e,g.tC(tta,b),2)):e.j!=3?(d=e.B,g.z(e,g.iC(d,["databases"],{Nb:!0,mode:"readonly"},function(f){c.length=0;return g.nC(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.oC(h)})}),3)):e.return(c)})};
    wta=function(a,b){return vta(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)};
    yta=function(){var a,b,c,d;return g.G(function(e){switch(e.j){case 1:a=Jsa();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(vC&&TA()&&!yra()||g.wC)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,uta(d,xta),4);case 4:return g.z(e,uC("yt-idb-test-do-not-use",xta),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
    Ata=function(){if(zta!==void 0)return zta;UB=!0;return zta=yta().then(function(a){UB=!1;var b;if((b=Isa())!=null&&b.j){var c;b={hasSucceededOnce:((c=Jsa())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Isa())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
    xC=function(){return g.Wa("ytglobal.idbToken_")||void 0};
    g.yC=function(){var a=xC();return a?Promise.resolve(a):Ata().then(function(b){(b=b?xta:void 0)&&g.Va("ytglobal.idbToken_",b);return b})};
    Bta=function(a){if(!g.EB())throw a=new g.ZB("AUTH_INVALID",{dbName:a}),VB(a),a;var b=g.DB();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
    Cta=function(a,b,c,d){var e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.z(p,g.yC(),2);case 2:h=p.B;if(!h)throw l=g.bC("openDbImpl",a,b),g.CA("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),VB(l),l;XB(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Bta(a);g.Ba(p,3);return g.z(p,uta(m,h),5);case 5:return g.z(p,rta(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,uC(m.actualName,
        h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
    Dta=function(a,b,c){c=c===void 0?{}:c;return Cta(a,b,!1,c)};
    Eta=function(a,b,c){c=c===void 0?{}:c;return Cta(a,b,!0,c)};
    Fta=function(a,b){b=b===void 0?{}:b;var c,d;return g.G(function(e){if(e.j==1)return g.z(e,g.yC(),2);if(e.j!=3){c=e.B;if(!c)return e.return();XB(a);d=Bta(a);return g.z(e,rC(d.actualName,b),3)}return g.z(e,uC(d.actualName,c),0)})};
    Gta=function(a,b,c){a=a.map(function(d){return g.G(function(e){return e.j==1?g.z(e,rC(d.actualName,b),2):g.z(e,uC(d.actualName,c),0)})});
        return Promise.all(a).then(function(){})};
    Hta=function(a){var b=b===void 0?{}:b;var c,d;return g.G(function(e){if(e.j==1)return g.z(e,g.yC(),2);if(e.j!=3){c=e.B;if(!c)return e.return();XB(a);return g.z(e,wta(a,c),3)}d=e.B;return g.z(e,Gta(d,b,c),0)})};
    Ita=function(a,b){b=b===void 0?{}:b;var c;return g.G(function(d){if(d.j==1)return g.z(d,g.yC(),2);if(d.j!=3){c=d.B;if(!c)return d.return();XB(a);return g.z(d,rC(a,b),3)}return g.z(d,uC(a,c),0)})};
    zC=function(a,b){sC.call(this,a,b);this.options=b;XB(a)};
    Jta=function(a,b){var c;return function(){c||(c=new zC(a,b));return c}};
    g.AC=function(a,b){return Jta(a,b)};
    BC=function(a){return g.tC(Kta(),a)};
    Lta=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:d!==void 0?d:(0,g.fC)()},g.z(l,BC(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.kC(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
    Mta=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:e!==void 0?e:(0,g.fC)()},g.z(m,BC(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.kC(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
    Nta=function(a){var b,c;return g.G(function(d){return d.j==1?g.z(d,BC(a),2):d.j!=3?(b=d.B,c=void 0,g.z(d,g.iC(b,["coldConfigStore"],{mode:"readwrite",Nb:!0},function(e){return g.pC(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
    Ota=function(a){var b,c;return g.G(function(d){return d.j==1?g.z(d,BC(a),2):d.j!=3?(b=d.B,c=void 0,g.z(d,g.iC(b,["hotConfigStore"],{mode:"readwrite",Nb:!0},function(e){return g.pC(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
    Pta=function(){return g.G(function(a){return g.z(a,Hta("ytGcfConfig"),0)})};
    Qta=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Wa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.ra(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))};
    GC=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Qta;this.rd={Jqb:function(){a.G=!0},
        Opb:function(){return a.j},
        Nrb:function(b){CC(a,b)},
        Cs:function(b){a.Cs(b)},
        Hrb:function(b){Rta(a,b)},
        H8:function(){return a.coldHashData},
        P8:function(){return a.hotHashData},
        fqb:function(){return a.B},
        Xpb:function(){return DC()},
        Zpb:function(){return EC()},
        Ypb:function(){return g.Wa("yt.gcf.config.coldHashData")},
        aqb:function(){return g.Wa("yt.gcf.config.hotHashData")},
        gsb:function(){Sta(a)},
        Brb:function(){a.Cs(void 0);FC(a);delete GC.instance},
        Krb:function(b){a.C=b},
        Tpb:function(){return a.C}}};
    Tta=function(){if(!GC.instance){var a=new GC;GC.instance=a}return GC.instance};
    Wta=function(a){var b;g.G(function(c){if(c.j==1)return g.CA("start_client_gcf")||g.CA("delete_gcf_config_db")?g.CA("start_client_gcf")?g.z(c,g.yC(),3):c.Ia(2):c.return();c.j!=2&&((b=c.B)&&g.EB()&&!g.CA("delete_gcf_config_db")?(a.G=!0,Sta(a)):(Uta(a),Vta(a)));return g.CA("delete_gcf_config_db")?g.z(c,Pta(),0):c.Ia(0)})};
    HC=function(){var a;return(a=EC())!=null?a:g.gA("RAW_HOT_CONFIG_GROUP")};
    Xta=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(EC());if(!a.G)return b=g.bC("getHotConfig IDB not initialized"),lA(b),l.return(Promise.reject(b));c=xC();d=g.gA("TIME_CREATED_MS");if(!c){e=g.bC("getHotConfig token error");lA(e);l.Ia(2);break}return g.z(l,Ota(c),3);case 3:if((f=l.B)&&f.timestamp>d)return CC(a,f.config),a.Cs(f.hashData),l.return(EC());case 2:Vta(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.z(l,Lta(a.B,a.hotHashData,c,d),4);case 4:return a.B?
        l.return(EC()):(h=new g.CB("Config not available in ytConfig"),lA(h),l.return(Promise.reject(h)))}})};
    Zta=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(DC());if(!a.G)return b=g.bC("getColdConfig IDB not initialized"),lA(b),l.return(Promise.reject(b));c=xC();d=g.gA("TIME_CREATED_MS");if(!c){e=g.bC("getColdConfig");lA(e);l.Ia(2);break}return g.z(l,Nta(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Rta(a,f.config),Yta(a,f.configData),FC(a,f.hashData),l.return(DC());case 2:Uta(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.z(l,Mta(a.j,
        a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(DC()):(h=new g.CB("Config not available in ytConfig"),lA(h),l.return(Promise.reject(h)))}})};
    Sta=function(a){if(!a.B||!a.j){if(!xC()){var b=g.bC("scheduleGetConfigs");lA(b)}a.D||(a.D=g.wv.Ri(function(){return g.G(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,Xta(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,Zta(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))}};
    $ta=function(a,b,c){var d,e,f;return g.G(function(h){switch(h.j){case 1:if(!g.CA("start_client_gcf")){h.Ia(0);break}c&&CC(a,c);a.Cs(b);d=xC();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.z(h,Ota(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.z(h,Lta(c,b,d),3);case 3:if(c)for(var l=c,m=g.v(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
    aua=function(a,b,c){var d,e,f,h;return g.G(function(l){if(l.j==1){if(!g.CA("start_client_gcf"))return l.Ia(0);FC(a,b);return(d=xC())?c?l.Ia(4):g.z(l,Nta(d),5):l.Ia(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.z(l,Mta(c,b,h,d),0)})};
    bua=function(){var a=Tta(),b=(0,g.fC)()-a.C;if(!(a.C!==0&&b<g.DA("send_config_hash_timer"))){b=g.Wa("yt.gcf.config.coldConfigData");var c=g.Wa("yt.gcf.config.hotHashData"),d=g.Wa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.fC)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
    Uta=function(a){Rta(a,g.gA("RAW_COLD_CONFIG_GROUP"));FC(a,g.gA("SERIALIZED_COLD_HASH_DATA"));var b;Yta(a,(b=a.j)==null?void 0:b.configData)};
    Vta=function(a){CC(a,g.gA("RAW_HOT_CONFIG_GROUP"));a.Cs(g.gA("SERIALIZED_HOT_HASH_DATA"))};
    CC=function(a,b){a.B=b;g.Va("yt.gcf.config.hotConfigGroup",a.B||null)};
    Rta=function(a,b){a.j=b;g.Va("yt.gcf.config.coldConfigGroup",a.j||null)};
    FC=function(a,b){a.coldHashData=b;g.Va("yt.gcf.config.coldHashData",a.coldHashData||null)};
    Yta=function(a,b){a.configData=b;g.Va("yt.gcf.config.coldConfigData",a.configData||null)};
    EC=function(){return g.Wa("yt.gcf.config.hotConfigGroup")};
    DC=function(){return g.Wa("yt.gcf.config.coldConfigGroup")};
    cua=function(){return"INNERTUBE_API_KEY"in eA&&"INNERTUBE_API_VERSION"in eA};
    g.IC=function(){return{innertubeApiKey:g.gA("INNERTUBE_API_KEY"),innertubeApiVersion:g.gA("INNERTUBE_API_VERSION"),lK:g.gA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),sQ:g.gA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),nZ:g.gA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.gA("INNERTUBE_CONTEXT_CLIENT_VERSION"),uQ:g.gA("INNERTUBE_CONTEXT_HL"),tQ:g.gA("INNERTUBE_CONTEXT_GL"),oZ:g.gA("INNERTUBE_HOST_OVERRIDE")||"",pZ:!!g.gA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),vQ:!!g.gA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
            !1),appInstallData:g.gA("SERIALIZED_CLIENT_CONFIG_DATA")}};
    g.jua=function(a){var b={client:{hl:a.uQ,gl:a.tQ,clientName:a.sQ,clientVersion:a.innertubeContextClientVersion,configInfo:a.lK}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ua.devicePixelRatio;c&&c!=1&&(b.client.screenDensityFloat=String(c));c=Vqa();c!==""&&(b.client.experimentsToken=c);c=Wqa();c.length>0&&(b.request={internalExperimentFlags:c});dua(a,void 0,b);eua(void 0,b);fua(void 0,b);gua(a,void 0,b);hua(void 0,b);g.CA("start_client_gcf")&&iua(void 0,b);g.gA("DELEGATED_SESSION_ID")&&
    !g.CA("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.gA("DELEGATED_SESSION_ID")});!g.CA("fill_delegate_context_in_gel_killswitch")&&(a=g.gA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.v(Object.entries(oA(g.gA("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?e.deviceMake=l:h==="cmodel"?e.deviceModel=l:h==="cbr"?
        e.browserName=l:h==="cbrver"?e.browserVersion=l:h==="cos"?e.osName=l:h==="cosver"?e.osVersion=l:h==="cplatform"&&(e.platform=l)}b.client=c.call(a,d,e);return b};
    dua=function(a,b,c){a=a.sQ;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=g.hk(b,vx,96)||new vx;var d=tsa();d=Object.keys(kua).indexOf(d);d=d===-1?null:d;d!==null&&T(c,3,d);ik(b,vx,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=tsa())};
    eua=function(a,b){var c=g.Wa("yt.embedded_player.embed_url");c&&(a?(b=g.hk(a,zx,7)||new zx,S(b,4,c),ik(a,zx,7,b)):b&&(b.thirdParty={embedUrl:c}))};
    fua=function(a,b){var c;if(g.CA("web_log_memory_total_kbytes")&&((c=g.Ua.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.Ua.navigator)==null?void 0:d.deviceMemory;a?Lj(a,95,Fi(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}};
    gua=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=g.hk(b,tx,62))!=null?d:new tx;S(c,6,a.appInstallData);ik(b,tx,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
    hua=function(a,b){var c=Esa();c&&(a?T(a,61,lua[c]):b&&(b.client.connectionType=c));g.CA("web_log_effective_connection_type")&&(c=Gsa())&&(a?T(a,94,mua[c]):b&&(b.client.effectiveConnectionType=c))};
    nua=function(a,b,c){c=c===void 0?{}:c;var d={};g.gA("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.gA("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.gA("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.RW||g.gA("AUTHORIZATION");b||(a?b="Bearer "+g.Wa("gapi.auth.getToken")().access_token:(a=usa().IE(JC),g.CA("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
    iua=function(a,b){var c=bua();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=g.hk(a,tx,62))!=null?f:new tx;d=S(b,1,d);S(d,3,e).Cs(c);ik(a,tx,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}};
    KC=function(a,b){this.version=a;this.args=b};
    LC=function(a,b){this.topic=a;this.j=b};
    MC=function(a,b){var c=oua();c&&c.publish.call(c,a.toString(),a,b)};
    qua=function(a,b){var c=oua();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Wa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(NC[d])try{if(f&&a instanceof LC&&a!=e)try{var l=a.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Bv){var n=new l;l.Bv=n.version}var p=l.Bv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
        g.Kb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.jA(q)}},pua[a.toString()]?g.OB()?g.wv.Ri(h):g.yA(h,0):h())});
        NC[d]=!0;OC[a.toString()]||(OC[a.toString()]=[]);OC[a.toString()].push(d);return d};
    sua=function(a,b){var c=qua(a,function(d){b.apply(void 0,arguments);rua(c)});
        return c};
    rua=function(a){var b=oua();b&&(typeof a==="number"&&(a=[a]),g.Yb(a,function(c){b.unsubscribeByKey(c);delete NC[c]}))};
    oua=function(){return g.Wa("ytPubsub2Pubsub2Instance")};
    tua=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&MC("meta_logging_csi_event",{timerName:a,esb:b})};
    vua=function(){uua||(uua=Kw(g.gA("WORKER_SERIALIZATION_URL")));return uua||void 0};
    PC=function(){var a=vua();wua||a===void 0||(wua=new Worker(g.Zd(a),void 0));return wua};
    xua=function(){return typeof Worker==="function"&&vua()?!0:!1};
    Aua=function(){if(xua()&&!yua){var a=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var d=QC.get(c.key);d&&(zua(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),QC.delete(c.key))}},b=PC();
        b&&(b.addEventListener("message",a),b.onerror=function(){QC.clear()},yua=!0)}};
    SC=function(a,b,c,d,e){e=e===void 0?!1:e;var f={startTime:(0,g.fC)(),ticks:{},infos:{}};if(RC)try{var h=Bua(b);if(h!=null&&(h>Cua||h<Dua))d(a,c);else{if(g.CA("gzip_gel_with_worker")&&(g.CA("initial_gzip_use_main_thread")&&!Eua||!g.CA("initial_gzip_use_main_thread"))){yua||Aua();var l=PC();if(l&&!e){QC.set(Fua,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:Fua});Fua++;return}}var m=Fma(Gua(b));zua(m,f,a,c,d)}}catch(n){lA(n),d(a,c)}else d(a,c)};
    zua=function(a,b,c,d,e){Eua=!1;var f=(0,g.fC)();b.ticks.gelc=f;TC++;g.CA("disable_compression_due_to_performance_degredation")&&f-b.startTime>=Hua&&(UC++,g.CA("abandon_compression_after_N_slow_zips")?TC===g.DA("compression_disable_point")&&UC>Iua&&(RC=!1):RC=!1);Jua(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
    Kua=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.fC)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Wa("yt.logging.gzipForFetch",!1):!0;if(RC&&f){if(!a.body)return a;try{var h=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=h;if(!c&&typeof h==="string"){var l=Bua(h);if(l!=null&&(l>Cua||l<Dua))return a;c=b?{level:1}:void 0;f=Fma(Gua(h),c);var m=(0,g.fC)();e.ticks.gelc=m;if(b){TC++;if((g.CA("disable_compression_due_to_performance_degredation")||g.CA("disable_compression_due_to_performance_degradation_lr"))&&
        m-d>=Hua)if(UC++,g.CA("abandon_compression_after_N_slow_zips")||g.CA("abandon_compression_after_N_slow_zips_lr")){b=UC/TC;var n=Iua/g.DA("compression_disable_point");TC>0&&TC%g.DA("compression_disable_point")===0&&b>=n&&(RC=!1)}else RC=!1;Jua(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return lA(p),a}}else return a};
    Bua=function(a){try{return(new Blob(a.split(""))).size}catch(b){return lA(b),null}};
    Jua=function(a){g.CA("gel_compression_csi_killswitch")||!g.CA("log_gel_compression_latency")&&!g.CA("log_gel_compression_latency_lr")||tua("gel_compression",a,{sampleRate:.1})};
    WC=function(a){var b=this;this.DI=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
        this.tA=function(){};
        this.now=Date.now;this.oE=!1;this.rd={Jrb:function(p){b.Df=p},
            isb:function(){b.zC()},
            v7:function(){b.qO()},
            lF:function(p){return g.G(function(q){return g.z(q,b.lF(p),0)})},
            VL:function(p,q){return b.VL(p,q)},
            YL:function(){b.YL()}};
        var c;this.s2=(c=a.s2)!=null?c:100;var d;this.q1=(d=a.q1)!=null?d:1;var e;this.d1=(e=a.d1)!=null?e:2592E6;var f;this.U0=(f=a.U0)!=null?f:12E4;var h;this.o1=(h=a.o1)!=null?h:5E3;var l;this.Df=(l=a.Df)!=null?l:void 0;this.jJ=!!a.jJ;var m;this.NI=(m=a.NI)!=null?m:.1;var n;this.GL=(n=a.GL)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.tA&&(this.tA=a.tA);a.oE&&(this.oE=a.oE);a.DI&&(this.DI=a.DI);this.fb=a.fb;this.Bo=a.Bo;this.Ih=a.Ih;this.kh=a.kh;this.sendFn=a.sendFn;this.gS=a.gS;this.rR=
            a.rR;VC(this)&&(!this.fb||this.fb("networkless_logging"))&&Lua(this)};
    Lua=function(a){VC(a)&&!a.oE&&(a.j=!0,a.jJ&&Math.random()<=a.NI&&a.Ih.z7(a.Df),a.YL(),a.kh.Hh()&&a.zC(),a.kh.listen(a.gS,a.zC.bind(a)),a.kh.listen(a.rR,a.qO.bind(a)))};
    Oua=function(a,b){if(!VC(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=Mua(f);(l=Nua(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.GL)){p.Ia(2);break}if(!a.kh.cM){p.Ia(3);break}return g.z(p,a.kh.cM(),3);case 3:if(a.kh.Hh()){p.Ia(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||((m=b)==null?void 0:
            m.id)===void 0){p.Ia(6);break}return g.z(p,a.Ih.RS(b.id,a.Df,!1),6);case 6:return p.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.GL)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ia(8);break}return b.sendCount<a.q1?g.z(p,a.Ih.RS(b.id,a.Df,!0,l?!1:void 0),12):g.z(p,a.Ih.Uz(b.id,a.Df),8);case 12:a.Bo.Ri(function(){a.kh.Hh()&&a.zC()},a.o1);
            case 8:c(e,f),g.Aa(p)}})};
        var d=b.options.onSuccess?b.options.onSuccess:function(){};
        b.options.onSuccess=function(e,f){var h;return g.G(function(l){if(l.j==1)return((h=b)==null?void 0:h.id)===void 0?l.Ia(2):g.z(l,a.Ih.Uz(b.id,a.Df),2);a.kh.Gx&&a.fb&&a.fb("vss_network_hint")&&a.kh.Gx(!0);d(e,f);g.Aa(l)})};
        return b};
    XC=function(a,b){a.w3&&!a.kh.Hh()?a.w3(b):a.handleError(b)};
    VC=function(a){return!!a.Df||a.DI};
    Mua=function(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0};
    Nua=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)};
    Pua=function(){if(YC)return YC();var a={};YC=g.AC("LogsDatabaseV2",{Zr:(a.LogsRequestsStore={En:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.gC(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.mC(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&hC(b,"sapisid");c(9)&&hC(b,"SWHealthLog")},
        version:9});return YC()};
    ZC=function(a){return g.tC(Pua(),a)};
    Rua=function(a,b){var c,d,e,f;return g.G(function(h){if(h.j==1)return c={startTime:(0,g.fC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,ZC(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.gA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.kC(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.fC)();Qua(c);return h.return(f)})};
    Sua=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(p.j==1)return c={startTime:(0,g.fC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,ZC(b),2);if(p.j!=3)return d=p.B,e=g.gA("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.fC)()],l=IDBKeyRange.bound(f,h),m="prev",g.CA("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.iC(d,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(q){return g.pC(q.objectStore("LogsRequestsStore").index("newRequestV2"),
        {query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),a==="NEW"&&(n.status="QUEUED",r.update(n)))})}),3);
        c.ticks.tc=(0,g.fC)();Qua(c);return p.return(n)})};
    Tua=function(a,b){var c;return g.G(function(d){if(d.j==1)return g.z(d,ZC(b),2);c=d.B;return d.return(g.iC(c,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.jC(f,h).then(function(){return h})})}))})};
    Uua=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.G(function(f){if(f.j==1)return g.z(f,ZC(b),2);e=f.B;return f.return(g.iC(e,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),d!==void 0&&(m.options.compress=d),g.jC(l,m).then(function(){return m})):g.dC.resolve(void 0)})}))})};
    Vua=function(a,b){var c;return g.G(function(d){if(d.j==1)return g.z(d,ZC(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
    Wua=function(a){var b,c;return g.G(function(d){if(d.j==1)return g.z(d,ZC(a),2);b=d.B;c=(0,g.fC)()-2592E6;return g.z(d,g.iC(b,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(e){return g.nC(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.oC(f)})})}),0)})};
    Xua=function(){g.G(function(a){return g.z(a,Hta("LogsDatabaseV2"),0)})};
    Qua=function(a){g.CA("nwl_csi_killswitch")||tua("networkless_performance",a,{sampleRate:1})};
    Zua=function(a){return g.tC(Yua(),a)};
    $ua=function(a){var b,c;g.G(function(d){if(d.j==1)return g.z(d,Zua(a),2);b=d.B;c=(0,g.fC)()-2592E6;return g.z(d,g.iC(b,["SWHealthLog"],{mode:"readwrite",Nb:!0},function(e){return g.nC(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.oC(f)})})}),0)})};
    ava=function(a){var b;return g.G(function(c){if(c.j==1)return g.z(c,Zua(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
    g.$C=function(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!g.RA()){if(a){a=g.de(g.je(a));if(a===g.ie.toString()||a.startsWith("data"))a="";else{var l=l===void 0?{}:l;a instanceof g.qe?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.xrb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.wrb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.yrb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
        l=se(a));a=g.Xe(g.rn(g.re(l).toString()))}g.ec(a)||(l=xf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ff(l).body.appendChild(l))}}else if(e)Zqa(a,b,"POST",e,d);else if(g.gA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Zqa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Tka({url:a});if(m.C&&m.B||m.D){var n=wn(g.yn(5,a));var p=!(!n||!n.endsWith("/aclk")||yo(a,"ri")!=="1");break b}}catch(q){}p=!1}p?bva(a)?(b&&b(),l=!0):l=!1:l=!1;l||cva(a,b)}};
    bva=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1};
    cva=function(a,b){var c=new Image,d=""+dva++;eva[d]=c;c.onload=c.onerror=function(){b&&eva[d]&&b();delete eva[d]};
        c.src=a};
    fva=function(a){var b=g.zn(a);if(!g.CA("update_chrome_api_monitoring_allowed_features")&&b!=="www.googleadservices.com")return a;var c,d,e;return(g.CA("update_chrome_api_monitoring_allowed_features")?(c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"):typeof((d=document.featurePolicy)==null?void 0:d.features)==="function"&&((e=document.featurePolicy)==null?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"};
    aD=function(){gva||(gva=new QB("yt.offline"));return gva};
    hva=function(a){if(g.CA("offline_error_handling")){var b=aD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);aD().set("errors",b,2592E3,!0)}};
    bD=function(){this.j=new Map;this.B=!1};
    cD=function(){if(!bD.instance){var a=g.Wa("yt.networkRequestMonitor.instance")||new bD;g.Va("yt.networkRequestMonitor.instance",a);bD.instance=a}return bD.instance};
    dD=function(){g.Ed.call(this);var a=this;this.B=!1;this.j=ola();this.j.listen("networkstatus-online",function(){if(a.B&&g.CA("offline_error_handling")){var b=aD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.CB(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.jA(d)}aD().set("errors",{},2592E3,!0)}}})};
    iva=function(){if(!dD.instance){var a=g.Wa("yt.networkStatusManager.instance")||new dD;g.Va("yt.networkStatusManager.instance",a);dD.instance=a}return dD.instance};
    g.eD=function(a){a=a===void 0?{}:a;g.Ed.call(this);var b=this;this.j=this.D=0;this.B=iva();var c=g.Wa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){jva(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){jva(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
    jva=function(a,b){a.rateLimit?a.j?(g.wv.Wj(a.D),a.D=g.wv.Ri(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.fC)())},a.rateLimit-((0,g.fC)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.fC)()):a.dispatchEvent(b)};
    fD=function(){var a=WC.call;kva||(kva=new g.eD({Sqb:!0,opb:!0}));a.call(WC,this,{Ih:{z7:Wua,Uz:Vua,sY:Sua,B$:Tua,RS:Uua,set:Rua},kh:kva,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var h;lA(new g.CB(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.jA(b)},
        tA:lA,sendFn:lva,now:g.fC,w3:hva,Bo:g.NB(),gS:"publicytnetworkstatus-online",rR:"publicytnetworkstatus-offline",jJ:!0,NI:.1,GL:g.DA("potential_esf_error_limit",10),fb:g.CA,oE:!(g.EB()&&g.zn(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.Qo;g.CA("networkless_immediately_drop_all_requests")&&Xua();Ita("LogsDatabaseV2")};
    gD=function(){var a=g.Wa("yt.networklessRequestController.instance");a||(a=new fD,g.Va("yt.networklessRequestController.instance",a),g.CA("networkless_logging")&&g.yC().then(function(b){a.Df=b;Lua(a);a.C.resolve();a.jJ&&Math.random()<=a.NI&&a.Df&&$ua(a.Df);g.CA("networkless_immediately_drop_sw_health_store")&&mva(a)}));
        return a};
    mva=function(a){var b;g.G(function(c){if(!a.Df)throw b=g.bC("clearSWHealthLogsDb"),b;return c.return(ava(a.Df).catch(function(d){a.handleError(d)}))})};
    lva=function(a,b,c,d){d=d===void 0?!1:d;b=g.CA("web_fp_via_jspb")?Object.assign({},b):b;g.CA("use_cfr_monitor")&&nva(a,b);if(g.CA("use_request_time_ms_header"))b.headers&&sA(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.fC)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.fC)())}c&&Object.keys(b).length===0?g.$C(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),SC(a,b.postBody,
        b,g.EA,d)):SC(a,JSON.stringify(b.postParams),b,cra,d):g.EA(a,b)};
    ova=function(a,b){g.CA("use_event_time_ms_header")&&sA(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.fC)())));return b};
    nva=function(a,b){var c=b.onError?b.onError:function(){};
        b.onError=function(e,f){cD().requestComplete(a,!1);c(e,f)};
        var d=b.onSuccess?b.onSuccess:function(){};
        b.onSuccess=function(e,f){cD().requestComplete(a,!0);d(e,f)}};
    g.hD=function(a){this.config_=null;a?this.config_=a:cua()&&(this.config_=g.IC())};
    g.iD=function(a,b,c,d){function e(p){try{if((p===void 0?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?gD().writeThenSend(n,f):gD().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;typeof r!=="string"&&(r=JSON.stringify(f.postBody));SC(n,r,f,g.EA,q)}else SC(n,JSON.stringify(f.postParams),f,cra,q)}else g.CA("web_all_payloads_via_jspb")?g.EA(n,f):cra(n,f)}catch(t){if(t.name==="InvalidAccessError")lA(Error("An extension is blocking network request."));
    else throw t;}}
        !g.gA("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&lA(new g.CB("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.CB("innertube xhrclient not ready",b,c,d),g.jA(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_.oZ;h&&(c=h);var l=a.config_.pZ||!1;h=nua(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_.vQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=qA(""+c+b,l);g.Wa("ytNetworklessLoggingInitializationOptions")&&
        pva.isNwlInitialized?Ata().then(function(p){e(p)}):e(!1)};
    g.nD=function(a,b,c){var d=g.jD();if(d&&b){var e=d.subscribe(a,function(){function f(){kD[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)}
        var h=arguments;try{g.lD[a]?f():g.yA(f,0)}catch(l){g.jA(l)}},c);
        kD[e]=!0;mD[a]||(mD[a]=[]);mD[a].push(e);return e}return 0};
    qva=function(a){var b=g.nD("LOGGED_IN",function(c){a.apply(void 0,arguments);g.oD(b)})};
    g.oD=function(a){var b=g.jD();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.Yb(a,function(c){b.unsubscribeByKey(c);delete kD[c]}))};
    g.pD=function(a,b){var c=g.jD();return c?c.publish.apply(c,arguments):!1};
    sva=function(a){var b=g.jD();if(b)if(b.clear(a),a)rva(a);else for(var c in mD)rva(c)};
    g.jD=function(){return g.Ua.ytPubsubPubsubInstance};
    rva=function(a){mD[a]&&(a=mD[a],g.Yb(a,function(b){kD[b]&&delete kD[b]}),a.length=0)};
    g.uva=function(a,b,c){tva(a,b,c===void 0?null:c)};
    tva=function(a,b,c){c=c===void 0?null:c;var d=vva(a),e=document.getElementById(d),f=e&&$ra(e),h=e&&!f;f?b&&b():(b&&(f=g.nD(d,b),b=""+g.fb(b),wva[b]=f),h||(e=xva(a,d,function(){$ra(e)||(Zra(e),g.pD(d),g.yA(function(){sva(d)},0))},c)))};
    xva=function(a,b,c,d){d=d===void 0?null:d;var e=g.yf("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.We(e,g.Rma(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
    vva=function(a){var b=document.createElement("a");g.Me(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+cf(a)};
    rD=function(a){var b=g.Ja.apply(1,arguments);if(!qD(a)||b.some(function(d){return!qD(d)}))throw Error("Only objects may be merged.");
        b=g.v(b);for(var c=b.next();!c.done;c=b.next())yva(a,c.value)};
    yva=function(a,b){for(var c in b)if(qD(b[c])){if(c in a&&!qD(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});yva(a[c],b[c])}else if(zva(b[c])){if(c in a&&!zva(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Ava(a[c],b[c])}else a[c]=b[c];return a};
    Ava=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,qD(c)?a.push(yva({},c)):zva(c)?a.push(Ava([],c)):a.push(c);return a};
    qD=function(a){return typeof a==="object"&&!Array.isArray(a)};
    zva=function(a){return typeof a==="object"&&Array.isArray(a)};
    sD=function(a){g.I.call(this);this.B=a};
    tD=function(a){sD.call(this,!0);this.j=a};
    Bva=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.ib)(a,b);this.j=new g.Av(function(){return d(c.qa)},300);
        g.M(this,this.j);this.Y=this.Z=Infinity};
    Cva=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
    vD=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(Math.random()*256)}if(uD)for(c=1,d=0;d<uD.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^uD.charCodeAt(d),c++;return b};
    g.wD=function(a){a=vD(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
    g.Dva=function(){return g.as(vD(16),function(a){return(a&15).toString(16)}).join("")};
    Eva=function(){var a={};var b=a.Wca===void 0?!1:a.Wca;a=a.k8===void 0?!0:a.k8;if(g.Wa("_lact",window)==null){var c=parseInt(g.gA("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Va("_lact",c,window);g.Va("_fact",c,window);c==-1&&xD();g.lB(document,"keydown",xD);g.lB(document,"keyup",xD);g.lB(document,"mousedown",xD);g.lB(document,"mouseup",xD);b?g.lB(window,"touchmove",function(){yD("touchmove",200)},{passive:!0}):(g.lB(window,"resize",function(){yD("resize",200)}),a&&g.lB(window,"scroll",
        function(){yD("scroll",200)}));
        new oB(function(){yD("mouse",100)});
        g.lB(document,"touchstart",xD,{passive:!0});g.lB(document,"touchend",xD,{passive:!0})}};
    yD=function(a,b){Fva[a]||(Fva[a]=!0,g.wv.Ri(function(){xD();Fva[a]=!1},b))};
    xD=function(){g.Wa("_lact",window)==null&&(Eva(),g.Wa("_lact",window));var a=Date.now();g.Va("_lact",a,window);g.Wa("_fact",window)==-1&&g.Va("_fact",a,window);(a=g.Wa("ytglobal.ytUtilActivityCallback_"))&&a()};
    zD=function(){var a=g.Wa("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
    AD=function(a){this.name=a};
    BD=function(a){this.key=a};
    Gva=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.rd={hqb:function(){return new Map(a.j)}}};
    Hva=function(a,b){a.j.set(b.HG,b);var c=a.C.get(b.HG);if(c)try{c.US(a.resolve(b.HG))}catch(d){c.HS(d)}};
    DD=function(a,b,c,d){d=d===void 0?!1:d;if(c.indexOf(b)>-1)throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(d.mU!==void 0)var e=d.mU;else if(d.Zea)e=d[CD]?Iva(a,d[CD],c):[],e=d.Zea.apply(d,g.ra(e));else if(d.g3){e=d.g3;var f=e[CD]?Iva(a,e[CD],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.ra(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Xrb||a.B.set(b,e);
        return e};
    Iva=function(a,b,c){return b?b.map(function(d){return d instanceof BD?DD(a,d.key,c,!0):DD(a,d,c)}):[]};
    ED=function(){Jva||(Jva=new Gva);return Jva};
    Kva=function(){var a,b;return"h5vcc"in FD&&((a=FD.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=FD.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in FD&&FD.performance.mark&&FD.performance.measure?2:0};
    Lva=function(a){var b=Kva();switch(b){case 1:FD.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:FD.performance.mark(a+"-start");break;case 0:break;default:Ne(b,"unknown trace type")}};
    Mva=function(a){var b=Kva();switch(b){case 1:FD.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";FD.performance.mark(c);FD.performance.measure(a,b,c);break;case 0:break;default:Ne(b,"unknown trace type")}};
    Ova=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.NB():d;this.C=c;this.scheduler=d;this.B=new g.Qo;this.j=a;for(a={Yw:0};a.Yw<this.j.length;a={xL:void 0,Yw:a.Yw},a.Yw++)a.xL=this.j[a.Yw],c=function(e){return function(){e.xL.MQ();b.j[e.Yw].JL=!0;b.j.every(function(f){return f.JL===!0})&&b.B.resolve()}}(a),d=KB(c,Nva(this,a.xL)),this.j[a.Yw]=Object.assign({},a.xL,{MQ:c,
        jobId:d})};
    Pva=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return Nva(a,a.j[e])-Nva(a,a.j[d])});
        b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],c.jobId===void 0||c.JL||(a.scheduler.Wj(c.jobId),KB(c.MQ,10))};
    Nva=function(a,b){var c;return(c=b.priority)!=null?c:a.C};
    HD=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};GD&&Lva(this.state)};
    Rva=function(a,b){var c=b.filter(function(e){return Qva(a,e)===10}),d=b.filter(function(e){return Qva(a,e)!==10});
        return a.D.Trb?function(){var e=g.Ja.apply(0,arguments);return g.G(function(f){if(f.j==1)return g.z(f,a.Bda.apply(a,[c].concat(g.ra(e))),2);a.J1.apply(a,[d].concat(g.ra(e)));g.Aa(f)})}:function(){var e=g.Ja.apply(0,arguments);
            a.Cda.apply(a,[c].concat(g.ra(e)));a.J1.apply(a,[d].concat(g.ra(e)))}};
    Qva=function(a,b){var c,d;return(d=(c=a.C)!=null?c:b.priority)!=null?d:0};
    Sva=function(a){GD&&a&&Lva(a)};
    ID=function(a){GD&&a&&Mva(a)};
    Uva=function(a,b,c){Tva&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
    JD=function(a){HD.call(this,a===void 0?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
        {from:"none",to:"none",action:function(){}}]};
    Wva=function(){Vva||(Vva=new JD);return Vva};
    KD=function(){var a=this;this.store={};this.j=0;this.B={};this.rd={Vpb:function(){return a.j}}};
    Yva=function(a,b){var c=Xva(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(d.length<=1&&Xva(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(LD(b.auth,h[0])){var l=b.isJspb;LD(l===void 0?"undefined":l?"true":"false",h[1])&&LD(b.cttAuthInfo,h[2])&&(l=b.tier,l=l===void 0?"undefined":JSON.stringify(l),LD(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
    LD=function(a,b){return a===void 0||a==="undefined"?!0:a===b};
    Xva=function(a){return[a.auth===void 0?"undefined":a.auth,a.isJspb===void 0?"undefined":a.isJspb,a.cttAuthInfo===void 0?"undefined":a.cttAuthInfo,a.tier===void 0?"undefined":a.tier].join("/")};
    MD=function(){this.D=this.j=this.B=0;this.C=!1};
    ND=function(){var a=g.Wa("yt.logging.ims");a||(a=new KD,g.Va("yt.logging.ims",a));return a};
    awa=function(){if(xua()&&!Zva){var a=function(c){c=c.data;if(c.op==="serializedGelBatch"){var d=OD.get(c.key);d&&($va(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),OD.delete(c.key))}},b=PC();
        b&&(b.addEventListener("message",a),b.onerror=function(){OD.clear()});
        Zva=!0}};
    gwa=function(a,b){if(a.endpoint==="log_event"){PD(a);var c=QD(a),d=bwa(a.payload)||"",e=cwa(d),f=200;if(e){if(e.enabled===!1&&!g.CA("web_payload_policy_disabled_killswitch"))return;f=dwa(e.tier);if(f===400){ewa(a,b);return}}RD[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};ND().storePayload(e,a.payload);fwa(b,c,!1,e,SD(d))}};
    iwa=function(a,b,c){if(b.endpoint==="log_event"){PD(void 0,b);var d=QD(b,!0),e=cwa(a),f=200;if(e){if(e.enabled===!1&&!g.CA("web_payload_policy_disabled_killswitch"))return;f=dwa(e.tier);if(f===400){hwa(a,b,c);return}}RD[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};ND().storePayload(e,fl(b.payload));fwa(c,d,!0,e,SD(a))}};
    fwa=function(a,b,c,d,e){function f(){jwa({writeThenSend:!0},g.CA("flush_only_full_queue")?b:void 0,c,d.tier)}
        c=c===void 0?!1:c;e=e===void 0?!1:e;a&&(TD=new a);a=g.DA("tvhtml5_logging_max_batch_ads_fork")||g.DA("web_logging_max_batch")||100;var h=(0,g.fC)(),l=kwa(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=ND().getSequenceCount(d));e>=1E3?f():e>=a?lwa||(lwa=mwa(function(){f();lwa=void 0},0)):h-m>=10&&(nwa(c,d.tier),l.D=h)};
    ewa=function(a,b){if(a.endpoint==="log_event"){PD(a);var c=QD(a),d=new Map;d.set(c,[a.payload]);var e=bwa(a.payload)||"";b&&(TD=new b);return new g.fg(function(f,h){TD&&TD.isReady()?owa(d,TD,f,h,{bypassNetworkless:!0},!0,SD(e)):f()})}};
    hwa=function(a,b,c){if(b.endpoint==="log_event"){PD(void 0,b);var d=QD(b,!0),e=new Map;e.set(d,[fl(b.payload)]);c&&(TD=new c);return new g.fg(function(f){TD&&TD.isReady()?pwa(e,TD,f,{bypassNetworkless:!0},!0,SD(a)):f()})}};
    QD=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new dA;c.videoId?d.setVideoId(c.videoId):c.playlistId&&bk(d,2,UD,$i(c.playlistId));VD[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),WD[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
    jwa=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.fg(function(e,f){var h=kwa(c,d),l=h.C;h.C=!1;qwa(h.B);qwa(h.j);h.j=0;TD&&TD.isReady()?d===void 0&&g.CA("enable_web_tiered_gel")?rwa(e,f,a,b,c,300,l):rwa(e,f,a,b,c,d,l):(nwa(c,d),e())})};
    rwa=function(a,b,c,d,e,f,h){var l=TD;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;h=h===void 0?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(d!==void 0)e?(b=g.CA("enable_web_tiered_gel")?ND().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):ND().extractMatchingEntries(q),m.set(d,b),pwa(m,l,a,c,!1,h)):(m=g.CA("enable_web_tiered_gel")?ND().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):ND().extractMatchingEntries(q),n.set(d,m),
        owa(n,l,a,b,c,!1,h));else if(e){b=g.v(Object.keys(RD));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.CA("enable_web_tiered_gel")?ND().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):ND().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.CA("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.CA("web_fp_via_jspb_and_json"))&&delete RD[n];pwa(m,l,a,c,!1,h)}else{m=g.v(Object.keys(RD));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.CA("enable_web_tiered_gel")?ND().smartExtractMatchingEntries({keys:[{isJspb:!1,
            cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):ND().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.CA("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.CA("web_fp_via_jspb_and_json"))&&delete RD[p];owa(n,l,a,b,c,!1,h)}};
    nwa=function(a,b){function c(){jwa({writeThenSend:!0},void 0,a,b)}
        a=a===void 0?!1:a;b=b===void 0?200:b;var d=kwa(a,b),e=d===swa||d===twa?5E3:uwa;g.CA("web_gel_timeout_cap")&&!d.j&&(e=mwa(function(){c()},e),d.j=e);
        qwa(d.B);e=g.gA("LOGGING_BATCH_TIMEOUT",g.DA("web_gel_debounce_ms",1E4));g.CA("shorten_initial_gel_batch_timeout")&&XD&&(e=vwa);e=mwa(function(){g.DA("gel_min_batch_size")>0?ND().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=wwa&&c():c()},e);
        d.B=e};
    owa=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.fC)()),m=a.size,n=xwa(h);a=g.v(a);var p=a.next();for(h={};!p.done;h={nR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,ZR:void 0,BR:void 0},p=a.next()){var q=g.v(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.kd({context:g.jua(b.config_||g.IC())});if(!g.bb(q)&&!g.CA("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=WD[p])&&ywa(h.batchRequest,p,q);delete WD[p];h.dangerousLogToVisitorSession=
        p==="visitorOnlyApprovedKey";zwa(h.batchRequest,l,h.dangerousLogToVisitorSession);Awa(e);h.ZR=function(r){g.CA("start_client_gcf")&&g.wv.Ri(function(){return g.G(function(t){return g.z(t,Bwa(r),0)})});
        m--;m||c()};
        h.nR=0;h.BR=function(r){return function(){r.nR++;if(e.bypassNetworkless&&r.nR===1)try{g.iD(b,n,r.batchRequest,Cwa({writeThenSend:!0},r.dangerousLogToVisitorSession,r.ZR,r.BR,f)),XD=!1}catch(t){g.jA(t),d()}m--;m||c()}}(h);
        try{g.iD(b,n,h.batchRequest,Cwa(e,h.dangerousLogToVisitorSession,h.ZR,h.BR,f)),XD=!1}catch(r){g.jA(r),d()}}};
    pwa=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.fC)()),l={value:a.size},m=new Map([].concat(g.ra(a)));m=g.v(m);for(var n=m.next();!n.done;n=m.next()){var p=g.v(n.value).next().value,q=a.get(p);n=new Dqa;var r=b.config_||g.IC(),t=new Cx,u=new wx;S(u,1,r.uQ);S(u,2,r.tQ);T(u,16,r.nZ);S(u,17,r.innertubeContextClientVersion);if(r.lK){var w=r.lK,A=new tx;w.coldConfigData&&S(A,1,w.coldConfigData);w.appInstallData&&S(A,6,w.appInstallData);w.coldHashData&&S(A,3,w.coldHashData);w.hotHashData&&
    A.Cs(w.hotHashData);ik(u,tx,62,A)}(w=g.Ua.devicePixelRatio)&&w!=1&&Zk(u,65,w);w=Vqa();w!==""&&S(u,54,w);w=Wqa();if(w.length>0){A=new yx;for(var C=0;C<w.length;C++){var E=new xx;S(E,1,w[C].key);bk(E,2,Dwa,$i(w[C].value));lk(A,15,xx,E)}ik(t,yx,5,A)}dua(r,u);eua(t);fua(u);gua(r,u);hua(u);g.CA("start_client_gcf")&&iua(u);g.gA("DELEGATED_SESSION_ID")&&!g.CA("pageid_as_header_web")&&(r=new Bx,S(r,3,g.gA("DELEGATED_SESSION_ID")));!g.CA("fill_delegate_context_in_gel_killswitch")&&(w=g.gA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
    (A=g.hk(t,Bx,3)||new Bx,r=t,w=S(A,18,w),ik(r,Bx,3,w));r=u;w=g.v(Object.entries(oA(g.gA("DEVICE",""))));for(A=w.next();!A.done;A=w.next())C=g.v(A.value),A=C.next().value,C=C.next().value,A==="cbrand"?S(r,12,C):A==="cmodel"?S(r,13,C):A==="cbr"?S(r,87,C):A==="cbrver"?S(r,88,C):A==="cos"?S(r,18,C):A==="cosver"?S(r,19,C):A==="cplatform"&&T(r,42,vsa(C));t.zy(u);ik(n,Cx,1,t);if(u=VD[p])a:{if(u.qe())t=1;else if(u.getPlaylistId())t=2;else break a;ik(n,dA,4,u);u=g.hk(n,Cx,1)||new Cx;r=g.hk(u,Bx,3)||new Bx;
        w=new Ax;w.setToken(p);T(w,1,t);lk(r,12,Ax,w);ik(u,Bx,3,r)}delete VD[p];p=p==="visitorOnlyApprovedKey";Ewa()||Xk(n,2,h);!p&&(t=g.gA("EVENT_ID"))&&(u=Fwa(),r=new Cqa,S(r,1,t),Xk(r,2,u),ik(n,Cqa,5,r));Awa(d);if(g.CA("jspb_serialize_with_worker")&&(t=PC())&&d.writeThenSend){OD.set(Gwa,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:fl(n),clientEvents:q,key:Gwa});Gwa++;break}if(q){t=
        [];for(u=0;u<q.length;u++)try{t.push(new cA(q[u]))}catch(H){g.jA(new g.CB("Transport failed to deserialize "+String(q[u])))}q=t}else q=[];q=g.v(q);for(t=q.next();!t.done;t=q.next())lk(n,3,cA,t.value);q={startTime:(0,g.fC)(),ticks:{},infos:{}};n=n.Lk();q.ticks.geljspc=(0,g.fC)();g.CA("log_jspb_serialize_latency")&&tua("gel_jspb_serialize",q,{sampleRate:.1});$va(n,b,c,d,e,f,p,l)}};
    $va=function(a,b,c,d,e,f,h,l){d=d===void 0?{}:d;l=l===void 0?{value:0}:l;f=xwa(f);d=Cwa(d,h,function(m){g.CA("start_client_gcf")&&g.wv.Ri(function(){return g.G(function(n){return g.z(n,Bwa(m),0)})});
        l.value--;l.value||c()},function(){l.value--;
        l.value||c()},e);
        d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;g.iD(b,f,"",d);XD=!1};
    Awa=function(a){g.CA("always_send_and_write")&&(a.writeThenSend=!1)};
    Cwa=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,apb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.CA("compress_gel")||g.CA("compress_gel_lr")};Ewa()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.fC)())));return a};
    zwa=function(a,b,c){Ewa()||(a.requestTimeMs=String(b));g.CA("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.gA("EVENT_ID"))&&(c=Fwa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
    Fwa=function(){var a=g.gA("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Hwa/2));a++;a>Hwa&&(a=1);fA("BATCH_CLIENT_COUNTER",a);return a};
    ywa=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}]};
    PD=function(a,b){if(!g.Wa("yt.logging.transport.enableScrapingForTest")){var c=Uqa("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")Iwa=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",Iwa),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.Wa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Wa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Wa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Wa("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var f=void 0;c.push(((f=a)==null?void 0:f.payload)[d[e]])}g.Va("yt.logging.transport.scrapedPayloadsForTesting",
        c)};
    Ewa=function(){return g.CA("use_request_time_ms_header")||g.CA("lr_use_request_time_ms_header")};
    mwa=function(a,b){return g.CA("transport_use_scheduler")===!1?g.yA(a,b):g.CA("logging_avoid_blocking_during_navigation")||g.CA("lr_logging_avoid_blocking_during_navigation")?g.LB(0,function(){if(Wva().currentState==="none")a();else{var c={};Wva().install((c.none={callback:a},c))}},b):KB(a,0,b)};
    qwa=function(a){g.CA("transport_use_scheduler")?g.wv.Wj(a):g.AA(a)};
    Bwa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.G(function(q){return q.j==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=g.V(d,Jwa),h=(f=d)==null?void 0:f.hotHashData,l=g.V(d,Kwa),n=(m=d)==null?void 0:m.coldHashData,(p=ED().resolve(new BD(GC)))?h?e?g.z(q,$ta(p,h,e),2):g.z(q,$ta(p,h),2):q.Ia(2):q.return()):n?l?g.z(q,aua(p,n,l),0):g.z(q,aua(p,n),0):q.Ia(0)})};
    kwa=function(a,b){b=b===void 0?200:b;return a?b===300?swa:Lwa:b===300?twa:Mwa};
    cwa=function(a){if(g.CA("enable_web_tiered_gel")){a=Nwa[a||""];var b,c,d,e=ED().resolve(new BD(GC))==null?void 0:(b=HC())==null?void 0:(c=b.loggingHotConfig)==null?void 0:(d=c.eventLoggingConfig)==null?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
    bwa=function(a){a=Object.keys(a);a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Nwa[b])return b};
    dwa=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
    SD=function(a){return a==="gelDebuggingEvent"};
    xwa=function(a){return(a===void 0?0:a)&&g.CA("vss_through_gel_video_stats")?"video_stats":"log_event"};
    ZD=function(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||(0,g.fC)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=zD();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.CA("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Owa(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete YD[d.sequenceGroup]);(d.sendIsolatedPayload?ewa:gwa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
        c)};
    Pwa=function(a){jwa(void 0,void 0,a===void 0?!1:a)};
    Owa=function(a){YD[a]=a in YD?YD[a]+1:0;return YD[a]};
    Twa=function(a,b){Qwa||(Qwa=!0);Rwa=a;$D=b;Swa=!1};
    g.SB=function(a,b,c){c=c===void 0?{}:c;var d=Uwa;g.gA("ytLoggingEventsDefaultDisabled",!1)&&Uwa===g.hD&&(d=null);if(g.CA("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=zD(),c.timestamp=(0,g.fC)()),Rwa&&$D){var e=Rwa[a];if(e){e=e(Vwa(b));var f=e[1];(e[0]||!g.CA("jspb_translator_return_completion"))&&f&&$D[a]?($D[a](f,c,d||void 0),Wwa()):(lA(new g.CB("Unable to call logFn for payload",a)),ZD(a,b,d,c))}else{if(!g.CA("web_translate_player_logs"))lA(new g.CB("Unable to translate payload to JSPB",
        a));else if(Swa===!1){var h=!1;e=sua("app_received_payload",function(){h=!0});
        MC("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;rua(e);sua("app_has_initialized",function(){MC("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}ZD(a,b,d,c)}}else Xwa.push({payloadName:a,
        payload:b,options:c});else ZD(a,b,d,c)};
    Wwa=function(a){a=a===void 0?!1:a;var b=Xwa;Xwa=[];if(b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?ZD(c.payloadName,c.payload,Uwa,c.options):g.SB(c.payloadName,c.payload,c.options)}};
    Vwa=function(a){if(!g.CA("jspb_convert_payloads_to_lower_camel")||!g.db(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Ywa(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if(typeof a[d]==="object"&&!g.bb(a[d]))a[d]=Vwa(a[d]);else if(g.bb(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Vwa(e[h]));a[d]=f}}return a};
    Ywa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
    aE=function(a,b,c,d){d=d===void 0?{}:d;var e=Math.round(d.timestamp||(0,g.fC)());Xk(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new Bqa;if(d.lact)Xk(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Xk(e,1,-1);else{var f=zD();Xk(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.CA("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Owa(f),l=new Aqa;Xk(l,2,h);S(l,1,f);ik(e,Aqa,3,l);d.endOfSequence&&delete Zwa[d.sequenceGroup]}ik(b,Bqa,33,e);(d.sendIsolatedPayload?hwa:iwa)(a,{endpoint:"log_event",payload:b,
        cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
    bE=function(a,b,c){c=c===void 0?{}:c;var d=!1;g.gA("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);aE(a,b,d?null:g.hD,c)};
    $wa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Mz,72,cE,a);c?aE("visualElementShown",d,c,b):bE("visualElementShown",d,b)};
    axa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Lz,73,cE,a);c?aE("visualElementHidden",d,c,b):bE("visualElementHidden",d,b)};
    bxa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Kz,78,cE,a);c?aE("visualElementGestured",d,c,b):bE("visualElementGestured",d,b)};
    cxa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Nz,208,cE,a);c?aE("visualElementStateChanged",d,c,b):bE("visualElementStateChanged",d,b)};
    dxa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Iz,156,cE,a);c?aE("screenCreated",d,c,b):bE("screenCreated",d,b)};
    exa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Gz,202,cE,a);c?aE("playbackAssociated",d,c,b):bE("playbackAssociated",d,b)};
    fxa=function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Jz,215,cE,a);c?aE("visualElementAttached",d,c,b):bE("visualElementAttached",d,b)};
    dE=function(a){this.j=a};
    g.eE=function(a){return new dE({trackingParams:a})};
    hxa=function(a){var b=gxa++;return new dE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
    ixa=function(a){return g.gA("client-screen-nonce-store",{})[a===void 0?0:a]};
    jxa=function(a,b){b=b===void 0?0:b;var c=g.gA("client-screen-nonce-store");c||(c={},fA("client-screen-nonce-store",c));c[b]=a};
    kxa=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
    lxa=function(a){return g.gA(kxa(a===void 0?0:a))};
    g.fE=function(a){return(a=lxa(a===void 0?0:a))?new dE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
    mxa=function(){var a=g.gA("csn-to-ctt-auth-info");a||(a={},fA("csn-to-ctt-auth-info",a));return a};
    nxa=function(){return Object.values(g.gA("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
    g.gE=function(a){a=ixa(a===void 0?0:a);if(!a&&!g.gA("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
    pxa=function(a){for(var b=g.v(Object.values(oxa)),c=b.next();!c.done;c=b.next())if(g.gE(c.value)===a)return!0;return!1};
    qxa=function(a,b,c){var d=mxa();(c=g.gE(c))&&delete d[c];b&&(d[a]=b)};
    hE=function(a){return mxa()[a]};
    sxa=function(a,b,c,d){c=c===void 0?0:c;if(a!==ixa(c)||b!==g.gA(kxa(c)))if(qxa(a,d,c),jxa(a,c),fA(kxa(c),b),b=function(){setTimeout(function(){if(a)if(g.CA("web_time_via_jspb")){var e=new aqa;S(e,1,rxa);S(e,2,a);var f=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(f,aqa,111,cE,e);bE("foregroundHeartbeatScreenAssociated",f)}else g.SB("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:rxa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
    uxa=function(a,b){var c=c===void 0?!0:c;var d=g.gA("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.zn(window.location.href);e&&d.push(e);e=g.zn(a);if(g.Eb(d,e)||!e&&dc(a,"/"))if(d=document.createElement("a"),g.Me(d,a),a=d.href)if(a=An(a),a=Ofa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.gE()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&txa(a,b,f)}else txa(a,b)};
    txa=function(a,b,c){a=vxa(a);b=b?g.vo(b):"";c=c||5;Cra()&&g.NA(a,b,c)};
    vxa=function(a){for(var b=g.v(wxa),c=b.next();!c.done;c=b.next())a=zo(a,c.value);return"ST-"+cf(a).toString(36)};
    xxa=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
    yxa=function(){this.ut=[];this.Xr=[]};
    Cxa=function(){if(!zxa){var a=zxa=new yxa;a.Xr.length=0;a.ut.length=0;Axa(a,Bxa)}return zxa};
    Axa=function(a,b){b.Xr&&a.Xr.push.apply(a.Xr,b.Xr);b.ut&&a.ut.push.apply(a.ut,b.ut)};
    Exa=function(a){function b(){return a.charCodeAt(d++)}
        var c=a.length,d=0;do{var e=Dxa(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=Dxa(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=Dxa(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d<c)};
    Dxa=function(a){var b=a(),c=b&127;if(b<128)return c;b=a();c|=(b&127)<<7;if(b<128)return c;b=a();c|=(b&127)<<14;if(b<128)return c;b=a();return b<128?c|(b&127)<<21:Infinity};
    Gxa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Fxa(d,a[d],b,c),e>500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=Exa(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Fxa(f+".ve",h,l,m):0;d+=f;d+=Fxa(e,a[e],b,c);if(d>500)break}}else c[b]=iE(a),d+=c[b].length;else c[b]=iE(a),d+=c[b].length;return d};
    Fxa=function(a,b,c,d){c+="."+a;a=iE(b);d[c]=a;return c.length+a.length};
    iE=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
    Lsa=function(a){g.jE(a)};
    g.kE=function(a){g.jE(a,"WARNING")};
    g.jE=function(a,b){var c=c===void 0?{}:c;c.name=g.gA("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.gA("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=b===void 0?"ERROR":b,e=!1;d=d===void 0?"ERROR":d;e=e===void 0?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.CA("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));
        f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(Hxa>=5)){var h=Ixa,l=Daa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.B||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",t=l.fileName||"Not available",u=p,w=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A<a.args.length&&!(w=Gxa(a.args[A],"params."+A,c,w),w>=500);A++);else if(a.hasOwnProperty("params")&&
        a.params){var C=a.params;if(typeof a.params==="object")for(var E in C){if(C[E]){var H="params."+E,L=iE(C[E]);c[H]=L;w+=H.length+L.length;if(w>500)break}}else c.params=iE(C)}if(h.length)for(var N=0;N<h.length&&!(w=Gxa(h[N],"params.context."+N,c,w),w>=500);N++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var Q={message:m,name:n,lineNumber:r,fileName:t,stack:u,params:c,sampleWeight:1},da=Number(a.columnNumber);isNaN(da)||(Q.lineNumber=Q.lineNumber+":"+da);if(a.level===
        "IGNORED")var na=0;else a:{for(var qa=Cxa(),ha=g.v(qa.Xr),ta=ha.next();!ta.done;ta=ha.next()){var P=ta.value;if(Q.message&&Q.message.match(P.lB)){na=P.weight;break a}}for(var ua=g.v(qa.ut),y=ua.next();!y.done;y=ua.next()){var Z=y.value;if(Z.callback(Q)){na=Z.weight;break a}}na=1}Q.sampleWeight=na;for(var cb=g.v(Jxa),La=cb.next();!La.done;La=cb.next()){var $a=La.value;if($a.wL[Q.name])for(var Ya=g.v($a.wL[Q.name]),Ha=Ya.next();!Ha.done;Ha=Ya.next()){var Ta=Ha.value,ob=Q.message.match(Ta.Jj);if(ob){Q.params["params.error.original"]=
        ob[0];for(var B=Ta.groups,F={},D=0;D<B.length;D++)F[B[D]]=ob[D+1],Q.params["params.error."+B[D]]=ob[D+1];Q.message=$a.eR(F);break}}}Q.params||(Q.params={});var J=Cxa();Q.params["params.errorServiceSignature"]="msg="+J.Xr.length+"&cb="+J.ut.length;Q.params["params.serviceWorker"]="false";g.Ua.document&&g.Ua.document.querySelectorAll&&(Q.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));Td("sample").constructor!==Rd&&(Q.params["params.fconst"]="true");window.yterr&&
    typeof window.yterr==="function"&&window.yterr(Q);if(Q.sampleWeight!==0&&!Kxa.has(Q.message)){if(e&&g.CA("web_enable_error_204"))Lxa(d===void 0?"ERROR":d,Q);else{var K=d;K=K===void 0?"ERROR":K;if(K==="ERROR"){lE.publish("handleError",Q);if(g.CA("record_app_crashed_web")&&Mxa===0&&Q.sampleWeight===1)if(Mxa++,g.CA("errors_via_jspb")){var aa=new Roa;var fa=T(aa,1,1);if(!g.CA("report_client_error_with_app_crash_ks")){var ia=new az,O=new Sy,ka=new Ry,la=new Qy;var za=S(la,1,Q.message);var Sa=ik(ka,Qy,
        3,za);var gb=ik(O,Ry,5,Sa);var Ab=ik(ia,Sy,9,gb);ik(fa,az,4,Ab)}var pb=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(pb,Roa,20,cE,fa);bE("appCrashed",pb)}else{var Za={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.CA("report_client_error_with_app_crash_ks")||(Za.systemHealth={crashData:{clientError:{logMessage:{message:Q.message}}}});g.SB("appCrashed",Za)}Nxa++}else K==="WARNING"&&lE.publish("handleWarning",Q);if(g.CA("kevlar_gel_error_routing"))a:{var qc=K;if(g.CA("errors_via_jspb")){if(Oxa())var $b=
        void 0;else{var ac=new Jy;S(ac,1,Q.stack);Q.fileName&&S(ac,4,Q.fileName);var kc=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];kc.length!==0&&(kc.length!==1||isNaN(Number(kc[0]))?kc.length!==2||isNaN(Number(kc[0]))||isNaN(Number(kc[1]))||(Vk(ac,2,Number(kc[0])),Vk(ac,3,Number(kc[1]))):Vk(ac,2,Number(kc[0])));var Vc=new Qy;S(Vc,1,Q.message);S(Vc,3,Q.name);Vk(Vc,6,Q.sampleWeight);qc==="ERROR"?T(Vc,2,2):qc==="WARNING"?T(Vc,2,1):T(Vc,2,0);var Wb=new Py;Uk(Wb,1,!0);jk(Wb,Jy,3,mE,ac);var wc=
        new Hy;S(wc,3,window.location.href);for(var $c=g.gA("FEXP_EXPERIMENTS",[]),Qc=0;Qc<$c.length;Qc++)wc.B($c[Qc]);var uc=g.gA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!hA("web_disable_gel_stp_ecatcher_killswitch")&&uc)for(var Tb=g.v(Object.keys(uc)),Ub=Tb.next();!Ub.done;Ub=Tb.next()){var yd=Ub.value,pd=new ry;S(pd,1,yd);S(pd,2,String(uc[yd]));wc.j(pd)}var qd=Q.params;if(qd)for(var Zb=g.v(Object.keys(qd)),Ec=Zb.next();!Ec.done;Ec=Zb.next()){var Hb=Ec.value,cd=new ry;S(cd,1,"client."+Hb);S(cd,2,
        String(qd[Hb]));wc.j(cd)}var zd=g.gA("SERVER_NAME"),Pb=g.gA("SERVER_VERSION");if(zd&&Pb){var ge=new ry;S(ge,1,"server.name");S(ge,2,zd);wc.j(ge);var Ud=new ry;S(Ud,1,"server.version");S(Ud,2,Pb);wc.j(Ud)}var Vd=new Ry;ik(Vd,Hy,1,wc);ik(Vd,Py,2,Wb);ik(Vd,Qy,3,Vc);$b=Vd}var Ce=$b;if(!Ce)break a;var De=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(De,Ry,163,cE,Ce);bE("clientError",De)}else{var Ld=void 0;Ld=Ld===void 0?{}:Ld;if(Oxa())var $e=void 0;else{var Oe={stackTrace:Q.stack};Q.fileName&&
    (Oe.filename=Q.fileName);var Md=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];Md.length!==0&&(Md.length!==1||isNaN(Number(Md[0]))?Md.length!==2||isNaN(Number(Md[0]))||isNaN(Number(Md[1]))||(Oe.lineNumber=Number(Md[0]),Oe.columnNumber=Number(Md[1])):Oe.lineNumber=Number(Md[0]));var zf={level:"ERROR_LEVEL_UNKNOWN",message:Q.message,errorClassName:Q.name,sampleWeight:Q.sampleWeight};qc==="ERROR"?zf.level="ERROR_LEVEL_ERROR":qc==="WARNING"&&(zf.level="ERROR_LEVEL_WARNNING");var Nd={isObfuscated:!0,
        browserStackInfo:Oe};Ld.pageUrl=window.location.href;Ld.kvPairs=[];g.gA("FEXP_EXPERIMENTS")&&(Ld.experimentIds=g.gA("FEXP_EXPERIMENTS"));var he=g.gA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!hA("web_disable_gel_stp_ecatcher_killswitch")&&he)for(var rd=g.v(Object.keys(he)),Hd=rd.next();!Hd.done;Hd=rd.next()){var sd=Hd.value;Ld.kvPairs.push({key:sd,value:String(he[sd])})}var Od=Q.params;if(Od)for(var kg=g.v(Object.keys(Od)),af=kg.next();!af.done;af=kg.next()){var Pf=af.value;Ld.kvPairs.push({key:"client."+
            Pf,value:String(Od[Pf])})}var Wc=g.gA("SERVER_NAME"),oc=g.gA("SERVER_VERSION");Wc&&oc&&(Ld.kvPairs.push({key:"server.name",value:Wc}),Ld.kvPairs.push({key:"server.version",value:oc}));$e={errorMetadata:Ld,stackTrace:Nd,logMessage:zf}}var Pe=$e;if(!Pe)break a;g.SB("clientError",Pe)}if(qc==="ERROR"||g.CA("errors_flush_gel_always_killswitch"))b:{if(g.CA("web_fp_via_jspb")&&(Wwa(!0),Pwa(!0),!g.CA("web_fp_via_jspb_and_json")))break b;Pwa()}}g.CA("suppress_error_204_logging")||Lxa(K,Q)}try{Kxa.add(Q.message)}catch(kh){}Hxa++}}}};
    Oxa=function(){for(var a=g.v(Pxa),b=a.next();!b.done;b=a.next())if(g.PA(b.value.toLowerCase()))return!0;return!1};
    Lxa=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:g.gA("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=g.v(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=g.gA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   g.v(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.gA("SERVER_NAME");b=g.gA("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.EA(g.gA("ECATCHER_REPORT_HOST","")+"/error_204",a)};
    Qxa=function(a){var b=g.Ja.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.ra(b))};
    pE=function(a){var b=g.V(a,nE);if(b)return b;if((b=g.V(a,Rxa))&&b.commands)return Sxa(b.commands);if((b=g.V(a,Txa))&&b.commands)return Sxa(b.commands);if((a=g.V(a,Uxa))&&a.identifier&&a.command&&(oE||(oE=[]),!oE.includes(a.identifier)))return oE.push(a.identifier),g.V(a.command,nE)};
    Sxa=function(a){if(a.length!==0){var b=[];a=g.v(a);for(var c=a.next();!c.done;c=a.next())(c=pE(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
    g.qE=function(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c};
    Vxa=function(a){for(var b=0,c=0;c<a.length;c++)b=b*31+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
    Wxa=function(a){KC.call(this,1,arguments);this.csn=a};
    bya=function(a,b,c,d,e,f,h,l){function m(){g.kE(new g.CB("newScreen() parent element does not have a VE - rootVe",b))}
        var n=Xxa(),p=new dE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=rE({},n);e&&(f.cttAuthInfo=e);if(g.CA("il_via_jspb")){e=kqa((new Iz).j(n),p.getAsJspb());c&&c.visualElement?(p=new iqa,c.clientScreenNonce&&S(p,2,c.clientScreenNonce),jqa(p,c.visualElement.getAsJspb()),h&&T(p,4,Yxa[h]),ik(e,iqa,5,p)):c&&m();d&&S(e,3,d);if(g.CA("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new qx;l=g.v(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
            d.value,d.screenVeType&&(d=Tna(new ox,d.screenVeType),c.j(d));ik(e,qx,7,c)}dxa(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.CA("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?ZD("screenCreated",e,a,f):g.SB("screenCreated",e,f);MC(Zxa,new Wxa(n));
        sE.clear();$xa.clear();aya.clear();return n};
    g.tE=function(a,b,c,d,e){g.cya(a,b,c,[d],e===void 0?!1:e)};
    g.cya=function(a,b,c,d,e){e=e===void 0?!1:e;for(var f=rE({cttAuthInfo:hE(b)||void 0},b),h=g.v(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.gd(m)||!m.trackingParams&&!m.veType)&&g.kE(Error("Child VE logged with no data"));if(g.CA("no_client_ve_attach_unless_shown")){var n=uE(l,b);if(m.veType&&!$xa.has(n)&&!aya.has(n)&&!e){if(!g.CA("il_attach_cache_limit")||sE.size<1E3){sE.set(n,[a,b,c,l]);return}g.CA("il_attach_cache_limit")&&sE.size>1E3&&g.kE(new g.CB("IL Attach cache exceeded limit"))}l=
        uE(c,b);sE.has(l)?dya(c,b):aya.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
        if(g.CA("il_via_jspb")){var p=lqa((new Jz).j(b),c.getAsJspb());g.as(d,function(q){q=q.getAsJspb();lk(p,3,iz,q)});
            b==="UNDEFINED_CSN"?vE("visualElementAttached",f,void 0,p):fxa(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.as(d,function(q){return q.getAsJson()})},b==="UNDEFINED_CSN"?vE("visualElementAttached",f,c):a?ZD("visualElementAttached",c,a,f):g.SB("visualElementAttached",c,f)};
    fya=function(a,b,c,d,e,f){eya(c,b);d=rE({cttAuthInfo:hE(b)||void 0},b);g.CA("il_via_jspb")?(e=(new Mz).j(b),c=c.getAsJspb(),c=ik(e,iz,2,c),c=T(c,4,1),f&&ik(c,Hz,3,f),b==="UNDEFINED_CSN"?vE("visualElementShown",d,void 0,c):$wa(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),b==="UNDEFINED_CSN"?vE("visualElementShown",d,f):a?ZD("visualElementShown",f,a,d):g.SB("visualElementShown",f,d))};
    gya=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8,f=rE({cttAuthInfo:hE(b)||void 0,endOfSequence:d},b);g.CA("il_via_jspb")?(e=(new Lz).j(b),c=c.getAsJspb(),c=ik(e,iz,2,c),T(c,4,d?16:8),b==="UNDEFINED_CSN"?vE("visualElementHidden",f,void 0,c):axa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},b==="UNDEFINED_CSN"?vE("visualElementHidden",f,d):a?ZD("visualElementHidden",d,a,f):g.SB("visualElementHidden",d,f))};
    iya=function(a,b,c,d,e){hya(a,b,c,d,e)};
    hya=function(a,b,c,d,e){var f=void 0;eya(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=rE({cttAuthInfo:hE(b)||void 0},b);g.CA("il_via_jspb")?(d=(new Kz).j(b),c=c.getAsJspb(),c=ik(d,iz,2,c),T(c,4,Yxa[f]),e&&ik(c,Hz,3,e),b==="UNDEFINED_CSN"?vE("visualElementGestured",h,void 0,c):bxa(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),b==="UNDEFINED_CSN"?vE("visualElementGestured",h,e):a?ZD("visualElementGestured",e,a,h):g.SB("visualElementGestured",e,h))};
    jya=function(){var a=vD(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
    vE=function(a,b,c,d){wE.push({payloadName:a,payload:c,xu:d,options:b});kya||(kya=sua(Zxa,lya))};
    lya=function(a){if(wE){for(var b=g.v(wE),c=b.next();!c.done;c=b.next())if(c=c.value,g.CA("il_via_jspb")&&c.xu)switch(c.xu.j(a.csn),c.payloadName){case "screenCreated":dxa(c.xu,c.options);break;case "visualElementAttached":fxa(c.xu,c.options);break;case "visualElementShown":$wa(c.xu,c.options);break;case "visualElementHidden":axa(c.xu,c.options);break;case "visualElementGestured":bxa(c.xu,c.options);break;case "visualElementStateChanged":cxa(c.xu,c.options);break;default:g.kE(new g.CB("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
    (c.payload.csn=a.csn,g.SB(c.payloadName,c.payload,c.options));wE.length=0}kya=0};
    uE=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
    eya=function(a,b){if(g.CA("no_client_ve_attach_unless_shown")){var c=uE(a,b);$xa.set(c,!0);dya(a,b)}};
    dya=function(a,b){a=uE(a,b);sE.has(a)&&(b=sE.get(a)||[],g.tE(b[0],b[1],b[2],b[3],!0),sE.delete(a))};
    rE=function(a,b){g.CA("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
    g.xE=function(a,b,c,d){g.kA(fya)(void 0,a,b,c,d,void 0)};
    g.yE=function(a,b){g.kA(function(){g.Yb(b,function(c){eya(c,a);var d=rE({cttAuthInfo:hE(a)||void 0},a);if(g.CA("il_via_jspb")){var e=(new Mz).j(a);c=c.getAsJspb();e=ik(e,iz,2,c);e=T(e,4,4);a==="UNDEFINED_CSN"?vE("visualElementShown",d,void 0,e):$wa(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},a==="UNDEFINED_CSN"?vE("visualElementShown",d,e):g.SB("visualElementShown",e,d)})})()};
    g.zE=function(a,b){g.kA(function(){g.Yb(b,function(c){gya(void 0,a,c)})})()};
    g.AE=function(a,b,c){g.kA(iya)(void 0,a,b,c,void 0)};
    CE=function(a,b,c,d,e,f){c=c===void 0?{}:c;this.componentType=a;this.renderer=b===void 0?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=BE(a)};
    BE=function(a){var b=":"+(jw.getInstance().j++).toString(36);return a+b};
    g.DE=function(a){a=a===void 0?!1:a;g.I.call(this);this.Bj=new g.Yv(a);g.M(this,this.Bj)};
    g.EE=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
    FE=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
    GE=function(){var a="ytp-id-"+mya.toString();mya++;return a};
    g.HE=function(a){g.I.call(this);this.Jb={};this.Yd={};this.element=this.createElement(a)};
    IE=function(a,b,c,d){if(d.substr(0,2)==="{{")a.Yd[d]=[b,c];else return d};
    nya=function(a,b){var c=[];if(!b)return c;b=g.v(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d!=null){var e=d.nodeType;e===1||e===3?c.push(d):d&&typeof d.I==="string"?c.push(a.createElement(d)):d.element?c.push(d.element):typeof d==="string"&&d.indexOf("\n")!==-1?d.split("\n").forEach(function(f,h){h>0&&c.push(g.yf("BR"));c.push(g.Af(f))}):c.push(g.Af(d))}return c};
    JE=function(a,b,c,d){if(c==="child"){g.Cf(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=nya(a,e);c=g.v(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.Js(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.de(g.je(a))),b.setAttribute(c,a))};
    g.W=function(a){g.HE.call(this,a);this.Hb=!0;this.Z=!1;this.listeners=[]};
    g.KE=function(a,b){b?a.show():a.hide()};
    g.LE=function(a){g.W.call(this,a);this.Sa=new g.DE;g.M(this,this.Sa)};
    ME=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.LE.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.Bb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.kb=f;this.eb=null;this.XS=new tD(this.element);g.M(this,this.XS);this.rb=this.T(this.element,"click",this.onClick);this.Fa=[];this.Ca=new Bva(this.onClick,this);g.M(this,this.Ca);this.Ab=!1;this.Ma=this.qa=null};
    NE=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.kE(Error("Got null or undefined adText object")),"";var c=g.bf(a.text);if(!a.isTemplated)return c;if(b==null)return g.kE(Error("Missing required parameters for a templated message")),c;a=g.v(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.v(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
    oya=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.bf(a.thumbnails[0].url):""};
    pya=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Ke(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Ke(0,0)};
    g.OE=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.v(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
    g.PE=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=xf("B",null,h||l));d.italics&&(h=xf("I",null,h||l));d.strikethrough&&(h=xf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=xf("A",null,h||l),g.Me(h,d.url),d.target=="TARGET_NEW_WINDOW"&&(h.target="_blank"));l=h||xf("SPAN",null,
        l);f.call(e,l)}}return b.length==1?b[0]:xf("SPAN",null,b)};
    g.qya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
                fill:"#fff"}}]}};
    rya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
    g.QE=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",W:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
    g.RE=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",W:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
    sya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",W:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",W:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
    tya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
    uya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
    g.SE=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
    vya=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
    wya=function(){return{I:"svg",W:{viewBox:"0 0 24 24"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
    xya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
    yya=function(){return{I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
                fill:"white","fill-rule":"evenodd"}}]}};
    zya=function(){return{I:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",W:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
    Aya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
    Bya=function(){return{I:"svg",W:{viewBox:"0 0 24 24"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
    TE=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
    Cya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
    Dya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
    g.Eya=function(){return{I:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",W:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
    UE=function(){return{I:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",W:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
    Fya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
    Gya=function(){return{I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",W:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
    Hya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
    Iya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
    Jya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
    g.Kya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
    g.Lya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
                fill:"#fff"}}]}};
    g.VE=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",W:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
    Mya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
    Nya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
    WE=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return UE();case "CHECK_BOX":return{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",
            W:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.SE();case "INFO_OUTLINE":return zya();case "REMOVE_CIRCLE":return{I:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};
        case "SKIP_NEXT":return Dya();case "SKIP_NEXT_NEW":return{I:"svg",W:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",W:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Bya();case "DISLIKE":return wya();default:return g.kE(new g.CB("Unexpected icon:",a)),null}};
    XE=function(a,b,c,d,e,f,h,l){e=e===void 0?[]:e;h=h===void 0?!1:h;e={I:"button",Ka:["ytp-ad-button"].concat(e)};l!=null&&(e.W={tabindex:l});ME.call(this,a,e,f===void 0?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
    Oya=function(a){var b=null;a.j!=null&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return c!=null}),a.j.command&&(b=b.concat(a.j.command)));
        return b||[]};
    YE=function(){g.I.call(this);var a=this;this.j=new Map;this.B=msa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.$C(b[c])})};
    Pya=function(){ZE==null&&(ZE=new YE);return ZE};
    $E=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Qya(a))){b=xf("SPAN",null,b);break a}b=g.Af(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Rya(e,b))}return c.length==1?c[0]:xf("SPAN",null,c)};
    Rya=function(a,b){var c=null,d=a.text;b&&(d=Qya(d)||d);a.bold&&(c=xf("B",null,c||d));a.italics&&(c=xf("I",null,c||d));a.strikethrough&&(c=xf("STRIKE",null,c||d));a.navigationEndpoint&&g.V(a.navigationEndpoint,g.aF)&&(b=g.V(a.navigationEndpoint,g.aF),c=xf("A",null,c||d),g.Me(c,b.url),b.target=="TARGET_NEW_WINDOW"&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Pya().register(c,a),g.Hv(c,"ytp-ad-has-logging-urls"));
        return c||xf("SPAN",null,d)};
    Qya=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(a.length>1){for(var b=[a[0]],c=1;c<a.length;c++)b.push(xf("BR")),b.push(a[c]);return b}return null};
    bF=function(a,b,c,d,e,f,h,l){f=f===void 0?!1:f;h=h===void 0?[]:h;ME.call(this,a,{I:"span",Ka:["ytp-ad-hover-text-button"].concat(h)},l===void 0?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
    cF=function(a){return a&&a.thumbnails&&(a.thumbnails||null).length!=0&&a.thumbnails[0].url?g.bf(a.thumbnails[0].url):""};
    dF=function(a,b,c,d,e,f){f=f===void 0?!1:f;ME.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,e===void 0?null:e);this.j=f;this.hide()};
    eF=function(a,b,c,d,e,f){e=e===void 0?[]:e;ME.call(this,a,{I:"div",Ka:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",Ka:["ytp-ad-confirm-dialog"].concat(e),W:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-confirm-dialog-title",va:"{{title}}"},{I:"div",S:"ytp-ad-confirm-dialog-messages"},{I:"div",S:"ytp-ad-confirm-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-confirm-dialog-cancel-button",va:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-confirm-dialog-confirm-button",
                        va:"{{confirmLabel}}"}]}]}]},{I:"button",Ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.SE()]}]}]},f===void 0?"confirm-dialog":f,b,c,d);this.Y=this.Ga("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Ga("ytp-ad-confirm-dialog-cancel-button");this.G=this.Ga("ytp-ad-confirm-dialog-confirm-button");this.ra=this.Ga("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new pB;g.M(this,this.j);this.B=null;this.hide()};
    Sya=function(a,b){if(b.title){var c=g.OE(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.v(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=$E(d.value),a.ra.appendChild(d)}b.cancelLabel&&(c=g.OE(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.qN(e)}));
        b.confirmLabel&&(b=g.OE(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.xR(e)}));
        a.j.T(a.Y,"click",function(e){return a.wR(e)})};
    fF=function(a,b,c,d,e,f){e=e===void 0?[]:e;f=f===void 0?"toggle-button":f;var h=BE("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.fb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");ME.call(this,a,{I:"div",Ka:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",W:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",W:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
                    va:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",va:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",W:{id:h,type:"checkbox"}},{I:"span",S:"ytp-ad-toggle-button-text",va:"{{buttonText}}"},{I:"span",S:"ytp-ad-toggle-button-tooltip",va:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Ga("ytp-ad-toggle-button");this.j=this.Ga("ytp-ad-toggle-button-input");this.Ga("ytp-ad-toggle-button-label");this.B=this.Ga("ytp-ad-toggle-button-icon");this.Y=this.Ga("ytp-ad-toggle-button-untoggled-icon");
        this.G=this.Ga("ytp-ad-toggle-button-toggled-icon");this.Ea=this.Ga("ytp-ad-toggle-button-text");this.C=null;this.ra=!1;this.hide()};
    Tya=function(a){a.ra&&(a.isToggled()?(g.Ws(a.Y,!1),g.Ws(a.G,!0),a.api.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Ws(a.Y,!0),g.Ws(a.G,!1),a.api.U().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
    Uya=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return d!=null}));
        return c||[]};
    Vya=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
    gF=function(a){pB.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
    Wya=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-ad-feedback-dialog-background",V:[{I:"div",S:"ytp-ad-feedback-dialog-container",V:[{I:"div",S:"ytp-ad-feedback-dialog-form",W:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",va:"{{title}}"}]},{I:"span",S:"ytp-ad-info-dialog-feedback-options-title",va:"{{reasonsTitle}}"},{I:"div",S:"ytp-ad-info-dialog-feedback-options"},{I:"div",S:"ytp-ad-feedback-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-feedback-dialog-cancel-button",
                        va:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-feedback-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Ga("ytp-ad-feedback-dialog-cancel-button");this.Y=this.Ga("ytp-ad-feedback-dialog-confirm-button");this.ra=this.Ga("ytp-ad-info-dialog-feedback-options");this.Ea=this.Ga("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
    $ya=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new XE(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,["ytp-ad-feedback-dialog-close-button"],"button"),g.M(a,a.j),a.j.init(BE("button"),c,a.macros),a.j.listen("click",a.H_,a),a.j.Ja(a.element));b.title&&(c=g.OE(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.OE(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Xya(a,b.reasons);b.cancelLabel&&(c=g.OE(b.cancelLabel),a.updateValue("cancelLabel",
        c),g.lB(a.G,"click",function(){return a.H_()}));
        b.confirmLabel&&(c=g.OE(b.confirmLabel),a.updateValue("confirmLabel",c),g.lB(a.Y,"click",function(){return Yya(a)}));
        b.undoRenderer&&Zya(a,b.undoRenderer)};
    Xya=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(c==null)g.kE(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,d==null)g.kE(Error("AdFeedbackReason.endpoint was not set."));else{c=new hF(c,d);g.M(a,c);d=a.ra;var e=c.Ib();d.appendChild(e);a.D.push(c)}}};
    Zya=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new XE(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.M(a,a.B),a.B.init(BE("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.zca,a),a.B.Ja(a.Ea)):g.kE(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
    Yya=function(a){var b=a.D.filter(function(c){return c.isChecked()});
        b.length!==0&&(b=b[0].getCommand(),a.layoutId?a.kb.executeCommand(b,a.layoutId):g.jE(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
    hF=function(a,b){this.B=b;this.j=new g.LE({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",va:g.OE(a)}]});this.C=this.j.Ga("ytp-ad-feedback-dialog-reason-input")};
    iF=function(a,b,c,d){eF.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
    aza=function(a,b,c,d,e){ME.call(this,a,{I:"div",S:"ytp-ad-info-dialog-background",V:[{I:"div",S:"ytp-ad-info-dialog-container",V:[{I:"div",S:"ytp-ad-info-dialog-form",W:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",va:"{{title}}"},{I:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{I:"div",S:"ytp-ad-info-dialog-message"},{I:"div",S:"ytp-ad-info-dialog-mute-container"},{I:"div",S:"ytp-ad-info-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-info-dialog-confirm-button",va:"{{confirmLabel}}"}]}]}]}]},
        "ad-info-dialog",b,c,d);this.j=this.B=null;this.Y=this.Ga("ytp-ad-info-dialog-confirm-button");this.Za=this.Ga("ytp-ad-info-dialog-mute-container");this.Wa=this.Ga("ytp-ad-info-dialog-message");this.La=this.Ga("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ea=e;this.G=null;this.Va=!1;this.ra=null;this.hide()};
    bza=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Wya(a.api,a.layoutId,a.interactionLoggingClientData,a.kb),g.M(a,a.B),a.B.init(BE("ad-feedback-dialog"),b,a.macros),a.B.Ja(a.Ea),a.B.subscribe("a",function(){return a.publish("c")})};
    cza=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new iF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb),g.M(a,a.D),a.D.init(BE("ad-mute-confirm-dialog"),b,a.macros),a.D.Ja(a.Ea),a.D.subscribe("b",function(){return a.publish("c")})};
    dza=function(a){a.j&&a.j.listen("click",a.EV,a);g.lB(a.Y,"click",function(){return a.EV()})};
    jF=function(a,b,c,d,e,f){bF.call(this,a,b,c,d,f===void 0?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
    fza=function(a,b,c){b=b.dialog&&g.V(b.dialog,eza)||null;b==null?g.jE(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new aza(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.C),g.M(a,a.j),a.j.init(BE("ad-info-dialog"),b,c),a.j.Ja(a.C),a.j.subscribe("d",function(){return a.publish("f")}),a.j.subscribe("c",function(){return a.publish("e")}))};
    iza=function(a,b,c){a.button==null?g.jE(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Hv(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.V(b.serviceEndpoint,gza)||null)?(fza(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Hb&&(a.j.show(),hza(a))})):a.button.listen("click",function(){return hza(a)}))};
    hza=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
    kF=function(a,b,c,d,e,f){ME.call(this,a,{I:"div",S:"ytp-ad-text"},f===void 0?"ad-text":f,b,c,d,e===void 0?null:e);this.j=null;this.hide()};
    jza=function(a,b){b&&g.Kf(a.element,NE(a.j,b))};
    lF=function(a,b,c,d,e,f,h){ME.call(this,a,b,c,d,e,f);this.j=h;g.M(this,this.j);this.Va=this.Y=-1};
    mF=function(a){a.j&&a.Y===-1&&(a.Y=a.j.subscribe("h",a.Oo,a),a.Va=a.j.subscribe("g",a.zq,a),a.Oo())};
    nF=function(a){a.j!=null&&a.Y!==-1&&(a.j.Qh(a.Y),a.j.Qh(a.Va),a.Va=-1,a.Y=-1)};
    g.oF=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=d===void 0?b:d;this.j=f;this.onHidden=e;this.delay=new g.Av(this.lI,0,this);g.M(this,this.delay)};
    pF=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
    qF=function(a,b,c,d,e,f){lF.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Za=-1;this.D=this.api.U().experiments.fb("enable_modern_skip_button_on_web");this.B=new g.LE({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.M(this,this.B);this.C=this.D?new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-preview-text-modern"):new kF(this.api,this.layoutId,this.interactionLoggingClientData,
        this.kb,"ytp-ad-preview-text");g.M(this,this.C);this.C.Ja(this.B.element);this.ra=this.D?new g.LE({I:"span",S:"ytp-ad-preview-image-modern"}):new g.LE({I:"span",S:"ytp-ad-preview-image"});g.M(this,this.ra);this.G=new dF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.M(this,this.G);this.G.Ja(this.ra.element);this.ra.Ja(this.B.element);this.B.Ja(this.element);this.Ea=new g.oF(this.B,400,!1,100,function(){return h.hide()});
        g.M(this,this.Ea);this.La=0;this.Wa=!1;this.gb=f;this.hide()};
    kza=function(a){a.Ea.show(100);a.show()};
    lza=function(a,b,c,d,e,f){lF.call(this,a,{I:"div",Ka:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{I:"div",S:"ytp-flyout-cta-icon-container"},{I:"div",S:"ytp-flyout-cta-body",V:[{I:"div",S:"ytp-flyout-cta-text-container",V:[{I:"div",S:"ytp-flyout-cta-headline-container"},{I:"div",S:"ytp-flyout-cta-description-container"}]},{I:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new dF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-icon");
        g.M(this,this.C);this.C.Ja(this.Ga("ytp-flyout-cta-icon-container"));this.api.U().L("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-headline");g.M(this,this.G);this.G.Ja(this.Ga("ytp-flyout-cta-headline-container"));this.D=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-flyout-cta-description");g.M(this,this.D);this.D.Ja(this.Ga("ytp-flyout-cta-description-container"));
        a=["ytp-flyout-cta-action-button"];this.api.U().L("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,a);g.M(this,this.B);this.B.Ja(this.Ga("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");xv(this.B.element);this.ra=null;this.Ea=0;this.La=f;this.hide()};
    mza=function(a,b,c,d,e){ME.call(this,a,{I:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,e===void 0?null:e);var f=this;this.j=null;this.C=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-instream-user-sentiment-like-button"]);g.M(this,this.C);this.C.Ja(this.element);this.B=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.M(this,this.B);this.B.Ja(this.element);
        this.D=new g.oF(this,400,!1,500,function(){return f.hide()});
        g.M(this,this.D);this.hide()};
    rF=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?!1:f;g.I.call(this);this.B=a;this.C=!1;this.Y=d;this.qa=f;this.K=!1;this.j=null;b>0&&(this.j=new g.Av(this.SW,b,this),g.M(this,this.j));this.G=new g.Av(this.SW,c,this);g.M(this,this.G);this.Z=zla(this.B,e,1,d);g.M(this,this.Z);this.N=zla(this.B,0,d,1);g.M(this,this.N);this.D=new pB;g.M(this,this.D)};
    nza=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ne(a,"unknown result type")}};
    oza=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Ne(a,"Unknown method type")}};
    qza=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?getComputedStyle(e).display==="none"?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}a.isTrusted===!0?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):a.isTrusted===!1?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"):
        d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);fA("ISDSTAT",c);pza(c,"i.s_",{Iea:"sk",metadata:b,states:d});return c};
    rza=function(a,b){var c=[];b?b.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");pza(0,"a.s_",{metadata:a,states:c},!1);fA("ASDSTAT",0)};
    pza=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.Iea)!=null?e:"")+((f=c.a7)!=null?f:""),detectionStates:c.states,durationMs:c.Z6};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.SB("biscottiBasedDetection",h);d&&(a=nza(a),b=oza(b),fA("CATSTAT",Number(g.gA("CATSTAT",0))&~(3<<b)|a<<b))};
    sza=function(a){return a?"layout:  "+a.layoutType:""};
    sF=function(a,b,c){return a?!0:(g.kE(new g.CB("Assertion: "+b,c)),!1)};
    tF=function(a,b,c,d,e){d=d===void 0?{}:d;if(!e||Math.random()<5E-4){b=b||null;c=c||null;a=a instanceof Error?a:new g.CB(a);if(a.args)for(var f=g.v(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=sza(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.kE(a)}};
    g.uF=function(a,b){this.state=a;this.tB=b};
    wF=function(a,b){return g.vF(a.state,b)&&!g.vF(a.tB,b)?1:!g.vF(a.state,b)&&g.vF(a.tB,b)?-1:0};
    g.xF=function(a,b){return wF(a,b)>0};
    yF=function(a,b,c,d,e,f){lF.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ea=!1;this.Wa=f;this.G=this.api.U().experiments.fb("enable_modern_skip_button_on_web");this.Za=!1;this.D=new g.LE({I:"span",Ka:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.M(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.gb=new g.oF(this.D,500,!1,100,function(){return h.hide()});
        g.M(this,this.gb);this.La=new rF(this.D.element,15E3,5E3,.5,.5,this.G);g.M(this,this.La);this.hide()};
    uza=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.V(a.clickCommand,g.zF)&&g.V(a.clickCommand,g.zF).commands||[]).some(function(b){return b.adLifecycleCommand?tza(b.adLifecycleCommand):!1})};
    tza=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"};
    AF=function(a,b,c,d,e,f){lF.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
    vza=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ea.hide():a.B.hide()),b?(a=a.C,a.gb.show(),a.show()):a.C.show())};
    wza=function(a,b,c,d){XE.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
    BF=function(a,b,c,d,e,f){ME.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Ga("ytp-ad-simple-ad-badge");this.hide()};
    CF=function(a,b,c,d,e){e=e===void 0?!1:e;CE.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.iM=e};
    DF=function(a,b){g.DE.call(this);this.api=a;this.durationMs=b;this.j=null;this.Id=new pB(this);g.M(this,this.Id);this.B=xza;this.Id.T(this.api,"presentingplayerstatechange",this.X5);this.j=this.Id.T(this.api,"onAdPlaybackProgress",this.Tc)};
    EF=function(a){g.DE.call(this);this.j=!1;this.hj=0;this.Id=new pB(this);g.M(this,this.Id);this.durationMs=a;this.We=new g.ng(100);g.M(this,this.We);this.Id.T(this.We,"tick",this.Tc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
    g.FF=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";d>0&&(b+=" "+d+" Days");if(d>0||e>0)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";d>0&&(b+=d+":",e<10&&(b+="0"));if(d>0||e>0)b+=e+":",f<10&&(b+="0");b+=f+":";c<10&&(b+="0");d=b+c}return a>=0?d:"-"+d};
    g.GF=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
    HF=function(a,b,c,d,e,f){lF.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()};
    yza=function(a,b,c,d){kF.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
    IF=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()};
    JF=function(a,b){this.B=a;this.j=b};
    zza=function(a,b){return a.B+b*(a.j-a.B)};
    KF=function(a,b,c){return a.j-a.B?g.ze((b-a.B)/(a.j-a.B),0,1):c!=null?c:Infinity};
    LF=function(a,b){g.LE.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.M(this,this.B);this.progressBar=this.Ga("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
    MF=function(a,b,c,d,e,f){ME.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"},{I:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Ga("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.Ga("ytp-ad-player-overlay-instream-info");this.D=null;Aza(this)&&(a=xf("div"),g.Hv(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 yza(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(a),c.init(BE("ad-title"),{text:b.title},this.macros),g.M(this,c)),this.D=a);this.G=this.Ga("ytp-ad-player-overlay-skip-or-preview");
        this.La=this.Ga("ytp-ad-player-overlay-progress-bar");this.Ea=this.Ga("ytp-ad-player-overlay-instream-user-sentiment");this.ra=this.Ga("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.M(this,this.B);this.hide()};
    Aza=function(a){a=a.api.U();return g.NF(a)&&a.B};
    Bza=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.wo("/sharing_services",a);g.$C(d)};
    g.OF=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 a<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
    PF=function(a){this.j=new aw(a)};
    Cza=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.gA("INNERTUBE_CLIENT_NAME")==="WEB"||g.gA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
    QF=function(a){if(g.gA("LOGGED_IN",!0)&&Cza()){var b=g.gA("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.zn(window.location.href);c&&b.push(c);c=g.zn(a);g.Eb(b,c)||!c&&dc(a,"/")?(b=An(a),(b=Ofa(b))?(b=vxa(b),b=(b=g.OA(b)||null)?oA(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Cza()?(d||(d=g.gA("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&uxa(a,b)}};
    g.Dza=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.wo(a,b);QF(a);c=g.je(a+c);d=d.location;c=ke(c);c!==void 0&&(d.href=c)};
    g.Eza=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.gA("EVENT_ID");d&&(b.ei||(b.ei=d));b&&uxa(a,b);c||(QF(a),g.Dza(a))};
    g.RF=function(a,b,c,d,e){e=e===void 0?!1:e;c&&uxa(a,c);c=g.je(a);var f=g.de(c);a!=f&&lA(Error("Unsafe window.open URL: "+a));a=f;b=b||cf(a).toString(36);try{var h=oA(a);if(g.CA("replace_client_url_parsing_with_server_signal")){if(e){Fza(a,b);return}}else if((h==null?void 0:h.ase)==="2"){Fza(a,b);return}}catch(l){g.jA(l)}QF(a);g.Qe(c,b,d)};
    Fza=function(a,b){a=fva(a);QF(a);g.Qe(a,b,"attributionsrc")};
    Hza=function(a){Gza=a&&a.data};
    Jza=function(a){Iza=a&&a.data};
    Lza=function(a){Kza=a&&a.data};
    Nza=function(){Mza=Kza=Iza=Gza=null};
    Pza=function(){var a=a===void 0?window.location.href:a;if(g.CA("kevlar_disable_theme_param"))return null;wn(g.yn(5,a));try{var b=g.pA(a).theme;return Oza.get(b)||null}catch(c){}return null};
    SF=function(){this.j={};if(this.B=ora()){var a=g.OA("CONSISTENCY");a&&Qza(this,{encryptedTokenJarContents:a})}};
    Qza=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},c*1E3);
        a.B&&g.NA("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
    TF=function(){this.B=-1;var a=g.gA("LOCATION_PLAYABILITY_TOKEN");g.gA("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Rza(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
    Rza=function(a){return a.localStorage===void 0?new QB("yt-client-location"):a.localStorage};
    g.UF=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.gA("INNERTUBE_CONTEXT");if(!d)return g.jE(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.kd(d);g.CA("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.gA("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=f===void 0?!1:f;g.zB();var h="USER_INTERFACE_THEME_LIGHT";g.AB(0,165)?h="USER_INTERFACE_THEME_DARK":g.AB(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.CA("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:Pza()||h;e.userInterfaceTheme=f;if(!b){if(f=Esa())e.connectionType=f;g.CA("web_log_effective_connection_type")&&(f=Gsa())&&(d.client.effectiveConnectionType=f)}var l;if(g.CA("web_log_memory_total_kbytes")&&((l=g.Ua.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.Ua.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.CA("web_gcf_hashes_innertube")&&(f=bua())&&(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.pA(g.Ua.location.href);!g.CA("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.Ua.location.href},g.CA("kevlar_woffle")&&ssa.instance&&(m=ssa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
        "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=tsa(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.CA("web_lr_app_quality_killswitch")&&(m=g.gA("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.gA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.CA("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
        "undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=Vqa())?e.experimentsToken=n:delete e.experimentsToken;n=Wqa();SF.instance||(SF.instance=new SF);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.ad(SF.instance.j)});!g.CA("web_prequest_context_killswitch")&&(n=g.gA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.zB();n=g.AB(0,58);e=e.get("gsml","");d.user=
        Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.CA("warm_op_csn_cleanup")?c&&(b=g.gE())&&(d.clientScreenNonce=b):!b&&(b=g.gE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Wa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;TF.getInstance().setLocationOnInnerTubeContext(d);try{var p=vA(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.v(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.v(t.value),
        w=u.next().value,A=u.next().value;p=w;q=A;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var C;if(g.CA("add_ifa_to_tvh5_requests")&&((C=d.client)==null?void 0:C.clientName)==="TVHTML5"){var E=g.gA("INNERTUBE_CONTEXT");E.adSignalsInfo&&(d.adSignalsInfo.advertisingId=E.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=E.adSignalsInfo.limitAdTracking)}}catch(H){g.jE(H)}return d};
    Uza=function(a,b){if(!a)return!1;var c,d=(c=g.V(a,Sza))==null?void 0:c.signal;if(d&&b.Ey)return!!b.Ey[d];var e;if((c=(e=g.V(a,Tza))==null?void 0:e.request)&&b.JO)return!!b.JO[c];for(var f in a)if(b.CO[f])return!0;return!1};
    Vza=function(a){var b={"Content-Type":"application/json"};g.gA("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.gA("EOM_VISITOR_DATA"):g.gA("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.gA("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.gA("LOGGED_IN",!1);g.gA("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.gA("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.gA("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.gA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
        a),(a=g.gA("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.gA("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
    Wza=function(){this.j={}};
    VF=function(){this.mappings=new Wza};
    WF=function(a){return function(){return new a}};
    Yza=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=Xza[b];if(c){c=new RegExp(c);for(var d=g.v(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Xza).forEach(function(h){var l=g.v(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.v(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
    g.XF=function(a){return"/youtubei/v1/"+Yza(a)};
    Zza=function(){};
    YF=function(){};
    ZF=function(){};
    $F=function(a){return g.Wa("ytcsi."+(a||"")+"data_")||$za(a)};
    aAa=function(){var a=$F();a.info||(a.info={});return a.info};
    aG=function(a){a=$F(a);a.metadata||(a.metadata={});return a.metadata};
    bG=function(a){a=$F(a);a.tick||(a.tick={});return a.tick};
    cG=function(a){a=$F(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
    bAa=function(a){a=cG(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
    dG=function(a){var b=$F(a).nonce;b||(b=g.wD(16),$F(a).nonce=b);return b};
    $za=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b};
    cAa=function(){var a=g.Wa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a};
    eG=function(a){a=a||"";var b=dAa();if(b[a])return b[a];var c=cAa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
    eAa=function(a){a=a||"";var b=dAa();b[a]&&delete b[a];var c=cAa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
    dAa=function(){var a=g.Wa("ytcsi.reference");if(a)return a;cAa();return g.Wa("ytcsi.reference")};
    fG=function(a){return fAa[a]||"LATENCY_ACTION_UNKNOWN"};
    gAa=function(a,b){KC.call(this,1,arguments);this.We=b};
    gG=function(){this.j=0};
    hG=function(){gG.instance||(gG.instance=new gG);return gG.instance};
    jG=function(a,b){iG[b]=iG[b]||{count:0};var c=iG[b];c.count++;c.time=(0,g.fC)();a.j||(a.j=g.LB(0,function(){var d=(0,g.fC)(),e;for(e in iG)iG[e]&&d-iG[e].time>6E4&&delete iG[e];a&&(a.j=0)},5E3));
        return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.CB("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.kE(c)),!0):!1};
    hAa=function(){this.timing={};this.clearResourceTimings=function(){};
        this.webkitClearResourceTimings=function(){};
        this.mozClearResourceTimings=function(){};
        this.msClearResourceTimings=function(){};
        this.oClearResourceTimings=function(){}};
    iAa=function(){var a;if(g.CA("csi_use_performance_navigation_timing")||g.CA("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=kG==null?void 0:(a=kG.getEntriesByType)==null?void 0:(b=a.call(kG,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=lG(e.requestStart),e.responseEnd=lG(e.responseEnd),e.redirectStart=lG(e.redirectStart),e.redirectEnd=lG(e.redirectEnd),e.domainLookupEnd=lG(e.domainLookupEnd),e.connectStart=lG(e.connectStart),
        e.connectEnd=lG(e.connectEnd),e.responseStart=lG(e.responseStart),e.secureConnectionStart=lG(e.secureConnectionStart),e.domainLookupStart=lG(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=kG.timing}else a=g.CA("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(kG.timing)):kG.timing;return a};
    lG=function(a){return Math.round(mG()+a)};
    mG=function(){return(g.CA("csi_use_time_origin")||g.CA("csi_use_time_origin_tvhtml5"))&&kG.timeOrigin?Math.floor(kG.timeOrigin):kG.timing.navigationStart};
    oG=function(a,b){nG("_start",a,b)};
    AG=function(a,b,c){c=c===void 0?!1:c;if(!g.CA("web_csi_action_sampling_enabled")||!$F(b).actionDisabled)if(g.CA("web_csi_via_jspb")&&!c){c=new Sz;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":T(c,1,X[a[e]]);break;case "clientActionNonce":S(c,2,a[e]);break;case "clientScreenNonce":S(c,4,a[e]);break;case "loadType":S(c,3,a[e]);break;case "isPrewarmedLaunch":Uk(c,92,a[e]);break;case "isFirstInstall":Uk(c,55,a[e]);break;case "networkType":T(c,
        5,pG[a[e]]);break;case "connectionType":T(c,26,qG[a[e]]);break;case "detailedConnectionType":T(c,27,rG[a[e]]);break;case "isVisible":Uk(c,6,a[e]);break;case "playerType":T(c,7,sG[a[e]]);break;case "clientPlaybackNonce":S(c,8,a[e]);break;case "adClientPlaybackNonce":S(c,28,a[e]);break;case "previousCpn":S(c,77,a[e]);break;case "targetCpn":S(c,76,a[e]);break;case "isMonetized":Uk(c,9,a[e]);break;case "isPrerollAllowed":Uk(c,16,a[e]);break;case "isPrerollShown":Uk(c,17,a[e]);break;case "adType":S(c,
        12,a[e]);break;case "adTypesAllowed":S(c,36,a[e]);break;case "adNetworks":S(c,37,a[e]);break;case "previousAction":T(c,13,X[a[e]]);break;case "isRedSubscriber":Uk(c,14,a[e]);break;case "serverTimeMs":Vk(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":S(c,20,a[e]);break;case "targetVideoId":S(c,78,a[e]);break;case "adBreakType":T(c,21,tG[a[e]]);break;case "isNavigation":Uk(c,25,a[e]);break;case "viewportHeight":Vk(c,29,a[e]);break;case "viewportWidth":Vk(c,30,a[e]);break;
        case "screenHeight":Vk(c,84,a[e]);break;case "screenWidth":Vk(c,85,a[e]);break;case "browseId":S(c,31,a[e]);break;case "isCacheHit":Uk(c,32,a[e]);break;case "isSsdai":Uk(c,125,a[e]);break;case "httpProtocol":S(c,33,a[e]);break;case "transportProtocol":S(c,34,a[e]);break;case "searchQuery":S(c,41,a[e]);break;case "isContinuation":Uk(c,42,a[e]);break;case "availableProcessors":Vk(c,43,a[e]);break;case "sdk":S(c,44,a[e]);break;case "isLocalStream":Uk(c,45,a[e]);break;case "navigationRequestedSameUrl":Uk(c,
            64,a[e]);break;case "shellStartupDurationMs":Vk(c,70,a[e]);break;case "appInstallDataAgeMs":Vk(c,73,a[e]);break;case "latencyActionError":T(c,71,uG[a[e]]);break;case "actionStep":Vk(c,79,a[e]);break;case "jsHeapSizeLimit":Xk(c,80,a[e]);break;case "totalJsHeapSize":Xk(c,81,a[e]);break;case "usedJsHeapSize":Xk(c,82,a[e]);break;case "sourceVideoDurationMs":Xk(c,90,a[e]);break;case "videoOutputFrames":Xk(c,93,a[e]);break;case "isResume":Uk(c,104,a[e]);break;case "debugTicksExcluded":Uk(c,105,a[e]);break;
        case "abandonedPing":Uk(c,113,a[e]);break;case "retries":Vk(c,123,a[e]);break;case "adPrebufferedTimeSecs":Vk(c,39,a[e]);break;case "isLivestream":Uk(c,47,a[e]);break;case "liveStreamMode":T(c,91,vG[a[e]]);break;case "adCpn2":S(c,48,a[e]);break;case "adDaiDriftMillis":Xk(c,49,a[e]);break;case "videoStreamType":T(c,53,wG[a[e]]);break;case "playbackRequiresTap":Uk(c,56,a[e]);break;case "performanceNavigationTiming":Uk(c,67,a[e]);break;case "transactionType":T(c,74,xG[a[e]]);break;case "playerRotationType":T(c,
            101,yG[a[e]]);break;case "allowedPreroll":Uk(c,10,a[e]);break;case "shownPreroll":Uk(c,11,a[e]);break;case "getHomeRequestId":S(c,57,a[e]);break;case "getSearchRequestId":S(c,60,a[e]);break;case "getPlayerRequestId":S(c,61,a[e]);break;case "getWatchNextRequestId":S(c,62,a[e]);break;case "getBrowseRequestId":S(c,63,a[e]);break;case "getLibraryRequestId":S(c,66,a[e]);break;case "isTransformerEnabledForFeature":Uk(c,106,a[e]);break;case "sourceVideoFrameCount":Xk(c,109,a[e]);break;default:jAa.includes(f)&&
        g.jA(new g.CB("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.jA(Error("Codegen laipb translator failed to set "+f))}}zG(c,b)}else c=eG(b||""),rD(c.info,a),a.loadType&&(c=a.loadType,aG(b).loadType=c),rD(bAa(b),a),c=dG(b),b=$F(b).cttAuthInfo,hG().info(a,c,b)};
    zG=function(a,b){if(!g.CA("web_csi_action_sampling_enabled")||!$F(b).actionDisabled){var c=Sk(a,3);c&&(aG(b).loadType=c);eG(b||"").jspbInfo.push(a);c=dG(b);b=$F(b).cttAuthInfo;hG().jspbInfo(a,c,b)}};
    kAa=function(){var a,b,c,d;return((d=ED().resolve(new BD(GC))==null?void 0:(a=HC())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})};
    nG=function(a,b,c){if(!g.CA("web_csi_action_sampling_enabled")||!$F(c).actionDisabled){var d=dG(c),e;if(e=g.CA("web_csi_debug_sample_enabled")&&d){(ED().resolve(new BD(GC))==null?0:HC())&&!lAa&&(lAa=!0,nG("gcfl",(0,g.fC)(),c));var f,h,l;e=(ED().resolve(new BD(GC))==null?void 0:(f=HC())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=kAa();if(f.length>0)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=Vxa(d)%e!==0,$F(c).debugTicksExcludedLogged||
    (g.CA("web_csi_via_jspb")?(f=new Sz,f=Uk(f,105,e),zG(f,c)):(f={},f.debugTicksExcluded=e,AG(f,c))),$F(c).debugTicksExcludedLogged=!0):e=!1}if(!e){if(a[0]!=="_"&&(e=a,f=b,kG.mark))if(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),f===void 0||g.CA("web_csi_disable_alt_time_performance_mark"))kG.mark(e);else{f-=kG.timeOrigin||kG.timing.navigationStart;try{kG.mark(e,{startTime:f})}catch(m){}}e=eG(c||"");e.tick[a]=b||(0,g.fC)();if(e.callback&&e.callback[a])for(e=g.v(e.callback[a]),f=e.next();!f.done;f=
        e.next())f=f.value,f();e=cG(c);e.gelTicks&&(e.gelTicks[a]=!0);f=bG(c);e=b||(0,g.fC)();g.CA("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=$F(c).cttAuthInfo;a==="_start"?(a=hG(),jG(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.CA("web_csi_via_jspb")?(a=new mqa,S(a,1,d),d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA,jk(d,mqa,6,cE,a),bE("latencyActionBaselined",d,b)):g.SB("latencyActionBaselined",{clientActionNonce:d},b))):hG().tick(a,d,b,f);mAa(c);return e}}};
    nAa=function(){var a,b=(a=kG.getEntriesByType)==null?void 0:a.call(kG,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=kG.clearMarks)==null||d.call(kG,c.name)}})};
    oAa=function(){switch(csa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
    rAa=function(a){var b=iAa(),c=mG(),d=g.gA("CSI_START_TIMESTAMP_MILLIS",0);d>0&&!g.CA("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(nG("srt",b.responseStart),a.prerender!==1&&oG(c));a=pAa();a>0&&nG("fpt",a);a=iAa();a.isPerformanceNavigationTiming&&AG({performanceNavigationTiming:!0},void 0);nG("nreqs",a.requestStart,void 0);nG("nress",a.responseStart,void 0);nG("nrese",a.responseEnd,void 0);a.redirectEnd-a.redirectStart>0&&(nG("nrs",a.redirectStart,void 0),nG("nre",a.redirectEnd,void 0));
        a.domainLookupEnd-a.domainLookupStart>0&&(nG("ndnss",a.domainLookupStart,void 0),nG("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(nG("ntcps",a.connectStart,void 0),nG("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=mG()&&a.connectEnd-a.secureConnectionStart>0&&(nG("nstcps",a.secureConnectionStart,void 0),nG("ntcpe",a.connectEnd,void 0));kG&&"getEntriesByType"in kG&&qAa()};
    sAa=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;typeof l==="number"&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
        var c={};a=g.v(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
    tAa=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;d==="SCRIPT"?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):d==="LINK"&&(c=a.href);Re(window)&&a.setAttribute("nonce",Re(window));return c?(a=kG.getEntriesByName(c))&&a[0]&&(a=a[0],c=mG(),nG("rsf_"+b,c+Math.round(a.fetchStart)),nG("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
    vAa=function(){var a=[];if(document.querySelector&&kG&&kG.getEntriesByName)for(var b in uAa)if(uAa.hasOwnProperty(b)){var c=uAa[b];tAa(b,c)&&a.push(c)}return a};
    qAa=function(){var a=window.location.protocol,b=kG.getEntriesByType("resource");b=g.Pt(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
        (b=cs(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(nG("wffs",lG(b.startTime)),nG("wffe",lG(b.responseEnd)))};
    wAa=function(a,b,c){kG&&kG.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?kG.measure(a,b,c):b?kG.measure(a,b):kG.measure(a))};
    xAa=function(a){var b=BG("aft",a);if(b)return b;b=g.gA((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=BG(b[d],a);if(e)return e}return NaN};
    yAa=function(a,b){g.Va("ytglobal.timing"+(b||"")+"ready_",a)};
    BG=function(a,b){if(a=bG(b)[a])return typeof a==="number"?a:a[a.length-1]};
    mAa=function(a){var b=BG("_start",a),c=xAa(a),d=g.CA("enable_cow_info_csi")||!zAa;b&&c&&d&&(MC(AAa,new gAa(Math.round(c-b),a)),zAa=!0)};
    pAa=function(){if(kG.getEntriesByType){var a=kG.getEntriesByType("paint");if(a=g.Cb(a,function(b){return b.name==="first-paint"}))return lG(a.startTime)}a=kG.timing;
        return a.S$?Math.max(0,a.S$):0};
    CG=function(a){$za(a);BAa();nAa();a||(g.gA("TIMING_ACTION")&&fA("PREVIOUS_ACTION",g.gA("TIMING_ACTION")),fA("TIMING_ACTION",""))};
    CAa=function(){var a=["pbs","pbu"];g.kA(function(){eG("").info.actionType="watch";a&&fA("TIMING_AFT_KEYS",a);fA("TIMING_ACTION","watch");if(g.CA("web_csi_via_jspb")){var b=g.gA("TIMING_INFO",{}),c=new Sz;b=g.v(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":Tz(c,Qz(Pz(d),String(e)));break;case "GetGuide_rid":Tz(c,Qz(Pz(d),String(e)));break;case "GetHome_rid":Tz(c,Qz(Pz(d),String(e)));break;case "GetPlayer_rid":Tz(c,
        Qz(Pz(d),String(e)));break;case "GetSearch_rid":Tz(c,Qz(Pz(d),String(e)));break;case "GetSettings_rid":Tz(c,Qz(Pz(d),String(e)));break;case "GetTrending_rid":Tz(c,Qz(Pz(d),String(e)));break;case "GetWatchNext_rid":Tz(c,Qz(Pz(d),String(e)));break;case "yt_red":Uk(c,14,!!e);break;case "yt_ad":Uk(c,9,!!e)}}zG(c);c=new Sz;c=Uk(c,25,!0);c=T(c,1,X[fG(g.gA("TIMING_ACTION"))]);(b=g.gA("PREVIOUS_ACTION"))&&T(c,13,X[fG(b)]);(b=g.gA("CLIENT_PROTOCOL"))&&S(c,33,b);(b=g.gA("CLIENT_TRANSPORT"))&&S(c,34,b);(b=g.gE())&&
    b!=="UNDEFINED_CSN"&&S(c,4,b);b=oAa();b!==1&&b!==-1||Uk(c,6,!0);b=aAa();(d=aG().loadType==="cold")||(d=b.yt_lt==="cold");if(d&&(S(c,3,"cold"),rAa(b),b=vAa(),b.length>0))for(b=g.v(b),d=b.next();!d.done;d=b.next())d=d.value,e=new nqa,S(e,1,d),lk(c,83,nqa,e);zG(c)}else{c=sAa(g.gA("TIMING_INFO",{}));Object.keys(c).length>0&&AG(c);c={isNavigation:!0,actionType:fG(g.gA("TIMING_ACTION"))};if(b=g.gA("PREVIOUS_ACTION"))c.previousAction=fG(b);if(b=g.gA("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.gA("CLIENT_TRANSPORT"))c.transportProtocol=
        b;(b=g.gE())&&b!=="UNDEFINED_CSN"&&(c.clientScreenNonce=b);b=oAa();if(b===1||b===-1)c.isVisible=!0;b=aG().loadType==="cold";d=aAa();b||(b=d.yt_lt==="cold");if(b&&(c.loadType="cold",rAa(aAa()),b=vAa(),b.length>0))for(c.resourceInfo=[],b=g.v(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});AG(c)}c=cG();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=bAa();d=void 0;for(e=0;e<b.length;e++){var f=b[e];if(f.loadType){d=f.loadType;break}}if(aG().loadType===
        "cold"&&(c.loadType==="cold"||d==="cold")){d=bG();e=cG();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if(typeof d[h]==="number")nG(h,BG(h));else if(g.CA("log_repeated_ytcsi_ticks")){f=g.v(d[h]);for(var l=f.next();!l.done;l=f.next())nG(h.slice(1),l.value)}h={};d=!1;b=g.v(b);for(e=b.next();!e.done;e=b.next())d=e.value,rD(c,d),rD(h,d),d=!0;d&&AG(h)}yAa(!0);h=g.gA("TIMING_ACTION");g.Wa("ytglobal.timingready_")&&h&&DG()&&xAa()&&mAa()})()};
    DAa=function(){var a=a===void 0?{}:a;g.kA(function(){DG()&&EG("aa",void 0,void 0);eAa();CG();yAa(!1);a.cttAuthInfo&&($F().cttAuthInfo=a.cttAuthInfo);fA("TIMING_AFT_KEYS",[]);a.Nqb?g.FG({loadType:"hot"}):g.FG({loadType:"warm"});fA("TIMING_ACTION","");delete g.gA("TIMING_INFO",{}).yt_lt;g.kA(oG)(a.startTime,void 0)})()};
    GG=function(a,b){b=b===void 0?{}:b;g.kA(function(){EAa(a);var c=b.sampleRate;if(!g.CA("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var d=dG(a);c=Vxa(d)%c!==0}c&&($F(a).actionDisabled=!0);eG(a||"").info.actionType=a;b.cttAuthInfo&&($F(a).cttAuthInfo=b.cttAuthInfo);fA(a+"TIMING_ACTION",a);g.kA(oG)(b.startTime,a);c={actionType:fG(a)};b.Tqb&&(c.previousAction=fG(g.gA("TIMING_ACTION")));(d=g.gE())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);g.FG(c,a);yAa(!0,a)})()};
    EAa=function(a){g.kA(function(){DG(a)&&EG("aa",void 0,a);eAa(a);CG(a)})()};
    DG=function(a){return g.kA(function(){return HG("_start",a)})()};
    g.FG=function(a,b,c){g.kA(AG)(a,b,c===void 0?!1:c)};
    EG=function(a,b,c){return g.kA(nG)(a,b,c)};
    FAa=function(a){g.kA(wAa)("action_finished",a,void 0)};
    HG=function(a,b){return g.kA(function(){var c=bG(b);return a in c})()};
    HAa=function(a){if(!g.CA("universal_csi_network_ticks"))return"";a=wn(g.yn(5,a))||"";for(var b=Object.keys(GAa),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
    KAa=function(a){if(!g.CA("universal_csi_network_ticks"))return function(){};
        var b=GAa[a];return b?(IAa(b),function(){var c=g.CA("universal_csi_network_ticks")?(c=JAa[a])?IAa(c):!1:!1;return c}):function(){}};
    IAa=function(a,b){return g.kA(function(){if(HG(a,b))return!1;EG(a,void 0,b);return!0})()};
    IG=function(a,b,c){g.kA(function(){if(!DG(c)||HG(a,c))return!1;EG(a,b,c);return!0})()};
    LAa=function(){g.kA(function(){var a=dG();requestAnimationFrame(function(){setTimeout(function(){a===dG()&&EG("ftl",void 0,void 0)},0)})})()};
    JG=function(a,b,c,d){this.bP=a;this.kh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.Ey||(a.Ey={});a.Ey=Object.assign({},MAa,a.Ey)};
    NAa=function(a,b,c,d){if(JG.instance!==void 0){if(d=JG.instance,a=[a!==d.bP,b!==d.kh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.CB("InnerTubeTransportService is already initialized",a);
    }else JG.instance=new JG(a,b,c,d)};
    KG=function(a,b,c){var d=d===void 0?JC:d;var e=OAa(a,b);return e?new g.fg(function(f,h){var l,m,n,p,q;return g.G(function(r){switch(r.j){case 1:return g.z(r,e,2);case 2:l=r.B;m=l.G(b,c,d);if(!m){h(new g.CB("Error: Failed to build request for command.",b));r.Ia(0);break}QF(m.input);p=((n=m.Wu)==null?void 0:n.mode)==="cors"?"cors":void 0;if(a.j.m2){q=PAa(a,m.config,p);r.Ia(4);break}return g.z(r,QAa(a,m.config,p),5);case 5:q=r.B;case 4:f(RAa(a,m,q)),g.Aa(r)}})}):ig(new g.CB("Error: No request builder found for command.",
        b))};
    g.LG=function(a,b,c,d,e){function f(){}
        e=e===void 0?{ow:{identity:JC}}:e;var h=h===void 0?!0:h;f=KAa(HAa(c));b.context||(b.context=g.UF(d,h));return new g.fg(function(l){var m,n,p,q,r;return g.G(function(t){if(t.j==1)return m=pra(c),n=sA(m)?"same-origin":"cors",a.j.m2?(p=PAa(a,e,n),t.Ia(2)):g.z(t,QAa(a,e,n),3);t.j!=2&&(p=t.B);var u=p;q=qra(pra(c),u);r={input:q,Wu:rra(q),Yp:b,config:e};l(RAa(a,r,p,f));g.Aa(t)})})};
    TAa=function(a,b,c){var d;if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.D){d=g.v(SAa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
    RAa=function(a,b,c,d){d=d===void 0?function(){}:d;
        var e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L,N,Q,da,na,qa,ha,ta,P,ua,y,Z,cb;return g.G(function(La){switch(La.j){case 1:La.Ia(2);break;case 3:if((e=La.B)&&!e.isExpired())return La.return(Promise.resolve(e.j()));case 2:if(!((f=b)==null?0:(h=f.Yp)==null?0:h.context)){La.Ia(4);break}l=b.Yp.context;La.Ia(5);break;case 5:m=g.v([]),n=m.next();case 8:if(n.done){La.Ia(4);break}p=n.value;return g.z(La,p.zrb(l),9);case 9:n=m.next();La.Ia(8);break;case 4:if((q=a.C)==null||!q.Srb(b.input,b.Yp)){La.Ia(12);break}return g.z(La,
            a.C.Rqb(b.input,b.Yp),13);case 13:return r=La.B,g.CA("kevlar_process_local_innertube_responses_killswitch")||TAa(a,r,b),La.return(r);case 12:return(w=(u=b.config)==null?void 0:u.ys)&&a.B.has(w)?t=a.B.get(w):(A=JSON.stringify(b.Yp),H=(E=(C=b.Wu)==null?void 0:C.headers)!=null?E:{},b.Wu=Object.assign({},b.Wu,{headers:Object.assign({},H,c)}),L=Object.assign({},b.Wu),b.Wu.method==="POST"&&(L=Object.assign({},L,{body:A})),((N=b.config)==null?0:N.vda)&&EG(b.config.vda),Q=function(){return a.kh.fetch(b.input,
            L,b.config)},t=Q(),w&&a.B.set(w,t)),g.z(La,t,14);
            case 14:if((da=La.B)&&"error"in da&&((na=da)==null?0:(qa=na.error)==null?0:qa.details))for(ha=da.error.details,ta=g.v(ha),P=ta.next();!P.done;P=ta.next())ua=P.value,(y=ua["@type"])&&UAa.indexOf(y)>-1&&(delete ua["@type"],da=ua);w&&a.B.has(w)&&a.B.delete(w);((Z=b.config)==null?0:Z.zda)&&EG(b.config.zda);if(da||(cb=a.C)==null||!cb.cpb(b.input,b.Yp)){La.Ia(15);break}return g.z(La,a.C.Qqb(b.input,b.Yp),16);case 16:da=La.B;case 15:return TAa(a,da,b),d(),La.return(da||void 0)}})};
    OAa=function(a,b){a:{a=a.bP;var c,d=(c=g.V(b,Sza))==null?void 0:c.signal;if(d&&a.Ey&&(c=a.Ey[d])){var e=c();break a}var f;if((c=(f=g.V(b,Tza))==null?void 0:f.request)&&a.JO&&(f=a.JO[c])){e=f();break a}for(e in b)if(a.CO[e]&&(b=a.CO[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)};
    QAa=function(a,b,c){var d,e,f,h,l,m,n;return g.G(function(p){if(p.j==1){f=((d=b)==null?void 0:(e=d.ow)==null?void 0:e.identity)||JC;m=(h=b)==null?void 0:(l=h.ow)==null?void 0:l.sessionIndex;var q=hg(a.j.IE(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Vza(c),n)))})};
    PAa=function(a,b,c){var d,e=(b==null?void 0:(d=b.ow)==null?void 0:d.identity)||JC,f;b=b==null?void 0:(f=b.ow)==null?void 0:f.sessionIndex;a=a.j.IE(e,{sessionIndex:b});return Object.assign({},Vza(c),a)};
    QG=function(){};
    RG=function(){};
    SG=function(){};
    TG=function(){};
    UG=function(){};
    VG=function(){};
    g.WG=function(a,b){var c=g.Ja.apply(2,arguments);a=a===void 0?0:a;g.CB.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
    XG=function(a){this.j=a};
    VAa=function(a,b,c){if(a.j){var d=wn(g.yn(5,zo(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.CA("wug_networking_gzip_request")&&(a=Kua(c));return new window.Request(b,a)};
    g.YG=function(a,b){if(!WAa){var c=ED();Hva(c,{HG:XAa,g3:XG});var d={CO:{feedbackEndpoint:WF(SG),modifyChannelNotificationPreferenceEndpoint:WF(TG),playlistEditEndpoint:WF(UG),subscribeEndpoint:WF(QG),unsubscribeEndpoint:WF(RG),webPlayerShareEntityServiceEndpoint:WF(VG)}},e=TF.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=usa());b===void 0&&(b=c.resolve(XAa));NAa(d,b,a,f);Hva(c,{HG:YAa,mU:JG.instance});WAa=c.resolve(YAa)}return WAa};
    aBa=function(){if(!g.CA("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.CA("disable_biscotti_fetch_entirely_for_all_web_clients")&&Cra()){var a=g.gA("PLAYER_VARS",{});if(g.hd(a,"privembed",!1)!="1"&&!Gra(a)){var b=function(){ZAa=!0;"google_ad_status"in window?fA("DCLKSTAT",1):fA("DCLKSTAT",2)};
        try{g.uva("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}$Aa.push(g.wv.Ri(function(){if(!(ZAa||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=wva[c];d&&g.oD(d)}}catch(e){}ZAa=!0;fA("DCLKSTAT",3)}},5E3))}}};
    ZG=function(){var a=Number(g.gA("DCLKSTAT",0));return isNaN(a)?0:a};
    aH=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;b&&bBa(this,new Promise(function(e){g.LB(0,function(){e($G(d))},0)}))};
    $G=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.G(function(u){switch(u.j){case 1:c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(d=Uo().j)c.interpreterHash=d;g.Ba(u,2);return g.z(u,cBa(a,c),4);case 4:e=u.B;if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");f=e.challenge;h=dBa(f);if("c1a"in h&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ca(u,3);break;
        case 2:l=g.Da(u);g.kE(l);b++;if(b>=5)return g.kE(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),eBa(a,864E5),u.return({challenge:"",lr:{},Sq:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(w){g.LB(0,function(){w($G(a,b))},m)}));
        case 3:n=Number(h.t)||7200;eBa(a,n*1E3);p=void 0;if(!("c1a"in h&&e.bgChallenge)){u.Ia(5);break}q=fBa(e.bgChallenge);g.Ba(u,6);return g.z(u,gga(q),8);case 8:g.Ca(u,7);break;case 6:return r=g.Da(u),g.kE(r),u.return({challenge:f,lr:h,Sq:p,bgChallenge:q});case 7:return g.Ba(u,9),p=new Ro({challenge:q,V0:!0,Ji:"aGIf"}),g.z(u,p.rT,11);case 11:g.Ca(u,5);break;case 9:t=g.Da(u),g.kE(t),p=void 0;case 5:return u.return({challenge:f,lr:h,Sq:p,bgChallenge:q})}})};
    cBa=function(a,b){var c;return g.G(function(d){c=a.B;return!c||c.Hh()?d.return(cBa(a.network,b)):d.return(new Promise(function(e){c.MF("publicytnetworkstatus-online",function(){cBa(a.network,b).then(e)})}))})};
    bBa=function(a,b){a.j=b};
    dBa=function(a){var b={};a=a.split("&");a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b};
    fBa=function(a){var b=new Po;if(a.interpreterJavascript){var c=Oma(a.interpreterJavascript);c=xe(c).toString();var d=new No;S(d,6,c);ik(b,No,1,d)}else a.interpreterUrl&&(c=Kw(a.interpreterUrl),c=g.Zd(c).toString(),d=new Oo,S(d,4,c),ik(b,Oo,2,d));a.interpreterHash&&$k(b,3,a.interpreterHash);a.program&&$k(b,4,a.program);a.globalName&&$k(b,5,a.globalName);return b};
    gBa=function(a){var b,c,d;return g.G(function(e){if(e.j==1)return g.z(e,Promise.race([a.j,null]),2);b=e.B;var f=$G(a);a.j=f;(c=b)==null||(d=c.Sq)==null||d.dispose();g.Aa(e)})};
    eBa=function(a,b){function c(){var e;return g.G(function(f){e=d-Date.now();return e<1E3?g.z(f,gBa(a),0):(KB(c,0,Math.min(e,6E4)),f.Ia(0))})}
        var d=Date.now()+b;c()};
    hBa=function(a,b){return new Promise(function(c){g.LB(0,function(){c(b())},a)})};
    g.iBa=function(a,b){var c;return g.G(function(d){var e=g.Wa("yt.aba.att");return(c=e?e:aH.instance!==void 0?aH.instance.C.bind(aH.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
    g.jBa=function(){var a;return(a=(a=g.Wa("yt.aba.att2"))?a:aH.instance!==void 0?aH.instance.D.bind(aH.instance):null)?a():Promise.resolve(!1)};
    lBa=function(a,b){var c=g.Wa("ytDebugData.callbacks");c||(c={},g.Va("ytDebugData.callbacks",c));if(g.CA("web_dd_iu")||kBa.includes(a))c[a]=b};
    nBa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(c===0)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=mBa(a[c-1],a[c-2],d),f=mBa(d,a[c-1],a[c+1],!0);d=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))}b+=d}return b};
    mBa=function(a,b,c,d){d=d===void 0?!1:d;b=new oBa(b||a,c||a);return{x:a.x+((d===void 0?0:d)?b.j*-1:b.j)*.2,y:a.y+((d===void 0?0:d)?b.B*-1:b.B)*.2}};
    oBa=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
    pBa=function(a,b,c){if(!b)return a.length>=1?a[a.length-1]:null;for(var d=g.v(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
    qBa=function(a){return{isReady:a.isr,VF:a.mawst,ready:a.rea,start:function(){}}};
    rBa=function(){this.state=1;this.Sq=null};
    tBa=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.Hc(2),g.uva(c,function(){if(window[h])sBa(a,d,h,e);else{a.Hc(3);var l=vva(c),m=document.getElementById(l);m&&(sva(l),m.parentNode.removeChild(m));g.kE(new g.CB("Unable to load Botguard","from "+c))}},f)):b?(f=g.yf("SCRIPT"),b instanceof ue?(f.textContent=xe(b),Ve(f)):f.textContent=b,f.nonce=Re(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?sBa(a,d,h,e):(a.Hc(4),g.kE(new g.CB("Unable to load Botguard from JS")))):
        g.kE(new g.CB("Unable to load VM; no url or JS provided"))};
    sBa=function(a,b,c,d){a.Hc(5);try{var e=new Ro({program:b,globalName:c,V0:g.CA("att_web_record_metrics"),Ji:"aGIf"});e.rT.then(function(){a.Hc(6);d&&d(b)});
        a.pT(e)}catch(f){a.Hc(7),f instanceof Error&&g.kE(f)}};
    uBa=function(){var a=g.Wa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
    bH=function(){rBa.apply(this,arguments)};
    vBa=function(){};
    wBa=function(a,b,c){for(var d=!1,e=g.v(a.dj.entries()),f=e.next();!f.done;f=e.next())f=g.v(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.Ya==="core"&&(d=!0);if(d){a:if(!c){a=g.v(a.dj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.v(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.Ya==="core"){c=d.layoutId;break a}c=void 0}c?b.ZP(c):tF("No triggering layout ID available when attempting to mute.")}};
    xBa=function(a,b){this.yl=a;this.Fo=b};
    yBa=function(){};
    zBa=function(){};
    BBa=function(a){g.I.call(this);var b=this;this.kd=a;this.j=new Map;cH(this,"commandExecutorCommand",function(c,d,e){ABa(b,c.commands,d,e)});
        cH(this,"clickTrackingParams",function(){})};
    CBa=function(a,b){cH(a,b.Er(),function(c,d,e){b.Vt(c,d,e)})};
    cH=function(a,b,c){a.Na();a.j.get(b)&&g.jE(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
    ABa=function(a,b,c,d){b=b===void 0?[]:b;a.Na();var e=[],f=[];b=g.v(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.V(h,DBa)||g.V(h,EBa)?e.push(h):f.push(h);e=g.v(e);for(b=e.next();!b.done;b=e.next())dH(a,b.value,c,d);f=g.v(f);for(e=f.next();!e.done;e=f.next())dH(a,e.value,c,d)};
    dH=function(a,b,c,d){a.Na();b.loggingUrls&&FBa(a,"loggingUrls",b.loggingUrls,c,d);b=g.v(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.kd.get().Tu("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.kd.get().Tu("innertubeCommand",{confirmDialogEndpoint:f}):GBa.hasOwnProperty(e)||FBa(a,e,f,c,d)}};
    FBa=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.jE(f)}else b=new g.CB("Unhandled field",b),g.kE(b)};
    HBa=function(a,b,c){this.df=a;this.j=b;this.Oa=c};
    eH=function(a){this.value=a};
    fH=function(a){this.value=a};
    gH=function(a){this.value=a};
    IBa=function(a){this.value=a};
    JBa=function(a){this.value=a};
    hH=function(a){this.value=a};
    iH=function(a){this.value=a};
    KBa=function(){eH.apply(this,arguments)};
    LBa=function(a){this.value=a};
    MBa=function(a){this.value=a};
    NBa=function(a){this.value=a};
    OBa=function(a){this.value=a};
    PBa=function(a){this.value=a};
    jH=function(a){this.value=a};
    kH=function(a){this.value=a};
    lH=function(a){this.value=a};
    mH=function(a){this.value=a};
    nH=function(a){this.value=a};
    oH=function(){eH.apply(this,arguments)};
    pH=function(a){this.value=a};
    qH=function(a){this.value=a};
    rH=function(a){this.value=a};
    sH=function(a){this.value=a};
    tH=function(a){this.value=a};
    QBa=function(a){this.value=a};
    RBa=function(a){this.value=a};
    uH=function(a){this.value=a};
    SBa=function(a){this.value=a};
    TBa=function(a){this.value=a};
    UBa=function(a){this.value=a};
    VBa=function(a){this.value=a};
    vH=function(a){this.value=a};
    wH=function(a){this.value=a};
    xH=function(a){this.value=a};
    yH=function(a){this.value=a};
    WBa=function(a){this.value=a};
    zH=function(a){this.value=a};
    AH=function(a){this.value=a};
    BH=function(a){this.value=a};
    XBa=function(a){this.value=a};
    CH=function(a){this.value=a};
    DH=function(a){this.value=a};
    EH=function(a){this.value=a};
    FH=function(a){this.value=a};
    GH=function(a){this.value=a};
    HH=function(a){this.value=a};
    IH=function(a){this.value=a};
    JH=function(a){this.value=a};
    KH=function(a){this.value=a};
    YBa=function(a){this.value=a};
    LH=function(a){this.value=a};
    MH=function(a){this.value=a};
    NH=function(a){this.value=a};
    ZBa=function(a){this.value=a};
    OH=function(a){this.value=a};
    PH=function(a){this.value=a};
    QH=function(a){this.value=a};
    RH=function(){eH.apply(this,arguments)};
    $Ba=function(a){this.value=a};
    SH=function(){eH.apply(this,arguments)};
    TH=function(){eH.apply(this,arguments)};
    aCa=function(){eH.apply(this,arguments)};
    UH=function(){eH.apply(this,arguments)};
    bCa=function(){eH.apply(this,arguments)};
    cCa=function(a){this.value=a};
    VH=function(a){this.value=a};
    dCa=function(a){this.value=a};
    WH=function(a){this.value=a};
    eCa=function(a){this.value=a};
    YH=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!XH(a.Ba,c.value))return!1;return!0};
    ZH=function(){return""};
    fCa=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}};
    $H=function(a,b,c,d){d=d===void 0?!1:d;wb.call(this,a);this.Wk=c;this.nw=d;this.args=[];b&&this.args.push(b)};
    aI=function(a,b,c,d){d=d===void 0?!1:d;wb.call(this,a);this.Wk=c;this.nw=d;this.args=[];b&&this.args.push(b)};
    bI=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
        this.j=b};
    XH=function(a,b){return a.j.has(b)};
    cI=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()};
    dI=function(a){return Array.from(a.j.keys())};
    eI=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!XH(a.Ba,c.value))return!1;return!0};
    hCa=function(a){var b;return((b=gCa.get(a))==null?void 0:b.Iy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
    jCa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:iCa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=fI(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(fI(d.value));
        b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.v(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(fI(a.value))}return c};
    kCa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:iCa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
    fI=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
    lCa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.as(d||[],function(e){return jCa(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{}));
        return b};
    gI=function(a,b){return function(c){return mCa(nCa(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Ya,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Ya)}};
    mCa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:jCa(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Ya:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new bI([])}),layoutData:kCa(a,{layoutId:m,layoutType:n,Ya:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Fb:new Map,Ba:new bI([]),ac:{}})}}};
    iI=function(a){this.Aa=a;a=Math.random();var b=this.Aa.get();b=g.hI(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a<b};
    nCa=function(a){return a.j||a.Aa.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
    oCa=function(a,b,c,d){g.I.call(this);this.B=b;this.Pb=c;this.Aa=d;this.j=a(this,this,this,this,this);g.M(this,this.j);a=g.v(b);for(b=a.next();!b.done;b=a.next())g.M(this,b.value)};
    jI=function(a,b){a.B.add(b)};
    kI=function(a,b){a.B.delete(b)};
    pCa=function(a,b,c,d){tF(c,b,void 0,void 0,c.nw);c.Wk?a.Pb.im(d,c.Wk,b):tF("adsClientErrorMessage is missing.",b);lI(a,b,!0)};
    sCa=function(a,b,c){if(mI(a.j,b))if(nI(a.j,b).D=c?"filled":"not_filled",c===null){a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.v(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Lh(b);lI(a,b,!1)}else{a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=(e=c.Hy)!=null?e:cI(c.Ba,"metadata_type_sub_layouts");if(f)for(e=g.v(f),f=e.next();!f.done;f=e.next())a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,f.value);
        e=g.v(a.B);for(f=e.next();!f.done;f=e.next())f.value.Mh(b);if(mI(a.j,b))if(nI(a.j,b).G)lI(a,b,!1);else{a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!nI(d,b))throw new $H("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.oh.Bu.get(b.slotType))throw new $H("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(c.layoutExitNormalTriggers.length==
            0&&c.layoutExitSkipTriggers.length==0&&c.layoutExitMuteTriggers.length==0&&c.layoutExitUserInputSubmittedTriggers.length==0&&c.Wc.length==0)throw new $H("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");oI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);oI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);oI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);oI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
            c.layoutExitUserInputSubmittedTriggers);oI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Wc)}catch(n){n instanceof $H?a.nf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.nf(b,c,new $H("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");lI(a,b,!0);return}nI(a.j,b).K=!0;try{var h=a.j,l=nI(h,b),m=h.oh.Bu.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new $H("Already had LayoutRenderingAdapter registered for slot",
            void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;pI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);pI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);pI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);pI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);pI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Wc)}catch(n){qCa(a,b);n instanceof $H?a.nf(b,
            c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.nf(b,c,new $H("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");lI(a,b,!0);return}a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.v(a.B);for(h=d.next();!h.done;h=d.next())h.value.lh(b,c);qCa(a,b);rCa(a,b)}else a=a.Aa.get(),g.qI(a.J.U())||rI(a.J.U())||g.sI(a.J.U())?a=!0:(tF("Composite VOD on legacy path."),a=!1),a&&tF("slot is unscheduled after been fulfilled.",b,
            c)}};
    tCa=function(a,b,c){b.Ya!=="core"&&a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
    uCa=function(a,b,c){a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.v(a.B);for(var d=a.next();!d.done;d=a.next())d.value.lh(b,c)};
    vCa=function(a,b,c){a=g.v(a.B);for(var d=a.next();!d.done;d=a.next())d.value.pg(b,c)};
    wCa=function(a,b,c){a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.v(a.B);for(var d=a.next();!d.done;d=a.next())d.value.uc(b,c)};
    xCa=function(a,b,c,d){a.Pb.Sh(hCa(d),b,c,void 0);a=g.v(a.B);for(var e=a.next();!e.done;e=a.next())e.value.yc(b,c,d)};
    qCa=function(a,b){if(mI(a.j,b)){nI(a.j,b).K=!1;var c=tI;b=nI(a.j,b);var d=[].concat(g.ra(b.Z));taa(b.Z);c(a,d)}};
    tI=function(a,b){b.sort(function(f,h){function l(m){tF("TriggerCategoryOrder enum does not contain trigger category: "+m)}
        return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):fCa(f.category,l)-fCa(h.category,l)});
        var c=new Map;b=g.v(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,mI(a.j,d.slot))if(nI(a.j,d.slot).K)nI(a.j,d.slot).Z.push(d);else{a.Pb.sN("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.v(yCa);for(d=b.next();!d.done;d=b.next())e=g.v(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&zCa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&ACa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&BCa(a,
            b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&CCa(a,c)};
    zCa=function(a,b,c){b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&DCa(a.j,d.slot)&&ECa(a,d.slot,d.layout,c)};
    ACa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())lI(a,c.value.slot,!1)};
    BCa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(nI(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Pb.Sj("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.BE(c.slot))}};
    CCa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Pb.Sj("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.v(a.B),e=d.next();!e.done;e=d.next())e.value.Kh(c.slot);try{var f=a.j,h=c.slot,l=nI(f,h);if(!l)throw new aI("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new aI("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(l.j!=="scheduled")throw new aI("Tried to enter a slot from stage: "+
        l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(uI(l))throw new aI("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.v(vI(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&uI(p))throw new aI("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(q){q instanceof aI&&q.Wk?(a.Pb.im("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
        q.Wk,c.slot),tF(q,c.slot,wI(a.j,c.slot),void 0,q.nw)):(a.Pb.im("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),tF(q,c.slot));lI(a,c.slot,!0);continue}c=nI(a.j,c.slot);c.j!=="scheduled"&&xI(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.oJ()}};
    rCa=function(a,b){if(mI(a.j,b)&&uI(nI(a.j,b))&&wI(a.j,b)&&!DCa(a.j,b)){var c;a.Pb.Sh("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,(c=wI(a.j,b))!=null?c:void 0);a=nI(a.j,b);a.j!=="entered"&&xI(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
    ECa=function(a,b,c,d){if(mI(a.j,b)){var e=a.Pb,f=e.Sh,h;var l=((h=gCa.get(d))==null?void 0:h.vy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=nI(a.j,b);a.j!=="rendering"&&xI(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.md(c,d)}};
    lI=function(a,b,c){if(mI(a.j,b)){a:switch(nI(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(nI(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(nI(a.j,b).G=!0,!c))return;if(uI(nI(a.j,b)))nI(a.j,b).G=!0,FCa(a,b,c);else{a:switch(nI(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)nI(a.j,b).G=!0,mI(a.j,b)&&(a.Pb.Sj("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=nI(a.j,b),b.D="fill_cancel_requested",b.N.pO());else{c=
        wI(a.j,b);(d=a.Aa.get().J.U().experiments.fb("h5_enable_layout_unscheduling_events"))&&(c?a.pg(b,c):tF(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Pb.Sj("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=nI(a.j,b),f=b.slotEntryTrigger,h=e.Ca.get(f.triggerId);h&&(h.Ml(f),e.Ca.delete(f.triggerId));f=g.v(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.qa.get(h.triggerId);l&&(l.Ml(h),e.qa.delete(h.triggerId))}f=g.v(b.slotExpirationTriggers);
        for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Y.get(h.triggerId))l.Ml(h),e.Y.delete(h.triggerId);e.layout!=null&&(f=e.layout,yI(e,f.layoutExitNormalTriggers),yI(e,f.layoutExitSkipTriggers),yI(e,f.layoutExitMuteTriggers),yI(e,f.layoutExitUserInputSubmittedTriggers),yI(e,f.Wc));e.N=void 0;e.B!=null&&(e.B.release(),e.B=void 0);e.C!=null&&(e.C.release(),e.C=void 0);e=a.j;nI(e,b)&&(e=vI(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
            b);a=g.v(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Nh(b),c&&!d&&e.pg(b,c)}}}};
    FCa=function(a,b,c){if(mI(a.j,b)&&uI(nI(a.j,b))){var d=wI(a.j,b);if(d&&DCa(a.j,b))ECa(a,b,d,c?"error":"abandoned");else{a.Pb.Sj("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=nI(a.j,b);if(!e)throw new aI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");e.j!=="enter_requested"&&e.j!=="entered"&&e.j!=="rendering"&&xI(e.slot,e.j,"exitSlot");e.j="exit_requested";if(e.B===void 0)throw e.j="scheduled",new aI("Cannot exit slot because adapter is not defined",
        void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.rJ()}catch(f){f instanceof aI&&f.Wk?(a.Pb.im("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Wk,b),tF(f,b,void 0,void 0,f.nw)):(a.Pb.im("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),tF(f,b))}}}};
    GCa=function(a){this.slot=a;this.Ca=new Map;this.qa=new Map;this.Y=new Map;this.ra=new Map;this.C=this.layout=this.B=this.N=void 0;this.K=this.G=!1;this.Z=[];this.j="not_scheduled";this.D="not_filled"};
    uI=function(a){return a.j==="enter_requested"||a.isActive()};
    HCa=function(a,b,c,d,e,f){g.I.call(this);this.oh=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Aa=f;this.j=new Map};
    vI=function(a,b){return(a=a.j.get(b))?a:new Map};
    nI=function(a,b){return vI(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
    ICa=function(a){var b=[];a.j.forEach(function(c){c=g.v(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
        return b};
    mI=function(a,b){return nI(a,b)!=null};
    DCa=function(a,b){a=nI(a,b);if(b=a.layout!=null)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
    wI=function(a,b){(a=nI(a,b))?a.layout!=null&&!a.layout&&tF("Unexpected empty layout",b):tF("Unexpected undefined slotState",b);return(a==null?void 0:a.layout)||null};
    LCa=function(a,b,c){if(c.length==0)throw new aI("No "+JCa.get(b)+" triggers found for slot.",void 0,KCa(b));c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.oh.qn.get(d.triggerType))throw new aI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
    KCa=function(a){switch(a){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
    oI=function(a,b,c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.oh.qn.get(d.triggerType))throw new $H("No trigger adapter registered for "+JCa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
    pI=function(a,b,c,d){d=g.v(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.oh.qn.get(e.triggerType);f.Gl(c,e,b.slot,b.layout?b.layout:null);b.ra.set(e.triggerId,f)}};
    yI=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ra.get(c.triggerId);d&&(d.Ml(c),a.ra.delete(c.triggerId))}};
    xI=function(a,b,c){tF("Slot stage was "+b+" when calling method "+c,a)};
    MCa=function(a){return zI(a.CB).concat(zI(a.qn)).concat(zI(a.Lt)).concat(zI(a.fv)).concat(zI(a.Bu))};
    zI=function(a){var b=[];a=g.v(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.jh&&b.push(c);return b};
    NCa=function(a){g.I.call(this);var b=this;this.j=a;this.instance=null;this.addOnDisposeCallback(function(){g.ub(b.instance);b.instance=null})};
    AI=function(a){return new NCa(a)};
    PCa=function(a){g.I.call(this);this.dh=a;this.j=OCa(this)};
    OCa=function(a){var b=new oCa(function(c,d,e,f){return new HCa(a.dh.oh,c,d,e,f,a.dh.Aa)},new Set(MCa(a.dh.oh).concat(a.dh.listeners)),a.dh.Pb,a.dh.Aa);
        g.M(a,b);return b};
    BI=function(a){this.j=a};
    CI=function(a,b,c){ABa(a.j(),b,c)};
    DI=function(a,b,c,d){(a=a.j())||tF("Could not initiate a command router instance.");dH(a,b,c,d)};
    EI=function(){this.listeners=new Set};
    FI=function(){};
    RCa=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;if(b.siub&&b.scs&&(a||c)){a=b.siub;var d=b.scs,e=b.bgub,f=b.bgp;b=window;var h=e?"//pagead2.googlesyndication.com/bg/"+Ze(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&typeof c.push=="function"||(c=b.GoogleTyFxhY=[]);c.push(l);c=lf(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=Jba(QCa,Ze(a)+".js");g.We(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
    SCa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Ne=d;this.Aa=e;this.j=null};
    UCa=function(a,b,c,d){a.j&&tF("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.yC?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=gI(a.Ne.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Ya:a.slot.Ya,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
        n=GI(h.B.get(),f,l),p={layoutId:n,layoutType:f,Ya:"core"};e={layoutId:n,layoutType:f,Fb:new Map,layoutExitNormalTriggers:[new TCa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new ZBa(e)]),ac:m(p)};sCa(a.callback,a.slot,e)},function(e){a.j=null;
        c&&c();e instanceof mg||pCa(a.callback,a.slot,new aI(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
    VCa=function(a){if(a.j==null)a.callback.lL(a.slot);else try{a.j.cancel(),a.j=null,a.callback.lL(a.slot)}catch(b){a.j=null,pCa(a.callback,a.slot,new aI(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
    HI=function(a,b,c,d){!a&&(c===void 0?0:c)&&g.kE(Error("Player URL validator detects invalid url. "+(d===void 0?"":d)+": "+b));return a};
    II=function(a,b,c){return b&&b.test(a)||WCa&&c&&c.test(a)?!0:!1};
    YCa=function(a){return(a=XCa&&XCa.exec(a))?a[0]:""};
    JI=function(a){var b=b===void 0?!1:b;return HI(II(a,ZCa,null),a,b,"Trusted Stream URL")};
    g.KI=function(a){var b=b===void 0?!1:b;return HI(II(a,$Ca,null),a,b,"Trusted Image URL")};
    bDa=function(a){var b=b===void 0?!1:b;return HI(II(a,aDa,null),a,b,"Trusted Promoted Video Domain URL")};
    dDa=function(a){var b=b===void 0?!1:b;return HI(II(a,cDa,null),a,b,"Drm Licensor URL")};
    fDa=function(a,b){b=b===void 0?!1:b;return HI(II(a,eDa,null),a,b,"Captions URL")};
    gDa=function(a){a=new g.lq(a);g.mq(a,document.location.protocol);g.nq(a,document.location.hostname);document.location.port&&g.oq(a,document.location.port);return a.toString()};
    LI=function(a){a=new g.lq(a);g.mq(a,document.location.protocol);return a.toString()};
    g.NI=function(a,b,c){c=c===void 0?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.Cl=0;this.B=hDa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||MI.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.bs(d.thumbnails,function(e){return g.KI(e.url)})}):null;
        this.visible=this.visible;this.style=this.style;this.start=this.start};
    iDa=function(a){return a===-0x8000000000000?"BEFORE_MEDIA_START":a===0?"MEDIA_START":a===0x7ffffffffffff?"MEDIA_END":a===0x8000000000000?"AFTER_MEDIA_END":a.toString()};
    jDa=function(a,b){switch(a.style){case MI.CHAPTER_MARKER:return b?8:5;case MI.AD_MARKER:return 6;case MI.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
    g.kDa=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
    g.OI=function(a){return"crn_"+a};
    g.PI=function(a){return"crx_"+a};
    lDa=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Oa=h;this.Ha=l;this.zc=m;this.j=new SCa(a,b,d,e,f)};
    mDa=function(a){var b;(b=a.zc)==null||b.get().Qu(cI(a.slot.Ba,"metadata_type_cue_point").identifier)};
    nDa=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new SCa(a,b,d,e,f)};
    oDa=function(a,b){this.callback=a;this.slot=b};
    pDa=function(a,b){return eI(a,b.Nd,b.slotType)?!0:!1};
    qDa=function(){};
    QI=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Ne=c;this.Aa=d;this.Oa=e;this.Ha=f;this.zc=h};
    RI=function(){};
    rDa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.C=e;this.j=f};
    tDa=function(a){if(cI(a.slot.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=sDa(a,a.slot);SI(a.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
    sDa=function(a,b){var c=TI(a.j.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotId;var h=b.slotEntryTrigger;f=h.triggeringSlotId!=null&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:uDa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:uDa(b.slotId,c,b.slotExpirationTriggers)})};
    uDa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next()){var f=d,h=f.push;var l=a;var m=b;e=e.value;l=e.triggeringSlotId!=null&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
    g.UI=function(a,b){for(var c=g.v(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:void 0},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
        return a};
    vDa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
    wDa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.nf(a.slot,b,new $H("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):c()};
    VI=function(a,b,c,d){g.DE.call(this);this.callback=a;this.C=d;this.j=[];this.B=new vDa(a,b,c)};
    XI=function(a,b,c,d,e,f,h,l){d=d||cI(c.Ba,f);a=WI(a);var m=Pd(function(){e.uc(b,c)});
        l.push(h(d,a,c.layoutId,{adsClientData:c.ac},function(){m()}))};
    YI=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.v(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():tF("Tried to call engagePingCallback but it is null",h,l)}}else tF("Companion AdUxClick received without a layoutId",h,l)};
    ZI=function(a){var b,c,d,e,f;return!((b=a.get("active_view_viewable"))==null||!b.length)||!((c=a.get("active_view_measurable"))==null||!c.length)||!((d=a.get("active_view_fully_viewable_audible_half_duration"))==null||!d.length)||!((e=a.get("audio_audible"))==null||!e.length)||!((f=a.get("audio_measurable"))==null||!f.length)};
    $I=function(a){var b,c;return(c=a==null?void 0:(b=a.activeViewTracking)==null?void 0:b.trafficType)!=null?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
    aJ=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["swipe",a.swipePings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",
        a.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((b=a.activeViewTracking)==null?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",((c=a.activeViewTracking)==null?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",
        a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",
        a.unmutedClickthroughPings||[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
    xDa=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
        case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
        case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
        default:return null}};
    bJ=function(a,b,c,d,e){e=e===void 0?null:e;this.C=a;this.Oa=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
        this.N={adPlacementConfig:c,j_:e}};
    cJ=function(){return["metadata_type_ad_placement_config"]};
    WI=function(a){var b=a.Oa.get();return dJ(b,a.N)};
    zDa=function(a,b,c){c=c===void 0?!1:c;a.j.has(b)?yDa(a,b,[]):a.Xb(b,c)};
    eJ=function(a,b,c){for(c=c===void 0?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)yDa(a,"progress",[d]),a.D++;else break}};
    fJ=function(a,b){return a.j.has(b)};
    gJ=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
    ADa=function(a,b,c){a.K=b;a.G=c};
    yDa=function(a,b,c){var d;BDa(a.Oa.get(),a.layoutId,b,c,(d=a.K)!=null?d:void 0,a.G)};
    CDa=function(a,b,c,d,e){CE.call(this,"ads-engagement-panel-layout",a,b,c,d,e)};
    DDa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    EDa=function(){var a=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_PANEL"]}};
    FDa=function(a,b,c,d,e){CE.call(this,"banner-image",a,b,c,d,e)};
    GDa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);this.adPlacementConfig=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,this.adPlacementConfig,c.layoutId)};
    HDa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
    IDa=function(a,b,c,d,e){CE.call(this,"action-companion",a,b,c,d,e)};
    JDa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    KDa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
    LDa=function(a,b,c,d,e){CE.call(this,"image-companion",a,b,c,d,e)};
    MDa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    NDa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
    ODa=function(a,b,c,d,e){CE.call(this,"shopping-companion",a,b,c,d,e)};
    PDa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    QDa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
    RDa=function(a){var b;if(((b=a.adVideoOffset)==null?void 0:b.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var c;return((c=a.adVideoOffset)==null?void 0:c.percent)!=null};
    SDa=function(a){var b;if(((b=a.adVideoOffset)==null?void 0:b.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var c;return((c=a.adVideoOffset)==null?void 0:c.milliseconds)!=null&&!isNaN(Number(a.adVideoOffset.milliseconds))};
    TDa=function(a,b,c,d){this.Lb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.v(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,(c=b.adVideoOffset)==null?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":RDa(b)?this.B.push(b):tF("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":SDa(b)?this.j.push(b):tF("Invalid AdVideoProgressMillisecondsCommand");break;default:tF("Unknown or invalid AdVideoProgressOffSet kind")}this.B.sort(function(e,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
        this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
    UDa=function(a,b,c){c=c===void 0?!1:c;var d=a.G();if(d){for(;a.D<a.B.length;){var e=a.B[a.D];if(e.adVideoOffset.percent*d<=b)a.Lb.get().executeCommand(e.command,a.layoutId),a.D++;else break}for(;a.C<a.j.length;)if(d=a.j[a.C],Number(d.adVideoOffset.milliseconds)<=b||c)a.Lb.get().executeCommand(d.command,a.layoutId),a.C++;else break}};
    VDa=function(a,b,c,d,e,f){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.jh=!0;jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    WDa=function(){var a=["metadata_type_action_companion_ad_renderer"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
    XDa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Aa=f;this.xb=h;this.j=!1;a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    YDa=function(a,b,c,d,e,f){VI.call(this,a,b,c,d);this.Ha=e;this.G=f;this.D=!1};
    ZDa=function(a,b,c,d,e){CE.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
    $Da=function(a,b,c,d,e,f){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.jh=!0;jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    aEa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
    hJ=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;CE.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.zT=e;this.iM=f};
    iJ=function(a,b,c,d,e){VI.call(this,a,b,c,d);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,e,a,c.layoutId)};
    bEa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_ENDCAP"]}};
    jJ=function(a,b){return YH(a,b.Nd,b.Fe)?!0:!1};
    kJ=function(a,b,c){this.B=a;this.C=b;this.j=c};
    cEa=function(a,b,c,d,e){CE.call(this,"ads-engagement-panel",a,b,c,d,e)};
    dEa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    eEa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
    fEa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Oa=e;this.Yb=f;this.K=l;this.jh=!0;this.D=null;this.G=cI(c.Ba,"metadata_type_linked_player_bytes_layout_id");jI(this.Yb(),this);this.adPlacementConfig=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,this.adPlacementConfig,c.layoutId)};
    gEa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
    hEa=function(a,b,c,d,e){this.Ec=a;this.Oa=b;this.Yb=c;this.j=d;this.xb=e};
    iEa=function(a,b,c){CE.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
    lJ=function(a,b,c,d){VI.call(this,a,b,c,d)};
    jEa=function(a){this.Ec=a};
    kEa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Jh=e;a=cI(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    lEa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_FORECASTING"]}};
    mEa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Jh=e;a=cI(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    mJ=function(a,b,c,d){this.Aa=a;this.Oa=b;this.Jh=c;this.xb=d};
    nEa=function(a,b){return XH(a.Ba,"metadata_type_ad_info_ad_metadata")?cI(a.Ba,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Ol,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(tF("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
    oEa=function(a,b){return XH(a.Ba,"metadata_ad_video_is_listed")?cI(a.Ba,"metadata_ad_video_is_listed"):b?b.isListed:(tF("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
    pEa=function(a,b,c,d){CE.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
    qEa=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=cI(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
    rEa=function(a){if(a.layout.renderingContent){var b;return(b=cI(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return cI(a.layout.Ba,"metadata_type_player_bytes_callback")};
    nJ=function(a,b,c,d,e,f,h,l){VI.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=cI(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
    sEa=function(){return{Nd:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Fe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
    tEa=function(a){if(a.layout.renderingContent){var b;return(b=cI(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return cI(a.layout.Ba,"metadata_type_player_bytes_callback")};
    uEa=function(a,b,c){CE.call(this,"ad-message",a,void 0,b,c)};
    oJ=function(a,b,c,d,e,f){VI.call(this,c,a,b,d);this.Ha=e;this.Aa=f};
    vEa=function(){return{Nd:["metadata_type_valid_ad_message_renderer"],Fe:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
    rJ=function(a,b,c,d,e,f,h,l,m){return jJ(c,sEa())||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(c.renderingContent,pJ)!==void 0?new nJ(a,b,c,d,e,f,h,l):jJ(c,{Nd:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Fe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(c.renderingContent,wEa)!==void 0?
        new qEa(a,b,c,d,e,f,h,l):jJ(c,bEa())||c.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.V(c.renderingContent,qJ)!==void 0?new iJ(a,b,c,d,f):jJ(c,vEa())?new oJ(b,c,a,d,e,m):jJ(c,{Nd:["metadata_type_instream_ad_player_overlay_renderer"],Fe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new YDa(a,b,c,d,e,l):null};
    xEa=function(a,b,c,d,e,f){this.Ec=a;this.Ha=b;this.Oa=c;this.B=d;this.j=e;this.Aa=f};
    sJ=function(a){return!a.tB.isPlaying()&&a.state.isPlaying()};
    tJ=function(a,b,c){return a<b?!1:c!=null?c<=b:a<=b+1};
    yEa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Aa=f;this.xb=h;this.j=!1;a=cI(c.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId)};
    zEa=function(a,b){a.j||(a.bb.Xb(b),a.j=!0)};
    AEa=function(a,b,c,d){this.Ha=a;this.Oa=b;this.Aa=c;this.xb=d};
    BEa=function(){this.currentState=1;this.j="unknown"};
    CEa=function(a,b){if(a.currentState>1){g.kE(new g.CB("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0};
    DEa=function(a,b){var c=new Map;a=g.v(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=cI(d.Ba,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";c.set(d.layoutId,e);e==="u"&&(e={},uJ(b,"uct",(e.c=d.layoutId,e)))}a=b.gg();vJ={contentCpn:a,vt:c};
        d={};uJ(b,"acc",(d.ct=c.size,d.c=a,d))};
    EEa=function(){vJ={contentCpn:"",vt:new Map}};
    wJ=function(a){var b;return(b=vJ.vt.get(a))!=null?b:"u"};
    xJ=function(a,b,c){uJ(a,b,c);FEa(a)};
    GEa=function(a){var b=a.layoutId,c=a.Om;if(a.Pm){var d={};xJ(a.df,"slso",(d.ec=b,d.is=c,d.ctp=wJ(b),d))}};
    HEa=function(a){var b=a.layoutId,c=a.Om;if(a.Pm){var d={};xJ(a.df,"slse",(d.ec=b,d.is=c,d.ctp=wJ(b),d))}};
    IEa=function(a){var b=a.layoutId,c=a.Om,d=a.df;a.Pm&&(a={},xJ(d,"sleo",(a.xc=b,a.is=c,a.ctp=wJ(b),a)),FEa(d))};
    JEa=function(a){var b=a.layoutId,c=a.Om;if(a.Pm){var d={};xJ(a.df,"slhe",(d.xc=b,d.is=c,d.ctp=wJ(b),d))}};
    yJ=function(a){var b=a.cpn,c=a.df;a=a.Om;var d=c.gg(),e={};xJ(c,"ce",(e.ec=b,e.ia=b!==d,e.r=vJ.vt.has(b),e.is=a,e.ctp=wJ(b),e))};
    FEa=function(a){if(a.gg()!==vJ.contentCpn){var b={};uJ(a,"ccm",(b.c=vJ.contentCpn,b))}};
    zJ=function(a){var b=a.cpn,c=a.df;a=a.Om;var d=c.gg(),e={};xJ(c,"cx",(e.xc=b,e.ia=b!==d,e.r=vJ.vt.has(b),e.is=a,e.ctp=wJ(b),e))};
    KEa=function(a,b){this.df=a;this.Aa=b};
    AJ=function(a){var b=[];if(a){a=g.v(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
    BJ=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c};
    CJ=function(a){return a===1||a===2};
    DJ=function(a,b){b=b===void 0?0:b;if(a instanceof BJ)return a;a=a&&a instanceof Error?a:Error(""+a);CJ(b)?g.jE(a):g.kE(a);return new BJ(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
    g.MEa=function(a){return(a=LEa[a.toString()])?a:"LICENSE"};
    NEa=function(a,b){function c(){var d=g.Ja.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.ra(d))}
        a.addEventListener("playing",c)};
    EJ=function(){var a=g.Wa("yt.player.utils.videoElement_");a||(a=g.yf("VIDEO"),g.Va("yt.player.utils.videoElement_",a));return a};
    FJ=function(a){var b=EJ();return!!(b&&b.canPlayType&&b.canPlayType(a))};
    HJ=function(a){if(/opus/.test(a)&&g.GJ&&!Xv("38")&&!g.RA())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!wra())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!FJ(a)};
    OEa=function(a){try{var b=HJ('video/mp4; codecs="avc1.42001E"')||HJ('video/webm; codecs="vp9"');return(HJ('audio/mp4; codecs="mp4a.40.2"')||HJ('audio/webm; codecs="opus"'))&&(b||!a)||FJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
    PEa=function(){var a=EJ();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")};
    QEa=function(){var a=EJ();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
    g.IJ=function(){pB.apply(this,arguments)};
    JJ=function(a,b,c,d,e,f){this.sampleRate=a===void 0?0:a;this.numChannels=b===void 0?0:b;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=d===void 0?!1:d;this.C=e===void 0?0:e;this.B=f===void 0?0:f};
    LJ=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||REa(a,b);this.j=g.KJ[this.quality];this.fps=c||0;this.stereoLayout=!e||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:e;this.projectionType=d?d==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.KJ[this.quality],a===0?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":"")));
        this.qualityLabel=a;this.B=l||"";this.primaries=m||""};
    REa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=MJ[0];for(var d=0;d<MJ.length;d++){var e=MJ[d],f=g.KJ[e];if(c>=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"};
    PJ=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.tb>0||(c.tb=16E3);Object.assign(this,c);a=g.v(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=NJ(b);this.qb=OJ[this.itag]||""};
    QJ=function(a){return a.qb==="9"||a.qb==="("||a.qb==="9h"||a.qb==="(h"};
    SEa=function(a){return a.qb==="H"||a.qb==="h"};
    TEa=function(a){return a.qb==="9h"||a.qb==="(h"};
    RJ=function(a){return a.qb==="1"||a.qb==="1h"};
    UEa=function(a){return a.qb==="mac3"||a.qb==="meac3"||a.qb==="m"};
    SJ=function(a){return a.qb==="MAC3"||a.qb==="MEAC3"||a.qb==="M"};
    g.TJ=function(a){return a.containerType===1};
    VEa=function(a){return a.qb==="("||a.qb==="(h"||a.qb==="H"};
    UJ=function(a){return a.mimeType==="application/x-mpegURL"};
    VJ=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
    WJ=function(a,b){a=VJ(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
    WEa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.qb==="f")return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:a.tb*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.tb*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
    XEa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
    YEa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
    XJ=function(a){return a.includes("vtt")||a.includes("text/mp4")};
    NJ=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0};
    YJ=function(a,b,c,d,e,f){var h=new JJ;b in g.KJ||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.KJ[b],d=Math.round(e*16/9));f=new LJ(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new PJ(c,a,{audio:h,video:f})};
    ZJ=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.pw)==null?void 0:c.toFixed(0))+", "+((d=a.tb)==null?void 0:d.toFixed(0))+")"};
    $J=function(a,b){return{start:function(c){return a[c]},
        end:function(c){return b[c]},
        length:a.length}};
    ZEa=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)d.push(a.start(f)),e.push(a.end(f));d.push(b);e.push(c);d.sort(function(h,l){return h-l});
        e.sort(function(h,l){return h-l});
        return $J(d,e)};
    aK=function(a,b,c){b=b===void 0?",":b;c=c===void 0?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
    bK=function(a,b){if(!a)return-1;try{for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c}catch(d){}return-1};
    cK=function(a,b){return bK(a,b)>=0};
    $Ea=function(a,b){if(!a)return NaN;b=bK(a,b);return b>=0?a.start(b):NaN};
    dK=function(a,b){if(!a)return NaN;b=bK(a,b);return b>=0?a.end(b):NaN};
    eK=function(a){return a&&a.length?a.end(a.length-1):NaN};
    fK=function(a,b){a=dK(a,b);return a>=0?a-b:0};
    gK=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)a.end(f)<b||a.start(f)>c||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return $J(d,e)};
    hK=function(a,b,c,d){g.DE.call(this);var e=this;this.Kd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.QY={error:function(){!e.Na()&&e.isActive&&e.publish("error",e)},
        updateend:function(){!e.Na()&&e.isActive&&e.publish("updateend",e)}};
        g.EE(this.Kd,this.QY);this.rU=this.isActive};
    iK=function(a,b,c,d,e,f){g.DE.call(this);var h=this;this.Rb=a;this.wg=b;this.id=c;this.containerType=d;this.qb=e;this.Ag=f;this.QQ=this.GF=this.Kf=null;this.QI=!1;this.appendWindowStart=this.timestampOffset=0;this.lO=$J([],[]);this.bE=!1;this.FF=[];this.bC=aFa?[]:void 0;this.TH=!1;this.Id=function(m){return h.publish(m.type,h)};
        var l;if((l=this.Rb)==null?0:l.addEventListener)this.Rb.addEventListener("updateend",this.Id),this.Rb.addEventListener("error",this.Id)};
    jK=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
    kK=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1};
    lK=function(a,b,c){c=c===void 0?!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.wg=this.mediaElement.Ib());this.events=new g.IJ(this);g.M(this,this.events);this.C=new kK(this.Qa?window.URL.createObjectURL(this.Qa):this.wg.webkitMediaSourceURL,!0);a=this.Qa||this.wg;qB(this.events,a,["sourceopen","webkitsourceopen"],this.nca);qB(this.events,a,["sourceclose","webkitsourceclose"],this.mca);this.D={updateend:this.Y5}};
    bFa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
    cFa=function(a,b){mK(a)?g.dg(function(){b(a)}):a.callback=b};
    dFa=function(a,b,c){if(nK){var d;oK(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:pK(d)},!1);g.EE(b,a.D,a);g.EE(c,a.D,a)}a.j=b;a.B=c;g.M(a,b);g.M(a,c)};
    eFa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.qb;c=c.qb;var f;a.Z=(f=a.Qa)==null?void 0:f.addSourceBuffer(e);var h;a.Y=d.split(";")[0]==="fakesb"?void 0:(h=a.Qa)==null?void 0:h.addSourceBuffer(d);a.wg&&(a.wg.webkitSourceAddId("0",e),a.wg.webkitSourceAddId("1",d));f=new iK(a.Z,a.wg,"0",NJ(e),c,!1);d=new iK(a.Y,a.wg,"1",NJ(d),b,!0);dFa(a,f,d)};
    qK=function(a){return!!a.j||!!a.B};
    mK=function(a){try{return rK(a)==="open"}catch(b){return!1}};
    rK=function(a){if(a.Qa)return a.Qa.readyState;switch(a.wg.webkitSourceState){case a.wg.SOURCE_OPEN:return"open";case a.wg.SOURCE_ENDED:return"ended";default:return"closed"}};
    fFa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
    gFa=function(a){mK(a)&&(a.Qa?a.Qa.endOfStream():a.wg.webkitSourceEndOfStream(a.wg.EOS_NO_ERROR))};
    hFa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Kd:a.j,f=a.B.isView()?a.B.Kd:a.B,h=new lK(a.mediaElement,a.Qa,!0);h.C=a.C;dFa(h,new hK(e,b,c,d),new hK(f,b,c,d));mK(a)||a.j.Iq(a.j.Lc());return h};
    iFa=function(a){var b;(b=a.j)==null||b.Fz();var c;(c=a.B)==null||c.Fz();a.K=!1};
    sK=function(){var a=this;this.HS=this.US=qaa;this.promise=new g.fg(function(b,c){a.US=b;a.HS=c})};
    tK=function(){g.I.call(this);this.iK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Ed;this.ea=null;g.M(this,this.D)};
    jFa=function(a){a=a.pA();return a.length<1?NaN:a.end(a.length-1)};
    kFa=function(a){!a.B&&bFa()&&(a.C?a.C.then(function(){return kFa(a)}):a.Ff()||(a.B=a.Gr()))};
    lFa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
    oK=function(a,b,c){var d;((d=a.ea)==null?0:d.wc())&&a.ea.ma("rms",b,c===void 0?!1:c)};
    mFa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.yA(function(){mFa(a,a.getCurrentTime(),c+1)},500))};
    nFa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
    uK=function(a){return fK(a.Dh(),a.getCurrentTime())};
    oFa=function(a,b){if(a.Uk()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.pA(),a.length||!c)?cK(a,b):c};
    qFa=function(a){a.Ff()&&(pFa&&a.ea&&a.ea.tv("rs_s"),vC&&a.getCurrentTime()>0&&a.seekTo(0),a.RL(),a.load(),nFa(a,null));delete a.C};
    rFa=function(a){switch(a.eh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.wf())==null?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
    g.vK=function(a,b,c){this.Og=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64};
    wK=function(a,b){return sFa(a,b.getCurrentTime(),(0,g.fC)(),uK(b))};
    xK=function(a,b,c,d){if(!(b===a.state&&c===a.Og&&d===a.seekSource||b!==void 0&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.vK(b,c,e?d?d:a.seekSource:null)}return a};
    yK=function(a,b,c){return xK(a,a.state|b,null,c===void 0?null:c)};
    zK=function(a,b){return xK(a,a.state&~b,null,null)};
    AK=function(a,b,c,d){return xK(a,(a.state|b)&~c,null,d===void 0?null:d)};
    g.vF=function(a,b){return!!(a.state&b)};
    g.tFa=function(a,b){return b.state===a.state&&b.Og===a.Og};
    uFa=function(a){return a.isPlaying()&&!g.vF(a,16)&&!g.vF(a,32)};
    BK=function(a){return g.vF(a,128)?-1:g.vF(a,2)?0:g.vF(a,2048)?3:g.vF(a,64)?-1:g.vF(a,1)&&!g.vF(a,32)?3:g.vF(a,8)?1:g.vF(a,4)?2:-1};
    DK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w){g.I.call(this);var A=this;this.Vo=a;this.slot=b;this.layout=c;this.Oa=d;this.xb=e;this.Ra=f;this.Ha=h;this.Ac=l;this.Lb=m;this.Aq=n;this.position=q;this.G=r;this.Aa=t;this.Tr=u;this.Rg=w;this.jh=!0;this.D=!1;this.lc="not_rendering";this.j=!1;this.B=new BEa;a=cI(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(c.Fb,this.Oa,a,c.layoutId);var C;a=((C=CK(this))==null?void 0:C.progressCommands)||[];this.C=new TDa(m,a,c.layoutId,function(){return A.jA()})};
    EK=function(a){return{layoutId:a.Nw(),Om:a.Tr,df:a.Ra.get(),Pm:a.gf()}};
    vFa=function(a,b){return b.layoutId!==a.layout.layoutId?(a.Vo.nf(a.slot,b,new $H("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
    wFa=function(a){a.lc="rendering_start_requested";a.Aq(-1)};
    CK=function(a){return cI(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
    xFa=function(a){tF("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)};
    yFa=function(a){a.gf()&&tF("Unexpected ad player in SSAP",a.slot,a.layout)};
    FK=function(a,b){switch(b){case "normal":a.Xb("complete");break;case "skipped":a.Xb("skip");break;case "abandoned":fJ(a.bb,"impression")&&a.Xb("abandon")}};
    GK=function(a,b){a.D||(b=new g.uF(b.state,new g.vK),a.D=!0);return b};
    HK=function(a,b){sJ(b)?a.Aq(1):g.xF(b,4)&&!g.xF(b,2)&&a.I2();wF(b,4)<0&&!(wF(b,2)<0)&&a.J2()};
    zFa=function(a){a.position===0&&(a.Ac.get(),a=cI(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:IK(a)},EG("ad_bl"),g.FG(a))};
    JK=function(a,b){zDa(a.bb,b,!a.j)};
    BFa=function(a){var b;return(((b=CK(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.V(c==null?void 0:c.command,AFa)})!==-1};
    KK=function(a,b){var c=cI(a.Ba,"metadata_type_eligible_for_ssap");return c===void 0?(tF("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.gf(c)};
    CFa=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:return tF("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Ne(a,"unexpected transition reason")}};
    LK=function(a,b,c){HG(a,c)||IG(a,b,c);HG(a,"video_to_ad")||IG(a,b,"video_to_ad");HG(a,"ad_to_video")||IG(a,b,"ad_to_video");HG(a,"ad_to_ad")||IG(a,b,"ad_to_ad")};
    MK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A){DK.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,w,A);var C=this;this.kd=m;this.jo=q;this.pK=!0;this.TQ=this.hj=0;this.Oz=Pd(function(){GEa(EK(C));C.Vo.uc(C.slot,C.layout)});
        this.At=Pd(function(){IEa(EK(C));C.lc!=="rendering_stop_requested"&&C.jo(C);C.EO()});
        this.We=new g.ng(200);this.We.listen("tick",function(){C.Tc()});
        g.M(this,this.We)};
    EFa=function(a){a.TQ=Date.now();DFa(a,a.hj);a.We.start()};
    FFa=function(a){a.hj=a.jA();a.AC(a.hj/1E3,!0);DFa(a,a.hj)};
    DFa=function(a,b){b={current:b/1E3,duration:a.jA()/1E3};a.kd.get().Tu("onAdPlaybackProgress",b)};
    GFa=function(a){MK.call(this,a.Vo,a.slot,a.Of,a.Oa,a.xb,a.Ra,a.Ha,a.Ac,a.kd,a.Lb,a.Aq,a.jo,a.Lq,a.Ly,a.Aa,a.Tr,a.Rg)};
    NK=function(a){MK.call(this,a.Vo,a.slot,a.Of,a.Oa,a.xb,a.Ra,a.Ha,a.Ac,a.kd,a.Lb,a.Aq,a.jo,a.Lq,a.Ly,a.Aa,a.Tr,a.Rg)};
    OK=function(){NK.apply(this,arguments)};
    HFa=function(a){return KK(a.slot,a.Aa.get())?PK(a.Aa.get())?new OK(a):new NK(a):new GFa(a)};
    SK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L,N){DK.call(this,a,b,c,d,e,l,m,p,r,u,w,A,C,E,H,N);var Q=this;this.hf=f;this.fd=h;this.Oc=n;this.kd=q;this.Xf=t;this.jo=w;this.context=L;this.adCpn="";this.JW=0;this.UY=!1;this.Oz=Pd(function(){GEa(EK(Q));Q.Vo.uc(Q.slot,Q.layout)});
        this.At=Pd(function(){IEa(EK(Q));Q.lc!=="rendering_stop_requested"&&Q.jo(Q);Q.EO()});
        this.gf()||(this.JK=new g.Av(function(){Q.qB("load_timeout",new $H("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=QK(this.Aa.get()),E=RK(E.get()),a&&E&&(this.jB=new g.Av(function(){var da=cI(c.Ba,"metadata_type_preload_player_vars");
            da&&Q.fd.get().J.preloadVideoByPlayerVars(da,2,300)})))};
    JFa=function(a,b){var c=cI(b.Ba,"metadata_type_ad_video_id"),d=cI(b.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Xf.get().J.U().La.add(c,{MI:d});(b=cI(b.Ba,"metadata_type_sodar_extension_data"))&&RCa(a.hf.get(),b);IFa(a.Ha.get(),!1)};
    KFa=function(a){IFa(a.Ha.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ha.get().nC(!1)};
    LFa=function(a){return PK(a.context.Aa.get())?new TK(a):new UK(a)};
    UK=function(a){SK.call(this,a.callback,a.slot,a.Of,a.Oa,a.xb,a.hf,a.fd,a.Ra,a.Ha,a.Oc,a.Ac,a.kd,a.Lb,a.Xf,a.Aq,a.jo,a.Lq,a.Ly,a.Aa,a.Tr,a.context,a.Rg)};
    TK=function(){UK.apply(this,arguments)};
    MFa=function(a){return HFa(Object.assign({},a,{Vo:a.callback,Aq:function(){}}))};
    NFa=function(a){return new SK(a.callback,a.slot,a.Of,a.Oa,a.xb,a.hf,a.fd,a.Ra,a.Ha,a.Oc,a.Ac,a.kd,a.Lb,a.Xf,function(b){a.kd.get().Tu("onAdIntroStateChange",b)},a.jo,a.Lq,a.Ly,a.Aa,a.Tr,a.context,a.Rg)};
    OFa=function(a){function b(c){a.kd.get().IG(c)}
        return KK(a.slot,a.Aa.get())?LFa(Object.assign({},a,{Aq:b})):new SK(a.callback,a.slot,a.Of,a.Oa,a.xb,a.hf,a.fd,a.Ra,a.Ha,a.Oc,a.Ac,a.kd,a.Lb,a.Xf,b,a.jo,a.Lq,a.Ly,a.Aa,a.Tr,a.context,a.Rg)};
    PFa=function(a){for(var b=a.Of,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.v(cJ()),e=d.next();!e.done;e=d.next())c.push(e.value);if(jJ(b,{Nd:c,Fe:["LAYOUT_TYPE_MEDIA_BREAK"]}))return MFa(a);b=a.Of;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.v(cJ());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(jJ(b,{Nd:c,Fe:["LAYOUT_TYPE_MEDIA"]}))return XH(a.Of.Ba,"metadata_type_ad_intro")?NFa(a):OFa(a)};
    RFa=function(a){var b=cI(a.Ba,"metadata_type_ad_placement_config").kind,c=cI(a.Ba,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:QFa(c),adBreakType:IK(b)}};
    IK=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"}};
    QFa=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"}};
    TFa=function(a){try{return PK(a.context.Aa.get())?new SFa(a):new VK(a.Ok,a.slot,a.layout,a.Ld,a.Me,a.Ra,a.zc,a.fd,a.Yb,a.Ha,a.j2)}catch(b){}};
    VK=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.Ok=a;this.slot=b;this.layout=c;this.Ld=d;this.Me=e;this.Ra=f;this.zc=h;this.fd=l;this.Yb=m;this.Ha=n;this.jh=!0;this.j=void 0;this.B=!1;a=PFa(p);if(!a)throw Error("Invalid params for sublayout");this.Xc=a};
    SFa=function(a){VK.call(this,a.Ok,a.slot,a.layout,a.Ld,a.Me,a.Ra,a.zc,a.fd,a.Yb,a.Ha,a.j2)};
    UFa=function(){this.j=1;this.B=new BEa};
    WK=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.zc=c;this.fd=d;this.Ha=e;this.Ac=f;this.Kq=h;this.slot=l;this.layout=m;this.Ld=n;this.Jh=p;this.Yb=q;this.Aa=r;this.jh=!0;this.ex=!1;this.tf=[];this.jw=-1;this.zQ=this.gQ=!1;this.Bw=new UFa};
    VFa=function(a){var b;return(b=a.layout.Hy)!=null?b:cI(a.layout.Ba,"metadata_type_sub_layouts")};
    XK=function(a){return{df:a.Ra.get(),Om:!1,Pm:a.gf()}};
    WFa=function(a,b,c){if(a.Vh()===a.tf.length-1){var d,e;tF("Unexpected skip requested during the last sublayout",(d=a.mf())==null?void 0:d.Wb(),(e=a.mf())==null?void 0:e.Xa(),{requestingSlot:b,requestingLayout:c})}};
    XFa=function(a,b,c){return c.layoutId!==YK(a,b,c)?(tF("onSkipRequested for a PlayerBytes layout that is not currently active",a.Wb(),a.Xa()),!1):!0};
    YFa=function(a){a.Vh()===a.tf.length-1&&tF("Unexpected skip with target requested during the last sublayout")};
    ZFa=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==YK(a,b,c)?(tF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.Wb(),a.Xa(),{requestingSlot:b,requestingLayout:c}),!1):!0};
    $Fa=function(a,b,c,d){var e=cI(b.Xa().Ba,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e<a.tf.length){a:{for(var f=e;f<a.tf.length;){if(e===cI(a.tf[f].Xa().Ba,"metadata_type_ad_pod_skip_index")){a=f;break a}f++}a=void 0}if(a===void 0)tF("Skip-to-index was requested but target index was not found",b.Wb(),b.Xa(),{requestingSlot:c,requestingLayout:d});else return a}else tF("Invalid ad pod skip target index",b.Wb(),b.Xa(),{requestingSlot:c,requestingLayout:d})};
    YK=function(a,b,c){var d=cI(a.Xa().Ba,"metadata_type_linked_in_player_layout_id");return d?d:(tF("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Wb(),a.Xa(),{requestingSlot:b,requestingLayout:c}),null)};
    bGa=function(a,b,c,d){ZK(a,b,c,"skipped",function(){aGa(a,d)})};
    ZK=function(a,b,c,d,e){if(!a.zQ){var f=a.mf();if(f){f.Xa().layoutId!==c.layoutId&&tF("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Xa().layoutId});a.zQ=!0;f.md(f.Xa(),d);f=Object.assign({},XK(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.Pm){var m={};xJ(f.df,"wrsx",(m.xc=h,m.ler=l,m.ctp=wJ(h),m))}a.FO(b,c,d);a.zQ=!1;a.pQ?(a.pQ(),a.gf()||cGa(a.Ac.get())):e()}else tF("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
        b,c)}};
    aGa=function(a,b){a.Vh()===a.tf.length-1?(a.jw++,$K(a.Jh,a.layout,"normal"),a.gf()||cGa(a.Ac.get())):dGa(a,b)};
    dGa=function(a,b){if(a.Vh()===-1&&(a.callback.uc(a.slot,a.layout),b>0)){tF("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.jw=b;b=a.mf();if(a.Vh()>0&&!a.gf()){var c=a.Ac.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});GG("ad_to_ad",d)}a.GT(b)};
    eGa=function(a){WK.call(this,a.Ok,a.Ra,a.zc,a.fd,a.Ha,a.Ac,a.Kq,a.slot,a.layout,a.Ld,a.Jh,a.Yb,a.Aa)};
    aL=function(a){WK.call(this,a.Ok,a.Ra,a.zc,a.fd,a.Ha,a.Ac,a.Kq,a.slot,a.layout,a.Ld,a.Jh,a.Yb,a.Aa)};
    fGa=function(a,b,c){ZK(a,a.slot,b,c,function(){var d=a.nX;d?(a.nX=void 0,d(b)):tF("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
    gGa=function(){aL.apply(this,arguments);this.Ci=void 0};
    hGa=function(a,b,c){b.fA().currentState<2&&(c=CFa(c),b.md(b.Xa(),c));c=b.fA().j;a.FO(a.slot,b.Xa(),c)};
    iGa=function(a,b){a.Bw.j===2&&b!==a.gg()&&tF("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})};
    jGa=function(a,b){var c=a.mf();c?(c.md(c.Xa(),b),b=a.Vh()+1,b>=0&&b<a.tf.length?(b=a.tf[b].Xa().layoutId,a.zc.get().finishSegmentByCpn(c.Xa().layoutId,b)):b===a.tf.length?$K(a.Jh,a.layout,"normal"):tF("unexpected index",a.slot,a.layout,{index:b})):tF("exitActiveLayoutAndPlayNext: no active adapter",a.slot,a.layout)};
    kGa=function(a,b){tF(b+": undefined adapter",a.slot,a.layout)};
    lGa=function(a){return KK(a.slot,a.Aa.get())?PK(a.Aa.get())?new gGa(a):new aL(a):new eGa(a)};
    mGa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.fd=b;this.Ha=c;this.Ac=d;this.Xc=e;this.Yb=f;this.Aa=h;this.jh=!0;this.ex=!1};
    nGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L,N){function Q(){var ha=PFa(Object.assign({},qa,{callback:{uc:a.uc.bind(a),yc:a.yc.bind(a),wy:function(){},
            nf:a.nf.bind(a)},slot:c,Of:d,jo:function(){$K(h,d,"normal")},
        Lq:0,Ly:1,Tr:!0}));return ha?new mGa(a,p,r,u,ha,e,E):ha}
        function da(){var ha=Object.assign({},qa,{callback:{uc:function(){},
                yc:function(){},
                wy:function(){return void $K(h,d,"normal")},
                nf:function(){}},
            slot:c,Of:d,jo:function(){},
            Lq:0,Ly:1,Tr:!0});return TFa({Ok:a,slot:c,layout:d,Ld:f,Me:h,Ra:q,zc:H,fd:p,Yb:e,Ha:r,j2:ha,context:L})}
        function na(){var ha,ta=(ha=d.Hy)!=null?ha:cI(d.Ba,"metadata_type_sub_layouts");ha=lGa({Ok:a,Ra:q,zc:H,fd:p,Ha:r,Ac:u,Kq:b,slot:c,layout:d,Ld:f,Jh:h,Yb:e,Aa:E});for(var P=[],ua={Zw:0};ua.Zw<ta.length;ua={Zw:ua.Zw},ua.Zw++){var y=PFa(Object.assign({},qa,{callback:{uc:ha.h0.bind(ha),yc:ha.k0.bind(ha),wy:ha.wy.bind(ha),nf:ha.j0.bind(ha)},slot:c,Of:ta[ua.Zw],jo:function(Z){return function(cb){cb.md(ta[Z.Zw],"normal")}}(ua),
            Lq:ua.Zw,Ly:ta.length,Tr:!1}));if(!y)return;P.push(y)}ha.tf=P;return ha}
        var qa={Oa:l,xb:m,hf:n,fd:p,Ra:q,Ha:r,Oc:t,Ac:u,kd:w,Lb:A,Xf:C,Aa:E,context:L,Rg:N};l=jJ(d,{Nd:["metadata_type_sub_layouts"],Fe:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||d.Hy!==void 0&&d.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";m=KK(c,E.get())&&jJ(d,{Nd:[],Fe:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});n=jJ(d,{Nd:[],Fe:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(l)return na();if(m)return da();if(n)return Q()};
    bL=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.zc=e;this.Bf=f;this.Ha=h;this.bb=l;this.Oa=m;this.D=n;this.driftRecoveryMs=cI(this.layout.Ba,"metadata_type_drift_recovery_ms")||null};
    pGa=function(a){var b=cI(a.layout.Ba,"metadata_type_layout_enter_ms"),c=cI(a.layout.Ba,"metadata_type_layout_exit_ms");a=a.Bf.get();b=oGa(a.C,b,c);return Math.min(c,b!==null?b:Infinity)};
    qGa=function(a,b){var c;cL(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(c=a.Ra.get().Ew)==null?void 0:c.clientPlaybackNonce,adClientData:a.layout.ac.adClientDataEntry},b)})};
    rGa=function(a,b,c,d,e,f,h,l,m,n,p){bL.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.v(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,XH(b.Xa().Ba,"metadata_type_survey_overlay")&&(this.B=b.Xa().layoutId)};
    tGa=function(a,b){var c=sGa(a,b);c||tF("Expected subLRA found by layout ID",a.slot,a.layout,{layoutId:b});a.j={pm:c};c?c.startRendering(c.Xa()):b===a.B&&tF("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
    sGa=function(a,b){return b==null?null:a.C.find(function(c){return c.Xa().layoutId===b})||null};
    uGa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=XH(b.Ba,"metadata_type_survey_overlay"),r,t=((r=cI(a.Ba,"metadata_type_fulfilled_layout"))==null?void 0:cI(r.Ba,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.mF(c,t,2,f,d,e,a.slotId),dL(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.SD(c,t,2,f,d,e,a.slotId);dL(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return tF("Unexpected failure to add to playback timeline",
        a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&tF("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):tF("Invalid timeline playback ID");d+f>e&&h.MH(p,e-d);return p};
    vGa=function(a,b){var c=cI(b.Ba,"metadata_type_sodar_extension_data");if(c)try{RCa(0,c)}catch(d){tF("Unexpected error when loading Sodar",a,b,{error:d})}};
    xGa=function(a,b,c,d,e,f){wGa(a,b,new g.uF(c,new g.vK),d,e,!1,f)};
    wGa=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;sJ(c)&&tJ(e,0,null)&&(!fJ(a,"impression")&&h&&h(),a.Xb("impression"));fJ(a,"impression")&&(g.xF(c,4)&&!g.xF(c,2)&&a.Ph("pause"),wF(c,4)<0&&!(wF(c,2)<0)&&a.Ph("resume"),g.xF(c,16)&&e>=.5&&a.Ph("seek"),f&&g.xF(c,2)&&yGa(a,c.state,b,d,e))};
    yGa=function(a,b,c,d,e,f,h){if(fJ(a,"impression")){var l=Math.abs(d-e)<=1;zGa(a,b,l?d:e,c,d,f,h&&l);l&&a.Xb("complete")}};
    zGa=function(a,b,c,d,e,f,h){eJ(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.vF(b,16))||(b==null?0:g.vF(b,32))||(tJ(c,e*.25,d)&&(f&&!fJ(a,"first_quartile")&&f("first"),a.Xb("first_quartile")),tJ(c,e*.5,d)&&(f&&!fJ(a,"midpoint")&&f("second"),a.Xb("midpoint")),tJ(c,e*.75,d)&&(f&&!fJ(a,"third_quartile")&&f("third"),a.Xb("third_quartile")))};
    AGa=function(a,b){fJ(a,"impression")&&a.Ph(b?"fullscreen":"end_fullscreen")};
    BGa=function(a){fJ(a,"impression")&&a.Ph("clickthrough")};
    CGa=function(a){a.Ph("active_view_measurable")};
    DGa=function(a){fJ(a,"impression")&&!fJ(a,"seek")&&a.Ph("active_view_fully_viewable_audible_half_duration")};
    EGa=function(a){fJ(a,"impression")&&!fJ(a,"seek")&&a.Ph("active_view_viewable")};
    FGa=function(a){fJ(a,"impression")&&!fJ(a,"seek")&&a.Ph("audio_audible")};
    GGa=function(a){fJ(a,"impression")&&!fJ(a,"seek")&&a.Ph("audio_measurable")};
    HGa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.zc=d;this.bb=e;this.Ha=f;this.Ls=h;this.xb=l;this.hf=m;this.Aa=n;this.Oa=p;this.Ra=q;this.pK=!0;this.od=this.lc=null;this.adCpn=void 0};
    IGa=function(a,b,c){var d;dL(a.Oa.get(),"ads_qua","cpn."+cI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((d=a.Ra.get().ge(2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
    JGa=function(a,b){var c,d;dL(a.Oa.get(),"ads_imp","cpn."+cI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((c=a.Ra.get().ge(2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.V((d=cI(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,eL))};
    KGa=function(a){return{enterMs:cI(a.Ba,"metadata_type_layout_enter_ms"),exitMs:cI(a.Ba,"metadata_type_layout_exit_ms")}};
    LGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){bL.call(this,a,b,c,d,e,h,l,m,n,q);this.Ls=f;this.hf=p;this.xb=r;this.Aa=t;this.od=this.lc=null};
    MGa=function(a,b){var c;dL(a.Oa.get(),"ads_imp","acpn."+((c=a.Ra.get().ge(2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)};
    NGa=function(a,b,c){var d;dL(a.Oa.get(),"ads_qua","cpn."+cI(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((d=a.Ra.get().ge(2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
    OGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L){this.Yb=a;this.Ld=b;this.Jh=c;this.Ra=d;this.zc=e;this.Ha=f;this.Oa=h;this.Ls=l;this.Bf=m;this.xb=n;this.hf=p;this.fd=q;this.Oc=r;this.Ac=t;this.kd=u;this.Lb=w;this.Xf=A;this.Aa=C;this.j=E;this.context=H;this.Rg=L};
    fL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C){this.Yb=a;this.Ld=b;this.Jh=c;this.Oa=d;this.xb=e;this.hf=f;this.fd=h;this.Ra=l;this.Ha=m;this.Oc=n;this.Ac=p;this.kd=q;this.Lb=r;this.Xf=t;this.Aa=u;this.zc=w;this.context=A;this.Rg=C};
    PGa=function(a,b,c,d){CE.call(this,"survey-interstitial",a,b,c,d)};
    gL=function(a,b,c,d,e){VI.call(this,c,a,b,d);this.Oa=e;a=cI(b.Ba,"metadata_type_ad_placement_config");this.bb=new bJ(b.Fb,e,a,b.layoutId)};
    hL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
    RGa=function(a,b,c){c=c===void 0?QGa:c;c.width<QGa.width&&(c=QGa);if(a.width<c.width||a.height<c.height)return{OM:3,PH:501,errorMessage:"ad("+hL(c)+") larger than container("+hL(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{OM:3,PH:501,errorMessage:"ad("+hL(c)+") to container("+hL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{OM:3,PH:501,errorMessage:"ad("+hL(c)+") covers container("+hL(a)+") center."}};
    SGa=function(a,b){var c=cI(a.Ba,"metadata_type_ad_placement_config");return new bJ(a.Fb,b,c,a.layoutId)};
    iL=function(a){return cI(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
    TGa=function(a,b,c,d){CE.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
    jL=function(a,b,c,d,e,f,h,l,m,n,p,q){VI.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.bb=SGa(b,c)};
    UGa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];cJ().forEach(function(b){a.push(b)});
        return{Nd:a,Fe:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
    kL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){VI.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.bb=SGa(b,c)};
    VGa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.v(cJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Nd:a,Fe:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
    lL=function(a){this.Ha=a;this.j=!1};
    WGa=function(a,b,c){CE.call(this,"survey",a,{},b,c)};
    XGa=function(a,b,c,d,e,f,h){VI.call(this,c,a,b,d);this.D=e;this.Ha=f;this.Aa=h};
    YGa=function(a,b,c,d,e,f,h,l,m,n){this.Ec=a;this.Ha=b;this.Oa=c;this.D=d;this.xb=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n};
    ZGa=function(a,b,c,d,e,f,h,l,m,n){this.Ec=a;this.Ha=b;this.Oa=c;this.D=d;this.xb=e;this.B=f;this.C=h;this.Lb=l;this.Aa=m;this.j=n};
    mL=function(a,b,c,d,e,f,h,l,m,n){nJ.call(this,a,b,c,d,e,f,h,m);this.Cn=l;this.Ra=n};
    $Ga=function(){var a=sEa();a.Nd.push("metadata_type_ad_info_ad_metadata");return a};
    aHa=function(a,b,c,d,e,f,h){this.Ec=a;this.Ha=b;this.Oa=c;this.B=d;this.Cn=e;this.j=f;this.Ra=h};
    bHa=function(a,b,c,d,e,f,h,l){this.Ec=a;this.Ha=b;this.Oa=c;this.B=d;this.Cn=e;this.j=f;this.Aa=h;this.Ra=l};
    nL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
    oL=function(a,b){this.adPodIndex=a;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
        var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
    pL=function(a,b,c){this.yv=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
    qL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
    rL=function(a,b,c,d){this.yv=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
    cHa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
    sL=function(a,b,c){this.triggeringLayoutId=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
    tL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
    uL=function(a,b,c,d){this.triggeringLayoutId=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=d||a(this.triggerType)};
    dHa=function(a){switch(a){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new aI("Invalid layout exit reason: "+
        a)}};
    vL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
    eHa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
    fHa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
    gHa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
    hHa=function(a,b,c,d,e){this.yv=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
    wL=function(a,b,c,d,e){this.yv=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
    iHa=function(a,b,c){this.yv=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
    xL=function(a,b,c,d,e){this.j=b;this.slotType=c;this.layoutType=d;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=e||a(this.triggerType)};
    jHa=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
    yL=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
    zL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
    TCa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)};
    kHa=function(a,b){this.ping=a;this.index=b};
    lHa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
    mHa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
    nHa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
    oHa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
    AL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
    BL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
    CL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
    DL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
    EL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
    FL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
    GL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
    HL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
    IL=function(a,b,c,d){this.durationMs=b;this.triggeringLayoutId=c;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=d||a(this.triggerType)};
    JL=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
    KL=function(a){return(a==null?void 0:a.layoutId)!=null&&(a==null?void 0:a.layoutType)!=null};
    sHa=function(a){if(!KL(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,LL)||g.V(a,ML)||g.V(a,NL)||g.V(a,pHa)||g.V(a,qHa)||g.V(a,rHa)?!0:!1};
    tHa=function(a){return(a==null?void 0:a.durationMs)!=null&&(a==null?void 0:a.durationMs)>0};
    uHa=function(a){return!!(a.a$&&a.slot&&a.layout)};
    vHa=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)};
    wHa=function(a){if(!KL(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,qJ)||g.V(a,pJ)||g.V(a,wEa)?!0:!1};
    OL=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0};
    TL=function(a){if(!KL(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.V(a,xHa);return b?yHa(b):(b=g.V(a,PL))?OL(b):(b=g.V(a,QL))?b.playerVars!==void 0:(b=g.V(a,qJ))?b.durationMilliseconds!==void 0:g.V(a,RL)||g.V(a,SL)?!0:!1};
    yHa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.V(b,zHa)});
        return a.length>0&&a.every(TL)};
    DHa=function(a){if(!KL(a.adLayoutMetadata))return!1;if(g.V(a.renderingContent,AHa))return!0;a=g.V(a.renderingContent,UL);return g.V(a==null?void 0:a.sidePanel,BHa)||g.V(a==null?void 0:a.sidePanel,CHa)?!0:!1};
    IHa=function(a){var b=a.adSlotMetadata;if((b==null?void 0:b.slotId)===void 0||(b==null?void 0:b.slotType)===void 0||!(EHa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.V(a,zHa))?TL(c):(c=g.V(a,VL))?DHa(c):(c=g.V(a,FHa))?wHa(c):(c=g.V(a,GHa))?sHa(c):(a=g.V(a,HHa))?KL(a.adLayoutMetadata)?g.V(a.renderingContent,LL)?!0:!1:!1:!1};
    EHa=function(a){var b;a=g.V((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,VL);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"};
    KHa=function(a,b){var c;if((c=a.questions)==null||!c.length||!a.playbackCommands||(b===void 0||!b)&&a.questions.length!==1)return!1;a=g.v(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.V(b,WL))==null?void 0:c.surveyAdQuestionCommon)||((d=g.V(b,XL))==null?void 0:d.surveyAdQuestionCommon);if(!JHa(e))return!1}return!0};
    LHa=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var c,d=((b=g.V(a.questions[0],WL))==null?void 0:b.surveyAdQuestionCommon)||((c=g.V(a.questions[0],XL))==null?void 0:c.surveyAdQuestionCommon);b=JHa(d)}else b=!1;else b=!1;return b};
    JHa=function(a){if(!a)return!1;a=g.V(a.instreamAdPlayerOverlay,MHa);var b=g.V(a==null?void 0:a.skipOrPreviewRenderer,eL),c=g.V(a==null?void 0:a.adInfoRenderer,YL);return(g.V(a==null?void 0:a.skipOrPreviewRenderer,ZL)||b)&&c?!0:!1};
    NHa=function(a){return a.linearAds!=null&&KL(a.adLayoutMetadata)};
    OHa=function(a){return a.linearAd!=null&&a.adVideoStart!=null};
    PHa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.V(a.ctaButton,g.$L)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.V(a.backgroundImage,aM)&&((b=g.V(a.backgroundImage,aM))==null?0:b.landscape)?!0:!1};
    bM=function(a,b,c,d,e,f,h){g.I.call(this);this.Aa=a;this.j=b;this.C=d;this.Ra=e;this.D=f;this.B=h};
    SHa=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(f){return g.V(f,cM)});
        c.yC?cI(b.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?SI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Aa.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.lw.filter(function(f){var h;
            return((h=f.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}),d.length!==0?QHa(a.B,d,e,b.slotId,c.ssdaiAdsConfig):SI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):SI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),RHa(a.D,b)):QHa(a.B,c.lw,e,b.slotId,c.ssdaiAdsConfig)};
    UHa=function(a,b,c,d,e,f){var h=a.Ra.get().ge(1);SI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return THa(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Jp,h.daiEnabled,h,f)},b)};
    XHa=function(a,b,c,d,e,f,h){b=VHa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof aI?b:WHa(a,d,e,b,c);return a instanceof aI?a:[a]};
    YHa=function(a,b,c,d,e){var f=TI(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new NH({getAdBreakUrl:d.getAdBreakUrl,ES:0,DS:0}),new dCa(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new FL(a.j,f),slotFulfillmentTriggers:[new cHa(a.j)],slotExpirationTriggers:[new zL(a.j,e),new CL(a.j,f)],Ya:"core",Ba:new bI(d),adSlotLoggingData:c}:new aI("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new aI("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
        return a instanceof aI?a:[a]};
    ZHa=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0};
    dM=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new pL(ZH,b,a.id):new aI("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new vL(ZH,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new aI("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;((e=a.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&&
    ((f=a.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(b=dHa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof aI?b:new uL(ZH,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new aI("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new yL(ZH,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new aI("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
        a.onNewPlaybackAfterContentVideoIdTrigger?new zL(ZH,b,a.id):new aI("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new AL(ZH,a.skipRequestedTrigger.triggeringLayoutId,a.id):new aI("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new BL(ZH,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new aI("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
        b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new CL(ZH,a.slotIdExitedTrigger.triggeringSlotId,a.id):new aI("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new HL(ZH,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new aI("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new gHa(a.id):new aI("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
        b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new qL(ZH,a.closeRequestedTrigger.triggeringLayoutId,a.id):new aI("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new FL(ZH,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new aI("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number((t=a.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var u;h=Number((u=
        a.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(u=h,u===-1&&(u=c),c=d>u?new aI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===c&&d-500<=u):new Vv(d,u),a=c instanceof aI?c:new wL(ZH,b,c,!1,a.id)):a=new aI("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new rL(ZH,b,!1,a.id):new aI("Not able to create ContentVideoIdEndedTrigger");
    else{if(a.layoutIdEnteredTrigger){var w;b=(w=a.layoutIdEnteredTrigger)!=null&&w.triggeringLayoutId?new tL(ZH,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new aI("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=(A=a.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new IL(ZH,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new aI("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var C;
        b=(C=a.onDifferentLayoutIdEnteredTrigger)!=null&&C.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new xL(ZH,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new aI("Not able to create CloseRequestedTrigger")}else b=new aI("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};
    aIa=function(a,b,c,d,e,f,h,l){return b===null?new aI("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[$Ha(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new bI([new fH(d),new jH(e)]);n=GI(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Fb:new Map,
        layoutExitNormalTriggers:[new zL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:q,ac:m(r),adLayoutLoggingData:p}})]};
    bIa=function(a,b,c,d,e,f,h,l){return b===null?new aI("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[$Ha(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new bI([new gH(d),new jH(e)]);n=GI(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
        Fb:new Map,layoutExitNormalTriggers:[new zL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:q,ac:m(r),adLayoutLoggingData:p}})]};
    fIa=function(a,b,c,d,e,f){if(!f)for(b=g.v(b),f=b.next();!f.done;f=b.next())f=f.value,eM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return cIa(p)});
        b=[];f=g.v(a);for(var h=f.next(),l={};!h.done;l={xw:void 0},h=f.next()){l.xw=h.value;h=g.v(l.xw.RN);for(var m=h.next(),n={};!m.done;n={Dn:void 0},m=h.next())n.Dn=m.value,m=function(p,q){return function(r){return p.Dn.NO(r,q.xw.instreamVideoAdRenderer.elementId,p.Dn.QN)}}(n,l),n.Dn.isContentVideoCompanion?b.push(dIa(c,d,e,l.xw.instreamVideoAdRenderer.elementId,n.Dn.associatedCompositePlayerBytesLayoutId,n.Dn.adSlotLoggingData,m)):a.length>1?b.push(eIa(c,d,e,l.xw.instreamVideoAdRenderer.elementId,n.Dn.adSlotLoggingData,
            function(p,q){return function(r){return p.Dn.NO(r,q.xw.instreamVideoAdRenderer.elementId,p.Dn.QN,p.Dn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(eIa(c,d,e,l.xw.instreamVideoAdRenderer.elementId,n.Dn.adSlotLoggingData,m))}return b};
    eM=function(a,b,c){if(b=gIa(b)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=hIa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.oF=c)}else tF("InstreamVideoAdRenderer without externalVideoId")}};
    gIa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.V(a.sandwichedLinearAdRenderer.linearAd,PL);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.v(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.V(c,PL)&&b.push(g.V(c,PL));return b}return null};
    cIa=function(a){if(a.instreamVideoAdRenderer===void 0)return tF("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.v(a.RN),c=b.next();!c.done;c=b.next()){c=c.value;if(c.NO===void 0)return!1;if(c.QN===void 0)return tF("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.oF===void 0||c.uI===void 0||a.oF!==c.uI&&c.uI!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return tF("InstreamVideoAdRenderer has no elementId",
        void 0,void 0,{kind:a.oF,"matching APSR kind":c.uI}),!1}return!0};
    hIa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,oF:void 0,adVideoId:b,RN:[]});return a.get(b)};
    fM=function(a,b,c,d,e,f,h,l,m){e?hIa(a,e).RN.push({Pob:b,uI:c,isContentVideoCompanion:d,QN:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,NO:m}):tF("Companion AdPlacementSupportedRenderer without adVideoId")};
    iIa=function(a){var b,c=(b=cI(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=cI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=cI(a.Ba,"metadata_type_content_cpn"),f=cI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=cI(a.Ba,"metadata_type_player_underlay_renderer"),l=cI(a.Ba,"metadata_type_ad_placement_config"),m=cI(a.Ba,"metadata_type_video_length_seconds");var n=XH(a.Ba,"metadata_type_layout_enter_ms")&&XH(a.Ba,
        "metadata_type_layout_exit_ms")?(cI(a.Ba,"metadata_type_layout_exit_ms")-cI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Nq:d,contentCpn:e,tS:c,SN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,IK:n,inPlayerLayoutId:cI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:cI(a.Ba,"metadata_type_linked_in_player_slot_id")}};
    lIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=TI(d,"SLOT_TYPE_PLAYER_BYTES");a=jIa(e,a,h,c,d,m,n);if(a instanceof aI)return a;var w;n=(w=cI(a.Ba,"metadata_type_fulfilled_layout"))==null?void 0:w.layoutId;if(!n)return new aI("Invalid adNotify layout");b=kIa(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof aI?b:[a].concat(g.ra(b))};
    kIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=mIa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof aI)return c;a=nIa(b,a,h,e,c);return a instanceof aI?a:[].concat(g.ra(a.qg),[a.Yx])};
    pIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=mIa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof aI)return b;a=oIa(a,c,f,h,d,l.dc,b);return a instanceof aI?a:a.qg.concat(a.Yx)};
    mIa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=gM(d,c,n);return r instanceof $H?new aI(r):n.J.U().experiments.fb("html5_refactor_in_player_slot_generation")?function(t){var u=new oL(0,[r.Bp]);t=qIa(b,r.layoutId,r.Yo,c,hM(r.playerVars,r.UB,f,m,u),r.Bp,e,u,h(t),l.get(r.Yo.externalVideoId),q);u=[];if(r.Yo.playerOverlay.instreamAdPlayerOverlayRenderer){var w=iIa(t);if(!w)return tF("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,qg:[]};
        u=[rIa(a,w.contentCpn,w.Nq,function(C){return iM(b,C.slotId,"core",w,gI(p,C))},w.inPlayerSlotId)].concat(g.ra(u));
        if(w.instreamAdPlayerUnderlayRenderer&&sIa(n)){var A=w.instreamAdPlayerUnderlayRenderer;u=[tIa(a,w.contentCpn,w.Nq,function(C){return uIa(b,C.slotId,A,w.adPlacementConfig,w.Nq,gI(p,C))})].concat(g.ra(u))}}return{layout:t,
        qg:u}}:function(t){var u=new oL(0,[r.Bp]);
        return{layout:qIa(b,r.layoutId,r.Yo,c,hM(r.playerVars,r.UB,f,m,u),r.Bp,e,u,h(t),l.get(r.Yo.externalVideoId),q),qg:[]}}};
    gM=function(a,b,c){if(!a.playerVars)return new $H("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((d=a.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((e=a.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new $H("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=oA(a.playerVars);e=Number(d.length_seconds);
        isNaN(e)&&(e=0,tF("Expected valid length seconds in player vars but got NaN"));if(c.gf(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new $H("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Yo:a,playerVars:d,UB:a.playerVars,Bp:e}};
    hM=function(a,b,c,d,e){a.iv_load_policy=d;b=oA(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){tF(f)}c.bj&&(a.ctrl=c.bj);c.Kj&&(a.ytr=c.Kj);c.Aw&&(a.ytrcc=c.Aw);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.un&&(a.vss_credentials_token_type=c.un),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));e.j>=2&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a};
    vIa=function(a){var b=new Map;a=g.v(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b};
    wIa=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
    AIa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.v(a),t=r.next();!t.done;t=r.next()){t=t.value;var u;if(u=!EHa(t)){var w=void 0;u=(t==null?void 0:(w=t.adSlotMetadata)==null?void 0:w.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(u){w=wIa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.gf(w),C=xIa(t,n,d,c.Jp,A);if(C instanceof aI)return C;var E=void 0;u={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(E=t.adSlotMetadata.slotPhysicalPosition)!=null?
            E:1,Ya:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers,slotExpirationTriggers:C.slotExpirationTriggers};if(C=g.V(t.fulfillmentContent.fulfilledLayout,zHa)){if(!TL(C))return new aI("Invalid PlayerBytesAdLayoutRenderer");A=yIa(u,t.adSlotMetadata.triggerEvent,C,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof aI)return A;C=[];wIa(t)&&C.push(new WH({ou:wIa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.dc&&C.push(new TH({}));C.push(new VH(w));t=Object.assign({},
        u,{Ba:new bI(C),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.ra(A.qg));q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,VL),C=A=void 0,((A=w)==null?void 0:(C=A.adLayoutMetadata)==null?void 0:C.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE")if(w){if(!DHa(w))return new aI("Invalid PlayerUnderlayAdLayoutRenderer");A=w;E=d;var H=c.Jp,L=f;C=u;w=t.adSlotMetadata.triggerEvent;if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var N=
        g.V(A.renderingContent,UL);if(N)if(N=g.V(N.sidePanel,CHa)){var Q={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Ya:"core"};E=jM(A,E,H);w=E instanceof aI?E:Object.assign({},Q,{renderingContent:A.renderingContent,Fb:new Map([["impression",N.impressionPings||[]],["resume",N.resumePings||[]]])},E,{ac:gI(L,C)(Q),Ba:new bI([new jH(kM(w))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else w=new aI("DismissablePanelTextPortraitImageRenderer is missing");else w=
        new aI("SqueezebackPlayerSidePanelRenderer is missing")}else A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.V(A.renderingContent,AHa)?(N={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Ya:"core"},E=jM(A,E,H),w=E instanceof aI?E:Object.assign({},N,{renderingContent:A.renderingContent,Fb:new Map},E,{ac:gI(L,C)(N),Ba:new bI([new jH(kM(w))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):w=new aI("CounterfactualRenderer is missing"):w=new aI("LayoutType ["+
        A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(w instanceof aI)return w;t=Object.assign({},u,{Ba:new bI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,GHa)){if(!sHa(w))return new aI("Invalid AboveFeedAdLayoutRenderer");w=zIa(w,d,c.Jp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof aI)return w;t=Object.assign({},u,{Ba:new bI([]),fulfilledLayout:w,
        adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,HHa)){if(!KL(w.adLayoutMetadata)||!g.V(w.renderingContent,LL))return new aI("Invalid BelowPlayerAdLayoutRenderer");w=zIa(w,d,c.Jp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof aI)return w;t=Object.assign({},u,{Ba:new bI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new aI("Unable to retrieve a client slot ["+
        u.slotType+"] from a given AdSlotRenderer")}}return q};
    zIa=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Ya:"core"};b=jM(a,b,c);if(b instanceof aI)return b;c=[];c.push(new jH(kM(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new vH(h));return Object.assign({},l,{renderingContent:a.renderingContent,Fb:new Map([["impression",BIa(a)]])},b,{ac:gI(d,e)(l),Ba:new bI(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})};
    yIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){var w=jM(c,f,e.Jp);if(w instanceof aI)return w;if(g.V(c.renderingContent,PL)){m=CIa([c],e,m);if(m instanceof aI)return m;if(m.length!==1)return new aI("Only expected one media layout.");a=DIa(a,b,c,w,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Jp,q);return a instanceof aI?a:{layout:a.layout,qg:a.qf?[a.qf]:[]}}var A=g.V(c.renderingContent,xHa);if(A){if(!KL(c.adLayoutMetadata))return new aI("Invalid ad layout metadata");if(!yHa(A))return new aI("Invalid sequential layout");
        A=A.sequentialLayouts.map(function(C){return C.playerBytesAdLayoutRenderer});
        a=EIa(a,b,c.adLayoutMetadata,w,A,d,f,e,m,h,l,n,p,q,u,r,t);return a instanceof aI?a:{layout:a.G7,qg:a.qg}}return new aI("Not able to convert a sequential layout")};
    EIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A){var C=new nH({current:null}),E=CIa(e,l,m);if(E instanceof aI)return E;m=[];for(var H=[],L=void 0,N=0;N<e.length;N++){var Q=e[N];if(g.V(Q.renderingContent,PL)){L=DIa(a,b,Q,FIa,E[N],QK(r)&&RK(r)?E[N+1]:void 0,"adapter",f,h,n,p,q,w,A,u,l.Jp,t,C);if(L instanceof aI)return L;m.push(L.layout);L.qf&&H.push(L.qf);L=E[N]}else if(g.V(Q.renderingContent,QL)){var da=a,na=p;if(TL(Q)){var qa=g.V(Q.renderingContent,QL);if(qa&&qa.playerVars!==void 0){var ha={layoutId:Q.adLayoutMetadata.layoutId,
        layoutType:Q.adLayoutMetadata.layoutType,Ya:"adapter"};qa=oA(qa.playerVars);qa.autoplay="1";Q=Object.assign({},ha,FIa,{renderingContent:Q.renderingContent,Ba:new bI([new KH({}),new jH({kind:"AD_PLACEMENT_KIND_START"}),new zH({current:null}),new DH(qa)]),Fb:new Map,ac:gI(na,da)(ha),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}else Q=new aI("Invalid ad intro renderer")}else Q=new aI("Invalid PlayerBytesAdLayoutRenderer");if(Q instanceof aI)return Q;m.push(Q)}else if(g.V(Q.renderingContent,
        qJ))if(A){Q=GIa(a,Q,p,kM(b),L);if(Q instanceof aI)return Q;m.push(Q);Q=HIa(w,Q,h,l.Jp,p,t,u,C);if(Q instanceof aI)return Q;if(Q)H.push(Q);else return new aI("Not able to retrieve InPlayer slot for endcap")}else{a:{da=Q.adLayoutMetadata.layoutId;na=g.v(f);for(ha=na.next();!ha.done;ha=na.next()){ha=ha.value;var ta=qa=void 0,P=((qa=ha.renderer)==null?void 0:(ta=qa.linearAdSequenceRenderer)==null?void 0:ta.linearAds)||[];qa=g.v(P);for(ta=qa.next();!ta.done;ta=qa.next())if((ta=g.V(ta.value,qJ))&&ta.inPlayerSlotId!==
        void 0&&ta.inPlayerLayoutId!==void 0&&ta.associatedPlayerBytesLayoutId!==void 0&&ta.associatedPlayerBytesLayoutId===da){da={mJ:ta,adPlacementConfig:ha.config.adPlacementConfig};break a}}da=new aI("Not able to find associated InPlayer slot for endcap")}if(da instanceof aI)return da;Q=GIa(a,Q,p,da.adPlacementConfig,L);if(Q instanceof aI)return Q;m.push(Q);Q=IIa(Q.layoutId,t,h,da,C,p);if(Q instanceof aI)return Q;H.push(Q)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Ya:"core"};return{G7:Object.assign({},
            b,d,{Hy:m,Fb:new Map,Ba:new bI([C]),ac:gI(p,a)(b)}),qg:H}};
    DIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C){if(!TL(c))return new aI("Invalid PlayerBytesAdLayoutRenderer");var E=g.V(c.renderingContent,PL);(E==null?0:E.pings)?E=aJ(E.pings):(E=g.V(c.renderingContent,qJ),E=(E==null?0:E.skipPings)?new Map([["skip",E.skipPings]]):new Map);if(E instanceof aI)return E;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Ya:h};a:{var H=c.adLayoutMetadata.layoutId,L=g.V(c.renderingContent,PL);if(L&&OL(L)){var N=[];if(t)N.push(new jH(kM(b)));
    else{b:{l=g.v(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var Q=gIa(b.renderer)||[],da=g.v(Q);for(Q=da.next();!Q.done;Q=da.next())if(Q=Q.value,Q.associatedPlayerBytesLayoutId===H){Q.associatedPlayerBytesLayoutId?(l=Q.playerOverlay,da=l!==void 0&&l.playerOverlayLayoutRenderer!==void 0&&l.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&l.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,l=l!==void 0&&l.instreamAdPlayerOverlayRenderer!==void 0&&l.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==
        void 0&&l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||da):l=!1;b=l?{instreamVideoAdRenderer:Q,adPlacementConfig:b.config.adPlacementConfig}:new aI("Invalid InPlayer shim");break b}}b=new aI("Not able to find associated InPlayer slot")}if(b instanceof aI){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;Q=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var na;da=(na=l==null?void 0:l.inPlayerSlotId)!=null?na:Q==null?void 0:Q.inPlayerSlotId;
        var qa;na=(qa=l==null?void 0:l.inPlayerLayoutId)!=null?qa:Q==null?void 0:Q.inPlayerLayoutId;if(da===void 0){f=new aI("InPlayer shim slot id is undefined");break a}if(na===void 0){f=new aI("InPlayer shim layout id is undefined");break a}N.push(new wH(na),new yH(da),new IH(e.mw.adPodIndex),new jH(b.adPlacementConfig));l&&N.push(new qH(l));Q&&N.push(new rH(Q))}N.push(new kH(e.mw),new oH(L.externalVideoId),new pH(m),new SH({impressionCommands:L.impressionCommands,abandonCommands:L.onAbandonCommands,completeCommands:L.completeCommands,
        progressCommands:L.adVideoProgressCommands}),new DH(e.VD),new zH({current:null}),new CH(e.Sca.Bp),new UH($I(L.pings)),new lH(e.mw.adPodIndex));(e=JIa(H,r))&&N.push(new tH(e));f&&N.push(new EH(f.VD));L.adNextParams&&N.push(new hH(L.adNextParams));L.clickthroughEndpoint&&N.push(new iH(L.clickthroughEndpoint));L.legacyInfoCardVastExtension&&N.push(new RH(L.legacyInfoCardVastExtension));L.sodarExtensionData&&N.push(new FH(L.sodarExtensionData));C&&L.adPodSkipTarget&&L.adPodSkipTarget>0&&(N.push(C),N.push(new mH(L.adPodSkipTarget)));
        (f=n.get(L.externalVideoId))&&N.push(new OH(f));f=N}else f=new aI("Invalid vod media renderer")}if(f instanceof aI)return f;a=Object.assign({},h,d,{Fb:E,renderingContent:c.renderingContent,Ba:new bI(f),ac:gI(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.V(c.renderingContent,PL);if(!c||!OL(c))return new aI("Invalid meida renderer");q=hIa(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.oF="AD_PLACEMENT_KIND_START";return t?(m=HIa(r,a,m,w,p,A,u,C),m instanceof aI?m:JIa(a.layoutId,
        r)&&m?{layout:Object.assign({},a,{Ba:new bI(f.concat(new QBa(m)))})}:{layout:a,qf:m}):{layout:a}};
    GIa=function(a,b,c,d,e){if(!TL(b))return new aI("Invalid PlayerBytesAdLayoutRenderer");var f=g.V(b.renderingContent,qJ);if(!f||f.durationMilliseconds===void 0)return new aI("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Ya:"adapter"};d=[new QH(f.durationMilliseconds),new SH({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new jH(d),
        new xH("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new lH(e.mw.adPodIndex-1));d.push(new IH(e.mw.adPodIndex));var l;d.push(new mH((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,FIa,{renderingContent:b.renderingContent,Ba:new bI(d),Fb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,ac:gI(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
    HIa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
        if(a.length!==0){if(a.length!==1)return new aI("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=xIa(a,f,c,d,h);if(h instanceof aI)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,Ya:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.V(a.fulfillmentContent.fulfilledLayout,
            FHa);if(!m||!wHa(m))return new aI("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ya:"core"};c=jM(m,c,d);if(c instanceof aI)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.ra(KIa(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new jH(kM(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new aI("Not able to parse an SDF InPlayer layout");
            e=Object.assign({},h,c,{renderingContent:m.renderingContent,Fb:new Map,ac:gI(e,f)(h),Ba:new bI(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ba:new bI([])})}};
    KIa=function(a,b){var c=[];c.push(new jH(kM(a)));c.push(new vH(b.layoutId));(a=cI(b.Ba,"metadata_type_player_bytes_callback_ref"))&&c.push(new zH(a));(a=cI(b.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new nH(a));(a=cI(b.Ba,"metadata_type_remote_slots_data"))&&c.push(new OH(a));(a=cI(b.Ba,"metadata_type_ad_next_params"))&&c.push(new hH(a));(a=cI(b.Ba,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new iH(a));(a=cI(b.Ba,"metadata_type_ad_pod_info"))&&c.push(new kH(a));(b=
        cI(b.Ba,"metadata_type_ad_video_id"))&&c.push(new oH(b));return c};
    IIa=function(a,b,c,d,e,f){function h(n){return lM(b,n)}
        var l=d.mJ.inPlayerSlotId,m={layoutId:d.mJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ya:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:new tL(h,a),slotFulfillmentTriggers:[new BL(h,l)],slotExpirationTriggers:[new CL(h,l),new zL(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new vL(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Fb:new Map,Ba:new bI([new uH(d.mJ),new jH(d.adPlacementConfig),
                e]),ac:gI(f,c)(m),adLayoutLoggingData:d.mJ.adLayoutLoggingData});return Object.assign({},c,{Ba:new bI([new MH(a)])})};
    JIa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.V(c.fulfillmentContent.fulfilledLayout,VL);if(d&&(d=g.V(d.renderingContent,UL))&&d.associatedPlayerBytesLayoutId===a)return c}};
    xIa=function(a,b,c,d,e){var f=LIa(dM(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof aI)return f;for(var h=[],l=g.v(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=dM(m.value,c,d);if(m instanceof aI)return m;h.push(m)}h=MIa(h,e,a,b);b=[];a=g.v(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=dM(e.value,c,d);if(e instanceof aI)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
    LIa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof pL?new nL(function(e){return lM(d,e)},c.adSlotMetadata.slotId):a};
    MIa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof BL?new FL(function(f){return lM(d,f)},c.adSlotMetadata.slotId):e}):a};
    jM=function(a,b,c){for(var d=[],e=g.v(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=dM(f.value,b,c);if(f instanceof aI)return f;d.push(f)}e=[];f=g.v(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=dM(h.value,b,c);if(h instanceof aI)return h;e.push(h)}f=[];h=g.v(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=dM(l.value,b,c);if(l instanceof aI)return l;f.push(l)}h=[];a=g.v(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
        a.next()){l=dM(l.value,b,c);if(l instanceof aI)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Wc:[]}};
    CIa=function(a,b,c){for(var d=[],e=g.v(a),f=e.next();!f.done;f=e.next())if(f=g.V(f.value.renderingContent,PL)){if(!OL(f))return new aI("Invalid vod media renderer");d.push(NIa(f))}e=d.map(function(q){return q.Bp});
        f=[];for(var h=0,l=0;l<a.length;l++){var m=g.V(a[l].renderingContent,PL);if(m){var n=new oL(h,e),p=hM(d[h].playerVars,d[h].UB,b,c,n);f[l]={mw:n,adPodSkipTarget:m.adPodSkipTarget,Sca:d[h],VD:p};h++}}return f};
    NIa=function(a){var b=oA(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,tF("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,UB:a.playerVars,Bp:c}};
    kM=function(a){switch(a){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
    BIa=function(a){if(g.V(a.renderingContent,NL)){var b;return((b=g.V(a.renderingContent,NL))==null?void 0:b.impressionPings)||[]}if(g.V(a.renderingContent,LL)){var c;return((c=g.V(a.renderingContent,LL))==null?void 0:c.impressionPings)||[]}if(g.V(a.renderingContent,ML)){var d;return((d=g.V(a.renderingContent,ML))==null?void 0:d.impressionPings)||[]}return[]};
    OIa=function(a){var b=0;a=g.v(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.V(c,WL)||g.V(c,XL)){var d=void 0;b+=((d=c.surveyAdQuestionCommon)==null?void 0:d.durationMilliseconds)||0}return b};
    PIa=function(a){var b,c,d,e,f=((c=g.V((b=a.questions)==null?void 0:b[0],WL))==null?void 0:c.surveyAdQuestionCommon)||((e=g.V((d=a.questions)==null?void 0:d[0],XL))==null?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.ra(((h=a.playbackCommands)==null?void 0:h.instreamAdCompleteCommands)||[]),g.ra((f==null?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,u,w,A,C,E,H,L,N,Q,da,na,qa,ha;return{impressionCommands:(l=a.playbackCommands)==null?void 0:l.impressionCommands,errorCommands:(m=a.playbackCommands)==
        null?void 0:m.errorCommands,muteCommands:(n=a.playbackCommands)==null?void 0:n.muteCommands,unmuteCommands:(p=a.playbackCommands)==null?void 0:p.unmuteCommands,pauseCommands:(q=a.playbackCommands)==null?void 0:q.pauseCommands,rewindCommands:(r=a.playbackCommands)==null?void 0:r.rewindCommands,resumeCommands:(t=a.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(u=a.playbackCommands)==null?void 0:u.skipCommands,progressCommands:(w=a.playbackCommands)==null?void 0:w.progressCommands,fpb:(A=
            a.playbackCommands)==null?void 0:A.clickthroughCommands,fullscreenCommands:(C=a.playbackCommands)==null?void 0:C.fullscreenCommands,activeViewViewableCommands:(E=a.playbackCommands)==null?void 0:E.activeViewViewableCommands,activeViewMeasurableCommands:(H=a.playbackCommands)==null?void 0:H.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(L=a.playbackCommands)==null?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(N=a.playbackCommands)==
        null?void 0:(Q=N.activeViewTracking)==null?void 0:Q.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(da=a.playbackCommands)==null?void 0:(na=da.activeViewTracking)==null?void 0:na.activeViewAudioMeasurableCommands,endFullscreenCommands:(qa=a.playbackCommands)==null?void 0:qa.endFullscreenCommands,abandonCommands:(ha=a.playbackCommands)==null?void 0:ha.abandonCommands,completeCommands:b}};
    SIa=function(a,b,c,d,e,f,h){return function(l,m){return QIa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return RIa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new UBa(c),d],c.adLayoutLoggingData)})}};
    VIa=function(a,b,c,d,e,f,h){if(!TIa(a))return new aI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[UIa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=GI(e.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ya:"core"},q=new vL(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[q],
        layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new VBa(l)]),ac:m(p)}})]};
    TIa=function(a){a=g.V(a==null?void 0:a.additionalPlayerOverlay,WIa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&b.length!==0?!0:!1};
    YIa=function(a,b,c,d,e){var f;if((f=a.playerOverlay)==null||!f.instreamSurveyAdRenderer)return function(){return[]};
        if(!LHa(a))return function(){return new aI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
        var h=a.playerOverlay.instreamSurveyAdRenderer,l=OIa(h);return l<=0?function(){return new aI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=XIa(m,c,d,function(q){var r=q.slotId;
            q=n(q);var t=PIa(h);r=GI(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var u={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},w=new vL(e.j,d),A=new AL(e.j,r),C=new HL(e.j,r),E=new lHa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Fb:new Map,layoutExitNormalTriggers:[w,E],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],Wc:[],Ya:"core",Ba:new bI([new TBa(h),new jH(b),new PH(l/1E3),new SH(t)]),ac:q(u),adLayoutLoggingData:h.adLayoutLoggingData}});
            m=VIa(a,c,p.slotId,d,e,m,n);return m instanceof aI?m:[p].concat(g.ra(m))}};
    fJa=function(a,b,c,d,e,f,h){h=h===void 0?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(w){w=ZIa(w.slotId,c,b,e(w),d,f,h);m=w.uea;return w.U7};
    else if(c.renderer.instreamVideoAdRenderer)n=function(w){var A=w.slotId;w=e(w);var C=h,E=c.config.adPlacementConfig,H=$Ia(E),L=H.QX,N=H.TX;H=c.renderer.instreamVideoAdRenderer;var Q;if(H==null?0:(Q=H.playerOverlay)==null?0:Q.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var da=aJa(H,C);Q=Math.min(L+da.videoLengthSeconds*1E3,N);C=new oL(0,[da.videoLengthSeconds]);N=da.videoLengthSeconds;var na=da.playerVars,qa=da.instreamAdPlayerOverlayRenderer,ha=
        da.playerOverlayLayoutRenderer,ta=da.adVideoId,P=bJa(c),ua=da.Fb;da=da.Zs;var y=H==null?void 0:H.adLayoutLoggingData;H=H==null?void 0:H.sodarExtensionData;A=GI(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var Z={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Fb:ua,layoutExitNormalTriggers:[new eHa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new pH(d),new CH(N),new DH(na),new GH(L),
            new HH(Q),qa&&new qH(qa),ha&&new rH(ha),new jH(E),new oH(ta),new kH(C),new LH(P),H&&new FH(H),new zH({current:null}),new JH({}),new UH(da)].filter(cJa)),ac:w(Z),adLayoutLoggingData:y}};
    else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=dJa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.v(m),r=q.next();!r.done;r=q.next()){var t=r.value,u=t(a,e);if(u instanceof aI)return u;l.push.apply(l,g.ra(u))}}catch(w){return new aI(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:eJa(c)})}return l};
    eJa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return a!=null&&a.length?a.filter(function(b){var c,d;return((c=g.V(b,PL))==null?void 0:(d=c.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer)!=null}).length:0};
    ZIa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=$Ia(l),n=m.QX,p=m.TX;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(m==null||!m.length)throw new TypeError("Expected linear ads");var q=[],r={f2:n,Lq:0,qea:q};m=m.map(function(u){return gJa(a,u,r,c,d,l,e,p,h)}).map(function(u,w){w=new oL(w,q);
        return u(w)});
        var t=m.map(function(u){return u.V7});
        return{U7:hJa(c,a,n,t,l,bJa(b),d,p,f),uea:m.map(function(u){return u.tea})}};
    gJa=function(a,b,c,d,e,f,h,l,m){var n=aJa(g.V(b,PL),m),p=c.f2,q=c.Lq,r=Math.min(p+n.videoLengthSeconds*1E3,l);c.f2=r;c.Lq++;c.qea.push(n.videoLengthSeconds);var t,u,w=(t=g.V(b,PL))==null?void 0:(u=t.playerOverlay)==null?void 0:u.instreamSurveyAdRenderer;if(n.adVideoId==="nPpU29QrbiU"&&w==null)throw new TypeError("Survey slate media has no survey overlay");return function(A){var C=n.playerVars;A.j>=2&&(C.slot_pos=A.adPodIndex);C.autoplay="1";var E,H;C=n.videoLengthSeconds;var L=n.playerVars,N=n.Fb,
        Q=n.Zs,da=n.instreamAdPlayerOverlayRenderer,na=n.playerOverlayLayoutRenderer,qa=n.adVideoId,ha=(E=g.V(b,PL))==null?void 0:E.adLayoutLoggingData;E=(H=g.V(b,PL))==null?void 0:H.sodarExtensionData;H=GI(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var ta={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Fb:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"adapter",Ba:new bI([new pH(h),
            new CH(C),new DH(L),new GH(p),new HH(r),new IH(q),new zH({current:null}),da&&new qH(da),na&&new rH(na),new jH(f),new oH(qa),new kH(A),E&&new FH(E),w&&new aCa(w),new JH({}),new UH(Q)].filter(cJa)),ac:e(ta),adLayoutLoggingData:ha};C=YIa(g.V(b,PL),f,h,A.layoutId,d);return{V7:A,tea:C}}};
    aJa=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=oA(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=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay||
        {};f=f.playerOverlayLayoutRenderer===void 0?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&&d===0){var l;b=(l=iJa[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Fb:a.pings?aJ(a.pings):new Map,Zs:$I(a.pings)}};
    bJa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a};
    $Ia=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{QX:b,TX:a}};
    kJa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[jJa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=GI(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"},u=aJ(n),w=[new zL(b.j,f)],A;var C=n==null?void 0:(A=n.activeViewTracking)==null?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Fb:u,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],
        layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new jH(d),new UH($I(n)),new bCa(C),new CH(h/1E3)]),ac:p(t),adLayoutLoggingData:r}})]:new aI("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
    mJa=function(a,b,c,d,e,f,h,l){a=lJa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=GI(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Fb:q,layoutExitNormalTriggers:[new yL(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new YBa(e),new jH(c)]),ac:m(p)}});
        return a instanceof aI?a:[a]};
    oJa=function(a,b,c,d,e,f,h){return[nJa(a,f,d,function(l){var m=l.slotId;l=h(l);m=GI(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[new zL(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new qH(e),new jH(c)]),ac:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
    sJa=function(a,b,c,d,e,f,h,l){a=pJa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=GI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=qJa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,rJa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=GI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=qJa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,rJa(b,n,p))):q.imageOverlayAdContentRenderer?(q=GI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
        p),n=rJa(b,n,p),n.push(new IL(b.j,45E3,q)),n=qJa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new $H("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new $H("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
        return a instanceof aI?a:[a]};
    vJa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new aI("Expected valid duration for AdActionInterstitialRenderer."):function(p){return tJa(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 uJa(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=GI(b.B.get(),"LAYOUT_TYPE_ENDCAP",
        u);return RIa(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new uH(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
    wJa=function(a,b,c,d){if(!c.playerVars)return new aI("No playerVars available in AdIntroRenderer.");var e=oA(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=GI(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{Of:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Fb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"adapter",Ba:new bI([new KH({}),
                new jH(b),new zH({current:null}),new DH(e)]),ac:f(l)},xm:[new uL(a.j,h,["error"])],Xj:[],Mz:[],Lz:[]}}};
    yJa=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=OIa(e);if(!KHa(e,n))return new aI("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new aI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=SIa(a,b,e,f,c,d,h);return q instanceof aI?q:function(r){return xJa(b,r.slotId,c,p,e,PIa(e),h(r),q,l,m)}};
    AJa=function(a,b,c,d,e,f,h,l){function m(q){return uJa(a,q,d,n)}
        function n(q,r){var t=q.slotId;q=h(q);t=GI(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return RIa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new SBa(e),f],e.adLayoutLoggingData)}
        if(!PHa(e))return new aI("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=e.timeoutSeconds*1E3;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=zJa(b,r,c,p,t,new Map,q,m,void 0,mM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new wH(r.sL);q=new lH(l);return{Of:{layoutId:r.layoutId,layoutType:r.layoutType,Fb:r.Fb,layoutExitNormalTriggers:[],
                layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:r.Ya,Ba:new bI([].concat(g.ra(r.Iz),[t,q])),ac:r.ac,adLayoutLoggingData:r.adLayoutLoggingData},xm:[],Xj:r.layoutExitMuteTriggers,Mz:r.layoutExitUserInputSubmittedTriggers,Lz:r.Wc,qf:r.qf}}};
    CJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w){a=TI(a,"SLOT_TYPE_PLAYER_BYTES");d=jIa(b,h,d,e,a,n,p);if(d instanceof aI)return d;var A;h=(A=cI(d.Ba,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new aI("Invalid adNotify layout");b=BJa(h,b,c,e,f,m,l,n,q,r,t,u,w);return b instanceof aI?b:[d].concat(g.ra(b))};
    BJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=DJa(b,c,d,f,h,l,m,n,p,q,r);EJa(f)?(d=FJa(b,a),a=TI(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=GI(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=GJa(b,d,l),b=[].concat(g.ra(l.slotExpirationTriggers),[new qL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof aI?a:{Yx:Object.assign({},
            l,{slotExpirationTriggers:b,Ba:new bI([new MH(a.layout)]),adSlotLoggingData:e}),qg:a.qg}):e=nIa(b,a,l,e,c);return e instanceof aI?e:[].concat(g.ra(e.qg),[e.Yx])};
    KJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=DJa(a,b,c,e,f,h,m,n,p,q,r,t);EJa(e)?(e=HJa(a,c,h,l),e instanceof aI?a=e:(l=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=GI(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.ra(e.slotExpirationTriggers),[new qL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof aI?l:
        {Yx:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:IJa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:JJa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Ba:new bI([new VH(nM(c)),new MH(l.layout),new WH({ou:a.ou(c)})]),adSlotLoggingData:d},qg:l.qg})):a=oIa(a,c,h,l,d,m.dc,b);return a instanceof aI?a:a.qg.concat(a.Yx)};
    EJa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(g.V(b.value,RL))return!0;return!1};
    DJa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(QK(p)&&RK(p))a:{var u=LJa(d,c,p);if(u instanceof aI)t=u;else{for(var w=0,A=[],C=[],E=[],H=[],L=[],N=[],Q=new AH({current:null}),da=new nH({current:null}),na=!1,qa=[],ha=0,ta=[],P=0;P<d.length;P++){var ua=d[P],y=g.V(ua,PL);if(y){y=gM(y,c,p);if(y instanceof $H){t=new aI(y);break a}var Z=new oL(ha,u),cb=hM(y.playerVars,y.UB,h,n,Z);ha++;ta[P]={renderer:ua,data:y,mw:Z,VD:cb}}}ha=-1;for(u=0;u<d.length;u++)if(P=d[u],ua=g.V(P,QL)){P=wJa(b,c,ua,
        l);if(P instanceof aI){t=P;break a}P=P(r);A.push(P.Of);C=[].concat(g.ra(P.xm),g.ra(C));E=[].concat(g.ra(P.Xj),g.ra(E));P.qf&&(qa=[P.qf].concat(g.ra(qa)))}else if(g.V(P,PL))ua=ta[u],ha=ua.data,P=ua.mw,ua=ua.VD,y=ta[u+1],Z=void 0,y&&(Z=y.VD),P=MJa(b,ha.layoutId,ha.Yo,c,ua,ha.Bp,f,P,l(r),da,m.get(ha.Yo.externalVideoId),Z,q),w++,A.push(P.Of),C=[].concat(g.ra(P.xm),g.ra(C)),E=[].concat(g.ra(P.Xj),g.ra(E)),na||(N.push(da),na=!0),ha=(ha=ha.Yo.adPodSkipTarget)&&ha>0?ha:-1;else if(ua=g.V(P,qJ)){P=vJa(a,b,
        c,ua,f,w,l,da,ha);if(P instanceof aI){t=P;break a}P=P(r);A.push(P.Of);C=[].concat(g.ra(P.xm),g.ra(C));E=[].concat(g.ra(P.Xj),g.ra(E));P.qf&&(qa=[P.qf].concat(g.ra(qa)))}else if(ua=g.V(P,RL)){if(t===void 0){t=new aI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:ua});break a}P=yJa(a,b,c,f,ua,Q,l,t,w,oM(p,"supports_multi_step_on_desktop"));if(P instanceof aI){t=P;break a}P=P(r);A.push(P.Of);P.qf&&qa.push(P.qf);C=[].concat(g.ra(P.xm),g.ra(C));E=
        [].concat(g.ra(P.Xj),g.ra(E));H=[].concat(g.ra(P.Mz),g.ra(H));L=[].concat(g.ra(P.Lz),g.ra(L));N=[Q].concat(g.ra(N))}else if(P=g.V(P,SL)){P=AJa(a,b,c,f,P,Q,l,w);if(P instanceof aI){t=P;break a}P=P(r);A.push(P.Of);P.qf&&qa.push(P.qf);E=[].concat(g.ra(P.Xj),g.ra(E))}else{t=new aI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Hy:A,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:H,Wc:L,layoutExitMuteTriggers:E,Iz:N,qg:qa}}}else a:if(w=LJa(d,c,p),w instanceof aI)t=
        w;else{A=0;C=[];E=[];H=[];L=[];N=[];Q=[];da=new AH({current:null});na=new nH({current:null});qa=!1;ta=[];ha=-1;u=g.v(d);for(P=u.next();!P.done;P=u.next())if(P=P.value,g.V(P,QL)){P=wJa(b,c,g.V(P,QL),l);if(P instanceof aI){t=P;break a}P=P(r);C.push(P.Of);E=[].concat(g.ra(P.xm),g.ra(E));H=[].concat(g.ra(P.Xj),g.ra(H));P.qf&&(ta=[P.qf].concat(g.ra(ta)))}else if(g.V(P,PL)){ha=gM(g.V(P,PL),c,p);if(ha instanceof $H){t=new aI(ha);break a}P=new oL(A,w);P=MJa(b,ha.layoutId,ha.Yo,c,hM(ha.playerVars,ha.UB,h,
        n,P),ha.Bp,f,P,l(r),na,m.get(ha.Yo.externalVideoId),void 0,q);A++;C.push(P.Of);E=[].concat(g.ra(P.xm),g.ra(E));H=[].concat(g.ra(P.Xj),g.ra(H));qa||(Q.push(na),qa=!0);ha=(ha=ha.Yo.adPodSkipTarget)&&ha>0?ha:-1}else if(g.V(P,qJ)){P=vJa(a,b,c,g.V(P,qJ),f,A,l,na,ha);if(P instanceof aI){t=P;break a}P=P(r);C.push(P.Of);E=[].concat(g.ra(P.xm),g.ra(E));H=[].concat(g.ra(P.Xj),g.ra(H));P.qf&&(ta=[P.qf].concat(g.ra(ta)))}else if(g.V(P,RL)){if(t===void 0){t=new aI("Composite Survey must already have a Survey Bundle with required metadata.",
        {instreamSurveyAdRenderer:g.V(P,RL)});break a}P=yJa(a,b,c,f,g.V(P,RL),da,l,t,A,oM(p,"supports_multi_step_on_desktop"));if(P instanceof aI){t=P;break a}P=P(r);C.push(P.Of);P.qf&&ta.push(P.qf);E=[].concat(g.ra(P.xm),g.ra(E));H=[].concat(g.ra(P.Xj),g.ra(H));L=[].concat(g.ra(P.Mz),g.ra(L));N=[].concat(g.ra(P.Lz),g.ra(N));Q=[da].concat(g.ra(Q))}else if(g.V(P,SL)){P=AJa(a,b,c,f,g.V(P,SL),da,l,A);if(P instanceof aI){t=P;break a}P=P(r);C.push(P.Of);P.qf&&ta.push(P.qf);H=[].concat(g.ra(P.Xj),g.ra(H))}else{t=
        new aI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Hy:C,layoutExitSkipTriggers:E,layoutExitUserInputSubmittedTriggers:L,Wc:N,layoutExitMuteTriggers:H,Iz:Q,qg:ta}}t instanceof aI?r=t:(N=r.slotId,w=t.Hy,A=t.layoutExitSkipTriggers,C=t.layoutExitMuteTriggers,E=t.layoutExitUserInputSubmittedTriggers,H=t.Iz,r=l(r),L=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:GI(b.B.get(),L,N),Q={layoutId:N,layoutType:L,Ya:"core"},r={layout:{layoutId:N,layoutType:L,Fb:new Map,
            layoutExitNormalTriggers:[new yL(b.j,N)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:E,Wc:[],Ya:"core",Ba:new bI([new BH(w)].concat(g.ra(H))),ac:r(Q)},qg:t.qg});return r}};
    LJa=function(a,b,c){var d=[];a=g.v(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.V(e,PL)){e=gM(g.V(e,PL),b,c);if(e instanceof $H)return new aI(e);d.push(e.Bp)}return d};
    OJa=function(a,b,c,d,e,f,h,l){if(!KHa(c,l===void 0?!1:l))return new aI("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=OIa(c);if(m<=0)return new aI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new AH({current:null}),p=SIa(a,b,c,n,d,f,h);return NJa(a,d,f,m,e,function(q,r){var t=q.slotId,u=PIa(c);q=h(q);var w,A=(w=mM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?
        w:GI(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};w=p(A,r);var C=cI(w.Ba,"metadata_type_fulfilled_layout");C||tF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new jH(d),new QH(m),new SH(u),n];C&&u.push(new xH(C.layoutType));return{J$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Fb:new Map,layoutExitNormalTriggers:[new yL(b.j,A)],layoutExitSkipTriggers:[new AL(b.j,r.layoutId)],
            layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new HL(b.j,r.layoutId)],Wc:[],Ya:"core",Ba:new bI(u),ac:q(t)},V9:w}})};
    PJa=function(a){if(!OHa(a))return!1;var b=g.V(a.adVideoStart,pM);return b?g.V(a.linearAd,PL)&&uHa(b)?!0:(tF("Invalid Sandwich with notify"),!1):!1};
    QJa=function(a){if(a.linearAds==null)return!1;a=g.V(a.adStart,pM);return a?uHa(a)?!0:(tF("Invalid LASR with notify"),!1):!1};
    RJa=function(a){if(!NHa(a))return!1;a=g.V(a.adStart,pM);return a?uHa(a)?!0:(tF("Invalid LASR with notify"),!1):!1};
    qM=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Aa=d;this.Ne=e;this.C=f;this.Ha=h;this.bk=l;this.loadPolicy=m===void 0?1:m};
    THa=function(a,b,c,d,e,f,h,l,m){var n=[];if(b.length===0&&d.length===0&&c.length===0)return n;b=b.filter(vHa);var p=c.filter(IHa),q=d.filter(vHa),r=new Map,t=vIa(b),u=c.some(function(P){var ua;return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),w=c.some(function(P){var ua;
        return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=c.some(function(P){var ua;
        return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_IN_PLAYER"});
        c=c.some(function(P){var ua,y;return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(P==null?void 0:(y=P.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_ABOVE_FEED"});
        if(u||w||A||c)c=AIa(p,b,l,e,t,a.Ne.get(),a.loadPolicy,r,a.Aa.get(),a.D.get(),A),c instanceof aI?tF(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.ra(c));c=g.v(b);for(w=c.next();!w.done;w=c.next())w=w.value,A=SJa(a,r,w,e,f,h,u,l,t,m,p),A instanceof aI?tF(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.ra(A));TJa(a.Aa.get())||(f=UJa(a,q,e,l,t,r),n.push.apply(n,g.ra(f)));if(a.C===null||h&&!l.CX){var C,
            E,H;a=l.dc&&b.length===1&&((C=b[0].config)==null?void 0:(E=C.adPlacementConfig)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((H=b[0].renderer)==null?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var L,N,Q,da;tF("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(L=b[0])==null?void 0:(N=L.config)==null?void 0:(Q=N.adPlacementConfig)==null?void 0:Q.kind,renderer:(da=b[0])==null?void 0:da.renderer})}return n}C=
            d.filter(vHa);n.push.apply(n,g.ra(fIa(r,C,a.B.get(),a.C,e,u)));if(!n.length){var na,qa,ha,ta;tF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(na=b[0])==null?void 0:(qa=na.config)==null?void 0:(ha=qa.adPlacementConfig)==null?void 0:ha.kind,renderer:(ta=b[0])==null?void 0:ta.renderer})}return n};
    UJa=function(a,b,c,d,e,f){function h(r){return gI(a.Ne.get(),r)}
        var l=[];b=g.v(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&&PJa(p)?(tF("Found AdNotify with SandwichedLinearAdRenderer"),q=g.V(p.adVideoStart,pM),p=g.V(p.linearAd,PL),eM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=kIa((n=q)==null?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 aI?tF(q):l.push.apply(l,g.ra(q))):
            q&&(!q.adLayoutMetadata&&QJa(q)||q.adLayoutMetadata&&RJa(q))&&(tF("Found AdNotify with LinearAdSequenceRenderer"),eM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=BJa((n=g.V(q.adStart,pM))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,KL(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Aa.get()),p instanceof aI?tF(p):l.push.apply(l,g.ra(p)))}return l};
    SJa=function(a,b,c,d,e,f,h,l,m,n,p){function q(C){return gI(a.Ne.get(),C)}
        var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,w=c.adSlotLoggingData,A=l.CX&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return fM(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.adsEngagementPanelRenderer;C=gI(a.Ne.get(),C);return rM(N,Q,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
            new IBa(da),E,H,da.impressionPings,C,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[];
        if(r.adsEngagementPanelLayoutViewModel)return fM(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.adsEngagementPanelLayoutViewModel;C=gI(a.Ne.get(),C);return VJa(N,Q,"LAYOUT_TYPE_PANEL",new JBa(da),E,H,C,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,L)}),[];
        if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return aIa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,w,d,q);fM(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.actionCompanionAdRenderer;C=gI(a.Ne.get(),C);return rM(N,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
            new fH(da),E,H,da.impressionPings,C,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return bIa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,w,d,q);
            fM(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.topBannerImageTextIconButtonedLayoutViewModel;C=gI(a.Ne.get(),C);return VJa(N,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new gH(da),E,H,C,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)fM(b,
            c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.imageCompanionAdRenderer;
                C=gI(a.Ne.get(),C);return rM(N,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new LBa(da),E,H,da.impressionPings,C,r.imageCompanionAdRenderer.adLayoutLoggingData,L)});
        else if(r.bannerImageLayoutViewModel)fM(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.bannerImageLayoutViewModel;C=gI(a.Ne.get(),C);return VJa(N,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new MBa(da),E,H,C,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)});
        else if(r.shoppingCompanionCarouselRenderer)fM(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,E,H,L){var N=a.j.get(),Q=C.slotId,da=r.shoppingCompanionCarouselRenderer;C=gI(a.Ne.get(),C);return rM(N,Q,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new NBa(da),E,H,da.impressionPings,C,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)});
        else if(r.adBreakServiceRenderer){if(!ZHa(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return YHa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return XHa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.bk)return new aI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.dc||tF("Received non-live cue point triggered AdBreakServiceRenderer",
            void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.dc),clientPlaybackNonce:l.clientPlaybackNonce});WJa(a.bk,{adPlacementRenderer:c,contentCpn:d,Jp:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ha)return new aI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ha.get().getCurrentTimeSec(1,!1);return XJa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,w,f)}}else{if(r.clientForecastingAdRenderer)return mJa(a.B.get(),
            a.j.get(),t,w,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return sJa(a.B.get(),a.j.get(),t,w,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return oJa(a.B.get(),a.j.get(),t,w,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return fJa(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[];eM(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!NHa(r.linearAdSequenceRenderer))return new aI("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds==
            null)return new aI("Received invalid LinearAdSequenceRenderer.");if(g.V(r.linearAdSequenceRenderer.adStart,pM)){tF("Found AdNotify in LinearAdSequenceRenderer");c=g.V(r.linearAdSequenceRenderer.adStart,pM);if(!tHa(c))return new aI("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return CJa(a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),t,w,c,KL(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Aa.get())}return KJa(a.B.get(),
            a.j.get(),t,w,r.linearAdSequenceRenderer.linearAds,KL(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[];eM(b,r,u);return pIa(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 OJa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,w,d,q,oM(a.Aa.get(),"supports_multi_step_on_desktop"));
            if(r.sandwichedLinearAdRenderer!=null)return OHa(r.sandwichedLinearAdRenderer)?g.V(r.sandwichedLinearAdRenderer.adVideoStart,pM)?(tF("Found AdNotify in SandwichedLinearAdRenderer"),c=g.V(r.sandwichedLinearAdRenderer.adVideoStart,pM),tHa(c)?(f=g.V(r.sandwichedLinearAdRenderer.linearAd,PL))?lIa(c,f,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 aI("Missing IVAR from Sandwich"):new aI("Invalid AdMessageRenderer.")):KJa(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 aI("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=oM(a.Aa.get(),"enable_h5_shorts_ad_terminal_events")&&l.nk,kJa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,w,d,e,l,q)}}return[]};
    sM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.B=a;this.C=b;this.Bf=d;this.Ha=e;this.Aa=f;this.Oa=h;this.zc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Na()||c.get().removeListener(m)});
        d.get().addListener(this);this.addOnDisposeCallback(function(){d.Na()||d.get().removeListener(m)})};
    WJa=function(a,b){if(a.j)tF("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.v(a.Bf.get().zM);for(var c=b.next();!c.done;c=b.next())YJa(a,a.j,c.value)}};
    YJa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Aa.get().J.U().wc()&&dL(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Ch.toFixed(3));SI(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=tM(a.Aa.get()),n=a.Oa;if(e.Aa.get().J.U().experiments.fb("enable_smearing_expansion_dai")){var p=g.hI(e.Aa.get().J.U().experiments,
        "max_prefetch_window_sec_for_livestream_optimization");var q=g.hI(e.Aa.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Ym:ZJa(c),TB:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Ch;if(d===0)m.Nn=new Vv(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.Nn=t<=0?new Vv(q*1E3,r*1E3):new Vv(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={Ym:ZJa(c),TB:!1},r=c.startSecs+c.Ch,c.startSecs<=d?m=new Vv((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new Vv(Math.floor(d+
        Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.Nn=m;f=WHa(e,f,h,p,l,[new XBa(c)]);e.Aa.get().J.U().experiments.fb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Nn.start/1E3-d,n=c.startSecs-d,(h=h.J.Uc())!=null&&(h=h.vc(),h.qoe&&(h=h.qoe,h.provider.X.L("html5_add_dai_smearing_to_qoe")&&(l=g.uM(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0)),h.j.daism=p)))):dL(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Nn.start/1E3-
        d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
    $Ja=function(a){var b,c=(b=cI(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=cI(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=cI(a.Ba,"metadata_type_content_cpn"),f=cI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=cI(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=cI(a.Ba,"metadata_type_player_underlay_renderer"),m=cI(a.Ba,"metadata_type_ad_placement_config"),n=cI(a.Ba,"metadata_type_video_length_seconds");
        var p=XH(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?cI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):XH(a.Ba,"metadata_type_layout_enter_ms")&&XH(a.Ba,"metadata_type_layout_exit_ms")?(cI(a.Ba,"metadata_type_layout_exit_ms")-cI(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Nq:d,contentCpn:e,tS:c,SN:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,IK:p,inPlayerLayoutId:cI(a.Ba,"metadata_type_linked_in_player_layout_id"),
            inPlayerSlotId:cI(a.Ba,"metadata_type_linked_in_player_slot_id")}};
    bKa=function(a,b){return aKa(a,b)};
    cKa=function(a,b){b=aKa(a,b);if(!b)return null;var c;b.IK=(c=cI(a.Ba,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b};
    aKa=function(a,b){var c,d=(c=cI(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=oEa(a,b);return{Y6:nEa(a,b),adPlacementConfig:cI(a.Ba,"metadata_type_ad_placement_config"),b7:c,contentCpn:cI(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:cI(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:cI(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:cI(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,
        instreamAdPlayerUnderlayRenderer:void 0,IK:void 0,tS:d,Nq:a.layoutId,videoLengthSeconds:cI(a.Ba,"metadata_type_video_length_seconds")}};
    vM=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.jh=!0};
    dKa=function(a,b,c){return tIa(a.j.get(),b.contentCpn,b.Nq,function(d){return uIa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Nq,gI(a.Ne.get(),d))})};
    wM=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.Ac=l};
    xM=function(a){g.I.call(this);this.j=a};
    SI=function(a,b,c,d){a.j().Sg(b,d);c=c();a=a.j();a.Pb.pI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.v(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.ec(c.slotId))throw new aI("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(nI(e,c))throw new aI("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
        "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.oh.Lt.has(c.slotType))throw new aI("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.oh.fv.has(c.slotType))throw new aI("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");LCa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);LCa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
        c.slotFulfillmentTriggers);LCa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=vI(f,h);if(nI(f,c))throw new aI("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new GCa(c));f.j.set(h,l)}catch(na){na instanceof aI&&na.Wk?(d.Pb.im("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",na.Wk,c),tF(na,c,void 0,void 0,na.nw)):(d.Pb.im("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
        c),tF(na,c));break a}nI(d.j,c).K=!0;try{var m=d.j,n=nI(m,c),p=c.slotEntryTrigger,q=m.oh.qn.get(p.triggerType);q&&(q.Gl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.v(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,w=m.oh.qn.get(u.triggerType);w&&(w.Gl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.qa.set(u.triggerId,w))}for(var A=g.v(c.slotExpirationTriggers),C=A.next();!C.done;C=A.next()){var E=C.value,H=m.oh.qn.get(E.triggerType);H&&(H.Gl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
        E,c,null),n.Y.set(E.triggerId,H))}var L=m.oh.Lt.get(c.slotType).get().build(m.C,c);n.N=L;var N=m.oh.fv.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(na){na instanceof aI&&na.Wk?(d.Pb.im("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",na.Wk,c),tF(na,c,void 0,void 0,na.nw)):(d.Pb.im("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),tF(na,c));lI(d,c,!0);break a}d.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Tg(c);for(var Q=g.v(d.B),da=Q.next();!da.done;da=
        Q.next())da.value.Tg(c);qCa(d,c)}};
    yM=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.Na()||d.get().removeListener(f)})};
    RHa=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.v(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof wL?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):tF("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);zM(a.context.Aa.get())&&(b=d.start,d=d.end,e={},a.context.Np.zl("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
    AM=function(){g.I.apply(this,arguments);this.jh=!0;this.dj=new Map;this.j=new Map};
    eKa=function(a,b){a=g.v(a.dj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
    fKa=function(a,b){a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}tF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ec(b)),layoutId:b})};
    gKa=function(){this.j=new Map};
    hKa=function(a,b){this.callback=a;this.slot=b};
    BM=function(){};
    iKa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
    jKa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.B=!1;this.j=0};
    kKa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
    CM=function(a){this.Ha=a};
    DM=function(a){g.I.call(this);this.rN=a;this.Ub=new Map};
    lKa=function(a,b){for(var c=[],d=g.v(a.Ub.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof HL&&f.triggeringLayoutId===b&&c.push(e)}c.length?tI(a.rN(),c):tF("Survey is submitted but no registered triggers can be activated.")};
    EM=function(a,b,c){DM.call(this,a);var d=this;this.Aa=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(d)})};
    FM=function(a){g.I.call(this);this.j=a;this.jh=!0;this.Ub=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
    GM=function(a){g.I.call(this);this.j=a;this.Ub=new Map};
    HM=function(a,b){for(var c=[],d=g.v(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&tI(a.j(),c)};
    IM=function(a,b,c){g.I.call(this);var d=this;this.j=a;this.context=c;this.Ub=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(d)})};
    JM=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.jh=!0;this.Ub=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Na()||c.get().removeListener(f)})};
    mKa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ra.get().ge(1).clientPlaybackNonce!==m)throw new aI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ub.set(c.triggerId,{ZD:new JL(b,c,d,e),cJ:f});a.Oc.get().addCueRange(f,h,l,n,a);zM(a.context.Aa.get())&&(m={},a.context.Np.zl("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=e==null?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))};
    nKa=function(a,b){a=g.v(a.Ub.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;if(b===d.cJ)return c}return""};
    KM=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.Na()||b.get().removeListener(c)});
        var d;this.j=((d=b.get().Ew)==null?void 0:d.slotId)||null};
    oKa=function(a,b){var c=[];a=g.v(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
    LM=function(a){g.I.call(this);this.j=a;this.jh=!0;this.Ub=new Map};
    $K=function(a,b,c){b=b.layoutId;for(var d=[],e=g.v(a.Ub.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof yL){var h;if(h=f.trigger.layoutId===b){h=c;var l=yCa.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&tI(a.j(),d)};
    MM=function(a){g.I.call(this);this.j=a;this.jh=!0;this.Ub=new Map};
    NM=function(a){g.I.call(this);this.C=a;this.jh=!0;this.Ub=new Map;this.j=new Map;this.B=new Map};
    pKa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
    OM=function(a){g.I.call(this);this.j=a;this.Ub=new Map};
    PM=function(a,b){for(var c=[],d=g.v(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof nL&&e.trigger.slotId===b&&c.push(e);c.length>=1&&tI(a.j(),c)};
    qKa=function(a,b){var c={slotId:TI(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Ba:new bI([])},d=Object,e=d.assign;b=GI(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"surface",Ba:new bI([]),
        ac:mCa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{a$:!0,slot:c,layout:b})};
    VHa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Ym:new Vv(-0x8000000000000,-0x8000000000000),TB:d},c!=null&&(d.Nn=new Vv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Ym:new Vv(0x7ffffffffffff,0x8000000000000),TB:d},c!=null&&(d.Nn=new Vv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||tF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
        e.offsetEndMilliseconds||tF("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new aI("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={Ym:new Vv(a,e),TB:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.Nn=new Vv(a,e)}return d;
        default:return new aI("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
    ZJa=function(a){var b=a.startSecs*1E3;return new Vv(b,b+a.Ch*1E3)};
    rKa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.v(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;a=g.v(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.V(b.value,cM))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
    QM=function(a){this.Aa=a;this.B=new Map;this.j=new Map;this.C=new Map};
    TI=function(a,b){if(sKa(a.Aa.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.wD(16)};
    GI=function(a,b,c){if(sKa(a.Aa.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.wD(16)};
    lM=function(a,b){if(sKa(a.Aa.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.wD(16)};
    tKa=function(a){var b=[new vH(a.Nq),new WBa(a.tS),new jH(a.adPlacementConfig),new CH(a.videoLengthSeconds),new PH(a.IK)];a.instreamAdPlayerOverlayRenderer&&b.push(new qH(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new rH(a.playerOverlayLayoutRenderer));a.SN&&b.push(new nH(a.SN));return b};
    uKa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:GI(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?(h=c.instreamAdPlayerOverlayRenderer)==null?void 0:h.adLayoutLoggingData:(l=c.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[new vL(function(n){return lM(f,
            n)},c.Nq)],
        layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:b,Ba:d,ac:e(h),adLayoutLoggingData:m}};
    RM=function(a,b){var c=this;this.B=a;this.Aa=b;this.j=function(d){return lM(c.B.get(),d)}};
    uIa=function(a,b,c,d,e,f){c=new bI([new sH(c),new jH(d)]);b=GI(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Fb:new Map,layoutExitNormalTriggers:[new vL(function(h){return lM(a.B.get(),h)},e)],
        layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:c,ac:f(d),adLayoutLoggingData:void 0}};
    iM=function(a,b,c,d,e){var f=tKa(d);return uKa(b,c,d,new bI(f),e,a.B.get())};
    vKa=function(a,b,c,d,e){var f=tKa(d);f.push(new OBa(d.Y6));f.push(new PBa(d.b7));return uKa(b,c,d,new bI(f),e,a.B.get())};
    rM=function(a,b,c,d,e,f,h,l,m,n){b=GI(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new xL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new uL(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Fb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([d,new jH(f),new vH(e)]),ac:l(p),adLayoutLoggingData:m}};
    VJa=function(a,b,c,d,e,f,h,l,m){b=GI(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new xL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new uL(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Fb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([d,new jH(f),new vH(e)]),ac:h(n),adLayoutLoggingData:l}};
    rJa=function(a,b,c){var d=[];d.push(new jHa(a.j,c));b&&d.push(b);return d};
    qJa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Fb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new qL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new KBa(d),new jH(e)]),ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
    RIa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Fb:new Map,layoutExitNormalTriggers:[new vL(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new jH(d)].concat(g.ra(h))),ac:e(m),adLayoutLoggingData:l}};
    mM=function(a,b,c,d){if(a.Aa.get().gf(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)tF("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
    tJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=zJa(a,b,c,e,f,h,l,m,q,mM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Iz;c=new wH(a.sL);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new mH(n)),d=[]);b.push(new lH(p));return{Of:{layoutId:a.layoutId,layoutType:a.layoutType,Fb:a.Fb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:a.Ya,Ba:new bI(b),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData},
        xm:d,Xj:a.layoutExitMuteTriggers,Mz:a.layoutExitUserInputSubmittedTriggers,Lz:a.Wc,qf:a.qf}};
    xJa=function(a,b,c,d,e,f,h,l,m,n){b=zJa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,mM(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
        a=new HL(a.j,b.sL);c=new wH(b.sL);n=new lH(n);return{Of:{layoutId:b.layoutId,layoutType:b.layoutType,Fb:b.Fb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:b.Ya,Ba:new bI([].concat(g.ra(b.Iz),[c,n])),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},xm:b.layoutExitSkipTriggers,Xj:b.layoutExitMuteTriggers,Mz:[].concat(g.ra(b.layoutExitUserInputSubmittedTriggers),[a]),Lz:b.Wc,qf:b.qf}};
    zJa=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:GI(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"adapter"};l=l(b);var q=cI(l.Ba,"metadata_type_fulfilled_layout");q||tF("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new jH(c),new QH(d),new SH(e)];q&&c.push(new xH(q.layoutType));p&&c.push(new IH(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Fb:f,layoutExitNormalTriggers:[],
        layoutExitSkipTriggers:[new AL(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"adapter",Iz:c,ac:h(n),adLayoutLoggingData:m,qf:l,sL:r}};
    qIa=function(a,b,c,d,e,f,h,l,m,n,p){a=wKa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Fb:a.Fb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Wc:a.Wc,Ya:a.Ya,Ba:new bI(a.rX),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}};
    MJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=wKa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.rX;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new mH(c.adPodSkipTarget)),d=[]);e.push(new lH(l.adPodIndex));c.isCritical&&(d=[new uL(a.j,b.layoutId,["error"])].concat(g.ra(d)));return{Of:{layoutId:b.layoutId,layoutType:b.layoutType,Fb:b.Fb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:b.Ya,
            Ba:new bI(e),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},xm:d,Xj:b.layoutExitMuteTriggers,Mz:b.layoutExitUserInputSubmittedTriggers,Lz:b.Wc}};
    wKa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ya:c};e=[new jH(e),new kH(m),new oH(d.externalVideoId),new pH(l),new SH({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new DH(f),new zH({current:null}),new CH(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new qH(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new rH(h));
        q&&e.push(new EH(q));(q=d.playerUnderlay)&&e.push(new sH(q));l=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:GI(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new wH(q));e.push(new yH(l));e.push(new IH(m.adPodIndex));d.adNextParams&&e.push(new hH(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new RBa(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new iH(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new RH(d.legacyInfoCardVastExtension));
        d.sodarExtensionData&&e.push(new FH(d.sodarExtensionData));p&&e.push(new OH(p));e.push(new UH($I(d.pings)));m=aJ(d.pings);if(r){a:{r=g.v(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.V(p.fulfillmentContent.fulfilledLayout,VL))&&(f=g.V(f.renderingContent,UL))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new tH(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Fb:m,layoutExitNormalTriggers:[new yL(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
                [new AL(a.j,q)]:[],layoutExitMuteTriggers:[new AL(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:c,rX:e,ac:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
    hJa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return YH(p,[],["LAYOUT_TYPE_MEDIA"])})||tF("Unexpect subLayout type for DAI composite layout");
        b=GI(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Fb:new Map,layoutExitNormalTriggers:[new eHa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ya:"core",Ba:new bI([new GH(c),new HH(l),new BH(d),new jH(e),new LH(f),new JH({}),new cCa(m)]),ac:h(n)}};
    cJa=function(a){return a!=null};
    SM=function(a,b,c){var d=this;this.B=a;this.C=b;this.Aa=c;this.j=function(e){return lM(d.B.get(),e)}};
    XJa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new aI("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new aI("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.v(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,Number(n)>0){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={Ym:new Vv(q,q+Number(n)),TB:!1,Nn:new Vv(Math.floor(p+
            Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new eCa({breakLengthMs:Number(n)}));h&&q.push(new JH({}));l.push(WHa(a,b,e,p,f,q))}return l};
    WHa=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h=TI(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Nn&&d.Nn.start!==d.Ym.start&&l.push(new wL(a.j,c,new Vv(d.Nn.start,d.Ym.start),!1));l.push(new wL(a.j,c,new Vv(d.Ym.start,d.Ym.end),d.TB));d={getAdBreakUrl:b.getAdBreakUrl,ES:d.Ym.start,DS:d.Ym.end,cueProcessedMs:d.cueProcessedMs};b=new EL(a.j,h);f=[new NH(d)].concat(g.ra(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new zL(a.j,
            c),new CL(a.j,h),new DL(a.j,h)],Ya:"core",Ba:new bI(f),adSlotLoggingData:e}};
    yKa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())d.push(xKa(a,b,e.value));return d};
    xKa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c};
    QIa=function(a,b,c,d,e){return zKa(a,b,c,d,e)};
    uJa=function(a,b,c,d){var e=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER");return zKa(a,e,b,c,d)};
    zKa=function(a,b,c,d,e){var f=new tL(a.j,c),h=[new BL(a.j,b)];a=[new CL(a.j,b),new zL(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
    NJa=function(a,b,c,d,e,f){var h=TI(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=GI(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=TM(a,b,c,d);var n=[new BL(a.j,h)];c=[new CL(a.j,h),new zL(a.j,c),new qL(a.j,m)];if(d instanceof aI)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.J$;l=l.V9;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
        slotEntryTrigger:IJa(a,b,h,d),slotFulfillmentTriggers:JJa(a,b,h,n),slotExpirationTriggers:c,Ya:"core",Ba:new bI([new MH(f),new VH(nM(b)),new WH({ou:a.ou(b)})]),adSlotLoggingData:e},l]};
    nM=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};
    rIa=function(a,b,c,d,e){e=e?e:TI(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new tL(a.j,c);var f=[new BL(a.j,e)];a=[new zL(a.j,b),new CL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
    tIa=function(a,b,c,d){var e=TI(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new tL(a.j,c);var f=[new BL(a.j,e)];a=[new zL(a.j,b),new CL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
    jIa=function(a,b,c,d,e,f,h){var l=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=GI(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=AKa(a,d,f,h,m);if(d instanceof aI)return d;h=[new BL(a.j,l)];e=[new zL(a.j,f),new BL(a.j,e),new GL(a.j,e)];c=gI(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ya:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
        Fb:new Map,layoutExitNormalTriggers:[new mHa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new oHa(a.j,m,b.durationMs)],Wc:[new nHa(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ya:"core",Ba:new bI([new $Ba(b)]),ac:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new bI([new MH(b)])}};
    pJa=function(a,b,c,d,e,f){b=TM(a,b,c,d);if(b instanceof aI)return b;var h=b instanceof wL?new iHa(a.j,c,b.j):null;d=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new BL(a.j,d)];a=[new zL(a.j,c),new CL(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof $H?new aI(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
        Ya:"core",Ba:new bI([new MH(f)]),adSlotLoggingData:e}};
    nJa=function(a,b,c,d){var e=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new pL(a.j,b),h=[new FL(a.j,e)];a=[new zL(a.j,b),new CL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
    XIa=function(a,b,c,d){var e=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new tL(a.j,c);var f=[new BL(a.j,e)],h=[new CL(a.j,e),new zL(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new BL(a.j,e)],slotExpirationTriggers:[new zL(a.j,b),new CL(a.j,e)],Ya:"core",Ba:new bI([new MH(d(f))])}};
    UIa=function(a,b,c,d,e){var f=TI(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new sL(a.j,d,c);d=[new BL(a.j,f)];a=[new zL(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
    eIa=function(a,b,c,d,e,f){var h=TI(a.B.get(),b);return BKa(a,h,b,new tL(a.j,d),[new zL(a.j,c),new CL(a.j,h),new uL(a.j,d,["error"])],e,f)};
    dIa=function(a,b,c,d,e,f,h){var l=TI(a.B.get(),b);return BKa(a,l,b,new uL(a.j,e,["normal"]),[new zL(a.j,c),new CL(a.j,l),new uL(a.j,d,["error"])],f,h)};
    $Ha=function(a,b,c,d,e){var f=TI(a.B.get(),b);return BKa(a,f,b,new pL(a.j,c),[new zL(a.j,c),new CL(a.j,f)],d,e)};
    jJa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=TI(a.B.get(),c);b=new pL(a.j,b);var h=[new BL(a.j,f)];a=[new CL(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(e({slotId:f,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
    dJa=function(a,b,c,d){var e=TI(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new fHa(a.j),h=[new FL(a.j,e)];b=[new zL(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Aa.get();return!g.sI(a.J.U())&&a.J.U().experiments.fb("enable_pacf_slot_asde_player_byte_h5")||g.sI(a.J.U())&&a.J.U().experiments.fb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
        slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ba:new bI([new MH(d(l)),new JH({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ba:new bI([new MH(d(l)),new JH({})])}};
    FJa=function(a,b){return TJa(a.Aa.get())?new uL(a.j,b,["normal","error","skipped"]):new uL(a.j,b,["normal"])};
    nIa=function(a,b,c,d,e){b=FJa(a,b);a=GJa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Ya:a.Ya});return e instanceof aI?e:{Yx:Object.assign({},a,{Ba:new bI([new MH(e.layout)]),adSlotLoggingData:d}),qg:e.qg}};
    oIa=function(a,b,c,d,e,f,h){c=HJa(a,b,c,d);if(c instanceof aI)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya});if(h instanceof aI)return h;d=[new VH(nM(b)),new MH(h.layout),new WH({ou:a.ou(b)})];f&&d.push(new TH({}));return{Yx:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:IJa(a,
                b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:JJa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya,Ba:new bI(d),adSlotLoggingData:e},qg:h.qg}};
    IJa=function(a,b,c,d){return a.Aa.get().gf(nM(b))?new nL(a.j,c):d};
    JJa=function(a,b,c,d){return a.Aa.get().gf(nM(b))?[new FL(a.j,c)]:d};
    GJa=function(a,b,c){var d=TI(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new BL(a.j,d)];a=[new CL(a.j,d),new zL(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Ya:"core"}};
    HJa=function(a,b,c,d){b=TM(a,b,c,d);return b instanceof aI?b:GJa(a,b,c)};
    lJa=function(a,b,c,d,e,f){var h=TI(a.B.get(),"SLOT_TYPE_FORECASTING");b=TM(a,b,c,d);if(b instanceof aI)return b;d=[new BL(a.j,h)];a=[new CL(a.j,h),new zL(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ba:new bI([new MH(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
    CKa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new pL(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=VHa(b,d),a instanceof aI?a:e(a.Ym,f);case "AD_PLACEMENT_KIND_END":return new rL(a.j,c,f);default:return new aI("Cannot construct entry trigger",{kind:b.kind})}};
    AKa=function(a,b,c,d,e){return CKa(a,b,c,d,function(f,h){return new hHa(a.j,c,f,h,e)})};
    TM=function(a,b,c,d){return CKa(a,b,c,d,function(e,f){return new wL(a.j,c,e,f)})};
    BKa=function(a,b,c,d,e,f,h){a=[new FL(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Ya:"core",Ba:new bI([new MH(h({slotId:b,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
    UM=function(a,b){g.I.call(this);this.Aa=a;this.j=b;this.eventCount=0};
    DKa=function(a,b,c,d){UM.call(this,a,b);this.Aa=a;this.Ra=c;this.context=d};
    VM=function(){this.j=new Map};
    WM=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
    bN=function(a){g.I.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!EKa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);XM=new Uint8Array(256);YM=WM(256);ZM=WM(256);$M=WM(256);aN=WM(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;XM[f]=e;b=e<<1^(e>>7&&283);var h=b^e;YM[f]=b<<24|e<<16|e<<8|h;ZM[f]=h<<24|YM[f]>>>8;$M[f]=e<<24|ZM[f]>>>8;aN[f]=e<<24|$M[f]>>>8}EKa=!0}e=WM(44);for(c=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(XM[a>>16&255]^d)<<24|XM[a>>8&255]<<16|XM[a&255]<<8|XM[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
    FKa=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;h>=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;n<40;)h=YM[c>>>24]^ZM[d>>16&255]^$M[e>>8&255]^aN[f&255]^b[n++],l=YM[d>>>24]^ZM[e>>16&255]^$M[f>>8&255]^aN[c&255]^b[n++],m=YM[e>>>24]^ZM[f>>16&255]^$M[c>>8&255]^aN[d&255]^b[n++],f=YM[f>>>24]^ZM[c>>16&255]^$M[d>>8&255]^aN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=XM[c>>>24]^h>>>24;a[1]=XM[d>>16&255]^h>>16&255;a[2]=XM[e>>8&255]^
        h>>8&255;a[3]=XM[f&255]^h&255;h=b[41];a[4]=XM[d>>>24]^h>>>24;a[5]=XM[e>>16&255]^h>>16&255;a[6]=XM[f>>8&255]^h>>8&255;a[7]=XM[c&255]^h&255;h=b[42];a[8]=XM[e>>>24]^h>>>24;a[9]=XM[f>>16&255]^h>>16&255;a[10]=XM[c>>8&255]^h>>8&255;a[11]=XM[d&255]^h&255;h=b[43];a[12]=XM[f>>>24]^h>>>24;a[13]=XM[c>>16&255]^h>>16&255;a[14]=XM[d>>8&255]^h>>8&255;a[15]=XM[e&255]^h&255};
    dN=function(){if(!GKa&&!g.wC){if(cN)return cN;var a;cN=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=cN)==null?0:b.importKey)&&((c=cN)==null?0:c.sign)&&((d=cN)==null?0:d.encrypt))return cN;cN=void 0}};
    HKa=function(){this.B=this.qt=0;this.j=Array.from({length:eN.length}).fill(0)};
    IKa=function(){};
    JKa=function(){this.startTimeMs=(0,g.fC)();this.j=!1};
    KKa=function(){this.j=new IKa};
    LKa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new HKa),a.j[b].Oh(c,d))};
    MKa=function(a,b,c,d,e){var f=(0,g.fC)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.qt)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;LKa(a,l,f-d,e)}return b};
    NKa=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return MKa(a,h,c,d,e)};
        if("then"in b&&typeof b.then==="function")return b.then(f);if("andThen"in b&&typeof b.pj==="function")return b.pj(f)}return MKa(a,b,c,d,e)};
    OKa=function(){};
    fN=function(a,b){this.Md=a;this.cipher=this.Md.exports.AES128CTRCipher_create(b.byteOffset)};
    g.gN=function(a){this.D=a};
    g.hN=function(a){g.I.call(this);this.B=a};
    iN=function(a,b){this.j=new fN(a,b)};
    PKa=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;a<64;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
    QKa=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,u,w=0;w<64;)w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],u=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]=u),r=q+jN[w]+u+((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++,w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
        d[w-2],t=d[w-15],u=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]=u),r=p+jN[w]+u+((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++,w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],u=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]=u),r=n+jN[w]+u+((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++,w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],u=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]=u),r=m+jN[w]+u+((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),u=q,q=l,l=u,u=p,p=h,h=u,u=n,n=f,f=u,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};
    SKa=function(a){var b=new Uint8Array(32),c=64-a.B;a.B>55&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=a.D*8,f=1;f<9;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;c<8;c++)b[c*4]=a.j[c]>>>24,b[c*4+1]=a.j[c]>>>16&255,b[c*4+2]=a.j[c]>>>8&255,b[c*4+3]=a.j[c]&255;RKa(a);return b};
    RKa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
    TKa=function(a){this.j=a};
    UKa=function(a,b,c){a=new PKa(a.j);a.update(b);a.update(c);b=SKa(a);a.update(a.G);a.update(b);b=SKa(a);a.reset();return b};
    VKa=function(a){this.B=a};
    WKa=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))}})};
    XKa=function(a,b,c){a.C||(a.C=new TKa(a.B));return UKa(a.C,b,c)};
    YKa=function(a,b,c){var d,e;return g.G(function(f){if(f.j==1){d=dN();if(!d)return f.return(XKa(a,b,c));g.Ba(f,3);return g.z(f,WKa(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.Da(f);g.kE(e);GKa=!0;return f.return(XKa(a,b,c))})};
    kN=function(){var a=ZKa;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=Gma.apply(null,[Hma.apply(null,g.ra(b))].concat(g.ra(c)));this.store=Lma(a,void 0,b)};
    g.$Ka=function(a,b,c){for(var d=Object.assign({},a),e=g.v(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(l===void 0)delete d[f];else if(h===void 0)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.ra(h),g.ra(l)):l;else if(!Array.isArray(l)&&g.db(l)&&!Array.isArray(h)&&g.db(h))d[f]=g.$Ka(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.CB("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,lrb:h,updateValue:l}),
        g.jE(b),a}return d};
    lN=function(a){var b=this;a=a===void 0?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
    aLa=function(a,b){return a.j.length===0?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
    mN=function(a,b){b=g.v(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
    nN=function(a,b,c){return a.split(b).jn.split(c).fK};
    bLa=function(a){a.D=void 0;a.B=0;a.C=0};
    cLa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
    dLa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
    eLa=function(a,b,c){b=b===void 0?0:b;c=c===void 0?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=a.totalLength-b);a.focus(b);if(!cLa(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);bLa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
    oN=function(a,b,c){a=eLa(a,b===void 0?0:b,c===void 0?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
    pN=function(a,b,c){a=oN(a,b===void 0?0:b,c===void 0?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
    qN=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
    fLa=function(a,b){a.focus(b);return cLa(a,b,4)?dLa(a).getUint32(b-a.C):256*(256*(256*qN(a,b)+qN(a,b+1))+qN(a,b+2))+qN(a,b+3)};
    gLa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
    rN=function(a){return String.fromCharCode.apply(null,a)};
    tN=function(a){return a.length?sN?sN.decode(a):rN(a):""};
    g.vN=function(a){if(!a.length)return"";try{if(sN)return sN.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;e<1024&&b<d;){var f=a[b++];if(f<128)uN[e++]=f;else{if(f<224)f=(f&31)<<6|a[b++]&63;else if(f<240)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(e+1===1024){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;uN[e++]=55296|f>>10;f=56320|f&1023}uN[e++]=f}}f=String.fromCharCode.apply(String,uN);
        e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")};
    xN=function(a,b){var c;if((c=wN)==null?0:c.encodeInto)return b=wN.encodeInto(a,b),b.read<a.length?a.length*4:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)===55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)===56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
    hLa=function(a){if(wN)return wN.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=xN(a,b);b.length<c&&(b=new Uint8Array(c),c=xN(a,b));b.length>c&&(b=b.subarray(0,c));return b};
    yN=function(a){this.j=a;this.pos=0;this.B=-1};
    zN=function(a){var b=qN(a.j,a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=qN(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
    AN=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){c<0&&(c=zN(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:zN(a);break;case 1:a.pos+=8;break;case 2:d=zN(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
    BN=function(a,b){if(AN(a,b))return zN(a)};
    CN=function(a,b){if(AN(a,b))return!!zN(a)};
    DN=function(a,b){if(AN(a,b)){b=zN(a);var c=oN(a.j,a.pos,b);a.pos+=b;return c}};
    EN=function(a,b){if(a=DN(a,b))return g.vN(a)};
    FN=function(a,b,c){if(a=DN(a,b))return c(new yN(new lN([a])))};
    GN=function(a,b){for(var c=[];AN(a,b);)c.push(zN(a));return c.length?c:void 0};
    HN=function(a,b,c){for(var d=[],e;e=DN(a,b);)d.push(c(new yN(new lN([e]))));return d.length?d:void 0};
    IN=function(a,b){a=a instanceof Uint8Array?new lN([a]):a;return b(new yN(a))};
    iLa=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};
    jLa=function(a,b){this.Md=b;this.pos=0;this.B=[];this.j=iLa(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
    JN=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=a.j.length*2;c<b;)c*=2;a.j=iLa(c,a.Md,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
    KN=function(a,b){if(b>268435455){JN(a,4);for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(JN(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
    LN=function(a,b,c){c!==void 0&&(KN(a,b*8),KN(a,c))};
    MN=function(a,b,c){c!==void 0&&LN(a,b,c?1:0)};
    NN=function(a,b,c){c!==void 0&&(KN(a,b*8+2),b=c.length,KN(a,b),JN(a,b),a.j.set(c,a.pos),a.pos+=b)};
    ON=function(a,b,c){c!==void 0&&(kLa(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),JN(a,c.length*1.2),b=xN(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(JN(a,b),b=xN(c,a.j.subarray(a.pos))),a.pos+=b,lLa(a))};
    kLa=function(a,b,c){c=c===void 0?2:c;KN(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
    lLa=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}};
    PN=function(a,b,c,d,e){c&&(kLa(a,b,e===void 0?3:e),d(a,c),lLa(a))};
    g.QN=function(a,b,c){c=new jLa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
    g.RN=function(a){var b=new yN(new lN([Hg(decodeURIComponent(a))]));a=EN(b,2);b=BN(b,4);var c=mLa[b];if(typeof c==="undefined")throw a=new g.CB("Failed to recognize field number",{name:"EntityKeyHelperError",Dpb:b}),g.jE(a),a;return{p8:b,entityType:c,entityId:a}};
    g.SN=function(a,b){var c=new jLa;NN(c,2,hLa(a));a=nLa[b];if(typeof a==="undefined")throw b=new g.CB("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.jE(b),b;LN(c,4,a);LN(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Fg(b))};
    TN=function(a,b,c,d){if(d===void 0)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))};
    oLa=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.$Ka(f[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
    pLa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return g.jE(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.jE(new g.CB("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Zc(e.payload);
        return TN(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.RN(e).entityType;l=TN(d,m,e);break a}catch(q){if(q instanceof Error){g.jE(new g.CB("Failed to deserialize entity key",{entityKey:e,hS:q.message}));l=d;break a}throw q;}l=void 0}return l}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return g.jE(new g.CB("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Zc(e.payload);var n,p;return oLa(d,l,e.entityKey,
        e.payload[l],(n=e.fieldMask)==null?void 0:(p=n.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return d},a);
        case "REPLACE_ENTITY":var c=b.payload;return TN(a,c.entityType,c.key,c.o8);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 TN(h,e,l,f[l])},d)},a);
        case "UPDATE_ENTITY":return c=b.payload,oLa(a,c.entityType,c.key,c.o8,c.Xqb);default:return a}};
    UN=function(a,b,c){return a[b]?a[b][c]||null:null};
    rLa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;b<=0?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=b.hours===void 0?0:b.hours;c=b.minutes===void 0?0:b.minutes;a=b.seconds===void 0?0:b.seconds;d=e>0;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
        e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(VN)?e.replace(",","\u00a0"):f.includes(VN)?e.replace(",","\u202f"):h.includes(VN)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(VN)||d)&&c<10?qLa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=qLa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(VN)&&(c=".");return b.join(c)};
    qLa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
    sLa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
    tLa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
    WN=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.jE(b)}}:a};
    XN=function(a,b,c){if(!g.CA("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])[1]):a(b[d]);else c?a(c(b)[1]):a(b)};
    YN=function(a,b,c){if(!g.CA("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
    Y=function(a){g.CA("jspb_translator_log_errors")&&g.jA(a)};
    vLa=function(a){var b=new voa,c=0;try{var d=a.eventType;d!==void 0&&(T(b,1,uLa[d]),c++);var e=a.storedEventsCount;e!==void 0&&(Vk(b,2,e),c++);var f=a.expiredEventsCount;f!==void 0&&(Vk(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;h!==void 0&&(Vk(b,4,h),c++);var l=a.oldestStoredEventAgeMs;l!==void 0&&(Vk(b,5,l),c++);var m=a.metricIntervalMs;m!==void 0&&(Vk(b,6,m),c++);var n=a.dispatchedEventCount;n!==void 0&&(Vk(b,7,n),c++);var p=a.dispatchAttemptCount;p!==void 0&&(Vk(b,8,p),c++);var q=a.withDiskSpaceMs;
        q!==void 0&&(Xk(b,9,q),c++);var r=a.withNetworkMs;r!==void 0&&(Xk(b,10,r),c++);var t=a.foregroundMs;t!==void 0&&(Xk(b,11,t),c++);var u=a.activeMs;u!==void 0&&(Xk(b,12,u),c++);var w=a.condensedPageBcSlackCount;w!==void 0&&(Vk(b,13,w),c++);var A=a.persistedDeleteUsedCount;A!==void 0&&(Vk(b,14,A),c++);var C=a.persistedDeleteCount;C!==void 0&&(Vk(b,15,C),c++);var E=a.eventDisabledCount;E!==void 0&&(Vk(b,16,E),c++);var H=a.identityResolutionErrorCount;H!==void 0&&(Vk(b,17,H),c++);var L=a.exceededMaxRetryCount;
        L!==void 0&&(Vk(b,18,L),c++);var N=a.condensedPageBcPersistFailCount;N!==void 0&&(Vk(b,19,N),c++);var Q=a.couldNotUnloadPageCount;Q!==void 0&&(Vk(b,20,Q),c++);var da=a.pageWasCorruptedCount;da!==void 0&&(Vk(b,24,da),c++);var na=a.badEventIndexCount;na!==void 0&&(Vk(b,27,na),c++);var qa=a.serializeErrorCount;qa!==void 0&&(Vk(b,25,qa),c++);var ha=a.payloadInfoNotSetCount;ha!==void 0&&(Vk(b,21,ha),c++);var ta=a.requestEmptyErrorCount;ta!==void 0&&(Vk(b,22,ta),c++);var P=a.clientEventNotSetCount;P!==
        void 0&&(Vk(b,23,P),c++);var ua=a.differentIdCount;ua!==void 0&&(Vk(b,26,ua),c++);var y=a.failedWriteCount;y!==void 0&&(Vk(b,28,y),c++);var Z=a.failedReadCount;Z!==void 0&&(Vk(b,29,Z),c++);var cb=a.failedDispatchCount;cb!==void 0&&(Vk(b,30,cb),c++);var La=a.failedFetchCount;La!==void 0&&(Vk(b,31,La),c++);var $a=a.loggingliteLogsMoved;$a!==void 0&&(Vk(b,32,$a),c++);var Ya=a.loggingliteLogsDropped;Ya!==void 0&&(Vk(b,33,Ya),c++);return[c===Object.keys(a).length,b]}catch(Ha){return Y(Ha),[!1,void 0]}};
    ZN=function(a){var b=new iz,c=0;try{var d=a.trackingParams;d!==void 0&&(b.setTrackingParams(d),c++);var e=a.veType;e!==void 0&&(Vk(b,2,e),c++);var f=a.elementIndex;f!==void 0&&(Vk(b,3,f),c++);var h=a.veCounter;h!==void 0&&(Vk(b,6,h),c++);var l=a.dataElement;if(l){var m=ZN(l);m[0]&&(ik(b,iz,7,m[1]),c++)}var n=a.isCounterfactual;n!==void 0&&(Uk(b,5,n),c++);var p=a.youtubeData;if(p){a:{var q=new sx,r=0;try{var t=p.channelData;if(t){b:{var u=new sna,w=0;try{var A=t.externalId;A!==void 0&&(al(u,1,A),w++);
        var C=[w===Object.keys(t).length,u];break b}catch(Pa){Y(Pa);C=[!1,void 0];break b}}var E=C;E[0]&&(ik(q,sna,2,E[1]),r++)}var H=p.channelItem;if(H){b:{var L=new tna,N=0;try{var Q=H.externalId;Q!==void 0&&(al(L,1,Q),N++);var da=[N===Object.keys(H).length,L];break b}catch(Pa){Y(Pa);da=[!1,void 0];break b}}var na=da;na[0]&&(ik(q,tna,5,na[1]),r++)}var qa=p.playlistItem;if(qa){b:{var ha=new Hna,ta=0;try{var P=qa.externalPlaylistId;P!==void 0&&(al(ha,5,P),ta++);var ua=[ta===Object.keys(qa).length,ha];break b}catch(Pa){Y(Pa);
        ua=[!1,void 0];break b}}var y=ua;y[0]&&(ik(q,Hna,6,y[1]),r++)}var Z=p.analyticsData;if(Z){b:{var cb=new qna,La=0;try{var $a=Z.tabName;$a!==void 0&&(T(cb,1,wLa[$a]),La++);var Ya=Z.analysisVariant;if(Ya){c:{var Ha=new hna,Ta=0;try{var ob=Ya.analysisSummary;if(ob){d:{var B=new Ow,F=0;try{var D=ob.type;D!==void 0&&(T(B,1,xLa[D]),F++);var J=ob.eligibility;J!==void 0&&(T(B,2,yLa[J]),F++);var K=ob.sentiment;K!==void 0&&(T(B,3,zLa[K]),F++);var aa=[F===Object.keys(ob).length,B];break d}catch(Pa){Y(Pa);aa=
        [!1,void 0];break d}}var fa=aa;fa[0]&&(ik(Ha,Ow,1,fa[1]),Ta++)}var ia=Ya.videoPerformanceVariant;if(ia){var O=ALa(ia);O[0]&&(jk(Ha,Tw,2,$N,O[1]),Ta++)}var ka=Ya.videoOverviewVariant;if(ka){d:{var la=new fna,za=0;try{var Sa=ka.timePeriod;Sa!==void 0&&(T(la,1,aO[Sa]),za++);var gb=ka.videoPerformanceVariant;if(gb){var Ab=ALa(gb);Ab[0]&&(ik(la,Tw,2,Ab[1]),za++)}var pb=ka.durationTimePeriod;pb!==void 0&&(T(la,3,BLa[pb]),za++);var Za=[za===Object.keys(ka).length,la];break d}catch(Pa){Y(Pa);Za=[!1,void 0];
        break d}Za=void 0}var qc=Za;qc[0]&&(jk(Ha,fna,3,$N,qc[1]),Ta++)}var $b=Ya.channelFluctuationVariant;if($b){d:{var ac=new Pw,kc=0;try{var Vc=$b.views;Vc!==void 0&&(T(ac,1,bO[Vc]),kc++);var Wb=$b.driver;Wb!==void 0&&(T(ac,2,CLa[Wb]),kc++);var wc=$b.ctr;wc!==void 0&&(T(ac,3,bO[wc]),kc++);var $c=$b.impressions;$c!==void 0&&(T(ac,4,bO[$c]),kc++);var Qc=$b.viewsPerVideo;Qc!==void 0&&(T(ac,5,bO[Qc]),kc++);var uc=[kc===Object.keys($b).length,ac];break d}catch(Pa){Y(Pa);uc=[!1,void 0];break d}}var Tb=uc;Tb[0]&&
    (jk(Ha,Pw,4,$N,Tb[1]),Ta++)}var Ub=Ya.artistOverviewVariant;if(Ub){d:{var yd=new Xma,pd=0;try{var qd=Ub.timePeriod;qd!==void 0&&(T(yd,1,aO[qd]),pd++);var Zb=Ub.variantType;Zb!==void 0&&(T(yd,2,DLa[Zb]),pd++);var Ec=[pd===Object.keys(Ub).length,yd];break d}catch(Pa){Y(Pa);Ec=[!1,void 0];break d}}var Hb=Ec;Hb[0]&&(jk(Ha,Xma,5,$N,Hb[1]),Ta++)}var cd=Ya.monthlySubsVariant;if(cd){var zd=ELa(cd);zd[0]&&(jk(Ha,Sw,6,$N,zd[1]),Ta++)}var Pb=Ya.monthlyRevenueVariant;if(Pb){var ge=FLa(Pb);ge[0]&&(jk(Ha,Rw,7,
        $N,ge[1]),Ta++)}var Ud=Ya.holisticMonthlyOverviewVariant;if(Ud){d:{var Vd=new ana,Ce=0;try{var De=Ud.viewsPerformance;if(De){var Ld=GLa(De);Ld[0]&&(ik(Vd,Qw,1,Ld[1]),Ce++)}var $e=Ud.subsPerformance;if($e){var Oe=ELa($e);Oe[0]&&(ik(Vd,Sw,2,Oe[1]),Ce++)}var Md=Ud.revenuePerformance;if(Md){var zf=FLa(Md);zf[0]&&(ik(Vd,Rw,3,zf[1]),Ce++)}var Nd=[Ce===Object.keys(Ud).length,Vd];break d}catch(Pa){Y(Pa);Nd=[!1,void 0];break d}Nd=void 0}var he=Nd;he[0]&&(jk(Ha,ana,8,$N,he[1]),Ta++)}var rd=Ya.personalizedChannelOverviewVariant;
        if(rd){d:{var Hd=new ena,sd=0;try{var Od=rd.timePeriod;Od!==void 0&&(T(Hd,1,aO[Od]),sd++);var kg=rd.viewsPerformance;if(kg){var af=GLa(kg);af[0]&&(ik(Hd,Qw,2,af[1]),sd++)}var Pf=[sd===Object.keys(rd).length,Hd];break d}catch(Pa){Y(Pa);Pf=[!1,void 0];break d}Pf=void 0}var Wc=Pf;Wc[0]&&(jk(Ha,ena,9,$N,Wc[1]),Ta++)}var oc=Ya.channelNewReturningVariant;if(oc){d:{var Pe=new Zma,kh=0;try{var Zh=oc.uniqueViewers;Zh!==void 0&&(T(Pe,1,bO[Zh]),kh++);var nh=oc.newViewers;nh!==void 0&&(T(Pe,2,bO[nh]),kh++);var Ki=
            oc.returningViewers;Ki!==void 0&&(T(Pe,3,bO[Ki]),kh++);var pf=[kh===Object.keys(oc).length,Pe];break d}catch(Pa){Y(Pa);pf=[!1,void 0];break d}}var gf=pf;gf[0]&&(jk(Ha,Zma,10,$N,gf[1]),Ta++)}var Fe=Ya.lowReturningViewersDataStoryVariant;if(Fe){d:{var $h=new bna,vc=0;try{var Fc=Fe.videoListType;Fc!==void 0&&(T($h,1,HLa[Fc]),vc++);var Gc=[vc===Object.keys(Fe).length,$h];break d}catch(Pa){Y(Pa);Gc=[!1,void 0];break d}}var Li=Gc;Li[0]&&(jk(Ha,bna,11,$N,Li[1]),Ta++)}var Df=Ya.weeklyDataStoryVariant;if(Df){d:{var qg=
            new gna,hf=0;try{var Dd=Df.dateId;Dd!==void 0&&(Wk(qg,1,Dd),hf++);var Tf=[hf===Object.keys(Df).length,qg];break d}catch(Pa){Y(Pa);Tf=[!1,void 0];break d}}var ai=Tf;ai[0]&&(jk(Ha,gna,12,$N,ai[1]),Ta++)}var rg=Ya.monthlyDataStoryVariant;if(rg){d:{var Rg=new cna,sg=0;try{var Mi=rg.dateId;Mi!==void 0&&(Wk(Rg,1,Mi),sg++);var le=rg.highlightType;le!==void 0&&(T(Rg,2,ILa[le]),sg++);var tg=rg.adviceType;tg!==void 0&&(T(Rg,3,JLa[tg]),sg++);var ug=rg.revenueInsightType;ug!==void 0&&(T(Rg,4,KLa[ug]),sg++);var bi=
            [sg===Object.keys(rg).length,Rg];break d}catch(Pa){Y(Pa);bi=[!1,void 0];break d}}var Ef=bi;Ef[0]&&(jk(Ha,cna,13,$N,Ef[1]),Ta++)}var vg=Ya.otherFormatsDataStoryVariant;if(vg){d:{var oh=new dna,Sg=0;try{var ph=vg.overlapShorts;ph!==void 0&&(Wk(oh,1,ph),Sg++);var ve=vg.overlapChannels;ve!==void 0&&(Wk(oh,2,ve),Sg++);var Se=[Sg===Object.keys(vg).length,oh];break d}catch(Pa){Y(Pa);Se=[!1,void 0];break d}}var $d=Se;$d[0]&&(jk(Ha,dna,14,$N,$d[1]),Ta++)}var qj=Ya.audienceWatchesLongformDataStoryVariant;if(qj){d:{var jf=
            new Yma,Ge=0;try{var Uf=qj.hasOverlapVideo;Uf!==void 0&&(Uk(jf,1,Uf),Ge++);var Vf=qj.hasOverlapLivestream;Vf!==void 0&&(Uk(jf,2,Vf),Ge++);var Tg=qj.overlapChannels;Tg!==void 0&&(Wk(jf,3,Tg),Ge++);var Qd=[Ge===Object.keys(qj).length,jf];break d}catch(Pa){Y(Pa);Qd=[!1,void 0];break d}}var wg=Qd;wg[0]&&(jk(Ha,Yma,15,$N,wg[1]),Ta++)}var Ff=Ya.contentInspirationDataStoryVariant;if(Ff){d:{var ci=new $ma,mk=0;try{var um=Ff.hasVideoOverlapData;um!==void 0&&(Uk(ci,1,um),mk++);var tl=Ff.hasChannelOverlapData;
            tl!==void 0&&(Uk(ci,2,tl),mk++);var ul=Ff.hasSearchTermsData;ul!==void 0&&(Uk(ci,3,ul),mk++);var nk=[mk===Object.keys(Ff).length,ci];break d}catch(Pa){Y(Pa);nk=[!1,void 0];break d}}var Ni=nk;Ni[0]&&(jk(Ha,$ma,16,$N,Ni[1]),Ta++)}var kf=[Ta===Object.keys(Ya).length,Ha];break c}catch(Pa){Y(Pa);kf=[!1,void 0];break c}kf=void 0}var He=kf;He[0]&&(ik(cb,hna,12,He[1]),La++)}var ae=Z.cardConfig;if(ae){c:{var qh=new jna,xg=0;try{var vm=ae.cardType;vm!==void 0&&(T(qh,3,LLa[vm]),xg++);var yg=ae.legacyMobileCardType;
        yg!==void 0&&(T(qh,5,MLa[yg]),xg++);var di=ae.entityType;di!==void 0&&(T(qh,4,NLa[di]),xg++);var rj=ae.tableCardConfig;if(rj){d:{var Ug=new Vw,rh=0;try{var sj=rj.dimension;sj!==void 0&&(T(Ug,1,cO[sj]),rh++);var tj=rj.metrics;tj!==void 0&&(YN(Ug.j.bind(Ug),tj,cO),rh++);var sh=[rh===Object.keys(rj).length,Ug];break d}catch(Pa){Y(Pa);sh=[!1,void 0];break d}}var uj=sh;uj[0]&&(jk(qh,Vw,1,OLa,uj[1]),xg++)}var Oi=ae.keyMetricCardConfig;if(Oi){d:{var th=new Uw,vj=0;try{var zg=Oi.metricTabConfigs;zg&&(XN(th.j.bind(th),
            zg,PLa),vj++);var uh=[vj===Object.keys(Oi).length,th];break d}catch(Pa){Y(Pa);uh=[!1,void 0];break d}}var ok=uh;ok[0]&&(jk(qh,Uw,2,OLa,ok[1]),xg++)}var vl=[xg===Object.keys(ae).length,qh];break c}catch(Pa){Y(Pa);vl=[!1,void 0];break c}vl=void 0}var wm=vl;wm[0]&&(ik(cb,jna,13,wm[1]),La++)}var ei=Z.externalVideoId;ei!==void 0&&(S(cb,15,ei),La++);var Wf=Z.videoSid;Wf!==void 0&&(Xk(cb,16,Wf),La++);var qf=Z.exploreConfig;if(qf){c:{var Xf=new Xw,Ag=0;try{var pk=qf.metrics;pk!==void 0&&(YN(Xf.j.bind(Xf),
        pk,cO),Ag++);var wj=qf.dimension;wj!==void 0&&(T(Xf,2,cO[wj]),Ag++);var wl=qf.timePeriodType;wl!==void 0&&(T(Xf,3,aO[wl]),Ag++);var gc=[Ag===Object.keys(qf).length,Xf];break c}catch(Pa){Y(Pa);gc=[!1,void 0];break c}}var Zq=gc;Zq[0]&&(ik(cb,Xw,18,Zq[1]),La++)}var qk=Z.contentInspirationEntity;if(qk){c:{var xl=new Nw,rk=0;try{var Cn=qk.video;if(Cn){d:{var fi=new Wma,xj=0;try{var xm=Cn.externalVideoId;xm!==void 0&&(S(fi,1,xm),xj++);var ym=[xj===Object.keys(Cn).length,fi];break d}catch(Pa){Y(Pa);ym=[!1,
        void 0];break d}}var ct=ym;ct[0]&&(jk(xl,Wma,1,dO,ct[1]),rk++)}var $q=qk.kgTopic;if($q){d:{var ar=new Vma,Dn=0;try{var zm=$q.kgTopicMid;zm!==void 0&&(S(ar,1,zm),Dn++);var sk=[Dn===Object.keys($q).length,ar];break d}catch(Pa){Y(Pa);sk=[!1,void 0];break d}}var yl=sk;yl[0]&&(jk(xl,Vma,2,dO,yl[1]),rk++)}var tk=qk.freeformTopic;if(tk){d:{var vh=new Tma,gi=0;try{var uk=tk.freeformTopic;uk!==void 0&&(S(vh,1,uk),gi++);var br=tk.languageCode;br!==void 0&&(S(vh,4,br),gi++);var wp=tk.isContentGap;wp!==void 0&&
    (Uk(vh,2,wp),gi++);var xp=tk.isShortsContentGap;xp!==void 0&&(Uk(vh,3,xp),gi++);var cr=tk.isInVideoIdeaShelf;cr!==void 0&&(Uk(vh,5,cr),gi++);var En=[gi===Object.keys(tk).length,vh];break d}catch(Pa){Y(Pa);En=[!1,void 0];break d}}var dr=En;dr[0]&&(jk(xl,Tma,3,dO,dr[1]),rk++)}var Vg=qk.generatedOutline;if(Vg){d:{var me=new Uma,Te=0;try{var Fn=Vg.feedbackToken;Fn!==void 0&&(S(me,1,Fn),Te++);var Wg=[Te===Object.keys(Vg).length,me];break d}catch(Pa){Y(Pa);Wg=[!1,void 0];break d}}var hi=Wg;hi[0]&&(jk(xl,
        Uma,4,dO,hi[1]),rk++)}var wh=[rk===Object.keys(qk).length,xl];break c}catch(Pa){Y(Pa);wh=[!1,void 0];break c}wh=void 0}var yp=wh;yp[0]&&(ik(cb,Nw,19,yp[1]),La++)}var zl=[La===Object.keys(Z).length,cb];break b}catch(Pa){Y(Pa);zl=[!1,void 0];break b}zl=void 0}var er=zl;er[0]&&(ik(q,qna,20,er[1]),r++)}var Gn=p.promotionData;if(Gn){b:{var Am=new Ina,Hn=0;try{var fr=Gn.promotionId;fr!==void 0&&(S(Am,1,fr),Hn++);var ii=Gn.placementType;ii!==void 0&&(T(Am,9,QLa[ii]),Hn++);var yj=[Hn===Object.keys(Gn).length,
        Am];break b}catch(Pa){Y(Pa);yj=[!1,void 0];break b}}var vk=yj;vk[0]&&(ik(q,Ina,21,vk[1]),r++)}var Al=p.backstageItem;if(Al){b:{var Bm=new rna,Cm=0;try{var zp=Al.stanzaId;zp!==void 0&&(S(Bm,1,zp),Cm++);var Ap=Al.likeCount;Ap!==void 0&&(Xk(Bm,7,Ap),Cm++);var Bp=Al.backstageId;Bp!==void 0&&(S(Bm,9,Bp),Cm++);var In=Al.wasPostScheduled;In!==void 0&&(Uk(Bm,14,In),Cm++);var Kc=[Cm===Object.keys(Al).length,Bm];break b}catch(Pa){Y(Pa);Kc=[!1,void 0];break b}}var xh=Kc;xh[0]&&(ik(q,rna,32,xh[1]),r++)}var Yf=
        p.adminSelfieData;if(Yf){b:{var ji=new ona,yh=0;try{var Jn=Yf.componentId;Jn!==void 0&&(S(ji,1,Jn),yh++);var gr=Yf.componentType;gr!==void 0&&(S(ji,2,gr),yh++);var Bl=Yf.payload;if(Bl){c:{var Kn=new nna,Cl=0;try{var Cp=Bl.include;if(Cp){d:{var hr=new kna,Dp=0;try{var zj=Cp.fragmentName;zj!==void 0&&(S(hr,1,zj),Dp++);var Pi=[Dp===Object.keys(Cp).length,hr];break d}catch(Pa){Y(Pa);Pi=[!1,void 0];break d}}var wk=Pi;wk[0]&&(jk(Kn,kna,1,RLa,wk[1]),Cl++)}var Dl=Bl.toolboxPage;if(Dl){d:{var Ln=new mna,Mn=
        0;try{var xk=Dl.fragmentName;xk!==void 0&&(S(Ln,1,xk),Mn++);var Aj=[Mn===Object.keys(Dl).length,Ln];break d}catch(Pa){Y(Pa);Aj=[!1,void 0];break d}}var yk=Aj;yk[0]&&(jk(Kn,mna,2,RLa,yk[1]),Cl++)}var Ep=Bl.reviewQueuePage;if(Ep){d:{var El=new lna,ir=0;try{var Fl=Ep.queueId;Fl!==void 0&&(Vk(El,1,Fl),ir++);var Gl=[ir===Object.keys(Ep).length,El];break d}catch(Pa){Y(Pa);Gl=[!1,void 0];break d}}var Hl=Gl;Hl[0]&&(jk(Kn,lna,3,RLa,Hl[1]),Cl++)}var Fp=[Cl===Object.keys(Bl).length,Kn];break c}catch(Pa){Y(Pa);
        Fp=[!1,void 0];break c}Fp=void 0}var zk=Fp;zk[0]&&(ik(ji,nna,3,zk[1]),yh++)}var Dm=[yh===Object.keys(Yf).length,ji];break b}catch(Pa){Y(Pa);Dm=[!1,void 0];break b}Dm=void 0}var Nn=Dm;Nn[0]&&(ik(q,ona,41,Nn[1]),r++)}var Il=p.notificationState;if(Il){b:{var On=new Sna,Pn=0;try{var Qn=Il.inboxInteractionData;if(Qn){c:{var Rn=new nx,Gp=0;try{var zh=Qn.notifications;zh&&(XN(Rn.j.bind(Rn),zh,SLa),Gp++);var Hp=[Gp===Object.keys(Qn).length,Rn];break c}catch(Pa){Y(Pa);Hp=[!1,void 0];break c}}var Ak=Hp;Ak[0]&&
    (ik(On,nx,9,Ak[1]),Pn++)}var Bg=[Pn===Object.keys(Il).length,On];break b}catch(Pa){Y(Pa);Bg=[!1,void 0];break b}Bg=void 0}var Em=Bg;Em[0]&&(ik(q,Sna,59,Em[1]),r++)}var Xg=p.delegationContext;if(Xg){b:{var Qi=new Gna,ki=0;try{var Bj=Xg.externalChannelId;Bj!==void 0&&(S(Qi,1,Bj),ki++);var Bk=Xg.externalOwnerId;Bk!==void 0&&(S(Qi,3,Bk),ki++);var Sn=Xg.artistId;Sn!==void 0&&(S(Qi,4,Sn),ki++);var Jl=Xg.roleType;if(Jl){c:{var Ri=new Fna,Si=0;try{var Ck=Jl.channelRoleType;Ck!==void 0&&(bl(Ri,1,TLa,ULa[Ck]),
        Si++);var Ip=Jl.artistRoleType;Ip!==void 0&&(bl(Ri,2,TLa,VLa[Ip]),Si++);var Dk=Jl.contentOwnerRoleType;Dk!==void 0&&(bl(Ri,3,TLa,WLa[Dk]),Si++);var Ek=[Si===Object.keys(Jl).length,Ri];break c}catch(Pa){Y(Pa);Ek=[!1,void 0];break c}}var Kl=Ek;Kl[0]&&(ik(Qi,Fna,5,Kl[1]),ki++)}var Ll=Xg.oacChannelId;Ll!==void 0&&(S(Qi,6,Ll),ki++);var Ml=Xg.isInternalUser;Ml!==void 0&&(Uk(Qi,8,Ml),ki++);var Fm=Xg.user;Fm!==void 0&&(Uk(Qi,10,Fm),ki++);var Jp=Xg.delegationContextSerialized;Jp!==void 0&&(al(Qi,9,Jp),ki++);
        var Kp=[ki===Object.keys(Xg).length,Qi];break b}catch(Pa){Y(Pa);Kp=[!1,void 0];break b}Kp=void 0}var Tn=Kp;Tn[0]&&(ik(q,Gna,63,Tn[1]),r++)}var Lp=p.campaignData;if(Lp){b:{var Mp=new Qna,Nl=0;try{var Un=Lp.campaignName;Un!==void 0&&(S(Mp,1,Un),Nl++);var Vn=Lp.campaignVersion;Vn!==void 0&&(S(Mp,2,Vn),Nl++);var Gm=[Nl===Object.keys(Lp).length,Mp];break b}catch(Pa){Y(Pa);Gm=[!1,void 0];break b}}var jr=Gm;jr[0]&&(ik(q,Qna,64,jr[1]),r++)}var Hm=p.scoringEventInfo;if(Hm){b:{var Np=new Jna,Op=0;try{var Pp=
        Hm.scoringTrackingParams;Pp!==void 0&&(al(Np,1,Pp),Op++);var Qp=[Op===Object.keys(Hm).length,Np];break b}catch(Pa){Y(Pa);Qp=[!1,void 0];break b}}var Im=Qp;Im[0]&&(ik(q,Jna,77,Im[1]),r++)}var Ol=p.servletData;if(Ol){b:{var Wn=new Kna,Xn=0;try{var Rp=Ol.serializedServletEventId;Rp!==void 0&&(S(Wn,1,Rp),Xn++);var Yn=[Xn===Object.keys(Ol).length,Wn];break b}catch(Pa){Y(Pa);Yn=[!1,void 0];break b}}var kr=Yn;kr[0]&&(ik(q,Kna,83,kr[1]),r++)}var Sp=p.yoodleData;if(Sp){b:{var Zn=new Pna,lr=0;try{var ne=Sp.promoId;
        ne!==void 0&&(S(Zn,1,ne),lr++);var we=[lr===Object.keys(Sp).length,Zn];break b}catch(Pa){Y(Pa);we=[!1,void 0];break b}}var Ie=we;Ie[0]&&(ik(q,Pna,85,Ie[1]),r++)}var $n=p.videoRestrictionData;if($n){b:{var ao=new mx,Jm=0;try{var bo=$n.restrictions;bo&&(XN(ao.j.bind(ao),bo,XLa),Jm++);var Tp=$n.prechecksPending;Tp!==void 0&&(Uk(ao,2,Tp),Jm++);var Up=[Jm===Object.keys($n).length,ao];break b}catch(Pa){Y(Pa);Up=[!1,void 0];break b}}var Vp=Up;Vp[0]&&(ik(q,mx,92,Vp[1]),r++)}var li=p.creatorMusicData;if(li){b:{var mi=
        new fx,Cj=0;try{var co=li.entity;if(co){var mr=YLa(co);mr[0]&&(ik(mi,ex,1,mr[1]),Cj++)}var Km=li.entities;Km&&(XN(mi.j.bind(mi),Km,YLa),Cj++);var eo=li.track;if(eo){var fo=ZLa(eo);fo[0]&&(jk(mi,dx,3,eO,fo[1]),Cj++)}var go=li.artist;if(go){c:{var Fk=new Ana,Lm=0;try{var Ti=go.details;if(Ti){d:{var ho=new Yw,io=0;try{var nr=Ti.kgMid;nr!==void 0&&(S(ho,1,nr),io++);var or=Ti.name;or!==void 0&&(S(ho,2,or),io++);var Ui=[io===Object.keys(Ti).length,ho];break d}catch(Pa){Y(Pa);Ui=[!1,void 0];break d}}var Pl=
        Ui;Pl[0]&&(ik(Fk,Yw,1,Pl[1]),Lm++)}var Dj=[Lm===Object.keys(go).length,Fk];break c}catch(Pa){Y(Pa);Dj=[!1,void 0];break c}Dj=void 0}var pr=Dj;pr[0]&&(jk(mi,Ana,5,eO,pr[1]),Cj++)}var jo=li.licensePurchase;if(jo){c:{var Wp=new Dna,ko=0;try{var qr=jo.assetId;qr!==void 0&&(S(Wp,1,qr),ko++);var lo=jo.artTrackId;lo!==void 0&&(S(Wp,2,lo),ko++);var Xp=[ko===Object.keys(jo).length,Wp];break c}catch(Pa){Y(Pa);Xp=[!1,void 0];break c}}var ni=Xp;ni[0]&&(jk(mi,Dna,6,eO,ni[1]),Cj++)}var Ql=li.claim;if(Ql){c:{var Vi=
        new Bna,Yp=0;try{var Yg=Ql.assetId;Yg!==void 0&&(S(Vi,1,Yg),Yp++);var Zf=[Yp===Object.keys(Ql).length,Vi];break c}catch(Pa){Y(Pa);Zf=[!1,void 0];break c}}var $f=Zf;$f[0]&&(jk(mi,Bna,7,eO,$f[1]),Cj++)}var Rl=li.collection;if(Rl){var rr=$La(Rl);rr[0]&&(jk(mi,cx,4,eO,rr[1]),Cj++)}var Ue=[Cj===Object.keys(li).length,mi];break b}catch(Pa){Y(Pa);Ue=[!1,void 0];break b}Ue=void 0}var Ah=Ue;Ah[0]&&(ik(q,fx,96,Ah[1]),r++)}var rf=p.creatorData;if(rf){b:{var ag=new zna,Sl=0;try{var Gk=rf.ttWizardTargetFeature;
        Gk!==void 0&&(bl(ag,1,aMa,bMa[Gk]),Sl++);var sr=rf.ttWizardTargetLevel;sr!==void 0&&(bl(ag,2,aMa,cMa[sr]),Sl++);var dt=rf.simpleWizardDetails;if(dt){var et=new yna;try{var Zp=[0===Object.keys(dt).length,et]}catch(Pa){Y(Pa),Zp=[!1,void 0]}var tr=Zp;tr[0]&&(jk(ag,yna,3,dMa,tr[1]),Sl++)}var Mm=rf.advancedWizardDetails;if(Mm){c:{var mo=new wna,Tl=0;try{var Ul=Mm.isDoubleHop;Ul!==void 0&&(Uk(mo,1,Ul),Tl++);var $p=[Tl===Object.keys(Mm).length,mo];break c}catch(Pa){Y(Pa);$p=[!1,void 0];break c}}var aq=$p;
            aq[0]&&(jk(ag,wna,4,dMa,aq[1]),Sl++)}var Wi=rf.blockedWizardDetails;if(Wi){c:{var bq=new xna,no=0;try{var Vl=Wi.loggableBlockedReason;Vl!==void 0&&(T(bq,1,eMa[Vl]),no++);var Hk=[no===Object.keys(Wi).length,bq];break c}catch(Pa){Y(Pa);Hk=[!1,void 0];break c}}var Wl=Hk;Wl[0]&&(jk(ag,xna,5,dMa,Wl[1]),Sl++)}var Xl=[Sl===Object.keys(rf).length,ag];break b}catch(Pa){Y(Pa);Xl=[!1,void 0];break b}Xl=void 0}var oo=Xl;oo[0]&&(ik(q,zna,98,oo[1]),r++)}var po=p.adstubeData;if(po){b:{var cq=new pna,Yl=0;try{var Ik=
        po.countryTargetingPrefill;if(Ik){c:{var Zl=new Ww,Ej=0;try{var Jk=Ik.prefilledCodes;Jk&&(XN(Zl.B.bind(Zl),Jk),Ej++);var Kk=Ik.finalCodes;Kk&&(XN(Zl.j.bind(Zl),Kk),Ej++);var dq=Ik.source;dq!==void 0&&(S(Zl,3,dq),Ej++);var ur=[Ej===Object.keys(Ik).length,Zl];break c}catch(Pa){Y(Pa);ur=[!1,void 0];break c}}var ft=ur;ft[0]&&(ik(cq,Ww,1,ft[1]),Yl++)}var qo=[Yl===Object.keys(po).length,cq];break b}catch(Pa){Y(Pa);qo=[!1,void 0];break b}qo=void 0}var ro=qo;ro[0]&&(ik(q,pna,104,ro[1]),r++)}var Nm=p.loggingExpectations;
        if(Nm){var Xi=fMa(Nm);Xi[0]&&(ik(q,rx,106,Xi[1]),r++)}var oi=p.channelPageVeData;if(oi){b:{var $l=new una,vr=0;try{var wr=oi.isForYouShelf;wr!==void 0&&(Uk($l,2,wr),vr++);var Yi=[vr===Object.keys(oi).length,$l];break b}catch(Pa){Y(Pa);Yi=[!1,void 0];break b}}var xr=Yi;xr[0]&&(ik(q,una,107,xr[1]),r++)}var so=p.shoppingAffiliateData;if(so){b:{var eq=new Lna,iv=0;try{var fq=so.affiliateDeepLinkSource;fq!==void 0&&(T(eq,1,gMa[fq]),iv++);var Zi=[iv===Object.keys(so).length,eq];break b}catch(Pa){Y(Pa);
            Zi=[!1,void 0];break b}}var Lk=Zi;Lk[0]&&(ik(q,Lna,109,Lk[1]),r++)}var am=p.hashtagSuggestionData;if(am){b:{var gt=new kx,jv=0;try{var Ux=am.hashtagId;Ux!==void 0&&(S(gt,1,Ux),jv++);var kv=am.suggestionSources;kv!==void 0&&(YN(gt.j.bind(gt),kv,hMa),jv++);var lv=[jv===Object.keys(am).length,gt];break b}catch(Pa){Y(Pa);lv=[!1,void 0];break b}}var mv=lv;mv[0]&&(ik(q,kx,111,mv[1]),r++)}var ht=p.componentData;if(ht){b:{var Vx=new vna,yr=0;try{var it=ht.standardComponentType;it!==void 0&&(T(Vx,1,iMa[it]),
            yr++);var zr=[yr===Object.keys(ht).length,Vx];break b}catch(Pa){Y(Pa);zr=[!1,void 0];break b}}var Wx=zr;Wx[0]&&(ik(q,vna,121,Wx[1]),r++)}var jt=p.creatorShoppingTaggingData;if(jt){b:{var Ar=new jx,kt=0;try{var Xx=jt.products;Xx&&(XN(Ar.j.bind(Ar),Xx,jMa),kt++);var nv=jt.taggedVideos;nv&&(XN(Ar.B.bind(Ar),nv,kMa),kt++);var ov=[kt===Object.keys(jt).length,Ar];break b}catch(Pa){Y(Pa);ov=[!1,void 0];break b}}var Yx=ov;Yx[0]&&(ik(q,jx,122,Yx[1]),r++)}var pv=[r===Object.keys(p).length,q];break a}catch(Pa){Y(Pa);
        pv=[!1,void 0];break a}pv=void 0}var Zx=pv;Zx[0]&&(ik(b,sx,8,Zx[1]),c++)}var qv=a.loggingExpectations;if(qv){var $x=fMa(qv);$x[0]&&(ik(b,rx,9,$x[1]),c++)}return[c===Object.keys(a).length,b]}catch(Pa){return Y(Pa),[!1,void 0]}};
    ALa=function(a){var b=new Tw,c=0;try{var d=a.views;d!==void 0&&(T(b,1,bO[d]),c++);var e=a.driver;e!==void 0&&(T(b,2,lMa[e]),c++);var f=a.ctr;f!==void 0&&(T(b,3,bO[f]),c++);var h=a.avd;h!==void 0&&(T(b,4,bO[h]),c++);var l=a.impressions;l!==void 0&&(T(b,5,bO[l]),c++);var m=a.videoLength;m!==void 0&&(T(b,6,bO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
    ELa=function(a){var b=new Sw,c=0;try{var d=a.subsGrowth;d!==void 0&&(T(b,1,bO[d]),c++);var e=a.nonSubViews;e!==void 0&&(T(b,2,bO[e]),c++);var f=a.subsAddedPerNonSubViews;f!==void 0&&(T(b,3,bO[f]),c++);var h=a.accountsClosed;h!==void 0&&(T(b,4,bO[h]),c++);var l=a.subsRemovedToAddedRatio;l!==void 0&&(T(b,5,bO[l]),c++);var m=a.videosPublished;m!==void 0&&(T(b,6,bO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
    FLa=function(a){var b=new Rw,c=0;try{var d=a.revenue;d!==void 0&&(T(b,1,bO[d]),c++);var e=a.revenueSource;e!==void 0&&(T(b,2,mMa[e]),c++);var f=a.revenueDrivingMetrics;f!==void 0&&(YN(b.j.bind(b),f,nMa),c++);var h=a.revenueChangeReason;h!==void 0&&(T(b,4,oMa[h]),c++);var l=a.revenueChangeFact;l!==void 0&&(T(b,5,pMa[l]),c++);var m=a.driverCountryCode;m!==void 0&&(S(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
    GLa=function(a){var b=new Qw,c=0;try{var d=a.views;d!==void 0&&(T(b,1,bO[d]),c++);var e=a.drivers;e!==void 0&&(YN(b.j.bind(b),e,qMa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    PLa=function(a){var b=new ina,c=0;try{var d=a.metric;d!==void 0&&(T(b,1,cO[d]),c++);var e=a.comparisonMetric;e!==void 0&&(T(b,2,cO[e]),c++);var f=a.includeCumulative;f!==void 0&&(Uk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    SLa=function(a){var b=new Rna,c=0;try{var d=a.attributionTag;d!==void 0&&(S(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    XLa=function(a){var b=new Ona,c=0;try{var d=a.limitedAds;if(d){a:{var e=new Nna,f=0;try{var h=d.imposer;h!==void 0&&(T(e,1,rMa[h]),f++);var l=[f===Object.keys(d).length,e];break a}catch(C){Y(C);l=[!1,void 0];break a}}d=l;d[0]&&(jk(b,Nna,1,sMa,d[1]),c++)}var m=a.copyright;if(m){a:{var n=new Mna;d=0;try{var p=m.policyType;p!==void 0&&(T(n,1,tMa[p]),d++);var q=m.productTagsBlocked;q!==void 0&&(Uk(n,2,q),d++);var r=[d===Object.keys(m).length,n];break a}catch(C){Y(C);r=[!1,void 0];break a}}m=r;m[0]&&(jk(b,
        Mna,2,sMa,m[1]),c++)}var t=a.communityGuidelines;if(t){a:{var u=new lx;m=0;try{var w=t.policyVerticals;w!==void 0&&(YN(u.j.bind(u),w,uMa),m++);var A=[m===Object.keys(t).length,u];break a}catch(C){Y(C);A=[!1,void 0];break a}}t=A;t[0]&&(jk(b,lx,3,sMa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
    YLa=function(a){var b=new ex,c=0;try{var d=a.featuredCollection;if(d){var e=vMa(d);e[0]&&(jk(b,Zw,1,fO,e[1]),c++)}var f=a.mood;if(f){var h=wMa(f);h[0]&&(jk(b,ax,2,fO,h[1]),c++)}var l=a.genre;if(l){var m=xMa(l);m[0]&&(jk(b,$w,3,fO,m[1]),c++)}var n=a.track;if(n){var p=ZLa(n);p[0]&&(jk(b,dx,4,fO,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
    vMa=function(a){var b=new Zw,c=0;try{var d=a.id;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    wMa=function(a){var b=new ax,c=0;try{var d=a.type;d!==void 0&&(T(b,1,yMa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    xMa=function(a){var b=new $w,c=0;try{var d=a.type;d!==void 0&&(T(b,1,zMa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    ZLa=function(a){var b=new dx,c=0;try{var d=a.artTrackId;d!==void 0&&(S(b,1,d),c++);var e=a.assetId;e!==void 0&&(S(b,2,e),c++);var f=a.details;if(f){var h=new Cna;try{var l=[0===Object.keys(f).length,h]}catch(p){Y(p),l=[!1,void 0]}d=l;d[0]&&(ik(b,Cna,3,d[1]),c++)}var m=a.parent;if(m){var n=$La(m);n[0]&&(ik(b,cx,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
    $La=function(a){var b=new cx,c=0;try{var d=a.featuredCollection;if(d){var e=vMa(d);e[0]&&(jk(b,Zw,1,gO,e[1]),c++)}var f=a.mood;if(f){var h=wMa(f);h[0]&&(jk(b,ax,2,gO,h[1]),c++)}var l=a.genre;if(l){var m=xMa(l);m[0]&&(jk(b,$w,3,gO,m[1]),c++)}var n=a.section;if(n){a:{var p=new bx;d=0;try{var q=n.type;q!==void 0&&(T(p,1,AMa[q]),d++);var r=[d===Object.keys(n).length,p];break a}catch(u){Y(u);r=[!1,void 0];break a}}n=r;n[0]&&(jk(b,bx,4,gO,n[1]),c++)}var t=a.dimension;t!==void 0&&(T(b,5,BMa[t]),c++);return[c===
    Object.keys(a).length,b]}catch(u){return Y(u),[!1,void 0]}};
    fMa=function(a){var b=new rx,c=0;try{var d=a.attachLoggingExpectations;if(d){a:{var e=new px,f=0;try{var h=d.attachScreenExpectations;h&&(XN(e.j.bind(e),h,CMa),f++);var l=[f===Object.keys(d).length,e];break a}catch(r){Y(r);l=[!1,void 0];break a}}d=l;d[0]&&(ik(b,px,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){a:{var n=new qx;d=0;try{var p=m.expectedParentScreens;p&&(XN(n.j.bind(n),p,CMa),d++);var q=[d===Object.keys(m).length,n];break a}catch(r){Y(r);q=[!1,void 0];break a}}m=q;m[0]&&
    (ik(b,qx,2,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}};
    CMa=function(a){var b=new ox,c=0;try{var d=a.screenVeType;d!==void 0&&(Tna(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    jMa=function(a){var b=new hx,c=0;try{var d=a.taggingSource;d!==void 0&&(T(b,1,DMa[d]),c++);var e=a.id;if(e){a:{var f=new gx;d=0;try{var h=e.docid;h!==void 0&&(Yk(f,1,h),d++);var l=[d===Object.keys(e).length,f];break a}catch(A){Y(A);l=[!1,void 0];break a}}e=l;e[0]&&(ik(b,gx,2,e[1]),c++)}var m=a.skuId;if(m){a:{var n=new Ena;e=0;try{var p=m.merchantId;p!==void 0&&(bk(n,1,EMa,Fi(p)),e++);var q=m.youtubeGroupId;q!==void 0&&(bk(n,2,EMa,$i(q)),e++);var r=m.rawMerchantOfferId;r!==void 0&&(S(n,3,r),e++);var t=
        [e===Object.keys(m).length,n];break a}catch(A){Y(A);t=[!1,void 0];break a}}m=t;m[0]&&(ik(b,Ena,3,m[1]),c++)}var u=a.userInputUrl;u!==void 0&&(S(b,4,u),c++);var w=a.userSearchQuery;w!==void 0&&(S(b,5,w),c++);return[c===Object.keys(a).length,b]}catch(A){return Y(A),[!1,void 0]}};
    kMa=function(a){var b=new ix,c=0;try{var d=a.externalVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.products;e&&(XN(b.j.bind(b),e,jMa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    HMa=function(a){var b=new Ay,c=0;try{var d=a.segments;d&&(XN(b.j.bind(b),d,FMa),c++);var e=a.transitions;e&&(XN(b.B.bind(b),e,GMa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    FMa=function(a){var b=new yy,c=0;try{var d=a.type;d!==void 0&&(T(b,1,IMa[d]),c++);var e=a.effects;e&&(XN(b.g7.bind(b),e,JMa),c++);var f=a.videoInfo;if(f){var h=KMa(f);h[0]&&(ik(b,wy,3,h[1]),c++)}var l=a.audioInfo;if(l){a:{var m=new Doa;d=0;try{var n=l.sourceOffsetMs;n!==void 0&&(Xk(m,1,n),d++);var p=l.sampleRateHz;p!==void 0&&(Vk(m,2,p),d++);var q=l.channelCount;q!==void 0&&(Vk(m,3,q),d++);var r=l.isRemote;r!==void 0&&(Uk(m,4,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(E){Y(E);t=[!1,
        void 0];break a}}l=t;l[0]&&(ik(b,Doa,4,l[1]),c++)}var u=a.startTimeMs;u!==void 0&&(Xk(b,5,u),c++);var w=a.durationMs;w!==void 0&&(Yk(b,6,w),c++);var A=a.playbackRate;A!==void 0&&(b.setPlaybackRate(A),c++);var C=a.enabled;C!==void 0&&(b.setEnabled(C),c++);return[c===Object.keys(a).length,b]}catch(E){return Y(E),[!1,void 0]}};
    JMa=function(a){var b=new Eoa,c=0;try{var d=a.effectBaseName;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    KMa=function(a){var b=new wy,c=0;try{var d=a.resolutionWidth;d!==void 0&&(Vk(b,1,d),c++);var e=a.resolutionHeight;e!==void 0&&(Vk(b,2,e),c++);var f=a.frameRate;f!==void 0&&(Zk(b,3,f),c++);var h=a.durationMs;h!==void 0&&(Yk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
    GMa=function(a){var b=new zy,c=0;try{var d=a.incomingSegment;if(d){var e=FMa(d);e[0]&&(ik(b,yy,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=FMa(f);h[0]&&(ik(b,yy,2,h[1]),c++)}var l=a.durationMs;l!==void 0&&(Yk(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
    LMa=function(a){var b=new Boa,c=0;try{var d=a.previewWidth;d!==void 0&&(Vk(b,1,d),c++);var e=a.previewHeight;e!==void 0&&(Vk(b,2,e),c++);var f=a.fps;f!==void 0&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    NNa=function(a){var b=new qz,c=0;try{var d=a.encryptedVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.cotn;e!==void 0&&(S(b,20,e),c++);var f=a.cpn;f!==void 0&&(S(b,30,f),c++);var h=a.transferStatusType;h!==void 0&&(T(b,38,MMa[h]),c++);var l=a.statusType;l!==void 0&&(T(b,2,NMa[l]),c++);var m=a.failureReason;m!==void 0&&(T(b,3,OMa[m]),c++);var n=a.transferFailureReason;n!==void 0&&(T(b,41,PMa[n]),c++);var p=a.failureExceptionType;p!==void 0&&(S(b,37,p),c++);var q=a.totalFetchedKbytes;q!==void 0&&(Xk(b,4,
        q),c++);var r=a.diskAvailableKbytes;r!==void 0&&(Xk(b,5,r),c++);var t=a.totalContentKbytes;t!==void 0&&(Xk(b,21,t),c++);var u=a.alreadyDownloadedKbytes;u!==void 0&&(Xk(b,22,u),c++);var w=a.fetchedFromCacheKbytes;w!==void 0&&(Xk(b,23,w),c++);var A=a.systemHealth;if(A){a:{var C=new az,E=0;try{var H=A.tag;H!==void 0&&(T(C,1,QMa[H]),E++);var L=A.staticContext;if(L){b:{var N=new Noa,Q=0;try{var da=L.displayDensityDpi;da!==void 0&&(Vk(N,1,da),Q++);var na=L.heightPixels;na!==void 0&&(Vk(N,2,na),Q++);var qa=
        L.widthPixels;qa!==void 0&&(Vk(N,3,qa),Q++);var ha=L.memoryTotalKbytes;ha!==void 0&&(Xk(N,4,ha),Q++);var ta=L.osSdkVersion;ta!==void 0&&(Vk(N,5,ta),Q++);var P=L.osIncrementalVersion;P!==void 0&&(S(N,6,P),Q++);var ua=L.hardwareArchitecture;ua!==void 0&&(S(N,7,ua),Q++);var y=L.appVersionCode;y!==void 0&&(Vk(N,8,y),Q++);var Z=L.devicePixelRatio;Z!==void 0&&(Zk(N,9,Z),Q++);var cb=L.buildFingerprint;cb!==void 0&&(S(N,10,cb),Q++);var La=L.socManufacturer;La!==void 0&&(S(N,11,La),Q++);var $a=L.socModel;
        $a!==void 0&&(S(N,12,$a),Q++);var Ya=L.availableProcessors;Ya!==void 0&&(Vk(N,13,Ya),Q++);var Ha=L.cpuCores;Ha!==void 0&&(Vk(N,14,Ha),Q++);var Ta=L.heightPoints;Ta!==void 0&&(Vk(N,15,Ta),Q++);var ob=L.widthPoints;ob!==void 0&&(Vk(N,16,ob),Q++);var B=L.androidMediaPerformanceClass;B!==void 0&&(Vk(N,17,B),Q++);var F=[Q===Object.keys(L).length,N];break b}catch(nb){Y(nb);F=[!1,void 0];break b}}var D=F;D[0]&&(ik(C,Noa,2,D[1]),E++)}var J=A.dynamicContext;if(J){b:{var K=new Vy,aa=0;try{var fa=J.screenOn;
        fa!==void 0&&(Uk(K,1,fa),aa++);var ia=J.deviceRotation;ia!==void 0&&(Vk(K,2,ia),aa++);var O=J.networkType;O!==void 0&&(Vk(K,3,O),aa++);var ka=J.networkCoarseState;ka!==void 0&&(Vk(K,4,ka),aa++);var la=J.chargingStatus;la!==void 0&&(T(K,5,RMa[la]),aa++);var za=J.isInForeground;za!==void 0&&(Uk(K,6,za),aa++);var Sa=J.viewportHeightPixels;Sa!==void 0&&(Vk(K,7,Sa),aa++);var gb=J.viewportWidthPixels;gb!==void 0&&(Vk(K,8,gb),aa++);var Ab=J.hasCoarsePointer;Ab!==void 0&&(Uk(K,9,Ab),aa++);var pb=J.hasFinePointer;
        pb!==void 0&&(Uk(K,10,pb),aa++);var Za=J.hasHoverSupport;Za!==void 0&&(Uk(K,11,Za),aa++);var qc=J.deviceFreeStorageMbytes;qc!==void 0&&(Xk(K,12,qc),aa++);var $b=J.deviceStorageQuotaMbytes;$b!==void 0&&(Xk(K,13,$b),aa++);var ac=J.deviceStorageUsageMbytes;ac!==void 0&&(Xk(K,14,ac),aa++);var kc=J.processUptimeMs;kc!==void 0&&(Xk(K,15,kc),aa++);var Vc=J.hasAppShell;Vc!==void 0&&(Uk(K,16,Vc),aa++);var Wb=J.glVersion;Wb!==void 0&&(S(K,17,Wb),aa++);var wc=J.glRenderer;wc!==void 0&&(S(K,18,wc),aa++);var $c=
            J.srsDatapushBuildIds;$c&&(XN(K.B.bind(K),$c,SMa),aa++);var Qc=J.playerDatapushBuildIds;Qc&&(XN(K.j.bind(K),Qc,TMa),aa++);var uc=J.creationContext;if(uc){c:{var Tb=new Uy,Ub=0;try{var yd=uc.activeFrontendUploadId;yd!==void 0&&(S(Tb,1,yd),Ub++);var pd=uc.inShortsCreation;pd!==void 0&&(Uk(Tb,2,pd),Ub++);var qd=uc.activeEffectLoggingIds;qd&&(XN(Tb.j.bind(Tb),qd,UMa),Ub++);var Zb=uc.activePages;Zb!==void 0&&(YN(Tb.B.bind(Tb),Zb,VMa),Ub++);var Ec=[Ub===Object.keys(uc).length,Tb];break c}catch(nb){Y(nb);
            Ec=[!1,void 0];break c}}var Hb=Ec;Hb[0]&&(ik(K,Uy,21,Hb[1]),aa++)}var cd=J.kimonoContext;if(cd){c:{var zd=new Loa,Pb=0;try{var ge=cd.cobaltUserAgent;ge!==void 0&&(S(zd,1,ge),Pb++);var Ud=cd.webAppVersion;Ud!==void 0&&(S(zd,2,Ud),Pb++);var Vd=cd.cobaltVersion;Vd!==void 0&&(S(zd,3,Vd),Pb++);var Ce=cd.webAppInterface;Ce!==void 0&&(T(zd,4,WMa[Ce]),Pb++);var De=cd.clientDocumentNonce;De!==void 0&&(S(zd,5,De),Pb++);var Ld=cd.applicationState;Ld!==void 0&&(T(zd,6,XMa[Ld]),Pb++);var $e=[Pb===Object.keys(cd).length,
            zd];break c}catch(nb){Y(nb);$e=[!1,void 0];break c}}var Oe=$e;Oe[0]&&(ik(K,Loa,22,Oe[1]),aa++)}var Md=[aa===Object.keys(J).length,K];break b}catch(nb){Y(nb);Md=[!1,void 0];break b}Md=void 0}var zf=Md;zf[0]&&(ik(C,Vy,3,zf[1]),E++)}var Nd=A.serializedPrimesMetric;Nd!==void 0&&(al(C,4,Nd),E++);var he=A.serializedIosPrimesMetric;he!==void 0&&(al(C,6,he),E++);var rd=A.webMetric;if(rd){b:{var Hd=new Poa,sd=0;try{var Od=rd.currentHeapKbytes;Od!==void 0&&(Vk(Hd,1,Od),sd++);var kg=rd.navigationCount;kg!==
    void 0&&(Vk(Hd,2,kg),sd++);var af=[sd===Object.keys(rd).length,Hd];break b}catch(nb){Y(nb);af=[!1,void 0];break b}}var Pf=af;Pf[0]&&(ik(C,Poa,7,Pf[1]),E++)}var Wc=A.crashData;if(Wc){b:{var oc=new Sy,Pe=0;try{var kh=Wc.stackTrace;kh!==void 0&&(S(oc,1,kh),Pe++);var Zh=Wc.screenVeType;Zh!==void 0&&(Vk(oc,2,Zh),Pe++);var nh=Wc.compactStackTrace;if(nh){var Ki=hO(nh);Ki[0]&&(ik(oc,my,3,Ki[1]),Pe++)}var pf=Wc.crashTimeMs;pf!==void 0&&(Xk(oc,4,pf),Pe++);var gf=Wc.clientError;if(gf){c:{var Fe=new Ry,$h=0;
        try{var vc=gf.errorMetadata;if(vc){d:{var Fc=new Hy,Gc=0;try{var Li=vc.exceptionCategory;Li!==void 0&&(T(Fc,1,YMa[Li]),Gc++);var Df=vc.serviceTrackingData;if(Df){e:{var qg=new zoa,hf=0;try{var Dd=Df.innertubeBuildChangelist;Dd!==void 0&&(Xk(qg,1,Dd),hf++);var Tf=Df.innertubeBuildExperimentsSourceVersion;Tf!==void 0&&(Xk(qg,2,Tf),hf++);var ai=Df.innertubeBuildLabel;ai!==void 0&&(S(qg,3,ai),hf++);var rg=Df.innertubeBuildTimestampSec;rg!==void 0&&(Xk(qg,4,rg),hf++);var Rg=Df.innertubeBuildVariantsChecksum;
            Rg!==void 0&&(S(qg,5,Rg),hf++);var sg=Df.innertubeJobName;sg!==void 0&&(S(qg,6,sg),hf++);var Mi=[hf===Object.keys(Df).length,qg];break e}catch(nb){Y(nb);Mi=[!1,void 0];break e}}var le=Mi;le[0]&&(ik(Fc,zoa,2,le[1]),Gc++)}var tg=vc.pageUrl;tg!==void 0&&(S(Fc,3,tg),Gc++);var ug=vc.kvPairs;ug&&(XN(Fc.j.bind(Fc),ug,ZMa),Gc++);var bi=vc.experimentIds;bi&&(XN(Fc.B.bind(Fc),bi),Gc++);var Ef=vc.playerMetadata;if(Ef){e:{var vg=new Fy,oh=0;try{var Sg=Ef.error;Sg!==void 0&&(YN(vg.j.bind(vg),Sg,$Ma),oh++);var ph=
            Ef.stackTrace;ph!==void 0&&(S(vg,2,ph),oh++);var ve=[oh===Object.keys(Ef).length,vg];break e}catch(nb){Y(nb);ve=[!1,void 0];break e}}var Se=ve;Se[0]&&(ik(Fc,Fy,6,Se[1]),Gc++)}var $d=vc.exceptionType;$d!==void 0&&(T(Fc,7,aNa[$d]),Gc++);var qj=vc.clientScreenNonce;qj!==void 0&&(S(Fc,8,qj),Gc++);var jf=vc.blocksMethodExecutionInfo;if(jf){e:{var Ge=new yoa,Uf=0;try{var Vf=jf.methodId;Vf!==void 0&&(Wk(Ge,1,Vf),Uf++);var Tg=jf.blockTypeId;Tg!==void 0&&(Wk(Ge,2,Tg),Uf++);var Qd=jf.methodType;Qd!==void 0&&
        (T(Ge,3,bNa[Qd]),Uf++);var wg=jf.requestSize;wg!==void 0&&(Wk(Ge,4,wg),Uf++);var Ff=jf.responseSize;Ff!==void 0&&(Wk(Ge,5,Ff),Uf++);var ci=jf.statusCode;ci!==void 0&&(Wk(Ge,6,ci),Uf++);var mk=jf.containerId;mk!==void 0&&(Wk(Ge,7,mk),Uf++);var um=jf.moduleIdentifier;um!==void 0&&(S(Ge,8,um),Uf++);var tl=jf.datapushBuildId;tl!==void 0&&(Yk(Ge,9,tl),Uf++);var ul=jf.attribution;ul!==void 0&&(T(Ge,10,cNa[ul]),Uf++);var nk=[Uf===Object.keys(jf).length,Ge];break e}catch(nb){Y(nb);nk=[!1,void 0];break e}}var Ni=
            nk;Ni[0]&&(ik(Fc,yoa,9,Ni[1]),Gc++)}var kf=vc.mediaEngineMetadata;if(kf){e:{var He=new g.Dy,ae=0;try{var qh=kf.client;qh!==void 0&&(He.zy(dNa[qh]),ae++);var xg=kf.mdeErrorType;xg!==void 0&&(T(He,2,eNa[xg]),ae++);var vm=kf.uploadId;vm!==void 0&&(S(He,3,vm),ae++);var yg=kf.composition;yg&&(XN(He.d7.bind(He),yg,HMa),ae++);var di=kf.player;if(di){f:{var rj=new By,Ug=0;try{var rh=di.state;rh!==void 0&&(rj.Hc(fNa[rh]),Ug++);var sj=di.playbackPositionTimeMs;sj!==void 0&&(Xk(rj,2,sj),Ug++);var tj=[Ug===Object.keys(di).length,
            rj];break f}catch(nb){Y(nb);tj=[!1,void 0];break f}}var sh=tj;sh[0]&&(ik(He,By,5,sh[1]),ae++)}var uj=kf.exporter;if(uj){f:{var Oi=new vy,th=0;try{var vj=uj.settings;if(vj){g:{var zg=new uy,uh=0;try{var ok=vj.audioChannelCount;ok!==void 0&&(Vk(zg,1,ok),uh++);var vl=vj.resolutionWidth;vl!==void 0&&(Vk(zg,2,vl),uh++);var wm=vj.resolutionHeight;wm!==void 0&&(Vk(zg,3,wm),uh++);var ei=[uh===Object.keys(vj).length,zg];break g}catch(nb){Y(nb);ei=[!1,void 0];break g}}var Wf=ei;Wf[0]&&(Oi.qh(Wf[1]),th++)}var qf=
            uj.state;qf!==void 0&&(Oi.Hc(gNa[qf]),th++);var Xf=uj.durationMs;Xf!==void 0&&(Yk(Oi,3,Xf),th++);var Ag=uj.progressMs;Ag!==void 0&&(Yk(Oi,4,Ag),th++);var pk=[th===Object.keys(uj).length,Oi];break f}catch(nb){Y(nb);pk=[!1,void 0];break f}pk=void 0}var wj=pk;wj[0]&&(ik(He,vy,6,wj[1]),ae++)}var wl=kf.projectId;wl!==void 0&&(S(He,7,wl),ae++);var gc=kf.deviceInfo;if(gc){f:{var Zq=new ty,qk=0;try{var xl=gc.audioOutputLatencyMs;xl!==void 0&&(Vk(Zq,1,xl),qk++);var rk=[qk===Object.keys(gc).length,Zq];break f}catch(nb){Y(nb);
            rk=[!1,void 0];break f}}var Cn=rk;Cn[0]&&(ik(He,ty,8,Cn[1]),ae++)}var fi=kf.preprocessor;if(fi){f:{var xj=new g.Cy,xm=0;try{var ym=fi.originalVideo;if(ym){var ct=KMa(ym);ct[0]&&(ik(xj,wy,1,ct[1]),xm++)}var $q=fi.processedVideo;if($q){var ar=KMa($q);ar[0]&&(ik(xj,wy,2,ar[1]),xm++)}var Dn=[xm===Object.keys(fi).length,xj];break f}catch(nb){Y(nb);Dn=[!1,void 0];break f}Dn=void 0}var zm=Dn;zm[0]&&(ik(He,g.Cy,9,zm[1]),ae++)}var sk=kf.clientSurface;sk!==void 0&&(T(He,10,hNa[sk]),ae++);var yl=[ae===Object.keys(kf).length,
            He];break e}catch(nb){Y(nb);yl=[!1,void 0];break e}yl=void 0}var tk=yl;tk[0]&&(ik(Fc,g.Dy,10,tk[1]),Gc++)}var vh=vc.cameraMetadata;if(vh){e:{var gi=new sy,uk=0;try{var br=vh.uploadFrontendId;br!==void 0&&(S(gi,1,br),uk++);var wp=vh.cameraApiClient;wp!==void 0&&(T(gi,2,iNa[wp]),uk++);var xp=vh.cameraConfigs;xp&&(XN(gi.j.bind(gi),xp,LMa),uk++);var cr=vh.canFindCamera;cr!==void 0&&(Uk(gi,4,cr),uk++);var En=[uk===Object.keys(vh).length,gi];break e}catch(nb){Y(nb);En=[!1,void 0];break e}}var dr=En;dr[0]&&
        (ik(Fc,sy,11,dr[1]),Gc++)}var Vg=vc.miniAppMetadata;if(Vg){e:{var me=new Ey,Te=0;try{var Fn=Vg.externalPostId;Fn!==void 0&&(S(me,1,Fn),Te++);var Wg=Vg.postPlayNonce;Wg!==void 0&&(S(me,2,Wg),Te++);var hi=Vg.localReleaseId;hi!==void 0&&(Vk(me,3,hi),Te++);var wh=Vg.source;wh!==void 0&&(T(me,4,jNa[wh]),Te++);var yp=Vg.sdkErrorType;yp!==void 0&&(T(me,5,kNa[yp]),Te++);var zl=Vg.sdkApi;zl!==void 0&&(T(me,6,lNa[zl]),Te++);var er=Vg.sdkVersion;er!==void 0&&(S(me,7,er),Te++);var Gn=Vg.rpcErrorCode;Gn!==void 0&&
        (Vk(me,8,Gn),Te++);var Am=[Te===Object.keys(Vg).length,me];break e}catch(nb){Y(nb);Am=[!1,void 0];break e}}var Hn=Am;Hn[0]&&(ik(Fc,Ey,12,Hn[1]),Gc++)}var fr=vc.appVersionCode;fr!==void 0&&(Vk(Fc,13,fr),Gc++);var ii=vc.hatsMetadata;if(ii){e:{var yj=new Aoa,vk=0;try{var Al=ii.hatsSessionId;Al!==void 0&&(S(yj,1,Al),vk++);var Bm=ii.csn;Bm!==void 0&&(S(yj,2,Bm),vk++);var Cm=ii.hatsTriggerId;Cm!==void 0&&(S(yj,3,Cm),vk++);var zp=ii.hatsStatus;zp!==void 0&&(T(yj,4,mNa[zp]),vk++);var Ap=[vk===Object.keys(ii).length,
            yj];break e}catch(nb){Y(nb);Ap=[!1,void 0];break e}}var Bp=Ap;Bp[0]&&(ik(Fc,Aoa,14,Bp[1]),Gc++)}var In=vc.reelPlaybackError;if(In){e:{var Kc=new Foa,xh=0;try{var Yf=In.reelPlaybackContext;if(Yf){f:{var ji=new Gy,yh=0;try{var Jn=Yf.videoId;Jn!==void 0&&(ji.setVideoId(Jn),yh++);var gr=Yf.playlistId;gr!==void 0&&(S(ji,2,gr),yh++);var Bl=Yf.playlistIndex;Bl!==void 0&&(Wk(ji,3,Bl),yh++);var Kn=Yf.cpn;Kn!==void 0&&(S(ji,4,Kn),yh++);var Cl=Yf.playerType;Cl!==void 0&&(T(ji,5,nNa[Cl]),yh++);var Cp=Yf.audioFmt;
            Cp!==void 0&&(Vk(ji,6,Cp),yh++);var hr=Yf.videoFmt;hr!==void 0&&(Vk(ji,7,hr),yh++);var Dp=[yh===Object.keys(Yf).length,ji];break f}catch(nb){Y(nb);Dp=[!1,void 0];break f}}var zj=Dp;zj[0]&&(ik(Kc,Gy,1,zj[1]),xh++)}var Pi=In.errorType;Pi!==void 0&&(T(Kc,2,oNa[Pi]),xh++);var wk=[xh===Object.keys(In).length,Kc];break e}catch(nb){Y(nb);wk=[!1,void 0];break e}wk=void 0}var Dl=wk;Dl[0]&&(ik(Fc,Foa,15,Dl[1]),Gc++)}var Ln=[Gc===Object.keys(vc).length,Fc];break d}catch(nb){Y(nb);Ln=[!1,void 0];break d}Ln=void 0}var Mn=
            Ln;Mn[0]&&(ik(Fe,Hy,1,Mn[1]),$h++)}var xk=gf.stackTrace;if(xk){d:{var Aj=new Py,yk=0;try{var Ep=xk.isObfuscated;Ep!==void 0&&(Uk(Aj,1,Ep),yk++);var El=xk.androidStackInfo;if(El){var ir=pNa(El);ir[0]&&(jk(Aj,Iy,2,mE,ir[1]),yk++)}var Fl=xk.browserStackInfo;if(Fl){e:{var Gl=new Jy,Hl=0;try{var Fp=Fl.stackTrace;Fp!==void 0&&(S(Gl,1,Fp),Hl++);var zk=Fl.lineNumber;zk!==void 0&&(Vk(Gl,2,zk),Hl++);var Dm=Fl.columnNumber;Dm!==void 0&&(Vk(Gl,3,Dm),Hl++);var Nn=Fl.filename;Nn!==void 0&&(S(Gl,4,Nn),Hl++);var Il=
            [Hl===Object.keys(Fl).length,Gl];break e}catch(nb){Y(nb);Il=[!1,void 0];break e}}var On=Il;On[0]&&(jk(Aj,Jy,3,mE,On[1]),yk++)}var Pn=xk.iosStackInfo;if(Pn){e:{var Qn=new Goa,Rn=0;try{var Gp=Pn.stackTrace;Gp!==void 0&&(S(Qn,1,Gp),Rn++);var zh=Pn.compactStackTrace;if(zh){var Hp=hO(zh);Hp[0]&&(ik(Qn,my,2,Hp[1]),Rn++)}var Ak=[Rn===Object.keys(Pn).length,Qn];break e}catch(nb){Y(nb);Ak=[!1,void 0];break e}Ak=void 0}var Bg=Ak;Bg[0]&&(jk(Aj,Goa,4,mE,Bg[1]),yk++)}var Em=xk.multiLanguageStackInfo;if(Em){e:{var Xg=
            new Oy,Qi=0;try{var ki=Em.languageStackTraces;ki&&(XN(Xg.j.bind(Xg),ki,qNa),Qi++);var Bj=[Qi===Object.keys(Em).length,Xg];break e}catch(nb){Y(nb);Bj=[!1,void 0];break e}}var Bk=Bj;Bk[0]&&(jk(Aj,Oy,5,mE,Bk[1]),yk++)}var Sn=[yk===Object.keys(xk).length,Aj];break d}catch(nb){Y(nb);Sn=[!1,void 0];break d}Sn=void 0}var Jl=Sn;Jl[0]&&(ik(Fe,Py,2,Jl[1]),$h++)}var Ri=gf.logMessage;if(Ri){d:{var Si=new Qy,Ck=0;try{var Ip=Ri.message;Ip!==void 0&&(S(Si,1,Ip),Ck++);var Dk=Ri.level;Dk!==void 0&&(T(Si,2,rNa[Dk]),
            Ck++);var Ek=Ri.errorClassName;Ek!==void 0&&(S(Si,3,Ek),Ck++);var Kl=Ri.sourceMethodName;Kl!==void 0&&(S(Si,4,Kl),Ck++);var Ll=Ri.sampleWeight;Ll!==void 0&&(Vk(Si,6,Ll),Ck++);var Ml=[Ck===Object.keys(Ri).length,Si];break d}catch(nb){Y(nb);Ml=[!1,void 0];break d}}var Fm=Ml;Fm[0]&&(ik(Fe,Qy,3,Fm[1]),$h++)}var Jp=[$h===Object.keys(gf).length,Fe];break c}catch(nb){Y(nb);Jp=[!1,void 0];break c}Jp=void 0}var Kp=Jp;Kp[0]&&(ik(oc,Ry,5,Kp[1]),Pe++)}var Tn=[Pe===Object.keys(Wc).length,oc];break b}catch(nb){Y(nb);
        Tn=[!1,void 0];break b}Tn=void 0}var Lp=Tn;Lp[0]&&(ik(C,Sy,9,Lp[1]),E++)}var Mp=A.delayedEventMetrics;Mp&&(XN(C.j.bind(C),Mp,vLa),E++);var Nl=A.iosBatteryMetric;if(Nl){b:{var Un=new woa,Vn=0;try{var Gm=Nl.sampleDurationMs;Gm!==void 0&&(Xk(Un,1,Gm),Vn++);var jr=Nl.startSample;if(jr){var Hm=sNa(jr);Hm[0]&&(ik(Un,ny,2,Hm[1]),Vn++)}var Np=Nl.endSample;if(Np){var Op=sNa(Np);Op[0]&&(ik(Un,ny,3,Op[1]),Vn++)}var Pp=[Vn===Object.keys(Nl).length,Un];break b}catch(nb){Y(nb);Pp=[!1,void 0];break b}Pp=void 0}var Qp=
        Pp;Qp[0]&&(ik(C,woa,11,Qp[1]),E++)}var Im=A.androidBatteryMetric;if(Im){b:{var Ol=new roa,Wn=0;try{var Xn=Im.sampleDurationMs;Xn!==void 0&&(Xk(Ol,1,Xn),Wn++);var Rp=Im.startSample;if(Rp){var Yn=tNa(Rp);Yn[0]&&(ik(Ol,iy,2,Yn[1]),Wn++)}var kr=Im.endSample;if(kr){var Sp=tNa(kr);Sp[0]&&(ik(Ol,iy,3,Sp[1]),Wn++)}var Zn=[Wn===Object.keys(Im).length,Ol];break b}catch(nb){Y(nb);Zn=[!1,void 0];break b}Zn=void 0}var lr=Zn;lr[0]&&(ik(C,roa,12,lr[1]),E++)}var ne=A.webApiSupport;if(ne){b:{var we=new Ooa,Ie=0;try{var $n=
        ne.intersectionObserverPresent;$n!==void 0&&(Uk(we,1,$n),Ie++);var ao=ne.indexedDbPresent;ao!==void 0&&(Uk(we,2,ao),Ie++);var Jm=ne.serviceWorkerPresent;Jm!==void 0&&(Uk(we,3,Jm),Ie++);var bo=ne.webSharePresent;bo!==void 0&&(Uk(we,4,bo),Ie++);var Tp=ne.fullScreenApiPresent;Tp!==void 0&&(Uk(we,5,Tp),Ie++);var Up=ne.cacheStoragePresent;Up!==void 0&&(Uk(we,6,Up),Ie++);var Vp=ne.storageEstimatePresent;Vp!==void 0&&(Uk(we,7,Vp),Ie++);var li=ne.storagePersistPresent;li!==void 0&&(Uk(we,8,li),Ie++);var mi=
        ne.webkitTemporaryStoragePresent;mi!==void 0&&(Uk(we,9,mi),Ie++);var Cj=ne.idb2Present;Cj!==void 0&&(Uk(we,10,Cj),Ie++);var co=ne.promiseRejectionEventPresent;co!==void 0&&(Uk(we,11,co),Ie++);var mr=ne.subtleCryptoPresent;mr!==void 0&&(Uk(we,12,mr),Ie++);var Km=ne.broadcastChannelPresent;Km!==void 0&&(Uk(we,13,Km),Ie++);var eo=ne.webLocksApiPresent;eo!==void 0&&(Uk(we,14,eo),Ie++);var fo=ne.supportsP3Color;fo!==void 0&&(Uk(we,15,fo),Ie++);var go=ne.supportsRec2020Color;go!==void 0&&(Uk(we,16,go),
        Ie++);var Fk=[Ie===Object.keys(ne).length,we];break b}catch(nb){Y(nb);Fk=[!1,void 0];break b}}var Lm=Fk;Lm[0]&&(ik(C,Ooa,13,Lm[1]),E++)}var Ti=A.cpuProfiling;if(Ti){b:{var ho=new qy,io=0;try{var nr=Ti.profilingSamples;if(nr){var or=hO(nr);or[0]&&(ik(ho,my,1,or[1]),io++)}var Ui=Ti.config;if(Ui){c:{var Pl=new xoa,Dj=0;try{var pr=Ui.profilingIntervalSec;pr!==void 0&&(Zk(Pl,1,pr),Dj++);var jo=Ui.profilingDurationSec;jo!==void 0&&(Zk(Pl,2,jo),Dj++);var Wp=Ui.timerType;Wp!==void 0&&(T(Pl,3,uNa[Wp]),Dj++);
        var ko=Ui.profilingStartTimeSec;ko!==void 0&&(Zk(Pl,4,ko),Dj++);var qr=Ui.fractionOfRunsToSample;qr!==void 0&&(Zk(Pl,5,qr),Dj++);var lo=[Dj===Object.keys(Ui).length,Pl];break c}catch(nb){Y(nb);lo=[!1,void 0];break c}}var Xp=lo;Xp[0]&&(ho.setConfig(Xp[1]),io++)}var ni=[io===Object.keys(Ti).length,ho];break b}catch(nb){Y(nb);ni=[!1,void 0];break b}ni=void 0}var Ql=ni;Ql[0]&&(ik(C,qy,14,Ql[1]),E++)}var Vi=A.stallStackTrace;if(Vi){var Yp=hO(Vi);Yp[0]&&(ik(C,my,15,Yp[1]),E++)}var Yg=A.memoryUsage;if(Yg){b:{var Zf=
        new Xy,$f=0;try{var Rl=Yg.totalMemoryUsageBytes;Rl!==void 0&&(Xk(Zf,1,Rl),$f++);var rr=Yg.classMemoryUsage;rr&&(XN(Zf.j.bind(Zf),rr,vNa),$f++);var Ue=Yg.config;if(Ue){c:{var Ah=new Moa,rf=0;try{var ag=Ue.maxStartTimeSec;ag!==void 0&&(Xk(Ah,1,ag),rf++);var Sl=Ue.durationTimeSec;Sl!==void 0&&(Xk(Ah,2,Sl),rf++);var Gk=Ue.intervalSec;Gk!==void 0&&(Xk(Ah,3,Gk),rf++);var sr=Ue.maxLogCount;sr!==void 0&&(Xk(Ah,4,sr),rf++);var dt=Ue.fractionOfRunsToSample;dt!==void 0&&(Zk(Ah,5,dt),rf++);var et=[rf===Object.keys(Ue).length,
        Ah];break c}catch(nb){Y(nb);et=[!1,void 0];break c}}var Zp=et;Zp[0]&&(Zf.setConfig(Zp[1]),$f++)}var tr=Yg.processUptimeMs;tr!==void 0&&(Xk(Zf,4,tr),$f++);var Mm=Yg.foregroundUptimeMs;Mm!==void 0&&(Xk(Zf,8,Mm),$f++);var mo=Yg.viewAllocation;mo&&(XN(Zf.C.bind(Zf),mo,vNa),$f++);var Tl=Yg.entityStoreCount;Tl!==void 0&&(Vk(Zf,6,Tl),$f++);var Ul=Yg.entityStoreBytes;Ul!==void 0&&(Xk(Zf,7,Ul),$f++);var $p=Yg.emlTemplateStoreBytes;$p!==void 0&&(Xk(Zf,10,$p),$f++);var aq=Yg.jsVmStatistics;aq&&(XN(Zf.B.bind(Zf),
        aq,wNa),$f++);var Wi=[$f===Object.keys(Yg).length,Zf];break b}catch(nb){Y(nb);Wi=[!1,void 0];break b}Wi=void 0}var bq=Wi;bq[0]&&(ik(C,Xy,16,bq[1]),E++)}var no=A.networkEvents;no&&(XN(C.B.bind(C),no,xNa),E++);var Vl=A.threadUtilization;if(Vl){b:{var Hk=new $y,Wl=0;try{var Xl=Vl.userJourney;Xl!==void 0&&(S(Hk,1,Xl),Wl++);var oo=Vl.type;oo!==void 0&&(T(Hk,2,yNa[oo]),Wl++);var po=Vl.threadPoolStats;po&&(XN(Hk.j.bind(Hk),po,zNa),Wl++);var cq=Vl.totalThreadCount;cq!==void 0&&(Vk(Hk,4,cq),Wl++);var Yl=Vl.statsGenerateDurationMs;
        Yl!==void 0&&(Xk(Hk,5,Yl),Wl++);var Ik=[Wl===Object.keys(Vl).length,Hk];break b}catch(nb){Y(nb);Ik=[!1,void 0];break b}}var Zl=Ik;Zl[0]&&(ik(C,$y,18,Zl[1]),E++)}var Ej=A.androidBackgroundTask;if(Ej){b:{var Jk=new oy,Kk=0;try{var dq=Ej.tag;dq!==void 0&&(S(Jk,1,dq),Kk++);var ur=Ej.isKnownTask;ur!==void 0&&(Uk(Jk,2,ur),Kk++);var ft=Ej.result;ft!==void 0&&(T(Jk,3,ANa[ft]),Kk++);var qo=Ej.durationMs;qo!==void 0&&(Xk(Jk,4,qo),Kk++);var ro=[Kk===Object.keys(Ej).length,Jk];break b}catch(nb){Y(nb);ro=[!1,
        void 0];break b}}var Nm=ro;Nm[0]&&(ik(C,oy,19,Nm[1]),E++)}var Xi=A.distributiveProfilingSpan;if(Xi){b:{var oi=new Ty,$l=0;try{var vr=Xi.spanId;vr!==void 0&&(T(oi,1,BNa[vr]),$l++);var wr=Xi.sampleRate;wr!==void 0&&(Zk(oi,2,wr),$l++);var Yi=Xi.spanDurationMs;Yi!==void 0&&(Xk(oi,3,Yi),$l++);var xr=Xi.sampleFailureCount;xr!==void 0&&(Vk(oi,4,xr),$l++);var so=Xi.sample;so&&(XN(oi.Si.bind(oi),so,CNa),$l++);var eq=[$l===Object.keys(Xi).length,oi];break b}catch(nb){Y(nb);eq=[!1,void 0];break b}}var iv=eq;
        iv[0]&&(ik(C,Ty,20,iv[1]),E++)}var fq=A.appExitInfo;if(fq){b:{var Zi=new py,Lk=0;try{var am=fq.reason;am!==void 0&&(T(Zi,1,DNa[am]),Lk++);var gt=fq.status;gt!==void 0&&(Vk(Zi,2,gt),Lk++);var jv=fq.importance;jv!==void 0&&(Vk(Zi,3,jv),Lk++);var Ux=fq.description;Ux!==void 0&&(S(Zi,4,Ux),Lk++);var kv=[Lk===Object.keys(fq).length,Zi];break b}catch(nb){Y(nb);kv=[!1,void 0];break b}}var lv=kv;lv[0]&&(ik(C,py,21,lv[1]),E++)}var mv=[E===Object.keys(A).length,C];break a}catch(nb){Y(nb);mv=[!1,void 0];break a}mv=
        void 0}var ht=mv;ht[0]&&(ik(b,az,6,ht[1]),c++)}var Vx=a.detailedNetworkType;Vx!==void 0&&(T(b,7,iO[Vx]),c++);var yr=a.isAd;yr!==void 0&&(Uk(b,8,yr),c++);var it=a.offlineModeType;it!==void 0&&(T(b,9,ENa[it]),c++);var zr=a.storageFormat;zr!==void 0&&(T(b,24,FNa[zr]),c++);var Wx=a.offlineSourceVeType;Wx!==void 0&&(Vk(b,32,Wx),c++);var jt=a.listId;jt!==void 0&&(S(b,10,jt),c++);var Ar=a.offlineabilityFormatType;Ar!==void 0&&(T(b,11,GNa[Ar]),c++);var kt=a.offlineAudioQuality;kt!==void 0&&(T(b,29,HNa[kt]),
        c++);var Xx=a.softErrorCount;Xx!==void 0&&(Vk(b,12,Xx),c++);var nv=a.pendingStateFlags;nv!==void 0&&(Wk(b,13,nv),c++);var ov=a.unusedOfflineVideoPendingState;ov!==void 0&&(T(b,14,INa[ov]),c++);var Yx=a.isRefresh;Yx!==void 0&&(Uk(b,15,Yx),c++);var pv=a.isNewPlayerResponse;pv!==void 0&&(Uk(b,16,pv),c++);var Zx=a.isOfflineShareable;Zx!==void 0&&(Uk(b,17,Zx),c++);var qv=a.hasContentVerificationSignature;qv!==void 0&&(Uk(b,18,qv),c++);var $x=a.isOfflineInterleaving;$x!==void 0&&(Uk(b,19,$x),c++);var Pa=
        a.blockSizeBytes;Pa!==void 0&&(Vk(b,25,Pa),c++);var uO=a.streamVerificationStrategy;uO!==void 0&&(T(b,26,jO[uO]),c++);var vO=a.streamVerificationFailedBlocks;vO&&(XN(b.j.bind(b),vO,JNa),c++);var GB=a.spacecastInfo;if(GB){a:{var HB=new wpa,MG=0;try{var IB=GB.applianceId;IB!==void 0&&(S(HB,1,IB),MG++);var NG=GB.transferredFromCache;NG!==void 0&&(T(HB,2,KNa[NG]),MG++);var JB=[MG===Object.keys(GB).length,HB];break a}catch(nb){Y(nb);JB=[!1,void 0];break a}}var wO=JB;wO[0]&&(ik(b,wpa,28,wO[1]),c++)}var OG=
        a.transferType;OG!==void 0&&(T(b,33,LNa[OG]),c++);var xO=a.onlyDownloadOnWifi;xO!==void 0&&(Uk(b,34,xO),c++);var yO=a.appLifecycleStatus;yO!==void 0&&(T(b,35,MNa[yO]),c++);var PG=a.isDefaultDownloadToSdCard;PG!==void 0&&(Uk(b,36,PG),c++);var zO=a.serializedLoggingParams;zO!==void 0&&(al(b,39,zO),c++);var AO=a.transferServiceStartedFromBackground;AO!==void 0&&(Uk(b,40,AO),c++);var rv=a.transferFirstStarted;rv!==void 0&&(Uk(b,42,rv),c++);return[c===Object.keys(a).length,b]}catch(nb){return Y(nb),[!1,
        void 0]}};
    SMa=function(a){var b=new Vna,c=0;try{var d=a.datapushBuild;if(d){var e=ONa(d);e[0]&&(ik(b,ux,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    ONa=function(a){var b=new ux,c=0;try{var d=a.buildId;d!==void 0&&(Xk(b,1,d),c++);var e=a.clientExperimentId;e!==void 0&&(Vk(b,2,e),c++);var f=a.accessType;f!==void 0&&(T(b,3,PNa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    TMa=function(a){var b=new Una,c=0;try{var d=a.datapushBuild;if(d){var e=ONa(d);e[0]&&(ik(b,ux,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    UMa=function(a){var b=new Joa,c=0;try{var d=a.assetLoggingId;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    hO=function(a){var b=new my,c=0;try{var d=a.stackTraces;d&&(XN(b.B.bind(b),d,QNa),c++);var e=a.allModules;e&&(XN(b.j.bind(b),e,RNa),c++);var f=a.appVersionCode;f!==void 0&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    QNa=function(a){var b=new ly,c=0;try{var d=a.mainThread;if(d){var e=SNa(d);e[0]&&(ik(b,ky,1,e[1]),c++)}var f=a.backgroundThreads;f&&(XN(b.j.bind(b),f,SNa),c++);var h=a.metaData;h&&(XN(b.B.bind(b),h,TNa),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
    SNa=function(a){var b=new ky,c=0;try{var d=a.stackFrames;d&&(XN(b.j.bind(b),d,UNa),c++);var e=a.androidStack;e!==void 0&&(S(b,6,e),c++);var f=a.threadName;f!==void 0&&(S(b,2,f),c++);var h=a.cpuUsage;h!==void 0&&(Zk(b,3,h),c++);var l=a.cpuTimeSec;l!==void 0&&(Xk(b,4,l),c++);var m=a.iosThreadInfo;if(m){a:{var n=new jy;d=0;try{var p=m.state;p!==void 0&&(n.Hc(VNa[p]),d++);var q=m.flag;q!==void 0&&(T(n,2,WNa[q]),d++);var r=m.currentPriority;r!==void 0&&(Vk(n,3,r),d++);var t=m.priority;t!==void 0&&(Vk(n,
        4,t),d++);var u=m.maxPriority;u!==void 0&&(Vk(n,5,u),d++);var w=m.isCrashedThread;w!==void 0&&(Uk(n,6,w),d++);var A=[d===Object.keys(m).length,n];break a}catch(C){Y(C);A=[!1,void 0];break a}}m=A;m[0]&&(ik(b,jy,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
    UNa=function(a){var b=new uoa,c=0;try{var d=a.instructionOffset;d!==void 0&&(Xk(b,1,d),c++);var e=a.moduleIndex;e!==void 0&&(Vk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    TNa=function(a){var b=new toa,c=0;try{var d=a.clientTimestampMs;d!==void 0&&(Xk(b,1,d),c++);var e=a.sampleTimeCostMs;e!==void 0&&(Zk(b,2,e),c++);var f=a.numberOfBustedFrames;f!==void 0&&(Vk(b,3,f),c++);var h=a.droppedFrameDurationMs;h!==void 0&&(Vk(b,4,h),c++);var l=a.deviceOrientation;l!==void 0&&(T(b,5,XNa[l]),c++);var m=a.processUptimeMs;m!==void 0&&(Xk(b,6,m),c++);var n=a.memoryUsageKbytes;n!==void 0&&(Xk(b,7,n),c++);var p=a.batteryPercentage;p!==void 0&&(Zk(b,8,p),c++);var q=a.exceptionName;
        q!==void 0&&(S(b,9,q),c++);var r=a.exceptionReason;r!==void 0&&(S(b,10,r),c++);var t=a.signalNumber;t!==void 0&&(Vk(b,11,t),c++);var u=a.signalCode;u!==void 0&&(Vk(b,12,u),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
    RNa=function(a){var b=new soa,c=0;try{var d=a.moduleUuid;d!==void 0&&(al(b,1,d),c++);var e=a.moduleName;e!==void 0&&(S(b,2,e),c++);var f=a.loadAddress;f!==void 0&&(Xk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    ZMa=function(a){var b=new ry,c=0;try{var d=a.key;d!==void 0&&(S(b,1,d),c++);var e=a.value;e!==void 0&&(S(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    pNa=function(a){var b=new Iy,c=0;try{var d=a.serializedThrowable;d!==void 0&&(al(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    qNa=function(a){var b=new Hoa,c=0;try{var d=a.jsStack;if(d){a:{var e=new Ny,f=0;try{var h=d.stackTrace;h&&(XN(e.j.bind(e),h,YNa),f++);var l=d.moduleSetVersion;l!==void 0&&(Yk(e,4,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(w){Y(w);m=[!1,void 0];break a}}d=m;d[0]&&(jk(b,Ny,1,ZNa,d[1]),c++)}var n=a.javaStack;if(n){var p=pNa(n);p[0]&&(jk(b,Iy,2,ZNa,p[1]),c++)}var q=a.ccStack;if(q){a:{var r=new Ly;n=0;try{var t=q.stackTrace;t&&(XN(r.j.bind(r),t,$Na),n++);var u=[n===Object.keys(q).length,
        r];break a}catch(w){Y(w);u=[!1,void 0];break a}}q=u;q[0]&&(jk(b,Ly,3,ZNa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
    YNa=function(a){var b=new My,c=0;try{var d=a.functionName;d!==void 0&&(S(b,1,d),c++);var e=a.source;e!==void 0&&(S(b,2,e),c++);var f=a.lineNumber;f!==void 0&&(Vk(b,3,f),c++);var h=a.columnNumber;h!==void 0&&(Vk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
    $Na=function(a){var b=new Ky,c=0;try{var d=a.functionName;d!==void 0&&(S(b,1,d),c++);var e=a.source;e!==void 0&&(S(b,2,e),c++);var f=a.lineNumber;f!==void 0&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    sNa=function(a){var b=new ny,c=0;try{var d=a.batteryLevelMicros;d!==void 0&&(Vk(b,1,d),c++);var e=a.networkType;e!==void 0&&(T(b,2,iO[e]),c++);var f=a.screenBrightness;f!==void 0&&(Zk(b,3,f),c++);var h=a.isLowPowerMode;h!==void 0&&(Uk(b,4,h),c++);var l=a.isBackground;l!==void 0&&(Uk(b,5,l),c++);var m=a.isStateTransition;m!==void 0&&(Uk(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;n!==void 0&&(Uk(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;p!==void 0&&(Uk(b,8,p),c++);return[c===
    Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
    tNa=function(a){var b=new iy,c=0;try{var d=a.batteryLevelMicros;d!==void 0&&(Vk(b,1,d),c++);var e=a.networkType;e!==void 0&&(T(b,2,iO[e]),c++);var f=a.screenBrightness;f!==void 0&&(Vk(b,3,f),c++);var h=a.screenBrightnessMode;h!==void 0&&(T(b,4,aOa[h]),c++);var l=a.lowPowerMode;l!==void 0&&(T(b,5,bOa[l]),c++);var m=a.batteryHealth;m!==void 0&&(T(b,6,cOa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
    vNa=function(a){var b=new Wy,c=0;try{var d=a.className;d!==void 0&&(S(b,1,d),c++);var e=a.instanceNum;e!==void 0&&(Xk(b,2,e),c++);var f=a.instanceSizeBytes;f!==void 0&&(Xk(b,3,f),c++);var h=a.allocationNum;h!==void 0&&(Xk(b,4,h),c++);var l=a.deallocationNum;l!==void 0&&(Xk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
    wNa=function(a){var b=new Zna,c=0;try{var d=a.v8Stats;if(d){a:{var e=new Yna,f=0;try{var h=d.totalHeapSize;h!==void 0&&(Yk(e,1,h),f++);var l=d.totalHeapSizeExecutable;l!==void 0&&(Yk(e,2,l),f++);var m=d.totalPhysicalSize;m!==void 0&&(Yk(e,3,m),f++);var n=d.totalAvailableSize;n!==void 0&&(Yk(e,4,n),f++);var p=d.totalGlobalHandlesSize;p!==void 0&&(Yk(e,5,p),f++);var q=d.usedGlobalHandlesSize;q!==void 0&&(Yk(e,6,q),f++);var r=d.usedHeapSize;r!==void 0&&(Yk(e,7,r),f++);var t=d.heapSizeLimit;t!==void 0&&
    (Yk(e,8,t),f++);var u=d.mallocedMemory;u!==void 0&&(Yk(e,9,u),f++);var w=d.externalMemory;w!==void 0&&(Yk(e,10,w),f++);var A=d.peakMallocedMemory;A!==void 0&&(Yk(e,11,A),f++);var C=d.numberOfNativeContexts;C!==void 0&&(Yk(e,12,C),f++);var E=d.numberOfDetachedContexts;E!==void 0&&(Yk(e,13,E),f++);var H=[f===Object.keys(d).length,e];break a}catch(P){Y(P);H=[!1,void 0];break a}}d=H;d[0]&&(jk(b,Yna,1,dOa,d[1]),c++)}var L=a.quickjsStats;if(L){a:{var N=new Xna;d=0;try{var Q=L.mallocSize;Q!==void 0&&(Yk(N,
        1,Q),d++);var da=L.mallocLimit;da!==void 0&&(Yk(N,2,da),d++);var na=L.memoryUsedSize;na!==void 0&&(Yk(N,3,na),d++);var qa=L.mallocCount;qa!==void 0&&(Yk(N,4,qa),d++);var ha=L.memoryUsedCount;ha!==void 0&&(Yk(N,5,ha),d++);var ta=[d===Object.keys(L).length,N];break a}catch(P){Y(P);ta=[!1,void 0];break a}}L=ta;L[0]&&(jk(b,Xna,2,dOa,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(P){return Y(P),[!1,void 0]}};
    xNa=function(a){var b=new Zy,c=0;try{var d=a.index;d!==void 0&&(Xk(b,1,d),c++);var e=a.networkEventType;e!==void 0&&(T(b,2,eOa[e]),c++);var f=a.path;f!==void 0&&(S(b,3,f),c++);var h=a.failureReason;h!==void 0&&(T(b,4,fOa[h]),c++);var l=a.startTimeMs;l!==void 0&&(Xk(b,5,l),c++);var m=a.totalDurationMs;m!==void 0&&(Xk(b,6,m),c++);var n=a.requestSize;n!==void 0&&(Xk(b,7,n),c++);var p=a.responseSize;p!==void 0&&(Xk(b,8,p),c++);var q=a.networkRequestAttempt;q&&(XN(b.j.bind(b),q,gOa),c++);var r=a.httpMethod;
        r!==void 0&&(T(b,10,hOa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}};
    gOa=function(a){var b=new Yy,c=0;try{var d=a.failureReason;d!==void 0&&(T(b,1,fOa[d]),c++);var e=a.startTimeMs;e!==void 0&&(Xk(b,5,e),c++);var f=a.durationMs;f!==void 0&&(Xk(b,2,f),c++);var h=a.networkAvailable;h!==void 0&&(T(b,3,iOa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
    zNa=function(a){var b=new Qoa,c=0;try{var d=a.threadPoolName;d!==void 0&&(S(b,1,d),c++);var e=a.threadCount;e!==void 0&&(Vk(b,2,e),c++);var f=a.startedTaskCount;f!==void 0&&(Vk(b,3,f),c++);var h=a.finishedTaskCount;h!==void 0&&(Vk(b,4,h),c++);var l=a.runningTimeMs;l!==void 0&&(Xk(b,5,l),c++);var m=a.waitingTimeMs;m!==void 0&&(Xk(b,6,m),c++);var n=a.runCount;n!==void 0&&(Xk(b,7,n),c++);var p=a.runningPercent;p!==void 0&&(Vk(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
    CNa=function(a){var b=new Ioa,c=0;try{var d=a.curveTimestampMs;d!==void 0&&(Xk(b,1,d),c++);var e=a.curveWeight;e!==void 0&&(Zk(b,2,e),c++);var f=a.realTimestampMs;f!==void 0&&(Xk(b,3,f),c++);var h=a.sampleCostUsec;h!==void 0&&(Xk(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=hO(l);m[0]&&(ik(b,my,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
    JNa=function(a){var b=new xpa,c=0;try{var d=a.itag;d!==void 0&&(Vk(b,1,d),c++);var e=a.startingByte;e!==void 0&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    pOa=function(a){var b=new $z,c=0;try{var d=a.id;d!==void 0&&(S(b,1,d),c++);var e=a.videoState;e!==void 0&&(T(b,2,jOa[e]),c++);var f=a.pendingStateFlags;f!==void 0&&(Wk(b,3,f),c++);var h=a.totalBytes;h!==void 0&&(Xk(b,21,h),c++);var l=a.downloadedBytes;l!==void 0&&(Xk(b,4,l),c++);var m=a.selectedVideoQuality;m!==void 0&&(T(b,5,GNa[m]),c++);var n=a.selectedOfflineMode;n!==void 0&&(T(b,6,ENa[n]),c++);var p=a.playerResponseSavedTimeMs;p!==void 0&&(Xk(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;q!==void 0&&
    (Xk(b,8,q),c++);var r=a.offlineStateExpiresInS;r!==void 0&&(Xk(b,9,r),c++);var t=a.durationInS;t!==void 0&&(Xk(b,10,t),c++);var u=a.isInPlaylist;u!==void 0&&(Uk(b,11,u),c++);var w=a.addedNetworkType;w!==void 0&&(T(b,12,iO[w]),c++);var A=a.downloadCompletedNetworkType;A!==void 0&&(T(b,13,iO[A]),c++);var C=a.captions;C&&(XN(b.j.bind(b),C,kOa),c++);var E=a.unusedOfflineVideoPendingState;E!==void 0&&(T(b,15,INa[E]),c++);var H=a.lastPlaybackTimestampMs;H!==void 0&&(Xk(b,16,H),c++);var L=a.offlineSuspendedStates;
        L&&(XN(b.B.bind(b),L,lOa),c++);var N=a.streamInLocalStorage;N!==void 0&&(Uk(b,18,N),c++);var Q=a.streamInInternalStorage;Q!==void 0&&(Uk(b,19,Q),c++);var da=a.storageIdStates;if(da){a:{var na=new yqa;d=0;try{var qa=da.storageId;qa!==void 0&&(Wk(na,1,qa),d++);var ha=da.storageIdSourceType;ha!==void 0&&(T(na,2,mOa[ha]),d++);var ta=[d===Object.keys(da).length,na];break a}catch(Sa){Y(Sa);ta=[!1,void 0];break a}}da=ta;da[0]&&(ik(b,yqa,20,da[1]),c++)}var P=a.cotn;P!==void 0&&(S(b,22,P),c++);var ua=a.additionalVideoClientState;
        if(ua){a:{var y=new vqa;P=0;try{var Z=ua.musicAppAdditionalVideoClientState;if(Z){b:{var cb=new uqa;da=0;try{var La=Z.episodePublishedTimeMs;La!==void 0&&(Xk(cb,1,La),da++);var $a=[da===Object.keys(Z).length,cb];break b}catch(Sa){Y(Sa);$a=[!1,void 0];break b}}Z=$a;Z[0]&&(ik(y,uqa,1,Z[1]),P++)}var Ya=[P===Object.keys(ua).length,y];break a}catch(Sa){Y(Sa);Ya=[!1,void 0];break a}Ya=void 0}ua=Ya;ua[0]&&(ik(b,vqa,23,ua[1]),c++)}var Ha=a.offlineVideoEntityMigrationState;if(Ha){a:{var Ta=new Zz;ua=0;try{var ob=
            Ha.isInOfflineStore;ob!==void 0&&(Uk(Ta,1,ob),ua++);var B=Ha.isPlaybackDataEntityPresent;B!==void 0&&(Uk(Ta,2,B),ua++);var F=Ha.wasPlaybackDataEntityUsedToFillVideoState;F!==void 0&&(Uk(Ta,3,F),ua++);var D=Ha.isTransferEntityPresent;D!==void 0&&(Uk(Ta,4,D),ua++);var J=Ha.wasTransferEntityUsedToFillVideoState;J!==void 0&&(Uk(Ta,5,J),ua++);var K=Ha.offlineStoreCaptionTrackCount;K!==void 0&&(Vk(Ta,6,K),ua++);var aa=Ha.entityStoreCaptionTrackCount;aa!==void 0&&(Vk(Ta,7,aa),ua++);var fa=Ha.isMetadataEntityPresent;
            fa!==void 0&&(Uk(Ta,8,fa),ua++);var ia=Ha.transferDiffFields;ia!==void 0&&(YN(Ta.j.bind(Ta),ia,nOa),ua++);var O=[ua===Object.keys(Ha).length,Ta];break a}catch(Sa){Y(Sa);O=[!1,void 0];break a}}Ha=O;Ha[0]&&(ik(b,Zz,24,Ha[1]),c++)}var ka=a.lastProgressTimeMs;ka!==void 0&&(Xk(b,25,ka),c++);var la=a.initialProgressTimeMs;la!==void 0&&(Xk(b,26,la),c++);var za=a.offlinePlaybackDisabledReason;za!==void 0&&(T(b,27,oOa[za]),c++);return[c===Object.keys(a).length,b]}catch(Sa){return Y(Sa),[!1,void 0]}};
    kOa=function(a){var b=new wqa,c=0;try{var d=a.format;d!==void 0&&(Vk(b,1,d),c++);var e=a.isDownloaded;e!==void 0&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    lOa=function(a){var b=new xqa,c=0;try{var d=a.totalDownloadedBytes;d!==void 0&&(Xk(b,1,d),c++);var e=a.totalSegmentCount;e!==void 0&&(Xk(b,2,e),c++);var f=a.backgroundTransitionCount;f!==void 0&&(Xk(b,3,f),c++);var h=a.totalDurationMs;h!==void 0&&(Xk(b,4,h),c++);var l=a.downloadErrorCount;l!==void 0&&(Vk(b,5,l),c++);var m=a.totalDownloadedSizePercent;m!==void 0&&(Wk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
    rOa=function(a){var b=new Yz,c=0;try{var d=a.id;d!==void 0&&(S(b,1,d),c++);var e=a.videoIds;e&&(XN(b.j.bind(b),e),c++);var f=a.videoCount;f!==void 0&&(Vk(b,3,f),c++);var h=a.successCount;h!==void 0&&(Vk(b,4,h),c++);var l=a.failCount;l!==void 0&&(Vk(b,5,l),c++);var m=a.pendingCount;m!==void 0&&(Vk(b,6,m),c++);var n=a.disabledCount;n!==void 0&&(Vk(b,7,n),c++);var p=a.deletedCount;p!==void 0&&(Vk(b,8,p),c++);var q=a.selectedVideoQuality;q!==void 0&&(T(b,9,GNa[q]),c++);var r=a.isPlaylistOwner;r!==void 0&&
    (Uk(b,10,r),c++);var t=a.lastSyncTimeMs;t!==void 0&&(Xk(b,11,t),c++);var u=a.requestSource;u!==void 0&&(T(b,12,qOa[u]),c++);var w=a.additionalPlaylistClientState;if(w){a:{var A=new tqa;d=0;try{var C=w.musicAppAdditionalPlaylistClientState;if(C){b:{var E=new sqa;e=0;try{var H=C.isPodcastShow;H!==void 0&&(Uk(E,1,H),e++);var L=[e===Object.keys(C).length,E];break b}catch(Q){Y(Q);L=[!1,void 0];break b}}C=L;C[0]&&(ik(A,sqa,1,C[1]),d++)}var N=[d===Object.keys(w).length,A];break a}catch(Q){Y(Q);N=[!1,void 0];
        break a}N=void 0}w=N;w[0]&&(ik(b,tqa,13,w[1]),c++)}return[c===Object.keys(a).length,b]}catch(Q){return Y(Q),[!1,void 0]}};
    uOa=function(a){var b=new Uz,c=0;try{var d=a.videoId;d!==void 0&&(b.setVideoId(d),c++);var e=a.itag;e!==void 0&&(Wk(b,6,e),c++);var f=a.failureReason;f!==void 0&&(T(b,2,sOa[f]),c++);var h=a.isCachedExternally;h!==void 0&&(Uk(b,3,h),c++);var l=a.previousFailureReason;l!==void 0&&(T(b,4,sOa[l]),c++);var m=a.previousFailureReasonTimestampMs;m!==void 0&&(Yk(b,5,m),c++);var n=a.streamVerificationStrategy;n!==void 0&&(T(b,7,jO[n]),c++);var p=a.blockSizeBytes;p!==void 0&&(Vk(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
        q&&(XN(b.j.bind(b),q,tOa),c++);var r=a.primaryVerificationStrategy;r!==void 0&&(T(b,10,jO[r]),c++);var t=a.secondaryVerificationStrategy;t!==void 0&&(T(b,11,jO[t]),c++);var u=a.secondaryFailureReason;u!==void 0&&(T(b,12,sOa[u]),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
    tOa=function(a){var b=new pqa,c=0;try{var d=a.itag;d!==void 0&&(Vk(b,1,d),c++);var e=a.startingByte;e!==void 0&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    vOa=function(a){var b=new Wz,c=0;try{var d=a.videoId;d!==void 0&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;e!==void 0&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    wOa=function(a){var b=new qqa,c=0;try{var d=a.externalVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.videoSid;e!==void 0&&(Xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    EOa=function(a){var b=new Px,c=0;try{var d=a.opportunityData;if(d){a:{var e=new ioa,f=0;try{var h=d.debugData;if(h){b:{var l=new Lx,m=0;try{var n=h.slots;n&&(XN(l.j.bind(l),n,xOa),m++);var p=h.associatedSlotId;p!==void 0&&(S(l,2,p),m++);var q=[m===Object.keys(h).length,l];break b}catch(Ub){Y(Ub);q=[!1,void 0];break b}}h=q;h[0]&&(ik(e,Lx,2,h[1]),f++)}var r=d.opportunityType;r!==void 0&&(T(e,3,yOa[r]),f++);var t=[f===Object.keys(d).length,e];break a}catch(Ub){Y(Ub);t=[!1,void 0];break a}t=void 0}d=
        t;d[0]&&(ik(b,ioa,1,d[1]),c++)}var u=a.slotData;if(u){var w=xOa(u);w[0]&&(ik(b,Kx,2,w[1]),c++)}var A=a.layoutData;if(A){a:{var C=new Ix;u=0;try{var E=A.type;E!==void 0&&(T(C,2,zOa[E]),u++);var H=A.debugData;if(H){b:{var L=new Hx;E=0;try{var N=H.layoutId;N!==void 0&&(S(L,1,N),E++);var Q=H.exitNormalTriggerData;Q&&(XN(L.l7.bind(L),Q,kO),E++);var da=H.exitSkipTriggerData;da&&(XN(L.m7.bind(L),da,kO),E++);var na=H.exitMuteTriggerData;na&&(XN(L.k7.bind(L),na,kO),E++);var qa=H.exitUserInputSubmittedTriggerData;
        qa&&(XN(L.o7.bind(L),qa,kO),E++);var ha=H.exitUserCancelledTriggerData;ha&&(XN(L.n7.bind(L),ha,kO),E++);var ta=[E===Object.keys(H).length,L];break b}catch(Ub){Y(Ub);ta=[!1,void 0];break b}}H=ta;H[0]&&(ik(C,Hx,3,H[1]),u++)}var P=A.controlFlowManagerLayer;P!==void 0&&(T(C,4,AOa[P]),u++);var ua=A.pingTriggerTypes;ua!==void 0&&(YN(C.j.bind(C),ua,lO),u++);var y=[u===Object.keys(A).length,C];break a}catch(Ub){Y(Ub);y=[!1,void 0];break a}y=void 0}A=y;A[0]&&(ik(b,Ix,3,A[1]),c++)}var Z=a.triggerData;if(Z){var cb=
        kO(Z);cb[0]&&(ik(b,Gx,4,cb[1]),c++)}var La=a.pingData;if(La){a:{var $a=new Ox;Z=0;try{var Ya=La.sourceTriggerType;Ya!==void 0&&(T($a,1,lO[Ya]),Z++);var Ha=La.debugData;Ha&&(XN($a.j.bind($a),Ha,BOa),Z++);var Ta=La.pingCount;Ta!==void 0&&(Vk($a,3,Ta),Z++);var ob=La.pingDispatchStatus;ob!==void 0&&(T($a,4,COa[ob]),Z++);var B=La.serializedAdPingMetadata;B!==void 0&&(al($a,5,B),Z++);var F=La.pingDebugData;if(F){b:{var D=new Nx;Ya=0;try{var J=F.substitutedMacros;J!==void 0&&(YN(D.j.bind(D),J,DOa),Ya++);
        var K=F.unsubstitutedMacros;K!==void 0&&(YN(D.B.bind(D),K,DOa),Ya++);var aa=[Ya===Object.keys(F).length,D];break b}catch(Ub){Y(Ub);aa=[!1,void 0];break b}}F=aa;F[0]&&(ik($a,Nx,6,F[1]),Z++)}var fa=La.pingIndex;fa!==void 0&&(Vk($a,8,fa),Z++);var ia=[Z===Object.keys(La).length,$a];break a}catch(Ub){Y(Ub);ia=[!1,void 0];break a}ia=void 0}La=ia;La[0]&&(ik(b,Ox,6,La[1]),c++)}var O=a.externalContext;if(O){a:{var ka=new foa;La=0;try{var la=O.organicPlaybackContext;if(la){b:{var za=new Fx;ia=0;try{var Sa=
        la.contentCpn;Sa!==void 0&&(S(za,1,Sa),ia++);var gb=la.isLivePlayback;gb!==void 0&&(Uk(za,2,gb),ia++);var Ab=la.isOfflinePlayback;Ab!==void 0&&(Uk(za,3,Ab),ia++);var pb=la.isMdxPlayback;pb!==void 0&&(Uk(za,4,pb),ia++);var Za=la.isDaiContent;Za!==void 0&&(Uk(za,5,Za),ia++);var qc=la.isPrefetchedPlayback;qc!==void 0&&(Uk(za,6,qc),ia++);var $b=[ia===Object.keys(la).length,za];break b}catch(Ub){Y(Ub);$b=[!1,void 0];break b}}la=$b;la[0]&&(ik(ka,Fx,1,la[1]),La++)}var ac=O.html5ExperimentContext;if(ac){b:{var kc=
        new eoa;la=0;try{var Vc=ac.ytExperimentId;Vc!==void 0&&(Vk(kc,1,Vc),la++);var Wb=[la===Object.keys(ac).length,kc];break b}catch(Ub){Y(Ub);Wb=[!1,void 0];break b}}ac=Wb;ac[0]&&(ik(ka,eoa,2,ac[1]),La++)}var wc=O.adVideoPlaybackContext;if(wc){b:{var $c=new doa;ac=0;try{var Qc=wc.adVideoCpn;Qc!==void 0&&(S($c,1,Qc),ac++);var uc=[ac===Object.keys(wc).length,$c];break b}catch(Ub){Y(Ub);uc=[!1,void 0];break b}}wc=uc;wc[0]&&(ik(ka,doa,3,wc[1]),La++)}var Tb=[La===Object.keys(O).length,ka];break a}catch(Ub){Y(Ub);
        Tb=[!1,void 0];break a}Tb=void 0}O=Tb;O[0]&&(ik(b,foa,5,O[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ub){return Y(Ub),[!1,void 0]}};
    xOa=function(a){var b=new Kx,c=0;try{var d=a.type;d!==void 0&&(T(b,2,FOa[d]),c++);var e=a.entryTriggerType;e!==void 0&&(T(b,6,lO[e]),c++);var f=a.slotPhysicalPosition;f!==void 0&&(Vk(b,8,f),c++);var h=a.debugData;if(h){a:{var l=new Jx;d=0;try{var m=h.slotId;m!==void 0&&(S(l,1,m),d++);var n=h.entryTriggerTypes;n!==void 0&&(YN(l.B.bind(l),n,lO),d++);var p=h.unscheduledDueToError;p!==void 0&&(Uk(l,3,p),d++);var q=h.entryTriggerData;q&&(XN(l.j.bind(l),q,kO),d++);var r=h.slotEntryTriggerData;if(r){var t=
        kO(r);t[0]&&(ik(l,Gx,7,t[1]),d++)}var u=h.fulfillmentTriggerData;u&&(XN(l.D.bind(l),u,kO),d++);var w=h.expirationTriggerData;w&&(XN(l.C.bind(l),w,kO),d++);var A=[d===Object.keys(h).length,l];break a}catch(H){Y(H);A=[!1,void 0];break a}A=void 0}h=A;h[0]&&(ik(b,Jx,3,h[1]),c++)}var C=a.externallyManaged;C!==void 0&&(Uk(b,4,C),c++);var E=a.controlFlowManagerLayer;E!==void 0&&(T(b,5,AOa[E]),c++);return[c===Object.keys(a).length,b]}catch(H){return Y(H),[!1,void 0]}};
    kO=function(a){var b=new Gx,c=0;try{var d=a.type;d!==void 0&&(T(b,1,lO[d]),c++);var e=a.category;e!==void 0&&(T(b,2,GOa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){a:{var h=new goa;d=0;try{var l=f.enteredLayoutId;l!==void 0&&(S(h,1,l),d++);var m=[d===Object.keys(f).length,h];break a}catch(w){Y(w);m=[!1,void 0];break a}}f=m;f[0]&&(jk(b,goa,3,HOa,f[1]),c++)}var n=a.triggerSourceData;if(n){a:{var p=new hoa;f=0;try{var q=n.associatedSlotId;q!==void 0&&(bk(p,1,IOa,$i(q)),f++);var r=n.associatedLayoutId;
        r!==void 0&&(bk(p,2,IOa,$i(r)),f++);var t=[f===Object.keys(n).length,p];break a}catch(w){Y(w);t=[!1,void 0];break a}}n=t;n[0]&&(jk(b,hoa,4,HOa,n[1]),c++)}var u=a.shouldOnlyTriggerOnce;u!==void 0&&(Uk(b,5,u),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
    BOa=function(a){var b=new Mx,c=0;try{var d=a.macros;d!==void 0&&(YN(b.j.bind(b),d,DOa),c++);var e=a.success;e!==void 0&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    KOa=function(a){var b=new aoa,c=0;try{var d=a.cui;if(d){var e=new $na;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}d=f;d[0]&&(ik(b,$na,1,d[1]),c++)}var h=a.step;h!==void 0&&(T(b,2,JOa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
    LOa=function(a){var b=new gy,c=0;try{var d=a.startMs;d!==void 0&&(Zk(b,1,d),c++);var e=a.endMs;e!==void 0&&(Zk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    MOa=function(a){var b=new joa,c=0;try{var d=a.externalVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.originalMediaDurationMs;e!==void 0&&(Xk(b,2,e),c++);var f=a.trimmedMediaDurationMs;f!==void 0&&(Xk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
    NOa=function(a){var b=new oz,c=0;try{var d=a.orchestrationActionId;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    OOa=function(a){var b=new wz,c=0;try{var d=a.answerId;d!==void 0&&(Vk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
    ROa=function(a){var b=new sz,c=0;try{var d=a.ypcCallerPage;d!==void 0&&(T(b,1,POa[d]),c++);var e=a.useCase;e!==void 0&&(T(b,2,QOa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
    WOa=function(a){var b=new Bz,c=0;try{var d=a.itemId;if(d){a:{var e=new Dx,f=0;try{var h=d.type;h!==void 0&&(T(e,1,mO[h]),f++);var l=d.externalId;l!==void 0&&(S(e,2,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(C){Y(C);m=[!1,void 0];break a}}d=m;d[0]&&(ik(b,Dx,1,d[1]),c++)}var n=a.productType;n!==void 0&&(T(b,2,nO[n]),c++);var p=a.originatingDeviceInterface;p!==void 0&&(T(b,4,WMa[p]),c++);var q=a.alcLoggingParams;if(q){a:{var r=new Rpa;n=0;try{var t=q.purchaseOriginEntityType;t!==void 0&&
    (T(r,1,SOa[t]),n++);var u=q.purchaseOriginPageType;u!==void 0&&(T(r,2,TOa[u]),n++);var w=q.purchaseOriginComponent;w!==void 0&&(T(r,3,UOa[w]),n++);var A=[n===Object.keys(q).length,r];break a}catch(C){Y(C);A=[!1,void 0];break a}}q=A;q[0]&&(jk(b,Rpa,3,VOa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
    zPa=function(a){var b=new ez,c=0;try{var d=a.dimensions;if(d){a:{var e=new Zoa,f=0;try{var h=d.csn;h!==void 0&&(S(e,1,h),f++);var l=d.userExperienceId;l!==void 0&&(Vk(e,2,l),f++);var m=d.studio;if(m){b:{var n=new cz,p=0;try{var q=m.route;q!==void 0&&(S(n,1,q),p++);var r=m.feature;r!==void 0&&(T(n,2,XOa[r]),p++);var t=m.topEntityType;t!==void 0&&(T(n,3,YOa[t]),p++);var u=m.availability;u!==void 0&&(T(n,4,ZOa[u]),p++);var w=m.isChannelDelegation;w!==void 0&&(Uk(n,5,w),p++);var A=m.isArtistDelegation;
        A!==void 0&&(Uk(n,6,A),p++);var C=m.environment;C!==void 0&&(T(n,7,$Oa[C]),p++);var E=m.networkConnectionStatus;E!==void 0&&(T(n,8,aPa[E]),p++);var H=[p===Object.keys(m).length,n];break b}catch(oc){Y(oc);H=[!1,void 0];break b}}var L=H;L[0]&&(ik(e,cz,3,L[1]),f++)}var N=d.mweb;if(N){b:{var Q=new Woa,da=0;try{var na=N.pageType;na!==void 0&&(T(Q,1,bPa[na]),da++);var qa=N.navType;qa!==void 0&&(T(Q,2,cPa[qa]),da++);var ha=[da===Object.keys(N).length,Q];break b}catch(oc){Y(oc);ha=[!1,void 0];break b}}var ta=
        ha;ta[0]&&(ik(e,Woa,4,ta[1]),f++)}var P=d.mainAppWeb;if(P){b:{var ua=new Voa,y=0;try{var Z=P.pageType;Z!==void 0&&(T(ua,1,dPa[Z]),y++);var cb=P.requestType;cb!==void 0&&(T(ua,2,ePa[cb]),y++);var La=P.isShellLoad;La!==void 0&&(Uk(ua,3,La),y++);var $a=[y===Object.keys(P).length,ua];break b}catch(oc){Y(oc);$a=[!1,void 0];break b}}var Ya=$a;Ya[0]&&(ik(e,Voa,5,Ya[1]),f++)}var Ha=d.survivalSli;if(Ha){b:{var Ta=new Toa,ob=0;try{var B=Ha.partitionMinute;B!==void 0&&(Vk(Ta,1,B),ob++);var F=Ha.survivalStatus;
        F!==void 0&&(T(Ta,2,fPa[F]),ob++);var D=Ha.survivalSessionType;D!==void 0&&(T(Ta,3,gPa[D]),ob++);var J=[ob===Object.keys(Ha).length,Ta];break b}catch(oc){Y(oc);J=[!1,void 0];break b}}var K=J;K[0]&&(ik(e,Toa,6,K[1]),f++)}var aa=d.tvhtml5;if(aa){b:{var fa=new Xoa,ia=0;try{var O=aa.authRefreshTokenFailureType;O!==void 0&&(T(fa,1,hPa[O]),ia++);var ka=aa.networkErrorEndpoint;ka!==void 0&&(T(fa,2,iPa[ka]),ia++);var la=aa.networkErrorResponseCode;la!==void 0&&(Vk(fa,3,la),ia++);var za=aa.sessionSurvivalLengthMin;
        za!==void 0&&(Vk(fa,4,za),ia++);var Sa=aa.accountChangeType;Sa!==void 0&&(T(fa,5,jPa[Sa]),ia++);var gb=aa.accountChangeTrigger;gb!==void 0&&(T(fa,6,kPa[gb]),ia++);var Ab=aa.cpn;Ab!==void 0&&(S(fa,7,Ab),ia++);var pb=aa.sessionSurvivalDidUserAgentChange;pb!==void 0&&(Uk(fa,8,pb),ia++);var Za=aa.adShownToPremiumUserCondition;Za!==void 0&&(T(fa,9,lPa[Za]),ia++);var qc=aa.identityType;qc!==void 0&&(T(fa,10,mPa[qc]),ia++);var $b=aa.identityDelegationType;$b!==void 0&&(T(fa,11,nPa[$b]),ia++);var ac=aa.botguardServerEnvironment;
        ac!==void 0&&(T(fa,12,oPa[ac]),ia++);var kc=aa.accountEventTrigger;kc!==void 0&&(T(fa,13,pPa[kc]),ia++);var Vc=aa.signInMethodType;Vc!==void 0&&(T(fa,14,qPa[Vc]),ia++);var Wb=aa.accountEventErrorType;Wb!==void 0&&(T(fa,15,rPa[Wb]),ia++);var wc=aa.hadRemoteDeviceConnected;wc!==void 0&&(Uk(fa,16,wc),ia++);var $c=aa.hadVoiceInitiatedPlayback;$c!==void 0&&(Uk(fa,17,$c),ia++);var Qc=aa.restartLengthMin;Qc!==void 0&&(Vk(fa,18,Qc),ia++);var uc=aa.restartReason;uc!==void 0&&(T(fa,19,sPa[uc]),ia++);var Tb=
            aa.numberOfPersonaAccountsDelta;Tb!==void 0&&(Vk(fa,20,Tb),ia++);var Ub=aa.accountEventCancellationType;Ub!==void 0&&(T(fa,21,tPa[Ub]),ia++);var yd=aa.maxJsMemoryPerAppLifecycleBytes;yd!==void 0&&(Vk(fa,22,yd),ia++);var pd=aa.appLifecycleLengthMin;pd!==void 0&&(Vk(fa,23,pd),ia++);var qd=[ia===Object.keys(aa).length,fa];break b}catch(oc){Y(oc);qd=[!1,void 0];break b}}var Zb=qd;Zb[0]&&(ik(e,Xoa,7,Zb[1]),f++)}var Ec=d.unpluggedWeb;if(Ec){b:{var Hb=new Yoa,cd=0;try{var zd=Ec.unpluggedWebEntitlementType;
        zd!==void 0&&(T(Hb,1,uPa[zd]),cd++);var Pb=Ec.unpluggedWebPurchaseType;Pb!==void 0&&(T(Hb,2,vPa[Pb]),cd++);var ge=[cd===Object.keys(Ec).length,Hb];break b}catch(oc){Y(oc);ge=[!1,void 0];break b}}var Ud=ge;Ud[0]&&(ik(e,Yoa,8,Ud[1]),f++)}var Vd=d.logEventStatus;Vd!==void 0&&(Vk(e,9,Vd),f++);var Ce=d.kids;if(Ce){b:{var De=new Uoa,Ld=0;try{var $e=Ce.userType;$e!==void 0&&(T(De,1,wPa[$e]),Ld++);var Oe=[Ld===Object.keys(Ce).length,De];break b}catch(oc){Y(oc);Oe=[!1,void 0];break b}}var Md=Oe;Md[0]&&(ik(e,
        Uoa,10,Md[1]),f++)}var zf=d.screen;zf!==void 0&&(Vk(e,11,zf),f++);var Nd=d.navigation;if(Nd){b:{var he=new Soa,rd=0;try{var Hd=Nd.destinationScreen;Hd!==void 0&&(Vk(he,1,Hd),rd++);var sd=Nd.navType;sd!==void 0&&(T(he,2,xPa[sd]),rd++);var Od=[rd===Object.keys(Nd).length,he];break b}catch(oc){Y(oc);Od=[!1,void 0];break b}}var kg=Od;kg[0]&&(ik(e,Soa,12,kg[1]),f++)}var af=[f===Object.keys(d).length,e];break a}catch(oc){Y(oc);af=[!1,void 0];break a}af=void 0}var Pf=af;Pf[0]&&(ik(b,Zoa,1,Pf[1]),c++)}var Wc=
        a.records;Wc&&(XN(b.j.bind(b),Wc,yPa),c++);return[c===Object.keys(a).length,b]}catch(oc){return Y(oc),[!1,void 0]}};
    yPa=function(a){var b=new dz,c=0;try{var d=a.name;d!==void 0&&(T(b,1,APa[d]),c++);var e=a.status;e!==void 0&&(T(b,2,BPa[e]),c++);var f=a.state;f!==void 0&&(b.Hc(CPa[f]),c++);var h=a.sliId;h!==void 0&&(S(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
    oO=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
    pO=function(){oO.instance||(oO.instance=new oO);return oO.instance};
    qO=function(){};
    rO=function(){this.N=[];this.Z=[];this.j=[];this.ra=[];this.G=[];this.Y=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ca=new Map};
    sO=function(){rO.instance||(rO.instance=new rO);return rO.instance};
    tO=function(a,b,c,d){d=d===void 0?{}:d;g.kA(function(){DPa.includes(b)||(g.kE(new g.CB("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.ra=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.DX?EPa(a,b,c,d):FPa(a,b,c,d)})()};
    GPa=function(a,b,c){c=c===void 0?0:c;g.kA(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.gE(c),f=g.fE(c);if(e&&f){var h;(d==null?0:(h=d.response)==null?0:h.trackingParams)&&g.tE(a.client,e,f,g.eE(d.response.trackingParams));var l;(d==null?0:(l=d.playerResponse)==null?0:l.trackingParams)&&g.tE(a.client,e,f,g.eE(d.playerResponse.trackingParams))}})})()};
    CO=function(a){var b=sO();g.kA(function(){var c=g.eE(a);BO(b,c);return c})()};
    BO=function(a,b,c,d){d=d===void 0?0:d;g.kA(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.gE(d),f=c||g.fE(d);if(e&&f){if(g.CA("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.K.set(f.toString(),f),a.C.set(f.toString(),[b]));a.qa||(a.qa=g.LB(0,function(){HPa(a,e)},1200))}else g.tE(a.client,e,f,b);
        return!0}return!1})()};
    IPa=function(a,b,c,d){d=d===void 0?0:d;var e=g.gE(d);d=b||g.fE(d);e&&d&&(a=a.client,b=rE({cttAuthInfo:hE(e)||void 0},e),g.CA("il_via_jspb")?(c=new Nz,c.j(e),d=d.getAsJspb(),ik(c,iz,2,d),e==="UNDEFINED_CSN"?vE("visualElementStateChanged",b,void 0,c):cxa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},e==="UNDEFINED_CSN"?vE("visualElementStateChanged",b,c):a?ZD("visualElementStateChanged",c,a,b):g.SB("visualElementStateChanged",c,b)))};
    EPa=function(a,b,c,d){d=d===void 0?{}:d;a.B.add(d.layer||0);a.D=function(){FPa(a,b,c,d);var h=g.fE(d.layer);if(h){for(var l=g.v(a.N),m=l.next();!m.done;m=l.next())m=m.value,BO(a,m[0],m[1]||h,d.layer);h=g.v(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,IPa(a,l[0],l[1])}};
        c||g.gE(d.layer)||a.D();if(d.DX)for(var e=g.v(d.DX),f=e.next();!f.done;f=e.next())GPa(a,f.value,d.layer);else g.jE(Error("Delayed screen needs a data promise."))};
    FPa=function(a,b,c,d){d=d===void 0?{}:d;var e=void 0;d.layer||(d.layer=0);e=d.parentLayer!==void 0?d.parentLayer:d.layer;var f=g.gE(e);e=g.fE(e);var h=c||e,l;h&&(d.parentCsn!==void 0?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&f!=="UNDEFINED_CSN"&&(l={clientScreenNonce:f,visualElement:h}));var m,n=g.gA("EVENT_ID");f==="UNDEFINED_CSN"&&n&&(m={servletData:{serializedServletEventId:n}});g.CA("combine_ve_grafts")&&f&&HPa(a,f);g.CA("no_client_ve_attach_unless_shown")&&h&&f&&dya(h,f);try{var p=
        bya(a.client,b,l,d.zX,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){Qxa(t,{dH:b,rootVe:e,orb:c,kpb:f,nrb:l,zX:d.zX});g.jE(t);return}sxa(p,b,d.layer,d.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&e&&!pxa(f)&&gya(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=p||"");g.FG({clientScreenNonce:p});qO.instance||(qO.instance=new qO);g.kA(pO().j).bind(pO())();var q=g.fE(d.layer);f&&f!=="UNDEFINED_CSN"&&q&&(g.CA("web_mark_root_visible")||g.CA("music_web_mark_root_visible"))&&
    g.xE(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;(r=a.Ca.get(d.layer))==null||r.forEach(function(t,u){t?BO(a,u,t,d.layer):q&&BO(a,u,q,d.layer)});
        JPa(a)};
    JPa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.jE(d)}}for(b=a.G.length=0;b<a.Y.length;b++){c=a.Y[b];try{c()}catch(d){g.jE(d)}}};
    HPa=function(a,b){if(b===void 0)for(var c=nxa(),d=0;d<c.length;d++)c[d]!==void 0&&HPa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.cya(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.qa=void 0};
    DO=function(){};
    KPa=function(){DO.instance||(DO.instance=new DO);return DO.instance};
    LPa=function(a,b,c){var d=new XMLHttpRequest;if(c==null?0:c.xB)d.onreadystatechange=function(f){c.xB(d,f)};
        var e;d.open((e=b.method)!=null?e:"GET",a,!0);d.responseType="text";d.withCredentials=!0;if(b.headers)for(a=g.v(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.v(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
    EO=function(){};
    MPa=function(){var a=navigator;return new Promise(function(b,c){var d;(d=a.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
    Ksa=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;self.document===void 0||self.addEventListener("beforeunload",function(){c.B=!0});
        this.C=Math.random()<=.2};
    OPa=function(a,b){EO.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:NPa(c==null?void 0:c.usage),deviceStorageQuotaMbytes:NPa(c==null?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
    NPa=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))};
    QPa=function(){g.zB();return g.AB(0,192)?g.AB(0,190):!(g.CA("web_watch_cinematics_disabled_by_default")||g.CA("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&PPa())};
    SPa=function(a){return!RPa||(0,g.fC)()-RPa>a};
    UPa=function(a,b){TPa(a.program,b.lda)&&(IG("bg_i",void 0,"player_att"),g.FO.initialize(a,function(){IG("bg_l",void 0,"player_att");RPa=(0,g.fC)()},b.cspNonce))};
    VPa=function(a){a=a===void 0?{}:a;return g.FO.invoke(a)};
    TPa=function(a,b){return a?g.FO.isLoading()?!1:SPa(b):!1};
    XPa=function(a){a=a.split("");WPa.ru(a,67);WPa.gk(a,33);WPa.gk(a,36);return a.join("")};
    g.YPa=function(a,b){return a.Fa+"timedtext_video?ref=player&v="+b.videoId};
    g.GO=function(a,b){a.feature=b;return a};
    g.ZPa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.FO.isInitialized()){var d="";b.videoData&&b.videoData.ir&&(d=b.videoData.ir+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);IG("bg_v",void 0,"player_att");(d=VPa(d))?(IG("bg_s",void 0,"player_att"),c.push("r1a="+d)):(IG("bg_e",void 0,"player_att"),c.push("r1c=2"))}else IG("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.FO.getState());
        return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^ZG())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.gA("CATSTAT",0)))},a);
        this.videoData&&this.videoData.ir?this.lr=oA(this.videoData.ir):this.lr={}};
    g.$Pa=function(a){if(a.videoData&&a.videoData.ir){for(var b=[a.videoData.ir],c=g.v(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.lr[d]&&a.j[d]&&(d=a.j[d](a.lr))&&b.push(d);return b.join("&")}return null};
    g.aQa=function(a,b){UPa(a,{lda:g.hI(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
    bQa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3};
    HO=function(a){a=a===void 0?2592E3:a;if(a>0&&!(rsa()>(0,g.fC)()-a*1E3))return 0;a=g.vB("yt-player-quality");if(typeof a==="string"){if(a=g.KJ[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0};
    cQa=function(){var a=g.vB("yt-player-proxima-pref");return a==null?null:a};
    dQa=function(){var a=g.vB("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
    eQa=function(){var a={values:{},Kr:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
    fQa=function(a,b,c){c=c===void 0?!1:c;var d=IO();+d[a]>0&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.uB("yt-player-performance-cap",d,c?2592E3:604800))};
    gQa=function(a,b){b=b===void 0?!0:b;var c=IO();return b?+c[a]||8192:c[a]};
    IO=function(){return g.vB("yt-player-performance-cap")||{}};
    hQa=function(){var a;return(a=g.vB("yt-player-performance-cap-active-set"))!=null?a:[]};
    iQa=function(a){(a===void 0?0:a)?(a=hQa().filter(function(b){return b.startsWith("1")}),g.uB("yt-player-performance-cap-active-set",a,2592E3)):g.uB("yt-player-performance-cap-active-set",[],2592E3)};
    jQa=function(a){g.uB("yt-player-watch-later-pending",a)};
    kQa=function(){return!!g.vB("yt-player-headers-readable")};
    lQa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
    g.mQa=function(){var a=g.vB("yt-player-caption-language-preferences");return a?a:[]};
    rQa=function(a,b){PN(a,2,b.qr,nQa,3);PN(a,3,b.wQ,oQa,3);NN(a,4,b.onesieUstreamerConfig);NN(a,9,b.gp);PN(a,10,b.vC,pQa,3);PN(a,15,b.reloadPlaybackParams,qQa,3)};
    uQa=function(a,b){PN(a,1,b.formatId,JO,3);LN(a,2,b.startTimeMs);LN(a,3,b.durationMs);LN(a,4,b.To);LN(a,5,b.vj);PN(a,9,b.Sob,sQa,3);PN(a,11,b.prb,tQa,1);PN(a,12,b.mS,tQa,1)};
    vQa=function(a,b){ON(a,1,b.videoId);LN(a,2,b.lmt)};
    sQa=function(a,b){if(b.HW)for(var c=0;c<b.HW.length;c++)PN(a,1,b.HW[c],vQa,3)};
    JO=function(a,b){LN(a,1,b.itag);LN(a,2,b.lmt);ON(a,3,b.xtags)};
    KO=function(a){return{itag:BN(a,1),lmt:BN(a,2),xtags:EN(a,3)}};
    tQa=function(a,b){LN(a,1,b.rh);LN(a,2,b.rE);LN(a,3,b.uv)};
    wQa=function(a){return{rh:BN(a,1),rE:BN(a,2),uv:BN(a,3)}};
    nQa=function(a,b){LN(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;c!==void 0&&(KN(a,112),KN(a,c<<1^c>>31));LN(a,16,b.m$);LN(a,17,b.detailedNetworkType);LN(a,18,b.D7);LN(a,19,b.C7);LN(a,21,b.lea);LN(a,23,b.t7);LN(a,28,b.vS);LN(a,29,b.Cea);LN(a,34,b.visibility);c=b.playbackRate;if(c!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(c!==void 0)for(KN(a,285),JN(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}LN(a,36,b.f8);
        PN(a,38,b.mediaCapabilities,xQa,3);LN(a,39,b.Bea);LN(a,40,b.Hw);LN(a,44,b.playerState);MN(a,46,b.c8);LN(a,48,b.yy);LN(a,50,b.ww);LN(a,51,b.Jy);LN(a,54,b.Cq);MN(a,56,b.O$);LN(a,57,b.I7);MN(a,58,b.No);LN(a,59,b.qj);LN(a,60,b.Hx);MN(a,61,b.isPrefetch);LN(a,62,b.Jz);NN(a,63,b.sabrLicenseConstraint);LN(a,64,b.o$);LN(a,66,b.n$);LN(a,67,b.Zqb);LN(a,68,b.e_)};
    xQa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c<b.videoFormatCapabilities.length;c++)PN(a,1,b.videoFormatCapabilities[c],yQa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)PN(a,2,b.audioFormatCapabilities[c],zQa,1);LN(a,5,b.hdrModeBitmask)};
    yQa=function(a,b){LN(a,1,b.videoCodec);LN(a,3,b.maxHeight);LN(a,4,b.maxWidth);LN(a,11,b.maxFramerate);LN(a,12,b.maxBitrateBps);MN(a,15,b.is10BitSupported)};
    zQa=function(a,b){LN(a,1,b.audioCodec);LN(a,2,b.numChannels);LN(a,3,b.maxBitrateBps);LN(a,6,b.spatialCapabilityBitmask)};
    pQa=function(a,b){PN(a,1,b.clientInfo,AQa,3);NN(a,2,b.BS);NN(a,3,b.playbackCookie);NN(a,4,b.gp);if(b.ZL)for(var c=0;c<b.ZL.length;c++)PN(a,5,b.ZL[c],BQa,3);if(b.DM)for(c=0;c<b.DM.length;c++)LN(a,6,b.DM[c]);ON(a,7,b.dea);PN(a,8,b.Nca,CQa,3)};
    DQa=function(a,b){var c=b.code;c!==void 0&&(KN(a,8),KN(a,c<<1^c>>31));ON(a,2,b.message)};
    CQa=function(a,b){NN(a,1,b.JB);PN(a,2,b.rrb,DQa,3)};
    BQa=function(a,b){LN(a,1,b.type);NN(a,2,b.value)};
    AQa=function(a,b){ON(a,12,b.deviceMake);ON(a,13,b.deviceModel);LN(a,16,b.clientName);ON(a,17,b.clientVersion);ON(a,18,b.osName);ON(a,19,b.osVersion)};
    EQa=function(a,b){ON(a,1,b.name);ON(a,2,b.value)};
    FQa=function(a,b){ON(a,1,b.url);if(b.nQ)for(var c=0;c<b.nQ.length;c++)PN(a,2,b.nQ[c],EQa,3);NN(a,3,b.postBody);MN(a,4,b.gda);MN(a,6,b.sC)};
    oQa=function(a,b){NN(a,2,b.PX);NN(a,5,b.encryptedClientKey);NN(a,6,b.iv);NN(a,7,b.dZ);MN(a,10,b.C1);MN(a,13,b.OX);MN(a,14,b.aP);NN(a,16,b.Qea);MN(a,17,b.l3)};
    GQa=function(a){return{q0:BN(a,1),fZ:BN(a,2),body:DN(a,4)}};
    HQa=function(a){return{bitrate:BN(a,6),width:BN(a,7),height:BN(a,8),fps:BN(a,25),averageBitrate:BN(a,31),audioSampleRate:BN(a,45),audioChannels:BN(a,46)}};
    qQa=function(a,b){ON(a,1,b.token)};
    IQa=function(a){return{ej:BN(a,1),Z0:BN(a,2)}};
    MQa=function(a,b){PN(a,1,b.qr,nQa,3);if(b.hx)for(var c=0;c<b.hx.length;c++)PN(a,2,b.hx[c],JO,3);if(b.ud)for(c=0;c<b.ud.length;c++)PN(a,3,b.ud[c],uQa,3);NN(a,5,b.videoPlaybackUstreamerConfig);if(b.Lo)for(c=0;c<b.Lo.length;c++)PN(a,6,b.Lo[c],JQa,3);if(b.hH)for(c=0;c<b.hH.length;c++)PN(a,16,b.hH[c],JO,3);if(b.iH)for(c=0;c<b.iH.length;c++)PN(a,17,b.iH[c],JO,3);PN(a,19,b.vC,pQa,3);PN(a,21,b.Zm,KQa,3);LN(a,22,b.zK);LN(a,23,b.wK);if(b.wH)for(c=0;c<b.wH.length;c++)PN(a,1E3,b.wH[c],LQa,3)};
    JQa=function(a,b){PN(a,1,b.formatId,JO,3);LN(a,2,b.Mj);LN(a,3,b.sequenceNumber);PN(a,4,b.vJ,tQa,1);LN(a,5,b.OZ)};
    KQa=function(a,b){if(b.tI)for(var c=0;c<b.tI.length;c++)ON(a,1,b.tI[c]);NN(a,2,b.MW);ON(a,3,b.Gt);LN(a,4,b.T1);LN(a,5,b.n3);ON(a,6,b.o3)};
    LQa=function(a,b){if(b.hx)for(var c=0;c<b.hx.length;c++)PN(a,1,b.hx[c],JO,3);if(b.ud)for(c=0;c<b.ud.length;c++)PN(a,2,b.ud[c],uQa,3);ON(a,3,b.clipId)};
    g.NQa=function(a,b){PN(a,1,b.qr,nQa,3);NN(a,3,b.videoPlaybackUstreamerConfig);PN(a,5,b.vC,pQa,3);PN(a,6,b.Zm,KQa,3)};
    QQa=function(a,b){ON(a,1,b.cpn);LN(a,2,b.sequenceNumber);ON(a,3,b.serializedWatchEndpointLoggingContext);if(b.decoderInfo)for(var c=0;c<b.decoderInfo.length;c++)PN(a,6,b.decoderInfo[c],OQa,3);ON(a,9,b.playerResponseCpn);LN(a,10,b.transitionStitchType);LN(a,12,b.timestampOffsetMsecs);LN(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)PN(a,16,b.remoteConnectedDevices[c],PQa,3);NN(a,17,b.serializedHouseBrandPlayerServiceLoggingContext)};
    OQa=function(a,b){LN(a,1,b.elapsedTimeMs);ON(a,3,b.videoDecoderName)};
    PQa=function(a,b){LN(a,1,b.deviceInterface);ON(a,2,b.deviceVersion);MN(a,3,b.isSleeping)};
    RQa=function(a){return{first:BN(a,1),EZ:BN(a,2)}};
    SQa=function(a){return{itagDenylist:GN(a,1)}};
    UQa=function(a){return{Yqb:HN(a,1,TQa)}};
    TQa=function(a){return{conditions:GN(a,1),crb:BN(a,2)}};
    XQa=function(a){return{Jca:BN(a,1),itag:EN(a,3),B0:FN(a,4,VQa),lmt:BN(a,5),Apb:BN(a,7),xtags:EN(a,15),K$:FN(a,23,WQa),VA:FN(a,34,SQa)}};
    VQa=function(a){return{iv:DN(a,5),c$:CN(a,7)}};
    YQa=function(a){return{s7:GN(a,2),videoId:EN(a,3),oU:BN(a,4)}};
    WQa=function(a){return{videoId:EN(a,2)}};
    ZQa=function(a){return{dK:BN(a,3),eK:BN(a,4),Vca:CN(a,8),Gqb:BN(a,10),arb:BN(a,12),brb:BN(a,13),Vqb:BN(a,14),Wqb:BN(a,15)}};
    $Qa=function(a){return{targetAudioReadaheadMs:BN(a,1),targetVideoReadaheadMs:BN(a,2),backoffTimeMs:BN(a,4),playbackCookie:DN(a,7),videoId:EN(a,8)}};
    aRa=function(a){return{minBandwidthBytesPerSec:BN(a,1),minReadaheadMs:BN(a,2)}};
    bRa=function(a){return{startMinReadaheadPolicy:HN(a,1,aRa),resumeMinReadaheadPolicy:HN(a,2,aRa)}};
    cRa=function(a){return{label:EN(a,1),text:EN(a,2)}};
    dRa=function(a){return{videoId:EN(a,1),formatId:FN(a,2,KO),debugInfo:HN(a,3,cRa)}};
    eRa=function(a){return{A8:HN(a,1,dRa)}};
    fRa=function(a){return{hR:BN(a,1),NK:BN(a,2),minReadaheadMs:BN(a,3)}};
    gRa=function(a){return{E0:BN(a,1),items:HN(a,2,fRa),kq:BN(a,3)}};
    hRa=function(a){return{token:EN(a,1),videoId:EN(a,2)}};
    iRa=function(a){return{Pp:BN(a,1)}};
    jRa=function(a){return{ida:EN(a,1),action:BN(a,2),t1:FN(a,3,iRa)}};
    kRa=function(a){return{ZS:BN(a,1),aT:BN(a,2),seekSource:BN(a,3)}};
    mRa=function(a){return{z2:HN(a,1,lRa),fea:EN(a,2)}};
    nRa=function(a){return{z3:EN(a,1),C0:BN(a,2),v$:BN(a,3),WZ:BN(a,4),XZ:BN(a,5),D0:BN(a,6)}};
    oRa=function(a){return{DK:BN(a,1)}};
    lRa=function(a){return{clipId:EN(a,1),Rq:FN(a,2,nRa),pR:FN(a,3,oRa)}};
    pRa=function(a){return{type:BN(a,1),scope:BN(a,2),value:DN(a,3),sendByDefault:CN(a,4)}};
    qRa=function(a){var b=[];a=g.v(a.split(","));for(var c=a.next();!c.done;c=a.next()){var d=c.value;d&&((c=d.startsWith("!"))&&(d=d.substring(1)),d=d.split("-"),d.length<3||b.push({W1:d[0],platform:d[1],deviceVersion:d[2],hZ:c}))}return b};
    tRa=function(a){return qRa(a).map(function(b){return{deviceInterface:rRa[sRa[b.W1]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.hZ}})};
    g.LO=function(a,b){this.id=a;this.hc=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.hc.id.split(".");a.length>1&&(this.G=a[1]==="2")};
    MO=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.tb=e===void 0?0:e};
    uRa=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!NO||a.tb===b.tb)};
    g.OO=function(a,b,c,d){return new MO(g.KJ[a]||0,g.KJ[b]||0,c,d)};
    PO=function(a){if(NO&&a.tb)return!1;var b=g.KJ.auto;return a.B===b&&a.j===b};
    RO=function(a){return QO[a.j||a.B]||"auto"};
    vRa=function(a,b){b=g.KJ[b];return a.B<=b&&(!a.j||a.j>=b)};
    SO=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
    TO=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;c==null||c({ainfolen:this.j.length});b=g.v(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.hc||a.has(d.hc.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.hc,itag:d.itag,xtag:d.j,lang:((e=d.hc)==null?void 0:e.name)||"",langid:((f=d.hc)==null?void 0:f.id)||""})}else e=new g.LO(d.id,d.hc),a.add(d.hc.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}};
    wRa=function(){g.I.apply(this,arguments);this.j=null};
    ARa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(UO(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.qb]=[a.info]);return n}p=xRa(b,d,l);f&&e({aftsrt:VO(p)});for(var q={},r=g.v(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.v(p[t]),w=u.next();!w.done;w=u.next()){w=w.value;var A=w.itag,C=void 0,E=t+"_"+(((C=w.video)==null?void 0:C.fps)||0);q.hasOwnProperty(E)?q[E]===!0?n[t].push(w):l[A]=q[E]:(C=WO(b,w,c,d.isLive,m),C!==!0?(h.add(t),l[A]=C,
    C==="disablevp9hfr"&&(q[E]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(w),q[E]=!0))}}f&&e({bfflt:VO(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].Ag()&&(n[d]=n[d],n[d]=yRa(b,n[d],l),n[d]=zRa(n[d],l)));f&&e(l);b=g.v(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.n1;f&&e({aftflt:VO(n)});a.j=g.Uc(n,function(L){return!!L.length});
        return a.j};
    CRa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Qc&&h&&h.length>1&&!(b.qj>0||b.Y)){for(var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=xRa(b,d),q=[],r=[],t={},u=0;u<h.length;u++){var w=h[u],A=d.K.get(w);if(A&&A.info){var C=A.info;A=C.qb;if(WO(b,C,c,d.isLive)){w=C.Ag()?q:r;C=g.v(p[A]);for(var E=C.next();!E.done;E=C.next()){E=E.value;var H=void 0,L=A+"_"+(((H=E.video)==null?void 0:H.fps)||0);t.hasOwnProperty(L)?t[L]===!0&&w.push(E):WO(b,E,c,d.isLive)&&(w.push(E),t[L]=!0)}}else m&&f({opfu:w})}}if(q.length&&
        r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),KA(new TO(q,r,n))}return BRa(a,b,c,d,e,f,l)};
    BRa=function(a,b,c,d,e,f,h){function l(C){return!!q[C]}
        var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=new Set,q=ARa(a,b,c,d,f,m,p);XO(d)&&(q=DRa(c,q,e,m,f,b),m&&f({enflt:VO(q)}));b.rb=ERa(q);if(UO(d))return f=g.Cb(Object.values(q),function(C){return!!C.length&&!!C[0].audio}),a=g.Cb(Object.values(q),function(C){return!!C.length&&!!C[0].video}),f&&a||JA(),KA(new TO(a,f,n));
        e=FRa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.He){e=g.Pt(e,l);for(var r=new Set,t=g.v(e),u=t.next();!u.done;u=t.next()){u=g.v(q[u.value]);for(var w=u.next();!w.done;w=u.next())w=w.value,w.hc&&!r.has(w.hc.id)&&(r.add(w.hc.id),a.push(w))}if(a.length===0){if(e.length===0)return m&&f({noaudio:1}),JA();a=q[e[0]]}}else{a=g.Cb(e,l);if(!a)return m&&f({noaudio:1}),JA();a=q[a]}q["9"]&&q.h&&d.dc&&!b.Va&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:VO(q),bfsflta:YO(c)});GRa(c,p);m&&f({bfsfltb:YO(c)});
            for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!(h==="f"||b.Jg===0&&HRa.has(h))))for(p=g.v(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.Zc?IRa(c,h,e):JRa(c,h,e);m&&f({aftsflt:YO(c)})}h=q["1h"]?"1h":"1";c=q["9h"]?"9h":"9";e=q[h];r=q[c];e&&e.length&&(b.j.highestAv1Resolution=e[e.length-1].video.j);r&&r.length&&(b.j.highestVp9Resolution=r[r.length-1].video.j);A=[];p=[];if(b.Fd&&e)A=e,p=[h],f({forceAv1:h});else if(b.Y&&!b.No)for(p=KRa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
                                                                                                                                                                                                                                                                                                                                                                                                                                                             e=g.v(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(C){return C});
        else b.qj>0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(C){return C}));
        if(A.length&&!b.No){ZO(A,p);if(m){m=[];b=g.v(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return KA(new TO(A,a,n))}A=LRa(b);A=g.Cb(A,l);if(!A){if(q[h])return f=q[h],ZO(f),KA(new TO(f,a,n));m&&f({novideo:1});return JA()}b.Dc&&(A==="1"||A==="1h")&&q[c]&&(h=$O(q[A]),p=$O(q[c]),p>h?A=c:b.Dd&&p===h&&MRa(q[c])&&(A=c));A==="9"&&q.h&&$O(q.h)>$O(q["9"])&&(A="h");b.Jb&&d.isLive&&A==="("&&q.H&&$O(q["("])<1440&&(A="H");m&&f({vfmly:NRa(A)});b=q[A];if(!b.length)return m&&f({novfmly:NRa(A)}),
            JA();ZO(b);return KA(new TO(b,a,n))};
    ERa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
    MRa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&ORa.has(b.itag))return!0;return!1};
    NRa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
    VO=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(NRa(d));d=g.v(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
    DRa=function(a,b,c,d,e,f){var h={},l={};g.Tc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.me)return l[q]="noenc",!1;if(f.Ab&&p.qb==="(h"&&f.Bb)return l[q]="lichdr",!1;if(p.qb==="("||p.qb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.me[c.flavor]&&!!c.j[r])||(l[q]=p.me[c.flavor]?"unspt":"noflv");return r}if(!aP(a,bP.CRYPTOBLOCKFORMAT)&&!a.Ea||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.me[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.me[c.flavor]?
        "unspt":"noflv":"nosys",!1)});
        m.length&&(h[n]=m)});
        d&&Object.entries(l).length&&e(l);return h};
    zRa=function(a,b){var c=cs(a,function(d,e){return e.video.fps>32?Math.min(d,e.video.width):d},Infinity);
        c<Infinity&&(a=a.filter(function(d){if(d.video.fps>32||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
        vra()&&(a=a.filter(function(d){if(d.itag!=="299")return!0;b[d.itag]="ps3hfr1080";return!1}));
        return a};
    yRa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Tb)return!0;c[d.itag]="maxquality";return!1})};
    xRa=function(a,b,c){var d={},e;for(e in b.j)if(b.j.hasOwnProperty(e)){var f=b.j[e].info;if(a.N&&f.video&&f.video.j<a.N)c&&(c[f.itag]="min"+a.N);else{var h=f.qb;d[h]=d[h]||[];d[h].push(f)}}a=g.v(Object.keys(d));for(b=a.next();!b.done;b=a.next())ZO(d[b.value]);return d};
    $O=function(a){return cs(a,function(b,c){return Math.max(b,c.video.j)},0)};
    WO=function(a,b,c,d,e){e=e===void 0?new Set:e;if(b.qb==="")return"unkn";if((b.itag==="304"||b.itag==="266")&&a.Fa)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.gb&&b.qb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.qb==="(h"&&!c.K)return"enchdr";if((d===void 0?0:d)&&SJ(b)&&!a.Sa)return"blk51live";if((b.qb==="MAC3"||b.qb==="mac3")&&!a.D)return"blkac3";if((b.qb==="MEAC3"||b.qb==="meac3")&&!a.G)return"blkeac3";if((b.qb==="M"||b.qb==="m")&&!a.ra)return"blkaac51";if((b.qb===
        "so"||b.qb==="sa")&&!a.Ca)return"blkamb";if(!a.Ab&&b.me&&b.me.fairplay&&(b.qb==="("||b.qb==="(h"||b.qb==="A"||b.qb==="MEAC3"))return"cbc";if(b.qb==="i"&&!a.Kb)return"blkiamf";var f,h;if(a.eb&&(b.qb==="1"||b.qb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.eb)return"av1cap";if((d=c.C.get(b.qb))&&d.n1>0)return e.add(b.qb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Fa&&!aP(c,bP.FRAMERATE))return"capHfr";if(a.Za&&b.video.j>=4320)return"blk8khfr";if(QJ(b)&&a.Xd&&b.me&&
        b.video.j>=1440)return"disablevp9hfr"}if(a.tb&&b.tb>a.tb)return"ratecap";a=PRa(c,b);return a!==!0?a:!0};
    ZO=function(a,b){b=b===void 0?[]:b;g.Sb(a,function(c,d){var e=d.tb-c.tb;if(!c.Ag()||!d.Ag())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&b.length>0&&(c=b.indexOf(c.qb)+1,d=b.indexOf(d.qb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})};
    g.cP=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
    eP=function(a){dP(a);return a.C};
    fP=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"};
    QRa=function(a){dP(a);return g.Yc(a.j,function(b){return b!==null})};
    RRa=function(a){dP(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]};
    gP=function(a,b){b=b===void 0?!1:b;dP(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ce();c=new g.lq(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&f.length>1&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.nq(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.cP(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
        (g.nq(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.nq(c,"www.youtube.com"),d=c.toString()):(c=gDa(d),JI(c)&&(d=c));c=new g.cP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
    dP=function(a){if(a.B){if(!JI(a.B)&&!a.B.startsWith("local"))throw new g.CB("Untrusted URL",a.B);var b=g.uq(a.B);a.scheme=b.G;a.C=b.j+(b.D!=null?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);d>0&&e>0?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=SRa(c);Object.assign(a.j,
        TRa(b.C.toString()));Object.assign(a.j,d);a.j.file==="index.m3u8"&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=URa[0](b),a.set("n",b),URa.length||Sma(""))}};
    VRa=function(a){dP(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(QRa(a)){var c=[];g.Tc(a.j,function(d,e){d!==null&&c.push(e+"="+d)});
        b+="?"+c.join("&")}return b};
    SRa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&WRa(c,a[b],a[b+1]);return c};
    TRa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");e>0?WRa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b};
    WRa=function(a,b,c){if(b==="cmo"){var d;(d=c.indexOf("="))>=0?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):(d=c.indexOf("%3D"))>=0&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c};
    hP=function(a){var b=g.V(a,XRa)||a.signatureCipher;a={SY:!1,cE:"",vH:"",s:""};if(!b)return a;b=oA(b);a.SY=!0;a.cE=b.url;a.vH=b.sp;a.s=b.s;return a};
    iP=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Zg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Zg=m||null};
    g.jP=function(){this.segments=[];this.j=null;this.B=!0;this.C=""};
    YRa=function(a,b){if(b>a.Bd())a.segments=[];else{var c=Bb(a.segments,function(d){return d.Pa>=b},a);
        c>0&&a.segments.splice(0,c)}};
    ZRa=function(a,b,c,d,e){e=e===void 0?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j};
    kP=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
    lP=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
    mP=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
    nP=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
    oP=function(a){var b=a.data;var c=a.offset+a.j;b=b.getUint32(c)*4294967296+b.getUint32(c+4);a.j+=8;return b};
    $Ra=function(a,b){b=b===void 0?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return tN(b)};
    aSa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
    bSa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
    pP=function(a,b,c,d){(new Uint8Array(a.data.buffer,a.offset,d)).set(new Uint8Array(b.buffer,c+b.byteOffset,d));a.offset+=d};
    qP=function(a,b,c,d,e,f){this.startSecs=a;this.Ch=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
    sP=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.cj=rP(this,"Sequence-Number");this.G=rP(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=rP(this,"Ingestion-Walltime-Us")/1E6;this.j=(rP(this,"First-Frame-Time-Us")+rP(this,"First-Frame-Uncertainty-Us"))/1E6;this.Oj=rP(this,"Target-Duration-Us")/1E6;this.C=this.data["Stream-Finished"]==="T";this.D=this.data.Streamable==="T";this.cryptoPeriodIndex=rP(this,"Crypto-Period-Index");
        this.B=rP(this,"Crypto-Period-Seconds")};
    dSa=function(a){return a.data["Cuepoint-Type"]?new qP(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",cSa[a.data["Cuepoint-Event"]||""]||"unknown",(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
    eSa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
    rP=function(a,b){return Number(a.data[b])||0};
    fSa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
    g.gSa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
    g.hSa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
    iSa=function(a,b){this.j=a;this.duration=b};
    jSa=function(a,b,c,d,e){this.B=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;this.crc=e.getUint32(4)};
    tP=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(a[c].length===0)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);d!=null&&(b[d[1]]=d[2])}return null};
    kSa=function(a,b){var c=g.uP(a,0,1952868452);a=g.uP(a,0,1953658222);if(c&&a){c.skip(1);var d=kP(c)<<16|lP(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=nP(c);c.data.setUint32(c.offset+d,b>1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=kP(a)<<16|lP(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=nP(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=nP(a),a.data.setUint32(a.offset+f,b>1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
    wP=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.uP(a,0,1836476516))?g.vP(a):NaN};
    lSa=function(a){var b=g.uP(a,0,1937011556);if(!b)return null;b=xP(a,b.dataOffset+8,1635148593)||xP(a,b.dataOffset+8,1635135537);if(!b)return null;var c=xP(a,b.dataOffset+78,1936995172),d=xP(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),kP(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=xP(a,d.dataOffset,1886547818)){var h=xP(a,d.dataOffset,1886546020),l=xP(a,d.dataOffset,2037673328);if(!l&&(l=xP(a,d.dataOffset,1836279920),
        !l))return null;h&&(h.skip(4),c=mP(h)/65536,f=mP(h)/65536,e=mP(h)/65536);a=aSa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new jSa(b,c,f,e,a)}return null};
    xP=function(a,b,c){for(;yP(a,b);){var d=zP(a,b);if(d.type===c)return d;b+=d.size}return null};
    g.uP=function(a,b,c){for(;yP(a,b);){var d=zP(a,b);if(d.type===c)return d;b=AP(d.type)?b+8:b+d.size}return null};
    g.mSa=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=b.getUint32(a)*4294967296+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
    zP=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new ZRa(a,b,c,d)};
    g.vP=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
    nSa=function(a){a=new ZRa(a.data,a.offset,a.size,a.type,a.B);var b=kP(a);a.skip(7);var c=nP(a);if(b===0){b=nP(a);var d=nP(a)}else b=oP(a),d=oP(a);a.skip(2);for(var e=lP(a),f=[],h=[],l=0;l<e;l++){var m=nP(a);f.push(m);h.push(nP(a));a.skip(4)}return{uv:c,e8:b,v8:d,jda:f,LT:h}};
    yP=function(a,b){if(a.byteLength-b<8)return!1;var c=a.getUint32(b);if(c<8||a.byteLength-b<c)return!1;for(c=4;c<8;c++){var d=a.getInt8(b+c);if(d<48||d>122)return!1}return!0};
    AP=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768};
    oSa=function(a){a.skip(4);return{Jda:$Ra(a,0),value:$Ra(a,0),uv:nP(a),vrb:nP(a),rpb:nP(a),id:nP(a),m_:$Ra(a),offset:a.offset}};
    g.pSa=function(a){var b=xP(a,0,1701671783);if(!b)return null;var c=oSa(b),d=c.Jda;c=tP(c.m_);if(a=xP(a,b.offset+b.size,1701671783))if(a=oSa(a),a=tP(a.m_),c&&a){b=g.v(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new sP(c,d):null};
    qSa=function(a,b){for(var c=xP(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=xP(a,c.offset+c.size,b)}};
    g.BP=function(a,b){for(var c=0,d=[];yP(a,c);){var e=zP(a,c);e.type===b&&d.push(e);c=AP(e.type)?c+8:c+e.size}return d};
    rSa=function(a,b){var c=g.uP(a,0,1937011556),d=g.uP(a,0,1953654136);if(!c||!d||a.getUint32(c.offset+12)>=2)return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.uP(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new bSa(a.byteLength+b);pP(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;pP(d,a,c.offset+16,c.size-16);pP(d,e,e.byteOffset+f.dataOffset+8,b);pP(d,a,c.offset+c.size,a.byteLength-
        (c.offset+c.size));c=g.v([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.uP(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.uP(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
    sSa=function(a){var b=g.uP(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=xP(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=xP(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=xP(a,b.offset+8,1935894633);if(!b)return null;b=xP(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=a.getInt8(b.offset+16+d);return c};
    CP=function(a,b){this.j=a;this.pos=0;this.start=b||0};
    DP=function(a){return a.pos>=a.j.byteLength};
    IP=function(a,b,c){var d=new CP(c);if(!EP(d,a))return!1;d=FP(d);if(!GP(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=HP(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?tSa(d-9,8):tSa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
    vSa=function(a){var b=new CP(a);b.uo();if(EP(b,[408125543,374648427,174,224]))b=FP(b);else return null;for(var c=a=null;!DP(b);){var d=HP(b,!1);if(d===21432)switch(JP(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else d===30320?c=FP(b):KP(b)}if(!c)return null;for(var e,f=d=b=null;!DP(c);)switch(HP(c,!1)){case 30321:if(JP(c)!==3)return null;break;case 30324:b=LP(c);break;case 30323:f=LP(c);break;case 30325:d=LP(c);break;case 30322:e=HP(c,!0);e=uSa(c,e);e=new DataView(e.buffer,
        e.byteOffset,e.byteLength);break;default:KP(c)}return e?new jSa(a,b,f,d,e):null};
    FP=function(a){var b=HP(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new CP(c,a.start+a.pos);a.pos+=b;return c};
    JP=function(a){for(var b=HP(a,!0),c=MP(a),d=1;d<b;d++)c=c*256+MP(a);return c};
    LP=function(a){var b=HP(a,!0),c=0;b===4?c=a.j.getFloat32(a.pos):b===8&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
    wSa=function(a){var b=HP(a,!0);return tN(uSa(a,b))};
    MP=function(a){return a.j.getUint8(a.pos++)};
    HP=function(a,b){var c=MP(a);if(c===1){for(b=c=0;b<7;b++)c=c*256+MP(a);return c}for(var d=128,e=0;e<6&&d>c;e++)c=c*256+MP(a),d*=128;return b?c-d:c};
    KP=function(a){var b=HP(a,!0);a.pos+=b};
    xSa=function(a){if(!GP(a,440786851,!0))return null;var b=a.pos;HP(a,!1);var c=HP(a,!0)+a.pos-b;a.pos=b+c;if(!GP(a,408125543,!1))return null;HP(a,!0);if(!GP(a,357149030,!0))return null;var d=a.pos;HP(a,!1);var e=HP(a,!0)+a.pos-d;a.pos=d+e;if(!GP(a,374648427,!0))return null;var f=a.pos;HP(a,!1);var h=HP(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};
    NP=function(a){var b=a.pos;a.pos=0;var c=1E6;EP(a,[408125543,357149030,2807729])&&(c=JP(a));a.pos=b;return c};
    ySa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!OP(a)||!GP(a,160))return a.pos=c,NaN;HP(a,!0);var d=a.pos;if(!GP(a,161))return a.pos=c,NaN;HP(a,!0);MP(a);var e=MP(a)<<8|MP(a);a.pos=d;if(!GP(a,155))return a.pos=c,NaN;d=JP(a);a.pos=c;return(e+d)*b/1E9};
    OP=function(a){if(!zSa(a)||!GP(a,524531317))return!1;HP(a,!0);return!0};
    zSa=function(a){if(a.uo()){if(!GP(a,408125543))return!1;HP(a,!0)}return!0};
    EP=function(a,b){for(var c=0;c<b.length;c++){if(!GP(a,b[c]))return!1;c!==b.length-1&&HP(a,!0)}return!0};
    GP=function(a,b,c){c=c===void 0?!1:c;if(DP(a))return!1;for(var d=a.pos;HP(a,!1)!==b;)if(KP(a),d=a.pos,DP(a))return!1;c&&(a.pos=d);return!0};
    tSa=function(a,b){b||(b=Math.ceil(Math.log(a+2)/Math.log(2)/7));for(var c=1<<8-b,d=[];d.length<b-1;)d.unshift(a%256),a=Math.floor(a/256);d.unshift(a|c);return d};
    uSa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
    PP=function(a){this.base=a;this.j={};this.url=""};
    ASa=function(a,b){var c=b.indexOf("?");if(c>0){var d=TRa(b.substr(c+1));g.Tc(d,function(e,f){this.set(f,e)},a);
        b=b.substr(0,c)}b=SRa(b);g.Tc(b,function(e,f){this.set(f,e)},a)};
    BSa=function(a){var b=a.base.Ce(),c=[];g.Tc(a.j,function(e,f){c.push(f+"="+e)});
        if(!c.length)return b;var d=c.join("&");a=QRa(a.base)?"&":"?";return b+a+d};
    CSa=function(a,b){var c=new g.cP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Tc(a.j,function(d,e){c.set(e,null)});
        return c};
    DSa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
    ESa=function(a){a.G=(0,g.fC)();a.started=0;a.timedOut=0;a.j=0};
    FSa=function(a,b){var c=a.started+a.j*4;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)};
    QP=function(a,b){a[b]||(a[b]=new DSa);return a[b]};
    RP=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()};
    HSa=function(a,b,c){a=b?GSa(a,c):a.j;return new PP(a)};
    GSa=function(a,b){b=b?b.Xl:!1;a.D||(a.D=gP(a.C,b));return a.D};
    ISa=function(a,b,c){return eP(b?GSa(a,c):a.j)};
    JSa=function(a,b,c){c=QP(c,ISa(a,a.Rj(b,c),b));b=Math.max(a.G,c.timedOut)+b.JH*(a.B-a.G)+.25*a.K;b=b>3?1E3*Math.pow(1.6,b-3):0;return b===0?!0:a.Z+b<(0,g.fC)()};
    KSa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
    LSa=function(a,b,c,d,e){++a.B;b&&++a.G;eP(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.JG&&delete e[eP(a.j)])};
    SP=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new RP(a)};
    TP=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
    UP=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new TP(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a};
    VP=function(a,b){return new TP(a,a+b-1)};
    MSa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
    WP=function(a){if(!a)return new TP(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new TP(b,a),b.length>0))return b};
    XP=function(a,b,c,d,e,f,h,l,m,n,p,q){d=d===void 0?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Mj=p;this.clipId=q===void 0?"":q;this.N=[];this.G="";this.Pa=-1;this.Z=0;this.G=d;this.Pa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Sb=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Te=this.range?this.Sb+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.C=this.startTime+this.duration*this.Sb/this.range.length,this.K=this.duration*this.B/this.range.length,
        this.D=this.C+this.K):NSa(this)};
    NSa=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
    YP=function(a){return a.Te&&a.j.index.yF(a.Pa)};
    OSa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Sb+b.B===a.Sb+a.B:d};
    ZP=function(a){return a.type===1||a.type===2};
    $P=function(a){return a.type===3||a.type===6};
    aQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Sb+a.B===b.range.start+b.Sb:a.Pa===b.Pa?a.Sb+a.B===b.Sb:a.Pa+1===b.Pa&&b.Sb===0&&a.Te:!1};
    PSa=function(a,b){return aQ(a,b)||Math.abs(a.D-b.C)<=1E-6||a.Pa+1===b.Pa&&b.Sb===0&&a.Te?!0:!1};
    QSa=function(a){return a.Pa+(a.Te?1:0)};
    RSa=function(a){a.length===1||g.bs(a,function(c){return!!c.range});
        for(var b=1;b<a.length;b++);b=a[a.length-1];return new TP(a[0].range.start+a[0].Sb,b.range.start+b.Sb+b.B-1)};
    SSa=function(a){for(var b=1;b<a.length;b++)if(!aQ(a[b-1],a[b]))return!1;return!0};
    TSa=function(a){var b=0;a=g.v(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
    bQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Pa);a.range&&(b.range=a.range.start+a.Sb+"-"+(a.range.start+a.Sb+a.B-1));b.time=a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Sb);b.len=String(a.B);a.Te&&(b.end="1");YP(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
    USa=function(a){return new XP(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Pa,a.startTime,0,a.Sb,0)};
    VSa=function(a){return new XP(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Pa,a.startTime+a.duration,0,a.Sb+a.B,0)};
    WSa=function(a,b,c,d){return new XP(a.type,a.j,a.range,"reslice"+a.G,a.Pa,a.startTime,a.duration,b,c,d,a.Mj,a.clipId)};
    XSa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Sb>=b.range.start+b.Sb&&a.range.start+a.Sb+a.B<=b.range.start+b.Sb+b.B:a.Pa===b.Pa&&a.Sb>=b.Sb&&(a.Sb+a.B<=b.Sb+b.B||b.Te)};
    YSa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.jg()?(a=a.j.ZB(a),Zs(a,function(c){return YSa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Sb+b.B>a.Sb&&b.Sb+b.B<=a.Sb+a.B};
    ZSa=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,NSa(a)};
    cQ=function(a,b){var c=this;this.jb=a;this.D=this.j=null;this.G=this.hh=NaN;this.Rj=this.requestId=null;this.rd={uqb:function(){return c.range}};
        this.resource=a[0].j.resource;this.B=b||"";this.jb[0].range&&this.jb[0].B>0&&(SSa(a)?(this.range=RSa(a),this.C=this.range.length):(this.range=this.jb[this.jb.length-1].range,this.C=TSa(a)))};
    $Sa=function(a){return!ZP(a.jb[a.jb.length-1])};
    dQ=function(a){return a.jb[a.jb.length-1].type===4};
    g.eQ=function(a,b,c){c=a.Rj===null?a.resource.Rj(b,c,a.jb[0].type):a.Rj;if(a.j){b=c?gP(a.j,b.Xl):a.j;var d=new PP(b);d.get("alr")||d.set("alr","yes");a.B&&ASa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new PP(new g.cP(a.B)):(d=HSa(a.resource,c,b),a.B&&ASa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.jb[0].j.mx()&&a.jb.length===1&&a.jb[0].Sb&&d.set("range",a.jb[0].Sb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.hh)||d.set("headm",a.hh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&
    g.Tc(a.urlParams,function(e,f){d.set(f,e)});
        return d};
    aTa=function(a){if(a.range)return a.C;a=a.jb[0];return Math.round(a.K*a.j.info.tb)};
    bTa=function(a,b){return Math.max(0,a.jb[0].C-b)};
    fQ=function(a,b,c,d,e,f){f=f===void 0?0:f;SP.call(this,a,b,d,void 0);this.G=c;this.Oj=f;this.index=e||new g.jP};
    cTa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Ch=c;this.j=d||NaN;this.B=e||NaN};
    gQ=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""};
    hQ=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null};
    dTa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(a)|0};
    eTa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
    iQ=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
    fTa=function(a){var b=a.C;a.C=[];return b};
    gTa=function(){this.D=[];this.j=null;this.B={};this.C={}};
    kTa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;e.nodeName==="Period"?f=hTa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=iTa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=jTa(a,e));if(f==null)return;f.update(d);g.Lb(c,fTa(f))}g.Lb(a.D,c);xaa(a.D,function(h){return h.startSecs*1E3+h.j})};
    lTa=function(a){a.j&&(a.j.j=[]);g.Tc(a.B,function(b){b.j=[]});
        g.Tc(a.C,function(b){b.j=[]})};
    hTa=function(a){a.j||(a.j=new iQ);return a.j};
    iTa=function(a,b){a.B[b]||(a.B[b]=new iQ);return a.B[b]};
    jTa=function(a,b){a.C[b]||(a.C[b]=new iQ);return a.C[b]};
    nTa=function(a){var b=a===void 0?{}:a;a=b.Oj===void 0?0:b.Oj;var c=b.Fn===void 0?!1:b.Fn;var d=b.vr===void 0?0:b.vr;var e=b.cf===void 0?0:b.cf;var f=b.Ii===void 0?Infinity:b.Ii;var h=b.eB===void 0?0:b.eB;b=b.je===void 0?!1:b.je;g.jP.call(this);this.Nr=this.Wp=-1;this.Pj=a;this.vr=d;this.Fn=c;this.cf=e;this.Ii=f;this.eB=h;(this.je=b)&&c&&mTa&&(this.B=!1,this.C="postLive")};
    jQ=function(a,b){return Rb(a.segments,function(c){return b-c.Pa})};
    kQ=function(a,b,c){c=c===void 0?{}:c;fQ.call(this,a,b,"",void 0,void 0,c.Oj||0);this.index=new nTa(c)};
    lQ=function(a,b,c){SP.call(this,a,b);this.G=c;a=this.index=new g.jP;a.B=!1;a.C="d"};
    oTa=function(a,b,c){var d=a.index.OJ(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.tb*f;return new cQ([new XP(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
    pTa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.K.split(",").filter(function(p){return p.length>0});
        for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(h<=0)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 iP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
    mQ=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.OA()&&!this.info.Sb;this.isLocked=!1};
    nQ=function(a){return eLa(a.j)};
    qTa=function(a,b){b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.jn;c=new mQ(new XP(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Sb,b,!1,a.info.Mj,a.info.clipId),c.fK);c.D=a.D;c.C=a.C;b=new mQ(new XP(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Sb+b,a.info.B-b,a.info.Te,a.info.Mj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
    oQ=function(a,b,c){var d;if(!(d=a.isLocked||b.isLocked||!aQ(a.info,b.info)||a.info.Te)){if(c=c===void 0?!1:c)c=a.j,d=b.j,c=!(d.j.length?aLa(c,d.j[0]):1);d=c}if(d)return null;c=new XP(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Sb,a.info.B,a.info.Te,a.info.Mj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.Te=d.Te;d=new lN;mN(d,a.j);mN(d,b.j);c=new mQ(c,d);c.B=b.B||a.B;c.C=a.C!==-1?a.C:b.C;c.D=a.D!==-1?a.D:b.D;return c};
    rTa=function(a){g.TJ(a.info.j.info)||a.info.j.info.Le();if(a.C!==-1)return a.C;if(a.B&&eSa(a.B))return a.C=eSa(a.B),a.C;if(g.TJ(a.info.j.info)){var b=nQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;yP(b,f);){var h=zP(b,f);h.type===1936286840?e=h.data.getUint32(h.dataOffset+8):h.type===1836476516?e=g.vP(h):h.type===1952867444&&isNaN(d)&&(d=g.mSa(h));f=AP(h.type)?f+8:f+h.size}!e&&c&&(e=wP(c));b=d/e}else b=new CP(nQ(a)),c=a.G?b:new CP(new DataView(a.info.j.j.buffer)),d=NP(c),c=b.pos,b.pos=0,OP(b)?GP(b,231)?
        (d=JP(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};
    tTa=function(a,b){a.timestampOffset>0&&(b-=a.timestampOffset);var c=rTa(a)+b;sTa(a,c);a.timestampOffset=b};
    sTa=function(a,b){g.TJ(a.info.j.info)||a.info.j.info.Le();a.C=b;if(g.TJ(a.info.j.info)){var c=nQ(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;yP(c,f);){var h=zP(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.vP(h)));if(h.type===1952867444){!d&&a&&(d=wP(a));var l=g.mSa(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+
        4,l)}f=AP(h.type)?f+8:f+h.size}return!0}c=new CP(nQ(a));a=a.G?c:new CP(new DataView(a.info.j.j.buffer));d=NP(a);a=c.pos;c.pos=0;if(OP(c)&&GP(c,231))if(e=HP(c,!0),b=Math.floor(b*1E9/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;d>=0;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
    pQ=function(a,b){b=b===void 0?!1:b;var c=uTa(a);a=b?0:a.info.K;return c||a};
    uTa=function(a){g.TJ(a.info.j.info)||a.info.j.info.Le();if(a.B&&a.info.type===6)return a.B.Oj;if(g.TJ(a.info.j.info)){var b=nQ(a);var c=0;b=g.BP(b,1936286840);b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=nSa(d.value),c+=d.LT[0]/d.uv;c=c||NaN;if(!(c>=0))a:{c=nQ(a);b=a.info.j.j;for(var e=d=0,f=0;yP(c,d);){var h=zP(c,d);if(h.type===1836476516)e=g.vP(h);else if(h.type===1836019558){!e&&b&&(e=wP(b));if(!e){c=NaN;break a}var l=xP(h.data,h.dataOffset,1953653094),m=l;l=e;var n=xP(m.data,m.dataOffset,
        1952868452);m=xP(m.data,m.dataOffset,1953658222);var p=mP(n);mP(n);p&2&&mP(n);n=p&8?mP(n):0;var q=mP(m),r=q&1;p=q&4;var t=q&256,u=q&512,w=q&1024;q&=2048;var A=nP(m);r&&mP(m);p&&mP(m);for(var C=r=0;C<A;C++){var E=t?mP(m):n;u&&mP(m);p&&C===0||!w||mP(m);q&&mP(m);r+=E}f+=r/l}d=AP(h.type)?d+8:d+h.size}c=f||NaN}c||g.kE(new g.CB("Missing duration while parsing bmff",a.info.Vc()))}else c=new CP(nQ(a)),a=a.G?c:new CP(new DataView(a.info.j.j.buffer)),c=ySa(c,NP(a));return c};
    vTa=function(a){var b=nQ(a);var c=(c=g.uP(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.uP(b,0,1836476516))?g.vP(b):a?wP(a):NaN);return c};
    wTa=function(a){return a.info.j.info.Le()&&qN(a.j,0)===160};
    xTa=function(a){if(!a.B){g.TJ(a.info.j.info)||a.info.j.info.Le();if(g.TJ(a.info.j.info))var b=g.pSa(nQ(a));else{b=new CP(nQ(a));var c=b.pos;b.pos=0;var d=null,e=null;if(EP(b,[408125543,307544935]))for(var f=b.pos+HP(b,!0);b.pos<f;)if(HP(b,!1)!==29555)KP(b);else for(var h=b.pos+HP(b,!0);b.pos<h;)if(HP(b,!1)!==26568)KP(b);else for(var l=b.pos+HP(b,!0);b.pos<l;){var m=HP(b,!1);if(m===17543){if(m=wSa(b),m=tP(m))if(e)for(var n=g.v(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
        m}else m===17827?(m=wSa(b),d||(d=m)):KP(b)}b.pos=c;b=e?new sP(e,d):null}a.B=b}};
    yTa=function(a){if(g.TJ(a.info.j.info))qSa(nQ(a),1836019574),qSa(nQ(a),1718909296);else{var b=new CP(nQ(a));zSa(b);GP(b,524531317,!0);a.j=a.j.split(b.start+b.pos).jn}a.G=!1};
    zTa=function(a){if(!a.K){if(g.TJ(a.info.j.info)){var b=nQ(a);var c=xP(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=xSa(new CP(nQ(a)));b&&(a.info.j.j=b,a.K=!0)}};
    g.ATa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.rh=new Float64Array(128)};
    BTa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
    CTa=function(a){a.offsets.length<a.count+1&&a.resize(a.offsets.length*2)};
    qQ=function(a,b,c,d){SP.call(this,a,b,c,d);var e=this;this.G=null;this.rd={ZE:function(f,h,l,m){return e.ZE(f,h,l,m)}};
        this.index=new g.ATa};
    DTa=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=d===void 0?"":d;this.xtags=e===void 0?"":e;this.id=f===void 0?"":f};
    FTa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return ETa[a];return null};
    g.rQ=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
    HTa=function(a){return GTa(function(b,c){return g.HA(b,c,4,1E3)},a,{format:"RAW",
        method:"GET",withCredentials:!0})};
    g.ITa=function(a){var b;a.responseType&&a.responseType!=="text"?a.responseType==="arraybuffer"&&(b=tN(new Uint8Array(a.response))):b=a.responseText;return!b||b.length>2048?"":b.indexOf("https://")===0?b:""};
    GTa=function(a,b,c){b.match(JTa);return a(b,c).then(function(d){var e=g.ITa(d.xhr);return e?GTa(a,e,c):d.xhr})};
    tQ=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.DE.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Wa=this.duration=0;this.isPremiere=this.je=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Ii=this.cf=0;this.isOtf=this.dc=!1;this.La=(0,g.fC)();this.qa=Infinity;this.j={};this.K=new Map;this.state=this.Bg=0;this.timeline=null;this.isManifestless=!1;this.ra=[];this.G=null;this.Ca=0;this.D="";this.Fa=NaN;this.Qc=this.Za=this.Tb=this.timestampOffset=
        this.N=0;this.Sa=this.Va=this.Y=!1;this.Ea=[];this.Ma={};this.rd={Qob:function(m){sQ(d,m)}};
        var e;this.eb=(e=b)==null?void 0:e.fb("html5_use_network_error_code_enums");KTa=!!b&&b.fb("html5_modern_vp9_mime_type");var f;LTa=!((f=b)==null||!f.fb("html5_enable_flush_during_seek"))&&g.RA();var h;MTa=!((h=b)==null||!h.fb("html5_enable_reset_audio_decoder"))&&g.RA();var l;NTa=!((l=b)==null||!l.fb("html5_windowed_postlive_allow_request_final_segment"))};
    OTa=function(a){return g.Yc(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})};
    KRa=function(a){return g.Yc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
    XO=function(a){return g.Yc(a.j,function(b){return!!b.info.me})};
    PTa=function(a){return g.Yc(a.j,function(b){return XJ(b.info.mimeType)})};
    QTa=function(a){return g.Yc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})};
    RTa=function(a){return g.Yc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
    STa=function(a){return g.Yc(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})};
    TTa=function(a){return g.Yc(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})};
    UTa=function(a){return bba(a.j,function(b){return b.info.video?b.qS():!0})};
    UO=function(a){return g.Yc(a.j,function(b){return fP(b.resource.j)})};
    sQ=function(a,b){a.j[b.info.id]=b;a.K.set(WJ(b.info,a.dc),b)};
    VTa=function(a,b){return(b.itag||"")+";"+((a.dc?0:b.lmt||0)||0)+";"+(b.xtags||"")};
    WTa=function(a){return a.itag+";"+(a.lmt||0)+";"+a.xtags};
    uQ=function(a,b,c){c=c===void 0?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(YEa(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=XTa[a.stereoLayout]);var r=FTa(a)||void 0;if(n==null?0:n.primaries)var t=YTa[n.primaries]||void 0;h=new LJ(h,e,l,p,q,void 0,m,r,t);d=ZTa(d,h,OJ[a.itag||""]);LTa&&(d+="; enableflushduringseek=true");MTa&&(d+="; enableresetaudiodecoder=true")}var u;if(XEa(d)){var w=
        a.audioSampleRate;q=a.audioTrack;w=new JJ(w?+w:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(u=new g.rQ(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new DTa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&&
        m){var C={};m=g.v(m);for(n=m.next();!n.done;n=m.next())(n=$Ta[n.value])&&(C[n]=b[n])}return new PJ(f,d,{audio:w,video:h,hc:u,me:C,tb:q,pw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
    aUa=function(a,b,c){c=c===void 0?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(YEa(d)){var h=(a.size||"640x360").split("x");h=new LJ(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=ZTa(d,h,OJ[a.itag]);LTa&&(d+="; enableflushduringseek=true");MTa&&(d+="; enableresetaudiodecoder=true")}var l;if(XEa(d)){var m=new JJ(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.rQ(a.name,a.audio_track_id,
        a.isDefault==="1"))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new DTa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.v(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new PJ(e,d,{audio:m,video:h,hc:l,me:r,tb:f,pw:c,contentLength:p,lastModified:q,captionTrack:n,
        streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
    bUa=function(a){return Zs(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
    cUa=function(a){return Zs(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
    dUa=function(a,b){return a.timeline?Mb(a.timeline.D,b):a.ra.length?Mb(a.ra,b):[]};
    vQ=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.cP(a,!0);a.set("alr","yes");c&&(c=XPa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
    hUa=function(a,b){var c=gQ(b,"id");c=c.replace(":",";");var d=gQ(b,"mimeType"),e=gQ(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(gQ(b,"bandwidth"))/8;var f=Number(hQ(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(YEa(d)){var l=Number(gQ(b,"width"));var m=Number(gQ(b,"height")),n=Number(gQ(b,"frameRate")),p=eUa(gQ(b,a.D+":projectionType"));a:switch(gQ(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
        0}l=new LJ(l,m,n,p,q)}if(XEa(d)){var r=Number(gQ(b,"audioSamplingRate"));var t=Number(gQ(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=fUa(gQ(b,a.D+":spatialAudioType"));r=new JJ(r,t,m);a:{t=gQ(b,"lang")||"und";if(m=hQ(b,"Role"))if(p=gQ(m,"value")||"",g.dd(gUa,p)){m=t+"."+gUa[p];n=p==="main";a=gQ(b,a.D+":langName")||t+" - "+p;t=new g.rQ(a,m,n);break a}t=void 0}}if(b=hQ(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(b=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(u[a]=m.trim()))}else u=void 0;return new PJ(c,d,{audio:r,video:l,hc:t,me:u,tb:e,pw:h,contentLength:f})};
    eUa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
    fUa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
    jUa=function(a,b){b=b===void 0?"":b;a.state=1;a.La=(0,g.fC)();return HTa(b||a.sourceUrl).then(function(c){if(!a.Na()){a.Bg=c.status;c=c.responseText;var d=new DOMParser;c=Oba(d,Qma(c)).getElementsByTagName("MPD")[0];a.qa=dTa(gQ(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.v(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=a.qa<Infinity&&a.isLivePlayback;a.Wa=Number(gQ(c,
        a.D+":earliestMediaSequence"))||0;if(d=Date.parse(eTa(gQ(c,a.D+":mpdResponseTime"))))a.Ca=((0,g.fC)()-d)/1E3;a.isLive&&c.getElementsByTagName("SegmentTimeline").length<=0||g.bs(c.getElementsByTagName("Period"),a.Ica,a);a.state=2;a.publish("loaded");iUa(a)}return a}).Jl(function(c){if(c instanceof FA){var d=c.xhr;
        a.Bg=d.status}a.state=3;a.publish("loaderror");return ig(d)})};
    kUa=function(a,b,c){return jUa(new tQ(a,b,c),a)};
    lUa=function(a){return a.isLive&&(0,g.fC)()-a.La>=a.qa};
    mUa=function(a){a.G&&a.G.stop()};
    iUa=function(a){var b=a.qa;isFinite(b)&&(lUa(a)?a.refresh():(b=Math.max(0,a.La+b-(0,g.fC)()),a.G||(a.G=new g.Av(a.refresh,b,a),g.M(a,a.G)),a.G.start(b)))};
    nUa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Bd()+1}return 0};
    wQ=function(a){return a.Tb?a.Tb-(a.N||a.timestampOffset):0};
    xQ=function(a){return a.Za?a.Za-(a.N||a.timestampOffset):0};
    yQ=function(a){if(!isNaN(a.Fa))return a.Fa;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!XJ(b[c].info.mimeType)){b=0;for(c=d.Qn();c<=d.Bd();c++)b+=d.getDuration(c);b/=d.nA();b=Math.round(b/.5)*.5;d.nA()>10&&(a.Fa=b);return b}if(a.isLive&&(d=b[c],d.Oj))return d.Oj}return NaN};
    oUa=function(a,b){a=dba(a.j,function(d){return d.index.isLoaded()});
        if(!a)return NaN;a=a.index;var c=a.Hi(b);return a.getStartTime(c)===b?b:c<a.Bd()?a.getStartTime(c+1):NaN};
    pUa=function(a,b){if(!a.j["0"]){var c=new PJ("0","fakesb",{video:new LJ(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new fQ(new g.cP("http://www.youtube.com/videoplayback"),c,"fake"):new qQ(new g.cP("http://www.youtube.com/videoplayback"),c,new TP(0,0),new TP(0,0))}};
    zQ=function(a,b,c){for(var d in a.j){var e=XJ(a.j[d].info.mimeType)||a.j[d].info.Ag();if(c===e){e=a.j[d].index;var f=jQ(e,b);f>=0&&e.segments.splice(f,1)}}};
    qUa=function(a){for(var b in a.j)XJ(a.j[b].info.mimeType)||YRa(a.j[b].index,Infinity)};
    rUa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.Fn&&(f&&(e.Wp=Math.max(e.Wp,f)),h&&(e.Nr=Math.max(e.Nr||0,h)))}};
    sUa=function(a){a.Za=0;a.Tb=0;a.Qc=0};
    AQ=function(a){return a.Va&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
    ZTa=function(a,b,c){BQ===null&&(BQ=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(KTa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return BQ||c!=="9"&&c!=="("?BQ||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!BQ&&!tUa||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a;
        c="00";var d="08",e="01",f="01",h="01";a==='video/webm; codecs="vp9.2"'&&(c="02",d="10",b.primaries==="bt2020"&&(h=e="09"),b.B==="smpte2084"&&(f="16"),b.B==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
    g.CQ=function(a){this.tag=a};
    vUa=function(a,b){uUa.apply(null,[6,a,b].concat(g.ra(g.Ja.apply(2,arguments))))};
    wUa=function(a,b){uUa.apply(null,[5,a,b].concat(g.ra(g.Ja.apply(2,arguments))))};
    uUa=function(a,b,c){var d=g.Ja.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.jE(new (Function.prototype.bind.apply(g.CB,[null,f].concat(g.ra(d)))),e);d.unshift(f);d=d.join(", ");e=xUa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(h){}xUa.set(b,f);e=f}a<e||(typeof d==="function"&&(d=d()),console.log("plyr."+b,d))};
    EQ=function(a,b,c,d){b=""+b+(c>49?"p60":c>32?"p48":"");if(!a.L("html5_gradual_perf_cap"))return gQa(b);a=gQa(b,!1);if(a!=null&&a>0)return a;a=DQ.get(b);if(a!=null&&a>0)return a;d=d==null?void 0:d.get(b);return d!=null&&d>0?d:8192};
    yUa=function(a){this.Da=a;this.Cc=this.No=this.La=this.G=this.D=this.ra=this.Ma=this.Wa=this.Ca=!1;this.N=this.K=0;this.gb=!1;this.Fa=!0;this.Za=!1;this.qj=0;this.Ea=!1;this.Tb=Infinity;this.XN=!1;this.Dc=!0;this.Va=this.Sa=!1;this.j={};this.B=this.Y=!1;this.Ob=this.Da.wc();this.Jb=!1;this.Ab=this.Da.experiments.fb("html5_enable_vp9_fairplay");this.Fd=this.Da.L("html5_force_av1_for_testing");this.eb=g.hI(this.Da.experiments,"html5_av1_ordinal_cap");this.Xd=this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
        this.Qc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.Dd=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.Jg=0;this.disableAv1=this.Bb=this.rb=!1;this.tb=g.hI(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.He=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Zc=this.Da.experiments.fb("html5_allow_capability_merge")};
    LRa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ea&&(b.unshift("1"),b.unshift("1h"));a.No&&b.unshift("h");a.qa&&(b=(zUa[a.qa]||[a.qa]).concat(b));return b};
    FRa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Jg===1&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ca&&(b=["so","sa"].concat(b));!a.Cc||a.La||a.C||b.unshift("a");!a.Z&&a.Ma&&b.unshift("ah");a.C&&(b=(zUa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b};
    AUa=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(aP(a.G,bP.AV1_CODECS)&&aP(a.G,bP.HEIGHT)&&aP(a.G,bP.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=lQa();if(e)return b.localPref=e}catch(l){}d=1080;navigator.hardwareConcurrency<=2&&(d=480);b.coreCount=navigator.hardwareConcurrency;ura()&&(b.isArm=1,d=240);if(c){var f,h;if(e=(f=c.videoInfos.find(function(l){return RJ(l)}))==null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
        c=c.videoInfos[0].video;a=Math.min(EQ(a,"1",c.fps),EQ(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=EQ(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=EQ(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
    FQ=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.cw=this.dw=-1;this.Zl=null;this.C=!!d&&d.fb("edge_nonprefixed_eme")};
    HQ=function(a){return a.C?!1:!a.keySystemAccess&&!!GQ()&&a.keySystem==="com.microsoft.playready"};
    IQ=function(a){return a.keySystem==="com.microsoft.playready"};
    JQ=function(a){return!a.keySystemAccess&&!!GQ()&&a.keySystem==="com.apple.fps.1_0"};
    KQ=function(a){return a.keySystem==="com.youtube.fairplay"};
    LQ=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"};
    g.MQ=function(a){return a.flavor==="fairplay"};
    GQ=function(){var a=window,b=a.MSMediaKeys;TA()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
    BUa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.GJ&&!g.RA())return Xv("45");if(g.wC||g.Ls)return a.fb("edge_nonprefixed_eme");if(g.NQ)return Xv("47");if(g.aC){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.hI(a,"html5_safari_desktop_eme_min_version"))return Xv(a)}return!0};
    DUa=function(a,b,c,d){var e=SA(),f=(c=e||c&&TA())?["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.ra(f),g.ra(CUa.playready)):[].concat(g.ra(CUa.playready),g.ra(f))};
    OQ=function(a,b,c,d,e){d=d===void 0?!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)};
    GUa=function(a,b){a.callback=b;a.D=[];BUa(a.Da.experiments)?EUa(a):FUa(a)};
    EUa=function(a){if(!a.Na())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=HUa(a,c);if(PQ&&PQ.keySystem===b&&PQ.wda===JSON.stringify(d))a.ma("remksa",{re:!0}),IUa(a,c,PQ.keySystemAccess);else{var e,f;a.ma("remksa",{re:!1,ok:(f=(e=PQ)==null?void 0:e.keySystem)!=null?f:""});PQ=void 0;(QQ.isActive()?QQ.Po("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(WN(function(h){IUa(a,c,h,d)}),WN(function(){a.G=!a.G&&a.C[a.B[0]].flavor===
        "widevine";
        a.G||a.B.shift();EUa(a)}))}}};
    IUa=function(a,b,c,d){if(!a.Na()){d&&(PQ={keySystem:b.keySystem,keySystemAccess:c,wda:JSON.stringify(d)});b.keySystemAccess=c;if(IQ(b)){c=EJ();d=g.v(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.v(c.audioCapabilities),e=d.next();!e.done;e=d.next())JUa(a,b,e.value);if(c.videoCapabilities)for(c=g.v(c.videoCapabilities),d=c.next();!d.done;d=c.next())JUa(a,b,d.value)}a.D.push(b);
        a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&LQ(b)?(a.B.shift(),EUa(a)):a.callback(a.D)}};
    JUa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
    HUa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&KQ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];IQ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.v(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.indexOf("audio/")===0,h=f?c.audioCapabilities:c.videoCapabilities;b.flavor!==
    "widevine"||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.GJ&&g.PA("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"}),g.RQ(a.Da)==="MWEB"&&(XA()||QA())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
    FUa=function(a){if(GQ()&&g.aC)a.D.push(new FQ("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=KUa(),c=g.Cb(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||l.indexOf("audio/")===0,h=h||l.indexOf("video/")===0);return f&&h});
        c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
    KUa=function(){var a=GQ();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=EJ();
        return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
    LUa=function(a){this.experiments=a;this.C=0;this.G=(this.D=this.experiments.fb("html5_consider_end_stall"))&&SQ;this.B=this.experiments.fb("html5_measure_max_progress_handling");this.j=this.L("html5_use_media_for_elbow")};
    MUa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=mA(b||"","&");a={};b=g.v(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
    g.hI=function(a,b){return Number(a.flags[b])||0};
    TQ=function(a,b){return(a=a.flags[b])?a.toString():""};
    NUa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
    OUa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.ra(a.experimentIds)).map(function(d){return Number(d)});
        b.sort();for(var c=b.length-1;c>0;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
        a.j.unshift("v1");return a.j};
    QUa=function(a){return PUa.then(a)};
    RUa=function(a,b,c){this.experiments=a;this.Fa=b;this.Ea=c===void 0?!1:c;this.Z=!!g.Wa("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.qa=this.experiments.fb("html5_disable_vp9_encrypted");this.j=new Map;this.Ca=g.hI(this.experiments,"html5_max_vertical_resolution");this.ra=g.hI(this.experiments,"html5_max_ps4_av1_vertical_resolution");a=g.Wa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
    PRa=function(a,b,c){c=c===void 0?1:c;var d=b.itag;if(d==="0")return!0;var e=b.mimeType;if(b.Le()&&SA()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(RJ(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(aP(a,bP.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(d==="338"&&!(g.GJ?Xv(53):g.NQ&&Xv(64)))return"dopus";
        var f;if(a.Ca&&((f=b.video)==null?void 0:f.height)>a.Ca)return"dvert";var h;if(a.ra&&!g.PA("ps4 pro")&&wra()&&RJ(b)&&((h=b.video)==null?void 0:h.height)>a.ra)return"pavert";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[bP.WIDTH.name]=b.video.width),b.video.height&&(c[bP.HEIGHT.name]=b.video.height),b.video.fps&&(c[bP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[bP.EOTF.name]=b.video.B),b.tb&&(c[bP.BITRATE.name]=b.tb*8*f),b.qb==="("&&(c[bP.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType===
        "EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(c[bP.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[bP.CHANNELS.name]=b.audio.numChannels);a.D&&QJ(b)&&(c[bP.EXPERIMENTAL.name]="allowed");f=g.v(Object.keys(bP));for(h=f.next();!h.done;h=f.next())if(h=bP[h.value],c[h.name]&&!(h===bP.EOTF&&b.mimeType.indexOf("vp09.02")>0||a.experiments.fb("html5_ignore_h264_framerate_cap")&&h===bP.FRAMERATE&&SEa(b)))if(aP(a,h))if(a.G){if(a.G[h.name]<
            c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(TEa(b)&&h===bP.EOTF)return"dvp92";a.Z&&b.video&&b.video.j>1080&&b.me&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.fb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
    UQ=function(){var a=QA()&&!Xv(29),b=g.PA("google tv")&&g.PA("chrome")&&!Xv(30);return a||b?!1:bFa()};
    SUa=function(a,b,c){var d=480;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&PRa(a,e,c)===!0&&(d=f)}return d};
    g.TUa=function(a,b){b=b===void 0?!1:b;return UQ()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(EJ(),"application/x-mpegURL")?!0:!1};
    VUa=function(a){UUa(function(){for(var b=g.v(Object.keys(bP)),c=b.next();!c.done;c=b.next())aP(a,bP[c.value])})};
    aP=function(a,b){b.name in a.N||(a.N[b.name]=WUa(a,b));return a.N[b.name]};
    WUa=function(a,b){if(a.G)return!!a.G[b.name];if(b===bP.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===bP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.po);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.po)};
    XUa=function(a){a.D||(a.D=!0,a.B=!0)};
    YUa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).t8);a.C.set(b,{t8:c+1,n1:Math.pow(2,c+1)});a.B=!0};
    YO=function(a){for(var b=[],c=g.v(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(".")};
    GRa=function(a,b){for(var c=new Map,d=g.v(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};
    IRa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,qb:b,Fh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=l==null?void 0:l.width;h.maxHeight=l==null?void 0:l.height;h.maxFramerate=e;aP(a,bP.BITRATE)&&(h.maxBitrateBps=c.tb*8);h.rF=l==null?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,Fh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
            0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,rF:c.rF},aP(a,bP.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
    JRa=function(a,b,c){var d,e=((d=c.video)==null?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&&((n=c.video)==null?0:n.height)&&l.maxHeight&&l.maxHeight>=((p=c.video)==null?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,qb:b,Fh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=f==null?void 0:f.width,b.maxHeight=f==null?void 0:f.height,b.maxFramerate=e,aP(a,bP.BITRATE)&&(b.maxBitrateBps=c.tb*
        8),b.rF=f==null?void 0:f.isHdr()),a.j.set(d,b))};
    VQ=function(){g.DE.call(this);this.items={}};
    WQ=function(){g.gN.apply(this,arguments)};
    XQ=function(){g.hN.apply(this,arguments)};
    YQ=function(a,b){var c=a.WI(b);iN.call(this,a,c||b);this.Md=a;c&&this.Md.exports.free(c.byteOffset)};
    ZUa=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)};
    $Ua=function(a){a.B||(a.B=new WQ(a.j));return a.B};
    ZQ=function(a){try{return Hg(a)}catch(b){return null}};
    aVa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?ZQ(b.clientKey):null;var c=b.encryptedClientKey?ZQ(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.fC)():null;a&&c&&d&&(this.j=new ZUa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=ZQ(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
    $Q=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
    aR=function(a,b,c,d){c=c===void 0?.5:c;d=d===void 0?0:d;this.resolution=b;this.B=0;this.C=!1;this.al=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.G=bVa(this);this.D=c;this.K=d};
    bVa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
    cVa=function(a,b,c){g.I.call(this);this.policy=a;this.Sa=b;this.zd=c;this.Y=this.La=0;this.Z=-1;this.qa=this.C=0;this.Ea=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Fa=this.D=(0,g.fC)();this.K=new aR(4,1,.6,.4);this.ra=new aR(4,1,.6,.4);this.G=new aR(20,1,.5,.4);this.B=a.D?new $Q(a.j):new aR(a.j,20,.5,.4);this.Ca=new aR(5,1,.25);this.N=new aR(30,1,.5);a=g.vB("yt-player-bandwidth")||{};b=this.policy.B;a.byterate>0&&(b=a.byterate,this.Ea=!0);this.B.Si(this.policy.G,b);a.delay>0&&this.K.Si(1,
        Math.min(a.delay,2));a.stall>0&&this.G.Si(1,a.stall);a.init>0&&(this.Fa=Math.min(a.init,this.Fa));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.Z=(0,g.fC)();this.policy.K>0&&(this.Ma=new g.Av(this.Va,this.policy.K,this),g.M(this,this.Ma),this.Ma.start())};
    bR=function(a,b,c,d){a.B.Si(d===void 0?b:d,c/b);a.D=(0,g.fC)()};
    dVa=function(a){a.C||(a.C=(0,g.fC)());a.policy.Z&&(a.D=(0,g.fC)())};
    eVa=function(a,b){if(a.C){var c=b-a.C;if(c>1E3){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e});
        d.length>16&&d.pop()}a.qa+=c}a.C=b};
    cR=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Ca.Si(b,c/b);a.D=(0,g.fC)();e||a.N.Si(1,b-d);f||(a.C=0);a.Z>-1&&(0,g.fC)()-a.Z>3E4&&fVa(a)};
    dR=function(a,b,c){b=Math.max(b,2048);a.G.Si(1,c/b)};
    eR=function(a){a=a.K.fh()+a.ra.fh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)};
    gVa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.La+=b)};
    hVa=function(a){a=a.B.fh();return a>0?a:1};
    fR=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=hVa(a);d=1/((a.G.fh()||0)*a.policy.Y+1/d);var e=a.Ca.fh();d=Math.max(d,e>0?e:1);if(!b)return d;b=1E-9+eR(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((a.N.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
    iVa=function(a){var b={delay:eR(a),stall:a.G.fh()||0,byterate:hVa(a),init:a.Fa},c=a.j[0];c.stamp=Math.round(a.D/36E5)*36E5;c.net=Math.ceil(a.qa);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b};
    fVa=function(a){g.uB("yt-player-bandwidth",iVa(a),2592E3);a.Z=(0,g.fC)();a.Ea=!0};
    gR=function(a){return(0,g.fC)()-a.D>=4E3};
    jVa=function(a,b){b.Ns=a.Y;b.wv=a.La;b.bandwidthEstimate=fR(a);b.j={ttr:(a.K.fh()*1E3).toFixed(),ttm:(a.ra.fh()*1E3).toFixed(),d:eR(a).toFixed(2),st:((a.G.fh()||0)*1E9).toFixed(2),bw:a.B.fh().toFixed(0),abw:a.Ca.fh().toFixed(0),v50:a.N.percentile(.5).toFixed(2),v92:a.N.percentile(.92).toFixed(2),v96:a.N.percentile(.96).toFixed(2),v98:a.N.percentile(.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.qa);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")};
    kVa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.G=.5;this.C=this.D=!1;this.Y=g.hI(this.experiments,"html5_stall_factor")||1;this.K=g.hI(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.fb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.fb("html5_sabr_fetch_on_idle_network_preloaded_players")};
    mVa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.I.call(this);var c=this;this.values=a;this.Kr=b;this.B={};this.C=this.j=0;this.D=new g.Av(function(){lVa(c)},1E4);
        g.M(this,this.D)};
    oVa=function(a,b){nVa(a,b);return a.values[b]&&a.Kr[b]?a.values[b]/Math.pow(2,a.j/a.Kr[b]):0};
    nVa=function(a,b){a.values[b]||(b=eQa(),a.values=b.values||{},a.Kr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
    lVa=function(a){var b=eQa();if(b.values){b=b.values;for(var c={},d=g.v(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=oVa(a,e);a.B=c}b=a.Kr;c={};c.values=a.B;c.halfLives=b;g.uB("yt-player-memory",c,2592E3)};
    BVa=function(a,b,c,d,e){g.I.call(this);this.webPlayerContextConfig=b;this.Ul=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Aj=this.jf=this.gb=this.uj=this.userDisplayName=this.userDisplayImage=this.Qi="";this.j={};this.Ob={};this.controlsType="0";this.Xd=NaN;this.rb=!1;this.Tf=(0,g.fC)();this.Kb=0;this.Wl=this.mp=!1;this.yn=!0;this.preferGapless=this.Sl=this.Sf=this.C=this.Tl=this.Rf=!1;this.wh=[];this.jm=!0;this.Uf=!1;a=a?g.jd(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);
        b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new MUa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:aB("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:aB("",a.csp_nonce);WCa=this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(Q){f=""}this.uf=f;this.ancestorOrigins=
            (d=window.location.ancestorOrigins)?Array.from(d):[];this.D=YA(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=
            d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform),f=TQ(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Ob.cchip=d.chipset),d.cobaltAppVersion&&(this.Ob.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Ob.cfrmver=d.firmwareVersion),d.deviceYear&&(this.Ob.crqyear=d.deviceYear)}else this.j.c=
            a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||pVa(this)&&b.loaderUrl?b.loaderUrl||"":this.uf:this.D||pVa(this)&&a.loaderUrl?aB("",a.loaderUrl):this.uf;this.D&&g.Va("yt.embedded_player.embed_url",this.loaderUrl);this.N=II(this.loaderUrl,qVa,rVa);d=this.loaderUrl;var h=h===void 0?!1:h;this.Ap=HI(II(d,sVa,null),d,h,"Trusted Ad Domain URL");this.Dc=YA(!1,a.privembed);this.protocol=this.uf.indexOf("http:")===0?"http":"https";this.Fa=YCa((b?b.customBaseYoutubeUrl:
            a.BASE_YT_URL)||"")||YCa(this.uf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.N?d=ZA(d,h,tVa):h&&(d="embedded");this.Ma=d;Eva();h=null;d=b?b.playerStyle:a.ps;f=g.Eb(uVa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.ra=(this.K=g.Eb(uVa,this.playerStyle))&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.zp=!this.ra;this.Sa=YA(!1,a.disableplaybackui);this.disablePaidContentOverlay=YA(!1,
            b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=YA(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(EJ().defaultPlaybackRate?hR||g.WA||iR?g.NQ&&Xv("20")||g.GJ&&Xv("4")||g.jR&&Xv("11")||yra():!(g.jR&&!g.PA("chrome")||hR||g.PA("android")||g.PA("silk")):!1);this.qp=YA(!1,a.enable_faster_speeds);this.B=YA(this.playerStyle==="blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=Ara()||XA();this.yp=this.L("mweb_allow_background_playback")?
            !1:this.B&&!this.K;this.Va=QEa();this.fq=g.vVa;var l;this.Xl=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.tp=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.wp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.vn=g.kR(this)&&!this.Xl||YA(!lR(this)&&!mR(this)&&!this.K,n);this.Yl=b?!!b.mobileIphoneSupportsInlinePlayback:YA(!1,a.playsinline);l=this.B&&wVa&&
            nR!=null&&nR>0&&nR<=2.3;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.kR(this)&&this.B;n=this.B&&!this.Z;m=g.oR(this)||!l&&YA(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType=n!=="0"&&n!==0?m:"0";this.Ql=this.B;this.color=ZA("red",b?b.progressBarColor:a.color,xVa);this.Vp=this.controlsType==="3";this.Cc=!this.D;this.xn=(m=!this.Cc&&!mR(this)&&!this.ra&&!this.K&&!lR(this))&&!this.Vp&&this.controlsType==="1";this.Fd=g.pR(this)&&m&&this.controlsType==="0"&&!this.xn;this.Bq=this.eq=
            l;this.Zc=(this.controlsType==="3"||this.B||YA(!1,a.use_media_volume))&&!this.Z;this.zn=UA&&!g.Nc(601)?!1:!0;this.xp=this.D||!1;this.Qc=mR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=aB("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||YA(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Dj=this.L("enable_cast_for_web_unplugged")&&g.qR(this)&&l||this.L("enable_cast_on_music_web")&&g.NF(this)&&l||p&&l&&this.controlsType===
            "1"&&!this.B&&(mR(this)||g.pR(this)||g.rR(this));this.tq=!!window.document.pictureInPictureEnabled||PEa();p=b?!!b.supportsAutoplayOverride:YA(!1,a.autoplayoverride);this.xi=!(this.B&&!g.kR(this))&&!g.PA("nintendo wiiu")||p;this.zi=(b?!!b.enableMutedAutoplay:YA(!1,a.mutedautoplay))&&!1;p=(mR(this)||lR(this))&&this.playerStyle==="blazer";this.Ik=b?!!b.disableFullscreen:!YA(!0,a.fs);l=g.cB(g.sR(this))&&g.kR(this);this.Ab=!this.Ik&&(p||g.gB())&&!l;this.Rl=this.L("uniplayer_block_pip")&&(QA()&&Xv(58)&&
            !XA()||vC);p=g.kR(this)&&!this.Xl;var q;b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Dd=p||YA(!this.K,q);this.lm=YA(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=XA()&&nR>0&&nR<=4.4?"_top":"_blank";this.Jg=g.rR(this);this.Pl=YA(this.playerStyle==="blazer",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.qa=q;this.Ca=aB("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.kR(this)&&(this.Dc||!ora()||this.Wa);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.He=((q=!this.Tb)||!!this.Ca&&q)&&YA(!this.ra,this.N?r:void 0);this.kf=b?b.isMobileDevice||
            !!b.disableKeyboardControls:YA(!1,a.disablekb);this.loop=YA(!1,a.loop);this.pageId=aB("",b?b.initialDelegatedSessionId:a.pageid);this.iq=YA(!0,a.canplaylive);this.Bb=YA(!1,a.livemonitor);this.disableSharing=YA(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"),q.length!==2?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||r*q<=0?null:new g.Ke(r,q))):r=null;this.An=r;this.mute=b?
            !!b.startMuted:YA(!1,a.mute);this.storeUserVolume=!this.mute&&YA(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:ZA(void 0,r,tR);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":aB("",a.cc_lang_pref);r=ZA(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,tR);this.controlsType==="3"&&r===2&&(r=3);this.Jb=r;this.sj=b?b.hl||"en_US":aB("en_US",a.hl);this.region=b?b.contentRegion||
            "US":aB("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":aB("en",a.host_language);this.pp=!this.Dc&&Math.random()<g.hI(this.experiments,"web_player_api_logging_fraction");this.Za=!this.Dc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(b==null||!b.deviceIsAudioOnly);this.Xd=$A(this.Xd,a.ismb);this.zp?(r=a.vss_host||"s.youtube.com",r==="s.youtube.com"&&(r=uR(this.Fa)||"www.youtube.com")):r="video.google.com";this.Bn=r;yVa(this,a,!0);this.La=new VQ;g.M(this,this.La);q=b?b.innertubeApiKey:
            aB("",a.innertube_api_key);p=b?b.innertubeApiVersion:aB("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:aB("",a.innertube_context_client_version);q=g.gA("INNERTUBE_API_KEY")||q;p=g.gA("INNERTUBE_API_VERSION")||p;l=g.gA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.RQ(this);n=typeof this.j.c==="number"?Number(this.j.c):Object.keys(WMa).indexOf(this.j.c);this.Nk={innertubeApiKey:q,innertubeApiVersion:p,lK:l,sQ:m,nZ:n,innertubeContextClientVersion:g.gA("INNERTUBE_CONTEXT_CLIENT_VERSION")||
                r,uQ:this.hostLanguage,tQ:this.region,oZ:g.gA("INNERTUBE_HOST_OVERRIDE")||"",pZ:!!g.gA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),vQ:!!g.gA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Zl=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.G=new RUa(this.experiments,this.L("html5_force_hfr_support")?!0:rI(this)||vra()||wra()||zVa(this),g.GJ&&g.Nc(56)||g.NQ&&g.Nc(54)||this.L("html5_force_vp9_subsample_encryption_support")||zVa(this));r=this.Xd;q=new kVa(this.experiments);g.sI(this)&&
        (q.D=!0,q.G=.1);r&&(q.B=r/8);q.C=HO()>=480;this.schedule=new cVa(q,new LUa(this.experiments),e);g.M(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:YA(!1,a.enable_safety_mode);e=this.Sa?!1:mR(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav):u=a.allow_autonav;this.Yd=YA(e,!this.ra&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:YA(!1,a.send_visitor_id_header);var w;this.playerStyle==="docs"&&(b?w=b.disableNativeContextMenu:
            w=a.disable_native_context_menu);this.disableNativeContextMenu=YA(!1,w);this.vp=rI(this)&&this.L("enable_skip_intro_button");this.embedConfig=aB("",b?b.serializedEmbedConfig:a.embed_config);this.Ea=Fra(a,g.kR(this));this.C=this.Ea==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks);this.Jk=YA(!1,a.full_window);var A;this.eb=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var C;this.livingRoomAppMode=ZA("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||
            (b==null?void 0:(C=b.device)==null?void 0:C.livingRoomAppMode),AVa);var E;u=$A(NaN,b==null?void 0:(E=b.device)==null?void 0:E.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:YA(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:YA(!1,a.show_miniplayer_button);var H;g.kR(this)&&!(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:
            YA(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:YA(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var L;this.yn=(L=a.show_loop_video_toggle)!=null?L:!0;this.Mp=Math.random()<1E-4;this.Pk=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)?new aVa(a.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=b==null?void 0:
            b.canaryStage;this.Qf=new mVa;g.M(this,this.Qf);this.Tl=YA(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.gA("DATASYNC_ID");this.Vl=g.gA("LOGGED_IN",!1);this.yj=(b==null?void 0:b.allowWoffleManagement)||!1;this.Sk=this.Rk=Infinity;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Sf=!0:this.Sf=Math.random()*100<g.hI(this.experiments,"html5_high_res_logging_percent");var N;this.Sl=!!(b==null?0:(N=b.embedsHostFlags)==null?0:
            N.allowRcat);this.Ij=!g.qR(this)&&!vR(this)};
    g.sR=function(a){var b,c;if(!((b=a.webPlayerContextConfig)==null?0:(c=b.embedsHostFlags)==null?0:c.enableLiteUx)||a.Dc||a.K||a.C||a.Ea==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.hI(a.experiments,"embeds_web_lite_mode");return a===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":a>=0&&a<CVa.length?CVa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
    yVa=function(a,b,c){c=c===void 0?!1:c;a.jf=aB(a.jf,b.video_id);a.gb=aB(a.gb,b.eventid);a.gb&&(uD=a.gb);for(var d=[],e=g.v(Object.keys(DVa)),f=e.next();!f.done;f=e.next()){f=DVa[f.value];var h=b[f];h!=null&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&d.length>0&&a.Mp&&(d.sort(),g.kE(new g.CB("Player client parameters changed after startup",d)));a.userAge=$A(a.userAge,b.user_age);a.Qi=aB(a.Qi,b.user_display_email);a.userDisplayImage=aB(a.userDisplayImage,b.user_display_image);g.KI(a.userDisplayImage)||(a.userDisplayImage=
        "");a.userDisplayName=aB(a.userDisplayName,b.user_display_name);a.uj=aB(a.uj,b.user_gender);a.csiPageType=aB(a.csiPageType,b.csi_page_type);a.csiServiceName=aB(a.csiServiceName,b.csi_service_name);a.Pl=YA(a.Pl,b.enablecsi);a.pageId=aB(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Vf=b.living_room_session_po_token.toString())};
    EVa=function(a,b){return!a.K&&QA()&&Xv(55)&&a.controlsType==="3"&&!b};
    g.wR=function(a){a=uR(a.Fa);return a==="www.youtube-nocookie.com"?"www.youtube.com":a};
    xR=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
    yR=function(a){return mR(a)&&!g.qR(a)};
    g.oR=function(a){return a.L("html5_local_playsinline")?UA&&!g.Nc(602)&&!("playsInline"in EJ()):UA&&!a.Yl||g.PA("nintendo wiiu")?!0:!1};
    g.RQ=function(a){return a.j.c};
    g.sI=function(a){return/^TVHTML5/.test(g.RQ(a))};
    pVa=function(a){return g.RQ(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
    zVa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"};
    g.AR=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
    rI=function(a){return/web/i.test(g.RQ(a))};
    g.BR=function(a){return g.RQ(a).toUpperCase()==="WEB"};
    vR=function(a){return g.RQ(a)==="WEB_KIDS"};
    g.qR=function(a){return g.RQ(a)==="WEB_UNPLUGGED"};
    CR=function(a){return g.RQ(a)==="TVHTML5_UNPLUGGED"};
    g.qI=function(a){return g.qR(a)||g.RQ(a)==="TV_UNPLUGGED_CAST"||CR(a)};
    g.NF=function(a){return g.RQ(a)==="WEB_REMIX"};
    g.DR=function(a){return g.RQ(a)==="WEB_EMBEDDED_PLAYER"};
    g.FR=function(a){return(a.deviceIsAudioOnly||!g.GJ||vC||a.controlsType==="3"?!1:g.WA?a.D&&g.Nc(51):!0)||(a.deviceIsAudioOnly||!g.NQ||vC||a.controlsType==="3"?!1:g.WA?a.D&&g.Nc(48):g.Nc(38))||(a.deviceIsAudioOnly||!g.jR||vC||a.controlsType==="3"?!1:g.WA?a.D&&g.Nc(37):g.Nc(27))||!a.deviceIsAudioOnly&&g.ER&&!zra()&&g.Nc(11)||!a.deviceIsAudioOnly&&g.aC&&g.Nc("604.4")};
    FVa=function(a){if(g.pR(a)&&wVa)return!1;if(g.NQ){if(!g.Nc(47)||!g.Nc(52)&&g.Nc(51))return!1}else if(g.aC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
    GR=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.sI(a)};
    HVa=function(a,b){return a.enabledEngageTypes.has(b.toString())||GVa.includes(b)};
    mR=function(a){return a.Ma==="detailpage"};
    g.pR=function(a){return a.Ma==="embedded"};
    HR=function(a){return a.Ma==="leanback"};
    lR=function(a){return a.Ma==="adunit"||a.playerStyle==="gvn"};
    g.rR=function(a){return a.Ma==="profilepage"};
    g.kR=function(a){return a.D&&g.pR(a)&&!lR(a)&&!a.K};
    IVa=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(b.length===5)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.kE(new g.CB("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
    g.IR=function(a){var b=g.wR(a);JVa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
    g.JR=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Ul){var c=new sK,d,e=a.Ul();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.kE(new g.CB("b189348328_oauth_callback_failed",{error:f}));
        c.resolve(b)});
        return d!==void 0?KA(d):new IA(c)}return KA(b)};
    uR=function(a){var b=g.zn(a);return(a=Number(g.yn(4,a))||null)?b+":"+a:b};
    KR=function(a,b){b=b===void 0?!1:b;var c=OJ[a],d=KVa[c],e=LVa[a];if(!e||!d)return null;b=new LJ(b?e.height:e.width,b?e.width:e.height,e.fps);d=ZTa(d,b,c);return new PJ(a,d,{video:b,tb:e.bitrate/8})};
    NVa=function(a){var b=KVa[OJ[a]],c=MVa[a];return c&&b?new PJ(a,b,{audio:new JJ(c.audioSampleRate,c.numChannels)}):null};
    LR=function(a){this.j=a};
    MR=function(a,b,c,d){if(c)return JA();c={};var e=EJ();b=g.v(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Le())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.v(MJ);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?KA(a):JA()};
    OVa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""};
    PVa=function(a,b){a.C.some(function(c){var d;return((d=c.hc)==null?void 0:d.getId())===b});
        a.j=b};
    QVa=function(a,b,c){a.cpn&&(b=g.wo(b,{cpn:a.cpn}));c&&(b=g.wo(b,{paired:c}));return b};
    RVa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a};
    SVa=function(a){for(var b=[],c=[],d=g.v(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
        c.sort(function(f,h){return f.bitrate-h.bitrate});
        a.B=b.concat(c)};
    TVa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=((b=a.audioItag)==null?void 0:b.split(","))||[];this.GC=a.GC;this.me=a.me||"";this.hc=a.hc;this.audioChannels=a.audioChannels;this.j=""};
    UVa=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?{}:d;var e={};a=g.v(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
        m=m?m[1]:"";f.audio_track_id&&(h=new g.rQ(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new TVa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,GC:n?l[n]:void 0,me:f.drm_families,hc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
    NR=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
    VVa=function(a,b){if(!(vC||TA()||SA()))return null;a=UVa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.hc&&(f=h.hc.getId(),c[f]||(h=new g.LO(f,h.hc),c[f]=h,b.push(h)))}}return b.length>0?b:null};
    $Va=function(a,b,c,d,e,f,h){if(!(vC||TA()||SA()))return JA();var l={},m=WVa(c),n=UVa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),JA();XVa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,w="";d=d&&d.match(/hls_timedtext_playlist/)?new TVa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,hc:new g.rQ("English","en",!1)}):null;for(var A=g.v(Object.keys(n)),C=A.next();!C.done;C=A.next())if(C=C.value,!a.L("html5_disable_drm_hfr_1080")||
    C!=="383"&&C!=="373"){C=g.v(n[C]);for(var E=C.next();!E.done;E=C.next())if(E=E.value,E.width){for(var H=g.v(E.B),L=H.next();!L.done;L=H.next())if(L=L.value,n[L]){E.j=L;break}E.j||(E.j=YVa(n,E));if(H=n[E.j])if(c.push(E),E.me==="fairplay"&&(q=p),L="",E.GC==="PQ"?L="smpte2084":E.GC==="HLG"&&(L="arib-std-b67"),L&&(w=L),t.push(ZVa(H,[E],d,f,E.itag,E.width,E.height,E.fps,m,void 0,void 0,q,L)),!u||E.width*E.height*E.fps>u.width*u.height*u.fps)u=E}else r.push(E)}else l[C]="disdrmhfr";t.reduce(function(N,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Q){return Q.getInfo().isEncrypted()&&N},!0)&&(q=p);
        e=Math.max(e,0);p=u||{};n=p.fps===void 0?0:p.fps;u=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(ZVa(r,c,d,f,"93",u,p,n,m,"auto",e,q,w,A));Object.entries(l).length&&h(l);return MR(a.G,t,EVa(a,b),!1)};
    ZVa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,w="",A=g.v(a),C=A.next();!C.done;C=A.next())C=C.value,w||(w=C.itag),C.audioChannels&&C.audioChannels>u&&(u=C.audioChannels,w=C.itag);e=new PJ(e,"application/x-mpegURL",{audio:new JJ(0,u),video:new LJ(f,h,l,null,void 0,n,void 0,r),me:q,r_:w});a=new OVa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new NR(e,a,m)};
    WVa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN};
    YVa=function(a,b){for(var c=g.v(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.me===b.me&&!e.audioChannels)return d}return""};
    XVa=function(a){for(var b=new Set,c=g.v(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.v(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.v(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
    OR=function(a,b){this.j=a;this.B=b};
    aWa=function(a,b,c,d){var e=[];c=g.v(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.cP(h.url,!0);if(h.s){var l=f,m=h.sp,n=XPa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.v(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=YJ(h.type,h.quality,h.itag,h.width,h.height);e.push(new OR(h,f))}}return MR(a.G,e,EVa(a,b),!1)};
    PR=function(a,b){this.j=a;this.B=b};
    bWa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=YJ(e.type,"medium","0");d.push(new PR(f,e.url))}return MR(a.G,d,EVa(a,b),!1)};
    cWa=function(a,b){var c=[],d=YJ(b.type,"auto",b.itag);c.push(new PR(d,b.url));return MR(a.G,c,!1,!0)};
    eWa=function(a){return a&&dWa[a]?dWa[a]:null};
    fWa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.gp=ZQ(a.ustreamerConfig)||void 0)};
    gWa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.eS=new fWa(b)};
    g.QR=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?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.SR=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.RR(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.TR=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
    g.hWa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.TR(a));return b};
    g.RR=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);a.kind==="asr"&&c.indexOf("(")===-1&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
    lWa=function(a,b,c,d){a||(a=b&&iWa.hasOwnProperty(b)&&jWa.hasOwnProperty(b)?jWa[b]+"_"+iWa[b]:void 0);b=a;if(!b)return null;a=b.match(kWa);if(!a||a.length!==5)return null;if(a=b.match(kWa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(Number(a[1])===1&&e===8)&&f.indexOf(e)>=0}else a=!1;return c||d||a?b:null};
    UR=function(a,b){for(var c={},d=g.v(Object.keys(mWa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.KI(f)&&(c[mWa[e]]=f)}return c};
    VR=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.v(Object.keys(nWa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=nWa[e];for(var f=g.v(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=oWa(h.url);g.KI(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=oWa(a.url),g.KI(a)&&(b["maxresdefault.jpg"]=a));return b};
    oWa=function(a){return a.startsWith("//")?"https:"+a:a};
    WR=function(a){return a&&a.baseUrl||""};
    YR=function(a){a=g.pA(a);for(var b=g.v(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};
    pWa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.ir=b)};
    sWa=function(a,b){b=g.v(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,qWa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.V(h,rWa))return Object.assign({is_yto_interstitial:!0},oA(h))});
        d=g.v(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,Zo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Zo: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,
            Zo:f===0?5:7})}}};
    tWa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
    uWa=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)};
    vWa=function(a,b){b!=null?(a.Op=b,a.Jf=!0):(a.Op="",a.Jf=!1)};
    ZR=function(a,b){this.type=a||"";this.id=b||""};
    g.wWa=function(a){return new ZR(a.substr(0,2),a.substr(2))};
    g.$R=function(a,b){this.Da=a;this.author="";this.wE=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=mA(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=UR(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new ZR("UU","PLAYER_"+c)).toString();break;default:if(a=
        b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.wWa(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.aS=function(a,b){this.Da=a;this.jt=this.author="";this.wE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.wx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.jt=b.jt||"";if(a=b.endscreen_autoplay_session_data)this.wE=mA(a,"&");this.xE=b.xE;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText=
        b.lengthText||"";this.wx=b.wx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=mA(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=UR(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
    xWa=function(a){var b,c,d=(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=(e=a.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:(l=h.endScreen)==null?void 0:(m=l.watchNextEndScreenRenderer)==null?void 0:m.results;if(!a){var n,p;a=d==null?void 0:(n=d.endScreen)==null?void 0:(p=n.endScreen)==null?void 0:p.results}return a};
    g.AWa=function(a){var b,c,d;a=g.V((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,yWa);return g.V(a==null?void 0:a.playerBar,zWa)};
    BWa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
    CWa=function(){if(bS===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.gw(g.DB()+"::yt-player"))){bS=new PF(a);break a}bS=void 0}}return bS};
    g.cS=function(){var a=CWa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
    g.DWa=function(a){var b=CWa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
    g.dS=function(a){return g.cS()[a]||0};
    g.eS=function(a,b){var c=g.cS();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.DWa(c))};
    g.fS=function(a){return g.G(function(b){return b.return(g.tC(EWa(),a))})};
    JWa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.G(function(u){switch(u.j){case 1:return m=g.dS(a),m===4?u.return(4):g.z(u,g.yC(),2);case 2:n=u.B;if(!n)throw g.bC("wiac");if(!l||h===void 0){u.Ia(3);break}return g.z(u,FWa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.z(u,g.fS(n),5);case 5:return q=u.B,g.Ba(u,6),gS++,g.z(u,g.iC(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Nb:!0},function(w){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
        "0");A=g.jC(w.objectStore("media"),h,A)}else A=g.dC.resolve(void 0);var C=GWa(a,b.Ag()),E=GWa(a,!b.Ag()),H={fmts:HWa(d),format:c||{}};C=g.jC(w.objectStore("index"),H,C);var L=d.downloadedEndTime===-1;H=L?w.objectStore("index").get(E):g.dC.resolve(void 0);var N={fmts:"music",format:{}};w=L&&e&&!b.Ag()?g.jC(w.objectStore("index"),N,E):g.dC.resolve(void 0);return g.dC.all([w,H,A,C]).then(function(Q){Q=g.v(Q);Q.next();Q=Q.next().value;gS--;var da=g.dS(a);if(da!==4&&L&&e||Q!==void 0&&g.IWa(Q.fmts))da=
        1,g.eS(a,da);return da})}),8);
        case 8:return u.return(u.B);case 6:r=g.Da(u);gS--;t=g.dS(a);if(t===4)return u.return(t);g.eS(a,4);throw r;}})};
    g.KWa=function(a){var b,c;return g.G(function(d){if(d.j==1)return g.z(d,g.yC(),2);if(d.j!=3){b=d.B;if(!b)throw g.bC("ri");return g.z(d,g.fS(b),3)}c=d.B;return d.return(g.iC(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:{}})})}))})};
    MWa=function(a,b,c,d,e){var f,h,l;return g.G(function(m){if(m.j==1)return g.z(m,g.yC(),2);if(m.j!=3){f=m.B;if(!f)throw g.bC("rc");return g.z(m,g.fS(f),3)}h=m.B;l=g.iC(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(n===void 0)throw Error("No data from indexDb");return LWa(e,n)}).catch(function(n){throw new g.CB("Error while reading chunk: "+n.name+", "+n.message);
        })):m.return(l)})};
    g.IWa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
    GWa=function(a,b){return""+a+"|"+(b?"v":"a")};
    HWa=function(a){var b={};return nA((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
    OWa=function(a){var b={},c={};a=g.v(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.NWa)?(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.v(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};
    hS=function(a){g.DE.call(this);this.j=null;this.C=new Zla;this.j=null;this.K=new Set;this.crossOrigin=a||""};
    PWa=function(a,b,c){for(c=iS(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(jS(d,b))&&(d=g.kS(d,b)))return d;c--}return g.kS(a.levels[0],b)};
    RWa=function(a,b,c){c=iS(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=jS(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,{PZ:f,q_:e}))}QWa(a)};
    QWa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=SWa(a,b)}};
    SWa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.PZ].Ce(b.q_);c.onload=function(){var d=b.PZ,e=b.q_;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);QWa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.DJ()-1);e=[e,d];a.publish("l",e[0],e[1])};
        return c};
    g.lS=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};
    jS=function(a,b){return Math.floor(b/(a.columns*a.rows))};
    g.kS=function(a,b){b>=a.uN()&&a.fz();var c=jS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.fz()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Ce(c),column:b,columns:h,row:e,rows:d,WF:a.width*h,Ex:a.height*d}};
    mS=function(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;hS.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
    TWa=function(a,b,c){return(a=a.levels[b])?a.qI(c):-1};
    iS=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
    UWa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.lS.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
    nS=function(a,b,c,d){mS.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a<this.levels.length;a++)this.levels[a].LV(c)};
    VWa=function(a,b,c){b={cpn:b};a.indexOf("/ibw/")===-1&&(b.ibw=c?String(c):"1369843");return{url:g.wo(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
    g.pS=function(a,b){g.DE.call(this);this.Da=a;this.adModule=!1;this.adaptiveFormats="";this.tW=this.Hv=this.adQueryId=this.Gv=null;this.QC={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.me=null;this.YC=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Oy=void 0;this.Sk=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.VC=this.Iv=!1;this.vU=null;this.zi=this.Ij=this.iq=this.AF=
        !1;this.D=null;this.zW=this.Pk=!1;this.Sf=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=Infinity;this.x_=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Tl=!1;this.yN=this.cycToken=null;this.author="";this.Ik=0;this.yn=!1;this.VH=null;this.GN=[];this.Ep=this.yD=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Ab=this.jf="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
        this.endSeconds=this.Kb=0;this.Zl=this.Wa=this.B=null;this.ED="";this.loading=!1;this.Xd=this.vn=0;this.vW=this.pipable=this.Gq=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Bb=this.isPrivate=this.isListed=this.KD=this.xi=this.mutedAutoplay=this.Dl=!1;this.JF="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.MD=this.eb=this.je=!1;this.latencyClass="UNKNOWN";this.S0=this.sU=this.JD=this.xW=this.AD=this.enablePreroll=
        this.A3=this.enableServerStitchedDai=this.If=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Dc=0;this.reloadReason="";this.FE=this.uU=this.Qi=!1;this.keywords={};this.Jb="";this.qp=0;this.QA=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Rl=null;this.Ry=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.s1=this.paygated=!1;this.Sm=[];this.xn=!1;this.Ea=[];this.wi=null;this.BW=this.racyCheckOk=
        !1;this.WV={};this.isProximaLatencyEligible=!1;this.dH=0;this.C=null;this.autonavState=1;this.UW=null;this.shortDescription="";this.ra=this.mX=!1;this.Yd=this.Ob=this.startSeconds=0;this.RA=this.FX=this.iB=oS;this.Jv=this.suggestions=null;this.Sy=this.Ev=void 0;this.isExternallyHostedPodcast=!1;this.Yl=null;this.eD=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Vv=void 0;this.kf=[];this.Jk=[];this.hlsFormats=this.Vf="";this.jz=this.Zz=this.Nk=this.Fd=this.gb=this.yp=
        this.gw=null;this.un="vvt";this.sj=!1;this.IN=null;this.GY="";this.Bq=NaN;this.zv=this.BC=this.fq=this.VB=this.SB=this.jm=this.eq=this.JC=this.tq=this.IC="";this.lm=null;this.yW=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.M1=!1;this.heartbeatToken="";this.O2=this.q2=NaN;this.Dd=this.pp=this.uj=this.y3=this.u3=!1;this.Vl=!0;this.Z={};this.captionTracks=[];this.bD=[];this.FY=0;this.dD=[];this.Lv=[];this.Kv=!1;this.wD={};this.Rk=new g.LO("und",new g.rQ("Default","und",!0));this.BF=0;this.K=
        null;this.vp=[];this.DD=!1;this.sB=this.Cc="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.La=this.bG=this.FD=this.playerResponse=this.DZ=this.mz=this.An=this.Di=this.CD=this.SC=this.OC=null;this.Xv=!1;this.qa=null;this.isInlinePlaybackNoAd=this.Pl=this.zD=this.useCobaltWidevine=this.NW=this.LA=!1;this.QZ=!0;this.Rf=this.yj=NaN;this.defraggedFromSubfragments=this.kF=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.zz="";this.o_=
        !1;this.gatewayExperimentGroup="";this.XH=this.HN=this.Dj=!1;this.interstitials=[];this.Jf=this.LD=!1;this.Op="";this.allowImaMonetization=!1;this.BU="";this.aD=!1;this.wh="";this.wp=[];this.JG=[];this.od="";this.CN=this.Y=this.x3=!1;this.Jg=0;this.Vp="";this.WH=this.JH=this.HD=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Ap=!1;this.Xl=this.He=!0;this.errorDetail=this.userGenderAge="";this.AN=this.BN=this.getSharePanelCommand=
        this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Mn=this.errorReason=this.errorCode=null;this.Uv=this.Mv="";this.zn=!1;this.Qy=[];this.Qc=this.Za=this.Tb=this.Ii=this.cf=0;this.fetchType=null;this.XV=!0;this.transitionEndpointAtEndOfStream=void 0;this.ZC=this.ZW=-1;this.Wl=this.Uf=!1;this.uf=null;this.Sa="";this.Bn=!1;this.watchUrl=null;this.kz=[];this.visibleOnLoadKeys=[];this.rW=[];this.inlineMetricEnabled=this.Sl=
        !1;this.embedsRctn=this.embedsRct="";this.GD=NaN;this.UV=(0,g.fC)();this.GB=this.Mp=0;this.gp=null;this.Tf=0;this.pW=this.EN=this.ND=!1;this.GX=0;this.tp={};this.Uf=this.L("web_new_autonav_countdown");this.Wl=this.L("web_new_big_thumbnail_endscreen");WWa(this,b);this.Wv=new wRa;g.M(this,this.Wv)};
    g.sS=function(a,b,c){b&&b.cpn&&g.kE(new g.CB("CPN provided in VideoData update",{erb:b.cpn,Ng:a.clientPlaybackNonce,O9:c}));c?(bB(b),WWa(a,b),qS(a)&&rS(a)):(b=b||{},XWa(a,b),YWa(a,b),ZWa(a,b),a.publish("dataupdated"))};
    ZWa=function(a,b){a.fflags=aB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=LI(c));a.Iv=YA(a.Iv,b.iv_ads_only);a.VC=YA(a.VC,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.Mca=c;a.isPharma=YA(a.isPharma,b.is_pharma);a.author=aB(a.author,b.author);a.jf=$Wa(b.ttsurl)||a.jf;a.yn=YA(a.yn,b.cc_asr);a.Ab=aB(a.Ab,b.channel_path);if(c=b.profile_picture)a.profilePicture=aB(a.profilePicture,c);a.videoCountText=aB(a.videoCountText,b.video_count_text);a.autonavState=ZA(a.autonavState,b.autonav_state,
        aXa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!((d=a.playerResponse)==null||!d.cotn);d=g.hI(a.Da.experiments,"html5_entity_id_simplified_preferred_record_size");a.playerResponse&&!c&&(a.clientPlaybackNonce=bXa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.WB("ssei","uhdc"),a.clientPlaybackNonce=aB(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=aB(a.clientPlaybackNonce,b.cpn);a.subscribed=YA(a.subscribed,b.subscribed);a.rawViewCount=$A(a.rawViewCount,
        b.view_count);a.shortViewCount=aB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=aB(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=aB(a.lengthText||"",b.lengthText);a.wx=aB(a.wx||"",b.wx);a.jt=aB(a.jt||"",b.jt);a.title=aB(a.title,b.title);a.subtitle=aB(a.subtitle,b.subtitle);a.expandedTitle=aB(a.expandedTitle,b.expanded_title);a.expandedSubtitle=aB(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=aB(a.ariaLabel,b.aria_label);a.ypcPreview=aB(a.ypcPreview,b.ypc_preview);
        a.JN=aB(a.JN,b.ypc_origin);a.sj=YA(a.sj,b.ypc_is_premiere_trailer);a.Vp=aB(a.Vp,b.ypc_clickwrap_message);a.paygated=YA(a.paygated,b.paygated);a.yW=YA(a.yW,b.requires_purchase);a.showShareButton=!YA(!a.showShareButton,b.ss);a.He=YA(a.He,b.showwatchlater);a.Xl=YA(a.Xl,b.shownotifybutton);a.Ap=YA(a.Ap,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=cXa(d.split(","));if(d=b.rvs)a.suggestions=Kqa(d).map(function(e){return e.playlist||e.list||e.api?new g.$R(a.Da,e):new g.aS(a.Da,e)});
        a.contentCheckOk=YA(a.contentCheckOk,b.cco);a.racyCheckOk=YA(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=YA(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=aB(a.oauthToken,b.oauth_token);a.Jb=aB(a.Jb,b.kpt);a.visitorData=aB(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=mA(d,"&");a.Zv=aB(a.Zv,b.endscreen_ad_tracking_data);a.WX=YA(a.WX,b.wait_for_vast_info_cards_xml);a.cD=YA(a.cD,b.suppress_creator_endscreen);a.tU=YA(a.tU,b.is_trueview_action);a.MX=aB(a.MX,b.tracking_list);
        a.Mv=aB(a.Mv,b.clip);a.Uv=aB(a.Uv,b.clipt);dXa(a,b)};
    WWa=function(a,b){b=b||{};var c=b.errordetail;c!=null&&(a.errorDetail=c);var d=b.errorcode;d!=null?a.errorCode=d:b.status=="fail"&&(a.errorCode="auth");var e=b.reason;e!=null&&(a.errorReason=e);var f=b.subreason;f!=null&&(a.Mn=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.wD(16));a.Bb=YA(a.Da.Bb,b.livemonitor);XWa(a,b);var h=b.raw_player_response;if(h)a.bG=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}if(a.L("html5_enable_ssap_entity_id")){var m=
        b.cached_load;m&&(a.Ep=YA(a.Ep,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.WB("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.wD(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.v(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.Iv=!0);t.allowInPlaceSwitch&&(a.VC=!0);var u=t.loadPolicy;u&&(a.annotationsLoadPolicy=eXa[u]);var w=t.invideoUrl;w&&(a.Va=LI(w));a.AF=!0;break}}var A=
        a.playerResponse.attestation;A&&pWa(a,A);var C=a.playerResponse.cotn;C&&(a.cotn=C);var E=a.playerResponse.heartbeatParams;if(E){fXa(a)&&(a.M1=!0);var H=E.heartbeatToken;H&&(a.drmSessionId=E.drmSessionId||"",a.heartbeatToken=H,a.q2=Number(E.intervalMilliseconds),a.O2=Number(E.maxRetries),a.u3=!!E.softFailOnError,a.y3=!!E.useInnertubeHeartbeatsForDrm,a.iq=!0);a.heartbeatServerData=E.heartbeatServerData;var L;a.Tl=!((L=E.heartbeatAttestationConfig)==null||!L.requiresAttestation)}var N=a.playerResponse.messages;
        N&&tWa(a,N);var Q=a.playerResponse.overlay;if(Q){var da=Q.playerControlsOverlayRenderer;if(da)if(vWa(a,da.controlBgHtml),da.mutedAutoplay){var na=g.V(da.mutedAutoplay,gXa);if(na&&na.endScreen){var qa=g.V(na.endScreen,hXa);qa&&qa.text&&(a.BU=g.OE(qa.text))}}else a.mutedAutoplay=!1}var ha=a.playerResponse.playabilityStatus;if(ha){var ta=ha.backgroundability;ta&&ta.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var P,ua;if((P=ha.offlineability)==null?0:(ua=P.offlineabilityRenderer)==
        null?0:ua.offlineable)a.offlineable=!0;var y=ha.contextParams;y&&(a.contextParams=y);var Z=ha.pictureInPicture;Z&&Z.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ha.playableInEmbed&&(a.allowEmbed=!0);var cb=ha.ypcClickwrap;if(cb){var La=cb.playerLegacyDesktopYpcClickwrapRenderer,$a=cb.ypcRentalActivationRenderer;if(La)a.Vp=La.durationMessage||"",a.zi=!0;else if($a){var Ya=$a.durationMessage;a.Vp=Ya?g.OE(Ya):"";a.zi=!0}}var Ha=ha.errorScreen;if(Ha){if(Ha.playerLegacyDesktopYpcTrailerRenderer){var Ta=
            Ha.playerLegacyDesktopYpcTrailerRenderer;a.zv=Ta.trailerVideoId||"";var ob=Ha.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var B=ob&&ob.ypcTrailerRenderer}else if(Ha.playerLegacyDesktopYpcOfferRenderer)Ta=Ha.playerLegacyDesktopYpcOfferRenderer;else if(Ha.ypcTrailerRenderer){B=Ha.ypcTrailerRenderer;var F=B.fullVideoMessage;a.eq=F?g.OE(F):"";var D,J;a.zv=((D=g.V(B,iXa))==null?void 0:(J=D.videoDetails)==null?void 0:J.videoId)||""}Ta&&(a.fq=Ta.itemTitle||"",Ta.itemUrl&&(a.BC=Ta.itemUrl),Ta.itemBuyUrl&&
        (a.SB=Ta.itemBuyUrl),a.VB=Ta.itemThumbnail||"",a.JC=Ta.offerHeadline||"",a.tq=Ta.offerDescription||"",a.jm=Ta.offerId||"",a.IC=Ta.offerButtonText||"",a.IN=Ta.offerButtonFormattedText||null,a.Bq=Ta.overlayDurationMsec||NaN,a.eq=Ta.fullVideoMessage||"",a.Ij=!0);if(B){var K=g.V(B,iXa);if(K)a.lm={raw_player_response:K};else{var aa=g.V(B,jXa);a.lm=aa?oA(aa):null}a.Ij=!0}}}var fa=a.playerResponse.playbackTracking;if(fa){var ia=b,O=WR(fa.googleRemarketingUrl);O&&(a.googleRemarketingUrl=O);var ka=WR(fa.youtubeRemarketingUrl);
            ka&&(a.youtubeRemarketingUrl=ka);var la=WR(fa.ptrackingUrl);if(la){var za=YR(la),Sa=za.oid;Sa&&(a.DU=Sa);var gb=za.pltype;gb&&(a.EU=gb);var Ab=za.ptchn;Ab&&(a.CU=Ab);var pb=za.ptk;pb&&(a.lz=encodeURIComponent(pb));var Za=za.m;Za&&(a.Yv=Za)}var qc=WR(fa.qoeUrl);if(qc){for(var $b=g.pA(qc),ac=g.v(Object.keys($b)),kc=ac.next();!kc.done;kc=ac.next()){var Vc=kc.value,Wb=$b[Vc];$b[Vc]=Array.isArray(Wb)?Wb.join(","):Wb}a.lX=$b;var wc=$b.cat;wc&&(a.L("html5_enable_qoe_cat_list")?a.wp=a.wp.concat(wc.split(",")):
                a.wh=wc);var $c=$b.live;$c&&(a.JF=$c);var Qc=$b.drm_product;Qc&&(a.Sk=Qc)}var uc=WR(fa.videostatsPlaybackUrl);if(uc){var Tb=YR(uc);a.rb=Tb;var Ub=Tb.adformat;if(Ub){ia.adformat=Ub;var yd=a.U(),pd=lWa(Ub,a.sB,yd.D,yd.N);pd&&(a.adFormat=pd)}var qd=Tb.aqi;qd&&(ia.ad_query_id=qd);var Zb=Tb.autoplay;Zb&&(a.Dl=Zb=="1",a.Gq=Zb=="1");var Ec=Tb.autonav;Ec&&(a.isAutonav=Ec=="1");var Hb=Tb.delay;Hb&&(a.Kb=df(Hb));var cd=Tb.ei;cd&&(a.eventId=cd);Tb.el==="adunit"&&(a.Dl=!0);var zd=Tb.feature;zd&&(a.xp=zd);var Pb=
                Tb.list;Pb&&(a.playlistId=Pb);var ge=Tb.of;ge&&(a.UH=ge);var Ud=Tb.osid;Ud&&(a.osid=Ud);var Vd=Tb.referrer;Vd&&(a.referrer=Vd);var Ce=Tb.sdetail;Ce&&(a.pz=Ce);var De=Tb.sourceid;De&&(a.yFa=De);var Ld=Tb.ssrt;Ld&&(a.zp=Ld=="1");var $e=Tb.subscribed;$e&&(a.subscribed=$e=="1",a.N.subscribed=$e);var Oe=Tb.uga;Oe&&(a.userGenderAge=Oe);var Md=Tb.upt;Md&&(a.uA=Md);var zf=Tb.vm;zf&&(a.videoMetadata=zf)}var Nd=WR(fa.videostatsWatchtimeUrl);if(Nd){var he=YR(Nd).ald;he&&(a.Fv=he)}if(a.L("html5_add_per_destination_base_query_for_video_stats_urls")){var rd=
                {};if(uc){var Hd=YR(uc);rd.playback=Hd}if(Nd){var sd=YR(Nd);rd.watchtime=sd}var Od=WR(fa.atrUrl);if(Od){var kg=YR(Od);rd.atr=kg}var af=WR(fa.engageUrl);if(af){var Pf=YR(af);rd.engage=Pf}a.tp=rd}if(fa.promotedPlaybackTracking){var Wc=fa.promotedPlaybackTracking;Wc.startUrls&&(a.nz=Wc.startUrls);Wc.firstQuartileUrls&&(a.PC=Wc.firstQuartileUrls);Wc.secondQuartileUrls&&(a.RC=Wc.secondQuartileUrls);Wc.thirdQuartileUrls&&(a.TC=Wc.thirdQuartileUrls);Wc.completeUrls&&(a.NC=Wc.completeUrls);Wc.engagedViewUrls&&
            (Wc.engagedViewUrls.length>1&&g.kE(new g.CB("There are more than one engaged_view_urls.")),a.Aj=Wc.engagedViewUrls[0])}}var oc=a.playerResponse.playerCueRanges;oc&&oc.length>0&&(a.cueRanges=oc);var Pe=a.playerResponse.playerCueRangeSet;Pe&&g.kXa(a,Pe);a:{var kh=a.playerResponse.adPlacements;if(kh)for(var Zh=g.v(kh),nh=Zh.next();!nh.done;nh=Zh.next()){var Ki=void 0,pf=void 0,gf=(Ki=nh.value.adPlacementRenderer)==null?void 0:(pf=Ki.renderer)==null?void 0:pf.videoAdTrackingRenderer;if(gf){var Fe=gf;
            break a}}Fe=null}var $h=Fe;fa&&fa.promotedPlaybackTracking&&$h&&g.kE(new g.CB("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));$h&&(a.s1=!0);var vc=a.playerResponse.playerAds;if(vc)for(var Fc=b,Gc=g.v(vc),Li=Gc.next();!Li.done;Li=Gc.next()){var Df=Li.value;if(Df){var qg=Df.playerLegacyDesktopWatchAdsRenderer;if(qg){var hf=qg.playerAdParams;if(hf){hf.autoplay=="1"&&(a.Dl=!0,a.Gq=!0);a.Hv=hf.encodedAdSafetyReason||null;hf.showContentThumbnail!==void 0&&(a.Vl=!!hf.showContentThumbnail);
            Fc.enabled_engage_types=hf.enabledEngageTypes;break}}}}var Dd=a.playerResponse.playerConfig;if(Dd){var Tf=Dd.manifestlessWindowedLiveConfig;if(Tf){var ai=Number(Tf.minDvrSequence),rg=Number(Tf.maxDvrSequence),Rg=Number(Tf.minDvrMediaTimeMs),sg=Number(Tf.maxDvrMediaTimeMs),Mi=Number(Tf.startWalltimeMs);ai&&(a.cf=ai);Rg&&(a.Za=Rg/1E3);rg&&(a.Ii=rg);sg&&(a.Tb=sg/1E3);Mi&&(a.Qc=Mi/1E3);(ai||Rg)&&(rg||sg)&&(a.eb=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.je=!1)}var le=Dd.daiConfig;if(le){if(le.enableDai){a.If=
            !0;var tg=le.enableServerStitchedDai;tg&&(a.enableServerStitchedDai=tg);var ug=le.enablePreroll;ug&&(a.enablePreroll=ug)}var bi;if(le.daiType==="DAI_TYPE_SS_DISABLED"||((bi=le.debugInfo)==null?0:bi.isDisabledUnpluggedChannel))a.JD=!0;le.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.A3=!0)}var Ef=Dd.audioConfig;if(Ef){var vg=Ef.loudnessDb;vg!=null&&(a.Sf=vg);var oh=Ef.trackAbsoluteLoudnessLkfs;oh!=null&&(a.x_=oh);var Sg=Ef.loudnessTargetLkfs;Sg!=null&&(a.loudnessTargetLkfs=Sg);Ef.audioMuted&&(a.Pk=!0);
            Ef.muteOnStart&&(a.zW=!0);var ph=Ef.loudnessNormalizationConfig;if(ph){ph.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);ph.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var ve=ph.minimumLoudnessTargetLkfs;ve!=null&&(a.minimumLoudnessTargetLkfs=ve);var Se=ph.maxStatefulTimeThresholdSec;Se!=null&&(a.maxStatefulTimeThresholdSec=Se)}}var $d=Dd.playbackEndConfig;if($d){var qj=$d.endSeconds,jf=$d.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(qj&&(a.endSeconds=
            qj),jf&&(a.limitedPlaybackDurationInSeconds=jf))}var Ge=Dd.fairPlayConfig;if(Ge){var Uf=Ge.certificate;Uf&&(a.Wa=ZQ(Uf));var Vf=Number(Ge.keyRotationPeriodMs);Vf>0&&(a.dw=Vf);var Tg=Number(Ge.keyPrefetchMarginMs);Tg>0&&(a.cw=Tg)}var Qd=Dd.playbackStartConfig;if(Qd){a.WH=Number(Qd.startSeconds);var wg=Qd.liveUtcStartSeconds,Ff=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;wg&&!Ff&&(a.liveUtcStartSeconds=Number(wg));var ci=Qd.startPosition;if(ci){var mk=ci.utcTimeMillis;mk&&!Ff&&(a.liveUtcStartSeconds=
            Number(mk)*.001);var um=ci.streamTimeMillis;um&&(a.Yd=Number(um)*.001)}a.progressBarStartPosition=Qd.progressBarStartPosition;a.progressBarEndPosition=Qd.progressBarEndPosition}else{var tl=Dd.skippableSegmentsConfig;if(tl){var ul=tl.introSkipDurationMs;ul&&(a.HD=Number(ul)/1E3);var nk=tl.outroSkipDurationMs;nk&&(a.JH=Number(nk)/1E3)}}var Ni=Dd.skippableIntroConfig;if(Ni){var kf=Number(Ni.startMs),He=Number(Ni.endMs);isNaN(kf)||isNaN(He)||(a.yj=kf,a.Rf=He)}var ae=Dd.streamSelectionConfig;ae&&(a.Xd=
            Number(ae.maxBitrate));var qh=Dd.vrConfig;qh&&(a.LA=qh.partialSpherical=="1");var xg=Dd.webDrmConfig;if(xg){xg.skipWidevine&&(a.NW=!0);var vm=xg.widevineServiceCert;vm&&(a.Zl=ZQ(vm));xg.useCobaltWidevine&&(a.useCobaltWidevine=!0);xg.startWithNoQualityConstraint&&(a.Pl=!0)}var yg=Dd.mediaCommonConfig;if(yg){var di=yg.dynamicReadaheadConfig;if(di){a.maxReadAheadMediaTimeMs=di.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=di.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=di.readAheadGrowthRateMs||
            NaN;var rj,Ug=yg==null?void 0:(rj=yg.mediaUstreamerRequestConfig)==null?void 0:rj.videoPlaybackUstreamerConfig;Ug&&(a.wi=ZQ(Ug));var rh=yg==null?void 0:yg.sabrContextUpdates;if(rh&&rh.length>0)for(var sj=g.v(rh),tj=sj.next();!tj.done;tj=sj.next()){var sh=tj.value;if(sh.type&&sh.value){var uj={type:sh.type,scope:sh.scope,value:ZQ(sh.value)||void 0,sendByDefault:sh.sendByDefault};a.sabrContextUpdates.set(sh.type,uj)}}}var Oi=yg.serverPlaybackStartConfig;Oi&&(a.serverPlaybackStartConfig=Oi);yg.useServerDrivenAbr&&
        (a.EN=!0);var th=yg.requestPipeliningConfig;th&&(a.requestPipeliningConfig=th)}var vj=Dd.inlinePlaybackConfig;vj&&(a.QZ=!!vj.showAudioControls);var zg=Dd.embeddedPlayerConfig;if(zg){a.embeddedPlayerConfig=zg;var uh=zg.embeddedPlayerMode;if(uh){var ok=a.U();ok.Ea=uh;ok.C=uh==="EMBEDDED_PLAYER_MODE_PFL"}var vl=zg.permissions;vl&&(a.allowImaMonetization=!!vl.allowImaMonetization)}var wm=Dd.ssapConfig;wm&&(a.o_=wm.ssapPrerollEnabled||!1);var ei=Dd.webPlayerConfig;ei&&(ei.gatewayExperimentGroup&&(a.gatewayExperimentGroup=
            ei.gatewayExperimentGroup),ei.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Wf=a.playerResponse.streamingData;if(Wf){var qf=Wf.adaptiveFormats;if(qf){var Xf=Wf.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&Xf)for(var Ag=g.v(qf),pk=Ag.next();!pk.done;pk=Ag.next()){var wj=pk.value;!wj.url&&wj.distinctParams&&(wj.url=Xf+"&"+wj.distinctParams)}}var wl=Wf.formats;if(wl){for(var gc=[],Zq=g.v(wl),qk=Zq.next();!qk.done;qk=Zq.next()){var xl=qk.value;gc.push(xl.itag+"/"+xl.width+"x"+
            xl.height)}a.ED=gc.join(",");gc=[];for(var rk=g.v(wl),Cn=rk.next();!Cn.done;Cn=rk.next()){var fi=Cn.value,xj={itag:fi.itag,type:fi.mimeType,quality:fi.quality},xm=fi.url;xm&&(xj.url=xm);var ym=hP(fi),ct=ym.cE,$q=ym.vH,ar=ym.s;ym.SY&&(xj.url=ct,xj.sp=$q,xj.s=ar);gc.push(g.vo(xj))}a.Vf=gc.join(",")}var Dn=Wf.hlsFormats;if(Dn){var zm=Dd||null,sk={};if(zm){var yl=zm.audioPairingConfig;if(yl&&yl.pairs)for(var tk=g.v(yl.pairs),vh=tk.next();!vh.done;vh=tk.next()){var gi=vh.value,uk=gi.videoItag;sk[uk]||
        (sk[uk]=[]);sk[uk].push(gi.audioItag)}}for(var br={},wp=g.v(Dn),xp=wp.next();!xp.done;xp=wp.next()){var cr=xp.value;br[cr.itag]=cr.bitrate}for(var En=[],dr=g.v(Dn),Vg=dr.next();!Vg.done;Vg=dr.next()){var me=Vg.value,Te={itag:me.itag,type:me.mimeType,url:me.url,bitrate:me.bitrate,width:me.width,height:me.height,fps:me.fps},Fn=me.audioTrack;if(Fn){var Wg=Fn.displayName;Wg&&(Te.name=Wg,Te.audio_track_id=Fn.id,Fn.audioIsDefault&&(Te.is_default="1"))}if(me.drmFamilies){for(var hi=[],wh=g.v(me.drmFamilies),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     yp=wh.next();!yp.done;yp=wh.next())hi.push($Ta[yp.value]);Te.drm_families=hi.join(",")}var zl=sk[me.itag];if(zl&&zl.length){Te.audio_itag=zl.join(",");var er=br[zl[0]];er&&(Te.bitrate+=er)}var Gn=FTa(me);Gn&&(Te.eotf=Gn);me.audioChannels&&(Te.audio_channels=me.audioChannels);En.push(g.vo(Te))}a.hlsFormats=En.join(",")}var Am=Wf.licenseInfos;if(Am&&Am.length>0){for(var Hn={},fr=g.v(Am),ii=fr.next();!ii.done;ii=fr.next()){var yj=ii.value,vk=yj.drmFamily,Al=yj.url;vk&&Al&&(Hn[$Ta[vk]]=Al)}a.me=Hn}var Bm=
            Wf.drmParams;Bm&&(a.drmParams=Bm);var Cm=Wf.dashManifestUrl;Cm&&(a.Zc=g.wo(Cm,{cpn:a.clientPlaybackNonce}));var zp=Wf.hlsManifestUrl;zp&&(a.hlsvp=zp);var Ap=Wf.probeUrl;Ap&&(a.probeUrl=LI(g.wo(Ap,{cpn:a.clientPlaybackNonce})));var Bp=Wf.serverAbrStreamingUrl;Bp&&(a.Ul=new g.cP(Bp,!0))}var In=a.playerResponse.trackingParams;In&&(a.Ca=In);var Kc=a.playerResponse.videoDetails;if(Kc){var xh=b,Yf=Kc.videoId;Yf&&(a.videoId=Yf,xh.video_id||(xh.video_id=Yf));var ji=Kc.channelId;ji&&(a.N.uid=ji.substr(2));
            var yh=Kc.title;yh&&(a.title=yh,xh.title||(xh.title=yh));var Jn=Kc.lengthSeconds;Jn&&(a.lengthSeconds=Number(Jn),xh.length_seconds||(xh.length_seconds=Jn));var gr=Kc.keywords;gr&&(a.keywords=cXa(gr));var Bl=Kc.channelId;Bl&&(a.Ol=Bl,xh.ucid||(xh.ucid=Bl));var Kn=Kc.viewCount;Kn&&(a.rawViewCount=Number(Kn));var Cl=Kc.author;Cl&&(a.author=Cl,xh.author||(xh.author=Cl));var Cp=Kc.shortDescription;Cp&&(a.shortDescription=Cp);var hr=Kc.isCrawlable;hr&&(a.isListed=hr);var Dp=Kc.musicVideoType;Dp&&(a.musicVideoType=
                Dp);var zj=Kc.isLive;zj!=null&&(a.isLivePlayback=zj);if(zj||Kc.isUpcoming)a.isPremiere=!Kc.isLiveContent;var Pi=Kc.thumbnail;Pi&&(a.Z=VR(Pi));var wk=Kc.isExternallyHostedPodcast;wk&&(a.isExternallyHostedPodcast=wk);var Dl=Kc.viewerLivestreamJoinPosition;if(Dl==null?0:Dl.utcTimeMillis)a.GB=df(Dl.utcTimeMillis);var Ln=Dd||null,Mn=b;Kc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Kc.isUpcoming&&(a.isUpcoming=!0);if(Kc.isPostLiveDvr){a.je=!0;var xk=Kc.latencyClass;xk&&(a.latencyClass=lXa[xk]||
                "UNKNOWN");Kc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var Aj=!1;if(a.Bb)a.allowLiveDvr=UQ()?!0:VA&&tS<5?!1:!0,a.isLivePlayback=!0;else if(Kc.isLive){Mn.livestream="1";a.allowLiveDvr=Kc.isLiveDvrEnabled?UQ()?!0:VA&&tS<5?!1:!0:!1;a.Ma=27;Kc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var yk=Kc.latencyClass;yk&&(a.latencyClass=lXa[yk]||"UNKNOWN");var Ep=Kc.liveChunkReadahead;Ep&&(a.liveChunkReadahead=Ep);var El=Ln&&Ln.livePlayerConfig;if(El){El.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=
                !0);El.hasSubfragmentedWebm&&(a.kF=!0);El.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var ir=El.liveExperimentalContentId;ir&&(a.liveExperimentalContentId=Number(ir));var Fl=El.isLiveHeadPlayable;a.L("html5_live_head_playable")&&Fl!=null&&(a.isLiveHeadPlayable=Fl)}Aj=!0}else Kc.isUpcoming&&(Aj=!0);Aj&&(a.isLivePlayback=!0,Mn.adformat&&Mn.adformat.split("_")[1]!=="8"||a.Ea.push("heartbeat"),a.iq=!0)}var Gl=Kc.isPrivate;Gl!==void 0&&(a.isPrivate=YA(a.isPrivate,Gl))}if(ha){var Hl=Kc||
            null,Fp=!1,zk=ha.errorScreen;Fp=zk&&(zk.playerLegacyDesktopYpcOfferRenderer||zk.playerLegacyDesktopYpcTrailerRenderer||zk.ypcTrailerRenderer)?!0:Hl&&Hl.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ha.status);if(!Fp){a.errorCode=eWa(ha.errorCode)||"auth";var Dm=zk&&zk.playerErrorMessageRenderer;if(Dm){a.playerErrorMessageRenderer=Dm;var Nn=Dm.reason;Nn&&(a.errorReason=g.OE(Nn));var Il=Dm.subreason;Il&&(a.Mn=g.OE(Il),a.ew=Il)}else a.errorReason=ha.reason||null;var On=ha.status;
            if(On==="LOGIN_REQUIRED")a.errorDetail="1";else if(On==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(On==="AGE_CHECK_REQUIRED"){var Pn=ha.errorScreen,Qn=Pn&&Pn.playerKavRenderer;a.errorDetail=Qn&&Qn.kavUrl?"4":"3"}else a.errorDetail=ha.isBlockedInRestrictedMode?"5":"0"}}var Rn=a.playerResponse.interstitialPods;Rn&&sWa(a,Rn);a.Va&&a.eventId&&(a.Va=rA(a.Va,{ei:a.eventId}));var Gp=a.playerResponse.captions;if(Gp&&Gp.playerCaptionsTracklistRenderer)a:{var zh=Gp.playerCaptionsTracklistRenderer;a.captionTracks=
            [];if(zh.captionTracks)for(var Hp=g.v(zh.captionTracks),Ak=Hp.next();!Ak.done;Ak=Hp.next()){var Bg=Ak.value,Em=$Wa(Bg.baseUrl);if(!Em)break a;var Xg={is_translateable:!!Bg.isTranslatable,languageCode:Bg.languageCode,languageName:Bg.name&&g.OE(Bg.name),url:Em,vss_id:Bg.vssId,kind:Bg.kind};Xg.name=Bg.trackName;Xg.displayName=Bg.name&&g.OE(Bg.name);a.captionTracks.push(new g.QR(Xg))}a.bD=zh.audioTracks||[];a.FY=zh.defaultAudioTrackIndex||0;a.Lv=[];if(zh.translationLanguages)for(var Qi=g.v(zh.translationLanguages),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ki=Qi.next();!ki.done;ki=Qi.next()){var Bj=ki.value,Bk={};Bk.languageCode=Bj.languageCode;Bk.languageName=g.OE(Bj.languageName);if(Bj.translationSourceTrackIndices){Bk.translationSourceTrackIndices=[];for(var Sn=g.v(Bj.translationSourceTrackIndices),Jl=Sn.next();!Jl.done;Jl=Sn.next())Bk.translationSourceTrackIndices.push(Jl.value)}if(Bj.excludeAudioTrackIndices){Bk.excludeAudioTrackIndices=[];for(var Ri=g.v(Bj.excludeAudioTrackIndices),Si=Ri.next();!Si.done;Si=Ri.next())Bk.excludeAudioTrackIndices.push(Si.value)}a.Lv.push(Bk)}a.dD=
            [];if(zh.defaultTranslationSourceTrackIndices)for(var Ck=g.v(zh.defaultTranslationSourceTrackIndices),Ip=Ck.next();!Ip.done;Ip=Ck.next())a.dD.push(Ip.value);a.Kv=!!zh.contribute&&!!zh.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.WH=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&
        uWa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Dk;a.compositeLiveIngestionOffsetToken=(Dk=a.playerResponse.playbackTracking)==null?void 0:Dk.compositeLiveIngestionOffsetToken;var Ek;a.compositeLiveStatusToken=(Ek=a.playerResponse.playbackTracking)==null?void 0:Ek.compositeLiveStatusToken}YWa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Kl=b.hlsdvr;Kl!=null&&(a.allowLiveDvr=Kl=="1"?UQ()?!0:VA&&tS<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Hv||(a.Hv=b.encoded_ad_safety_reason||
        null);a.tW=b.agcid||null;a.OC=b.ad_id||null;a.SC=b.ad_sys||null;a.CD=b.encoded_ad_playback_context||null;a.Pk=YA(a.Pk,b.infringe||b.muted);a.hda=b.authkey;a.P9=b.authuser;a.mutedAutoplay=YA(a.mutedAutoplay,b&&b.playmuted);a.aD=YA(a.aD,b&&b.mutedautoplay);var Ll=b.length_seconds;Ll&&(a.lengthSeconds=typeof Ll==="string"?df(Ll):Ll);if(a.isAd()||a.xn||!g.cB(g.sR(a.Da)))a.endSeconds=$A(a.endSeconds,a.JH||b.end||b.endSeconds);else{var Ml=a.lengthSeconds;switch(g.sR(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Ml>
    30?a.limitedPlaybackDurationInSeconds=30:Ml<30&&Ml>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=Ml*.2}}a.Ca=aB(a.Ca,b.itct);a.KD=YA(a.KD,b.noiba);a.MD=YA(a.MD,b.is_live_destination);a.isLivePlayback=YA(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.dc();b.isUpcoming&&(a.isUpcoming=YA(a.isUpcoming,b.isUpcoming));a.je=YA(a.je,b.post_live_playback);a.eb&&(a.je=!1);
        a.isMdxPlayback=YA(a.isMdxPlayback,b.mdx);var Fm=b.mdx_control_mode;Fm&&(a.mdxControlMode=typeof Fm==="number"?Fm:df(Fm));a.isInlinePlaybackNoAd=YA(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Dc=$A(a.Dc,b.reload_count);a.reloadReason=aB(a.reloadReason,b.reload_reason);a.Vl=YA(a.Vl,b.show_content_thumbnail);a.FE=YA(a.FE,b.utpsa);a.eD=YA(a.eD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.yN=b.tkn||null;var Jp=UR(b);Object.keys(Jp).length>0&&(a.Z=Jp);a.Fa=aB(a.Fa,b.vvt);a.mdxEnvironment=
            aB(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);a.lfa=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=aB(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===void 0?$A(0,b.index):$A(a.playlistIndex,b.index));a.fW=b.pyv_view_beacon_url;a.nW=b.pyv_quartile25_beacon_url;a.qW=b.pyv_quartile50_beacon_url;
        a.sW=b.pyv_quartile75_beacon_url;a.iW=b.pyv_quartile100_beacon_url;var Kp=b.session_data;!a.uW&&Kp&&(a.uW=mA(Kp,"&").feature);a.isFling=$A(a.isFling?1:0,b.is_fling)==1;a.vnd=$A(a.vnd,b.vnd);a.forceAdsUrl=aB(a.forceAdsUrl,b.force_ads_url);a.bj=aB(a.bj,b.ctrl);a.Kj=aB(a.Kj,b.ytr);a.Aw=b.ytrcc;a.wW=b.ytrexp;a.WC=b.ytrext;a.Cc=aB(a.Cc,b.adformat);a.sB=aB(a.sB,b.attrib);a.slotPosition=$A(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.zp=YA(a.zp,b.ssrt);a.videoId=bB(b)||a.videoId;a.G=aB(a.G,b.vss_credentials_token);
        a.un=aB(a.un,b.vss_credentials_token_type);a.Dj=YA(a.Dj,b.audio_only);a.HN=YA(a.HN,b.aac_high);a.XH=YA(a.XH,b.prefer_low_quality_audio);a.CN=YA(a.CN,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.wp=a.wp.concat(b.qoe_cat.split(","))):a.wh=aB(a.wh,b.qoe_cat);a.zn=YA(a.zn,b.download_media);var Tn=b.prefer_gapless;var Lp=Tn!=null?YA(a.Y,Tn):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=Lp;rKa(a.playerResponse)&&(a.adModule=!0,a.Ea.push("ad"));var Mp=b.adaptive_fmts;
        Mp&&(a.adaptiveFormats=Mp,a.ma("adpfmts",{},!0));var Nl=b.allow_embed;Nl&&(a.allowEmbed=Nl=="1");var Un=b.backgroundable;Un&&(a.backgroundable=Un=="1");var Vn=b.autonav;Vn&&(a.isAutonav=Vn=="1");var Gm=b.autoplay;Gm&&(a.Gq=Gm=="1",a.Dl=Gm=="1");var jr=b.iv_load_policy;jr&&(a.annotationsLoadPolicy=ZA(a.annotationsLoadPolicy,jr,tR));var Hm=b.cc_lang_pref;Hm&&(a.captionsLanguagePreference=aB(Hm,a.captionsLanguagePreference));var Np=b.cc_load_policy;Np&&(a.VH=ZA(a.VH,Np,tR));var Op;a.deviceCaptionsOn=
            (Op=b.device_captions_on)!=null?Op:void 0;var Pp;a.CZ=(Pp=b.device_captions_lang_pref)!=null?Pp:"";var Qp;a.GN=(Qp=b.viewer_selected_caption_langs)!=null?Qp:[];if(!a.L("html5_enable_ssap_entity_id")){var Im=b.cached_load;Im&&(a.Ep=YA(a.Ep,Im))}b.dash=="0"&&(a.yD=!0);var Ol=b.dashmpd;Ol&&(a.Zc=g.wo(Ol,{cpn:a.clientPlaybackNonce}));var Wn=b.delay;Wn&&(a.Kb=df(Wn));var Xn=a.JH||b.end;Xn!=void 0&&(a.clipEnd=$A(a.clipEnd,Xn));var Rp=b.fmt_list;Rp&&(a.ED=Rp);b.heartbeat_preroll&&a.Ea.push("heartbeat");
        a.vn=-Math.floor(Math.random()*10);a.Ry=-Math.floor(Math.random()*40);var Yn=b.is_listed;Yn&&(a.isListed=YA(a.isListed,Yn));var kr=b.is_private;kr&&(a.isPrivate=YA(a.isPrivate,kr));var Sp=b.is_dni;Sp&&(a.Jf=YA(a.Jf,Sp));var Zn=b.dni_color;Zn&&(a.Op=aB(a.Op,Zn));var lr=b.pipable;lr&&(a.pipable=YA(a.pipable,lr));a.vW=a.pipable&&a.Da.tq;a.mX=a.vW&&!a.Da.showMiniplayerButton;var ne=b.paid_content_overlay_duration_ms;ne&&(a.paidContentOverlayDurationMs=df(ne));var we=b.paid_content_overlay_text;we&&(a.paidContentOverlayText=
            we);var Ie=b.url_encoded_fmt_stream_map;Ie&&(a.Vf=Ie);var $n=b.hls_formats;$n&&(a.hlsFormats=$n);var ao=b.hlsvp;ao&&(a.hlsvp=ao);var Jm=b.live_start_walltime;Jm&&(a.TF=typeof Jm==="number"?Jm:df(Jm));var bo=b.live_manifest_duration;bo&&(a.Rl=typeof bo==="number"?bo:df(bo));var Tp=b.player_params;Tp&&(a.playerParams=Tp);var Up=b.partnerid;Up&&(a.Ma=$A(a.Ma,Up));var Vp=b.probe_url;Vp&&(a.probeUrl=LI(g.wo(Vp,{cpn:a.clientPlaybackNonce})));var li=b.pyv_billable_url;li&&bDa(li)&&(a.Aj=li);var mi=b.pyv_conv_url;
        mi&&bDa(mi)&&(a.gW=mi);dXa(a,b);a.startSeconds>0||(a.startSeconds=$A(a.startSeconds,a.WH||a.HD||b.start||b.startSeconds),a.Ob=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var Cj=b.live_utc_start;if(Cj!=null)a.liveUtcStartSeconds=Number(Cj);else{var co=a.startSeconds;co&&isFinite(co)&&co>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var mr=b.utc_start_millis;mr&&(a.liveUtcStartSeconds=Number(mr)*.001)}var Km=b.stream_time_start_millis;
        Km&&(a.Yd=Number(Km)*.001);var eo=a.HD||b.start;eo==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=$A(a.clipStart,eo));var fo=b.url_encoded_third_party_media;fo&&(a.Yl=Kqa(fo));var go=b.ypc_offer_button_formatted_text;if(go){var Fk=JSON.parse(go);a.IN=Fk!=null?Fk:null;a.GY=go}var Lm=b.ypc_offer_button_text;Lm&&(a.IC=Lm);var Ti=b.ypc_offer_description;Ti&&(a.tq=Ti);var ho=b.ypc_offer_headline;ho&&(a.JC=ho);var io=b.ypc_full_video_message;io&&(a.eq=io);var nr=b.ypc_offer_id;nr&&(a.jm=nr);var or=
            b.ypc_buy_url;or&&(a.SB=or);var Ui=b.ypc_item_thumbnail;Ui&&(a.VB=Ui);var Pl=b.ypc_item_title;Pl&&(a.fq=Pl);var Dj=b.ypc_item_url;Dj&&(a.BC=Dj);var pr=b.ypc_vid;pr&&(a.zv=pr);b.ypc_overlay_timeout&&(a.Bq=Number(b.ypc_overlay_timeout));var jo=b.ypc_trailer_player_vars;jo&&(a.lm=oA(jo));var Wp=b.ypc_original_itct;Wp&&(a.Y3=Wp);a.Ol=aB(a.Ol,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid=b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=
            b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=YA(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=YA(a.N.rmktEnabled,b.rmktEnabled);a.Zz=b.storyboard_spec||null;a.jz=b.live_storyboard_spec||null;a.vU=b.iv_endscreen_url||null;a.AF=YA(a.AF,b.iv3_module);a.iq=YA(a.iq,b.ypc_license_checker_module);a.Ij=YA(a.Ij,b.ypc_module);a.zi=YA(a.zi,b.ypc_clickwrap_module);a.Ij&&a.Ea.push("ypc");a.zi&&a.Ea.push("ypc_clickwrap");a.WV={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,
            cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};ZWa(a,b);var ko=b.cotn;ko&&(a.cotn=ko);if(mXa(a))uS(a)&&(a.isLivePlayback&&a.Zc&&(a.uj=!0),a.Wa&&
        (a.pp=!0));else if(nXa(a))a.uj=!0;else{var qr,lo,Xp=((qr=a.playerResponse)==null?void 0:(lo=qr.streamingData)==null?void 0:lo.adaptiveFormats)||[];if(Xp.length>0)var ni=oXa(a,Xp);else{var Ql=a.adaptiveFormats;if(Ql&&!uS(a)){vS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tUa=!0);var Vi=wS(Ql),Yp=a.me,Yg=a.lengthSeconds,Zf=a.isLivePlayback,$f=a.je,Rl=a.Da,rr=bUa(Vi);if(Zf||$f){var Ue=new tQ("",Rl==null?void 0:Rl.experiments,!0);Ue.dc=!0;Ue.isManifestless=!0;Ue.B=!$f;Ue.isLive=!$f;Ue.je=$f;for(var Ah=
            g.v(Vi),rf=Ah.next();!rf.done;rf=Ah.next()){var ag=rf.value,Sl=aUa(ag,Yp),Gk=vQ(ag.url,ag.sp,ag.s),sr=Gk.get("id");sr&&sr.includes("%7E")&&(Ue.Y=!0);var dt=Number(ag.target_duration_sec)||5,et=Number(ag.max_dvr_duration_sec)||14400,Zp=Number(Gk.get("mindsq")||Gk.get("min_sq")||"0"),tr=Number(Gk.get("maxdsq")||Gk.get("max_sq")||"0")||Infinity;Ue.cf=Ue.cf||Zp;Ue.Ii=Ue.Ii||tr;var Mm=!XJ(Sl.mimeType);Gk&&sQ(Ue,new kQ(Gk,Sl,{Oj:dt,Fn:Mm,vr:et,cf:Zp,Ii:tr,eB:300,je:$f}))}var mo=Ue}else{if(rr==="FORMAT_STREAM_TYPE_OTF"){var Tl=
            Yg;Tl=Tl===void 0?0:Tl;var Ul=new tQ("",Rl==null?void 0:Rl.experiments,!1);Ul.duration=Tl||0;for(var $p=g.v(Vi),aq=$p.next();!aq.done;aq=$p.next()){var Wi=aq.value,bq=aUa(Wi,Yp,Ul.duration),no=vQ(Wi.url,Wi.sp,Wi.s);if(no)if(bq.streamType==="FORMAT_STREAM_TYPE_OTF")sQ(Ul,new lQ(no,bq,"sq/0"));else{var Vl=UP(Wi.init),Hk=UP(Wi.index);sQ(Ul,new qQ(no,bq,Vl,Hk))}}Ul.isOtf=!0;var Wl=Ul}else{var Xl=Yg;Xl=Xl===void 0?0:Xl;var oo=new tQ("",Rl==null?void 0:Rl.experiments,!1);oo.duration=Xl||0;for(var po=g.v(Vi),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            cq=po.next();!cq.done;cq=po.next()){var Yl=cq.value,Ik=aUa(Yl,Yp,oo.duration),Zl=UP(Yl.init),Ej=UP(Yl.index),Jk=vQ(Yl.url,Yl.sp,Yl.s);Jk&&sQ(oo,new qQ(Jk,Ik,Zl,Ej))}Wl=oo}mo=Wl}var Kk=mo;if(Vi.length>0){var dq=Vi[0];if(a.U().playerStyle==="hangouts-meet"&&dq.url){var ur=g.pA(dq.url);a.Mp=a.Mp||Number(ur.expire)}}var ft=a.isLivePlayback&&!a.je&&!a.eb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!xS(a)&&ft&&a.ma("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(Kk.Va=!0));Kk.Sa=yS(a);ni=Kk}else ni=
            null;a.ma("pafmts",{isManifestFilled:!!ni})}if(ni){pXa(a,ni);var qo=!0}else qo=!1;qo?a.enableServerStitchedDai=a.enableServerStitchedDai&&zS(a):!a.Zc||a.Da.qa==="yt"&&a.dc()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.uj=!0)}var ro=b.adpings;ro&&(a.Gv=ro?oA(ro):null);var Nm=b.feature;Nm&&(a.xp=Nm);var Xi=b.referrer;Xi&&(a.referrer=Xi);a.clientScreenNonce=aB(a.clientScreenNonce,b.csn);a.dH=$A(a.dH,b.root_ve_type);a.qp=$A(a.qp,b.kids_age_up_mode);b.kids_app_info!=
        void 0&&(a.kidsAppInfo=b.kids_app_info);a.QA=YA(a.QA,b.upg_content_filter_mode);a.unpluggedFilterModeType=$A(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var oi=b.unplugged_location_info;oi&&(a.qa=oi);var $l=b.unplugged_partner_opt_out;$l&&(a.MC=aB("",$l));a.Xv=YA(a.Xv,b.disable_watch_next);a.mp=aB(a.mp,b.internal_ip_override);a.LD=!!b.is_yto_interstitial;(a.interstitials.length||a.LD)&&a.Ea.push("yto");var vr=b.Sm;vr&&(a.Sm=vr);b.mM&&(a.mM=b.mM);var wr;a.Sa=(wr=b.csi_timer)!=null?wr:"";
        a.Bn=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var Yi=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&Yi&&gWa(a,Yi);if(Yi==null?0:Yi.ustreamerConfig)a.gp=ZQ(Yi.ustreamerConfig);var xr,so,eq=Yi==null?void 0:(xr=Yi.loggingContext)==null?void 0:(so=xr.qoeLoggingContext)==null?void 0:so.serializedContextData;eq&&(a.O3=eq);g.kR(a.Da)&&a.Da.Sl&&(a.embedsRct=aB(a.embedsRct,b.rct),a.embedsRctn=aB(a.embedsRctn,b.rctn));a.Sl=a.Sl||!!b.pause_at_start;b.default_active_source_video_id&&
        (a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
    bXa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Ep||!e?"":(qXa.has(e)?c="":(b=rXa.push(e),qXa.add(e),b>(c!=null?c:50)&&(c=rXa.shift())&&qXa.delete(c),c=e),e!==c&&a.WB("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)};
    YWa=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.La=c;var e=a.La.playerCueRangeSet;e&&g.kXa(a,e);var f=a.La.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.V(l,sXa),a.L("web_player_autonav_use_server_provided_state")&&tXa(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.OE(p.title)),p.subtitle&&(b.subtitle=g.OE(p.subtitle)))}g.pR(a.Da)&&(a.He=!!h.addToMenu);uXa(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.i$=g.V(q,vXa));var r,t,u,w=g.V((r=a.getWatchNextResponse())==
    null?void 0:(t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,wXa);if(w){a.GD=Number(w==null?void 0:w.durationMs)||NaN;if(w==null?0:w.infoPanelOverviewViewModel)a.Qf=w==null?void 0:w.infoPanelOverviewViewModel;if(w==null?0:w.infoPanelDetailsViewModel)a.Ql=w==null?void 0:w.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,C,E=(A=a.getWatchNextResponse())==null?void 0:(C=A.contents)==null?void 0:C.twoColumnWatchNextResults;if(E){var H=
        E.desktopOverlay&&g.V(E.desktopOverlay,xXa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.He=!1))}n&&yXa(a,b,n);var L=$A(0,b.autoplay_count),N=a.getWatchNextResponse(),Q,da=(Q=N.contents)==null?void 0:Q.twoColumnWatchNextResults,na,qa,ha,ta=(na=N.playerOverlays)==null?void 0:(qa=na.playerOverlayRenderer)==null?void 0:(ha=qa.autoplay)==null?void 0:ha.playerOverlayAutoplayRenderer,P=xWa(a),ua,y=(ua=N.contents)==null?void 0:ua.singleColumnWatchNextResults;if(y){var Z;
        if(((Z=y.autoplay)==null?0:Z.autoplay)&&!y.playlist){var cb=y.autoplay.autoplay.sets,La={},$a=new g.aS(a.U()),Ya=null,Ha;if(cb){for(var Ta=g.v(cb),ob=Ta.next();!ob.done;ob=Ta.next()){var B=ob.value.autoplayVideoRenderer;if(B&&B.compactVideoRenderer){Ya=B.compactVideoRenderer;break}}if(Ha=cb[0].autoplayVideo){var F=Ha.clickTrackingParams;F&&(La.itct=F);La.autonav="1";La.playnext=String(L)}}else La.feature="related-auto";var D=g.V(Ha,g.AS);if(Ya){$a.videoId=Ya.videoId;var J=Ya.shortBylineText;J&&($a.author=
            g.OE(J));var K=Ya.title;K&&($a.title=g.OE(K))}else D!=null&&D.videoId&&($a.videoId=D.videoId);$a.wE=La;a.suggestions=[];a.Jv=$a}}if(P){for(var aa=[],fa=g.v(P),ia=fa.next();!ia.done;ia=fa.next()){var O=ia.value,ka=void 0,la=null;if(O.endScreenVideoRenderer){var za=O.endScreenVideoRenderer,Sa=za.title;la=new g.aS(a.U());la.videoId=za.videoId;la.lengthSeconds=za.lengthInSeconds||0;var gb=za.publishedTimeText;gb&&(la.publishedTimeText=g.OE(gb));var Ab=za.shortBylineText;Ab&&(la.author=g.OE(Ab));var pb=
        za.shortViewCountText;pb&&(la.shortViewCount=g.OE(pb));if(Sa){la.title=g.OE(Sa);var Za=Sa.accessibility;if(Za){var qc=Za.accessibilityData;qc&&qc.label&&(la.ariaLabel=qc.label)}}var $b=za.navigationEndpoint;if($b){ka=$b.clickTrackingParams;var ac=g.V($b,g.AS),kc=g.V($b,g.aF);ac?la.xE=ac:kc!=null&&(la.watchUrl=kc.url)}var Vc=za.thumbnailOverlays;if(Vc)for(var Wb=g.v(Vc),wc=Wb.next();!wc.done;wc=Wb.next()){var $c=wc.value.thumbnailOverlayTimeStatusRenderer;if($c)if($c.style==="LIVE"){la.isLivePlayback=
        !0;break}else if($c.style==="UPCOMING"){la.isUpcoming=!0;break}}la.Z=VR(za.thumbnail)}else if(O.endScreenPlaylistRenderer){var Qc=O.endScreenPlaylistRenderer,uc=Qc.navigationEndpoint;if(!uc)continue;var Tb=g.V(uc,g.AS);if(!Tb)continue;var Ub=Tb.videoId;la=new g.$R(a.U());la.playlistId=Qc.playlistId;la.playlistLength=Number(Qc.videoCount)||0;la.j=Ub||null;la.videoId=Ub;var yd=Qc.title;yd&&(la.title=g.OE(yd));var pd=Qc.shortBylineText;pd&&(la.author=g.OE(pd));ka=uc.clickTrackingParams;la.Z=VR(Qc.thumbnail)}la&&
    (ka&&(la.sessionData={itct:ka}),aa.push(la))}a.suggestions=aa}if(ta){a.XV=!!ta.preferImmediateRedirect;a.Uf=a.Uf||!!ta.webShowNewAutonavCountdown;a.Wl=a.Wl||!!ta.webShowBigThumbnailEndscreen;if(a.Uf||a.Wl){var qd=da||null,Zb=new g.aS(a.U());Zb.videoId=ta.videoId;var Ec=ta.videoTitle;if(Ec){Zb.title=g.OE(Ec);var Hb=Ec.accessibility;if(Hb){var cd=Hb.accessibilityData;cd&&cd.label&&(Zb.ariaLabel=cd.label)}}var zd=ta.byline;zd&&(Zb.author=g.OE(zd));var Pb=ta.publishedTimeText;Pb&&(Zb.publishedTimeText=
        g.OE(Pb));var ge=ta.shortViewCountText;ge&&(Zb.shortViewCount=g.OE(ge));var Ud=ta.thumbnailOverlays;if(Ud)for(var Vd=g.v(Ud),Ce=Vd.next();!Ce.done;Ce=Vd.next()){var De=Ce.value.thumbnailOverlayTimeStatusRenderer;if(De)if(De.style==="LIVE"){Zb.isLivePlayback=!0;break}else if(De.style==="UPCOMING"){Zb.isUpcoming=!0;break}else if(De.style==="DEFAULT"&&De.text){Zb.lengthText=g.OE(De.text);var Ld=De.text.accessibility;if(Ld){var $e=Ld.accessibilityData;$e&&$e.label&&(Zb.wx=$e.label||"")}break}}Zb.Z=VR(ta.background);
        var Oe=ta.nextButton;if(Oe){var Md=Oe.buttonRenderer;if(Md){var zf=Md.navigationEndpoint;if(zf){var Nd=g.V(zf,g.AS);Nd&&(Zb.xE=Nd)}}}if(ta.topBadges){var he=ta.topBadges[0];if(he){var rd=g.V(he,zXa);rd&&rd.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Zb.mM=!0)}}var Hd=ta.alternativeTitle;Hd&&(Zb.jt=g.OE(Hd));var sd={autonav:"1",playnext:String(L)};Zb.playlistId&&(sd.autoplay="1");if(qd){var Od,kg,af,Pf,Wc=(Od=qd.autoplay)==null?void 0:(kg=Od.autoplay)==null?void 0:(af=kg.sets)==null?void 0:(Pf=af[0])==null?
            void 0:Pf.autoplayVideo;if(Wc){var oc=Wc.clickTrackingParams;oc&&(sd.itct=oc);var Pe=g.V(Wc,g.AS);Pe&&(Zb.UW=Pe)}}else if(ta){var kh,Zh,nh,Ki=(kh=ta.nextButton)==null?void 0:(Zh=kh.buttonRenderer)==null?void 0:(nh=Zh.navigationEndpoint)==null?void 0:nh.clickTrackingParams;Ki&&(sd.itct=Ki)}sd.itct||(sd.feature="related-auto");Zb.wE=sd;a.suggestions||(a.suggestions=[]);a.Jv=Zb}ta.countDownSecs!=null&&(a.ZW=ta.countDownSecs*1E3);ta.countDownSecsForFullscreen!=null&&(a.ZC=ta.countDownSecsForFullscreen>=
    0?ta.countDownSecsForFullscreen*1E3:-1);if(a.L("web_player_autonav_next_button_renderer")){var pf;a.efa=(pf=ta.nextButton)==null?void 0:pf.buttonRenderer}var gf;a.Ada=(gf=ta.cancelButton)==null?void 0:gf.buttonRenderer;a.L("web_autonav_color_transition")&&ta.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.V(ta.watchToWatchTransitionRenderer,AXa))}var Fe=xWa(a);if(Fe){var $h,vc,Fc,Gc=Fe==null?void 0:($h=Fe[0])==null?void 0:(vc=$h.endScreenVideoRenderer)==null?void 0:(Fc=vc.navigationEndpoint)==
    null?void 0:Fc.clickTrackingParams,Li=g.BS(a);Gc&&Li&&(Li.sessionData={itct:Gc})}a.La.currentVideoThumbnail&&(a.Z=VR(a.La.currentVideoThumbnail));var Df,qg,hf,Dd,Tf,ai=(Df=a.La)==null?void 0:(qg=Df.contents)==null?void 0:(hf=qg.twoColumnWatchNextResults)==null?void 0:(Dd=hf.results)==null?void 0:(Tf=Dd.results)==null?void 0:Tf.contents;if(ai&&ai[1]){var rg,Rg,sg,Mi,le=(rg=ai[1].videoSecondaryInfoRenderer)==null?void 0:(Rg=rg.owner)==null?void 0:(sg=Rg.videoOwnerRenderer)==null?void 0:(Mi=sg.thumbnail)==
    null?void 0:Mi.thumbnails;le&&le.length&&(a.profilePicture=le[le.length-1].url)}var tg=bB(b),ug,bi=(ug=a.getWatchNextResponse())==null?void 0:ug.onResponseReceivedEndpoints;if(bi)for(var Ef=g.v(bi),vg=Ef.next();!vg.done;vg=Ef.next()){var oh=vg.value;g.V(oh,CS)&&(a.wU=g.V(oh,CS));var Sg=g.V(oh,BXa),ph=void 0;if((ph=Sg)==null?0:ph.entityKeys)a.kz=Sg.entityKeys||[],Sg.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Sg.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var ve=g.DS.getState().entities,Se=g.SN("visibility_override",
        "markersVisibilityOverrideEntity");var $d=UN(ve,"markersVisibilityOverrideEntity",Se);a.kf=($d==null?void 0:$d.videoId)===(a.videoId||tg)&&($d==null?0:$d.visibilityOverrideMarkersKey)?$d.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.ra(a.kf))}}};
    tXa=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0};
    CXa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
    GS=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&ES(a)&&(b=!1);var c=!!a.j&&a.j.dc,d=a.Da,e=a.DQ(),f=FS(a),h=a.HN,l=b,m=a.isOtf();b=a.XN();var n=a.Bb,p=a.Jg,q=DXa(a),r=new yUa(d);if(d.wc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.Ma=h&&d.N;r.Jg=p;g.PA("windows nt 5.1")&&!g.NQ&&(r.No=!0);if(f=e)f=g.FR(d)?FVa(d):!1;f&&(r.Ca=!0);l&&(r.No=!0,r.Cc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.No=!0);d.playerStyle==="picasaweb"&&(m&&(r.No=!1),r.Fa=!1);n&&(r.No=!0);aP(d.G,
        bP.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.La=!0));d.L("html5_block_8k_hfr")&&(r.Za=!0);r.K=g.hI(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.hI(d.experiments,"html5_min_selectable_quality_ordinal");iR&&(r.Tb=480);if(c||e)r.Fa=!1;r.gb=!1;r.disableAv1=q;c=AUa(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(jK()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+jK(),
        r.qj=c);c>=2160&&(r.Ea=!0);lQa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Dc=!1);r.XN=b;r.Va=g.wC||Bra()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");SA()&&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.Ev&&(r.qa=a.Ev),a.Sy&&(r.C=a.Sy));r.Sa=a.isLivePlayback&&a.Wi()&&a.Da.L("html5_drm_live_audio_51");
        r.Bb=a.zD;return a.uf=r};
    DXa=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&ES(a)?!0:!1};
    FXa=function(a){EG("drm_pb_s",void 0,a.Sa);a.Wa||a.j&&XO(a.j);var b={};a.j&&(b=ARa(a.Wv,GS(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
        b=new OQ(b,a.Da,a.NW,a.useCobaltWidevine?SA()?EXa(a):!1:!1,function(c,d){a.ma(c,d)});
        g.M(a,b);a.pp=!1;a.loading=!0;GUa(b,function(c){EG("drm_pb_f",void 0,a.Sa);for(var d=g.v(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Wa=a.Wa;e.dw=a.dw;e.cw=a.cw;break;case "widevine":e.Zl=a.Zl}a.vp=c;if(a.vp.length>0&&(a.K=a.vp[0],a.Da.wc())){c={};d=g.v(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ma("drmProbe",c)}rS(a)})};
    oXa=function(a,b){if(b.length===0||uS(a))return null;vS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tUa=!0);var c=a.me;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.je,h=a.Da,l=cUa(b);if(e||f){h=new tQ("",h.experiments,!0);h.B=!f;h.dc=!0;h.isManifestless=!0;h.isLive=!f;h.je=f;b=g.v(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=uQ(m,c);e=hP(m);e=vQ(e.cE||m.url||"",e.vH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.Y=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);
        var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.cf=h.cf||n;h.Ii=h.Ii||p;var q=!XJ(d.mimeType);e&&sQ(h,new kQ(e,d,{Oj:l,Fn:q,vr:m,cf:n,Ii:p,eB:300,je:f}))}c=h}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new tQ("",h.experiments,!1);f.duration=d||0;h=g.v(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=uQ(b,c,f.duration),e=hP(b),(e=vQ(e.cE||b.url||"",e.vH,e.s))&&(d.streamType==="FORMAT_STREAM_TYPE_OTF"?sQ(f,new lQ(e,d,"sq/0")):
        sQ(f,new qQ(e,d,WP(b.initRange),WP(b.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new tQ("",h.experiments,!1);f.duration=d||0;h=g.v(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=uQ(l,c,f.duration),d=WP(l.initRange),e=WP(l.indexRange),m=hP(l),(l=vQ(m.cE||l.url||"",m.vH,m.s))&&sQ(f,new qQ(l,b,d,e));c=f}f=a.isLivePlayback&&!a.je&&!a.eb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!xS(a)&&f&&a.ma("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(c.Va=!0));c.Sa=yS(a);return c};
    uS=function(a){return SA()?!EXa(a):TA()?!(!a.Wa||!a.L("html5_enable_safari_fairplay")):!1};
    EXa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
    g.kXa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.YC.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}};
    zS=function(a){return!(!a.j||!a.j.isManifestless)};
    HS=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&yQ(a.j)>=5};
    mXa=function(a){return SA()&&EXa(a)?!1:uS(a)&&g.qI(a.Da)&&!a.isLivePlayback||!UQ()||a.yD?!0:!1};
    HXa=function(a){a.loading=!0;a.uj=!1;if(nXa(a))g.KWa(a.videoId).then(function(c){GXa(a,c)}).then(function(){rS(a)});
    else{JI(a.Zc)||g.kE(new g.CB("DASH MPD Origin invalid: ",a.Zc));var b=a.Zc;b=g.wo(b,{mpd_version:g.hI(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.wo(b,{pacing:0}));kUa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.Na()||(pXa(a,c,!0),EG("mrc",void 0,a.Sa),rS(a))},function(c){a.Na()||(a.loading=!1,a.publish("dataloaderror",new BJ("manifest.net.retryexhausted",{backend:"manifest",
        rc:c.status},1)))});
        EG("mrs",void 0,a.Sa)}};
    GXa=function(a,b){var c=b.map(function(m){return m.itag}),d;
        if((d=a.playerResponse)!=null&&d.streamingData){d=[];for(var e=g.v(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={Ui:void 0},f=e.next())if(h.Ui=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.v(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.Ui.itag&&l.xtags===h.Ui.xtags&&(h.Ui=Object.assign({},h.Ui),h.Ui.url=b.find(function(m){return function(n){return n.itag===m.Ui.itag}}(h)).url,h.Ui.signatureCipher="",d.push(h.Ui))}else c.includes(h.Ui.itag)&&
        (h.Ui=Object.assign({},h.Ui),h.Ui.url=b.find(function(m){return function(n){return n.itag===m.Ui.itag}}(h)).url,h.Ui.signatureCipher="",d.push(h.Ui));
            b=oXa(a,d);FS(a)&&a.L("music_web_woffle")&&pUa(b,!1);pXa(a,b);a.ma("dlr",{})}else a.ma("offsdm",{cotn:a.bG?a.bG.cotn:"0",cpn:a.clientPlaybackNonce})};
    IS=function(a){if(!a.isProximaLatencyEligible)return!1;var b=cQa();return b!=null?b===1:a.L("html5_enable_proxima")};
    rS=function(a){a.Na()||(a.loading=!1,a.publish("dataloaded"))};
    pXa=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.M(a,b);b.cf=a.cf;b.Ii=a.Ii;b.Za=a.Za;b.Tb=a.Tb;b.Qc=a.Qc;a.Ul&&(b.Z=new RP(a.Ul));(a.DQ()||g.JS(a))&&a.Ea.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.Rl=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.ma,a),c?b.subscribe("refresh",a.L_,a):b.subscribe("cuepointsadded",a.oX,a));XO(b)?a.pp=!0:PQ=void 0;a.eb&&(b.C=a.eb,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
        a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
    JXa=function(a,b){var c=b||mXa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ma("skipDash",{dm:!!a.j,air:b,dd:a.yD,mss:UQ(),"3pp":a.isExternallyHostedPodcast}),JA();FS(a)&&pUa(a.j,a.isLivePlayback);vS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&XUa(a.Da.G);return KA().then(function(){return CRa(a.Wv,GS(a),a.Da.G,a.j,a.K,function(d){return a.publish("ctmp","fmtflt",d)},a.JG,yS(a)&&a.L("html5_enable_server_format_filter")).then(function(d){IXa(a,d);
        a.Wv.j=null;/^av/.test(a.clientPlaybackNonce)&&a.uf&&a.ma("av1",a.uf.j)})})};
    KXa=function(a,b){if(b&&a.hlsvp)return JA();if(a.hlsFormats){b=wS(a.hlsFormats);var c;if(((c=a.uf)==null?0:c.B)&&b){c=[];for(var d=g.v(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ma("hlsfmt",{itags:c.join(".")})}a.gw=VVa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return $Va(a.Da,a.isAd(),b,(m=(f=a.playerResponse)==null?void 0:(h=f.captions)==null?void 0:(l=h.playerCaptionsRenderer)==null?void 0:l.baseUrl)!=null?m:null,a.Xd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
        0,q=[],r=g.v(n),t=r.next();!t.done;t=r.next()){t=t.value;
        var u=void 0;q.push((u=t.getInfo())==null?void 0:u.itag);var w=u=void 0;((u=t.getInfo())==null?void 0:(w=u.audio)==null?void 0:w.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.ma("hlschl",{mn:p});var A;((A=a.uf)==null?0:A.B)&&a.ma("hlsfmtaf",{itags:q.join(".")});var C;if(a.L("html5_enable_vp9_fairplay")&&((C=a.K)==null?0:LQ(C)))for(a.ma("drm",{sbdlfbk:1}),p=g.v(a.vp),q=p.next();!q.done;q=p.next())if(q=q.value,KQ(q)){a.K=q;break}KS(a,n)})}return JA()};
    LXa=function(a){if(a.isExternallyHostedPodcast&&a.Vf){var b=wS(a.Vf);if(!b[0])return JA();a.W3=b[0];return cWa(a.Da,b[0]).then(function(c){KS(a,c)})}return a.Yl&&a.uU?bWa(a.Da,a.isAd(),a.Yl).then(function(c){KS(a,c)}):JA()};
    NXa=function(a){if(a.isExternallyHostedPodcast)return JA();var b=wS(a.Vf,a.ED);if(a.hlsvp){var c=VWa(a.hlsvp,a.clientPlaybackNonce,a.Xd);b.push(c)}return aWa(a.Da,a.isAd(),b,MXa(a)).then(function(d){KS(a,d)})};
    IXa=function(a,b){a.C=b;if(a.C){b=g.v(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.wD[d]=c.id)}}OXa(a);if(a.K&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=UJ(a.C.videoInfos[0]),b!=(a.K.flavor=="fairplay")))for(c=g.v(a.vp),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.K=d;break}};
    KS=function(a,b){a.Fd=b;IXa(a,new TO(g.as(a.Fd,function(c){return c.getInfo()})))};
    MXa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.lz&&(b.ptk=a.lz,b.oid=a.DU,b.ptchn=a.CU,b.pltype=a.EU,a.Yv&&(b.m=a.Yv));return b};
    g.LS=function(a){return uS(a)&&a.Wa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.me||null};
    QXa=function(a){var b=PXa(a);return b&&b.text?g.OE(b.text):a.paidContentOverlayText};
    RXa=function(a){var b=PXa(a);return b&&b.durationMs?df(b.durationMs):a.paidContentOverlayDurationMs};
    PXa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.V((b=a.La)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,SXa)||null};
    MS=function(a){var b="";if(a.JF)return a.JF;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.eb?"window":"live");a.je&&(b="post");return b};
    g.NS=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]};
    TXa=function(a){return!!a.Aj||!!a.YH||!!a.nz||!!a.oz||a.s1||a.N.focEnabled||a.N.rmktEnabled};
    g.OS=function(a){return!!(a.Zc||a.Vf||a.Yl||a.hlsvp||a.Xw())};
    qS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Eb(a.Ea,"ypc");a.ypcPreview&&(b=!1);return a.ue()&&!a.loading&&(g.OS(a)||g.Eb(a.Ea,"heartbeat")||b)};
    wS=function(a,b){a=Kqa(a);var c={};if(b){b=g.v(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.v(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};
    OXa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Rk);for(var c=0;c<a.bD.length;c++)for(var d=a.bD[c],e=0;e<b.length;e++){var f=b[e],h=f.hc.id==d.audioTrackId;if(f.hc.isDefault&&c==a.FY||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];d.defaultCaptionTrackIndex!==void 0&&(f.C=a.captionTracks[d.defaultCaptionTrackIndex]);d.forcedCaptionTrackIndex!==void 0&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
        f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
    uXa=function(a,b){a.showShareButton=!!b;var c,d,e=((c=g.V(b,g.$L))==null?void 0:c.navigationEndpoint)||((d=g.V(b,g.$L))==null?void 0:d.command);e&&(a.Ap=!!g.V(e,UXa))};
    XWa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Di=c);if(a.Di){a.embeddedPlayerConfig=a.Di.embeddedPlayerConfig||null;if(c=a.Di.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Di.embedPreview){c=c.thumbnailPreviewRenderer;vWa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
        VR(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.V(c.searchButton,g.$L))&&(a.K3=g.V(d.navigationEndpoint,g.PS));(d=g.V(c==null?void 0:c.videoDetails,VXa))&&yXa(a,b,d);d=g.V(c==null?void 0:c.videoDetails,WXa);a.He=!!c.addToWatchLaterButton;uXa(a,c.shareButton);if(d==null?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.V((e=a.getEmbeddedPlayerResponse())==null?void 0:(f=e.embedPreview)==null?void 0:(h=f.thumbnailPreviewRenderer)==null?void 0:(l=h.playButton)==
    null?void 0:(m=l.buttonRenderer)==null?void 0:m.navigationEndpoint,g.AS))gWa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=df(c.videoDurationSeconds));c.webPlayerActionsPorting&&uWa(a,c.webPlayerActionsPorting);if(e=g.V(c==null?void 0:c.playlist,XXa)){a.xn=!0;f=[];h=Number(e.currentIndex);if(e.contents)for(l=0,m=e.contents.length;l<m;l++)if(c=e.contents[l].playlistPanelVideoRenderer){d=c.shortBylineText?g.OE(c.shortBylineText):"";var n=c.title?g.OE(c.title):"";f.push({author:d,
        encrypted_id:c.videoId,title:n,channel_path:l===h?b.channel_path:"",profile_picture:l===h?b.profile_picture:"",is_private:l===h?a.isPrivate:!0,is_dni:l===h?a.Jf:!1,dni_color:l===h?a.Op:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.OE(e.titleText));e.shortBylineText&&(b.author=g.OE(e.shortBylineText));a.DZ=b}var p,q,r;if(b=g.V((p=a.getEmbeddedPlayerResponse())==null?void 0:(q=p.embedPreview)==null?void 0:(r=q.thumbnailPreviewRenderer)==
    null?void 0:r.infoPanel,wXa)){a.GD=Number(b==null?void 0:b.durationMs)||NaN;if(b==null?0:b.infoPanelOverviewViewModel)a.Qf=b==null?void 0:b.infoPanelOverviewViewModel;if(b==null?0:b.infoPanelDetailsViewModel)a.Ql=b==null?void 0:b.infoPanelDetailsViewModel}}if(a.Di.previewPlayabilityStatus){if(a.mz=a.Di.previewPlayabilityStatus,p=a.mz,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=eWa(p.errorCode);q=p.errorScreen;if(r=q==null?void 0:q.playerErrorMessageRenderer){a.BD=r;if(b=r.reason)a.errorReason=
        g.OE(b);if(r=r.subreason)a.Mn=g.OE(r)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var t;(q==null?0:(t=q.playerKavRenderer)==null?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Di.playabilityStatus&&(a.An=a.Di.playabilityStatus,YXa(a)&&(a.errorDetail="0",a.An&&((t=a.An.embeddedPlayerErrorMessageRenderer)?
        a.BD=g.V(t,ZXa):a.errorReason=a.An.reason||null)));(t=a.Di.attestation)&&pWa(a,t);(t=a.Di.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
    yXa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.V((e=g.V(c==null?void 0:c.channelThumbnailEndpoint,$Xa))==null?void 0:e.urlEndpoint,g.aF))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.V(e,aYa)){if(d=e.title)b.title=g.OE(d);if(e=e.subtitle)b.subtitle=g.OE(e)}if(c=c.expandedRenderer)if(c=g.V(c,bYa)){if(e=c.title)b.expanded_title=g.OE(e);if(e=c.subtitle)b.expanded_subtitle=g.OE(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
        g.V(c,g.QS),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Xl=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.BN=b.toggledServiceEndpoint||null,a.AN=b.defaultServiceEndpoint||
        null):(a.BN=b.defaultServiceEndpoint||null,a.AN=b.toggledServiceEndpoint||null)))}};
    g.RS=function(a){return xS(a)&&!a.allowLiveDvr};
    SS=function(a){return xS(a)&&a.allowLiveDvr};
    xS=function(a){return a.L("html5_live_head_playable")&&zS(a)&&a.Da.qa==="yt"?a.isLiveHeadPlayable:a.isLivePlayback};
    g.TS=function(a){return!!a.j&&QTa(a.j)};
    g.US=function(a){return!!a.j&&RTa(a.j)};
    g.VS=function(a){return!!a.j&&STa(a.j)};
    g.JS=function(a){return!!a.j&&TTa(a.j)};
    g.cYa=function(a){if(a.cD)return null;var b=a.vU;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
    g.dYa=function(a){return a.cD?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
    g.WS=function(a){return a.L("enable_wn_infocards")};
    g.XS=function(a){var b,c,d,e;return(g.WS(a)?(b=a.La)==null?void 0:(c=b.cards)==null?void 0:c.cardCollectionRenderer:(d=a.playerResponse)==null?void 0:(e=d.cards)==null?void 0:e.cardCollectionRenderer)||null};
    g.eYa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.v(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
    YS=function(a){return a.adFormat&&a.adFormat!="1_5"?"adunit":a.eventLabel||a.Da.Ma};
    g.ZS=function(a){return YS(a)==="shortspage"};
    ES=function(a){return a.nk()&&a.U().supportsGaplessShorts()};
    $S=function(a){if(a.isAd()&&a.videoId!=a.Da.jf)return a.Da.jf};
    aT=function(a){return a.Dl||YS(a)=="detailpage"||YS(a)=="shortspage"||a.mutedAutoplay};
    fYa=function(a){var b=a.L("enable_cleanup_masthead_autoplay_hack_fix");return b&&YS(a)=="adunit"?a.Gq:aT(a)?YS(a)=="detailpage"||YS(a)=="shortspage"?a.isAutonav||a.Dc>0:b||a.adFormat!=="17_8"||a.isAutonav||g.DR(a.Da)||a.Gq?a.xi?!1:a.Da.xi||a.Da.zi||!g.kR(a.Da)?!b&&YS(a)=="adunit"&&a.Aj?!1:!0:!1:!1:(a.xi?0:a.Qi)&&g.kR(a.Da)?!0:!1};
    g.bT=function(a){return a.oauthToken||a.Da.Aj};
    gYa=function(a){var b=1,c=g.hI(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=Infinity;if(a.L("html5_combine_format_loudness_and_video_target_loudness"))if(c=((d=a.D)==null?void 0:d.audio.B)||a.x_){var e;d=c-((e=a.loudnessTargetLkfs)!=null?e:0)}else d=a.Sf;else{var f;d=((f=a.D)==null?void 0:f.audio.C)||a.Sf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Da.Sk>a.maxStatefulTimeThresholdSec*
    1E3&&(a.Da.Rk=Infinity,a.Da.Sk=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Da.Rk)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Da.Rk=c+e,a=a.Da,c=Date.now(),a.Sk=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
    FS=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=g.RQ(a.Da)==="TVHTML5_SIMPLY"&&a.Da.j.ctheme==="MUSIC";a.Dj||!g.NF(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Dj=!0);if(b=g.RA())b=/Starboard\/([0-9]+)/.exec(g.nc()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Da;c=(g.RQ(c)==="TVHTML5_CAST"||g.RQ(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Da.j.ctheme==="MUSIC";var d;if(d=!a.Dj)c||(c=a.Da,c=
        g.RQ(c)==="TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Dj=!0);return a.Da.deviceIsAudioOnly||a.Dj&&a.Da.N};
    hYa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
    cT=function(a){return!(!a.zn||!a.Da.N)&&a.Xw()};
    iYa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
    jYa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.EN&&!a.Ul};
    yS=function(a){if(a.S0||a.cotn||!a.j||a.j.isOtf||a.A3&&!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.EN&&!!a.Ul;var b=!a.j.dc&&!a.Wi(),c=b&&SQ&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!SQ&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=kYa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Wi()&&!a.j.dc&&SQ&&(a.Sk==="1"?!1:!0);(c=c||b||d||e)&&!a.Ul&&a.ma("sabr",{loc:"m"},!0);
        return c&&!!a.Ul};
    kYa=function(a){var b;if(!(b=a.dc()&&a.Wi()&&SQ&&(a.Sk==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.dc()&&!a.Wi()&&SQ;var c=a.dc()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&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.dc()&&!SQ&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a};
    g.dT=function(a){return a.o_&&yS(a)};
    nXa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.dS(b)===1;return b&&!a.zn};
    g.eT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&fP(b[a.B.id].resource.j);b=!!b[a.D.id]&&fP(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b};
    lYa=function(a){return a.mz?["OK","LIVE_STREAM_OFFLINE"].includes(a.mz.status):!0};
    YXa=function(a){return(a=a.An)&&a.showError?a.showError:!1};
    vS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
    fXa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
    mYa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
    dXa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.oz=new BWa(b));if(b=b.video_masthead_ad_quartile_urls)a.YH=b.quartile_0_url,a.cW=b.quartile_25_url,a.dW=b.quartile_50_url,a.eW=b.quartile_75_url,a.YV=b.quartile_100_url,a.nz=b.quartile_0_urls,a.PC=b.quartile_25_urls,a.RC=b.quartile_50_urls,a.TC=b.quartile_75_urls,a.NC=b.quartile_100_urls};
    cXa=function(a){var b={};a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");d.length==2?b[d[0]]=d[1]:b[c]=!0}return b};
    $Wa=function(a){if(a){if(fDa(a))return a;a=gDa(a);if(fDa(a,!0))return a}return""};
    g.nYa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.NS(a,"yt:cc_default_lang")||a.Da.sj};
    fT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
    g.BS=function(a){var b;return a.Jv||((b=a.suggestions)==null?void 0:b[0])||null};
    oYa=function(a){var b={isSabr:yS(a)},c;if(a=(c=a.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b};
    g.gT=function(a){return a.Jf&&a.Da.tp};
    g.hT=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)};
    g.iT=function(a){var b=a.U(),c=g.pYa(b),d=a.Ca;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=YS(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.Bb?e="LIVE_MONITOR":f==="detailpage"?e="WATCH_FULL_SCREEN":f==="adunit"?e="ADUNIT":f==="sponsorshipsoffer"&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.qp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:qYa[e]}});if(b=a.QA)d.unpluggedAppInfo=
        {enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:rYa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Dd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=sYa[b];c.request=d;d=c.user||{};if(b=a.Fa)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.pYa=function(a){var b=g.UF(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.v(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};
    yYa=function(a,b,c){var d=a.videoId,e=g.iT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(zD()),referer:document.location.toString(),signatureTimestamp:19898};g.zB();a.isAutonav&&(h.autonav=!0);g.AB(0,141)&&(h.autonavState=g.AB(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.AB(0,66);fYa(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.v(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");q.length!==3||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.v(q);for(var r=q.next();!r.done;r=q.next()){var t=g.v(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var u=Number(p.campaignid);if(p.adtype==="in_display_ad")q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId=
        String(u));else if(p.adtype==="video_ad"){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=tYa[p.breaktype])w.breakType=p;q&&(w.url=q);r&&(w.presetAd=r);t&&(w.viralAdResponseUrl=t);u&&(w.viralCampaignId=String(u));n.push(w)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.TF;if(m!=null){m={startWalltime:String(m)};if(n=a.Rl)m.manifestDuration=String(n||14400);
        h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.xi?0:a.Qi)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Aw)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Kj){n=a.WC;l=[];p=g.v(qRa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.hZ?"INACTIVE":"ACTIVE",clientFormFactor:uYa[r]||"UNKNOWN_FORM_FACTOR",clientName:sRa[q.W1]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:vYa[r]||"UNKNOWN_PLATFORM"};
        r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.kE(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(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;m>0&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);c!==0&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.kR(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags=
        f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);wYa&&a.startSeconds>0&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.AB(g.zB(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.BR(e)&&
        (d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.CZ&&(d.captionParams.deviceCaptionsLangPref=a.CZ);a.GN.length?d.captionParams.viewerSelectedCaptionLangs=a.GN:g.BR(e)&&(h=g.mQa(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.L("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.L("html5_non_onesie_attach_po_token");if(h||f)h=a.U(),h.Vf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Vf);e.L("fetch_att_independently")&&
    (d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=xYa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=xYa(a));return d};
    xYa=function(a){if(a==null)var b=void 0;else{b=GS(a);a=a.U().G;var c=KR("243");b=c?WO(b,c,a,!0)===!0:!1}return{supportsVp9Encoding:b,supportXhr:SQ}};
    AYa=function(a,b){var c,d,e;return g.G(function(f){if(f.j==1)return c={context:g.pYa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.XF(zYa),g.z(f,g.LG(b,c,d),2);e=f.B;return f.return(e)})};
    BYa=function(a,b,c){SPa(g.hI(b.experiments,"bg_vm_reinit_threshold"))&&AYa(a,c).then(function(d){d&&(d=d.botguardData)&&g.aQa(d,b)},function(d){a.Na()||(d=DJ(d),a.ma("attf",d.details))})};
    jT=function(a,b){g.I.call(this);this.app=a;this.state=b};
    lT=function(a,b,c){a.state.Y[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
        a.state.B.hasOwnProperty(b)||kT(a,b,c);a.state.Z.add(b)};
    mT=function(a,b,c){a.state.qa[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
        a.state.B.hasOwnProperty(b)||kT(a,b,c);a.state.Z.add(b)};
    kT=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))}};
    g.nT=function(a,b,c){return a.state.B[b].apply(a.state.B,g.ra(c))};
    oT=function(){g.Yv.call(this);this.G=new Map};
    CYa=function(){g.I.apply(this,arguments);this.element=null;this.Z=new Set;this.Y={};this.qa={};this.B={};this.K={};this.G=void 0;this.ra=new Set;this.C=new oT;this.j=new oT;this.D=new oT;this.N=new oT};
    DYa=function(a,b,c){typeof a==="string"&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return pT(a)};
    pT=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.v(EYa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
    FYa=function(a,b,c,d){if(g.db(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;return b};
    qT=function(a,b,c){jT.call(this,a,b);this.playerType=c};
    HYa=function(a){lT(a,"cueVideoById",a.P7);lT(a,"loadVideoById",a.r$);lT(a,"cueVideoByUrl",a.S7);lT(a,"loadVideoByUrl",a.u$);lT(a,"playVideo",a.Pca);lT(a,"pauseVideo",a.pauseVideo);lT(a,"stopVideo",a.nea);lT(a,"clearVideo",a.clearVideo);lT(a,"getVideoBytesLoaded",a.b9);lT(a,"getVideoBytesTotal",a.c9);lT(a,"getVideoLoadedFraction",a.DY);lT(a,"getVideoStartBytes",a.f9);lT(a,"cuePlaylist",a.cuePlaylist);lT(a,"loadPlaylist",a.q$);lT(a,"nextVideo",a.U$);lT(a,"previousVideo",a.cda);lT(a,"playVideoAt",a.Oca);
        lT(a,"setShuffle",a.setShuffle);lT(a,"setLoop",a.setLoop);lT(a,"getPlaylist",a.Y8);lT(a,"getPlaylistIndex",a.getPlaylistIndex);lT(a,"getPlaylistId",a.getPlaylistId);lT(a,"loadModule",a.SZ);lT(a,"unloadModule",a.S2);lT(a,"setOption",a.lT);lT(a,"getOption",a.S8);lT(a,"getOptions",a.IP);lT(a,"mute",a.T$);lT(a,"unMute",a.Nea);lT(a,"isMuted",a.isMuted);lT(a,"setVolume",a.bea);lT(a,"getVolume",a.getVolume);lT(a,"seekTo",a.Nda);lT(a,"getPlayerMode",a.getPlayerMode);lT(a,"getPlayerState",a.W8);lT(a,"getAvailablePlaybackRates",
            a.getAvailablePlaybackRates);lT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
        lT(a,"setPlaybackQuality",a.Wda);lT(a,"getAvailableQualityLevels",a.F8);lT(a,"getCurrentTime",a.I8);lT(a,"getDuration",a.M8);lT(a,"addEventListener",a.i7);lT(a,"removeEventListener",a.oda);lT(a,"getDebugText",a.K8);lT(a,"getVideoData",function(){return GYa(a)});
        lT(a,"addCueRange",a.e7);lT(a,"removeCueRange",a.removeCueRange);lT(a,"setSize",a.setSize);lT(a,"getApiInterface",a.getApiInterface);lT(a,"destroy",a.destroy);lT(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.K||(lT(a,"getVideoEmbedCode",a.getVideoEmbedCode),lT(a,"getVideoUrl",a.h9));lT(a,"getMediaReferenceTime",a.Q8);lT(a,"getSize",a.getSize);lT(a,"setFauxFullscreen",a.Tda);b.K||lT(a,"logImaAdEvent",a.logImaAdEvent);lT(a,"preloadVideoById",a.Xca)};
    IYa=function(a){var b=g.sR(a.app.U()),c,d=(c=a.app.getVideoData())==null?void 0:c.xn;a=g.rT(a.app);return g.cB(b)&&!d||a?!1:!0};
    GYa=function(a,b){var c={};if(b=g.sT(a.app,b===void 0?1:b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=lYa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];b.fps>32&&d.push("hfr");b.isHdr()&&d.push("hdr");b.primaries==="bt2020"&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
    JYa=function(a,b,c){qT.call(this,a,b,c)};
    OYa=function(a,b){var c={};if(a.app.U().ra){a=g.v(KYa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="",typeof b==="string"&&b.length>0&&(a=b.split(",").filter(function(e){return LYa.includes(e)}).join(",")),c.qoe_cat=a;
        MYa(c)}else for(a=g.v(NYa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
    MYa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;b&&(a.raw_player_response={streamingData:b.streamingData})};
    g.tT=function(a){return(a=PYa(a.app.zb()))?a.Ei():null};
    QYa=function(a,b,c){var d=a.app.Ze(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
    SYa=function(a){var b=b===void 0?5:b;return a?RYa[a]||b:b};
    g.uT=function(a,b,c,d){qT.call(this,a,b,d);c&&(TYa(this),a.U().N&&(mT(this,"addEventListener",this.j7),mT(this,"removeEventListener",this.pda),mT(this,"cueVideoByPlayerVars",this.R7),mT(this,"loadVideoByPlayerVars",this.t$),mT(this,"preloadVideoByPlayerVars",this.Zca),mT(this,"loadVideoById",this.UZ),mT(this,"loadVideoByUrl",this.VZ),mT(this,"playVideo",this.rS),mT(this,"loadPlaylist",this.loadPlaylist),mT(this,"nextVideo",this.nextVideo),mT(this,"previousVideo",this.previousVideo),mT(this,"playVideoAt",
        this.playVideoAt),mT(this,"getVideoData",this.CY),mT(this,"seekBy",this.Lda),mT(this,"seekTo",this.Oda),mT(this,"showControls",this.showControls),mT(this,"hideControls",this.hideControls),mT(this,"cancelPlayback",this.cancelPlayback),mT(this,"getProgressState",this.getProgressState),mT(this,"isInline",this.isInline),mT(this,"setInline",this.setInline),mT(this,"setLoopVideo",this.setLoopVideo),mT(this,"getLoopVideo",this.getLoopVideo),mT(this,"getVideoContentRect",this.getVideoContentRect),mT(this,
        "getVideoStats",this.g9),mT(this,"getCurrentTime",this.J8),mT(this,"getDuration",this.N8),mT(this,"getPlayerState",this.X8),mT(this,"getVideoLoadedFraction",this.e9),mT(this,"mute",this.TK),mT(this,"unMute",this.CM),mT(this,"setVolume",this.hM),mT(this,"loadModule",this.loadModule),mT(this,"unloadModule",this.unloadModule),mT(this,"getOption",this.getOption),mT(this,"getOptions",this.getOptions),mT(this,"setOption",this.setOption),mT(this,"addCueRange",this.addCueRange),mT(this,"getDebugText",this.getDebugText),
        mT(this,"getStoryboardFormat",this.getStoryboardFormat),mT(this,"toggleFullscreen",this.toggleFullscreen),mT(this,"isFullscreen",this.isFullscreen),mT(this,"getPlayerSize",this.getPlayerSize),mT(this,"toggleSubtitles",this.toggleSubtitles),mT(this,"setCenterCrop",this.setCenterCrop),mT(this,"setFauxFullscreen",this.setFauxFullscreen),mT(this,"setSizeStyle",this.setSizeStyle),mT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),mT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),mT(this,"wakeUpControls",
        this.wakeUpControls)),HYa(this))};
    TYa=function(a){kT(a,"getInternalApiInterface",a.getInternalApiInterface);kT(a,"addEventListener",a.h7);kT(a,"removeEventListener",a.nda);kT(a,"cueVideoByPlayerVars",a.Q7);kT(a,"loadVideoByPlayerVars",a.s$);kT(a,"preloadVideoByPlayerVars",a.Yca);kT(a,"getAdState",a.getAdState);kT(a,"sendAbandonmentPing",a.sendAbandonmentPing);kT(a,"setLoopRange",a.setLoopRange);kT(a,"getLoopRange",a.getLoopRange);kT(a,"setAutonavState",a.setAutonavState);kT(a,"seekTo",a.Mda);kT(a,"seekBy",a.Kda);kT(a,"seekToLiveHead",
        a.seekToLiveHead);kT(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);kT(a,"seekToStreamTime",a.seekToStreamTime);kT(a,"startSeekCsiAction",a.startSeekCsiAction);kT(a,"getStreamTimeOffset",a.getStreamTimeOffset);kT(a,"getVideoData",a.d9);kT(a,"setInlinePreview",a.setInlinePreview);kT(a,"getAppState",a.getAppState);kT(a,"updateLastActiveTime",a.updateLastActiveTime);kT(a,"setBlackout",a.setBlackout);kT(a,"setUserEngagement",a.setUserEngagement);kT(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
        kT(a,"getPresentingPlayerType",a.MJ);kT(a,"canPlayType",a.canPlayType);kT(a,"updatePlaylist",a.updatePlaylist);kT(a,"updateVideoData",a.updateVideoData);kT(a,"updateEnvironmentData",a.updateEnvironmentData);kT(a,"sendVideoStatsEngageEvent",a.Rda);kT(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);kT(a,"setSafetyMode",a.setSafetyMode);kT(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
        kT(a,"getVideoAspectRatio",a.getVideoAspectRatio);kT(a,"getPreferredQuality",a.getPreferredQuality);kT(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);kT(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);kT(a,"onAdUxClicked",a.onAdUxClicked);kT(a,"getFeedbackProductData",a.getFeedbackProductData);kT(a,"getStoryboardFrame",a.getStoryboardFrame);kT(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);kT(a,"getStoryboardLevel",a.getStoryboardLevel);kT(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
        kT(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);kT(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);kT(a,"addCueRange",a.addCueRange);kT(a,"addUtcCueRange",a.addUtcCueRange);kT(a,"showAirplayPicker",a.showAirplayPicker);kT(a,"dispatchReduxAction",a.dispatchReduxAction);kT(a,"getPlayerResponse",a.U8);kT(a,"getWatchNextResponse",a.i9);kT(a,"getHeartbeatResponse",a.O8);kT(a,"changeMarkerVisibility",a.changeMarkerVisibility);kT(a,"getCurrentTime",a.getCurrentTime);kT(a,"getDuration",
            a.getDuration);kT(a,"getPlayerState",a.getPlayerState);kT(a,"getPlayerStateObject",a.V8);kT(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);kT(a,"getProgressState",a.getProgressState);kT(a,"getVolume",a.getVolume);kT(a,"setVolume",a.hM);kT(a,"isMuted",a.isMuted);kT(a,"mute",a.TK);kT(a,"unMute",a.CM);kT(a,"loadModule",a.loadModule);kT(a,"unloadModule",a.unloadModule);kT(a,"getOption",a.getOption);kT(a,"getOptions",a.getOptions);kT(a,"setOption",a.setOption);kT(a,"loadVideoById",a.UZ);kT(a,"loadVideoByUrl",
            a.VZ);kT(a,"playVideo",a.rS);kT(a,"loadPlaylist",a.loadPlaylist);kT(a,"nextVideo",a.nextVideo);kT(a,"previousVideo",a.previousVideo);kT(a,"playVideoAt",a.playVideoAt);kT(a,"getDebugText",a.getDebugText);kT(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);kT(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);kT(a,"getVideoContentRect",a.getVideoContentRect);kT(a,"setSqueezeback",a.setSqueezeback);kT(a,"setAutonav",a.setAutonav);kT(a,"isNotServable",a.isNotServable);kT(a,"channelSubscribed",
            a.channelSubscribed);kT(a,"channelUnsubscribed",a.channelUnsubscribed);kT(a,"togglePictureInPicture",a.togglePictureInPicture);kT(a,"supportsGaplessAudio",a.supportsGaplessAudio);kT(a,"supportsGaplessShorts",a.supportsGaplessShorts);kT(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
        kT(a,"clearQueue",a.clearQueue);kT(a,"getAudioTrack",a.B8);kT(a,"setAudioTrack",a.setAudioTrack);kT(a,"getAvailableAudioTracks",a.E8);kT(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);kT(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);kT(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);kT(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);kT(a,"setMinimized",a.setMinimized);kT(a,"setOverlayVisibility",a.setOverlayVisibility);kT(a,"confirmYpcRental",a.confirmYpcRental);
        kT(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);kT(a,"isSubtitlesOn",a.isSubtitlesOn);kT(a,"queueNextVideo",a.queueNextVideo);kT(a,"handleExternalCall",a.handleExternalCall);kT(a,"logApiCall",a.logApiCall);kT(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);kT(a,"setScreenLayer",a.setScreenLayer);kT(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);kT(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);kT(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);kT(a,
            "syncVolume",a.syncVolume);kT(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);kT(a,"openSettingsMenuItem",a.openSettingsMenuItem);kT(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);kT(a,"getVisibilityState",a.getVisibilityState);kT(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);kT(a,"setGlobalCrop",a.setGlobalCrop);kT(a,"setInternalSize",a.setInternalSize);kT(a,"setFauxFullscreen",a.setFauxFullscreen)};
    VYa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){UYa(a,b,c)},
        removeEventListener:function(b,c){c=typeof c==="string"?b+c:b+String(g.fb(c));var d=a.state.K[c];d&&(a.state.j.unsubscribe(b,d),delete a.state.K[c])}});
        return a.state.G};
    UYa=function(a,b,c){var d=typeof c==="string"?b+c:b+String(g.fb(c));if(!a.state.K[d]){var e=function(f){c({target:a.state.G,data:f})};
        a.state.K[d]=e;a.state.j.subscribe(b,e)}};
    wT=function(a,b,c){a=g.vT(a.Se(),b);return c?(c.addOnDisposeCallback(a),null):a};
    g.xT=function(a,b,c){return a.app.U().kf?b:g.UI("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
    WYa=function(a){a.Se().element.setAttribute("aria-live","polite")};
    g.yT=function(a,b){g.uT.call(this,a,b,!1)};
    g.zT=function(a){a=a.zb();var b=a.Ge.get("endscreen");return b&&b.Zu()?!0:a.pH()};
    g.AT=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.ib("onAutonavCancelled",b)};
    g.CT=function(a){var b=BT(a.zb());return a.app.wj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.vl()&&b.Up()||!!a.getPlaylist()};
    g.XYa=function(a,b,c){g.nT(a,"addEmbedsConversionTrackingParams",[b]);a.L("embeds_web_enable_referring_feature_deprecation")||g.GO(b,c)};
    g.ET=function(a){return(a=g.DT(a.zb()))?a.PJ():{}};
    g.YYa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"};
    g.FT=function(a,b,c){a=a.ob().element;var d=Rb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
        d<0&&(d=-(d+1));Gf(a,b,d);b.setAttribute("data-layer",String(c))};
    g.GT=function(a){var b=a.U();if(!b.Yd)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!fT(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.vl();var f=c.La&&c.La.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Jf&&f;return!c.ypcPreview&&(!d||e)&&!g.Eb(c.Ea,"ypc")&&
        !a&&(!g.kR(b)||f)};
    ZYa=function(a){a=g.sT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.x3)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";b.B.id.indexOf(";")>=0&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ma("iqss",{trigger:d},!0),!0):!1};
    $Ya=function(){yB.apply(this,arguments);this.requestHeaders={}};
    HT=function(){aZa||(aZa=new $Ya);return aZa};
    IT=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
    g.JT=function(a,b,c,d){d=d===void 0?!1:d;g.LE.call(this,b);var e=this;this.J=a;this.Fa=d;this.N=new g.IJ(this);this.qa=new g.oF(this,c,!0,void 0,void 0,function(){e.bY()});
        g.M(this,this.N);g.M(this,this.qa)};
    bZa=function(a){a.B&&(document.activeElement&&g.Jf(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.rB(a.N);a.Y=void 0};
    KT=function(a,b,c){a.pk()?a.Mb():a.wd(b,c)};
    cZa=function(a,b,c,d){d=new g.W({I:"div",Ka:["ytp-linked-account-popup-button"],va:d,W:{role:"button",tabindex:"0"}});b=new g.W({I:"div",S:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",va:b},{I:"div",S:"ytp-linked-account-popup-description",va:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.JT.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.M(this,this.dialog);
        d.listen("click",function(){e.Mb()});
        g.M(this,d);g.FT(this.J,this.element,4);this.hide()};
    g.LT=function(a,b,c,d){g.LE.call(this,a);this.priority=b;c&&this.Nj(c);d&&this.Ed(d)};
    g.MT=function(a,b,c,d){a=a===void 0?{}:a;b=b===void 0?[]:b;c=c===void 0?!1:c;d=d===void 0?!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,W:a,V:[{I:"div",S:"ytp-menuitem-icon",va:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",va:"{{label}}"},{I:"div",S:"ytp-menuitem-content",va:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",va:"{{secondaryIcon}}"});return a};
    NT=function(a){g.LT.call(this,g.MT({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Eb=a.Tn();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Mc(c)});
        this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
    OT=function(a){return a?g.OE(a):""};
    PT=function(a){g.I.call(this);this.api=a};
    QT=function(a){PT.call(this,a);var b=this;kT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
        kT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
        a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
        a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new NT(b.api);g.M(b,b.menuItem)})};
    dZa=function(a){this.api=a;this.j={}};
    RT=function(a,b,c,d){b in a.j||(c=new g.NI(c,d,{id:b,priority:2,namespace:"appad"}),a.api.lf([c],1),a.j[b]=c)};
    eZa=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(this);g.M(this,this.events);this.j=new dZa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
        this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;RT(d,"part2viewed",1,0x8000000000000);RT(d,"engagedview",Math.max(1,c.Kb*1E3),0x8000000000000);c.isLivePlayback||(c=c.lengthSeconds*1E3,RT(d,"videoplaytime25",c*.25,c),RT(d,"videoplaytime50",c*.5,c),RT(d,"videoplaytime75",c*.75,c),RT(d,"videoplaytime100",c,0x8000000000000),RT(d,"conversionview",c,0x8000000000000),RT(d,"videoplaybackstart",1,c),RT(d,"videoplayback2s",2E3,c),RT(d,"videoplayback10s",1E4,c))});
        this.events.T(this.api,g.OI("appad"),this.B);this.events.T(this.api,g.PI("appad"),this.B)};
    iZa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.v(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.av(c,d);d=void 0;d=d===void 0?!1:d;(d=HI(II(c,fZa,null),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=HI(II(c,gZa,null),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=HI(II(c,hZa,null),c,d,"Nielsen OCR URL"));g.$C(c,void 0,d)}return!0};
    ST=function(a,b){jZa(a,b).then(function(c){g.$C(b,void 0,void 0,c)})};
    TT=function(a,b){b.forEach(function(c){ST(a,c)})};
    jZa=function(a,b){return g.sI(a.api.U())&&uA(b)&&tA(b)?g.JR(a.api.U(),g.bT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):KA()};
    kZa=function(a){PT.call(this,a);this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"videoready",function(b){if(a.getPresentingPlayerType()===1){var c,d,e={playerDebugData:{pmlSignal:!!((c=b.getPlayerResponse())==null?0:(d=c.adPlacements)==null?0:d.some(function(f){var h;return f==null?void 0:(h=f.adPlacementRenderer)==null?void 0:h.renderer})),
            contentCpn:b.clientPlaybackNonce}};g.SB("adsClientStateChange",e)}})};
    mZa=function(a){g.W.call(this,{I:"button",Ka:["ytp-button"],W:{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",W:{"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.vD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
    lZa(this);wT(a,this.element,this);this.vD()};
    lZa=function(a){a.B.push(a.T(a.J,"videodatachange",a.vD));a.B.push(a.T(a.J,"videoplayerreset",a.vD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.vD));a.B.push(a.T(a.J,"autonavchange",a.MV))};
    nZa=function(a){a.isChecked=a.isChecked;a.Ga("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.Uh()};
    oZa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&tXa(a.Od())};
    pZa=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new mZa(a);g.M(b,c);a.wz(c)})};
    UT=function(a,b){g.LT.call(this,g.MT({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)};
    VT=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
    qZa=function(a){var b=!a.U().Ik&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b};
    g.WT=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.GF(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Eza(a,d,!0);return!1};
    g.XT=function(a,b,c){if(yR(b.U())&&b.getPresentingPlayerType()!==2){if(g.GF(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.GF(c);d&&b.pauseVideo();g.Eza(a,void 0,!0);d&&(g.RF(a),c.preventDefault())}return!1};
    sZa=function(){var a=rZa.includes("en")?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
                fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{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};
    tZa=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"}]}]}]}};
    uZa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
    $T=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";UT.call(this,b,g.ZT.Q3);var c=this;this.J=a;this.j=!1;this.B=new g.Av(function(){g.Jv(c.element,"ytp-menuitem-highlighted")},0);
        this.Eb=a.Tn();this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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(vZa,this.D);g.M(this,this.B)};
    xZa=function(a){PT.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){wZa(b)});
        a.addEventListener("highlightSettingsMenu",function(c){wZa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.Hv(d.element,"ytp-menuitem-highlighted"),g.Hv(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
        kT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
    wZa=function(a){a.menuItem||(a.menuItem=new $T(a.api),g.M(a,a.menuItem),a.menuItem.Ta(a.j))};
    aU=function(a,b,c,d){UT.call(this,"Stable Volume",g.ZT.I6);g.Hv(this.element,"ytp-drc-menu-item");this.Eb=a.Tn();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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);VT(this,a);this.Eb.Rc(this)};
    bU=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new aU(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.M(b,b.menuItem))});
        kT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
        kT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
        kT(this.api,"hasDrcAudioTrack",function(){return b.B()});
        var c;this.j=(c=g.vB("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()};
    cU=function(a){PT.call(this,a);var b=this;this.j={};this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
        this.events.T(a,g.OI("embargo"),function(c){b.api.Qo(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.v(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Nf("auth",2,"This video isn't available in your current playback area",AJ({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=(e=f.embargo)==null?void 0:e.onTrigger)&&b.api.ib("innertubeCommand",f)}})};
    yZa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)};
    zZa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number((d=c.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number((f=c.duration)==null?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))}};
    AZa=function(a){PT.call(this,a);var b=this;this.j=[];this.events=new g.IJ(a);g.M(this,this.events);kT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().wp&&b.addEmbedsConversionTrackingParams(c)});
        this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Pk(c.visualElement.getAsJspb(),2),b.j.push(c))})};
    BZa=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){tO(sO(),16623);b.j=g.gE();var d=a.U().xi&&!c.xi;if(aT(c)&&d){tO(sO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&CO(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&CO(c)}}else tO(sO(),
        32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&CO(h)});
        this.events.T(a,"loadvideo",function(){tO(sO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
        this.events.T(a,"cuevideo",function(){tO(sO(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
        this.events.T(a,"largeplaybuttonclicked",function(c){tO(sO(),27240,c.visualElement)});
        this.events.T(a,"playlistnextbuttonclicked",function(c){tO(sO(),27240,c.visualElement)});
        this.events.T(a,"playlistprevbuttonclicked",function(c){tO(sO(),27240,c.visualElement)});
        this.events.T(a,"playlistautonextvideo",function(){tO(sO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
    CZa=function(a){g.I.call(this);var b=this;this.j=null;for(var c=[],d=0;d<=100;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];typeof e.isVisible==="undefined"?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
    EZa=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"applicationInitialized",function(){DZa(b)})};
    DZa=function(a){a.j=new CZa(a.api.getRootNode());g.M(a,a.j);a.events.T(a.api,"videoStatsPingCreated",function(b){var c=a.j;c=c.j==null?null:Math.round(c.j*100)/100;b.inview=c!=null?c:void 0;c=a.api.getPlayerSize();if(c.height>0&&c.width>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.AR();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})};
    FZa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null};
    dU=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",va:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",va:"\u2022"},{I:"span",va:"{{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)};
    HZa=function(a,b){a.j||(a.B=b,a.C=(0,g.fC)(),a.j=new g.zv(function(){GZa(a)},null),GZa(a))};
    GZa=function(a){var b=Math,c=b.round,d=Math.min((0,g.fC)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",rLa({seconds:b}));b<=0&&a.j?IZa(a):a.j&&a.j.start()};
    IZa=function(a){a.j&&(a.j.dispose(),a.j=null)};
    JZa=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new dU(a);g.M(b,b.j);g.FT(a,b.j.element,4);b.j.hide()})};
    eU=function(a){g.W.call(this,{I:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ka:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{I:"div",Ka:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],W:{"data-priority":"1"}});this.Ua=a;this.j=new g.oF(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.M(this,
        this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()};
    fU=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);kT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
        kT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
        var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&yR(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new eU(a);g.M(b,b.j);a.wz(b.j)})};
    KZa=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"],W:{"aria-label":"Close"},V:[g.SE()]},{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",va:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle",
                    va:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ga("ytp-gated-actions-overlay-background");this.B=this.Ga("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ga("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ib("onCloseMiniplayer")});
        this.hide()};
    MZa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={CI:void 0},c++){var e=a.j[c],f=void 0,h=(f=e)==null?void 0:f.element;h||(h=new g.W({I:"button",S:"ytp-gated-actions-overlay-button",W:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",va:"{{buttonText}}"}]}),g.M(a,h),h.Ja(a.B),e={element:h});d.CI=g.V(b[c],LZa);var l=f=void 0,m=void 0,n=((f=d.CI)==null?void 0:f.title)||((l=d.CI)==null?void 0:(m=l.titleFormatted)==null?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
    h.Pc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.V((q=p.CI)==null?void 0:q.onTap,nE);r&&a.api.ib("innertubeCommand",r)}}(d));
        a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
    NZa=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.j=new KZa(this.api);g.M(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=(c=b.api.getVideoData())==null?void 0:c.i$;c=b.j;if(d){var e,f,h=((e=d.title)==null?void 0:e.content)||"";e=((f=d.subtitle)==null?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(h==null?0:h.sources){e=0;h=g.v(h.sources);for(var l=h.next();!l.done;l=h.next())l=l.value,l.width&&l.url&&l.width>
    e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;MZa(c,d.actionButtons||[]);c.show()}else c.hide()});
        g.FT(this.api,this.j.element,4)};
    OZa=function(a){PT.call(this,a);var b=a.U();b.Ij=!1;b.eb=!1;b.jm=!1;mT(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
        mT(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
        mT(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)});
        mT(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})});
        mT(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()});
        mT(a,"getPreferredQuality",function(){return a.getPreferredQuality()});
        mT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()});
        mT(a,"setPlaybackQuality",function(c){a.setPlaybackQuality(c)})};
    PZa=function(a){PT.call(this,a);a=a.U();a.wh.push("flix");a.eb=!1;a.Ij=!1};
    gU=function(a){PT.call(this,a);var b=this;mT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
        mT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.ra(g.Ja.apply(0,arguments)))});
        lT(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()});
        lT(this.api,"setSphericalProperties",function(){var c=g.Ja.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.ra(c))})};
    QZa=function(a){PT.call(this,a);kT(a,"createClientVe",this.createClientVe.bind(this));kT(a,"createServerVe",this.createServerVe.bind(this));kT(a,"destroyVe",this.destroyVe.bind(this));kT(a,"hasVe",this.hasVe.bind(this));kT(a,"logClick",this.logClick.bind(this));kT(a,"logVisibility",this.logVisibility.bind(this));kT(a,"setTrackingParams",this.setTrackingParams.bind(this))};
    hU=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);kT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
        kT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
        kT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
    RZa=function(a,b,c){var d=a.api.getCurrentTime()*1E3<b?1:-1;a.api.QG(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
    iU=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"videodatachange",function(){b.updateMetadata()});
        this.events.T(a,"presentingplayerstatechange",function(){SZa(b)})};
    jU=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
    TZa=function(a){jU("play",function(){a.api.playVideo()});
        jU("pause",function(){a.api.pauseVideo()});
        jU("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
        jU("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
    UZa=function(a){var b,c,d,e;return(b=a.api.getVideoData().getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:(e=d.browserMediaSession)==null?void 0:e.browserMediaSessionRenderer};
    VZa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.v(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||c.width<=0||!c.height||c.height<=0||g.KI(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
    SZa=function(a){a=a.api.getPlayerStateObject();a=a.isCued()||a.isError()?"none":a.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=a};
    kU=function(a){PT.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=(e=b.api.getVideoData())==null?void 0:(f=e.getPlayerResponse())==null?void 0:(h=f.overlay)==null?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.V(l.compositeVideoOverlay,WZa),e==null?0:(d=e.sources)==null?0:d.length))for(d=g.v(e==null?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}c==="captions"&&(d==null?void 0:d.topLeftCornerX)!==void 0&&(d==null?void 0:d.topLeftCornerY)!==void 0&&(d==null?void 0:d.width)!==void 0&&(d==null?void 0:d.height)!==void 0&&b.api.EM({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.sf("compositeembargo",1);var e=d==null?void 0:d.YC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(e==null?0:e.length)?XZa(b,e.filter(function(f){return YZa(b,f)})):(d==null?0:d.cueRanges)&&XZa(b,d.cueRanges.filter(function(f){return YZa(b,f)}));
            c==="dataupdated"&&(d==null?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=d==null?void 0:d.compositeLiveStatusToken,b.api.fp())});
        this.events.T(a,g.OI("compositeembargo"),function(c){var d;if(((d=b.j)==null?void 0:d.id)!==c.id&&(b.api.Qo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.v(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=(h=f.value.compositeEmbargo)==null?void 0:h.embargoStatusToken;d.Oy!==f&&(d.Oy=f,b.api.fp());ZZa(b,c)}}});
        this.events.T(a,g.PI("compositeembargo"),function(c){var d;if(((d=b.j)==null?void 0:d.id)===c.id&&(b.api.Qo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.Oy=void 0;b.api.fp();ZZa(b)}});
        this.events.T(a,"heartbeatRequest",function(c){b.compositeVideoState!==null&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
        this.events.T(a,"onPlaybackAudioChange",function(){b.api.fp()});
        kT(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
    ZZa=function(a,b){var c;((c=a.j)==null?void 0:c.id)!==(b==null?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.So([a.j],1)),a.j=b)};
    XZa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number((e=d.playbackRelativePosition)==null?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number((f=d.duration)==null?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)))}};
    YZa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.D)};
    $Za=function(a){PT.call(this,a);kT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));kT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));kT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));kT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));kT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));kT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));kT(this.api,"setUpPositionSyncInterval",
        this.setUpPositionSyncInterval.bind(this))};
    lU=function(a){PT.call(this,a);var b=this;kT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
        kT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
    a_a=function(a,b,c){var d=[],e=b?156595:151874;a=g.v(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};
    b_a=function(a){for(var b=0,c=0;c<a.length;c++)if(a[c].paygatedQualityDetails){var d=a[c];a.splice(c,1);a.splice(b,0,d);b++}};
    c_a=function(a){var b=new Set,c=new Map,d={};a=g.v(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.quality,h=e.isPlayable,l=e.qualityLabel;l&&f&&(h&&c.has(f)&&c.get(f)!==l?b.add(f):h&&c.set(f,l),d[l]||(d[l]=e))}c=[];d=g.v(Object.values(d));for(a=d.next();!a.done;a=d.next())e=a.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
    e_a=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"d6de4videobindingchange",function(c){d_a(b,c)})};
    d_a=function(a,b){if(window.android&&window.android.webview){var c=g.hI(a.api.U().experiments,"html5_d6de4_cloud_project_number");window.android.webview.getExperimentalMediaIntegrityTokenProvider&&window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:c}).then(function(d){return d.requestToken(b)}).then(function(d){a.api.hT(d)}).catch(function(d){g.kE(d)})}};
    mU=function(a){g.W.call(this,{I:"button",Ka:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[Hya()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.Hm(),d=c.subscribe("visibilitystatechange",function(){b.Ta(c.ju())});
        this.addOnDisposeCallback(function(){c.Qh(d)});
        wT(a,this.element,this);this.Ta(c.ju())};
    f_a=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
    g_a=function(a){var b=a.api.getVideoData();g.KE(a.button,b.mX)};
    h_a=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);kT(this.api,"musicDisableUi",function(){g.Hv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
        kT(this.api,"musicEnableUi",function(){g.Jv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
    pU=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?!1:c;g.W.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.Ab=this.ra=this.Ca=this.G=this.D=this.Y=this.expanded=this.enabled=this.Wa=!1;this.gb=new g.Av(function(){d.badge.element.style.width=""},200,this);
        this.Sa=new g.Av(function(){nU(d);oU(d)},200,this);
        this.dismissButton=new g.W({I:"button",Ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.M(this,this.dismissButton);this.C=new g.W({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.M(this,this.C);this.Ma=new g.W({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.M(this,this.Ma);this.badge=new g.W({I:c?"div":
                "button",Ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.Ma,this.C]});g.M(this,this.badge);this.badge.Ja(this.element);this.qa=new g.oF(this.badge,250,!1,100);g.M(this,this.qa);this.Za=new g.oF(this.C,250,!1,100);g.M(this,this.Za);this.rb=new g.zv(this.iea,null,this);g.M(this,this.rb);this.eb=new g.zv(this.m8,null,this);g.M(this,this.eb);g.M(this,this.gb);g.M(this,this.Sa);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
            this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.dL(!1)});
        this.T(this.J,"onShowControls",function(){d.dL(!0)});
        this.T(this.badge.element,"click",this.dG);this.T(this.dismissButton.element,"click",this.Mu);this.T(this.J,"pageTransition",this.NV);this.T(this.J,"appresize",this.Nl);this.T(this.J,"fullscreentoggled",this.Laa);this.T(this.J,"cardstatechange",this.taa);this.T(this.J,"annotationvisibility",this.Tea,this);this.T(this.J,"offlineslatestatechange",this.Uea,this)};
    nU=function(a){g.Lv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Ca||!a.Y)};
    oU=function(a,b){var c=a.jM();a.expanded!==c&&(a.expanded=c,b===void 0||b?(a.rb.stop(),a.eb.stop(),a.gb.stop(),a.rb.start()):(g.KE(a.C,a.expanded),g.Lv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),a.GK())};
    i_a=function(a){var b=a.text||"",c=g.tf("ytp-suggested-action-badge-title",a.element);c&&g.Kf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Va?a.Va:"")};
    qU=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",Ka:["ytp-panel-back-button-container"],V:[{W:{"aria-label":"Back to previous menu"},I:"button",Ka:["ytp-button",l]}]},{I:"span",Ka:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ka:["ytp-button",p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.LE.call(this,h);this.content=
        b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.XY=!1;this.WY=d;c&&(c=this.Ga(l),m=this.Ga(m),this.T(c,"click",this.D_),this.T(m,"click",this.D_),this.XY=!0,e&&(p=this.Ga(p),this.T(p,"click",e)));b.subscribe("size-change",this.I_,this);this.T(a,"fullscreentoggled",this.I_);this.J=a};
    g.rU=function(a,b,c,d,e,f){b=b===void 0?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.LE({I:"div",S:"ytp-panel-menu",W:h});qU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.M(this,this.menuItems)};
    g.sU=function(a){for(var b=g.v(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.RR,a);a.items=[];g.Cf(a.menuItems.element);a.menuItems.publish("size-change")};
    j_a=function(a,b){return b.priority-a.priority};
    g.tU=function(a,b){g.JT.call(this,a,{I:"div",Ka:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Ke(0,0);this.listen("keydown",this.a6)};
    k_a=function(a){var b=a.j[a.j.length-1];if(b){g.Us(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Js(b.element,"width","");g.Js(b.element,"height","");g.Js(b.element,"maxWidth","100%");g.Js(b.element,"maxHeight","100%");g.Js(b.content.element,"height","");var c=g.Vs(b.element);c.width+=1;c.height+=1;g.Js(b.element,"width",c.width+"px");g.Js(b.element,"height",c.height+"px");g.Js(b.element,"maxWidth","");g.Js(b.element,"maxHeight","");var d=0;b.XY&&(d=b.Ga("ytp-panel-header"),d=g.Vs(d).height);
        var e=0;b.WY&&(e=b.Ga("ytp-panel-footer"),g.Js(e,"width",c.width+"px"),e=g.Vs(e).height);g.Js(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,d.offsetWidth-d.clientWidth>0&&e>0&&(c.width+=e,g.Js(b.element,"width",c.width+"px")));a.size=c}};
    g.uU=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);l_a(a,c,b)};
    g.vU=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];l_a(a,b,c,!0)}};
    l_a=function(a,b,c,d){m_a(a);b&&(b.unsubscribe("size-change",a.DC,a),b.unsubscribe("back",a.Zi,a));c.subscribe("size-change",a.DC,a);c.subscribe("back",a.Zi,a);if(a.Hb){g.Hv(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;k_a(a);g.Us(a.element,e);a.G=new g.Av(function(){n_a(a,b,c,d)},20,a);
        a.G.start()}else c.Ja(a.element),b&&b.detach()};
    n_a=function(a,b,c,d){a.G.dispose();a.G=null;g.Hv(a.element,"ytp-popup-animating");d?(g.Hv(b.element,"ytp-panel-animate-forward"),g.Jv(c.element,"ytp-panel-animate-back")):(g.Hv(b.element,"ytp-panel-animate-back"),g.Jv(c.element,"ytp-panel-animate-forward"));g.Us(a.element,a.size);a.K=new g.Av(function(){g.Jv(a.element,"ytp-popup-animating");b.detach();g.Kv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
        a.K.start()};
    m_a=function(a){a.G&&g.Cv(a.G);a.K&&g.Cv(a.K)};
    wU=function(a){g.tU.call(this,a,"ytp-shopping-product-menu");this.Pe=new g.rU(this.J);g.M(this,this.Pe);this.hide();g.uU(this,this.Pe);g.FT(this.J,this.element,4)};
    p_a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=o_a(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.ib("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
    q_a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&o_a(a,c,e,b==null?void 0:b.icon).listen("click",function(){var f;(b==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="HIDE"?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.ib("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
    o_a=function(a,b,c,d,e){b=new g.LT(g.MT({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",r_a(e));b.setIcon(r_a(d));g.M(a,b);a.Pe.Rc(b,!0);return b};
    r_a=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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 yya();case "HIDE":return{I:"svg",W:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",W:{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 UE()}};
    xU=function(a){pU.call(this,a,!1,!0);this.isCounterfactual=this.B=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"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.M(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({I:"img",S:"ytp-suggested-action-badge-img",W:{src:"{{url}}"}});
        this.thumbnailImage.hide();g.M(this,this.thumbnailImage);this.thumbnailIcon=new g.W({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.M(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",va:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",va:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text",
                    va:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.M(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.OI("suggested_action_view_model"),this.Jaa);this.T(this.J,g.PI("suggested_action_view_model"),this.Kaa);this.T(this.overflowButton.element,"click",this.b6);this.T(a,"featuredproductdismissed",this.Mu);this.J.createServerVe(this.banner.element,this.banner,!0)};
    s_a=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,oU(a),a.Nl(),g.KE(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.KE(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.KE(a.overflowButton,a.isVisible))};
    yU=function(){xU.apply(this,arguments)};
    t_a=function(a){PT.call(this,a);this.j=new yU(this.api);g.M(this,this.j);g.FT(this.api,this.j.element,4)};
    u_a=function(a){PT.call(this,a);var b=this;this.j="";this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.v(d);for(var e=d.next();!e.done;e=d.next())if(e.value.getLanguageInfo().getId()===c){b.j=c;break}}});
        this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
    g.zU=function(a,b,c,d,e,f,h){g.LT.call(this,g.MT({"aria-haspopup":"true"}),b,a);this.Eb=d;this.N=!1;this.C=null;this.options={};this.B=new g.rU(c,void 0,a,e,f,h);g.M(this,this.B);this.listen("keydown",this.c6);this.listen("click",this.open)};
    v_a=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.AU=function(a,b){g.sU(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(a.options[f].Nj(a.Vk(f,!0)),delete a.options[f]):h=a.jO(f,-e,l);c[f]=h;a.B.Rc(h,!0)}d||(a.C=null);b=g.v(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
    w_a=function(a,b){g.zU.call(this,"Sleep timer",g.ZT.SLEEP_TIMER,a,b);this.J=a;this.j={};a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",
                fill:"#fff"}}]});this.D=new g.W({I:"div",Ka:["ytp-menuitem-label-wrapper"],V:[{I:"div",va:"End of video"},{I:"div",Ka:["ytp-menuitem-sublabel"],va:"{{content}}"}]});g.M(this,this.D);this.T(a,"videodatachange",this.onVideoDataChange);this.Ta();this.J.ib("onSleepTimerFeatureAvailable")};
    x_a=function(a){var b="Off 10 15 20 30 45 60".split(" "),c;((c=a.J.getVideoData())==null?0:c.isLivePlayback)||b.push("End of video");var d,e,f,h,l;(c=(d=a.J.getVideoData())==null?void 0:(e=d.getWatchNextResponse())==null?void 0:(f=e.contents)==null?void 0:(h=f.twoColumnWatchNextResults)==null?void 0:(l=h.playlist)==null?void 0:l.playlist)&&!c.isInfinite&&b.push("End of playlist");g.AU(a,b.map(a.RE));a.j=g.bc(b,a.RE,a)};
    y_a=function(a,b){var c=a.j[b]==="End of video"||a.j[b]==="End of playlist";a.J.getPlayerState()===0&&c||(g.zU.prototype.Ig.call(a,b),a.Pi(b))};
    BU=function(a){PT.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new w_a(b.api,b.api.Tn()),g.M(b,b.menuItem))});
        a.addEventListener("openSettingsMenuItem",function(c){c==="menu_item_sleep_timer"&&b.menuItem.open()});
        kT(a,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()});
        kT(a,"setSleepTimerTimeLeft",function(c){b.setSleepTimerTimeLeft(c)});
        kT(a,"setVideoTimeLeft",function(c){b.setVideoTimeLeft(c)})};
    g.DU=function(a,b,c,d,e){b=b===void 0?!1:b;d=d===void 0?!1:d;e=e===void 0?!1:e;g.DE.call(this);this.Y=e;this.N=!1;this.D=new pB(this);this.G=this.K=null;this.C=this.B=!1;g.M(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Oc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));CU(this)};
    EU=function(a){g.rB(a.D,!a.j)};
    CU=function(a){a.G=null;a.K=null;a.T(FU("over"),a.Fx);a.T("touchstart",a.wN);a.j&&a.T(FU("down"),a.Q$)};
    z_a=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.K)return d}return null};
    FU=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
    GU=function(a){return a&&A_a?ff(a)||document:document};
    B_a=function(a,b){g.W.call(this,{I:"div",Ka:["ytp-overlay","ytp-speedmaster-overlay"],V:[{I:"div",S:"ytp-speedmaster-user-edu",V:[{I:"div",S:"ytp-speedmaster-label",va:b},{I:"div",S:"ytp-speedmaster-icon",va:"{{icon}}"}]}]});this.J=a;this.j=this.Ga("ytp-speedmaster-user-edu");this.updateValue("icon",xya());g.Hv(this.j,"ytp-speedmaster-has-icon");this.J.createClientVe(this.j,this,173040,!0);this.Yh()};
    IU=function(a){PT.call(this,a);var b=this;this.D=this.C=!1;this.Sa=g.hI(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Ca=g.hI(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.La=g.hI(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.IJ(a);g.M(this,this.B);this.Y="2x";this.speedmasterUserEdu=new B_a(a,this.Y);g.M(this,this.speedmasterUserEdu);g.FT(this.api,this.speedmasterUserEdu.element,4);this.j=new g.DU(this.api.ob().Pz,!0,null,
        !1,!0);g.M(this,this.j);this.delay=new g.Av(this.Ea,this.Sa,this);g.M(this,this.delay);this.B.T(a,"videodatachange",function(){HU(b)},this);
        this.B.T(a,"presentingplayerstatechange",function(){HU(b)},this);
        this.B.T(a,"autonavvisibility",function(){HU(b)},this);
        this.api.Hm().subscribe("visibilitystatechange",function(){HU(b)});
        this.B.T(a,"rootnodemousedown",function(c){b.N=c});
        this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(c,d){b.qa=d;C_a(b,c,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(c){C_a(b,c,!1)},this))};
    JU=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.K,a);a.j.unsubscribe("dragend",a.G,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Yh(),a.api.setPlaybackRate(a.Fa),a.api.showControls(),a.Ma&&a.api.pauseVideo())};
    C_a=function(a,b,c){c?b.keyCode!==32||b.repeat||a.C||!a.D||g.Bv(a.delay):JU(a)};
    HU=function(a){var b,c;var d=!!a.Y&&!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.Hf()&&a.api.getPresentingPlayerType()!==2&&!g.vF(a.api.getPlayerStateObject(),2)&&!((c=g.tT(a.api))==null?0:c.Qg())&&!a.api.hd()&&D_a(a.api.Hm());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.ra,a):(a.j.unsubscribe("dragstart",a.ra,a),a.j.unsubscribe("dragmove",a.K,a),a.j.unsubscribe("dragend",a.G,a),JU(a)))};
    E_a=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);kT(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
        kT(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)});
        this.events.T(a,"modulecreated",function(c){if(c==="ad"&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;c=(d=c.adPlacements)!=null?d:[];d=g.v(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=(c=e.value.adPlacementRenderer)==null?void 0:(f=c.renderer)==null?void 0:(h=f.instreamVideoAdRenderer)==null?void 0:h.playerVars)c=oA(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
        this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
    KU=function(a,b,c){g.yb.call(this,b,a);this.j=c};
    g.LU=function(a){tK.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new KU(b,c.type,c))}};
    MU=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
    F_a=function(a){return a.data[a.j]||0};
    NU=function(a){g.I.call(this);this.C=a;this.j=new Map;this.B=new g.Av(this.sample,250,this);g.M(this,this.B);this.start()};
    OU=function(a,b){if((a=a.j.get(b))==null)a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
    PU=function(a,b){var c;return((c=a.j.get(b))==null?void 0:F_a(c.buffer))||0};
    G_a=function(a){this.j=a;this.SA=NaN;this.buffer=new MU(100)};
    J_a=function(a){var b=a.Uc(),c=a.getVideoData(),d=a.Ke(),e=d.Ib(),f=a.U(),h=b.eF(),l=b.JT,m=PU(l,"bandwidth")*8/1024,n=PU(l,"networkactivity")/1024,p=PU(l,"bufferhealth");if(b.Ae){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Ae.j.getInfo()+"/"+RO(b.Ow());q+="/"+b.Ae.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),u=d.getCurrentTime().toFixed(2),w=aK(d.Dh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.JD?"DS":"SS");q+="DAI, ";var A=H_a(b);A&&(q+=
        A)}var C;((C=a.getVideoData(1))==null?0:g.dT(C))?(q+="SSAP, ",(C=H_a(b))&&(q+=C)):yS(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":C="o";break;case "gp":C="gp";break;default:C="gvi"}q+="vd:"+C+", "}f.Md&&(q=f.Md.Zp?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+u+" b:"+w+" ";d.isSeeking()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.TE())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.QC;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.kA(BG)("_start",
        void 0);f=[];t=g.v(["pl_i","vir","or_p","orfb","pbs"]);for(u=t.next();!u.done;u=t.next())u=u.value,(w=g.kA(BG)(u,void 0))&&q&&(w-=q,f.push(u+":"+Math.round(w)));q=f.join(" ");f=g.AR();t=g.ET(a).W9;u=c.C&&!c.C.j?"display:none":"";if((w=c.clientPlaybackNonce)&&w.length==16){w+="AAAA";C=0;A="";for(var E=0;E<20;E++)if(C=(C<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(E)),E%5==4){for(var H="",L=0;L<6;L++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(C&31)+H,C>>=
        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:u,network_activity_style:u,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};
        n=e.clientWidth+"x"+e.clientHeight+(f>1?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=gYa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.Sf.toFixed(1);isFinite(Number(a))&&(N+=" (content loudness "+a+"dB)");m.volume=N;m.resolution=e.videoWidth+"x"+e.videoHeight;if(e=c.B){if(N=e.video)a=N.fps,a>1&&(m.resolution+="@"+a),(a=g.QU(b))&&a.video&&(m.resolution+=
            " / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=I_a(e),!c.D||e.audio&&e.video?e.r_&&(m.codecs+=" / "+e.r_+"A"):m.codecs+=" / "+I_a(c.D),N.B||N.primaries?(a=N.B||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),m.color=a+" / "+(N.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(e.debugInfo)for(m.fmt_debug_info="",e=g.v(e.debugInfo),N=e.next();!N.done;N=e.next())N=N.value,m.fmt_debug_info+=N.label+":"+N.text+
            " ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;N=c.je;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(zS(c)?" Manifestless":"");else if(e){N=PU(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=zS(c)?"Manifestless, ":"";c.eb&&(e+="Windowed, ");a="Uncertain";if(N>=0&&N<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";
            break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(N=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+N.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=OU(l,"bandwidth");m.network_activity_samples=
            OU(l,"networkactivity");m.live_latency_samples=OU(l,"livelatency");m.buffer_health_samples=OU(l,"bufferhealth");b=g.eT(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";vS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240623_00_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&q.length>0&&m.debug_info.length+q.length<=60?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=
            m.extra_debug_info&&m.extra_debug_info.length>0?"":"display:none";return m};
    I_a=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
    RU=function(a,b,c,d,e){g.W.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"};
    SU=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.yf("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.yf("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=(window.devicePixelRatio||1)>1?2:1,a.C.height=a.heightPx*c,a.C.style.height=
        a.heightPx+"px",a.B.scale(1,c)));b=g.v(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.G[d+1];e.style.borderTop=
        "solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
    TU=function(a){var b=null;b={I:"button",Ka:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],W:{title:"close"},va:"[X]"};g.W.call(this,{I:"div",Ka:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",Ka:["html5-video-info-panel-content","ytp-sfn-content"],V:[{I:"div",V:[{I:"div",va:"Video ID / sCPN"},{I:"span",va:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{I:"div",V:[{I:"div",va:"Viewport / Frames"},{I:"span",va:"{{dims_and_frames}}"}]},{I:"div",V:[{I:"div",va:"Current / Optimal Res"},{I:"span",
                    va:"{{resolution}}"}]},{I:"div",V:[{I:"div",va:"Volume / Normalized"},{I:"span",va:"{{volume}}"}]},{I:"div",V:[{I:"div",va:"Codecs"},{I:"span",va:"{{codecs}}"}]},{I:"div",W:{style:"{{shader_info_style}}"},V:[{I:"div",va:"Shader Info"},{I:"span",va:"{{shader_info}}"}]},{I:"div",W:{style:"{{color_style}}"},V:[{I:"div",va:"Color"},{I:"span",va:"{{color}}"}]},{I:"div",W:{style:"{{drm_style}}"},V:[{I:"div",va:"Protected"},{I:"span",va:"{{drm}}"}]},{I:"div",W:{style:"{{bandwidth_style}}"},V:[{I:"div",va:"Connection Speed"},
                    {I:"span",V:[{I:"span",va:"{{bandwidth_chart}}"},{I:"span",va:"{{bandwidth_kbps}}"}]}]},{I:"div",W:{style:"{{network_activity_style}}"},V:[{I:"div",va:"Network Activity"},{I:"span",V:[{I:"span",va:"{{network_activity_chart}}"},{I:"span",va:"{{network_activity_bytes}}"}]}]},{I:"div",V:[{I:"div",va:"Buffer Health"},{I:"span",V:[{I:"span",va:"{{buffer_health_chart}}"},{I:"span",va:"{{buffer_health_seconds}}"}]}]},{I:"div",W:{style:"{{live_latency_style}}"},V:[{I:"div",va:"Live Latency"},{I:"span",V:[{I:"span",
                        va:"{{live_latency_chart}}"},{I:"span",va:"{{live_latency_secs}}"}]}]},{I:"div",W:{style:"{{live_mode_style}}"},V:[{I:"div",va:"Live Mode"},{I:"span",va:"{{live_mode}}"}]},{I:"div",W:{style:"{{playback_categories_style}}"},V:[{I:"div",va:"Playback Categories"},{I:"span",va:"{{playback_categories}}"}]},{I:"div",W:{style:"{{fmt_debug_info_style}}"},V:[{I:"div",va:"Format Debug Info"},{I:"span",va:"{{fmt_debug_info}}"}]},{I:"div",V:[{I:"div",va:"Mystery Text"},{I:"span",va:"{{debug_info}}"}]},{I:"div",
                W:{style:"{{extra_debug_info_style}}"},V:[{I:"div",va:""},{I:"span",V:[{I:"span",va:"{{extra_debug_info}}"}]}]},{I:"div",V:[{I:"div",va:"Date"},{I:"span",va:"{{date}}"}]},{I:"div",W:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",va:"COTN / Local Media"},{I:"span",va:"{{cotn_and_local_media}}"}]},{I:"div",W:{style:"{{release_style}}"},V:[{I:"div",va:"Player Release"},{I:"span",va:"{{release_name}}"}]}]}]});this.Ua=a;this.position=0;this.G=!0;b?(a=this.Ga("ytp-sfn-close"),this.T(a,"click",this.hide)):
        this.T(this.element,"click",this.hide);a=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];b="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var c=a.map(function(d){return d/4});
        this.Y={};this.j=new RU(300,1,150,a,b);g.M(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new RU(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.M(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new RU(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.M(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new RU(300,1,150,c,b);g.M(this,this.K);this.updateValue("network_activity_chart",
            this.K);this.delay=new g.Av(this.Ta,500,this);g.M(this,this.delay);this.D=new g.Av(this.N,2E4,this);g.M(this,this.D)};
    M_a=function(a){PT.call(this,a);var b=this;kT(a,"getStatsForNerds",function(){return J_a(b.api)});
        lT(a,"showVideoInfo",function(){K_a(b,!0)});
        lT(a,"hideVideoInfo",function(){K_a(b,!1)});
        lT(a,"isVideoInfoVisible",function(){return L_a(b)})};
    K_a=function(a,b){var c=L_a(a);a.j||(a.j=new TU(a.api),g.M(a,a.j),g.FT(a.api,a.j.element,4));g.KE(a.j,b);var d=BT(a.api.zb());d&&d.loaded&&c!==b&&d.ST();b&&a.api.ma("sfn",{},!0)};
    L_a=function(a){var b;return!((b=a.j)==null||!b.Hb)};
    UU=function(){g.I.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.zv(this.j,null,this);g.M(this,this.delay)};
    N_a=function(a,b){if(b.I==="path")return b.W.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&typeof d!=="string"&&(d=N_a(a,d)))return d}};
    R_a=function(a,b,c){c=N_a(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=GE();b=b.getElementsByTagName("use");for(var h=0;h<b.length;h++)b[h].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=O_a(e),m=O_a(c);P_a(a,function(n){d.setAttribute("d",Q_a(l,m,n))},200)};
    P_a=function(a,b,c){a.B=b;a.startTime=(0,g.fC)();a.duration=c;a.j()};
    O_a=function(a){var b=[];a=a.match(S_a);for(var c=0;c<a.length;c++){var d=a[c]===" "?NaN:Number(a[c]);b.push(isNaN(d)?a[c]:d)}return b};
    Q_a=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d=typeof f==="number"?d+(f+(b[e]-f)*c):d+f}return d};
    VU=function(a){g.W.call(this,{I:"button",Ka:["ytp-size-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},va:"{{icon}}"});this.api=a;this.qk=null;this.transition=new UU;g.M(this,this.transition);this.T(a,"sizestylechange",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);a.createClientVe(this.element,this,139116);this.Ta();this.listen("click",this.onClick);wT(a,this.element,
        this)};
    T_a=function(a){PT.call(this,a);var b=this;this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new VU(a);g.M(b,b.button);a.wz(b.button)})};
    U_a=function(a){PT.call(this,a);var b=this;lT(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
        lT(this.api,"setPlaybackRate",function(c){typeof c==="number"&&b.api.setPlaybackRate(c)})};
    WU=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.xq(e,"$httpHeaders",d):e}
        var c=c===void 0?!1:c;this.ys=a;this.j={};var d={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw","Content-Type":"application/json+protobuf"};this.j={method:"POST",format:"RAW",postBodyFormat:"JSPB",headers:c?{}:d};this.B=b("/$rpc/google.internal.waa.v1.Waa/Create");this.C=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
    XU=function(a){PT.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Qb=null;this.D=!1;this.B=null;this.C=!1;var c=a.U().getWebPlayerContextConfig();this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.ej=d.ej;a.U().wc()&&b.api.ma("sps",{status:b.ej||""});if(b.L("html5_handle_sps_status"))if(b.ej===1)b.api.oC(0);else if(b.ej===2||b.ej===3)if(b.D&&!b.B&&V_a(b),b.ej===3){var e=b.api.qA();e++;var f;d=(f=d.Z0)!=null?f:Infinity;if(e<d){b.api.gB(!0);var h;
        (h=b.B)==null||h.then(function(){b.api.gB(!1)});
        b.api.oC(e)}else b.api.Nf("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
        this.events.T(a,"spsumpreject",function(d,e){b.C=e;d&&b.D&&!b.B&&V_a(b);b.B||b.api.ma("stp",{s:+b.D,b:+b.C})});
        this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Qb=a.Fi();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{if(d){b.Qb.gj("pot_isc");W_a(b);var e=g.hI(b.api.U().experiments,"html5_webpo_kaios_defer_timeout_ms");e?g.yA(function(){X_a(b)},e):b.L("html5_webpo_idle_priority_job")?g.LB(g.NB(),function(){X_a(b)}):X_a(b)}}catch(f){f instanceof Error&&g.kE(f)}});
        a.mT(this)};
    Y_a=function(a,b){var c=TQ(b.experiments,"html5_web_po_request_key");return c?c:g.sI(b)?a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
    W_a=function(a){function b(m){g.kE(m)}
        function c(m){(m=Z_a[m])&&a.Qb.gj(m)}
        if(a.L("html5_use_shared_owl_instance")&&typeof g.Wa("yt.jnn.mod")!=="undefined"){var d=g.Wa("yt.jnn.mod");if(d=qBa(d)){a.j=d;return}}d=a.api.U();var e=Y_a(a,d);try{var f=a.L("html5_po_token_enable_webpo_experimental")?new WU(e):eha(e),h=NUa(d.experiments),l=new Wq({ys:e,onEvent:c,onError:b,aA:f,Gz:h,IR:function(){a.api.ma("itr",{})}});
            a.j=l;g.M(a,l)}catch(m){m instanceof Error&&g.kE(m)}};
    X_a=function(a){var b=a.api.U();a.Qb.gj("pot_ist");var c;(c=a.j)==null||c.start();a.L("html5_bandaid_attach_content_po_token")||(YU(a),V_a(a),b=g.hI(b.experiments,"html5_session_po_token_interval_time_ms")||0,b>0&&(a.G=g.zA(function(){YU(a)},b)),a.D=!0)};
    YU=function(a){var b,c,d,e;g.G(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.gA("EOM_VISITOR_DATA")||g.gA("VISITOR_DATA");d=b.Vl?b.datasyncId:c;e=TQ(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Vf=$_a(a,e);g.Aa(f)})};
    $_a=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Qb.gj(c?"pot_cms":"pot_csms");var d=a.j.VF({Dt:b,Cz:{cX:b,C$:150,r7:!0,oea:!0}});a.Qb.gj(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.sT(a.api.app))==null?void 0:f.ya;h&&h.gB(!1)}}return d}catch(l){return g.kE(l),""}};
    V_a=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new sK),a.j.ready().then(function(){a.Qb.gj("pot_if");YU(a)}))};
    a0a=function(a){PT.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.IJ(a);g.M(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
        b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
        kT(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
        kT(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
    ZU=function(a){g.I.call(this);this.features=[];var b=this.j,c=new QZa(a),d=new QT(a),e=new lU(a),f=new XU(a);var h=g.qI(a.U())?void 0:new cU(a);var l=new kU(a),m=new M_a(a),n=new U_a(a),p=new gU(a);var q=g.qI(a.U())?new a0a(a):void 0;var r=a.L("html5_enable_ssap")?new E_a(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new xZa(a):void 0;var u=new fU(a);var w=a.L("enable_courses_player_overlay_purchase")?new NZa(a):void 0;
        var A=g.BR(a.U())?new JZa(a):void 0;var C=new AZa(a);var E=a.U().D?new BZa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().Yd?new pZa(a):void 0;var L=g.BR(a.U())?new hU(a):void 0;var N=a.L("web_enable_speedmaster")&&g.BR(a.U())?new IU(a):void 0;var Q=a.U().Jk?void 0:new T_a(a);var da=a.L("report_pml_debug_signal")?new kZa(a):void 0;var na=new $Za(a),qa=new f_a(a);var ha=a.L("enable_web_player_player_in_bar_feature")&&g.NF(a.U())?new h_a(a):void 0;var ta=a.U().playerStyle==="flix"?new PZa(a):
            void 0;var P=navigator.mediaSession&&window.MediaMetadata&&a.U().Ij?new iU(a):void 0;var ua=a.L("html5_enable_drc")&&!a.U().K?new bU(a):void 0;var y=new eZa(a);var Z=a.U();var cb=Z.K&&((cb=Z.getWebPlayerContextConfig())==null?void 0:cb.houseBrandEnvironment)==="apps-elements"?new OZa(a):void 0;Z=g.BR(a.U())?new t_a(a):void 0;var La=a.L("html5_enable_d6de4")?new e_a(a):void 0;var $a=g.BR(a.U())&&a.L("web_sleep_timer")?new BU(a):void 0;var Ya=g.kR(a.U())?new EZa(a):void 0;a=a.L("html5_enable_audio_track_stickiness")?
            new u_a(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L,N,Q,da,na,qa,ha,ta,P,ua,y,cb,Z,La,$a,Ya,void 0,a)};
    $U=function(){this.B=this.j=NaN};
    b0a=function(a,b){this.X=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new $U;this.j=b||null;this.C=!1};
    c0a=function(a,b,c){var d=g.pR(b.Da)&&!b.Da.K;if(b.Da.Pl&&(mR(b.Da)||b.Da.Ma==="shortspage"||HR(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.gA("TIMING_ACTION")||fA("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&fA("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.j){d=a.j.Fi();for(var e=g.v(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,EG(f,d[f],a.timerName);d=g.kA(sAa)(a.j.aJ);g.FG(d,a.timerName);d=a.j;d.B={};d.aJ={}}g.FG({playerInfo:{visibilityState:g.kA(oAa)()},playerType:"LATENCY_PLAYER_HTML5"},
        a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(HG("_start",a.timerName)?c=g.kA(BG)("_start",a.timerName)+a.B:g.kE(new g.CB("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!HG("pbs",a.timerName)&&a.tick("pbs",c)}};
    d0a=function(a,b,c,d,e,f){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.ra){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.bJ;var h={};if(d==null?0:d.G)h.cttAuthInfo={token:d.G,videoId:d.videoId};e&&(h.startTime=e);GG(a,h);var l,m,n;d={targetVideoId:(l=d==null?void 0:d.videoId)!=null?l:"empty_video",targetCpn:b,adVideoId:(m=f==null?void 0:f.videoId)!=null?m:"empty_video",adClientPlaybackNonce:(n=c==null?void 0:c.cpn)!=null?n:f==null?void 0:f.clientPlaybackNonce};
        c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.FG(d,a);EG("pbs",(0,g.fC)(),a)}};
    aV=function(a){DAa();CAa();a.timerName=""};
    e0a=function(a){if(a.j){var b=a.j;b.B={};b.aJ={}}a.C=!1;a.G=void 0;a.B=NaN};
    f0a=function(a,b){g.DE.call(this);this.Da=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=mA(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
        b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new ZR("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.wWa(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.v(a);for(c=a.next();!c.done;c=a.next())(c=
        c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=UR(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
    g0a=function(a){return!!(a.playlist||a.list||a.api)};
    h0a=function(a){var b=a.index+1;return b>=a.length?0:b};
    i0a=function(a){var b=a.index-1;return b<0?a.length-1:b};
    g.bV=function(a,b,c,d){b=b!==void 0?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.pS(a.Da,b),g.M(a,e),e.xn=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
    j0a=function(a,b){a.index=g.ze(b,0,a.length-1);a.startSeconds=0};
    k0a=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.bV(a);a.items=[];for(var d=g.v(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()}};
    n0a=function(a,b){var c,d,e,f,h,l,m;return g.G(function(n){if(n.j==1){c=g.YG();var p=a.U(),q={context:g.iT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?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 u,w,A,C,E,H;r=((H=g.V((u=r)==null?void 0:(w=u.embedPreview)==null?void 0:(A=w.thumbnailPreviewRenderer)==null?void 0:(C=A.playButton)==null?void 0:(E=C.buttonRenderer)==null?void 0:E.navigationEndpoint,g.AS))==null?void 0:H.videoId)||null}else r=null}u=(u=r)?u:void 0;w=a.playlistId?a.playlistId:b.list;A=b.listType;if(w){var L;A==="user_uploads"?L={username:w}:L={playlistId:w};l0a(p,u,b,L);q.playlistRequest=
        L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},l0a(p,u,b,L),q.playlistRequest=L):u&&(L={videoId:u},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.XF(m0a);g.Ba(n,2);return g.z(n,g.LG(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ea=Fra(b,g.kR(h)),h.C=h.Ea==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&CO(l.trackingParams)),n.return(new g.pS(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.jE(m);return n.return(a)})};
    l0a=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
    g.dV=function(a,b){cV.get(a);cV.set(a,b)};
    g.eV=function(a){g.DE.call(this);this.loaded=!1;this.player=a};
    o0a=function(){this.B=[];this.j=[]};
    g.fV=function(a,b){return b?a.j.concat(a.B):a.j};
    g.gV=function(a,b){switch(b.kind){case "asr":p0a(b,a.B);break;default:p0a(b,a.j)}};
    p0a=function(a,b){g.Cb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
    g.hV=function(a){g.I.call(this);this.X=a;this.B=new o0a;this.D=[];this.N=[]};
    g.iV=function(a,b,c){g.hV.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.D=b.Lv;this.N=b.dD;this.C=g.ZS(b)};
    q0a=function(){this.jj=!1};
    r0a=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.kF===void 0?!1:b.kF;var c=new q0a;c.jj=a||b;return c};
    g.s0a=function(a){this.Da=a;this.N=new q0a;this.Qy=this.Oy=!1;this.Ap=2;this.Ca=20971520;this.gb=8388608;this.ra=120;this.Fd=62914560;this.eq=g.hI(this.Da.experiments,"html5_min_readbehind_secs");this.CD=g.hI(this.Da.experiments,"html5_min_readbehind_cap_secs");this.Ik=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.tb=NaN;this.Iv=this.Sl=this.gw=2;this.Nk=jV(this,"html5_request_size_min_kb",64)*1024;this.La=2097152;this.nz=jV(this,"html5_bypass_contention_secs");this.Hv=
        1048576;this.Yl=!1;this.Jk=jV(this,"html5_repredict_interval_ms",1800);this.yD=jV(this,"html5_head_miss_secs",5);this.ED=jV(this,"html5_min_upgrade_health_secs",10);this.Ab=15;this.Jg=1;this.Z=1.15;this.Y=1.05;this.Ul=1;this.DD=jV(this,"html5_min_seconds_between_format_selections",8);this.xD=jV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Rs=SQ;this.Aj=this.Xd=!1;this.Dj=6;this.B=!1;this.Ij=g.hI(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.Ry=g.hI(this.Da.experiments,
        "html5_post_interrupt_readahead");this.lz=this.Da.L("html5_allow_onesie_for_ssap");this.Zz=this.Da.L("html5_disable_classic_alr");this.Ev=g.hI(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Zv=100;this.uj=10;this.GD=6;this.Wv=jV(this,"html5_ssdai_failure_retry_limit",3);this.Xl=this.Da.experiments.fb("html5_clone_original_for_fallback_location");this.sj=!1;this.Dc=g.hI(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Sk=g.hI(this.Da.experiments,
        "html5_subsegment_readahead_timeout_secs");this.TC=g.hI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Rk=g.hI(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.WC=g.hI(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.Yv=g.hI(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.YC=g.hI(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.ao=jV(this,"html5_hopeless_secs",
        15);this.xp=1;this.He=!1;this.WH=this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");this.zD=g.hI(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.LD=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.AF=this.Da.L("html5_prefer_server_bwe3");this.bD=this.Da.L("html5_last_slice_transition");this.PC=this.Da.L("html5_store_xhr_headers_readable");this.Uv=this.Tf=this.dk=!1;this.zp=g.hI(this.Da.experiments,"html5_max_drift_per_track_secs");this.fq=this.Da.L("html5_no_placeholder_rollbacks");
        this.RC=this.Da.L("html5_subsegment_readahead_enable_mffa");this.Rf=this.Da.L("html5_allow_video_keyframe_without_audio");this.KD=this.Da.L("html5_enable_vp9_fairplay");this.Jb=!0;this.Qf=this.Va=this.Zc=!1;this.yn=!0;this.Jv=!1;this.D="";this.iB=1048576;this.uf=[];this.SB=this.Da.L("html5_woffle_resume");this.Ql=this.Da.L("html5_abs_buffer_health");this.XC=this.Da.L("html5_interruption_resets_seeked_time");this.AD=g.hI(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ma=
            !1;this.qp=this.Da.L("html5_explicitly_dispose_xhr");this.Fv=!1;this.Tl=!this.Da.L("html5_encourage_array_coalescing");this.Wl=!1;this.UH=this.Da.L("html5_restart_on_unexpected_detach");this.qj=0;this.Kb="";this.QC=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.jz=this.Da.L("html5_abort_before_separate_init");this.YH=yra();this.NC=this.Da.L("html5_serialize_server_stitched_ad_request");this.oz=this.Da.L("html5_skip_buffer_check_seek_to_head");
        this.kf=!1;this.Rl=this.Da.L("html5_attach_po_token_to_bandaid");this.Mp=g.hI(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.Pk=this.Da.L("html5_rewrite_timestamps_for_webm");this.Ob=this.Da.L("html5_only_media_duration_for_discontinuities");this.JH=g.hI(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.aD=this.Da.L("html5_onesie_premieres");this.GB=this.Da.L("html5_drop_onesie_for_live_mode_mismatch");this.HD=g.hI(this.Da.experiments,
            "html5_onesie_live_ttl_secs")||8;this.tq=g.hI(this.Da.experiments,"html5_attach_num_random_bytes_to_bandaid");this.JD=g.hI(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.wh=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.VH=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.QA=this.Da.L("html5_disable_ssap_append_pause");this.xn=this.Da.L("html5_init_source_buffer_after_metadata");this.SC=this.Da.L("html5_gapless_fallback_on_append_error");this.cw=!1;
        this.Ea=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.cD=this.Da.L("html5_use_post_for_media");this.Qc=this.Da.L("html5_use_live_ump_heartbeat");this.ew=this.Da.L("html5_use_sps_ump_part");this.VC=this.Da.L("html5_handle_sps_status");this.Qi=this.Da.L("html5_enable_sps_non_fatal_logs");this.MC=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.eb=this.Fa=!1;this.FE=this.Da.Uf;this.JG=this.Da.L("html5_reset_primary_stats_on_redirector_failure");
        this.JF=this.Da.L("html5_remap_to_original_host_when_redirected");this.Zl=this.zi=this.C=this.Bn=!1;this.xi=this.Da.L("html5_enable_sabr_format_selection");this.zn=this.Da.L("html5_sabr_support_quality_constraints");this.TF=this.Da.L("html5_sabr_remove_all_quality_constraints");this.pz=this.Da.L("html5_iterative_seeking_buffered_time");this.Pl=this.Da.L("html5_use_network_error_code_enums");this.uA=this.Da.L("html5_disable_overlapping_requests");this.G=!1;this.enableServerDrivenRequestCancellation=
            this.Da.L("html5_enable_server_driven_request_cancellation");this.XH=this.Da.L("html5_enable_sabr_request_timing");this.mp=this.Da.L("html5_enable_server_format_filter");this.sB=this.Da.L("html5_drc_edit_sync_workaround");this.VB=this.Da.L("html5_enable_lawnmower");this.BC=this.Da.L("html5_enable_lawnmower_messaging");this.Vf=this.Da.wc()?g.hI(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.ZC=g.hI(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.iq=g.hI(this.Da.experiments,
            "html5_normal_latency_mffa_ms")||NaN;this.FD=g.hI(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.iq;this.wD=this.Da.L("html5_live_defrag_only_h264_playbacks");this.dD=this.Da.L("html5_live_defrag_only_h264_formats");this.BF=this.Da.L("html5_record_now");this.Sf=!1;this.lm=g.hI(this.Da.experiments,"html5_drm_byterate_soft_cap");this.vn=g.hI(this.Da.experiments,"html5_drm_live_byterate_soft_cap");this.vp=this.Gv=!1;this.Za=this.Da.L("html5_sabr_log_request_creation");this.Tb=this.Da.L("html5_sabr_report_request_cancellation_info");
        this.Uf=this.zv=this.Xv=!1;this.Vv=this.Da.L("html5_spoof_4k");this.Vp=jV(this,"html5_min_media_duration_for_cabr_slice");this.BD=this.Tl?0:jV(this,"html5_min_media_duration_for_append_prop");this.bG=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Dd=!0;this.zz=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.RA=this.Da.L("html5_disable_urgent_adaptation");this.mz=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.Mv=this.Da.L("html5_send_video_playback_ustreamer_config");
        this.yp=jV(this,"html5_max_discontinuity_rewrite_count");this.tp=jV(this,"html5_fixed_media_duration_for_request");this.Lv=this.Da.L("html5_sabr_use_init_selected_audio");this.Vl=this.Da.L("html5_use_init_selected_audio");this.Sa=!1;this.jf=jV(this,"html5_sabr_request_limit_per_period");this.pp=this.Bq=this.K=this.Kv=!1;this.Cc=this.Da.L("html5_sabr_live_partial_segment");this.Yd=this.Da.L("html5_sabr_dispose_media_objects");this.jm=!1;this.yj=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");
        this.wp=this.Da.L("html5_log_post_size");this.Sy=this.Bj=!1;this.IC=this.Da.L("html5_enable_d6de4");this.kz=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.eD=this.Da.L("html5_ssap_keep_only_ssap_eos_check");this.Da.L("html5_high_res_seek_logging");this.rb=this.Da.L("html5_update_buffer_timeline_until_update_end");this.Bb=!1;this.OC=this.Da.L("html5_enable_ssap_multi_audio_format_filtering");this.An=this.Da.L("html5_enable_sabr_s4n_debug_info");this.JC=this.Da.L("html5_enable_po_token_live_caption");
        this.dw=this.Wa=!1};
    t0a=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.Oy&&(a.Ca=36700160,a.gb=5242880,a.La=Math.max(4194304,a.La),a.Oy=!0);b.video.j>2160&&!a.Qy&&(a.Ca=104857600,a.tb=13107200,a.Qy=!0);g.hI(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.RA()&&g.PA("samsung")&&(g.PA("kant")||g.PA("muse"))&&(a.tb=g.hI(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.RA()&&g.PA("kant")&&(a.tb=1310720);a.lm!==0&&b.isEncrypted()&&(a.tb=a.lm);a.vn!==0&&b.isEncrypted()&&
    c&&(a.tb=a.vn);b.tb&&(a.Hv=Math.max(a.Nk,Math.min(a.La,5*b.tb)))};
    kV=function(a){return a.C&&a.xi};
    lV=function(a){return a.C&&a.zi&&a.playbackStartPolicy};
    u0a=function(a,b,c,d){a.zi&&(a.playbackStartPolicy=b,a.ND=c,a.MD=d)};
    jV=function(a,b,c){return g.hI(a.Da.experiments,b)||(c===void 0?0:c)};
    g.v0a=function(a,b){return XJ(a.info.mimeType)?b?a.info.itag===b:!0:!1};
    g.w0a=function(a,b){if(a.j!=null&&g.qI(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.dc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.v0a(c,"386")});
        a=!!a.j&&!a.j.isManifestless&&PTa(a.j);return b||a};
    g.mV=function(a,b,c,d,e,f){g.hV.call(this,a);this.videoId=c;this.iZ=e;this.eventId=f;this.G={};this.j=null;a=d||g.pA(b).hl||"";a=a.split("_").join("-");this.C=qA(b,{hl:a})};
    pV=function(a,b){var c=this;this.currentState=0;this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){nV(c,d)},function(d){oV(c,d)})};
    qV=function(a){return new pV(1,{result:a})};
    rV=function(a){return new pV(0,{promise:a})};
    sV=function(a,b){return a.pj(void 0,b)};
    x0a=function(a){try{var b=a();return(a=b&&typeof b==="object")&&"andThen"in b?b:a&&"then"in b?rV(b):qV(b)}catch(c){return new pV(2,{error:c})}};
    nV=function(a,b){if(b&&typeof b==="object"){if("then"in b){b.then(function(d){nV(a,d)},function(d){oV(a,d)});
        return}if("andThen"in b){b.pj(function(d){nV(a,d)},function(d){oV(a,d)});
        return}}a.currentState=1;a.result=b;b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)};
    oV=function(a,b){a.currentState=2;a.error=b;var c=a.onFailure;a.onSuccess=[];a.onFailure=[];a=g.v(c);for(c=a.next();!c.done;c=a.next())c=c.value,c(b)};
    y0a=function(a,b,c){for(var d=new pV(2,{error:"empty"}),e=[],f={CA:0};f.CA<a.length&&d.currentState!==1;f={Iw:void 0,CA:f.CA},f.CA++)f.Iw=a[f.CA],f.Iw.condition()&&(d=sV(sV(d,function(h){return function(){if(!h.Iw.condition())throw"condition failed";var l=h.Iw.func();return b===void 0||b===null?l:l.pj(function(m){if(!b(m))throw"verification failed";return m})}}(f)),function(h){return function(l){if(l!=="empty"&&l!=="condition failed"&&l!=="verification failed"&&l!=="error"){if(h.Iw.onFailure)h.Iw.onFailure(l);
        c&&c(h.CA,h.Iw,l);e.push(l)}throw"error";}}(f)));
        return sV(d,function(){throw e;})};
    z0a=function(a,b){return{yz:a.yz&&b.yz,Md:a.Md&&b.Md,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
    tV=function(a,b){var c=A0a;this.path=a;this.C=b;this.D=c;this.capabilities={yz:!!this.C,Md:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly}};
    D0a=function(a){var b=B0a;return b.instantiate(a?z0a(b.capabilities,a):b.capabilities,new C0a)};
    E0a=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=qV(c);
        return c}).then(void 0,function(c){g.kE(Error("wasm module fetch failure",{cause:c}));
        a.B=void 0;throw c;});
        a.B=rV(b);return a.B};
    F0a=function(a,b){if(!b.Md)return new pV(2,{error:Error("wasm unavailable")});if(a.j)return a.j;a.j=a.compile(b).pj(function(c){a.j=qV(c);return c},function(c){g.kE(Error("wasm module compile failure",{cause:c}));
        a.j=void 0;throw c;});
        return a.j};
    G0a=function(){};
    H0a=function(){};
    C0a=function(){this.env=new G0a;this.wasi_snapshot_preview1=new H0a};
    A0a=function(a,b){b._initialize();a=Math.floor(Math.random()*256);var c=Math.floor(Math.random()*256),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==c*16%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;f<16;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{d!==0&&b.free(d)}};
    uV=function(a,b){this.instance=a;this.Zp=b;this.exports=this.instance.exports};
    J0a=function(a,b,c){c=c===void 0?!1:c;var d=vV.Js();return I0a(a,b,{yz:c,Md:!0,sync:!0,streaming:!0}).pj(function(e){vV.Ar(e.Zp?"winitjs":"winit",d);return e})};
    I0a=function(a,b,c){B0a||(B0a=new tV(a,b));return D0a(c).pj(function(d){return new uV(d.instance,d.Zp)})};
    K0a=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.aJ={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.IJ(this);this.rd={zqb:function(){return c.j}};
        this.Ge=new Map;g.M(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
    g.wV=function(a){return a.Ge.get("captions")};
    Q0a=function(a,b){switch(b){case "ad":return L0a(a);case "annotations_module":return a.J.hd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.tU||a.controlsType==="3"?!1:a.La.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Va||!!g.XS(b)||!!g.eYa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return M0a(a);case "embed":return g.kR(a.J.U());case "endscreen":return g.N0a(a);case "heartbeat":return a.tT();case "inline_preview":return a.J.U().showInlinePreviewUi;
        case "kids":return vR(a.J.U());case "remote":return a.J.U().Dj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().yj;case "captions":return O0a(a);case "unplugged":return g.qR(a.J.U());case "ux":return a.J.U().eb;case "webgl":return P0a(a);case "ypc":return a.pH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.zi&&!a.LD;case "yto":return!!a.J.getVideoData().Ea.includes("yto");default:return g.jE(Error("Module descriptor "+b+" does not match")),!1}};
    xV=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Ge.get(b);if(!h||d)if(e||(e=function(){xV(a,b,c,d)}),f||(f=function(){a.J.Eg(b)}),h=h||R0a(a,b,Q0a(a,b),e,f))a.Ge.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Xm("onApiChange")};
    T0a=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.G(function(l){if(l.j==1)return(c=a.Ge.get("asmjs"))&&!b?l.return(c):(d=cV.get("asmjs"))!=null?(e=d,l.Ia(2)):g.z(l,new Promise(function(m,n){S0a(a,"asmjs",function(){var p=cV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
        l.j!=2&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ge.set("asmjs",h);h.create();return l.return(h)})};
    W0a=function(a){U0a(a)&&a.MO();V0a(a)&&(xV(a,"captions",!0),xV(a,"endscreen"),a.XI(),xV(a,"creatorendscreen",!0))};
    V0a=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};
    U0a=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Eb(a.Ea,"ad")||TXa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=b==null?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=(e=d.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=f)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var h=e=void 0;f=Number((e=f)==null?void 0:(h=
        e.adTimeOffset)==null?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number(((e=d.renderer)==null?void 0:(h=e.adBreakServiceRenderer)==null?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=a*1E3}a=b?!1:!0}b=a}return b};
    O0a=function(a){var b=a.J.getVideoData();return!!b.jf||!!b.captionTracks.length||g.w0a(b,a.J)};
    g.N0a=function(a){var b=a.J.U();if(b.C||HR(b)||b.K||!b.Dd&&!b.Jg)return!1;var c=a.J.getPresentingPlayerType();if(c===2)return!1;if(c===3)return b.L("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
    g.DT=function(a){return a.Ge.get("webgl")};
    P0a=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.xra(),d=a.L("enable_spherical_kabuki"),e=g.FR(a);if(g.VS(b))return c||d||e;if(g.TS(b))return e||c||d;if(g.US(b))return e||c||!1;if(g.JS(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.LS(b)&&!c&&a.L("enable_webgl_noop")};
    L0a=function(a){if(a.J.U().C)return!1;a=a.J.getVideoData(1);var b=a.getPlayerResponse();if(b){var c=b.adPlacements;if(c)for(var d=0;d<c.length;d++)if(c[d].adPlacementRenderer)return!0;if(b.adSlots)return!0}return g.dT(a)?!0:!1};
    M0a=function(a){if(a.J.hd())return!1;a=a.J;var b=a.U();if(b.C||b.controlsType==="3")return!1;if(b.playerStyle==="creator-endscreen-editor")return!0;a=a.getVideoData();return!!a&&(!!g.cYa(a)||!!g.dYa(a))};
    R0a=function(a,b,c,d,e){try{if(c){var f=cV.get(b);if(f)return new f(a.J);S0a(a,b,d,e)}else a.J.Eg(b)}catch(h){a.J.Eg(b),g.jE(h)}return null};
    yV=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.v(X0a),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ge.get(e);f&&(c||f.fn(b))&&(g.ub(f),a.Ge.delete(e))}else for(d=g.v(a.Ge),e=d.next();!e.done;e=d.next())f=g.v(e.value),e=f.next().value,(f=f.next().value)&&(c||f.fn(b))&&(g.ub(f),a.Ge.delete(e))};
    zV=function(a){return a.Ge.get("ad")};
    Y0a=function(a){if(vR(a.J.U()))return a.Ge.get("kids")};
    BT=function(a){if(a.J.U().Dj)return a.Ge.get("remote")};
    g.AV=function(a){if(g.qR(a.J.U()))return a.Ge.get("unplugged")};
    PYa=function(a){if(a.J.U().eb)return a.Ge.get("ux")};
    BV=function(a){if(a.J.U().yj)return a.Ge.get("offline")};
    g.CV=function(a){return a.Ge.get("annotations_module")};
    Z0a=function(a){return a.Ge.get("creatorendscreen")};
    a1a=function(a,b){var c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return J0a(c,function(d){var e=a.Ge.get("asmjs");return e?Promise.resolve(e.qZ(d)):$0a(a).then(function(f){return f.qZ(d)})},b)};
    $0a=function(a){var b,c;return g.G(function(d){if(d.j==1)return g.z(d,T0a(a),2);c=b=d.B;return d.return(c)})};
    S0a=function(a,b,c,d){if(a.j){var e=b1a[b];c1a(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
    c1a=function(a,b,c,d){function e(){a.Na()||d.call(a)}
        function f(){a.Na()||c.call(a)}
        for(var h=g.nf("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.yf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(w){Of(f);q&&q.apply(window,[w])};
        var r=m.onerror;m.onerror=function(w){if(Math.random()<.01){var A=new g.CB("Unable to load player module",b,document.location&&document.location.origin);g.jE(A)}Of(e);r&&r(w)};
        var t=m,u=t.onreadystatechange;t.onreadystatechange=function(w){switch(t.readyState){case "loaded":case "complete":Of(f)}u&&u(w)};
        l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.We(m,g.Rma(b)),h=g.nf("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
    d1a=function(a,b,c,d,e){g.DE.call(this);var f=this;this.target=a;this.LI=b;this.B=0;this.K=!1;this.D=new g.Ee(NaN,NaN);this.j=new g.IJ(this);this.Ca=this.C=this.N=null;g.M(this,this.j);b=d||e?4E3:3E3;this.Y=new g.Av(function(){DV(f,1,!1)},b,this);
        g.M(this,this.Y);this.qa=new g.Av(function(){DV(f,2,!1)},b,this);
        g.M(this,this.qa);this.ra=new g.Av(function(){DV(f,512,!1)},b,this);
        g.M(this,this.ra);this.Fa=3E3;d||(this.C=this.j.T(a,"mouseover",this.Fx),this.j.T(a,"mousemove",this.e6),this.j.T(a,"mouseleave",this.R$));Ks?this.j.T(a,"keypress",this.k$):this.j.T(a,"focusin",this.w8);this.G=this.j.T(a,"mousedown",this.QV);this.Z=this.j.T(a,"touchstart",this.RV,void 0,!0);DV(this,640,!0)};
    e1a=function(a){DV(a,4,!1);a.N&&(a.j.Pc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Fx));a.C&&(a.j.Pc(a.C),a.C=a.j.T(a.target,"mouseover",a.Fx))};
    DV=function(a,b,c){a.Na();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.Bv(a.ra,a.Fa);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
    g.FV=function(a){g.W.call(this,{I:"button",Ka:["ytp-large-play-button","ytp-button"],W:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ta);this.T(a,"basechromeinitialized",this.Sea);a=this.api.U();a.Z&&EV&&(this.listen("click",this.n9,this),this.listen("touchstart",this.bda,this));g.pR(a)&&g.Hv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Ta()};
    g.GV=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.Ga("ytp-cued-thumbnail-overlay");c=new g.FV(a);g.M(this,c);c.Ja(b);this.D=new g.IJ(this);g.M(this,this.D);this.api=a;this.G=this.Ga("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.oF(this,250);g.M(this,this.B);this.j=new g.Av(this.Ta,
        0,this);g.M(this,this.j);this.Ta();this.T(a,"appresize",this.kc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.Hca);mR(a.U())&&this.T(a,"videoplayerreset",this.onReset)};
    f1a=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.vF(a,64)&&g.vF(a,1);return b===0&&a};
    g.HV=function(a){g.W.call(this,{I:"div",Ka:["ytp-error"],W:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",W:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
                V:[{I:"div",S:"ytp-error-content-wrap-reason",va:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",va:"{{subreason}}"}]}]}]});this.api=a;this.keys=[];this.C=!1;a.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Hb)};
    g.IV=function(a){a=a.split(g1a);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",W:{href:a[c],target:a[c+1]},va:a[c+2]})}return{I:"span",V:b}};
    KV=function(a,b,c,d,e,f,h){d=d===void 0?!1:d;e=e===void 0?!1:e;h=h===void 0?!0:h;e||(e=a.api.U().D);var l=a.api.getVideoData();b=g.UI(g.JV[b]||"",d?{CPN:l.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",va:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",W:{href:c,target:e?"_blank":null},S:"ytp-error-link",va:b[2]});a.C=!0;d.push(b[4]);return{I:"span",V:d}};
    h1a=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
    i1a=function(a){for(var b=0;b<a.keys.length;b++)a.Pc(a.keys[b]);a.keys=[]};
    j1a=function(a){g.W.call(this,{I:"div",S:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.innertubeCommand=this.Ee=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.DR(b)?(this.B=new g.W({I:"a",S:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},V:[{I:"div",S:"ytp-paid-content-overlay-icon",va:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",va:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",
            va:"{{chevron}}"}]}),this.T(this.B.element,"click",this.onClick)):this.B=new g.W({I:"div",Ka:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.D=new g.oF(this.B,250,!1,100);g.M(this,this.B);this.B.Ja(this.element);g.M(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.i6)};
    l1a=function(a,b){var c=QXa(b),d=RXa(b);b.zi&&a.J.Yn()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Dv(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&k1a(a,d,c,b)):c&&d&&k1a(a,d,c,b))};
    k1a=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Av(a.Mb,b,a);g.M(a,a.j);d=PXa(d);b=d==null?void 0:d.navigationEndpoint;var e;d=d==null?void 0:(e=d.icon)==null?void 0:e.iconType;var f;e=(f=g.V(b,g.aF))==null?void 0:f.url;a.J.setTrackingParams(a.element,(b==null?void 0:b.clickTrackingParams)||null);b&&!e?(a.innertubeCommand=b,e="#!"):a.innertubeCommand=null;var h;a.B.update({href:(h=e)!=null?h:"#",text:c,icon:d==="MONEY_HAND"?{I:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
            V:[{I:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
                    fill:"white"}}]}:null,chevron:e||a.innertubeCommand?g.RE():null})};
    m1a=function(a,b){a.j&&(g.vF(b,8)&&a.C?(a.C=!1,a.wd(),a.j.start()):(g.vF(b,2)||g.vF(b,64))&&a.videoId&&(a.videoId=null))};
    LV=function(a){g.W.call(this,{I:"div",S:"ytp-spinner",V:[tZa(),{I:"div",S:"ytp-spinner-message",va:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ga("ytp-spinner-message");this.j=new g.Av(this.show,500,this);g.M(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Hc(a.getPlayerStateObject())};
    MV=function(a){var b=[{I:"div",Ka:["ytp-unmute-icon"],V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
        {I:"div",Ka:["ytp-unmute-text"],va:"Tap to unmute"}];b.push({I:"div",Ka:["ytp-unmute-box"],V:[]});g.JT.call(this,a,{I:"button",Ka:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{I:"div",S:"ytp-unmute-inner",V:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.createClientVe(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.Bk);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
        !g.kR(this.api.U());g.KE(this,a);a&&n1a(this);this.C=a};
    n1a=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
    g.NV=function(a){g.IJ.call(this);var b=this;this.api=a;this.dR=!1;this.qo=null;this.KO=!1;this.yg=null;this.LO=this.vM=!1;this.ZT=this.aU=null;this.JZ=NaN;this.XT=this.qE=!1;this.aG=0;this.NN=[];this.kS=!1;this.kK={height:0,width:0};this.U1=480;this.jfa=["ytp-player-content","html5-endscreen","ytp-overlay"];this.RK={DA:!1};var c=a.U(),d=a.ob();this.kK=a.getPlayerSize();this.TW=new g.Av(this.uR,0,this);g.M(this,this.TW);this.Jn=new g.GV(a);g.M(this,this.Jn);g.FT(a,this.Jn.element,4);if(o1a(this)){var e=
        new LV(a);g.M(this,e);e=e.element;g.FT(a,e,4)}var f=a.getVideoData();this.Kg=new d1a(d,function(l){return b.LI(l)},f,c.Ql,!1);
        g.M(this,this.Kg);this.Kg.subscribe("autohideupdate",this.uB,this);if(!c.disablePaidContentOverlay){var h=new j1a(a);g.M(this,h);g.FT(a,h.element,4)}this.dU=new MV(a);g.M(this,this.dU);g.FT(this.api,this.dU.element,2);this.kQ=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.sM=new g.Av(this.Ms,200,this);g.M(this,this.sM);this.HF=f.videoId;this.j1=new g.Av(function(){b.aG=0},350);
        g.M(this,this.j1);this.hJ=new g.Av(function(){b.XT||p1a(b)},350,this);
        g.M(this,this.hJ);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Hv(f,"ytp-color-white")}this.T(a,"appresize",this.kc);this.T(a,"presentingplayerstatechange",this.Bk);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.uba);this.T(a,"autonavvisibility",function(){b.Pq()});
        this.T(a,"sizestylechange",function(){b.Pq()});
        this.T(d,"click",this.Sba,this);this.T(d,"dblclick",this.Tba,this);this.T(d,"mousedown",this.Wba,this);c.Ab&&(this.T(d,"gesturechange",this.Uba,this),this.T(d,"gestureend",this.Vba,this));this.YF=[d.Pz];this.Jn&&this.YF.push(this.Jn.element);e&&this.YF.push(e)};
    q1a=function(a,b){if(!b)return!1;var c=a.api.Ke();if(c.Tv()&&(c=c.Ib())&&g.Jf(c,b))return c.controls;for(c=0;c<a.YF.length;c++)if(g.Jf(a.YF[c],b))return!1;c=g.v(a.jfa);for(var d=c.next();!d.done;d=c.next())if(g.Gv(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
    r1a=function(a){var b=a.api.getPresentingPlayerType()===2&&(a.api.ob().gK||!1)&&a.api.U().B&&EV&&tS>=11;a=a.api.U().Z&&EV;return!(!b&&!a)};
    OV=function(a,b){return!a.api.isInline()&&!q1a(a,nB(b))&&g.GF(b)};
    p1a=function(a){a.Kg.xv();if(a.vM&&a.LO)a.LO=!1;else if(!a.api.U().Sa&&!a.xr()){var b=a.api.getPlayerStateObject();g.vF(b,2)&&g.zT(a.api)||a.qH(b);!a.api.U().Ab||b.isCued()||g.vF(b,1024)?a.Ms():a.sM.isActive()?(a.lQ(),a.sM.stop()):a.sM.start()}};
    s1a=function(a,b){var c;if((c=a.api.getVideoData())==null?0:c.mutedAutoplay){var d,e;if((d=b.target)==null?0:(e=d.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.GF(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.vF(b,4)||g.vF(b,8)||g.vF(b,2)||a.Ms(),!0):!1};
    t1a=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
    o1a=function(a){a=QA()&&sra()>=67&&!a.api.U().Z;return!g.PA("tizen")&&!iR&&!a&&!0};
    PV=function(a,b){b=b===void 0?2:b;g.DE.call(this);this.api=a;this.j=null;this.Id=new pB(this);g.M(this,this.Id);this.B=xza;this.Id.T(this.api,"presentingplayerstatechange",this.j6);this.j=this.Id.T(this.api,"progresssync",this.Tc);this.Zo=b;this.Zo===1&&this.Tc()};
    g.QV=function(a){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",va:"{{title}}"}]},{I:"div",S:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.B=new g.Av(this.show,10,this);this.j=new g.Av(this.hide,500,this);g.M(this,this.B);g.M(this,this.j);this.hide()};
    SV=function(a,b,c){if(b<=0){c=Nya();b="muted";var d=0}else c=c?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
                fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";RV(a,c,b,d+"%")};
    u1a=function(a,b){b=b?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:xya();var c=a.J.getPlaybackRate(),d=g.UI("Speed is $RATE",{RATE:String(c)});RV(a,b,d,c+"x")};
    v1a=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";RV(a,sZa(),b)};
    RV=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.Dv(a.j);a.B.start();a.updateValue("title",d);g.Lv(a.element,"ytp-bezel-text-hide",!d)};
    w1a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.kR(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")?Aya():{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
                {I:"div",S:"ytp-cards-button-title",va:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
                            "fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
                S:"ytp-cards-button-title",va:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.oF(this,250,!0,100);g.M(this,this.B);g.Lv(this.C,"ytp-show-cards-title",g.kR(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Qaa);this.mH(!0)};
    x1a=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",W:{"aria-label":"Show cards","aria-haspopup":"true"},V:[Aya()]},{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},V:[g.SE()]}]:[{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var c=this;this.J=a;this.Yg=
        b;this.D=new g.oF(this,250,!1,250);this.j=null;this.N=new g.Av(this.eba,300,this);this.K=new g.Av(this.dba,2E3,this);this.G=[];this.B=null;this.Y=new g.Av(function(){c.element.style.margin="0"},250);
        this.onClickCommand=this.C=null;g.M(this,this.D);g.M(this,this.N);g.M(this,this.K);g.M(this,this.Y);a.U().L("player_new_info_card_format")?(g.Hv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ga("ytp-cards-teaser-close-button"),"click",this.k6),this.T(this.Ga("ytp-cards-teaser-info-icon"),"click",this.NT),this.T(this.Ga("ytp-cards-teaser-label"),"click",this.NT)):this.listen("click",this.NT);this.T(b.element,"mouseover",this.TV);this.T(b.element,"mouseout",this.SV);this.T(a,"cardsteasershow",
            this.rca);this.T(a,"cardsteaserhide",this.Mb);this.T(a,"cardstatechange",this.U2);this.T(a,"presentingplayerstatechange",this.U2);this.T(a,"appresize",this.xN);this.T(a,"onShowControls",this.xN);this.T(a,"onHideControls",this.B7);this.listen("mouseenter",this.l6)};
    y1a=function(a){g.W.call(this,{I:"button",Ka:[TV.BUTTON,TV.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:TV.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.Eya()]},{I:"div",S:TV.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
        this.api=a;this.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")};
    z1a=function(a,b){a.j=b;a.element.classList.toggle(TV.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.BN:c.AN)?(a=a.api.Dm())?KG(a,b):g.jE(Error("No innertube service available when updating notification preferences.")):g.jE(Error("No update preferences command available.")):g.jE(Error("No video data when updating notification preferences."))};
    B1a=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=A1a(a,b);if(a=g.Qe(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))qva(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
    A1a=function(a,b){var c=document.location.protocol;return Qfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
    g.UV=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(b==="0"||b==="-1")b=null;if(d==="0"||d==="-1")d=null;var r=p.U(),t=r.userDisplayName&&g.pR(r);g.W.call(this,{I:"div",Ka:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",W:t?{title:g.UI("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":IVa(r),"data-tooltip-opaque":String(g.kR(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",va:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",W:t?{title:g.UI("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":IVa(r),"data-tooltip-opaque":String(g.kR(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",
                va:d}:""]}],W:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var w=this.Ga("ytp-sb-subscribe"),A=this.Ga("ytp-sb-unsubscribe");f&&g.Hv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var C=function(){if(r.Ca){var H=u.channelId;if(m||n){var L={c:H};var N;g.FO.isInitialized()&&(N=VPa(L));L=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var Q=p.Dm();Q?(KG(Q,N,{botguardResponse:L,feature:m}),p.ib("SUBSCRIBE",H)):g.jE(Error("No innertube service available when updating subscriptions."))}else g.jE(Error("No subscribe command in videoData."));
    else g.jE(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else B1a(g.wR(u.J.U()),"sb_button",u.D)},E=function(){var H=u.channelId;
        if(m||n){var L=p.getVideoData();KG(p.Dm(),L.unsubscribeCommand,{feature:m});p.ib("UNSUBSCRIBE",H)}w.focus();w.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
        this.T(w,"click",C);this.T(A,"click",E);this.T(w,"keypress",function(H){H.keyCode===13&&C(H)});
        this.T(A,"keypress",function(H){H.keyCode===13&&E(H)});
        this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(WYa(p),wT(p,w,this),wT(p,A,this))}else g.Hv(w,"ytp-sb-disabled"),g.Hv(A,"ytp-sb-disabled")};
    E1a=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",W:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
                            tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}",W:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ga("ytp-title-channel");this.B=this.Ga("ytp-title-channel-logo");this.channelName=this.Ga("ytp-title-expanded-title");this.G=this.Ga("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this,
        37220);g.kR(this.api.U())&&C1a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(D1a(b));c.preventDefault()});
        this.T(this.B,"click",this.waa);this.Ta()};
    F1a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.UV("Subscribe",null,"Subscribed",null,!0,!1,b.Ol,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
        a.subscribeButton=c;g.M(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new y1a(a.api);a.j=e;g.M(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Xl&&(e.show(),a.api.logVisibility(e.element,!0))});
        a.T(a.api,"UNSUBSCRIBE",function(){b.Xl&&(e.hide(),a.api.logVisibility(e.element,!1),z1a(e,!1))})}};
    C1a=function(a){var b=a.api.U();F1a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa||(a.T(a.channel,"mouseenter",a.gP),a.T(a.channel,"mouseleave",a.BO),a.T(a.channel,"focusin",a.gP),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.BO()}));
        a.C=new g.Av(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
        g.M(a,a.C);a.T(a.channel,G1a,function(){H1a(a)});
        a.T(a.api,"onHideControls",a.QS);a.T(a.api,"appresize",a.QS);a.T(a.api,"fullscreentoggled",a.QS)};
    H1a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
    I1a=function(a){var b=a.api.getPlayerSize();return g.kR(a.api.U())&&b.width>=524};
    D1a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.IR(b)+c.Ab;g.hT(c)&&(d="https://music.youtube.com"+c.Ab);if(!g.kR(b))return d;b={};g.nT(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.GO(b,"emb_ch_name_ex");return g.wo(d,b)};
    VV=function(a){var b=g.MT({"aria-haspopup":"true"});g.LT.call(this,b,a);this.listen("keydown",this.j)};
    WV=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
    J1a=function(a,b){g.W.call(this,{I:"div",S:"ytp-user-info-panel",W:{"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",va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},va:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon",
            va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",W:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Ca||a.U().Tb||(a=this.Ga("ytp-user-info-panel-login"),this.T(a,"click",this.n6));this.closeButton=new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],W:{title:"Close"},V:[g.VE()]});this.closeButton.Ja(this.element);
        g.M(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.m6);this.Ta()};
    L1a=function(a,b,c){g.rU.call(this,a);this.Eb=b;this.le=c;this.getVideoUrl=new VV(6);this.Wn=new VV(5);this.Pn=new VV(4);this.qc=new VV(3);this.TG=new g.LT(g.MT({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.LT(g.MT(),1,"Stats for nerds");this.Qz=new g.LE({I:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.vX=new qU(this.J,this.Qz);this.OH=this.au=null;g.kR(this.J.U())&&(this.closeButton=
        new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],W:{title:"Close"},V:[g.VE()]}),g.M(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.E7,this));g.kR(this.J.U())&&(this.Il=new g.LT(g.MT(),8,"Account"),g.M(this,this.Il),this.Rc(this.Il,!0),this.Il.listen("click",this.hca,this),a.createClientVe(this.Il.element,this.Il,137682));this.J.U().yn&&(this.Al=new UT("Loop",7),g.M(this,this.Al),this.Rc(this.Al,!0),this.Al.listen("click",this.Xaa,this),a.createClientVe(this.Al.element,
        this.Al,28661));g.M(this,this.getVideoUrl);this.Rc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Oaa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.M(this,this.Wn);this.Rc(this.Wn,!0);this.Wn.listen("click",this.Paa,this);a.createClientVe(this.Wn.element,this.Wn,28660);g.M(this,this.Pn);this.Rc(this.Pn,!0);this.Pn.listen("click",this.Naa,this);a.createClientVe(this.Pn.element,this.Pn,28658);g.M(this,this.qc);this.Rc(this.qc,!0);this.qc.listen("click",this.Maa,
        this);g.M(this,this.TG);this.Rc(this.TG,!0);this.TG.listen("click",this.Oba,this);g.M(this,this.showVideoInfo);this.Rc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.ica,this);g.M(this,this.Qz);this.Qz.listen("click",this.Baa,this);g.M(this,this.vX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Saa("Chromium")>=43&&(b=!0);Saa("Firefox")<=40&&(b=!1);b&&(this.au=new g.W({I:"textarea",S:"ytp-html5-clipboard",W:{readonly:"",tabindex:"-1"}}),g.M(this,this.au),
        this.au.Ja(this.element));var d;(d=this.Il)==null||d.setIcon(Gya());var e;(e=this.Al)==null||e.setIcon({I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.qc.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
                fill:"white","fill-rule":"evenodd"}}]});this.TG.setIcon(yya());this.showVideoInfo.setIcon(zya());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);K1a(this);this.nH(this.J.getVideoData())};
    XV=function(a,b){var c=!1;if(a.au){var d=a.au.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Eb.Mb():(a.Qz.Ed(b,"text"),g.uU(a.Eb,a.vX),uZa(a.Qz.element),a.au&&(a.au=null,K1a(a)));return c};
    K1a=function(a){var b=!!a.au;a.qc.Nj(b?"Copy debug info":"Get debug info");WV(a.qc,!b);a.Pn.Nj(b?"Copy embed code":"Get embed code");WV(a.Pn,!b);a.getVideoUrl.Nj(b?"Copy video URL":"Get video URL");WV(a.getVideoUrl,!b);a.Wn.Nj(b?"Copy video URL at current time":"Get video URL at current time");WV(a.Wn,!b);a.Pn.setIcon(b?vya():null);a.getVideoUrl.setIcon(b?TE():null);a.Wn.setIcon(b?TE():null)};
    M1a=function(a){return g.kR(a.J.U())?a.Il:a.Al};
    O1a=function(a,b){g.tU.call(this,a);this.le=b;this.D=new g.IJ(this);this.ra=new g.Av(this.wca,1E3,this);this.Ca=this.C=null;g.M(this,this.D);g.M(this,this.ra);a.createClientVe(this.element,this,28656);g.Hv(this.element,"ytp-contextmenu");N1a(this);this.hide()};
    N1a=function(a){g.rB(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Wa||(b=a.J.ob(),a.D.T(b,"contextmenu",a.zaa),a.D.T(b,"touchstart",a.p6,null,!0),a.D.T(b,"touchmove",a.l0,null,!0),a.D.T(b,"touchend",a.l0,null,!0))};
    P1a=function(a){a.J.isFullscreen()?g.FT(a.J,a.element,10):a.Ja(document.body)};
    YV=function(a,b,c){c=c===void 0?240:c;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.kR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",va:"{{icon}}"},{I:"div",S:"ytp-copylink-title",va:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.Oe=b;this.j=c;this.visible=!1;this.tooltip=this.Oe.Se();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Lv(this.element,"ytp-show-copylink-title",g.kR(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.vT(this.tooltip,this.element))};
    Q1a=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.Ap&&!g.gT(c)&&!a.api.hd()&&!b};
    R1a=function(a){a.updateValue("icon",rya());if(a.api.U().B)a.tooltip.rH(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Uh();a.tooltip.rH(a.element);var b=a.listen("mouseleave",function(){a.Pc(b);a.Ta();a.tooltip.wm()})}};
    S1a=function(a,b){return g.G(function(c){if(c.j==1)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.yf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(vC){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)})};
    ZV=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",va:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Av(this.show,10,this);this.B=new g.Av(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ga("ytp-doubletap-static-circle");g.M(this,this.D);g.M(this,this.B);this.hide();this.N=this.Ga("ytp-doubletap-fast-forward-ve");this.Y=this.Ga("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")};
    $V=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.Dv(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.Hv(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";b===1?(a.j.style.right="",a.j.style.left=d.width*.8-30+"px"):b===-1&&(a.j.style.right="",a.j.style.left=d.width*.1-15+"px");a.j.style.top=d.height*.5+15+"px";T1a(a,a.G?a.C:c)};
    U1a=function(a,b,c){g.Dv(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.Hv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
    T1a=function(a,b){b=g.UI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
    V1a=function(a){pU.call(this,a,!1,!0);this.Fa=[];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.M(this,this.Ea);this.countdownTimer=new g.W({I:"text",S:"ytp-featured-product-countdown",va:"{{content}}"});this.countdownTimer.hide();g.M(this,this.countdownTimer);this.B=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",
            va:"{{trendingOffer}}"}]});this.B.hide();g.M(this,this.B);this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.M(this,this.overflowButton);this.infoButton=new g.W({I:"button",Ka:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.M(this,this.infoButton);this.N=new g.W({I:"text",S:"ytp-featured-product-exclusive-countdown",va:"{{content}}",W:{id:"exclusiveCountdown","aria-hidden":"true"}});
        this.N.hide();g.M(this,this.N);this.K=new g.W({I:"div",S:"ytp-featured-product-exclusive-container",W:{"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",va:"{{exclusive}}",W:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.M(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",W:{src:"{{thumbnail}}"}},this.Ea]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",va:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",W:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",va:"{{price}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text",
                        va:"{{promotionText}}",W:{"aria-hidden":"true"}}]}:{I:"div",W:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",va:"{{price}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",va:"{{salesOriginalPrice}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",va:"{{priceDropReferencePrice}}",W:{"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",va:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",va:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",va:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.B,{I:"text",S:"ytp-featured-product-vendor",
                        va:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.M(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.OI("featured_product"),this.Uda);this.T(this.J,g.PI("featured_product"),this.YB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Raa);this.T(this.overflowButton.element,"click",this.q6);this.T(a,"featuredproductdismissed",this.Mu)};
    W1a=function(a){var b,c;a=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;var d,e,f;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(d=a.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(a==null?0:(e=a.exclusivesData)==null?0:e.expirationTimestampMs)&&(a==null?0:(f=a.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1};
    Y1a=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.exclusivesData)==null?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(b>0){if(b<604800){var h,l,m,n;c=(h=a.j)==null?void 0:(l=h.bannerData)==null?void 0:(m=l.itemData)==null?void 0:(n=m.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(c!==void 0)for(h=Date.now(),l=g.v(c),m=l.next();!m.done;m=l.next())if(m=m.value,m!==void 0&&m.text!==void 0&&(n=Number(m.textDisplayStartTimestampMs),
    !isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(rLa({seconds:b}))),a.N.Ed(b)):a.N.Ed(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:(p=a.j)==null?void 0:(q=p.bannerData)==null?void 0:(r=q.itemData)==null?void 0:(t=r.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});a.K.show();aW(a);var u;(u=a.Tb)==null||u.start()}else X1a(a)};
    X1a=function(a){var b;(b=a.Tb)==null||b.stop();a.N.hide();a.K.hide();bW(a)};
    Z1a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null};
    $1a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f;if(!(d!=null&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice)){var h,l;return d==null?void 0:(h=d.dealsData)==null?void 0:(l=h.sales)==null?void 0:l.originalPrice}return null};
    a2a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f,h,l;if(!((d==null?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice))&&(d==null?0:(h=d.dealsData)==null?0:(l=h.priceDrop)==null?0:l.referencePrice)){var m,n;return d==null?void 0:(m=d.dealsData)==null?void 0:(n=m.priceDrop)==null?void 0:n.referencePrice}return null};
    b2a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(d==null?void 0:d.price)+" "+(d==null?void 0:(e=d.promotionText)==null?void 0:e.content)}var f,h;if(d==null?0:(f=d.dealsData)==null?0:(h=f.sales)==null?0:h.originalPrice){var l,m;return d==null?void 0:(l=d.dealsData)==
    null?void 0:(m=l.sales)==null?void 0:m.salesPriceAccessibilityLabel}var n,p;if(d==null?0:(n=d.dealsData)==null?0:(p=n.priceDrop)==null?0:p.referencePrice){var q,r;return(d==null?void 0:d.price)+" "+(d==null?void 0:(q=d.dealsData)==null?void 0:(r=q.priceDrop)==null?void 0:r.referencePrice)}return d==null?void 0:d.price};
    c2a=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Hb?null:(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Hb||a.K.Hb||((e=a.j)==null?0:(f=e.bannerData)==null?0:(h=f.itemData)==null?0:h.affiliateDisclaimer)?null:(l=a.j)==null?void 0:(m=l.bannerData)==null?void 0:(n=m.itemData)==null?void 0:n.vendorName};
    e2a=function(a,b){cW(a);if(b){var c=g.DS.getState().entities;c=UN(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.v(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if((e=d)!=null&&e.identifier&&d.featuredSegments){a.Fa.push(d);var f=void 0;e=g.v((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=d2a(h.startTimeSec);f!==void 0&&(h=d2a(h.endTimeSec),b.push(new g.NI(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier,
        namespace:"featured_product"})))}}}a.J.lf(b)}}};
    bW=function(a){if(a.trendingOfferEntityKey){var b=g.DS.getState().entities;if(b=UN(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==((c=a.j)==null?void 0:(d=c.bannerData)==null?void 0:(e=d.itemData)==null?void 0:e.encodedOfferSkuId)?aW(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:c2a(a)}))}else aW(a)}else aW(a)};
    aW=function(a){a.B.hide();a.banner.update({vendor:c2a(a)})};
    cW=function(a){a.Fa=[];a.YB();a.J.sf("featured_product")};
    f2a=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Ed(rLa({seconds:b}));if(b>0){var h;(h=a.Kb)==null||h.start()}};
    g2a=function(a){var b;(b=a.Kb)==null||b.stop();a.countdownTimer.hide()};
    d2a=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a};
    l2a=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",va:"{{disclaimer}}"},{I:"a",Ka:["ytp-info-panel-action-item-button","ytp-button"],W:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",va:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",va:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ga("ytp-info-panel-action-item-disclaimer");this.button=
        this.Ga("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(b==null?void 0:b.onTap,nE);var d=g.V(c,g.aF);this.ue=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ue=!0,g.Me(this.button,g.je(a))):(d=g.V(c,h2a))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.ue=!0,g.Me(this.button,g.je(a,[i2a]))):(c=g.V(c,j2a))&&!this.j&&(a=c.phoneNumber?
        "tel:"+c.phoneNumber:"",this.ue=!0,g.Me(this.button,g.je(a,[k2a])));var e;if(c=(e=b.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=b.bodyText)==null?void 0:f.content,icon:UE(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:UE()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.ue&&(this.B={externalLinkData:{url:a}})};
    m2a=function(a,b){var c=GE();g.JT.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",W:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",va:"{{title}}"},{I:"button",Ka:["ytp-info-panel-detail-close","ytp-button"],W:{"aria-label":"Close"},V:[g.SE()]}]},{I:"div",S:"ytp-info-panel-detail-body",va:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ga("ytp-info-panel-detail-items");
        this.C=new g.IJ(this);this.itemData=[];this.D=c;b=this.Ga("ytp-info-panel-detail-close");this.T(b,"click",this.Mb);b=this.Ga("ytp-info-panel-detail-skrim");this.T(b,"click",this.Mb);b=this.Ga("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
        g.M(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
    n2a=function(a,b){a=g.v(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
    q2a=function(a,b){g.W.call(this,{I:"div",S:"ytp-info-panel-preview",W:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.kR(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",va:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",va:"{{chevron}}"}]});var c=this;this.J=a;this.Ee=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.xr();KT(b)});
        this.C=new g.oF(this,250,!1,100);g.M(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.r4);this.T(this.J,"paidcontentoverlayvisibilitychange",this.J_);this.T(this.J,"infopaneldetailvisibilitychange",this.J_);var d=a.getVideoData()||{};o2a(d)&&p2a(this,d);this.T(a,"onShowControls",this.q4);this.T(a,"onHideControls",this.p4)};
    p2a=function(a,b){if(!b.zi||!a.J.Yn()){var c=b.GD||1E4,d=o2a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Dv(a.j),a.videoId=b.videoId,d?(r2a(a,c,b),a.wd()):(a.Mb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),r2a(a,c,b),a.wd())}};
    o2a=function(a){var b,c,d,e;return!!((b=a.Qf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.Qf)==null?0:(e=d.bodyText)==null?0:e.content)};
    r2a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Av(a.Yda,b,a);g.M(a,a.j);var d;b=((d=c.Qf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.Qf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.Qf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.Qf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.Qf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.RE()})};
    s2a=function(a,b){a.j&&(g.vF(b,8)?(a.B=!0,a.wd(),a.j.start()):(g.vF(b,2)||g.vF(b,64))&&a.videoId&&(a.videoId=null))};
    dW=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
    eW=function(a,b){var c=0;a=g.v(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1};
    t2a=function(a,b){for(var c=0,d=g.v(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
    u2a=function(a,b){b=eW(a,b)+1;return b<a.length?b:-1};
    v2a=function(a,b){return eW(a,b)-1};
    w2a=function(a,b){return new g.NI(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
    y2a=function(a,b,c,d,e,f,h,l){g.IJ.call(this);var m=this;this.api=a;this.contextMenu=c;this.Kg=d;this.le=e;this.j=f;this.K=h;this.progressBar=l;this.G=new g.Av(function(){x2a(m,!1)},1E3);
        this.B="";this.C={jK:!1};this.D=!1;g.M(this,this.G);this.T(b,"mousedown",function(){fW(m,!1)});
        this.T(c.element,"mousedown",function(){fW(m,!1)});
        this.T(b,"keydown",this.MY);this.T(c.element,"keydown",this.MY);this.T(b,"keyup",this.OY);this.T(c.element,"keyup",this.OY)};
    fW=function(a,b){a.D=b;g.Lv(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Lv(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
    hW=function(a,b,c,d){var e=g.wV(a.api.zb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.gW.length;h++){var l=g.gW[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(h===0)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);x2a(a,!0);a.G.start()}};
    x2a=function(a,b){g.wV(a.api.zb())&&a.api.setOption("captions","sampleSubtitles",b)};
    g.iW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-overflow-button"],W:{title:"More","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",W:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var c=this;this.J=a;this.ji=b;this.j=this.visible=!1;a.createClientVe(this.element,
        this,16499);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();wT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);KT(b,c.element,!1)});
        this.T(b.closeButton,"click",function(){c.focus()})};
    z2a=function(a){g.JT.call(this,a,{I:"div",S:"ytp-overflow-panel",W:{id:GE(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",va:"{{buttons}}"}]},{I:"button",Ka:["ytp-overflow-panel-close","ytp-button"],W:{title:"Close"},V:[g.SE()]}]},250);this.actionButtons=[];this.j=this.Ga("ytp-overflow-panel-content");this.closeButton=this.Ga("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Mb);wT(a,this.closeButton,this);this.listen("click",
        this.s4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
    A2a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
    B2a=function(a,b){a=g.v(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Mc(b)};
    C2a=function(a,b,c){var d=g.bV(b,c),e=d.gh("default.jpg");g.W.call(this,{I:"a",Ka:["ytp-video-menu-item","ytp-button"],W:{role:"menuitemradio","aria-label":d.title,href:a.U().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},V:[{I:"div",S:"ytp-video-menu-item-index",va:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",va:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",W:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",va:d.title},{I:"div",
            S:"ytp-video-menu-item-author",va:d.author}]});this.api=a;this.index=c;this.listen("click",this.onClick)};
    D2a=function(a){g.JT.call(this,a,{I:"div",S:"ytp-playlist-menu",W:{role:"dialog",id:GE()},V:[{I:"div",S:"ytp-playlist-menu-header",V:[{I:"div",S:"ytp-playlist-menu-title",V:[a.U().C?{I:"span",S:"ytp-playlist-menu-title-name",va:"{{title}}"}:{I:"a",S:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},va:"{{title}}"},{I:"button",Ka:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"Close"},V:[g.SE()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",va:"{{subtitle}}"}]},{I:"div",S:"ytp-playlist-menu-items",
            W:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Ga("ytp-playlist-menu-items");this.C=new g.IJ(this);this.j=[];var b=this.Ga("ytp-playlist-menu-close");this.T(b,"click",this.Mb);b=this.Ga("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.vca));g.M(this,this.C);this.hide()};
    jW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-playlist-menu-button","ytp-button"],W:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"Playlist"},V:[{I:"div",S:"ytp-playlist-menu-button-icon",V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
                        fill:"#fff"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",va:"{{text}}"}]});var c=this;this.api=a;this.playlist=null;this.visible=!1;a.createClientVe(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"videoplayerreset",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);this.hide();this.j();wT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);KT(b,c.element,!1)})};
    E2a=function(a,b){g.W.call(this,{I:"div",S:"ytp-promotooltip-wrapper",V:[{I:"div",S:"ytp-promotooltip-container",V:[{I:"div",S:"ytp-promotooltip-content",V:[{I:"div",S:"ytp-promotooltip-title",va:"{{title}}"},{I:"div",S:"ytp-promotooltip-details",va:"{{details}}"}]},{I:"div",S:"ytp-promotooltip-buttons",V:[{I:"div",S:"ytp-promotooltip-dismiss-button",va:"{{dismissButtonText}}",W:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",va:"{{acceptButtonText}}",W:{tabindex:"0","aria-haspopup":"true"}}]}]},
            {I:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.J=b;this.targetElement=this.B=null;this.title=this.Ga("ytp-promotooltip-title");this.details=this.Ga("ytp-promotooltip-details");this.acceptButton=this.Ga("ytp-promotooltip-accept-button");this.dismissButton=this.Ga("ytp-promotooltip-dismiss-button");this.j=this.D=!1;this.C=!0;this.Y=this.G=this.N=this.K=!1;this.rd={jH:function(d){c.jH(d)}};
        g.KE(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.j=!!a)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,a);this.T(b,"onShowControls",this.u4);this.T(b,"onHideControls",this.t4);this.T(b,"resize",this.kc);this.T(this.acceptButton,"click",this.Y$);this.T(this.dismissButton,"click",this.Faa);this.T(document,"click",this.v4)};
    F2a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=b.length>0?b[0]:null;var c=g.tf("ytp-chrome-bottom"),d=g.tf("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.K=!(d==null||!d.contains(b));a.N=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b};
    I2a=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(b==null?0:(e=b.runs)==null?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Ws(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((b==null?0:(f=b.runs)==null?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.HE({I:"span",S:"ytp-promotooltip-details-icon",
        V:[G2a[a.tooltipRenderer.targetId]]});g.M(a,h);for(var l=[],m=g.v(d),n=m.next();!n.done;n=m.next())n=new g.HE({I:"span",S:"ytp-promotooltip-details-component",va:n.value}),g.M(a,n),l.push(n);d.length===2?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):d.length===1&&(f===0?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if(typeof f!=="string")for(g.Cf(a.details),e=g.v(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
    else a.update({details:f});e=!0}}g.Ws(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.V(e,g.$L))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.V(e,g.$L).text.runs[0].text&&(a.update({acceptButtonText:g.V(e,g.$L).text.runs[0].text.toString()}),f=!0);g.Ws(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,w;((t=g.V(p,g.$L))==null?0:(u=t.text)==null?0:(w=u.runs)==null?0:w.length)&&g.V(p,g.$L).text.runs[0].text&&(a.update({dismissButtonText:g.V(p,g.$L).text.runs[0].text.toString()}),
        q=!0);g.Ws(a.dismissButton,q)}c&&(a.B=c);a.targetElement=F2a(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.KE(a,!0);H2a(a);a.Hb&&!a.Y&&(a.Y=!0,a.rd.jH(0));a.j&&a.J.logVisibility(a.element,a.Hb)}};
    kW=function(a){g.KE(a,!1);a.j&&a.J.logVisibility(a.element,a.Hb)};
    J2a=function(a){var b,c,d,e=((b=g.V(a.acceptButton,g.$L))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.V(a.acceptButton,g.$L).text.runs[0].text,f,h,l;b=((f=g.V(a.dismissButton,g.$L))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.V(a.dismissButton,g.$L).text.runs[0].text;return e||b};
    H2a=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b=c.display==="none"||c.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||a.J.isMinimized())g.KE(a,!1);else if(b=g.Vs(a.targetElement),b.width&&b.height){a.J.Zx(a.element,a.targetElement);var d=a.J.ob().getPlayerSize().height;c=g.Vs(a.Ga("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Vn().height-c-b.height-12,a.element.style.top=d+"px");
        d=a.Ga("ytp-promotooltip-pointer");var e=g.Ts(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.KE(a,!1)};
    lW=function(a){g.W.call(this,{I:"button",Ka:["ytp-replay-button","ytp-button"],W:{title:"Replay"},V:[g.Kya()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Hc(a.getPlayerStateObject());wT(this.J,this.element,this)};
    mW=function(a,b){b=b===void 0?240:b;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-search-button"],W:{title:"Search","data-tooltip-opaque":String(g.kR(a.U()))},V:[{I:"div",S:"ytp-search-icon",va:"{{icon}}"},{I:"div",S:"ytp-search-title",va:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",W:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
        a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);wT(a,this.element,this)};
    g.nW=function(a,b,c,d){d=d===void 0?240:d;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-share-button"],W:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.kR(a.U()))},V:[{I:"div",S:"ytp-share-icon",va:"{{icon}}"},{I:"div",S:"ytp-share-title",va:"Share"}]});this.api=a;this.Oe=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Oe.Se();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);
        this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.vT(this.tooltip,this.element))};
    K2a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.kR(b)&&g.CT(a.api)&&g.vF(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.Ap||d||g.gT(c)||a.j;d=a.api.ob().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
    L2a=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Oe.xr(),KT(a.B,a.element,!1)):g.jE(b))};
    N2a=function(a,b){var c=GE(),d=a.U();c={I:"div",S:"ytp-share-panel",W:{id:GE(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",W:{id:c},va:"Share"},{I:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",W:{type:"checkbox",
                        checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[tZa()]},{I:"div",S:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Ka:["ytp-share-panel-close","ytp-button"],W:{title:"Close"},V:[g.SE()]}]};g.JT.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Se();this.C=[];this.G=this.Ga("ytp-share-panel-inner-content");
        this.closeButton=this.Ga("ytp-share-panel-close");this.T(this.closeButton,"click",this.Mb);this.addOnDisposeCallback(g.vT(this.tooltip,this.closeButton));this.D=this.Ga("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Ga("ytp-share-panel-link");this.addOnDisposeCallback(g.vT(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=M2a(e,h);
            g.XT(h,e.api,f)&&e.api.ib("SHARE_CLICKED")});
        this.listen("click",this.w4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.z$);this.hide()};
    P2a=function(a,b){O2a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&d<2;e={xx:void 0,cn:void 0},f++){e.xx=c[f];a:switch(e.xx.img||e.xx.iconId){case "facebook":var h={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
                fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
                fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.xx.sname||e.xx.serviceName;e.cn=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],W:{href:e.xx.url,target:"_blank",title:l},V:[h]});e.cn.listen("click",function(p){return function(q){var r=p.xx.url;if(g.GF(q)){var t=t===void 0?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var u=t;u||(u={});t=window;var w=r instanceof g.ce?r:g.je(typeof r.href!="undefined"?r.href:String(r));var A=self.crossOriginIsolated!==
        void 0,C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);var E=C==="unsafe-url";C=u.noreferrer;if(A&&C){if(E)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");C=!1}r=u.target||r.target;A=[];for(var H in u)switch(H){case "width":case "height":case "top":case "left":A.push(H+"="+u[H]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(H+"="+(u[H]?1:0))}H=A.join(",");
        Ic()&&t.navigator&&t.navigator.standalone&&r&&r!="_self"?(u=g.yf("A"),u.href=Lba(w),u.target=r,C&&(u.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,t,1),u.dispatchEvent(w),t={}):C?(t=Mba("",t,r,H),w=g.de(w),t&&(t.opener=null,w===""&&(w="javascript:''"),w=se('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ze(w)+'">'),(u=t.document)&&u.write&&(u.write(g.re(w)),u.close()))):((t=Mba(w,t,r,H))&&u.noopener&&(t.opener=null),
        t&&u.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
        e.cn.addOnDisposeCallback(g.vT(a.tooltip,e.cn.element));l==="Facebook"?a.api.createClientVe(e.cn.element,e.cn,164504):l==="Twitter"&&a.api.createClientVe(e.cn.element,e.cn,164505);a.T(e.cn.element,"click",function(p){return function(){a.api.logClick(p.cn.element)}}(e));
        a.api.logVisibility(e.cn.element,!0);a.C.push(e.cn);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",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
                        fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],W:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=M2a(a,q);g.XT(q,a.api,p)&&a.api.ib("SHARE_CLICKED")});
        n.addOnDisposeCallback(g.vT(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)};
    M2a=function(a,b){var c={};g.kR(a.api.U())&&(g.nT(a.api,"addEmbedsConversionTrackingParams",[c]),a.api.L("embeds_web_enable_referring_feature_deprecation")||(b=g.wo(b,g.GO(c,"emb_share"))));return b};
    O2a=function(a){for(var b=g.v(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ub(c);a.C=[]};
    oW=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0};
    Q2a=function(a,b){a.startSec+=b;a.endSec+=b};
    S2a=function(a){pU.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;R2a(this);this.T(this.J,"changeProductsInVideoVisibility",this.wba);this.T(this.J,"videodatachange",this.onVideoDataChange)};
    T2a=function(a){a.K&&a.Ma.element.removeChild(a.K.element);a.K=void 0};
    V2a=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.V(c,U2a))==null?void 0:(e=d.thumbnail)==null?void 0:e.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.W({I:"img",
        S:"ytp-suggested-action-product-thumbnail",W:{alt:"",src:c}});g.M(a,c);return c})};
    W2a=function(a,b){a.isContentForward=b;g.Lv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
    pW=function(a){var b=a.isContentForward&&!a.jM();g.Lv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Lv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)};
    qW=function(a,b,c){return new g.NI(a*1E3,b*1E3,{priority:9,namespace:c})};
    X2a=function(a){a.J.sf("shopping_overlay_visible");a.J.sf("shopping_overlay_preview_collapsed");a.J.sf("shopping_overlay_preview_expanded");a.J.sf("shopping_overlay_expanded")};
    R2a=function(a){a.T(a.J,g.OI("shopping_overlay_visible"),function(){a.Lf(!0)});
        a.T(a.J,g.PI("shopping_overlay_visible"),function(){a.Lf(!1)});
        a.T(a.J,g.OI("shopping_overlay_expanded"),function(){a.ra=!0;oU(a)});
        a.T(a.J,g.PI("shopping_overlay_expanded"),function(){a.ra=!1;oU(a)});
        a.T(a.J,g.OI("shopping_overlay_preview_collapsed"),function(){a.j=!0;pW(a)});
        a.T(a.J,g.PI("shopping_overlay_preview_collapsed"),function(){a.j=!1;pW(a)});
        a.T(a.J,g.OI("shopping_overlay_preview_expanded"),function(){a.B=!0;pW(a)});
        a.T(a.J,g.PI("shopping_overlay_preview_expanded"),function(){a.B=!1;pW(a)})};
    p3a=function(a){g.W.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",W:{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",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ga("ytp-shorts-title-channel-logo");this.channelName=this.Ga("ytp-shorts-title-expanded-title");
        this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Qe(n3a(b));c.preventDefault()});
        a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Qe(n3a(b));c.preventDefault()});
        o3a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
    o3a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.UV("Subscribe",null,"Subscribed",null,!0,!1,b.Ol,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
        a.subscribeButton=c;g.M(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
    n3a=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.IR(b)+c.Ab;if(!g.kR(b))return c;b={};g.nT(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.GO(b,"emb_ch_name_ex");return g.wo(c,b)};
    rW=function(a){g.JT.call(this,a,{I:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.Av(function(){b.hide()},5E3);
        this.Rf=this.yj=NaN;g.M(this,this.j);this.K=function(){b.show()};
        this.G=function(){b.hide()};
        this.D=function(){var c=b.J.getCurrentTime();c>b.yj/1E3&&c<b.Rf/1E3&&b.show()};
        this.T(this.J,"videodatachange",function(c,d){b.Wt(c,d)});
        this.T(this.element,"click",function(){b.J.seekTo(b.Rf/1E3)});
        this.hide()};
    sW=function(a){g.W.call(this,{I:"button",Ka:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay","data-priority":"9"},va:"{{icon}}"});this.J=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Ta);this.T(a,"airplayavailabilitychange",this.Ta);this.Ta();wT(a,this.element,this)};
    r3a=function(a){g.W.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.yf("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;q3a(this,a.ob().getPlayerSize().height)};
    q3a=function(a,b){if(a.j){b=Math.floor(b*.4);b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b),e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)");a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=c+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(f){}}}};
    tW=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",Ka:["ytp-chapter-title","ytp-button"],V:[{I:"span",W:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",va:"\u2022"},{I:"div",S:"ytp-chapter-title-content",va:"{{title}}",W:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
        this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Y=this.Ga("ytp-chapter-container");this.j=this.Ga("ytp-chapter-title");this.qa=this.Ga("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.Y,"click",this.onClick);this.T(a,g.OI(c),this.Tc);this.T(a,"onLoopRangeChange",this.Tc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
            g.rR(this.J.U()))&&g.Lv(this.j,"ytp-profile-page",!0);this.J.L("web_fitted_chapter_button_killswitch")||g.Lv(this.j,"fitted-chapter-button",!0);g.kR(this.J.U())||a||wT(this.J,this.qa,this)};
    uW=function(a,b){tW.call(this,a,b,"chapterCueRange","View chapter")};
    s3a=function(a,b,c,d,e){var f=b.Ex/b.rows,h=Math.min(c/(b.WF/b.columns),d/f),l=b.WF*h,m=b.Ex*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&f<=45&&(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"};
    t3a=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};
    vW=function(a,b){g.W.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",va:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Ga("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.IJ(this);this.j=new g.oF(this,100);g.M(this,this.events);g.M(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Jw()});
        t3a(this.api)&&g.Hv(this.element,"ytp-storyboard-framepreview-big-boards")};
    u3a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){u3a(a,a.api.jk())}),a.events.T(a.api,"progresssync",a.Cg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,v3a(a),a.j.show(200)):(c&&g.rB(a.events),a.j.hide(),a.j.stop())};
    v3a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.ob().getPlayerSize(),e=iS(b,d.width);e=TWa(b,e,c);a.update({timestamp:g.FF(c)});e!==a.C&&(a.C=e,RWa(b,e,d.width),b=PWa(b,e,d.width),s3a(a.D,b,d.width,d.height))};
    w3a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},va:"{{icon}}"});this.J=a;this.Oe=b;this.message=null;this.j=g.vT(this.Oe.Se(),this.element);this.B=new g.Av(this.x7,2E3,this);g.M(this,this.B);this.T(a,"fullscreentoggled",this.dn);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"resize",this.Ta);this.listen("click",this.onClick);g.gB()&&
    (b=this.J.ob(),this.T(b,fsa(),this.GR),this.T(b,esa(document),this.Rx));a.U().Ab||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Ta();this.dn(a.isFullscreen())};
    wW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-jump-button"],W:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[b>0?{I:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],W:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
                {I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"7.05",y:"15.05"}}]}:{I:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],W:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
                {I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Av(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
        this.C=!1;(b=b>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.UI(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);wT(a,this.element,
            this)};
    x3a=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Uh()};
    xW=function(a,b){tW.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.PI("timedMarkerCueRange"),this.Tc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
    y3a=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.kf;if(c)for(a=a.D.La,c=g.v(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if(((d=b.onTap)==null?void 0:(e=d.innertubeCommand)==null?void 0:(f=e.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}};
    yW=function(a){g.W.call(this,{I:"button",Ka:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[Hya()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.xT(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});wT(a,this.element,this);a.createClientVe(this.element,
        this,62946);this.Ta()};
    z3a=function(a,b,c){c=c===void 0?!1:c;g.W.call(this,{I:"button",Ka:["ytp-mute-button","ytp-button"],W:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.Ea=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Ca=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",Nya());this.tooltip=b.Se();this.j=new g.HE({I:"svg",W:{height:"100%",
            version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
            {I:"path",Ic:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Ic:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.M(this,this.j);this.K=this.j.Ga("ytp-svg-volume-animation-speaker");
        this.Ca=this.K.getAttribute("d");this.C=g.sf("ytp-svg-volume-animation-mover",this.j.element);this.B=g.sf("ytp-svg-volume-animation-hider",this.j.element);this.Fa=new UU;g.M(this,this.Fa);this.qa=new UU;g.M(this,this.qa);this.listen("click",this.fba);this.T(a,"appresize",this.FU);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.vT(b.Se(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),
            d=new g.JT(a,{I:"span",Ka:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},V:[b[0],{I:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},va:b[2]},b[4]]},100,!0),g.M(this,d),d.hide(),d.subscribe("show",function(e){a.uE(d,e)}),g.FT(a,d.element,4));
        this.message=d;a.createClientVe(this.element,this,28662);this.FU(a.ob().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
    C3a=function(a,b){a.ra=b;var c=a.Ca;b&&(c+=Q_a(A3a,B3a,b));a.K.setAttribute("d",c)};
    D3a=function(a,b){a.Y=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;b===1?e=Nya():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if((f=d)==null?0:f.style)d.style.display=b===0?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
    g.zW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-play-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},va:"{{icon}}"});this.J=a;this.j=null;this.transition=new UU;this.tooltip=b.Se();g.M(this,this.transition);a.createClientVe(this.element,this,36842);a.logVisibility(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);
        this.Hc(a.getPlayerStateObject());this.listen("click",this.Ms,this);this.addOnDisposeCallback(g.vT(b.Se(),this.element))};
    E3a=function(a){switch(a){case 1:return Iya();case 2:return Fya();case 3:return g.Kya();case 4:return Mya();default:return null}};
    g.AW=function(a,b,c){g.W.call(this,{I:"a",Ka:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],W:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},V:[c?Dya():Jya()]});var d=this;this.J=a;this.j=c;this.playlist=this.videoData=null;this.K=
        !1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Se();c?a.createClientVe(this.element,this,6193):a.createClientVe(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.T(a,"appresize",this.SM);this.T(a,"mdxpreviousnextchange",function(){F3a(d);d.SM()});
        this.onVideoDataChange()};
    G3a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
    H3a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&a.J.getCurrentTime()>=3&&a.J.getPresentingPlayerType()!==2};
    I3a=function(a){var b=BT(a.J.zb());return b?a.j?b.vl():b.Up():!1};
    F3a=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=a.playlist!=null&&a.playlist.vl();c=g.CT(a.J)&&(!a.j||c);var d=a.j&&g.GT(a.J),e=I3a(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.xT(a.J,"Next","SHIFT+n"),l=g.xT(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.bV(a.playlist,a.j?h0a(a.playlist):i0a(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
        b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.FF(m.lengthSeconds):null;b.preview=m.gh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=(m=a.videoData)==null?void 0:g.BS(m))b.url=l.ql(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.FF(l.lengthSeconds):
        null,b.preview=l.gh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.vT(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Pc(a.G),a.G=null);a.tooltip.Uh()};
    K3a=function(a,b){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",W:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",W:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",W:{"aria-hidden":"true"},
            va:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[Iya()],W:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.SE()],W:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Ga("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ga("ytp-fine-scrubbing-dismiss");this.Ca=this.Ga("ytp-fine-scrubbing-draggable");this.playButton=this.Ga("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.La=this.j=0;this.Ma=void 0;
        this.qa=NaN;this.Sa=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Ea=!1;J3a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.vT(b,this.dismissButton));this.addOnDisposeCallback(g.vT(b,this.playButton));this.Fa=new g.DU(this.Ca,!0);this.Fa.subscribe("dragstart",this.UM,this);this.Fa.subscribe("dragmove",this.TM,this);this.Fa.subscribe("dragend",this.y4,this);this.T(a,"SEEK_COMPLETE",this.zB);a.L("web_fix_fine_scrubbing_false_play")&&
        this.T(a,"rootnodemousedown",function(d){c.ra=d});
        this.G.addEventListener("keydown",function(){});
        g.M(this,this.Fa);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
    J3a=function(a,b){var c=g.FF(b),d=g.UI("Seek to $PROGRESS",{PROGRESS:g.FF(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
    L3a=function(a){a.qa=NaN;a.Y=0;a.N=a.C};
    O3a=function(a){var b=a.api.jk();if(b){var c=90*a.scale,d=iS(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=jS(b,b.fz()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.Ce(l),column:0,columns:p,row:n,rows:m,WF:b.width*p,Ex:b.height*m};d.push(q);h-=p;if(h<=1)break}a.D=d;a.frameCount=b.DJ();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
        void 0,(d=a.thumbnails.pop())==null||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new M3a,a.thumbnails.push(d),d.Ja(a.G),g.M(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.K*a.scale,l=f.Ex/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Ex/f.rows*m+"px/"+h*b.columns+"px "+l*f.rows*m+"px",e.style.width=h*f.columns+"px",e.style.height=c+"px";BW(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Jk;a.B.length>c.length;)d=void 0,(d=a.B.pop())==null||d.dispose();
        for(;a.B.length<c.length;)d=new N3a,a.B.push(new N3a),g.M(a,d);for(d=0;d<c.length;d++)e=c[d],a.B[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Js(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ja(a.thumbnails[f].element);a.Ea=!0}}};
    BW=function(a,b){a.ra&&(a.ra.DA=!0);a.update({seekTime:g.FF(b)});var c=a.K*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.j/2:-b*c/a.interval-c/2+a.j/2;b=g.ze(b,P3a(a),a.j/2);a.N=b;a.C=a.N;g.Js(a.Ca,"transform","translateX("+(a.N-a.j/2)+"px)");g.Js(a.Ca,"padding","0px "+a.j/2+"px");g.Js(a.G,"position","relative")};
    Q3a=function(a,b){var c=a.K*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
    P3a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
    M3a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
    N3a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",va:"{{chapterTitle}}"}]})};
    R3a=function(a){g.W.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",W:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",W:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",W:{"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",W:{"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",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ga("ytp-heat-map-svg");this.C=this.Ga("ytp-heat-map-path");this.G=this.Ga("ytp-heat-map-graph");this.D=this.Ga("ytp-heat-map-play");this.B=this.Ga("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.Hv(this.api.getRootNode(),"ytp-heat-map-v2")};
    S3a=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")};
    CW=function(){g.W.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Ka:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ga("ytp-progress-linear-live-buffer");this.C=this.Ga("ytp-ad-progress-list");
        this.G=this.Ga("ytp-load-progress");this.K=this.Ga("ytp-play-progress");this.B=this.Ga("ytp-hover-progress");this.j=this.Ga("ytp-chapter-hover-container")};
    DW=function(a,b){g.Js(a.j,"width",b)};
    T3a=function(a,b){g.Js(a.j,"margin-right",b+"px")};
    U3a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
    V3a=function(){g.W.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
    g.FW=function(a,b){g.LE.call(this,{I:"div",S:"ytp-progress-bar-container",W:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ka:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"},
                {I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Ka:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ka:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",
            W:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.uf=!1;this.Uf=this.Va=this.N=this.Tf=0;this.He=null;this.Ma={};this.Ob={};this.clipEnd=Infinity;this.Ab=this.Ga("ytp-clip-end");this.Dc=new g.DU(this.Ab,!0);this.Cc=this.Ga("ytp-clip-end-exclude");this.Qc=this.Ga("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Ga("ytp-clip-start");this.Zc=new g.DU(this.Kb,!0);this.qa=this.gb=0;this.progressBar=this.Ga("ytp-progress-bar");this.Bb={};this.La={};this.Tb=this.Ga("ytp-chapters-container");
        this.Sf=this.Ga("ytp-timed-markers-container");this.j=[];this.K=[];this.jf={};this.Qf=null;this.Wa=-1;this.rb=this.Ca=0;this.Y=null;this.Vf=this.Ga("ytp-scrubber-button");this.Jg=this.Ga("ytp-scrubber-container");this.Za=new g.Ee;this.Rf=new U3a;this.C=new JF(0,0);this.Db=null;this.D=this.kf=!1;this.wh=null;this.ra=this.Ga("ytp-heat-map-container");this.Dd=this.Ga("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.eb=this.Ga("ytp-fine-scrubbing-container");this.Xd=this.Ga("ytp-fine-scrubbing-edu");
        this.B=void 0;this.Fa=this.Fd=this.Ea=!1;this.tooltip=b.Se();this.addOnDisposeCallback(g.vT(this.tooltip,this.Ab));g.M(this,this.Dc);this.Dc.subscribe("hoverstart",this.G_,this);this.Dc.subscribe("hoverend",this.F_,this);this.T(this.Ab,"click",this.QL);this.addOnDisposeCallback(g.vT(this.tooltip,this.Kb));g.M(this,this.Zc);this.Zc.subscribe("hoverstart",this.G_,this);this.Zc.subscribe("hoverend",this.F_,this);this.T(this.Kb,"click",this.QL);W3a(this);this.T(a,"resize",this.kc);this.T(a,"presentingplayerstatechange",
            this.w9);this.T(a,"videodatachange",this.Wt);this.T(a,"videoplayerreset",this.v9);this.T(a,"cuerangesadded",this.Wea);this.T(a,"cuerangesremoved",this.qda);this.T(a,"onLoopRangeChange",this.GU);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.OI("timedMarkerCueRange"),this.uca);this.T(a,"updatemarkervisibility",this.W2);this.updateVideoData(a.getVideoData(),!0);this.GU(a.getLoopRange());EW(this)&&!this.B&&(this.B=new K3a(this.api,this.tooltip),a=g.Ss(this.element).x||0,this.B.kc(a,this.N),
            this.B.Ja(this.eb),g.M(this,this.B),this.T(this.B.dismissButton,"click",this.Jw),this.T(this.B.playButton,"click",this.jP),this.T(this.B.element,"dblclick",this.jP));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Dd,this,140127,!0);this.api.createClientVe(this.Xd,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
    W3a=function(a){if(a.j.length===0){var b=new CW;a.j.push(b);g.M(a,b);b.Ja(a.Tb,0)}for(;a.j.length>1;)a.j.pop().dispose();DW(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
    X3a=function(a){var b=b===void 0?NaN:b;var c=new R3a(a.api);a.G.push(c);g.M(a,c);c.Ja(a.ra);b>=0&&(c.element.style.width=b+"px")};
    Y3a=function(a){for(;a.K.length;)a.K.pop().dispose()};
    $3a=function(a){var b,c,d,e,f;return(f=g.V((e=g.V((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,yWa))==null?void 0:e.playerBar,Z3a))==null?void 0:f.chapters};
    a4a=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.NI(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.sf("chapterCueRange");a.api.lf(c)};
    i4a=function(a,b){var c,d=(c=a.Bb[b])==null?void 0:c.chapters;d&&(b4a(a,d),a.api.getVideoData().Jk=a.j,a4a(a));var e;if((c=(e=a.Bb[b])==null?void 0:e.markers)&&b!=="HEATSEEKER"){Y3a(a);e=g.v(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new V3a,d=g.V(d,g.c4a)){var f=void 0;c.title=((f=d.title)==null?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=(f=d.timeRangeStartMillis)!=null?f:NaN;var h=f=void 0;c.onActiveCommand=(h=(f=d)==null?void 0:f.onActiveCommand)!=null?h:void 0;d4a(a,c)}e4a(a,
        a.K);e=a.K;c=a.jf;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=w2a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.lf(d)}var l;if(b=g.V((l=a.Bb[b])==null?void 0:l.heatmap,f4a)){l=b.heatMarkers||[];var m;e=(m=b.minHeightDp)!=null?m:0;var n;m=(n=b.maxHeightDp)!=null?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;d===a.G.length&&
    X3a(a);f=[];c&&f.push(c);for(var q=g.v(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,u=void 0,w=(u=(t=g.V(r,g4a))==null?void 0:t.timeRangeStartMillis)!=null?u:-1;w>=h&&w<=p&&f.push(r)}m>0&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;w=d===0;w=w===void 0?!1:w;S3a(h,u);q=p;t=h.j;w=w===void 0?!1:w;var A=1E3/q.length,C=[];C.push({x:0,y:100});for(var E=0;E<q.length;E++){var H=void 0,L=((H=g.V(q[E],g4a))==null?void 0:H.heatMarkerIntensityScoreNormalized)||0;H=(E+.5)*A;L=100-g.ze(L*100,r/
        t*100,u/t*100);E!==0||w||C.push({x:0,y:L});C.push({x:H,y:L});E===q.length-1&&C.push({x:1E3,y:L})}C.push({x:1E3,y:100});q=C;p=p.length===0?"":nBa(q);h.C.setAttribute("d",p);h.ue=p!=="";g.Lv(h.api.getRootNode(),"ytp-heat-map",h.ue);g.Lv(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&p!=="");f.length>0&&(c=f[f.length-1])}g.GW(a);l=[];b=g.v(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.V(e.value,h4a))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:(n=
            e.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(c=e.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(d=e.decorationTimeMillis)!=null?d:NaN,label:m?g.OE(m):""});a.heatMarkersDecorations=l}};
    d4a=function(a,b){a.K.push(b);g.M(a,b);b.Ja(a.Sf,a.Sf.children.length)};
    e4a=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=HW(a,c.timeRangeStartMillis/(a.C.j*1E3),IW(a));g.Js(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
    b4a=function(a,b){var c=0,d=!1;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.V(e,j4a)){e=g.V(e,j4a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.OE(h):"";h=e.timeRangeStartMillis;h!=null&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;c===0&&e.startTime!==0&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new CW,a.j.push(f),g.M(a,f),f.Ja(a.Tb,a.Tb.children.length));a.j[c].startTime=
        e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.GW(a);JW(a)};
    g.GW=function(a){a.Ca=a.j.length-1;a.rb=0;k4a(a,!0)&&k4a(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(a.j[c].width===0){if(c===a.j.length-1)for(var d=a.j.length-1;d>=0;d--)if(a.j[d].width>0){T3a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;DW(a.j[d],e+"px");break}a.j[c].width=0;DW(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,DW(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,DW(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b<
    a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)};
    k4a=function(a,b){var c=0,d=!1,e=a.j.length,f=a.C.j*1E3;f===0&&(f=a.api.getProgressState().seekableEnd*1E3);if(f>0&&a.N>0){for(var h=a.N-(a.D?3:2)*a.Ca,l=a.rb===0?3:h*a.rb,m=g.v(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,T3a(a.j[c],a.D?3:2));g.Lv(a.j[c].j,"ytp-exp-chapter-hover-container",a.j.length>1);n=(f===0?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];r!==void 0&&r.width>
    0?r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);T3a(p.j[q],0);b&&(a.Ca--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
    JW=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=((d=a.api.getVideoData())==null?0:fT(d))&&b.airingStart&&b.airingEnd?l4a(a,b.airingStart,b.airingEnd):l4a(a,b.seekableStart,b.seekableEnd);d=KF(c,b.loaded,0);b=KF(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;KW(a,b,d);e&&m4a(a);n4a(a)}}};
    l4a=function(a,b,c){return o4a(a)?new JF(Math.max(b,a.Db.startTimeMs/1E3),Math.min(c,a.Db.endTimeMs/1E3)):new JF(b,c)};
    p4a=function(a,b){var c;if(((c=a.Db)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[eW(a.j,b.startTimeMs)],g.Lv(b.j,"ytp-repeating-chapter",!1)),a.Db&&(b=a.j[eW(a.j,a.Db.startTimeMs)],g.Lv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Lv(d.j,"ytp-exp-chapter-hover-container",!a.Db)})};
    MW=function(a,b){var c=zza(a.C,b.B);if(a.j.length>1){c=LW(a,b.C,!0);for(var d=0,e=0;e<c;e++)a.j[e].width>0&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?a.C.j*1E3:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
    q4a=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)<4};
    m4a=function(a){a.Vf.style.removeProperty("height");for(var b=g.v(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())r4a(a,c.value);NW(a);KW(a,a.qa,a.gb)};
    IW=function(a){var b=a.Za.x;b=g.ze(b,0,a.N);a.Rf.update(b,a.N);return a.Rf};
    PW=function(a){return(a.D?135:90)-OW(a)};
    OW=function(a){var b=48,c=a.api.U();a.D?b=54:g.kR(c)&&!c.B&&(b=40);return b};
    KW=function(a,b,c){a.qa=b;a.gb=c;var d=IW(a),e=a.C.j,f=zza(a.C,a.qa),h=g.UI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.FF(f,!0),DURATION:g.FF(e,!0)}),l=eW(a.j,f*1E3);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.Db&&a.api.getPresentingPlayerType()!==2&&(e=a.Db.startTimeMs/1E3,f=a.Db.endTimeMs/1E3);e=KF(a.C,e,0);l=KF(a.C,f,1);h=a.api.getVideoData();f=g.ze(b,e,l);c=(h==null?0:g.eT(h))?1:g.ze(c,
        e,l);b=HW(a,b,d);g.Js(a.Jg,"transform","translateX("+b+"px)");QW(a,d,e,f,"PLAY_PROGRESS");(h==null?0:fT(h))?(b=a.api.getProgressState().seekableEnd)&&QW(a,d,f,KF(a.C,b),"LIVE_BUFFER"):QW(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}};
    QW=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=LW(a,l);var m=d*h;h=LW(a,m);e==="HOVER_PROGRESS"&&(h=LW(a,b.j*d,!0),m=b.j*d-s4a(a,b.j*d)*(a.D?3:2));d=Math.max(l-t4a(a,c),0);for(l=c;l<f;l++)a.j[l].Ib(e).style.left=c===l?d+"px":"0";b=HW(a,a.qa,b);for(f=c;f<h;f++){l=a.j[f].Ib(e);var n=a.j[f].width,p=f===c?n-d:n;RW(a,l,p,n);u4a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.ze(m-t4a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Ib(e);RW(a,d,m,f);u4a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)v4a(a,h,e);
        for(h=0;h<c;h++)v4a(a,h,e)};
    t4a=function(a,b){if(b>=a.j.length)return a.N;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
    v4a=function(a,b,c){c=a.j[b].Ib(c);RW(a,c,0,a.j[b].width)};
    u4a=function(a,b,c,d,e,f,h){a.api.L("enable_cairo_refresh_signature_moments_web")&&h==="PLAY_PROGRESS"&&(c=!d||a.api.U().B?1:c/d,a.Qc.clientWidth>0||a.Cc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Qc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Js(b,"background-size",f+"px"),g.Js(b,"background-position-x",a+"px"))};
    RW=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Js(b,"transform","scalex("+(d?c/d:0)+")")};
    LW=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=s4a(a,b)*(a.D?3:2));c=g.v(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
    HW=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.v(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&h.width>0&&e++;return b*(c.j-(a.D?3:2)*a.Ca)+(a.D?3:2)*(e<0?0:e)+c.D};
    s4a=function(a,b){for(var c=a.j.length,d=0,e=g.v(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,f.width!==0)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
    g.w4a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Tf=b;a.N=c;a.D=d;EW(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);m4a(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.GW(a);a.B&&f&&EW(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-OW(a),a.eb.style.height=c+"px",g.Js(a.ra,"transform","translateY("+-d+"px)"),g.Js(a.progressBar,"transform","translateY("+-d+"px)")),O3a(a.B))};
    NW=function(a){var b=!!a.Db&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Db?(c=a.Db.startTimeMs/1E3,d=a.Db.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&d<a.C.j);var h,l;if(((h=a.Db)==null?0:h.postId)||((l=a.Db)==null?void 0:l.type)==="repeatChapter")f=e=!1;g.Lv(a.element,"ytp-loop-range-enabled",b);g.Lv(a.element,"ytp-clip-start-enabled",e);g.Lv(a.element,"ytp-clip-end-enabled",f);b=e?KF(a.C,c,0):0;d=f?KF(a.C,d,1):1;a.Kb.style.left=Math.round(b*1E3)/10+"%";a.Ab.style.left=
        Math.round(d*1E3)/10+"%";a.Qc.style.width=Math.round(b*1E3)/10+"%";a.Cc.style.left=Math.round(d*1E3)/10+"%";a.Cc.style.width=Math.round((1-d)*1E3)/10+"%"};
    n4a=function(a){var b;if((b=a.api.getVideoData())==null||!fT(b)){b=IW(a);QW(a,b,a.qa,Math.max(b.B,a.qa),"HOVER_PROGRESS");for(var c=LW(a,b.j*a.qa,!0),d=LW(a,b.C,!0),e=c;e<=d;e++)g.Lv(a.j[e].B,"ytp-hover-progress-light",b.B>a.qa);g.Lv(a.Vf,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.L("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}};
    r4a=function(a,b){var c=a.Ma[b];b=a.Ob[b];var d=IW(a),e=KF(a.C,c.start/1E3,0),f=jDa(c,a.D)/d.width;var h=KF(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ze(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.D,0)+"px";RW(a,b,g.ze((h-c)*d.j+d.D,0,d.width),d.width,!0)};
    x4a=function(a,b){var c=b.getId();a.Ma[c]===b&&(g.Hf(a.Ob[c]),delete a.Ma[c],delete a.Ob[c])};
    EW=function(a){var b;return!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()};
    SW=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.eb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
    y4a=function(a,b){var c=b/PW(a)*OW(a);g.Js(a.progressBar,"transform","translateY("+-b+"px)");g.Js(a.ra,"transform","translateY("+-b+"px)");g.Js(a.eb,"transform","translateY("+c+"px)");a.eb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=OW(a)-c+"px")};
    z4a=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.DU(a.progressBar,!0),a.Y.subscribe("hovermove",a.zba,a),a.Y.subscribe("hoverend",a.yba,a),a.Y.subscribe("dragstart",a.xba,a),a.Y.subscribe("dragmove",a.Bba,a),a.Y.subscribe("dragend",a.Aba,a),a.wh=a.listen("keydown",a.A4)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Pc(a.wh),a.Y.cancel(),a.Y.dispose(),a.Y=null)};
    o4a=function(a){var b;return!((b=a.Db)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2};
    TW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-remote-button","ytp-button"],W:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},va:"{{icon}}"});this.J=a;this.Eb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);wT(a,this.element,this)};
    UW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":GE(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.Lya()]});this.J=a;this.Eb=b;this.B=!0;this.listen("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);wT(a,this.element,this);this.J.createClientVe(this.element,
        this,28663);this.updateBadge();this.j(a.ob().getPlayerSize())};
    A4a=function(a,b){a.B=!!b;a.j(a.J.ob().getPlayerSize())};
    VW=function(a,b){UT.call(this,"Annotations",g.ZT.E3);this.J=a;this.Eb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
                fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()};
    WW=function(a,b){g.zU.call(this,"Audio track",g.ZT.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.W({I:"div",V:[{I:"span",va:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
                fill:"white"}}]});g.M(this,this.countLabel);this.Nj(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()};
    XW=function(a,b){UT.call(this,"Autoplay",g.ZT.J3);this.J=a;this.Eb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()};
    B4a=function(a,b){g.LT.call(this,g.MT({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Eb=b;this.T(this.element,"click",this.onClick);this.Eb.Rc(this)};
    C4a=function(a,b){var c;g.BR(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",va:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",va:"Settings",W:{href:"/account_downloads"}}]});g.zU.call(this,"Quality",g.ZT.D6,a,b,void 0,void 0,c);this.J=a;this.Ca={};this.Y={};this.D={};this.Fa=new Set;this.j=this.G=!1;this.K="unknown";this.qa="";this.ra=new g.eD;g.M(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap");
        a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Hv(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.fD);this.T(a,"videoplayerreset",this.fD);this.T(a,"onPlaybackQualityChange",this.HU);this.fD();a.createClientVe(this.element,this,137721)};
    E4a=function(a,b,c){var d=a.Ca[b],e=g.KJ[b];return D4a(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
    F4a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=D4a(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",va:d});return a};
    D4a=function(a,b,c,d){b={I:"span",Ka:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";c==="highres"?e="8K":c==="hd2880"?e="5K":c==="hd2160"?e="4K":c.indexOf("hd")===0&&c!=="hd720"&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,va:e}));return b};
    YW=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",W:{type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.B=this.Ga("ytp-input-slider");this.j=d?d:a;this.init();this.T(this.B,"input",this.G)};
    H4a=function(a,b){a.updateValue("slidervalue",a.j);a.B.valueAsNumber=a.j;G4a(a,b)};
    G4a=function(a,b){a.B.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")};
    ZW=function(a){YW.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.yf("P");this.qa=pba(this.Y,this);g.Hv(this.B,"ytp-speedslider");g.Hv(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);I4a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
    I4a=function(a){a.C.textContent=a.j+"x"};
    $W=function(a,b,c,d,e,f,h){g.W.call(this,{I:"div",S:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.N=a;this.Y=b;this.B=c;this.C=d;this.qa=e;this.Ea=f;this.range=this.C-this.B;this.Ma=this.Ga("ytp-slider-section");this.D=this.Ga("ytp-slider");this.ra=this.Ga("ytp-slider-handle");this.K=new g.DU(this.D,
        !0);this.j=h?h:c;g.M(this,this.K);this.K.subscribe("dragmove",this.C4,this);this.T(this.element,"keydown",this.D4);this.T(this.element,"wheel",this.B4);this.init()};
    aX=function(a){$W.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.yf("P");this.Fa=pba(this.Ca,this);g.Hv(this.D,"ytp-speedslider");g.Hv(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);J4a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
    J4a=function(a){a.G.textContent=K4a(a,a.j)+"x"};
    K4a=function(a,b){a=Number(g.ze(b,a.B,a.C).toFixed(2));b=Math.floor((a+.001)*100%5+2E-15);var c=a;b!==0&&(c=a-b*.01);return Number(c.toFixed(2))};
    L4a=function(a){g.LE.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new ZW(a):this.j=new aX(a);g.M(this,this.j);this.element.appendChild(this.j.element)};
    M4a=function(a){var b=new L4a(a);qU.call(this,a,b,"Custom");g.M(this,b)};
    N4a=function(a,b){var c=new M4a(a);g.zU.call(this,"Playback speed",g.ZT.H6,a,b,bX(a)?void 0:"Custom",bX(a)?void 0:function(){g.uU(b,c)});
        a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
                    fill:"white"}}]});g.M(this,c);this.J=a;this.K=null;bX(a)?(this.j=g.UI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);this.Ta()};
    P4a=function(a,b){var c=O4a(b);a.options[c]?a.Pi(c):b===a.D&&a.j&&(a.Pi(a.j),a.Ed(b.toString()))};
    R4a=function(a){g.AU(a,a.G.map(O4a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||bX(a.J))Q4a(a,b),g.zU.prototype.Ig.call(a,a.j)};
    Q4a=function(a,b){a.D=b;a.j=g.UI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(O4a);b.unshift(a.j);g.AU(a,b)};
    O4a=function(a){return a.toString()};
    bX=function(a){return a.L("web_settings_menu_surface_custom_playback")};
    T4a=function(a,b,c,d){var e=new g.rU(b,void 0,"Video Override");g.zU.call(this,d.text||"",a,b,c,"Video Override",function(){g.uU(c,e)});
        var f=this;g.Hv(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();a=d.options;this.settings=g.bc(a,this.IU,this);this.G=e;g.M(this,this.G);b=new g.LT({I:"div",S:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.M(this,b);this.G.Rc(b,!0);this.D=new g.LT({I:"div",S:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"On"}]},-1);g.M(this,this.D);this.G.Rc(this.D,!0);this.T(this.D.element,"click",
            function(){S4a(f,!0)});
        this.j=new g.LT({I:"div",S:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"Off"}]},-2);g.M(this,this.j);this.G.Rc(this.j,!0);this.T(this.j.element,"click",function(){S4a(f,!1)});
        g.AU(this,g.as(a,this.IU))};
    S4a=function(a,b){a.publish("settingChange",a.K+"Override",!b);a.Eb.Zi()};
    cX=function(a,b){g.rU.call(this,a,void 0,"Options");var c=this;this.Iu={};for(var d=0;d<g.gW.length;d++){var e=g.gW[d],f=new T4a(-d,a,b,e);g.M(this,f);f.subscribe("settingChange",this.Ck,this);this.Iu[e.option.toString()]=f;this.Rc(f,!0)}a=new g.LT(g.MT(),-g.gW.length,"Reset");g.M(this,a);a.listen("click",function(){c.Ck("reset",!0)});
        this.Rc(a,!0)};
    dX=function(a,b){g.zU.call(this,"Auto-translate",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
    U4a=function(a,b){a.languages=g.bc(b,a.j,a);g.AU(a,g.as(b,a.j))};
    W4a=function(a,b){var c=new cX(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.BR(a.U())&&(e={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",va:d[0]},{I:"a",S:"ytp-panel-footer-content-link",va:"Settings",W:{href:"/account_playback"}},{I:"span",va:d[1]}]});g.zU.call(this,"Subtitles/CC",g.ZT.SUBTITLES,a,b,"Options",function(){g.uU(b,c)},e);
        var f=this;this.J=a;this.Eb=b;this.tracks={};this.K=new g.Av(function(){V4a(f,!1)},3E3);
        g.M(this,this.K);this.countLabel=new g.W({I:"div",V:[{I:"span",va:"Subtitles/CC"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});g.M(this,this.countLabel);this.Nj(this.countLabel);a.L("web_settings_menu_icons")&&this.setIcon(rZa.includes("en")?{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
                    fill:"white"}}]}:{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new dX(a,b);g.M(this,this.j);this.j.subscribe("select",this.E4,this);this.G=c;g.M(this,this.G);this.G.subscribe("settingChange",this.Ck,this);b.subscribe("show",this.gca,this);this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",
            this.Ta);this.T(a,"captionschanged",this.Ta);a.createClientVe(this.element,this,127300);this.Ta()};
    X4a=function(a){return Object.values(a.tracks).find(function(b){return b.languageCode==="en"&&b.kind==="asr"})};
    eX=function(a,b){a.J.setOption("captions","track",b)};
    V4a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
    Y4a=function(a){g.tU.call(this,a,"ytp-settings-menu");var b=this;this.Pe=new g.rU(this.J);this.CS=this.settingsButton=null;this.isInitialized=this.uL=!1;g.M(this,this.Pe);this.hide();g.uU(this,this.Pe);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Lf(c)});
        this.T(a,"highlightSettingsMenu",function(){b.uL=!0;b.wd()});
        this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.uL=!0,b.wd(),c==="menu_item_video_quality_advanced")){var d;(d=b.CS)==null||d.open()}})};
    Z4a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
    fX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-subtitles-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[sZa()]});this.J=a;this.tooltip=b.Se();this.T(a,"videodatachange",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",this.Ta);this.T(a,"captionschanged",this.Ta);
        this.J.createClientVe(this.element,this,127299);this.Ta();this.listen("click",this.onClick);this.addOnDisposeCallback(g.vT(b.Se(),this.element))};
    $4a=function(a){return g.wV(a.J.zb())!=null?g.wV(a.J.zb()).xT()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
    g.hX=function(a,b,c){c=c===void 0?350:c;g.W.call(this,{I:"div",Ka:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",va:"{{clipicon}}"},{I:"span",V:[{I:"span",S:"ytp-time-current",va:"{{currenttime}}"},{I:"span",S:"ytp-time-separator",va:" / "},{I:"span",S:"ytp-time-duration",va:"{{duration}}"}]},{I:"span",S:"ytp-clip-watch-full-video-button-separator",va:"\u2022"},{I:"span",S:"ytp-clip-watch-full-video-button",va:"{{watchfullvideo}}"}]});this.api=a;this.N=c;this.liveBadge=new g.W({I:"button",
        Ka:["ytp-live-badge","ytp-button"],W:{disabled:"true"},va:"{{content}}"});this.j=null;this.sF=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Db=this.D=this.C=null;this.Y=this.Ga("ytp-clip-watch-full-video-button");this.liveBadge.Ed("Live");g.M(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Se();this.listen("click",this.onClick);this.T(this.Y,"click",this.Dca);this.T(a,"presentingplayerstatechange",this.Tc);this.T(a,"appresize",this.Tc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
        this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Tc();a=a.getLoopRange();b=this.Db!==a;this.Db=a;b&&gX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
    gX=function(a){a.updateValue("clipicon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
        a.sF&&!a.B?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Lv(a.element,"ytp-clip",iX(a));g.Lv(a.element,"ytp-live",jX(a))};
    jX=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.sF&&!iX(a)&&(!b||!a.B)};
    iX=function(a){return!!a.Db&&!!a.Db.postId&&a.api.getPresentingPlayerType()!==2&&(!a.Db.type||a.Db.type==="clips")};
    b5a=function(a,b){g.W.call(this,{I:"div",S:"ytp-volume-panel",W:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-volume-slider",V:[{I:"div",S:"ytp-volume-slider-handle"}]}]});var c=this;this.api=a;this.K=b;this.Qm=!1;this.Y=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Gh();this.N=this.Ga("ytp-volume-slider");this.qa=this.Ga("ytp-volume-slider-handle");
        this.D=new g.DU(this.N,!0);g.M(this,this.D);this.D.subscribe("dragstart",this.lca,this);this.D.subscribe("dragmove",this.G4,this);this.D.subscribe("dragend",this.kca,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.JU);this.T(a,"fullscreentoggled",this.Rx);this.T(a,"onShowControls",this.pX);this.T(a,"onHideControls",this.pX);this.T(this.element,"keydown",this.H4);this.T(this.element,"focus",function(){kX(c,c.j,c.isDragging,!0,c.api.Qm())});
        this.T(this.element,"blur",function(){kX(c,c.j,c.isDragging,!1,c.api.Qm())});
        this.JU(a.ob().getPlayerSize());a5a(this,a.getVolume(),a.isMuted());wT(a,this.element,this)};
    a5a=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.qa.style.left=(a.C?60:40)*c+"px";a.volume=b};
    c5a=function(a,b){g.Lv(a.element,"ytp-volume-control-hover",b);kX(a,b,a.isDragging,a.B,a.api.Qm())};
    kX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.Qm;a.j=b;a.isDragging=c;a.B=d;a.Qm=e;b=a.j||a.isDragging||a.B||a.Qm;f!==b&&(b?a.G=a.T(a.element,"wheel",a.F4):(a.Pc(a.G),a.G=null),g.Lv(a.K,"ytp-volume-slider-active",b))};
    lX=function(a,b){var c=a.U(),d=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&d.push("no-link");var e={title:"{{title}}",target:c.Y,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(e.href="{{url}}");g.W.call(this,{I:"a",Ka:d,W:e,va:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;c.C||(this.j=this.listen("click",this.onClick));this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.onVideoDataChange);this.T(a,"onLoopRangeChange",
        this.onVideoDataChange);this.T(a,"appresize",this.kc);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.vT(b.Se(),this.element));this.kc()};
    d5a=function(a,b,c){g.IJ.call(this);var d=this;this.J=a;this.Oe=b;this.Kg=c;this.gb=NaN;this.Wa=this.Za=null;this.B=new Y4a(this.J);this.progressBar=new g.FW(this.J,this.Oe);this.qa=this.Y=this.G=null;this.Ca=new g.hX(this.J,this.Oe);this.Va=this.playButton=this.D=this.K=this.Sa=this.Ma=null;this.eb=new w3a(this.J,this.Oe);this.Z=new g.zv(this.I4,null,this);this.ra=null;c=a.U();this.Kg.subscribe("autohideupdate",this.uB,this);var e=!a.getPlayerStateObject().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
        this.Wa=f=new r3a(a):f=new g.W({I:"div",S:"ytp-gradient-bottom"});g.M(this,f);g.FT(a,f.element,9);this.Ea=new g.oF(f,250,e,100);g.M(this,this.Ea);this.C=new g.W({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.M(this,this.C);g.FT(a,this.C.element,9);this.Fa=new g.oF(this.C,250,e,100);g.M(this,this.Fa);this.La=this.C.element.children[0];g.M(this,this.B);g.FT(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.mH(!l);a.kT(d.B,l)});
        g.M(this,this.progressBar);this.progressBar.Ja(this.C.element,0);e=new vW(a,b);g.M(this,e);g.FT(a,e.element,4);e=new g.HE({I:"div",S:"ytp-left-controls"});g.M(this,e);e.Ja(this.La);f=new g.AW(a,b,!1);g.M(this,f);f.Ja(e.element);a.L("web_render_jump_buttons")&&(this.Y=new wW(a,g.hI(a.U().experiments,"web_jump_button_backward_amount")||-10),g.M(this,this.Y),this.Y.Ja(e.element));c.Sa||(this.playButton=new g.zW(a,b),g.M(this,this.playButton),this.playButton.Ja(e.element));a.L("web_render_jump_buttons")&&
        (this.qa=new wW(a,g.hI(a.U().experiments,"web_jump_button_forward_amount")||10),g.M(this,this.qa),this.qa.Ja(e.element));f=new g.AW(a,b,!0);g.M(this,f);f.Ja(e.element);f=new g.W({I:"span",S:"ytp-volume-area"});g.M(this,f);f.Ja(e.element);if(!c.Zc&&(this.G=new z3a(a,b),g.M(this,this.G),this.G.Ja(f.element),c.Va&&!c.Z)){var h=new b5a(a,this.C.element);this.Va=h;g.M(this,h);h.Ja(f.element);f=new g.DU(f.element);g.M(this,f);f.subscribe("hoverstart",function(){var l;(l=d.Va)==null||c5a(l,!0)});
            f=new g.DU(e.element);g.M(this,f);f.subscribe("hoverend",function(){var l;(l=d.Va)==null||c5a(l,!1)})}g.M(this,this.Ca);
        this.Ca.Ja(e.element);this.j=new g.HE({I:"div",S:"ytp-right-controls"});g.M(this,this.j);this.Ma=new uW(a,this.progressBar);g.M(this,this.Ma);this.Ma.Ja(e.element);c.L("web_key_moments_markers")&&(this.Sa=new xW(a,this.progressBar),g.M(this,this.Sa),this.Sa.Ja(e.element));this.j.Ja(this.La);e=new fX(a,b);g.M(this,e);e.Ja(this.j.element);e=new UW(a,this.B);g.M(this,e);Z4a(this.B,e);e.Ja(this.j.element);e=a.getVideoData();if(c.xn||e.Jf&&c.controlsType==="1")this.K=new lX(a,b),g.M(this,this.K),this.K.Ja(this.j.element);
        c.showMiniplayerButton&&(this.D=new yW(a),g.M(this,this.D),this.D.Ja(this.j.element));c.Dj&&(b=new TW(a,this.B),g.M(this,b),b.Ja(this.j.element));c.Zl&&(b=new sW(a),g.M(this,b),b.Ja(this.j.element));g.M(this,this.eb);this.eb.Ja(this.j.element);g.M(this,this.Z);this.T(a,"appresize",this.kc);this.T(a,"fullscreentoggled",this.kc);this.T(a,"presentingplayerstatechange",this.kU);this.T(a,"videodatachange",this.onVideoDataChange);this.kc()};
    e5a=function(a,b){a.J.getPlayerStateObject().isCued()||b?b&&(a.Fa.hide(),a.Ea.hide(),a.G&&a.G.Mc(!1),a.K&&a.K.Mc(!1),a.D&&a.D.Mc(!1),a.J.wm(a.Ib())):b||(a.Fa.show(),a.Ea.show(),a.G&&a.G.Mc(!0),a.K&&a.K.Mc(!0),a.D&&a.D.Mc(!0),a.uB())};
    g5a=function(a){var b=a.J.ob().getPlayerSize().width;return Math.max(b-f5a(a)*2,100)};
    f5a=function(a){var b=a.J.Gh(),c=a.J.getVideoData().Jf,d=0;a.J.Gh()&&a.J.hd()&&(d=(a.J.ob().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
    h5a=function(a){var b=a.J.Gh()?72:50;a=a.J.U();g.BR(a)&&(b=62,g.pR(a)&&(b=54));return b};
    i5a=function(a){pU.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.OI("suggested_action_button_visible"),function(c){c=c.id;b.text=c;i_a(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Lf()});
        this.T(this.J,g.PI("suggested_action_button_visible"),function(c){b.enabled=!1;b.Lf();b.J.removeCueRange(c.id)})};
    j5a=function(a){a.suggestedActions={};a.J.sf("suggested_action_button_visible")};
    nX=function(a){g.W.call(this,{I:"div",S:mX.TITLE,V:[{I:"div",S:mX.TEXT,V:[{I:"a",Ka:[mX.LINK,mX.SESSIONLINK],W:{target:a.U().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},va:"{{title}}"},{I:"div",S:mX.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ga(mX.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
    k5a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.pR(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
    g.oX=function(a,b){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",W:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{I:"span",va:"{{eduText}}"}]},{I:"div",S:"ytp-tooltip-image"},{I:"div",S:"ytp-tooltip-title",V:[{I:"span",va:"{{title}}"}]},{I:"span",S:"ytp-tooltip-text",va:"{{text}}"}]},
            {I:"div",S:"ytp-tooltip-bg",V:[{I:"div",S:"ytp-tooltip-duration",va:"{{duration}}"}]}]});var c=this;this.api=a;this.Va=b;this.env=this.api.U();this.La=this.env.B;this.bg=this.Ga("ytp-tooltip-bg");this.Sa=this.Ga("ytp-tooltip-edu");this.image=this.Ga("ytp-tooltip-image");this.text=this.Ga("ytp-tooltip-text");this.title=this.Ga("ytp-tooltip-title");this.ra=function(d){(d=d.relatedTarget)&&g.Jf(c.j,d)||c.Yh()};
        this.G=function(d){c.type===3&&c.Yh();(d=d.currentTarget)&&d.nodeType===1&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.ra),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.ra),l5a(c,d,2))};
        this.Fa=function(){c.Yh()};
        this.j=null;this.K=new g.oF(this,100);this.type=null;this.qa=!1;this.B=null;this.D=NaN;this.C="";this.KU=this.api.ob().getPlayerSize().width;this.Y=!0;this.scale=1;this.N=160;this.Ca=90;this.Ea=new g.Av(this.p$,250,this);this.Ma=new g.Av(this.Yh,5E3,this);g.M(this,this.K);g.M(this,this.Ea);g.M(this,this.Ma);hR&&(a=this.Ga("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));t3a(this.api)&&(this.N=243,this.Ca=141,g.Hv(this.api.getRootNode(),"ytp-bigboards"))};
    g.vT=function(a,b){if(a.La)return function(){};
        b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Yh();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
    l5a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.CB("showElementTooltip called with non-element.",b.toString()),g.jE(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.qa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Fv(a.element,"ytp-tooltip");g.Hv(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});g.Lv(a.element,"ytp-tooltip-image-enabled",
        !!e);b=b.getAttribute("data-tooltip-opaque");g.Lv(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Fa);a.Y&&(m5a(a),a.K.show(0))}};
    m5a=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.C&&a.j.getAttribute("aria-label")!==a.C)var c=a.C;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.UI("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.qa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.N*a.scale;var f=
        a.Ca*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.Iv(a.element,["ytp-text-detail","ytp-preview"]);g.Lv(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Kv(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);n5a(a,!!b)}};
    n5a=function(a,b,c,d){var e=Math.min(a.KU,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Va.Zx(a.element,a.j,c,a.type===1,d);a.element.style.top?g.Hv(a.element,"ytp-bottom"):a.element.style.bottom&&g.Hv(a.element,"ytp-top");a.type===3&&a.Ma.start()};
    o5a=function(a,b){g.Lv(a.element,"ytp-preview",b>=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=PWa(a.B,a.D,b);s3a(a.bg,d,b,c,!0);a.Ea.start()}};
    p5a=function(a){var b=a.j;a.type===3&&a.Ma.stop();a.api.removeEventListener("appresize",a.Fa);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null};
    r5a=function(a){g.W.call(this,{I:"button",Ka:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.kR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",va:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",va:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;WYa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize",
        this.hD);this.T(a,"videodatachange",this.hD);this.T(a,"presentingplayerstatechange",this.hD);this.hD();a=this.J.U();var b=g.vB("yt-player-watch-later-pending");a.D&&b?(jQa(),q5a(this)):this.Ta(2);g.Lv(this.element,"ytp-show-watch-later-title",g.kR(a));wT(this.J,this.element,this)};
    s5a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.kR(c)&&g.CT(a.J)&&g.vF(a.J.getPlayerStateObject(),128),f=c.C;return c.He&&b.width>=240&&!d.isAd()&&d.He&&!e&&!g.gT(d)&&!a.J.hd()&&!f};
    t5a=function(a,b){B1a(g.wR(a.J.U()),"wl_button",function(){jQa({videoId:b});window.location.reload()})};
    q5a=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.Dm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
        a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.rH(a.element);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_ADDED")};
        KG(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.ib("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
    u5a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=tZa();break;case 1:c=rya();break;case 2:c={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
            Ic:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
    g.pX=function(){g.NV.apply(this,arguments);this.nK=(this.Rr=g.kR(this.api.U()))&&(this.api.U().B||XA()||Ara());this.wO=48;this.xO=69;this.gE=this.Di=null;this.Ku=[];this.tM=this.ri=this.uM=this.Fw=this.le=null;this.GH=[];this.contextMenu=this.Fg=this.overflowButton=this.ji=this.Yg=this.searchButton=this.In=this.shareButton=this.hp=this.Ug=this.title=this.channelAvatar=this.LB=this.tooltip=null;this.eO=!1;this.GG=this.tx=this.DE=this.EE=null;this.jS=this.dR=this.KO=!1};
    v5a=function(a){var b=a.api.U(),c=g.vF(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()};
    w5a=function(a){if(a.Qg()&&!a.api.hd()&&a.ji){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.hp||b&&!s5a(a.hp)||A2a(a.ji,a.hp);!a.shareButton||b&&!K2a(a.shareButton)||A2a(a.ji,a.shareButton);!a.In||b&&!Q1a(a.In)||A2a(a.ji,a.In)}else{if(a.ji){b=a.ji;for(var c=g.v(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Jf(a.Ug.element,a.searchButton.element)&&a.searchButton.Ja(a.Ug.element);a.hp&&!g.Jf(a.Ug.element,a.hp.element)&&a.hp.Ja(a.Ug.element);
        a.shareButton&&!g.Jf(a.Ug.element,a.shareButton.element)&&a.shareButton.Ja(a.Ug.element);a.In&&!g.Jf(a.Ug.element,a.In.element)&&a.In.Ja(a.Ug.element)}};
    x5a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(Ns(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=x5a(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
    y5a=function(a,b,c){if(a.api.U().L("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(d==null?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.GG){if(!(b=!b)){var f,h,l;b=((f=d.tooltipDisplayStrategy)==null?void 0:f.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((h=d.promoConfig)==null?void 0:h.promoId)!=="dtip-edu-player-iseecaptions"&&((l=d.promoConfig)==null?void 0:l.promoId)!=="dtip-edu-player-tc-m2"}e=b}e&&(a.GG=new E2a(d,a.api),g.M(a,a.GG),g.FT(a.api,a.GG.element,
        9));var m;(m=a.GG)==null||I2a(m,d,c)}}};
    g.qX=function(a){g.eV.call(this,a);this.chrome=null;this.load()};
    rX=function(a,b,c,d){function e(h){var l=!(h.status!==204&&h.status!==200&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:((m=h.response)==null?void 0:m.byteLength)||0,rt:((0,g.fC)()-f).toFixed(),shost:g.zn(a),trigger:b};z5a(h,a);c&&c(h);d&&!l&&d(new BJ("pathprobe.net",h))}
        var f=(0,g.fC)();g.EA(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
    z5a=function(a,b){var c;((c=window.performance)==null?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed(),A5a&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
    sX=function(a){g.I.call(this);var b=this;this.X=a;this.j=new Map;this.D=[];this.B=this.X.experiments.fb("html5_onesie_trusted_hosts_for_all")||!dN();this.Y=g.hI(this.X.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Av(this.N,this.Y,this);this.K=-1;this.rd={dqb:function(){return b.j},
        jqb:function(){return b.G},
        eqb:function(){return B5a}};
        g.M(this,this.Z);C5a(this,g.vB("yt-player-bandaid-host"));this.G=this.load();this.Y&&this.G.then(function(){b.N()})};
    C5a=function(a,b){var c=b==null?void 0:b.primary;a.C(0,c);c=c?D5a(c):void 0;a.C(2,c);a.C(1,b==null?void 0:b.secondary)};
    tX=function(a,b){return new g.cP("https://"+b+a.X.Pk.baseUrl)};
    E5a=function(a,b){a="https://"+eP(b.location)+"/initplayback?c="+g.RQ(a.X)+"&owc=1";rX(a,"pw",function(c){c.ht=b.j})};
    uX=function(a,b,c,d){rX("https://"+b+"/videoplayback?probe=1",c,function(e){!d.L("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.L("html5_onesie_probe_ec_hosts")||d.oK||d.cQ();a.D.push(e)},function(e){a.D.push(e.details)})};
    D5a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(b===1?2:b-1)+"---"})};
    G5a=function(a,b){var c,d,e,f,h,l,m,n;return g.G(function(p){if(p.j==1){c=tX(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(Math.random()*1E5));if(b===1||b===2)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");b===2&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.z(p,GA(c.Ce(),d),2)}e=p.B;if(e.xhr.status!==200||!e.xhr.responseText)return p.return(Promise.reject(new g.CB("b204258371_no_host",c.Ce(),e.xhr.status)));f=new g.cP(e.xhr.responseText);
        h=eP(f);l=f.get("ms");m=tX(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&F5a(h)?b!==2||vX(h)?p.return(m):p.return(Promise.reject(new g.CB("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.CB("b204258371_invalid",h,l)))})};
    H5a=function(a){var b=a.D;a.D=[];return b};
    F5a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
    vX=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
    I5a=function(a,b){this.location=a;this.j=b};
    J5a=function(){for(var a=wX.length;a<4;a++){var b=g.yf("VIDEO");b.load();wX.push(new g.LU(b))}};
    K5a=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.Ef()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Ke())&&d.isView()&&(d=d.mediaElement);if(d&&d.Sw().length>12&&g.LS(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&ES(f)&&(d=b.dA(),l=
        c.dA());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(RJ(d)||RJ(l)))return{msg:"av1"};b=a.B&&f.nk()&&jK();if(l.containerType!==d.containerType)if(b)f.ma("sgap",{ierr:"container"});else return{msg:"container"};if(g.LS(f)&&g.LS(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.GJ)if(b)f.ma("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels||
        2)?{msg:"channel-count"}:a.D&&f.nk()&&d.video.fps!==l.video.fps?{msg:"fps"}:null};
    L5a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Dl||e.Dl)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.zo())return{nq:"no-empty"};a=K5a(c,a,b,Infinity);return a!=null?{nq:a.msg}:null};
    xX=function(a){g.I.call(this);this.app=a;this.D=this.C=this.ub=this.j=null;this.B=1;this.events=new g.IJ(this);this.events.T(this.app.Ua,g.PI("gaplessshortslooprange"),this.N);g.M(this,this.events)};
    M5a=function(){this.j=this.C=this.G=this.D=this.B=!1};
    N5a=function(a){var b=new M5a;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b};
    g.yX=function(a,b,c,d){d=d===void 0?!1:d;tK.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
    O5a=function(a,b,c,d,e,f){f=f===void 0?0:f;g.I.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.zd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Mq=new sK;this.pn=d-b.Lc()*1E3;this.Mq.then(void 0,function(){});
        this.timeout=new g.Av(function(){h.Dg("timeout")},1E4);
        g.M(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
    U5a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.G(function(q){if(q.j==1){if(a.Na())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.zX.Js();return g.z(q,a.Mq,2)}g.zX.Ar("gtfta",b);c=a.j.Ke();if(c.isEnded())return a.Dg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!mK(a.D))return a.Dg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Gr()!==a.D)return a.Dg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
        "")));d=P5a(a);e=d.v_;f=d.BX;h=d.t_;a.j.Lj(!1,!0);l=Q5a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.XE();a.zd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.lH(m.OB,m.PB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{bx:!0,UT:3,jd:"gapless_pseudo"}),l.play()||KA());n=c.qc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.ma("gapless",n);a.j.ma("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();R5a(a.j,f,
        !1,p,a.B.getVideoData().clientPlaybackNonce);R5a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.IT=!0;a.zd.U().L("html5_gapless_monitor_pbs")&&a.G===1&&S5a(a.B);g.dg(function(){!a.B.getVideoData().ra&&a.B.getPlayerState().isOrWillBePlaying()&&T5a(a.B)});
        AX(a,6);a.dispose();return q.return(Promise.resolve())})};
    Z5a=function(a){if(a.B.getVideoData().C){var b=a.zd.U().L("html5_gapless_suspend_next_loader")&&a.G===1;V5a(a.B,a.D,b,W5a(a));AX(a,3);X5a(a);var c=Y5a(a);b=c.sT;c=c.N1;b.subscribe("updateend",a.Uy,a);c.subscribe("updateend",a.Uy,a);a.Uy(b);a.Uy(c)}};
    X5a=function(a){a.j.unsubscribe("internalvideodatachange",a.Gn,a);a.B.unsubscribe("internalvideodatachange",a.Gn,a);a.zd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Gn,a),a.B.unsubscribe("internalvideoformatchange",a.Gn,a));a.j.unsubscribe("mediasourceattached",a.Gn,a);a.B.unsubscribe("statechange",a.LU,a)};
    Q5a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.yX(a,b,c,d)};
    AX=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.Mq.resolve())};
    W5a=function(a){return a.zd.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&yS(a.j.getVideoData())};
    P5a=function(a){var b=a.j.Ke();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:BX(a.j,!0);c=Math.min(a.pn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Ef()+d;return{T7:b,v_:a,BX:c,t_:Infinity}};
    Y5a=function(a){return{sT:a.C.j.Kd,N1:a.C.B.Kd}};
    a6a=function(a){g.I.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.C=this.D=null;this.N=N5a(this.app.U());this.K=function(){g.dg(function(){$5a(b)})}};
    b6a=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.zo()||CX(a);a.D=new sK;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Uc(),m=l.getVideoData().isLivePlayback?Infinity:BX(l,!0)*1E3;f>m&&(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.OI("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.NI(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,BX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,BX(b)+m)),h=oUa(f,l)||d,h!==d&&a.j.ma("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Dd=!0;d.getVideoData().Y=!0;g.DX(d,!0);f={};a.B&&(f=g.uM(a.B.vc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.ma("queued",f);b!==0&&d.seekTo(b+.01,{bx:!0,UT:3,jd:"videoqueuer_queued"});a.C=new O5a(a.N,a.app.Uc(),a.j,c,a.app,e);c=a.C;c.status.status!==
    Infinity&&(AX(c,1),c.j.subscribe("internalvideodatachange",c.Gn,c),c.B.subscribe("internalvideodatachange",c.Gn,c),c.zd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Gn,c),c.B.subscribe("internalvideoformatchange",c.Gn,c)),c.j.subscribe("mediasourceattached",c.Gn,c),c.B.subscribe("statechange",c.LU,c),c.j.subscribe("newelementrequired",c.P_,c),c.Gn());return a.D};
    $5a=function(a){var b,c,d,e,f,h,l,m,n;g.G(function(p){switch(p.j){case 1:if(a.Na()||!a.D||!a.j)return p.return();a.Z&&EX(a.app.Uc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Uc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ia(2);break}g.Ba(p,3);return g.z(p,U5a(a.C),5);case 5:g.Ca(p,2);break;case 3:d=e=g.Da(p);case 2:if(!a.j)return p.return();g.zX.Po("vqsp",function(){FX(a.app,a.j)});
        f=a.j.Ke();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.zX.Po("vqpv",function(){a.app.playVideo()});
        if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.ma("gapfulfbk",{r:h}),c6a(a.j,h)):(m=a.B)==null||m.ma("gapsp",{});n=a.D;CX(a);n&&n.resolve();return p.return(Promise.resolve())}})};
    CX=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.OI("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(a.C.status.status!==6&&(c=a.C,c.status.status!==Infinity&&c.G!==1&&c.Dg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.sT(a.app,1)&&a.j!==a.app.Uc()&&a.j.dispose();a.j&&b&&GX(a.j);a.j=null;a.Z=!1};
    d6a=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1};
    e6a=function(a,b,c){if(a.zo())return"qie";if(a.j==null||a.j.Na()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.qe())return"vinm";if(d6a(a)<=0)return"ivd";if(c!==1)return"upt";var d;(d=a.C)==null?a=void 0:d.getStatus().status!==5?a="niss":K5a(d.policy,d.j,d.B,d.pn)!=null?a="pge":(c=Y5a(d),b=c.sT,a=g.hI(d.zd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=cK(c.N1.Je(),d),b=cK(b.Je(),d),a=!(a>0)||c&&b?null:"neb");return a!=null?a:null};
    f6a=function(){var a=csa();return!(!a||a==="visible")};
    h6a=function(a){var b=g6a();b&&document.addEventListener(b,a,!1)};
    i6a=function(a){var b=g6a();b&&document.removeEventListener(b,a,!1)};
    g6a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[bsa+"VisibilityState"])return"";a=bsa+"visibilitychange"}return a};
    j6a=function(){g.DE.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.Lf()};
        h6a(this.G);this.K=this.getVisibilityState(this.Zh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ju(),this.IA(),this.PA(),this.qk())};
    D_a=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.ju()||a.IA()||a.PA()||a.qk())};
    HX=function(a,b){g.I.call(this);var c=this;this.policy=a;this.jb=b;this.B=0;this.j=null;this.zf=[];this.C=null;this.rd={Un:function(){return c.jb}};
        this.jb.length===1||g.bs(this.jb,function(d){return!!d.range})};
    IX=function(a,b,c){a.j&&(mN(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.v(a.jb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(ZP(h)&&!c&&a.B+b.totalLength-e<d+h.B){a.j=b.split(e).jn;break}a:{var l=a;var m=h,n=a.B-d,p=b.totalLength-e;m.range&&(p=Math.min(m.B-n,p));m=WSa(m,m.Sb+n,p,m.range?m.Sb+n+p===m.range.length:!!c);n=nN(b,e,p);m=new mQ(m,n);if(l.policy.useUmp&&l.zf.length&&(n=oQ(l.zf[l.zf.length-1],m))){l.zf[l.zf.length-1]=n;l=p;break a}l.zf.push(m);l=p}a.B+=l;e+=
        l;d+=h.B;if(e===b.totalLength)break}};
    JX=function(a){g.I.call(this);this.D=a;this.logger=new g.CQ("onesie");this.bd=new Map;this.B=this.j=!1;this.Ue=this.manifest=null;this.C=!1};
    k6a=function(a,b,c){a.bd.get(b).Cg=c};
    LX=function(a,b){a.bd.has(b)&&(KX?a.bd.get(b).Cj.clear():a.bd.get(b).zf=new lN,l6a(a,b),a.B=!0)};
    m6a=function(a){for(var b=g.v(a.bd),c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d.PD||LX(a,c)}};
    n6a=function(a,b){b=a.bd.get(b);if(!b)return 0;a=0;if(b.jb.length>0){b=g.v(b.jb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.UF.length>0)for(c=g.v(b.UF),d=c.next();!d.done;d=c.next())a+=d.value.Bs||0;return a+b.kZ};
    o6a=function(a,b){if(KX){var c=0;a=a.bd.get(b);if(a==null||!a.Cj)return 0;a=g.v(a.Cj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return((c=a.bd.get(b))==null?void 0:c.zf.totalLength)||0};
    MX=function(a,b){a=a.bd.get(b);if(KX){if(a==null||!a.PD)return!1;b=a.Cj.size>0;return a.Dx.length>0||b}return!(a==null||!a.PD)&&!(a==null||!a.zf.totalLength)};
    p6a=function(a,b){var c=a.bd.get(b),d=n6a(a,b),e=!d&&!!c.bytesReceived;if(KX){var f;if((f=a.manifest)==null?0:f.dc){a=g.v(c.Cj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.lx)return!1;return e}}else if(f=a.ix(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.Bz+o6a(a,b)===c.bytesReceived};
    q6a=function(a,b,c){a.bd.set(b,{zf:new lN,Bz:0,bytesReceived:0,kZ:0,zS:!1,Pg:!1,ix:!1,Fh:c,cT:[],jb:[],UF:[],PD:!1,Cj:new Map,uH:new Map,Dx:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
    r6a=function(a,b,c,d){c.jb.push.apply(c.jb,g.ra(d));if(KX){c.uH.has(b)||c.uH.set(b,[]);var e;(e=c.uH.get(b)).push.apply(e,g.ra(d))}else if(c.dg)for(a=g.v(d),b=a.next();!b.done;b=a.next())c.dg.jb.push(b.value);else{c.dg=new HX(a.Ue,[].concat(g.ra(c.jb)));var f;((f=a.Ue)==null?0:f.Yd)&&g.M(a,c.dg)}};
    s6a=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.K.get(b);if(!e)return[];if(c.uo){var f;return((f=e.Qw(0,c.clipId))==null?void 0:f.jb)||[]}if(e.Nm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if(((l=a.Ue)==null?0:l.C)&&c.timeRange){var m;h=(m=c.timeRange.rh)!=null?m:-1;var n;d=(n=c.timeRange.rE)!=null?n:-1;var p;f=(p=c.timeRange.uv)!=null?p:-1}if(c.fC<0||c.Fq<0||d<0||h<0||c.Bs<0||f<0)return LX(a,b),[];a=VP(c.fC,c.Bs);b=c.YK||0;return[new XP(3,e,a,"makeSliceInfosMediaBytes",c.Fq-1,h/f,d/
        f,b,a.length-b,void 0,c.Mj,c.clipId)]}if(c.Fq<0)return LX(a,b),[];var q;return((q=a.manifest)==null?0:q.dc)?(b=e.Oj,l=b*e.info.tb,a=((h=a.Ue)==null?0:h.Cc)?c.YK:void 0,[new XP(3,e,void 0,"makeSliceInfosMediaBytes",c.Fq,void 0,b,a,l,!0,c.Mj,c.clipId)]):[]};
    t6a=function(a,b,c){a.manifest=b;a.Ue=c;b=g.v(a.bd);for(c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;for(var e=g.v(d.cT),f=e.next();!f.done;f=e.next()){f=f.value;var h=s6a(a,c,f);r6a(a,f.Xp,d,h)}}};
    u6a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength});
        (a=a.bd.get(c))&&!a.Pg&&(KX?(a.Cj.has(b)||a.Cj.set(b,{data:new lN,FI:0,lx:!1}),mN(a.Cj.get(b).data,d)):mN(a.zf,d),a.bytesReceived+=d.totalLength,a.zS=!0)};
    l6a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
        var c=a.bd.get(b);c&&!c.Pg&&(c.Pg=!0,c.Cg&&c.Cg(),v6a(a)&&a.D.B_())};
    v6a=function(a){a=g.v(a.bd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Pg)return!1;return!0};
    NX=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)};
    w6a=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.ra(new Uint8Array(c))));a.close()}return b};
    B6a=function(a){var b=a.experiments,c=b.fb.bind(b);x6a=c("html5_use_async_stopVideo");y6a=c("html5_pause_for_async_stopVideo");z6a=c("html5_not_reset_media_source");pFa=c("html5_rebase_video_to_ad_timeline");nK=c("html5_not_reset_media_source");A6a=c("html5_not_reset_media_source");aFa=c("html5_retain_source_buffer_appends_for_debugging");A_a=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(OX=!0);var d=g.hI(b,"html5_cobalt_override_quic");
        d&&NX("QUIC",+(d>0));(d=g.hI(b,"html5_cobalt_audio_write_ahead_ms"))&&NX("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&NX("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&NX("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.hI(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,
                e)}});
        VUa(a.G);KX=c("html5_use_ump_request_slicer");A5a=c("html5_record_now");c("html5_disable_streaming_xhr")&&(SQ=!1);c("html5_pr_start_secs")&&(wYa=!0);g.hI(a.experiments,"html5_byterate_soft_cap_mweb")&&(NO=!0);c("html5_use_non_active_broadcast_for_post_live")&&(mTa=!0)};
    C6a=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")};
    D6a=function(a){if(a.experiments.fb("html5_cobalt_auto_apply_h5vcc_flags"))for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=C6a(b),d=g.hI(a.experiments,b);c&&d&&NX(c,d)}};
    PX=function(a,b,c,d,e){e=e===void 0?[]:e;g.I.call(this);this.X=a;this.pc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
    E6a=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.v(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.v(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.v(f.segments),l=h.next();!l.done;l=h.next())(l=QX(l.value))&&d.push(l);f.removeAll()}}}(c=QX(b))&&d.push(c);d=g.v(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
    RX=function(a,b,c,d){if(!a.j||b>c)return!1;b=new PX(a.X,b,c,a.j,d);d=g.v(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=QX(c);e&&e!==QX(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};
    SX=function(a,b){return a.B.get(b)};
    F6a=function(a,b,c){a.B.set(b,c)};
    TX=function(a,b,c,d,e,f){return new G6a(c,c+(d||0),!d,b,a,e,f)};
    G6a=function(a,b,c,d,e,f,h){g.I.call(this);this.pc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.DK=h;this.j=new Map;OXa(f)};
    QX=function(a){return a.videoData.clientPlaybackNonce};
    H6a=function(a){if(a.j.size)for(var b=g.v(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
    I6a=function(a){this.end=this.start=a};
    g.UX=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.ea=c;this.Ea=new Map;this.eb=new Map;this.Ma=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.Bb=this.Za=this.Kb=null;this.Ab=new g.Av(function(){J6a(d,d.Ob,d.Kb||void 0)});
        this.events=new g.IJ(this);this.Jb=15E3;this.Z=new g.Av(function(){d.Ca=!0;var e=d.ea,f=d.Jb;e.ma("sdai",{aftimeout:f});e.Sd(new BJ("ad.fetchtimeout",{timeout:f}));K6a(d);d.fF(!1)},this.Jb);
        this.Ca=!1;this.K=new Map;this.rb=[];this.ra=null;this.Yd=new Set;this.Fa=[];this.Cc=[];this.Dd=[];this.Zc=[];this.j=void 0;this.Wa=0;this.Sa=!0;this.qa=!1;this.La=[];this.Xd=new Set;this.He=new Set;this.Fd=new Set;this.ym=0;this.gb=new Set;this.Qc=0;this.Kn=this.Dc=!1;this.Vb=this.N="";this.rd={Fpb:function(){return d.B},
            Ppb:function(){return d.C},
            Gpb:function(){return d.D},
            n8:function(e){d.onCueRangeEnter(d.B.get(e))},
            zpb:function(e){d.onCueRangeExit(d.B.get(e))},
            Grb:function(e,f){d.B.set(e,f)},
            Irb:function(e){d.Vb=e},
            NE:function(){return d.NE()}};
        this.ea.getPlayerType();L6a(this.ea,this);this.Va=this.X.wc();g.M(this,this.Ab);g.M(this,this.events);g.M(this,this.Z);this.events.T(this.api,g.OI("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.PI("serverstitchedcuerange"),this.onCueRangeExit)};
    P6a=function(a,b,c,d,e,f,h,l){var m=M6a(a,f,f+e);a.Ca&&a.ea.ma("sdai",{adaftto:1});a.Kn&&a.ea.ma("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=h===void 0?f+e:h;f===h&&!e&&a.X.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.ma("sdai",{attl0d:1});f>h&&VX(a,{reason:"enterTime_greater_than_return",pc:f,Wd:h});var p=n.Cd()*1E3;f<p&&VX(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},a.X.L("html5_report_ssdai_timeline_error_as_fatal"));n=n.getDuration()*1E3;h>n&&VX(a,{reason:"parent_return_greater_than_content_duration",
        Wd:h,mrb:n});n=null;p=g.Qb(a.G,{Wd:f},function(q,r){return q.Wd-r.Wd});
        p>=0&&(n=a.G[p],n.Wd>f&&N6a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Fa.length;p++){if(a.Fa[p].identifier===m.identifier){a.Fa.splice(p,1);break}}else if(m)return a.ea.ma("sdai",{rejectAttl:1}),l&&!Zs(a.Zc,function(q){return q===l})&&(a.ea.ma("sdai",{rejectAdBreakAttl:1}),a.Zc.push(l)),WX(a),"";
        m="ss_childplayback_"+O6a++;a.X.L("html5_enable_ssap_entity_id")?(b=new g.pS(a.X,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.wD(16)),p=b.cpn,b=new g.pS(a.X,b));b.od=m;c={od:m,playerType:d,durationMs:e,pc:f,Wd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Xb(a.G,c,function(q,r){return q.pc===r.pc?q.durationMs-r.durationMs:q.pc-r.pc});
        a.D.set(p,c);a.Tb.set(m,c);a.ea.ma("sdai",{attlDone:h-f,acpn:p});l?c.nm=l:n?c.nm=n.nm:c.nm=c.cpn;if(f=c.nm)(d=a.Y.get(f))?(d.push(c),g.Sb(d,function(q,r){return q.pc-r.pc})):a.Y.set(f,[c]);
        a.Z.isActive()&&(a.Ca=!1,a.Z.stop(),K6a(a),a.fF(!0));return m};
    XX=function(a,b,c){return{ssvc:b,cpn:(c==null?void 0:c.cpn)||"",vid:(c==null?void 0:c.videoData.videoId)||"",ct:(a.ea.getCurrentTime()||0).toFixed(3),cmt:(a.ea.Ef()||0).toFixed(3)}};
    ZX=function(a,b,c){var d=a.qa,e=a.NE(),f=a.N;a.N="";var h=b.Vg-c.Vg;Math.abs(h)>.5&&a.ea.ma("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.Ny();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}e?a.ea.ma("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):Q6a(a,m,l,c.Vg,b.Vg,d,e)}else if(!b.isAd&&c.isAd){a.Vb=e.cpn;a.api.publish("serverstitchedvideochange");
        l=XX(a,"a2c");a.ea.ma("sdai",l);a.ym=0;if(l=c.Zd)a.Wa=l.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&YX(a.ea,n,e,c.Vg,b.Vg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.Wa=0,a.Vb=p.cpn,a.api.publish("serverstitchedvideochange",p.od,p.er),n=XX(a,"c2a",p),a.ea.ma("sdai",n),a.ym=1,YX(a.ea,e,p,c.Vg,b.Vg,d,!!f))}};
    R6a=function(a,b,c){c=(b+(c===void 0?0:c))*1E3;var d=g.Qb(a.G,{pc:c},function(e,f){return e.pc-f.pc});
        d=d<0?(d+2)*-1:d;return d>=0&&(a=a.G[d],a.Wd>=c)?{Hn:a,Lu:b}:{Hn:void 0,Lu:b}};
    $X=function(a,b){var c="";(b=S6a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
    S6a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.Vb){var c=a.B.get(a.Vb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.v(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
    J6a=function(a,b,c){var d=a.Bb||a.api.Uc().getPlayerState();aY(a,!0);a.ea.seekTo(b,c);a=a.api.Uc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
    aY=function(a,b){a.Ob=NaN;a.Kb=null;a.Ab.stop();a.Za&&b&&T6a(a.Za);a.Bb=null;a.Za=null};
    U6a=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.v(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.pc<b||f.Wd>c)&&d.push(f);a.G=d;d=g.v(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=R6a(a,b/1E3);b=d.Hn;d=d.Lu;if(b&&(d=d*1E3-b.pc,e=b.pc+d,b.durationMs=d,b.Wd=e,d=a.B.get(b.cpn))){e=g.v(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
        b.pc+b.durationMs:f.end===d.start&&(f.end=b.pc);d.start=b.pc;d.end=b.pc+b.durationMs}if(b=R6a(a,c/1E3).Hn){var h;d="playback_timelinePlaybackId_"+b.od+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.pc+"_parentReturnTimeMs_"+b.Wd;a.wk("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
    V6a=function(a){a.Ea.clear();a.eb.clear();a.Ma.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.Yd.clear();a.Fa=[];a.Cc=[];a.Dd=[];a.Zc=[];a.La=[];a.Xd.clear();a.He.clear();a.Fd.clear();a.gb.clear();a.Ca=!1;a.j=void 0;a.Wa=0;a.Sa=!0;a.qa=!1;a.ym=0;a.Qc=0;a.Dc=!1;a.Kn=!1;a.N="";a.Z.isActive()&&WX(a)};
    X6a=function(a,b,c,d,e,f){if(!a.Kn)if(!a.X.L("html5_ssdai_use_media_time")&&g.W6a(a,c))a.Va&&a.ea.ma("sdai",{gdu:"undec",seg:c,itag:e});else if(b=bY(a,b,c,d,f),!(a.ea.getVideoData().Mm()&&(b==null?0:b.NA)))return b};
    bY=function(a,b,c,d,e){var f;a.X.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=cY(a,b))return f;var h=dY(a,c-1,d!=null?d:2);if(e)return a.ea.ma("sdai",{misscue:e,sq:c,type:d,prevsstate:h==null?void 0:h.sz,prevrecord:a.K.has(c-1)}),a.X.L("html5_ssdai_use_media_time")?cY(a,b-5):a.K.get(c-1);if((h==null?void 0:h.sz)===2&&(a.ea.ma("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.X.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f};
    cY=function(a,b){b+=a.Ut();if(a.X.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.v(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.er?e.er*1E3:e.pc;if(d>=e.pc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Hn:e,Lu:b};break a}}b={Hn:void 0,Lu:b}}else b=R6a(a,b,1);return b.Hn};
    Y6a=function(a){if(a.La.length)for(var b=g.v(a.La),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.v(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.v(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.eb.clear();a.Ma.clear();a.j||(a.Sa=!0)};
    Q6a=function(a,b,c,d,e,f,h){if(b&&c){a.Vb=c.cpn;a.api.publish("serverstitchedvideochange",c.od,c.er);var l=XX(a,"a2a",c);a.ea.ma("sdai",l);a.ym++;YX(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.ma("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})};
    dY=function(a,b,c){if(c===1){if(a.Ea.has(b))return a.Ea.get(b)}else{if(c===2&&a.eb.has(b))return a.eb.get(b);if(c===3&&a.Ma.has(b))return a.Ma.get(b)}};
    $6a=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;Z6a(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.ea.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else Z6a(a,b,c)};
    Z6a=function(a,b,c){b=a.ZI(b,c);c=!0;g.Xb(a.C,b,function(h,l){return h.start-l.start});
        for(var d=0;d<a.C.length;){if(d>0){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.zE("serverstitchedcuerange",36E5),b=g.v(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
    eY=function(a,b,c){if(c===void 0||!c){c=g.v(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 I6a(b))}};
    g.W6a=function(a,b){a=g.v(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};
    N6a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",frb:b,pc:c,Wd:d,wpb:e.od,ypb:((f=e.videoData)==null?void 0:f.videoId)||"",spb:e.durationMs,tpb:e.pc,vpb:e.Wd};VX(a,b)};
    VX=function(a,b,c){a=a.ea;a.ma("timelineerror",b);b=new BJ("dai.timelineerror",b);c?a.Nf("dai.timelineerror",1,"RETRYABLE_ERROR",AJ(b.details)):a.Sd(b)};
    a7a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
    b7a=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.v(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
    c7a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=(b=d.value.videoData)==null?void 0:b.videoId)&&c.push(d);return c};
    d7a=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Wd!==b.pc&&c++;return c};
    e7a=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Wd!==e.pc&&(e=e.cpn,b===e&&(d=!0),d&&!a.He.has(e)&&(a.ea.ma("sdai",{decoratedAd:e}),a.He.add(e)))}};
    K6a=function(a){a.Va&&a.ea.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Qc)+"_isTimeout_"+a.Ca})};
    M6a=function(a,b,c){if(a.Fa.length)for(var d=g.v(a.Fa),e=d.next(),f={};!e.done;f={Tz:void 0},e=d.next()){f.Tz=e.value;e=f.Tz.startSecs*1E3;var h=f.Tz.Ch*1E3+e;if(b>e&&b<h||c>e&&c<h)return Zs(a.Dd,function(l){return function(m){return m.identifier===l.Tz.identifier}}(f))||(a.ea.ma("sdai",{adskip:b}),a.Dd.push(f.Tz)),f.Tz}};
    WX=function(a){a.Ca=!1;a.Z.isActive()&&K6a(a);a.Z.stop();a.fF(!1)};
    h7a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.timeline=b;this.ea=c;this.Kp=new Map;this.Yj=new Map;this.HH=new Map;this.events=new g.IJ(this);this.ym=0;this.yK=this.Vb="";this.AG=[];this.zk=new Set;this.VK=new g.Av(function(){d.api.playVideo(1);d.api.ma("ssap",{nve:""+d.Vb});f7a(d,4)},3E4);
        this.Gy="";this.tH=new Set;this.Q1=!0;this.xM=new Map;this.BL=new Set;this.dY=!1;this.Kw="";this.zZ=!1;this.GZ="";this.rd={Rpb:function(){return d.Yj},
            n8:function(e){if(e=d.Yj.get(e))d.onCueRangeEnter(e)}};
        this.ea.getPlayerType();g7a(this);this.events.T(this.api,g.OI("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.iG);g.M(this,this.VK);this.uT=this.api.U().L("html5_enable_ssap_gapful_switch");this.Pda=g.hI(a.U().experiments,"html5_ssap_segment_end_media_threshold_ms")||200};
    i7a=function(a,b,c,d){for(var e=a.ea.mA(),f=g.v(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||((h=QX(l),l=l.getVideoData(),h&&l&&e.YI(h,l,2),l)?h||(l=void 0,a.api.ma("ssap",{macac:h,maccc:(l=a.timeline.j)==null?void 0:QX(l)})):(l=void 0,a.api.ma("ssap",{mvac:h,mvcc:(l=a.timeline.j)==null?void 0:QX(l)})))}return RX(a.timeline,b,c,d)};
    k7a=function(a){var b=a.ea.Ef();return(b=fY(a,b))?j7a(a,b.Wh()/1E3):!1};
    j7a=function(a,b){if(a.zk.has(a.Vb))return!1;var c=0,d=0,e=SX(a.timeline,a.Vb);if(e==null?0:e.length)for(e=g.v(e),e=e.next();!e.done;e=e.next()){d=e.value;c=d.Ye();d=d.Wh();break}if(d>0&&d>b*1E3+a.Pda)return!1;if(d=l7a(a,c)){b=!1;c=void 0;d=g.v(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}QX(e)===a.Vb&&(b=!0)}d=void 0;if(c)d=QX(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:QX(f)}if(d)return a.finishSegmentByCpn(a.Vb,d,2,void 0),!0;var h;a.api.ma("ssap",{mfnc:1,mfncc:(h=
            a.timeline.j)==null?void 0:QX(h)})}return!1};
    gY=function(a,b){a=SX(a.timeline,b);return(a==null?0:a.length)?a[0].Ye():0};
    iY=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",Cl:0};var e=m7a(a,b,c);if(e)return{clipId:QX(e)||"",Cl:e.Ye()};a.api.ma("mci",{cs:QX(d),mt:b,tl:hY(a),invt:!!c});return{clipId:"",Cl:0}};
    jY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Wh()-b.Ye())/1E3;b=b.j.values();b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Wh()-d.Ye())/1E3}return a};
    n7a=function(a,b){return(a=fY(a,b*1E3))?a.Ye():0};
    o7a=function(a,b){var c=SX(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.v(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Wh()-c.Ye())/1E3;else return jY(a);return b};
    fY=function(a,b){if(a=SX(a.timeline,a.Vb)){a=g.v(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ye()<=b&&c.Wh()>=b)return c}};
    p7a=function(a){var b=a.ea.getVideoData();a.Vb&&(a=a.Kp.get(a.Vb))&&(b=a);return b};
    l7a=function(a,b,c){c=c===void 0?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Sb(e);b=g.Qb(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.v(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Ye()!==b.Wh())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}};
    m7a=function(a,b,c){c=c===void 0?!1:c;var d=l7a(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.v(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.Ye()<=b&&f.Wh()>b)return f;if(c&&d.Ye()===d.Wh())return a[0]}}else a.api.ma("ssap",{ctnf:1})};
    f7a=function(a,b){var c;if(a.Gy)for(c=a.AG.shift();c&&c!==a.Gy;)c=a.AG.shift();else c=a.AG.shift();if(c)return a.zk.has(c)?q7a(a,c):b===3&&(a.VK.stop(),a.api.playVideo(1)),a.HH.set(a.Vb,b),a.api.ma("ssap",{onvftn:1}),r7a(a,c),!1;a.api.ma("ssap",{onvftv:1});a.VK.stop();return!0};
    q7a=function(a,b){b=SX(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.VK.start(b[0].DK)};
    r7a=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.Vb,f=!1;if(e==="")e=d,f=!0;else if(e===void 0){var h=a.ea.mA().Ng;h&&a.timeline.B.has(h)&&(e=h);a.api.ma("ssap",{mcc:e+";"+b});a.ea.Sd(new BJ("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&s7a(a,c,f);else{h=a.HH.get(e);if(!f&&h!==3){var l=a.api.Ny(a.Vb);a.api.ma("ssap",{nmec:l,cpc:a.Vb,ec:b})}a.Vb=b;t7a(a);b=SX(a.timeline,a.Vb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.yK=e,c=a.Kp.get(e));
        h?a.HH.delete(e):h=f?1:2;a:{var m=a.Vb;if(!a.Yj.has(m))for(var n=g.v(a.Yj),p=n.next();!p.done;p=n.next()){var q=g.v(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.Vb;q=a.ea.mA();if(q.Ng!==p){var r=q.vc(q.Ng);m=q.vc(p);q.Ng=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.X.wc()&&p.ma("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.uM(p.provider),u7a(p,n,"SU")),isNaN(p.K)||g.BA(p.K)),m.resume())}n=
            a.ea.getCurrentTime();m=Math.max(0,n-gY(a,e)/1E3);n=Math.max(0,n-gY(a,a.Vb)/1E3);p=h===3;q=b.getVideoData();r=a.ea.mA();var t=e,u=a.Vb,w=a.ea.getPlayerState();if(t!==u){var A=r.vc(t),C=r.vc(u),E,H=t===((E=A.getVideoData())==null?void 0:E.clientPlaybackNonce),L;E=u===((L=C.getVideoData())==null?void 0:L.clientPlaybackNonce);var N;L=H?((N=A.getVideoData())==null?void 0:N.videoId)||"":"nvd";var Q;N=E?((Q=C.getVideoData())==null?void 0:Q.videoId)||"":"nvd";H&&(Q=A.qoe)!=null&&(kY(Q,4,p?4:0,u,N,m),Q.reportStats());
            E&&(lY(C),(Q=C.qoe)!=null&&(kY(Q,4,p?5:1,t,L,n),Q.reportStats()),v7a(C,new g.uF(w,C.Ee)),w7a(C));x7a(r,t)}var da;d0a(e,a.Vb,d,q,(da=a.xM.get(e))!=null?da:(0,g.fC)(),c);a.xM.delete(e);f?c=void 0:c||a.api.ma("ssap",{pvdm:e+";"+a.Vb,pvdmc:a.Vb===d?"1":"0"});a.api.ma("ssap",{tpac:e+";"+a.Vb,tpcc:d,tpv:(q==null?0:q.ue())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",q,l,c,h);a.api.L("html5_ssap_publish_content_video_data_updated_event")&&!b.C&&a.ea.getVideoData().publish("dataupdated");a.zk.delete(e);
        a.Gy="";q&&l===1?s7a(a,q):a.ea.ma("ssap",{nis:a.Vb});l===2?a.ym++:a.ym=0}}};
    s7a=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.Q1){var d=b.startSeconds;b=SX(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].Ye()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.DP()||(a.ea.seekTo(d,{CT:!0}),a.Q1=!1,a.ea.ma("ssap",{is:a.Vb,co:c?"1":"0",tse:d.toFixed()}))}};
    y7a=function(a,b,c){b=SX(a.timeline,b);if(b==null?0:b.length)if(b=l7a(a,b[0].Ye())){b=g.v(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(QX(d)===c)break;if(d=QX(d))a.Yj.delete(d),(d=a.Yj.get(d))&&a.ea.removeCueRange(d)}}};
    z7a=function(a,b,c){m7a(a,b)||a.ea.ma("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:hY(a)})};
    t7a=function(a){var b=a.Vb,c=a.Kp.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-gY(a,b)/1E3,c.Ik=a>0?a:0)};
    mY=function(a,b){b=b||a.Vb;var c=a.Kp.get(b);return c?c.Ik:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Ik};
    hY=function(a){var b=a.Vb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from((d=(c=a.timeline.j)==null?void 0:c.j.values())!=null?d:[]);c=[];if(e==null?0:e.length)for(d=g.v(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.v(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.Ye()+";";f+="et."+h.Wh()+";";var l=QX(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+((l=h.videoId)!=null?l:
        "nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.jl()};
    g7a=function(a){a.ea.PG(Array.from(a.Yj.values()));a.Yj.clear()};
    B7a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=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.Av(function(){A7a(d,d.qa,d.Y||void 0)});
        this.ra=[];this.Ca=new g.Av(function(){var e=d.ra.pop();if(e){var f=e.od,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.Bv(d.Ca,4500))}});
        this.events=new g.IJ(this);c.getPlayerType();g.M(this,this.Z);g.M(this,this.Ca);g.M(this,this.events);this.events.T(this.api,g.OI("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Bk)};
    F7a=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=f===void 0?e+d:f;if(e>f)return nY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.Cd()*1E3;if(e<n)return nY(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=m.getDuration()*1E3;if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
        m.Lc(),nY(a,m,h,l),"";n=null;for(var p=g.v(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.pc&&e<q.Wd)return nY(a,"overlappingEnter",h,l),"";if(f<=q.Wd&&f>q.pc)return nY(a,"overlappingReturn",h,l),"";if(f===q.pc)return nY(a,"outOfOrder",h,l),"";e===q.Wd&&(n=q)}h="cs_childplayback_"+C7a++;l={Zd:oY(d,!0),pn:Infinity,target:null};var r={od:h,playerVars:b,playerType:c,durationMs:d,pc:e,Wd:f,It:l};a.B=a.B.concat(r).sort(function(w,A){return w.pc-A.pc});
        n?D7a(a,n,{Zd:oY(n.durationMs,!0),pn:n.It.pn,target:r}):(b={Zd:oY(e,!1),pn:e,target:r},a.K.set(b.Zd,b),m.addCueRange(b.Zd));b=!0;if(a.j===a.api.Uc()&&(m=m.getCurrentTime()*1E3,m>=r.pc&&m<r.Wd)){var t=a.api.Uc().getPlayerState(),u=m-r.pc;Of(function(){E7a(a,r,u/1E3,{},t)});
            b=!1}b&&(a.ra.unshift(r),g.Bv(a.Ca,0));return h};
    oY=function(a,b){return new g.NI(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
    G7a=function(a,b,c,d){a.C=d;a.api.nJ(a.j,c,b)};
    H7a=function(a,b,c,d){a.C=d;d=b.od;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.X.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
    D7a=function(a,b,c){var d=b.It;b.It=c;pY(a,b)&&(c=a.api.Uc(),d.Zd===a.C&&qY(a),c.removeCueRange(d.Zd),c.addCueRange(b.It.Zd))};
    qY=function(a){a.N=null;a.C=null;a.api.zo()||a.api.clearQueue()};
    I7a=function(a,b){pY(a,b)||nY(a,"childPlaybackIsNotPresenting");return b.Wd===b.pc+b.durationMs?(a=a.api.Uc(),b.pc+a.getCurrentTime()*1E3):b.Wd};
    J7a=function(a,b){var c=0;a=g.v(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.pc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Hn:d,Lu:b-e};c=f-d.Wd/1E3}return{Hn:null,Lu:b-c}};
    A7a=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Uc().getPlayerState();rY(a,!0);b=isFinite(b)?b:a.j.Rn();var e=J7a(a,b);b=e.Hn;e=e.Lu;var f=b&&!pY(a,b)||!b&&a.j!==a.api.Uc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||qY(a);b?E7a(a,b,e,c,d):K7a(a,e,c,d)};
    K7a=function(a,b,c,d){var e=a.j,f=a.api.Uc();e!==f&&a.api.qy();e.seekTo(b,Object.assign({},{jd:"application_timelinemanager"},c));L7a(a,d)};
    E7a=function(a,b,c,d,e){var f=pY(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.X.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.pS(a.X,b.playerVars);h.od=b.od;a.api.Eu(h,b.playerType)}h=a.api.Uc();f||h.addCueRange(b.It.Zd);h.seekTo(c,Object.assign({},{jd:"application_timelinemanager"},d));L7a(a,e)};
    L7a=function(a,b){a=a.api.Uc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
    rY=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&T6a(a.D);a.G=null;a.D=null};
    pY=function(a,b){a=a.api.Uc();return!!a&&a.getVideoData().od===b.od};
    M7a=function(a){var b=a.B.find(function(e){return pY(a,e)});
        if(b){var c=a.api.Uc();qY(a);var d=new g.vK(8);b=I7a(a,b)/1E3;K7a(a,b,{},d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
    O7a=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.v(a.K),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;l.pn>=d&&l.target&&l.target.Wd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.v(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.pc>=d&&l.Wd<=e){var m=a;m.N===l&&qY(m);pY(m,l)&&m.api.qy()}else f.push(l);a.B=f;d=J7a(a,b/1E3);b=d.Hn;d=d.Lu;b&&(d*=1E3,N7a(a,b,d,b.Wd===b.pc+b.durationMs?b.pc+d:b.Wd));(b=J7a(a,c/1E3).Hn)&&
    nY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.od+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pc+" parentReturnTimeMs="+b.Wd+"}.Child playbacks can only have duration updated not their start."))};
    N7a=function(a,b,c,d){b.durationMs=c;b.Wd=d;d={Zd:oY(c,!0),pn:c,target:null};D7a(a,b,d);pY(a,b)&&a.api.Uc().getCurrentTime()*1E3>c&&(b=I7a(a,b)/1E3,c=a.api.Uc().getPlayerState(),K7a(a,b,{},c))};
    nY=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
    Q7a=function(a){a&&a!=="web"&&P7a.includes(a)};
    uY=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Av(function(){sY(c);tY(c)});
        g.M(this,this.j)};
    R7a=function(a){sY(a);return a.data.map(function(b){return b.value})};
    sY=function(a){var b=(0,g.fC)();a.data.forEach(function(c){c.expire<b&&vY(a,c,!0)});
        a.data=g.Pt(a.data,function(c){return!(c.expire<b)})};
    vY=function(a,b,c){c&&a.B&&a.B(b.value)};
    tY=function(a){a.j.stop();var b=Infinity;for(var c=g.v(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
    wY=function(){g.I.call(this);this.j=new uY(5,null);g.M(this,this.j);this.B=new uY(15,null);g.M(this,this.B)};
    S7a=function(a,b){return b?!!a.j.get(b):!1};
    T7a=function(a,b){a.dataset.version=b};
    W7a=function(a){g.W.call(this,{I:"div",Ka:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.xY.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.Pz=this.Ga(g.xY.VIDEO_CONTAINER);this.NB=new g.Gs(0,0,0,0);this.Fc=null;this.IL=new g.Gs(0,0,0,0);this.UP=this.gR=this.fR=NaN;this.gK=this.EL=this.wS=this.kX=!1;this.HO=NaN;this.LQ=!1;this.RF=null;this.ER=function(){b.element.focus({preventScroll:!0})};
        this.mL=function(){b.app.Ua.publish("playerUnderlayVisibilityChange","visible");b.Fc.classList.remove(g.xY.VIDEO_CONTAINER_TRANSITIONING);b.Fc.removeEventListener(vZa,b.mL);b.Fc.removeEventListener("transitioncancel",b.mL)};
        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.gt("ytp-transparent");e.controlsType==="0"&&this.gt("ytp-hide-controls");g.Hv(this.element,"ytp-exp-bottom-control-flexbox");g.Hv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.DR(e)&&g.Hv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Hv(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Hv(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.Hv(this.element,"ytp-cairo-refresh-signature-moments");
        T7a(this.element,U7a(a));this.P1=!1;this.CE=new g.Ke(NaN,NaN);V7a(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
    V7a=function(a){function b(){a.Fc&&yY(a);zY(a)!==a.LQ&&a.resize()}
        function c(h,l){a.Wt(h,l)}
        function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
        function e(){a.IL=new g.Gs(0,0,0,0);a.NB=new g.Gs(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)})};
    Y7a=function(a){var b=g.sT(a.app),c=b=b?b.getVideoData():null;if(b==null?0:g.dT(b))c=a.app.Ua.getVideoData();if(c){if(g.TS(c)||g.US(c)||g.VS(c))return 16/9;if(CXa(c)&&c.C.j)return a=c.C.videoInfos[0].video,X7a(a.width,a.height)}return(a=a.Fc)?X7a(a.videoWidth,a.videoHeight):16/9};
    Z7a=function(a,b,c,d){var e=c,f=X7a(b.width,b.height);a.kX?e=c<f?Infinity:0:isNaN(a.UP)?isNaN(a.gR)||(e=a.gR):e=a.UP;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
    X7a=function(a,b){return Math.abs($7a*b-a)<1||Math.abs($7a/a-b)<1?$7a:a/b};
    zY=function(a){if(a.app.getAppState()===1)return!1;if(a.app.getAppState()===6)return!0;var b=g.sT(a.app);if(!b||b.Yn())return!1;a=a.app.Ua.getPlayerStateObject();b=!g.vF(a,2)||b&&b.getVideoData().Y;var c=g.vF(a,1024);return a&&b&&!c&&!a.isCued()};
    yY=function(a){var b=a.app.U().controlsType==="3"&&!a.gK&&zY(a)&&!a.app.oB||!1;a.Fc.controls=b;a.Fc.tabIndex=b?0:-1;b?a.Fc.removeEventListener("focus",a.ER):a.Fc.addEventListener("focus",a.ER)};
    a8a=function(a){var b=a.Xh(),c=1,d=!1,e=Z7a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=zra(),m=g.hI(f.experiments,"player_underlay_min_player_width");m=h&&a.wS&&a.getPlayerSize().width>m;if(zY(a)){var n=Y7a(a);var p=isNaN(n)||g.wC||AY&&g.aC||m;vC&&!g.Nc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=a.getPlayerSize().width*.02,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Gs(p,0,b.width,b.height)):p=new g.Gs(0,
        0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Gs((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.aC&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.Lv(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.P1)a.Fc.style.display="";a.LQ=!0}else{p=-b.height;vC?p*=window.devicePixelRatio:g.ER&&(p-=window.screen.height);p=new g.Gs(0,p,b.width,b.height);if(l||a.P1)a.Fc.style.display="none";a.LQ=!1}Hs(a.IL,p)||(a.IL=p,g.qR(f)?(a.Fc.style.setProperty("width",
        p.width+"px","important"),a.Fc.style.setProperty("height",p.height+"px","important")):g.Us(a.Fc,p.getSize()),d=new g.Ee(p.left,p.top),g.Qs(a.Fc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Gs((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Hs(a.NB,b)||(a.NB=b,d=!0);g.Js(a.Fc,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.EL&&(m&&(a.Fc.addEventListener(vZa,a.mL),a.Fc.addEventListener("transitioncancel",a.mL),a.Fc.classList.add(g.xY.VIDEO_CONTAINER_TRANSITIONING)),a.EL=m,a.app.Ua.publish("playerUnderlayVisibilityChange",
        a.EL?"transitioning":"hidden"));return d};
    b8a=function(){this.csn=g.gE();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
    c8a=function(a){if(a.csn!==g.gE())if(a.csn==="UNDEFINED_CSN")a.csn=g.gE();else{var b=g.gE(),c=g.fE();if(b&&c){a.csn=b;for(var d=g.v(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.CA("combine_ve_grafts")?BO(sO(),e,c):g.kA(g.tE)(void 0,b,c,e))}if(b)for(a=g.v(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.xE(b,c)}};
    d8a=function(a,b){this.Nc=a;this.policy=b;this.playbackRate=1};
    e8a=function(a,b){var c=Math.min(2.5,eR(a.Nc));a=BY(a);return b-c*a};
    g8a=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.tp)return Math.ceil(a.policy.tp*b);a.policy.Ql&&(d=Math.abs(d));d/=a.playbackRate;var f=1/fR(a.Nc);c=Math.max(.9*(d-3),eR(a.Nc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.ao>0&&e&&(c=Math.max(c,a.policy.ao));return f8a(a,c,b)};
    f8a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.Nk,a.policy.Iv*c),Math.min(Math.min(a.policy.La,31*c),Math.ceil(b*c))))||a.policy.Nk};
    h8a=function(a,b,c){c=g8a(a,b.j.info.tb,c.j.info.tb,0);var d=eR(a.Nc)+c/fR(a.Nc);return Math.max(d,d+a.policy.ED-c/b.j.info.tb)};
    BY=function(a){return fR(a.Nc,!a.policy.Aj,a.policy.Hv)};
    CY=function(a){return BY(a)/a.playbackRate};
    i8a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.v(b&&d.length>0?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return a<Infinity?a/1E3:a};
    j8a=function(a,b,c,d){var e=this;this.G=a;this.manifest=b;this.policy=c;this.logger=d;this.FB=[];this.ud=[];this.j=-1;this.Rb=null;this.D=this.timestampOffset=0;this.Yc=null;this.rd={EP:function(f){return e.EP(f)}};
        this.C=b.dc?0:1};
    n8a=function(a,b,c,d,e){if(!e.info.Te){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:oQ(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:oQ(h,e))||(c=e);if(a.policy.Cc&&c.info.Sb)return a.logger&&a.logger({incompleteSegment:c.info.Vc()}),d;h=a.EP(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.d8;h=h.startTimeMs;!a.policy.wh&&a.policy.j&&a.Yc&&(f=gY(a.Yc,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,To:e,vj:e,EB:h,DB:c};e=k8a(b,d.startTimeMs);(c=e>=0?b[e]:null)&&l8a(a,
        c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f<b.length;f++){h=a;var l=b[f],m=d,n=l.startTimeMs+l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+10?h=!0:p+10<l.startTimeMs?h=!1:m8a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.DB=m.durationMs,m.vj=l.vj,h=!0):(l.startTimeMs=p,l.EB=p,l.To=m.vj+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
    k8a=function(a,b){a=g.Qb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
        return a>=0?a:-a-2};
    o8a=function(a,b){if(a.Rb){var c=a.Rb.Je();if(c.length!==0){if(a.policy.kz&&a.B&&b){var d=a.B,e=d.info.C;!cK(c,e)&&d.info.K>0&&(0,g.fC)()-a.D<5E3&&(a.logger&&a.logger({dend:d.info.Vc()}),c=ZEa(c,e,e+.01))}d=[];for(var f=e=0;e<c.length&&f<a.ud.length;){var h=c.start(e),l=c.end(e),m=a.ud[f].startTimeMs/1E3,n=(a.ud[f].startTimeMs+a.ud[f].durationMs)/1E3;if(m<=l&&n>=h){var p=0;if(a.Yc){var q=iY(a.Yc,m*1E3);q&&(p=q.Cl/1E3)}q=Object.assign({},a.ud[f]);var r=a.manifest.K.get(WTa(a.ud[f].formatId)),t=Math.max(m,
        h);h=r.index.Hi(t+.01-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>.01);t=u+a.C;u=(r.index.getStartTime(u)+p)*1E3;a.policy.Kv&&f===a.j&&!b?(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.To=h+a.C,q.startTimeMs=m*1E3):(q.To=t,q.startTimeMs=u);q.EB=q.startTimeMs;h=void 0;m=((h=a.B)==null?void 0:h.info.duration)||11;f===a.j&&l<n&&n-l<=m*1.01&&(l=n);h=Math.min(n,l);m=r.index.Hi(h-.01-p);t=a.policy;(t.j||t.Da.L("html5_sabr_include_tail_media_chunk"))&&r.index.Zn(m+1)&&r.index.BJ(m+
        1)+p<=h&&(m+=1);t=r.index.BJ(m)+p;m-=+(Math.abs(t-h)>.01);h=m+a.C;p=(r.index.BJ(m)+p)*1E3;q.vj=h;q.durationMs=p-q.startTimeMs;q.DB=q.durationMs;q.To<=q.vj&&d.push(q)}n<l?f+=1:e+=1}a.ud=d}}};
    p8a=function(a){var b=[],c=[].concat(g.ra(a.FB));a.ud.forEach(function(h){b.push(Object.assign({},h))});
        for(var d=a.j,e=g.v(a.G.vY()),f=e.next();!f.done;f=e.next())d=n8a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=a.timestampOffset*1E3,h.EB&&(h.EB+=a.timestampOffset*1E3))});
        return{ud:b,FB:c}};
    l8a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(c.startTimeMs-d>10)return!1;if(m8a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.DB=b.durationMs,b.vj=Math.max(b.vj,c.vj),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=10){if(b.durationMs>c.durationMs+10){a=b.formatId;var f=b.To,h=b.vj;b.formatId=c.formatId;b.durationMs=c.durationMs;b.To=c.To;b.DB=c.durationMs;b.vj=c.vj;c.formatId=a;c.startTimeMs=e;c.EB=e;c.durationMs=d-e;c.DB=c.durationMs;
        c.To=f;c.vj=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.DB=b.durationMs);return!1};
    m8a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.dc||b.lmt===c.lmt};
    q8a=function(a,b,c){if(a.logger){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;if((h=f.mS)==null?0:h.rh){var l=h=void 0,m=void 0;d.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_st."+(f.startTimeMs+"_psst.")+(((l=f.mS)==null?void 0:l.rh)+"_psd.")+((m=f.mS)==null?void 0:m.rE))}h=void 0;d.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.To)+("_en."+f.vj))}a.logger({p:""+c,br:d.join(";")})}};
    r8a=function(a){a.ud=[];a.FB=[];a.j=-1;a.B=void 0};
    DY=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.je;this.D=null;this.C=0};
    s8a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Zn(d)||c&&c.Pa===d?(b.G=!a.Zn(d),b.qa=!a.Zn(d)):(b.G=!0,b.qa=!0)}};
    u8a=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);t8a(a.videoTrack);t8a(a.audioTrack);a.policy.G||qUa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);var c=a.ya;c.policy.Bb||(c.currentTime=b);a.G=!0;a.D=new sK;return a.D};
    w8a=function(a,b,c,d,e){var f=a.policy.Cc?e:void 0;if(!b.j.jg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof EY))a:{if(b.C.length&&(f=b.C[0],f instanceof FY&&f.uh&&f.wi)){f=!0;break a}f=!1}f||a.policy.C||GY(b);return c}var h=HY(b,c);if(!isNaN(h))return h;if(a.ya.GQ(c*1E3))return c;e.CF||(b.Zk(),a.ya.bH(!0));return d&&(a=dK(d.Je(),c),!isNaN(a))?(IY(b,a+v8a,f),c):IY(b,c,f)};
    z8a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Jb||g.dg(function(){JY(a)});
    else{if(a.isSeeking()&&a.j){var e=x8a(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.dg(function(){a.ya.ma("seekreason",{reason:"behindMinSq",tgt:e});y8a(a,e)});
        return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.oz||!a.B;HY(a.videoTrack,a.j)>=0&&HY(a.audioTrack,a.j)>=0&&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.dg(function(){if(a.B||!a.policy.Jb)JY(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.K!==-1&&a.audioTrack.K!==-1,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.qa&&!a.audioTrack.qa,r=a.policy.pz&&
        HY(a.videoTrack,h)&&HY(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.ya.ma("iterativeSeeking",{status:"done",target:h,originalTime:h+a.ya.Lc(),count:a.seekCount}),a.seekCount=0)):a.seekCount<8?(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,KY(a.ya,h+.1,{bx:!0,jd:"chunkSelectorSynchronizeMedia",gr:!0})))}}})}};
    x8a=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Hi(a.j);return(c.Zn(a.manifest.cf)||b.Pa===a.manifest.cf)&&d<a.manifest.cf?a.manifest.Cd():-1};
    y8a=function(a,b,c){a.B&&a.videoTrack.K!==-1&&a.audioTrack.K!==-1&&(a.B=!1,a.j=b,KY(a.ya,b+.1,{bx:!0,jd:"chunkSelectorSynchronize",gr:!0,seekSource:c}))};
    JY=function(a){var b=a.videoTrack.K!==-1,c=a.audioTrack.K!==-1;if(!b||!c)if(b=!b&&LY(a.videoTrack),c=!c&&LY(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=LY(c).info.Pa;if(a.policy.G){var d;b.K=((d=LY(b))==null?void 0:d.info.Pa)||b.K}if(b.K!==-1){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));xQ(a.manifest)&&Math.abs(e-xQ(a.manifest))>432E3&&sUa(a.manifest);a.C&&(e=a.C,a.C=0);g.dg(function(){a.policy.G||y8a(a,e,102)});
        a.ya.ma("initManifestlessSync",{st:e,ost:e+a.ya.Lc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&y8a(a,e,102)}}};
    NY=function(a,b){var c=this;this.Cb=a;this.requestNumber=++A8a;this.j=this.now();this.qa=this.Z=NaN;this.Y=this.j;this.B=this.Ob=this.K=0;this.D=this.j;this.Sa=this.Fa=this.Va=this.Dc=this.Cc=this.Ca=this.La=this.C=0;this.N=void 0;this.eb=0;this.G=this.isActive=!1;this.Ab=this.rb=0;this.rd={Pqb:function(){return c.Ip}};
        this.Nc=b.Nc;this.snapshot=iVa(this.Nc);this.policy=this.Nc.Sa;this.rr=!!b.rr;this.Vu=b.Vu;b.kJ&&(MY||(MY=hLa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.N=new Uint8Array(2048));var d;this.Ip=(d=b.Ip)!=null?d:!1;dVa(this.Nc)};
    B8a=function(a){a.Va=Math.max(a.Va,a.K-a.Cc);a.Fa=Math.max(a.Fa,a.Y-a.Dc);a.Ca=0};
    OY=function(a,b,c){eVa(a.Nc,b);if(a.N){if(a.eb+20>a.N.length){var d=new Uint8Array(a.N.length*2);d.set(a.N);a.N=d}C8a(a,Math.ceil(b)-Math.ceil(a.Y));C8a(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&&B8a(a)};
    C8a=function(a,b){for(;b>31;)a.N[a.eb++]=MY[(b&31)+32],b>>=5;a.N[a.eb++]=MY[b]};
    D8a=function(a){return a.N?g.vN(a.N.subarray(0,a.eb)):""};
    E8a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
    PY=function(a,b){NY.call(this,a,b);this.Bb=this.Kb=!1;this.Ea=this.ra=Infinity;this.Ma=NaN;this.Jb=!1;this.Za=NaN;this.Tb=0;this.Yz=b.Yz||1;this.iS=b.iS||this.Yz;this.Bl=b.Bl;this.Pa=b.Pa;this.hh=b.hh;F8a(this);this.LS(this.j);this.Wa=(this.Za-this.j)/1E3};
    G8a=function(a,b,c){a.rr||(b=Math.max(b,.01),bR(a.Nc,b,c,b))};
    H8a=function(a,b){return b?a.qK()&&!a.policy.j?!0:b>=2048||a.policy.j&&a.G:!1};
    I8a=function(a){return(a.D-a.j)/1E3};
    F8a=function(a){a.Ma=a.j+a.snapshot.delay*1E3;a.Jb=!1};
    L8a=function(a,b){if(a.Bl&&a.Pa!==void 0&&a.hh!==void 0){var c=Math,d=c.min,e=a.ra;var f=a.Bl;var h=a.j;if(J8a(f,a.Pa))f=b;else{var l=0;f.jj&&(l=.2);f=h+(f.Pj+l)*1E3}a.ra=d.call(c,e,f);c=Math;d=c.min;e=a.Ea;f=a.Bl;h=a.j;l=K8a(f,a.Pa,a.hh);l!==2&&(b=l?b:h+f.Pj*1E3,f.jj&&(b+=f.Pj*1E3));a.Ea=d.call(c,e,b);a.ra<=a.j?F8a(a):(a.Ma=a.ra,a.Jb=!0)}};
    M8a=function(a,b){if(b+1<=a.totalLength){var c=qN(a,b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(b+c<=a.totalLength))return[-1,b];if(c===1)a=qN(a,b++);else if(c===2)c=qN(a,b++),a=qN(a,b++),a=(c&63)+64*a;else if(c===3){c=qN(a,b++);var d=qN(a,b++);a=qN(a,b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=qN(a,b++);d=qN(a,b++);var e=qN(a,b++);a=qN(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),cLa(a,c,4)?a=dLa(a).getUint32(c-a.C,!0):(d=qN(a,c+2)+256*qN(a,c+3),a=qN(a,c)+256*(qN(a,c+
        1)+256*d)),b+=5;return[a,b]};
    QY=function(a){this.Cb=a;this.j=new lN};
    RY=function(a,b){this.info=a;this.callback=b;this.state=1;this.HB=this.iQ=!1;this.dg=null};
    N8a=function(a){return g.bs(a.info.jb,function(b){return b.type===3})};
    O8a=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.status=0;this.j=new lN;this.B=0;this.Na=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.v(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.xB()};
        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.fC)();e.Cb.qs(f,e.B)},function(){},d.body||null)};
    P8a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
    FWa=function(a,b){var c,d,e;return g.G(function(f){if(f.j==1){if(!b)return f.return(b);c=SY.Js();d=new g.gN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;SY.Ar("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})};
    LWa=function(a,b){var c,d,e;return g.G(function(f){if(f.j==1){if(!b)return f.return(b);c=SY.Js();d=new g.gN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;SY.Ar("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})};
    Q8a=function(a,b){var c=this;this.j=a;this.Cb=b;this.loaded=this.status=0;this.error="";a=UP(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new lN;this.dC().then(function(){c.Cb.Jo()},function(d){c.error=""+d||"unknown_err";
        c.Cb.Jo()})};
    S8a=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=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&&e.status!==204)e.status=e.status||242,e.C=f.body.getReader(),e.Na()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Cb.Ru(),R8a(e));
    else e.onDone();else e.onError(Error("null_response"))};
        this.Z=function(f){var h=(0,g.fC)();e.Na()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),R8a(e),e.Cb.qs(h,e.B)))};
        this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
        this.j=new lN;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
    R8a=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Lsa)};
    T8a=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Cb=b;this.B=this.status=0;this.Na=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.v(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.xB(f)};
        a=WN(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",WN(function(f){d.Cg(f)}),!1)};
    TY=function(a,b,c,d,e){if(fP(a.base))return new Q8a(a,c);a=a.Ce();return d?bQa()?new O8a(a,b,c,e):new S8a(a,b,c,e):new T8a(a,c,e)};
    UY=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.I.call(this);this.Cb=a;this.policy=b;this.ke=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.Wx=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.Av(this.tda,this.policy.Jk,this)};
    U8a=function(a){a.resource.Z=(0,g.fC)();a=VY(a);a.B=(0,g.fC)();a.started+=1};
    V8a=function(a,b,c){a.timing.qR((0,g.fC)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;ESa(VY(a));if((b=a.Wx)!=null&&(a=a.ke.base,!((0,g.fC)()<b.K+3E5||fP(a))&&(c=eP(a))&&F5a(c)&&b.B===vX(c))){var d;RRa(a)&&(d=eP(gP(a)));g.uB("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.fC)();C5a(b,{primary:c,secondary:d})}};
    WY=function(a){if(a.lastError==="ump.spsrejectfailure")a.timing.G||LSa(a.resource,!1,a.ke,a.policy,a.C);else{if(a.lastError==="net.timeout")a.timing.XK((0,g.fC)());else{var b=a.timing;OY(b,(0,g.fC)(),b.K)}if(a.lastError==="net.nocontent")++a.resource.K;else{if((b=a.lastError==="net.timeout"||a.lastError==="net.connect"||a.lastError==="net.closed")&&!fP(a.ke.base)){var c=VY(a);c.timedOut+=1}else c=VY(a),c.j+=1;a.timing.G||LSa(a.resource,b,a.ke,a.policy,a.C)}}a.Cb.Hc(5)};
    XY=function(a,b,c,d,e){if(b>=400)return a.lastError="net.badstatus",!0;if(!(c||d!==void 0&&d)){a.lastError=b===204?"net.nocontent":"net.connect";if(e===void 0?0:e)a.lastError="ump.spsrejectfailure";return!0}return!1};
    VY=function(a){return QP(a.C,eP(a.ke.base))};
    W8a=function(a){var b=a.timing.Uq();b.shost=eP(a.ke.base);return b};
    X8a=function(a){var b="";if(!a)return b;a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=c.videoCodec+"_"+c.maxWidth+"_"+c.maxHeight+"_"+c.maxFramerate+"_"+c.is10BitSupported+"_"+c.maxBitrateBps+";";return b};
    Y8a=function(a,b){return(a==null?void 0:a.maxWidth)>(b==null?void 0:b.maxWidth)||(a==null?void 0:a.maxHeight)>(b==null?void 0:b.maxHeight)};
    Z8a=function(a,b){for(var c=g.v(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.Sb(d,function(l,m){return m.maxFramerate-l.maxFramerate});
        for(var e=[d[0]],f=0,h=1;h<d.length;h++)Y8a(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
    a9a=function(a,b){var c=[];b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=$8a[d]||0;a.j&&e>a.j||c.push(d)}return c};
    e9a=function(a,b,c){var d=b9a[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=c9a[a]||[]);b.push.apply(b,g.ra(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.ra(d9a[a]||[]))};
    k9a=function(a,b){var c=GS(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.nk();if(d){if(!e.B){if(f&&YY)return YY;if(ZY)return ZY}}else if(ZY&&!e.B)return ZY;var h=[],l=[],m={},n=$Y.concat(f9a);d&&(n=$Y.concat(g9a));a.L("html5_early_media_for_drm")&&(n=n.concat(h9a),a.L("allow_vp9_1080p_mq_enc")&&n.push(i9a));var p=[].concat(g.ra(j9a));c.Z&&(p[0]=["141"]);n=g.v(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.v(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=
        KR(t,f&&d);if(u&&u.video&&!(RJ(u)&&!c.Ea&&u.video.j>c.qj)){var w=g.hI(a.U().experiments,"html5_drm_byterate_soft_cap");w>0&&VEa(u)&&u.tb>w||(r?(h.push(t),e9a(t,h,a)):(u=WO(c,u,e),u===!0?(r=!0,h.push(t),e9a(t,h,a)):m[t]=u))}}}p=g.v(p);for(n=p.next();!n.done;n=p.next())for(n=g.v(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=NVa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!UEa(q)&&!SJ(q)))if(q=WO(c,q,e),q===!0){l.push(r);e9a(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B=
        !1,YY=ZY=void 0),f?YY={video:h,audio:l}:ZY={video:h,audio:l};ZY={video:h,audio:l};e.B=!1;return ZY};
    o9a=function(a,b){var c={},d=a.ea,e=a.Da,f=d.getVideoData(),h=HO(0),l=d.getPlayerSize(),m=d.getVisibilityState();h&&(c.m$=h,c.lastManualDirection=dQa(),h=rsa()||0,h>0&&(h=(e.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.fC)())-h,e.L("html5_use_date_now_for_local_storage")?h>0&&(c.timeSinceLastManualFormatSelectionMs=h):c.timeSinceLastManualFormatSelectionMs=h));c.lea=HO();h=e.L("html5_use_streamer_bandwidth_for_low_latency_live")&&f.isLowLatencyLiveStream;if(e.schedule.Ea&&!h){var n;h=
        e.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((n=a.Ue)==null||!n.Aj):!1;c.t7=fR(e.schedule,!h)}n=g.AR();var p=g.KJ.medium,q=Math.floor(p*16/9);h=f.nk()?p:q;p=f.nk()?q:p;c.D7=Math.max(l.width*n,h);c.C7=Math.max(l.height*n,p);c.visibility=m;c.Bea=zD();c.f8=g.uM(d.vc().provider)*1E3;e.L("html5_sabr_support_quality_constraints")&&a.Jz&&(c.Jz=a.Jz);e.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(c.sabrLicenseConstraint=a.sabrLicenseConstraint);if(e.L("html5_enable_platform_backpressure_with_sabr")){if(c.Hw=
        3,a.UG||(c.Hw^=1),!a.ZG||FS(f))c.Hw^=2}else{if(e.L("html5_onesie_media_capabilities")||e.L("html5_enable_server_format_filter"))c.Hw=3;e.L("html5_onesie_audio_only_playback")&&FS(f)&&(c.Hw=1)}l=f.uf?f.uf:GS(f);if(e.L("html5_onesie_media_capabilities")){m=e.G;n=[];h=[];p=e.L("html5_shorts_onesie_mismatched_fix");q=f.nk();var r=$Y.concat(f9a);p&&(r=$Y.concat(g9a));e.L("html5_early_media_for_drm")&&(r=r.concat(h9a),e.L("allow_vp9_1080p_mq_enc")&&r.push(i9a));var t=[].concat(g.ra(j9a));l.Z&&(t[0]=["141"]);
        r=g.v(r);for(var u=r.next();!u.done;u=r.next()){u=g.v(u.value);for(var w=u.next();!w.done;w=u.next()){w=w.value;var A=KR(w,q&&p);if(A&&A.video){var C=g.hI(e.experiments,"html5_drm_byterate_soft_cap");if(!(C>0&&VEa(A)&&A.tb>C)&&WO(l,A,m)===!0){n.push({videoCodec:l9a[OJ[w]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}p=g.v(t);for(q=p.next();!q.done;q=p.next())for(q=g.v(q.value),t=q.next();!t.done;t=q.next())if(t=t.value,(r=NVa(t))&&r.audio&&(e.L("html5_onesie_51_audio")||
            !UEa(r)&&!SJ(r))&&WO(l,r,m)===!0){h.push({audioCodec:m9a[OJ[t]],numChannels:r.audio.numChannels});break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var E;if((E=a.Ue)==null?0:E.C&&E.mp){h=e.G;b&&b("ssap",{clientCapabilities:YO(h)});E=[];m=[];n=new Map;if((p=h.j)&&p.size>0)for(p=g.v(p.values()),q=p.next();!q.done;q=p.next())t=q.value,t.Fh?m.push({audioCodec:m9a[t.qb],numChannels:t.numChannels,spatialCapabilityBitmask:n9a[t.qb]}):(r=l9a[t.qb],q={videoCodec:r,maxWidth:t.maxWidth||
            0,maxHeight:t.maxHeight||0,maxFramerate:t.maxFramerate||0,is10BitSupported:t.rF||!1},t.maxBitrateBps&&(q.maxBitrateBps=t.maxBitrateBps,u=KR(t.itag),w=void 0,((w=u)==null?0:w.video)&&WO(l,u,h)===!0&&(u=u.tb*8,u>q.maxBitrateBps&&(q.maxBitrateBps=u))),t=r+"_"+t.rF,r=n.get(t)||[],r.push(q),n.set(t,r));E=Z8a(E,n);if(b){h="";if(n)for(p=g.v(n.keys()),q=p.next();!q.done;q=p.next())q=q.value,h+=q+"-"+X8a(n.get(q))+";";n=h;h=X8a(E);p="";if(m)for(q=g.v(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:E,audioFormatCapabilities:m,hdrModeBitmask:3}}var H;if((H=a.Ue)==null?0:H.C){c.No=l.No;var L;c.qj=(L=a.Ue)==null?void 0:L.qj}e.Uf&&(c.c8=e.Uf);c.vS=a.iE;c.yy=a.yy;if(e.L("html5_fix_time_since_last_seek_reporting")?a.gq!==void 0:a.gq)c.Cea=(0,g.fC)()-a.gq;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);SQ||(c.O$=!0);b=eR(e.schedule)*
        1E3;b>0&&(c.I7=b);var N;((N=a.Ue)==null?0:N.Gv)&&a.Hx&&a.Hx<Infinity&&(c.Hx=a.Hx);d=d.getPlaybackRate();d!==1&&(c.playbackRate=d);var Q;((Q=a.Ue)==null?0:Q.Tb)&&a.Cq&&(c.ww=a.ww,c.Jy=a.Jy,c.Cq=a.Cq);f.isProximaLatencyEligible&&(e.L("html5_sabr_enable_proxima_user_preference")&&cQa()===1&&(c.o$=1),e.L("html5_sabr_force_proxima")&&(c.n$=1),a=g.hI(e.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),a>0?c.e_=a:e.L("html5_sabr_enable_max_network_interruption_duration")&&(c.e_=e.schedule.interruptions[0]||
        0));return c};
    aZ=function(a,b,c,d,e,f){var h={};b&&(h.Nca={JB:b});if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.BS=e);h.DM=[];h.ZL=[];if(g.dT(a)&&a.sabrContextUpdates.size>0)for(b=g.v(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())p9a(h,c.value,d);yS(a)&&!g.dT(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&p9a(h,f,d);a.zz&&(h.dea=a.zz);d=a.U().j;h.clientInfo={clientName:q9a[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel=
        d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.gp&&(h.gp=a.gp);return h};
    p9a=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.ZL.push(b):a.DM.push(d)};
    FY=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.CG===void 0?[]:h.CG;var m=h.yH===void 0?!1:h.yH;var n=h.uw===void 0?0:h.uw;var p=h.poToken===void 0?"":h.poToken;var q=h.Wx===void 0?void 0:h.Wx;var r=h.KG===void 0?"":h.KG;var t=h.uh===void 0?0:h.uh;var u=h.wi===void 0?new Uint8Array(0):h.wi;var w=h.pM===void 0?!1:h.pM;f=h.kq===void 0?0:h.kq;h=h.JB===void 0?void 0:h.JB;RY.call(this,b,e);var A=this;this.policy=a;this.logger=new g.CQ("dash/request");this.Kz=this.Bg=0;this.D1=!1;this.Nr=this.Wp=
        null;this.ZY=!1;this.wi=this.uh=null;this.BM=this.P2=!1;this.GI=null;this.kq=this.Pp=0;this.uu=!1;this.rd={Hc:function(E){A.Hc(E)},
        xqb:function(){return A.dg},
        Qrb:function(E){A.dg=E},
        Prb:function(E){A.Bg=E},
        Orb:function(E){A.Hd.lastError=E},
        TP:function(){return A.xhr}};
        this.timing=new PY(this,c);this.yH=m;this.uh=t;this.wi=u;this.ke=g.eQ(this.info,this.policy,d);this.ke.set("rn",this.Rp().toString());this.ke.set("rbuf",(n*1E3).toFixed().toString());this.yH&&this.ke.set("smb","1");this.policy.Rl&&p&&this.ke.set("pot",p);r&&this.ke.set("bbs",r);this.policy.useUmp&&!fP(this.ke.base)&&(this.Ll=new QY(this),this.ke.set("ump","1"),this.ke.set("srfvp","1"));if(a=this.policy.Rs?this.policy.WH&&!isNaN(this.info.hh)&&this.info.hh>this.policy.zD?!1:!0:!1)b=null,this.policy.dD&&
        this.policy.dk?b=[1]:w&&(b=[]),b!=null&&(this.policy.bG&&b.push(2),this.ke.set("defsel",b.join(",")));this.Hd=new UY(this,this.policy,this.ke,this.info.resource,this.timing,this.logger,d,q);this.CG=l||null;this.HB=r9a(this);U8a(this.Hd);d=void 0;if(this.policy.cD||this.Ll||this.policy.Ea)d={method:"POST"},l=(0,g.bZ)([120,0]),q={},this.policy.IC&&h&&(h=aZ(void 0,h),q.vC=h),this.policy.Mv&&this.wi&&(q.videoPlaybackUstreamerConfig=this.wi),this.policy.Ea&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length>
        0?d.body=g.QN(q,g.NQa):d.body=l;if(this.uh&&this.wi){this.ke.set("iwts","1");d={method:"POST"};h={yy:this.uh*1E3};var C;l=(C=this.info.D)==null?void 0:C.Zm;C=g.QN({qr:h,Zm:l||void 0,videoPlaybackUstreamerConfig:this.wi},g.NQa);d.body=C}try{this.xhr=TY(this.ke,this.policy.N,this.timing,a,d),this.Hd.B.start(),f&&(this.Ju=new g.Av(this.h_,f,this),this.Ju.start(f+(this.timing.Nc.K.fh()||0)*1E3)),this.policy.BF&&E8a(this.timing,this.Ce()),this.logger.debug(function(){return"Sent, itag="+A.ke.get("itag")+
            " seg="+A.info.jb[0].Pa+" range="+A.ke.get("range")+" time="+Math.round(A.info.jb[0].C)+"-"+Math.round(g.zb(A.info.jb).D)+" rtp="+(A.timing.NJ()-Date.now()).toFixed(0)}),g.dg(function(){})}catch(E){s9a(this,E,!0)}};
    r9a=function(a){if(!(dQ(a.info)&&a.info.Ip()&&a.policy.He&&a.CG)||a.info.resource.B>=2||HO()>0||!kQa())return!1;var b=a.ke.get("aitags");if(!b)return!1;b=Ye(b).split(",");for(var c=[],d=g.v(a.CG),e=d.next();!e.done;e=d.next())e=e.value,g.Eb(b,e)&&c.push(e);if(!c.length)return!1;a.ke.set("altitags",g.Xe(c.join(",")));return!0};
    s9a=function(a,b,c){c=c===void 0?!1:c;g.jE(b);a.Hd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.dg(function(){WY(a.Hd)}):WY(a.Hd)};
    t9a=function(a){if(a.policy.Zz)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.ME();c=!c||c<=a.policy.Mp;return(!a.xhr.wC()||!b||b.indexOf("text/plain")!==-1)&&c};
    u9a=function(a,b){var c=tN(b);return JI(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
    v9a=function(a,b){a.timing.G=!0;if(a.policy.Qc){var c;(c=a.Ju)==null||c.stop()}IX(a.dg,b,!1)};
    w9a=function(a,b){a.info=b;if(a.dg){var c=a.dg;b=b.jb;(b.length!==c.jb.length||b.length<c.zf.length)&&wUa("dash/request",260511119,""+b.length,""+c.jb.length,""+c.zf.length);c.jb=b;for(var d=b[0].range,e=new lN,f=0;f<c.zf.length;f++)mN(e,c.zf[f].j);for(f=0;f<c.zf.length;f++){c.zf[f].info=b[f];var h=b[f].range;c.zf[f].j=nN(e,h.start-d.start,h.length)}}a.HB=!1};
    x9a=function(a){a.Pp&&(a.xhr.status=a.Pp,a.Bg=a.Pp)};
    cZ=function(a){this.B={};this.logger=new g.CQ(a)};
    y9a=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
    dZ=function(a,b){NY.call(this,a,b);this.Ea=!0;this.ra=!1;this.Wa=this.Ma=0;this.Za=NaN};
    z9a=function(a){cZ.call(this,"sabr");this.Cb=a};
    eZ=function(a,b,c,d,e,f,h,l){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Cb=e;this.i_=l;this.logger=new g.CQ("sabr");this.Ll=new QY(this);this.Gda=new z9a(this);this.Zf=new JX(this);this.state=1;this.v1=!1;this.NS=0;this.clipId="";this.Yu=this.cj=-1;this.e1=0;this.uu=this.PW=!1;this.policy.XH?this.Jd=new dZ(this,f):this.Jd=new PY(this,f);e=this.policy;e=HSa(b.resource,A9a(b,e,d),e);b.pu()&&e.set("probe","1");this.ke=e;this.ke.set("rn",""+this.Rp());t6a(this.Zf,c,a);this.Hd=new UY(this,
        this.policy,this.ke,b.resource,this.Jd,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);U8a(this.Hd);var m;if((m=this.policy)==null?0:m.Yd)g.M(this,this.Zf),g.M(this,this.Hd);a=b.B;b={method:"POST",body:a};this.policy.wp&&a&&(this.e1=a.length);try{this.xhr=TY(this.ke,this.policy.N,this.Jd,SQ,b),this.Hd.B.start()}catch(n){g.kE(n)}};
    B9a=function(a,b){var c=-1,d=-1,e=-1,f;if((f=a.MS)==null?0:f.items)for(a=g.v(a.MS.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.hR||f.hR<c||(c=f.hR,d=f.NK,e=f.minReadaheadMs);return{l$:c,NK:d,iR:e}};
    C9a=function(a){this.j=a;this.Y=this.La=this.N=this.Ea=this.D=this.G=this.K=this.Fa=this.Z=this.Ma=this.ra=this.Ca=this.qa=0;this.ticks={}};
    fZ=function(a){a.qa||(a.qa=(0,g.fC)(),LK("mb_s",a.qa,a.j))};
    D9a=function(a){a.Ca||(a.Ca=(0,g.fC)(),LK("ovfs_rp",a.Ca,a.j))};
    E9a=function(a){a.ra||(a.ra=(0,g.fC)(),LK("oafs_rp",a.ra,a.j))};
    F9a=function(a){a.G||(a.G=(0,g.fC)(),LK("vda",a.G,a.j),a.D&&PB(g.NB(),4))};
    G9a=function(a){a.D||(a.D=(0,g.fC)(),LK("ada",a.D,a.j),a.G&&PB(g.NB(),4))};
    H9a=function(a){a.Ea||(a.Ea=(0,g.fC)(),LK("vis_a",a.Ea,a.j))};
    I9a=function(a){a.N||(a.N=(0,g.fC)(),LK("ais_a",a.N,a.j))};
    J9a=function(a){a.La||(a.La=(0,g.fC)(),LK("vrb_f",a.La,a.j))};
    K9a=function(a){a.Y||(a.Y=(0,g.fC)(),LK("arb_f",a.Y,a.j))};
    L9a=function(a,b,c){var d=b instanceof eZ&&!a.C&&!a.B,e=!a.C&&(c==null?void 0:c.info.video);c=!a.B&&(c==null?void 0:c.info.audio);b.state===3?((e||d)&&a.tick("vrr"),(c||d)&&a.tick("arr")):b.state===4?e?(a.C=b.Ce(),PB(g.NB(),4)):c&&(a.B=b.Ce()):b instanceof FY&&b.nx()&&e&&PB(g.NB(),4)};
    M9a=function(a){return!!a.B&&!!a.C};
    N9a=function(a,b,c,d,e,f){g.DE.call(this);var h=this;this.ya=a;this.manifest=b;this.policy=c;this.Y=d;this.Ca=e;this.ra=this.j=null;this.G=this.K=NaN;this.Z=0;this.qa=NaN;this.N=null;this.Fa=new Map;this.C=this.D=NaN;this.rd={Bqb:function(){return h.B}};
        this.B=f?1:0};
    gZ=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.ra.push(b);a.publish("cuepointsadded",c)};
    P9a=function(a,b,c){if(a.B!==0&&c&&b.jb[0].Ag()){var d=b.jb[0].Pa,e=b.jb[0].C;b=b.aq();O9a(a,d,e,b,c)}};
    O9a=function(a,b,c,d,e){var f;b!==((f=a.j)==null?void 0:f.Pa)||a.B===1||d||a.j.Zg.event==="predictStart"||a.ma("sdai",{undecevt:1,sq:b,evt:a.j.Zg.event});b>a.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Pa===b){d=a.j;f=d.Zg;var h=e.Nu(f);a.ma("sdai",{onqevt:f.event,sq:b,gab:h});if(h)f.event!=="predictStart"?d.jF?hZ(a,4,"cue"):(a.G=b,a.K=c,a.ma("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.qa=Date.now(),hZ(a,2,"join"),e.VJ(d.Zg)):(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.qa=Date.now(),hZ(a,3,"predict"),e.VJ(d.Zg));else if(a.B===1){var l;((l=a.N)==null?0:l.YO(c))?(Q9a(a.ya,c,c,b),hZ(a,4,"sk2had")):hZ(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.K&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.ma("sdai",{updateSt:b,old:a.C}),a.C=b):a.D>0&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.ma("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B===1&&hZ(a,5,"noad")};
    R9a=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.K)?a.K:b};
    S9a=function(a,b){if(a.j){var c=a.j.Zg.Ch-(b.startTime+a.Z-a.j.Zg.startSecs);c<=0||(c=new qP(a.j.Zg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Zg.context,a.j.Zg.identifier,"stop",a.j.Zg.j+b.duration*1E3),a.ma("cuepointdiscontinuity",{segNum:b.Pa}),gZ(a,c,b.Pa))}};
    hZ=function(a,b,c){a.B!==b&&(a.ma("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
    iZ=function(a,b,c,d){(d===void 0?0:d)?hZ(a,1,"sk2h"):b>0&&Math.abs(b-c)>=5&&a.B===4&&hZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
    jZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
    kZ=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
    lZ=function(a,b,c){g.I.call(this);this.policy=a;this.D=b;this.ma=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1};
    mZ=function(a,b,c){if(c===void 0?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.fC)()+c;a.C.set(b.info.id,c)};
    nZ=function(a){for(var b=g.v(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d<(0,g.fC)()&&a.C.delete(c)}return a.C};
    T9a=function(a){return a.K&&nZ(a).size>0};
    oZ=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
    U9a=function(a,b){if(b){(a.policy.Vl||a.policy.Lv)&&a.ma("iaudio",{id:b});var c=g.Cb(a.D.j,function(d){return d.id===b})}c||(c=g.Cb(a.D.j,function(d){var e;
        return!((e=d.hc)==null||!e.isDefault)}));
        return c};
    V9a=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.ya=a;this.Ca=b;this.policy=c;this.manifest=d;this.K=e;this.gb=f;this.logger=new g.CQ("dash/abr");this.j=oS;this.C=this.N=null;this.Y=-1;this.La=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.Ma={};this.Za=new $Q(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Fa=0;this.eb=!1;this.Ea=new Set;this.Sa=!1;this.rd={z1:function(){pZ(h)}};
        this.G=new lZ(this.policy,e,function(l,m){h.ya.ma(l,m)})};
    $9a=function(a,b,c){qZ(a,b);W9a(a,c);a.N=a.B;X9a(a);Y9a(a);a.C=a.nextVideo;a.N=a.B;return Z9a(a)};
    c$a=function(a,b){if(a$a(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+SO(b)}),qZ(a,b),a.Z=a.D.length-1,pZ(a),rZ(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new jZ(a.B,a.C,b.reason);
        b.reason==="r"&&(a.Y=-1);qZ(a,b);rZ(a);if(b.reason==="r"&&a.nextVideo===a.C)return new jZ(a.B,a.nextVideo,b.reason);b$a(a);return null};
    d$a=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new jZ(a.N,a.C,c?"t":"m")};
    e$a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,Z9a(a)}else a.Wa=a.N!==b,a.N=b;return null};
    f$a=function(a,b){if(b.j.info.video&&b.Te){var c=(b.Sb+b.B)/b.duration,d=b.j.info.tb;c&&d&&(a.Za.Si(1,c/d),a.policy.B&&c/d>1.5&&a.ya.ma("overshoot",{sq:b.Pa,br:c,max:d}))}};
    sZ=function(a,b,c){mZ(a.G,b,c===void 0?!1:c);a.Y=-1;qZ(a,a.j)};
    tZ=function(a,b){return new jZ(a.N,a.C,b||a.j.reason)};
    b$a=function(a){if(a.C&&a.nextVideo&&uZ(a,a.C.info)<uZ(a,a.nextVideo.info)){var b=a.j.reason;a.qa=a.qa||b==="r"||b==="u"||b==="v"}};
    Z9a=function(a){a.La?a.La=!1:a.Y=(0,g.fC)();a.qa=!1;a.Sa=!1;return new jZ(a.N,a.C,a.j.reason)};
    g$a=function(a,b){var c={};b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&RJ(f)&&f.video.j>a.policy.qj,l=e<=a.policy.qj?RJ(d):QJ(d);if(!f||h||l)c[e]=d}return c};
    qZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.fC)();c=g.Pt(c,function(r){if(r.tb>this.policy.tb)return!1;var t=this.manifest.j[r.id];return nZ(this.G).get(r.id)>d?!1:t.resource.B>4||t.K>4?(this.logger.debug(function(){return"Remove "+ZJ(r)+"; 4 load failures"}),!1):this.Ea.has(+r.itag)?!1:!0},a);
        T9a(a.G)&&(c=g.Pt(c,function(r){return r.video.width<=854&&r.video.height<=480}))}c.length||(c=a.K.videoInfos);
        var e=g.Pt(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Cb(c,function(r){return r.id===a.G.j});
            f?e=[f]:oZ(a.G,"")}f=b.reason==="m"||b.reason==="s";a.policy.QC&&AY&&g.aC&&(!f||b.j<1080)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
        if(e.length>0)if(jK()){var h=g$a(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.qb===h[r.video.j].qb})}else{var l,m,n=(l=e[0])==null?void 0:(m=l.video)==null?void 0:m.j;
            if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n});
                var p=g$a(a,b)[n].qb;e=e.filter(function(r){return!!r&&!!r.video&&r.qb===p})}}e.length||(e=[c[0]]);
        e.sort(function(r,t){return uZ(a,r)-uZ(a,t)});
        c={};for(b=1;b<e.length;c={fO:void 0,LN:void 0},b++)c.LN=e[b-1],c.fO=e[b],c.LN.video.width>c.fO.video.width?(g.Fb(e,b),b--):uZ(a,c.LN)*a.policy.Z>uZ(a,c.fO)&&(g.Fb(e,b-1),b--);var q=e[e.length-1];a.eb=!!a.C&&!!a.C.info&&a.C.info.qb!==q.qb;a.logger.debug(function(){return"Constraint: "+SO(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+ZJ(q)});
        a.D=e;a.Va.clear();c=!1;for(b=0;b<e.length;b++)c?a.Va.add(e[b].itag):e[b].video.j>=1080&&(c=!0);t0a(a.policy,q,a.manifest.dc)};
    W9a=function(a,b){if(a.policy.Vl){var c=U9a(a.G,b);b||c||(c=h$a(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Cb(a.K.j,function(d){return!!d.hc&&d.hc.isDefault}))||(c=h$a(a)),c=c||a.K.j[0];
        a.B=a.manifest.j[c.id];pZ(a)};
    i$a=function(a,b){for(var c=0;c+1<a.D.length&&a.D[c].video.quality==="tiny";)c++;var d=CY(a.Ca)/a.policy.Z;return uZ(a,b.info)+uZ(a,a.D[c])>d};
    pZ=function(a){if(!a.B||!a.policy.D&&!a.B.info.hc){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(b.length>1){var c=!1;if(c=a.policy.Zc?!0:a.j.isLocked()?a.j.j<240:i$a(a,a.B))a.B=a.manifest.j[g.zb(b).id]}}};
    rZ=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=a.j.j<=360?a.manifest.j[a.D[0].id]:a.manifest.j[g.zb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+ZJ(a.nextVideo.info)});
    else{for(var b=Math.min(a.Z,a.D.length-1),c=CY(a.Ca),d=uZ(a,a.B.info),e=c/a.policy.Y-d;b>0&&!(uZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b<a.D.length-1&&!(uZ(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+ZJ(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+SO(a.j)});
        a.Z=b}};
    X9a=function(a){var b=a.policy.Y,c=CY(a.Ca),d=c/b-uZ(a,a.B.info);b=g.Db(a.D,function(e){return uZ(this,e)<d},a);
        b<0&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+ZJ(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
    Y9a=function(a){if(a.gb.length){var b=a.gb,c=function(d,e){if(d.info.qb==="f"||b.includes(WJ(d.info,a.manifest.dc)))return d;for(var f={},h=0;h<e.length;f={mP:void 0,RT:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(WJ(l.info,a.manifest.dc))){var m=d.info.qb,n=l.info.qb;if(m===n||jK()){if(d.info.j!==l.info.j)return a.ya.ma("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.mP=d.info.itag;f.RT=l.info.itag;a.ya.ma("ombifa",{f:f.mP,t:f.RT});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
        p.mP+" to "+p.RT+" based on prefetched media."}}(f));
        a.La=!0;return l}a.ya.ma("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.ya.ma("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
        a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
    uZ=function(a,b){if(!a.Ma[b.id]){var c=a.manifest.j[b.id].index.pY(a.Fa,15);c=b.pw&&a.C&&a.C.index.isLoaded()?c||b.pw:c||b.tb;a.Ma[b.id]=c}c=a.Ma[b.id];a.Va.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.Za.fh()||0)};
    j$a=function(a,b){a=dba(a.manifest.j,function(c){return c.info.itag===b});
        if(!a)throw Error("Itag "+b+" from server not known.");return a};
    k$a=function(a){var b=[];if(a.j.reason==="m"||a.j.reason==="s")return b;if(UTa(a.manifest)){for(var c=Math.max(0,a.Z-2);c<a.Z&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
    a$a=function(a,b){var c;return uRa(a.j,b)&&(!a.G.j||!a.j.isLocked()||((c=a.nextVideo)==null?void 0:c.info.id)===a.G.j)};
    h$a=function(a){var b=g.Cb(a.K.j,function(d){return d.audio.j}),c=g.Cb(a.K.j,function(d){return!d.audio.j});
        if(!b)return null;if(!a.policy.FE)return c;a.policy.sB&&b&&(a.ya.ma("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(c==null?0:c.approxDurationMs)?c.approxDurationMs:""}),c&&Math.abs(c.approxDurationMs-b.approxDurationMs)>1E3&&(b=c));return b};
    l$a=function(a){var b=a===void 0?{}:a;a=b.jj===void 0?!1:b.jj;var c=b.dk===void 0?!1:b.dk;b=b.Rs===void 0?!1:b.Rs;return a?b?3:2:c?-1:1};
    n$a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Fa=c;this.D=this.B=0;this.Kf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new sK;this.ra=this.Ca=!1;this.rd={qqb:function(){return d.C},
        Npb:function(){return d.chunkSize},
        Ipb:function(){return d.N},
        Hpb:function(){return d.K}};
        (b=m$a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.iB,this.C=0,this.N=g.wD(16),this.K=g.wD(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new P8a(this.N,this.K))};
    m$a=function(a){if(a.policy.uf&&a.policy.SB)for(var b=g.v(a.policy.uf),c=b.next(),d={};!c.done;d={AO:void 0,QO:void 0},c=b.next())if(c=g.pA(c.value),d.AO=+c.clen,d.QO=+c.csz,d.AO>0&&d.QO>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.AO,a.csz=d.QO,a.ck=c.ck,a.civ=c.civ,a};
    vZ=function(a){return!!a.Kf&&YP(a.Kf)};
    s$a=function(a,b){if(!vZ(a)&&!a.Na()){if(!(a.Ca||(a.Ca=!0,a.C>0))){var c=o$a(a);c=JWa(a.policy.D,a.j.info,wZ(a),c,a.policy.eb);p$a(a,c)}if(b.info.type===1){if(a.Kf){xZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=VP(0,b.j.totalLength)}else if(b.info.type===2)a.Kf&&a.Kf.type===1||xZ(a,Error("Woffle: Index before init")),a.indexRange=VP(a.initRange.end+1,b.j.totalLength);else if(b.info.type===3){if(!a.Kf){xZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
        return}if(a.Kf.type===3&&!aQ(a.Kf,b.info)&&(a.Y=[],b.info.Pa!==QSa(a.Kf)||b.info.Sb!==0))return;if(b.info.Te){c=g.v(a.Y);for(var d=c.next();!d.done;d=c.next())q$a(a,d.value);a.Y=[]}else{a.Y.push(b);a.Kf=b.info;return}}else{xZ(a,Error("Woffle: Unexpected slice type"));return}a.Kf=b.info;q$a(a,b);r$a(a)}};
    q$a=function(a,b){var c=0,d=oN(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=(((e=b.info.range)==null?void 0:e.start)||0)+b.info.Sb;c-=f;if(c>=d.length)return;if(c<0)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;e={MM:void 0})if(e.MM=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.MM),a.G.set(f,a.B),a.B+=e.MM,c+=e.MM,a.B===a.G.length){if(b.info===a.Kf&&vZ(a)&&c===d.length)break;e=o$a(a);e=JWa(a.policy.D,a.j.info,wZ(a),e,a.policy.eb,a.D,a.G,a.crypto);
        a.qa.add(e);p$a(a,e);a.Na()||(e=o$a(a),a.Fa(wZ(a),e!==void 0?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
    r$a=function(a){if(vZ(a))if(a.Kf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=t$a(a),d=a.policy.D;Promise.all(a.qa).then(function(){var e=JWa(d,a.Kf.j.info,wZ(a,!0),c,a.policy.eb,a.D,b,a.crypto);p$a(a,e,!0)})}else xZ(a,new yZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
    else xZ(a,new yZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
    o$a=function(a){return{downloadedEndTime:Math.round(a.Kf?a.Kf.D:0),maxKnownEndTime:Math.round(a.j.index.Qt()),averageByteRate:Math.round(a.j.info.pw)}};
    t$a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Qt()),averageByteRate:Math.round(a.j.info.pw)}};
    wZ=function(a,b){b===void 0||!b||a.indexRange&&a.initRange&&a.Kf||xZ(a,new yZ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.D,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.D*a.chunkSize+a.B};a.crypto&&(b.ck=a.N,b.civ=a.K);var c="local://localhost/videoplayback?"+nA(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:a.j.info.tb*8,lastModified:String(a.j.info.lastModified),initRange:(d=
            a.initRange)==null?void 0:MSa(d),indexRange:(e=a.indexRange)==null?void 0:MSa(e),url:c};if(d=a.j.info.j)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
    p$a=function(a,b,c){c=c===void 0?!1:c;b.then(function(d){a.qa.delete(b);(c||d===4)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
    xZ=function(a,b){g.dS(a.policy.D)!==4&&(g.eS(a.policy.D,4),g.kE(b),a.Z.reject(new yZ(b.message)))};
    yZ=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=b===void 0?!1:b};
    u$a=function(a){a=g.BP(a,1886614376);for(var b=g.v(a),c=b.next();!c.done;c=b.next());return g.as(a,function(d){return aSa(d)})};
    v$a=function(a){var b=cs(a,function(e,f){return e+f.length},0);
        b=new Uint8Array(b);var c=0;a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
    w$a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.sz=f};
    zZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Le=!1;this.B=null;if((b==null?void 0:b.toLowerCase())==="webm"||a.length===16)this.Le=!0};
    y$a=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(e<=1)break;if(d.getUint32(c+4)===1886614376){var f=32;if(d.getUint8(c+8)>0){var h=d.getUint32(c+28);f+=h*16+4}var l=d.getUint32(c+f-4);try{var m=x$a(b.subarray(c+f,c+f+l));if(m!==null){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(n!=null)for(b=Ci(Ij(n,7)),b==null||a.Le||(a.cryptoPeriodIndex=b),b=Ci(Ij(n,10)),b!=null&&b>0&&!a.Le&&(a.j=b),n=Tj(n,
        2,Fj(n.oa)&34?qea:rea,2),n=g.v(n),b=n.next();!b.done;b=n.next())a.C.push(g.Fg(Og(b.value),4))};
    z$a=function(a){return isNaN(a.cryptoPeriodIndex)?g.Fg(a.initData):""+a.cryptoPeriodIndex};
    AZ=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.FG===void 0?void 0:d.FG;d=d.hK===void 0?!1:d.hK;this.videoId=a;this.status=b;this.videoDuration=c;this.FG=e;this.hK=d};
    A$a=function(a,b,c,d,e){this.videoId=a;this.lP=b;this.B=c;this.bytesDownloaded=d;this.j=e};
    BZ=function(a){this.j=a;this.offset=0};
    B$a=function(a){if(a.offset>=a.j.totalLength)throw Error();return qN(a.j,a.offset++)};
    C$a=function(a,b){b=b===void 0?!1:b;var c=B$a(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=B$a(a);b===-1&&d!==255&&(b=0);b>-1&&(b=b*256+d)}return b}d=128;for(var e=0;e<6&&d>c;e++)c=c*256+B$a(a),d*=128;return b?c:c-d};
    D$a=function(a){try{var b=C$a(a,!0),c=C$a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
    E$a=function(a){for(var b=new BZ(a),c=-1,d=0,e=0;!d||!e;){var f=D$a(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Fm()}else if(h===186){if(f!==2)return;e=b.Fm()}h===374648427?c=b.Fm()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=pN(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new lN([b]);mN(d,a);return d};
    G$a=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.CQ("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Ea=NaN;this.qa=0;this.C=NaN;this.Z=this.La=0;this.Wa=-1;this.Ma=this.G=this.D=this.Fa=null;this.Za=this.Va=NaN;this.N=this.ra=this.eb=this.gb=null;this.rb=!1;this.Sa=this.timestampOffset=0;this.rd={vY:function(){return d.B}};
        if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.eb&&a.ma("atv",{ap:this.policy.eb});this.N=new n$a(this.policy,e,function(h,l,m){CZ(a,new AZ(d.policy.D,2,{FG:new A$a(f,h,e.info,l,m)}))});
            this.N.Z.promise.then(function(h){d.N=null;h===1?CZ(a,new AZ(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 yZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.ma("offlinenwerr",{em:l}),F$a(d),CZ(a,new AZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.ma("dldbwerr",{em:l}),F$a(d),CZ(a,new AZ(d.policy.D,4,{hK:!0})))})}};
    H$a=function(a){return a.B.length?a.B[0]:null};
    O$a=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Sb+a.G.B;if(c.info.Sb>0)if(c.info.Pa===a.G.Pa&&c.info.Sb<e){if(c.info.Sb+c.info.B<=e)return;c=qTa(c,e-c.info.Sb)[1]}else if(c.info.Pa>=0&&a.G.Pa>=0&&!aQ(a.G,c.info))throw new g.CB("improper_continuation",a.G.Vc(),c.info.Vc());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:aQ(e,f)||(Math.abs(e.C-f.C)<=1E-6&&e.Pa===f.Pa?0:PSa(e,f)))||I$a(a,"d")}else if(c.info.Sb>0)throw new g.CB("continuation_of_null",c.info.Vc());a.G=c.info;
        a.K=c.info.j;if(c.info.Sb===0){if(a.j)if(!a.ya.isOffline()||a.policy.Ik)a.ya.ma("slice_not_fully_processed",{buffered:a.j.info.Vc(),push:c.info.Vc()});else throw new g.CB("slice_not_fully_processed",a.j.info.Vc(),c.info.Vc());DZ(a);a.La=d}else{if(a.La&&d&&a.La!==d)throw a=new g.CB("lmt_mismatch",c.info.Pa,a.La,d),a.level="WARNING",a;!c.info.j.Nm()&&a.D&&(d=c.info,e=a.D.cj,d.G="updateWithEmsg",d.Pa=e)}if(a.j){d=oQ(a.j,c);if(!d)throw new g.CB("failed_to_merge",a.j.info.Vc(),c.info.Vc());a.j=d}else a.j=
            c;a:{c=g.TJ(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.Te)break a;a.j.info.type===6?J$a(a,b,a.j):K$a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(a.Ca<=0&&a.Y===0){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=fLa(h,l),n=fLa(h,l+4);l+=m||1;if(n===1836019558)f=l;else if(n===1835295092){e=l;break}}e<0&&(f=-1)}else{h=new BZ(h);for(m=l=!1;;){n=h.Fm();var p=D$a(h),q=p.id;p=p.size;if(!(q>0))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=h.Fm()+p,m=!0);else{if(l&&(q===
            160||q===163)&&(f<0&&(f=n),m))break;q===163&&(f=Math.max(0,f),e=h.Fm()+p);if(q===160){f<0&&(e=f=h.Fm()+p);break}h.skip(p)}}f<0&&(e=-1)}if(f<0)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=L$a(a,a.Ca),d.G&&M$a(a,d),J$a(a,b,d),N$a(a,d),a.Ca=0):a.Y&&(d=L$a(a,a.Y<0?Infinity:a.Y),a.Y-=d.j.totalLength,N$a(a,d))}}a.j&&a.j.info.Te&&(N$a(a,a.j),a.j=null)};
    K$a=function(a,b){!b.info.j.Nm()&&b.info.Sb===0&&(g.TJ(b.info.j.info)||b.info.j.info.Le())&&xTa(b);if(b.info.type===1)try{M$a(a,b),P$a(a,b)}catch(e){g.jE(e);var c=bQ(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.YP(b);a.N&&s$a(a.N,b);if(c.jg()&&a.policy.C)a:{a=a.ya.manifest;b=b.info.clipId;c=VJ(c.info,a.dc);if(b){var d=VTa(a,c);if(a.Ma[d])break a;a.Ma[d]=b}a.Ea.push(c)}};
    F$a=function(a){var b;(b=a.N)==null||b.dispose();a.N=null};
    Q$a=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};
    R$a=function(a){if(a.ra&&!a.policy.fq){var b=a.ya;b.manifest.isManifestless&&zQ(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;DZ(a)};
    L$a=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=qTa(c,b);a.j=c[1];return c[0]};
    M$a=function(a,b){var c=nQ(b);if(TEa(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new CP(c);EP(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,c.getUint8(d)===129&&c.getUint8(d+1)===1&&c.setUint8(d+1,9))}d=b.info.j.info;QJ(d)&&!TEa(d)&&(d=nQ(b),(new CP(d)).uo(),IP([408125543,374648427,174,224],21936,d));b.info.j.info.Ag()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.TJ(d.info)?d.B=lSa(c):d.info.Le()&&(d.B=vSa(c))));b.info.j.info.Le()&&
    b.info.Ag()&&(c=nQ(b),(new CP(c)).uo(),IP([408125543,374648427,174,224],30320,c)&&IP([408125543,374648427,174,224],21432,c));if(a.policy.YH&&b.info.j.info.Le()){c=nQ(b);var e=new CP(c);if(EP(e,[408125543,374648427,174,29637])){d=HP(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Fh()&&g.TJ(b.info.j.info)){d=nQ(b);c=g.uP(d,0,1701606260);f=g.uP(d,0,1836476516);if(c&&f){c.skip(2);var h=lP(c),l=nP(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(oP(c)),e.push(oP(c)),
        m.push(lP(c)),n.push(lP(c));else for(h=0;h<l;++h)d.push(mP(c)),e.push(mP(c)),m.push(lP(c)),n.push(lP(c));c=g.vP(f);c=new iSa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.TJ(b.info.j.info))for(d=nQ(b),e=g.uP(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.uP(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.Nm()||b.info.j.j||b.info.j.indexRange||zTa(b)};
    J$a=function(a,b,c){if(c.info.j.Nm()){if(a.rb&&S$a(c)&&(b=nQ(c),b=g.uP(b,0,1953658222))){b.skip(1);var d=kP(b)<<16|lP(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=nP(b);m<2||(e&&b.skip(4),f&&b.skip(4),e=nP(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.Fa&&!!a.Fa.K.D)if(b=c.info.Ag())b=vTa(c),h=a.Fa,OX?(l=1/b,b=EZ(a,b)>=EZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&S$a(c)&&(b=a.Fa,OX?(l=vTa(c),h=1/l,l=EZ(a,l),b=EZ(b)+h-l):b=b.getDuration()-
        a.getDuration(),b=1+b/c.info.duration,kSa(nQ(c),b))}else{h=!1;a.D||(xTa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.cj,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.C&&(d=a.K.index,d.B=!f.C,d.C="emsg"),f=c.info.j.info,d=nQ(c),g.TJ(f)?qSa(d,1701671783):f.Le()&&IP([408125543],307544935,d)));a:if((f=pQ(c,a.policy.Ob))&&wTa(c))l=T$a(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.Pk?a.C+f:NaN;else{if(a.policy.Uv){if(d=m=a.ya.gr(rTa(c),1),a.C>=0&&c.info.type!==6){if(a.policy.Pk&&isNaN(a.Va)){g.kE(new g.CB("Missing duration while processing previous chunk",
        c.info.Vc()));a.ya.isOffline()&&!a.policy.Ik||U$a(a,c,d);I$a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Ma?a.Ma.Pa:-1,t=a.Za,u=a.Va,w=a.policy.zp&&n>a.policy.zp,A=Math.abs(p)>10,C=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Sa+=1;var E=(e=a.D)==null?void 0:fSa(e);e={audio:""+ +a.Fh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(w||A)};if(E==null?0:E.length)e.adCpn=E[0];a.ya.handleError("qoe.avsync",
        e);a.Wa=q}w||A||C||(d=a.C);e=T$a(a,c,m);f-=e;a.Z=n+e;a.policy.B&&(p&&!C||e)&&(n=(l=a.D)==null?void 0:fSa(l),a.ya.ma("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(p*1E3).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;U$a(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.yp&&a.Sa>=a.policy.yp&&(a.Sa=0,a.ya.Eq({resetForRewrites:"count"})))}a.Ma=
        c.info;a.Va=uTa(c);c.C>=0&&(a.Za=c.C);if(h&&a.D){h=V$a(a,!0);ZSa(c.info,h);a.j&&ZSa(a.j.info,h);b=g.v(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==((e=a.D)==null?void 0:e.cj)||ZSa(l,h);(c.info.Te||a.j&&a.j.info.Te)&&c.info.type!==6||(a.ra=h,b=a.ya,b.manifest.isManifestless&&W$a(b,h,null,!!a.K.info.video),a.policy.kf||X$a(a))}}P$a(a,c);a.timestampOffset&&tTa(c,a.timestampOffset)};
    N$a=function(a,b){if(b.info.Te){a.gb=b.info;if(a.D){var c=a.D,d=V$a(a,!1),e=null;if(a.D.jF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=fSa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.v(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.v(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.v(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 w$a(e,f,h,l,g.gSa(c),g.hSa(c))}a.ya.QR(a.K,d,e);a.ra||a.policy.kf||X$a(a);a.ra=null}DZ(a)}a.N&&s$a(a.N,b);if(c=a.Mo())if(c=oQ(c,b,a.policy.Tl)){a.B.pop();a.B.push(c);return}a.B.push(b)};
    DZ=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Ea=NaN;a.qa=0;a.ra=null};
    I$a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ma?a.Ma.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.Ma=null;a.Za=NaN;a.Va=NaN;a.eb=null;a.ya.ma("mdstm",b)};
    P$a=function(a,b){if(a.K.info.me){if(b.info.j.info.Le()){var c=new CP(nQ(b));if(EP(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=HP(c,!0);c=d!==16?null:uSa(c,d)}else c=null;d="webm"}else b.info.N=u$a(nQ(b)),c=v$a(b.info.N),d="cenc";c&&c.length&&(c=new zZ(c,d),a.policy.KD&&g.TJ(b.info.j.info)&&(d=sSa(nQ(b)))&&(c.B=d),c.Le=b.info.j.info.Le(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.Tx(c))}};
    X$a=function(a){var b=a.D,c=dSa(b);c&&(c.startSecs+=a.Ea,a.ya.PR(a.K,c,b.cj,b.jF()))};
    V$a=function(a,b){var c,d=a.D;if(c=dSa(d))c.startSecs+=a.Ea;return new iP(d.cj,a.Ea,b?d.Oj:a.qa,d.ingestionTime,"sq/"+d.cj,void 0,void 0,b,c)};
    U$a=function(a,b,c){if(!sTa(b,c))return b=bQ(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ea)&&(a.Ea=c);return!0};
    T$a=function(a,b,c){var d=0;if(b.info.j.info.Le()&&!wTa(b))return 0;if(a.Fa&&!a.Fh()){var e=0;c&&g.TJ(b.info.j.info)?e=c-a.C:b.info.j.info.Le()&&(e=a.Z);var f=b.info.Pa;c=pQ(b,a.policy.Ob);var h=a.Fa;var l=h.Wa;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.TJ(b.info.j.info))kSa(nQ(b),d);else if(b.info.j.info.Le()&&(f=e-h,!g.TJ(b.info.j.info)&&(b.info.j.info.Le(),d=new CP(nQ(b)),l=b.G?d:new CP(new DataView(b.info.j.j.buffer)),pQ(b,!0)))){var n=
        f*1E3,p=NP(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||OP(d))if(GP(d,160))if(HP(d,!0),GP(d,155)){if(f=d.pos,m=HP(d,!0),d.pos=f,n=n*1E9/p,p=JP(d),n=p+Math.max(-p*.7,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;f>=0;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=pQ(b,a.policy.Ob);d=c-d}d&&b.info.j.info.Le()&&a.ya.ma("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
    S$a=function(a){return a.info.j.Nm()&&a.info.Pa===a.info.j.index.Bd()};
    EZ=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
    Y$a=function(a,b){b<0||(a.B.forEach(function(c){tTa(c,b)}),a.timestampOffset=b)};
    EY=function(a,b,c,d,e){RY.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Zf=d;this.lastError=null;this.Cg=function(){f.Na()||(f.Zf.bd.has(f.formatId)?(f.isComplete()||f.j.start(),MX(f.Zf,f.formatId)&&f.rB(2),f.Zf.Pg(f.formatId)&&(p6a(f.Zf,f.formatId)?f.Hc(4):(f.lastError="net.closed",f.Hc(5)))):(f.lastError="player.exception",f.Hc(5)))};
        this.j=new g.Av(function(){f.isComplete()||(f.lastError="net.timeout",f.Hc(5))},this.policy.JD);
        this.j.start();k6a(this.Zf,this.formatId,this.Cg);g.dg(this.Cg)};
    FZ=function(a,b,c,d){g.I.call(this);var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.CQ("dash");this.C=[];this.ra=[];this.B=this.Rb=null;this.Ea=!1;this.Ma=this.La=0;this.K=-1;this.qa=!1;this.Ca=-1;this.Fa=null;this.Y=NaN;this.rd={FP:function(){return e.D},
        pqb:function(){return e.C},
        Lpb:function(){return e.Z}};
        this.D=new G$a(a,b,c);this.policy.C&&(this.Z=new j8a(this.D,this.ya.getManifest(),this.policy,function(f){e.policy.vp&&e.ya.ma("buftl",f)}));
        this.tb=c.info.tb;this.N=this.policy.Wa?!1:c.JA();this.isManifestless=c.JA();this.G=this.N;g.M(this,this.Fa)};
    GZ=function(a,b,c){c=c===void 0?!1:c;b&&OX&&Y$a(a.D,b.RP());if(!c){var d;(d=a.Z)==null||r8a(d)}a.Rb=b;(b=a.Z)!=null&&(b.Rb=a.Rb)};
    HZ=function(a){var b=a.Rb&&a.Rb.iA();if(a.policy.cw){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.B)==null?void 0:c.info}return a||null}return b};
    Z$a=function(a){for(var b={},c=0;c<a.ra.length;c++)b["r"+c]=a.ra[c];return b};
    $$a=function(a,b){isNaN(a.Y)||a.ya.ma("aswr",{sq:b.info.jb[0].Pa,id:b.info.jb[0].j.info.itag,xtag:b.info.jb[0].j.info.j,ep:Date.now()-a.Y});a.C.push(b);a.B=g.zb(b.info.jb);a.ra.push(b.Vc());a.ra.length>4&&a.ra.shift()};
    aab=function(a,b){if(b.El()){var c=b.Mk();c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof EY&&a.ya.ma("omblss",{s:d.info.Vc()}),IZ(a,b.info.jb,d,b.OP())}};
    IZ=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.Y)||(a.ya.ma("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:bab(a,c);break;case 4:var e=c.info.j,f=e.JV(c),h;((h=a.B)==null?0:h.type===4)&&XSa(c.info,a.B)&&(a.B=e.ZB(a.B).pop());c=g.v(f);for(e=c.next();!e.done;e=c.next())IZ(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Fa||(e.Fa=(0,g.fC)(),LK("fvb_r",e.Fa,e.j))):(e=a.timing,e.K||(e.K=(0,g.fC)(),LK("fab_r",e.K,e.j)));
        O$a(a.D,b,c,d);a.policy.C&&cab(a);break;case 6:O$a(a.D,b,c,d),a.B=c.info}};
    bab=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.fC)(),LK("vis_r",c.Ma,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.fC)(),LK("ais_r",c.Z,c.j));K$a(a.D,b);a=a.ya;a.videoTrack.j.jg()&&a.audioTrack.j.jg()&&a.policy.C&&!a.manifest.dc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.ma("trBug",{af:""+VJ(a.audioTrack.j.info,!1),vf:""+VJ(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
    LY=function(a){return H$a(a.D)};
    cab=function(a){a.C.length?a.B=g.zb(g.zb(a.C).info.jb):a.D.B.length?a.B=a.D.Mo().info:a.B=HZ(a)};
    JZ=function(a,b){var c={ud:[],Lo:[]},d;if((a=a.Z)==null)a=void 0;else{q8a(a,a.ud,"og");o8a(a,b);q8a(a,a.ud,"trim");var e=p8a(a);b=e.ud;e=e.FB;for(var f=[],h=0;h<e.length;h++){var l=e[h];f.push({formatId:VJ(l.info.j.info,a.manifest.dc),Mj:l.info.Mj,sequenceNumber:l.info.Pa+a.C,vJ:{rh:((a.policy.Sa&&l.C!==-1?l.C:l.info.startTime)+a.timestampOffset)*1E3,rE:(a.policy.Sa&&l.D!==-1?l.D:l.info.duration)*1E3,uv:1E3},OZ:l.info.B})}a={ud:b,Lo:f}}return(d=a)!=null?d:c};
    HY=function(a,b,c){c=c===void 0?!1:c;if(a.Rb){var d=a.Rb.Je(),e=dK(d,b),f=NaN,h=HZ(a);h&&(f=dK(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&dab(eab(a),0))return b}a=fab(a,b,c);return a>=0?a:NaN};
    IY=function(a,b,c){a.j.jg();var d=fab(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.Cc&&c!=null&&c.CF||(d.FB=[]);o8a(d,!0);d.j=k8a(d.ud,e*1E3)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Kf&&e.Kf.type===3)e=e.Kf.startTime;else if(e.C>0){var f=e.j.index;f=g.Qb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.j){var h,l;c=(h=a.ya.Wf())==null?void 0:(l=iY(h,b))==null?void 0:l.clipId;a.B=a.j.Hr(b,
        void 0,c).jb[0]}else a.B=a.policy.Wa?null:a.j.Hr(b).jb[0];KZ(a)&&a.Rb&&a.Rb.abort();a.Ma=0;return a.B?a.B.startTime:b};
    t8a=function(a){a.N=!0;a.G=!0;a.K=-1;IY(a,Infinity)};
    LZ=function(a){for(var b=0,c=g.v(a.C),d=c.next();!d.done;d=c.next())b+=aTa(d.value.info);return b+=Q$a(a.D)};
    NZ=function(a,b){b=b===void 0?!1:b;var c=a.ya.getCurrentTime(),d=a.D.Mo(),e=(d==null?void 0:d.info.D)||0;a.policy.Bj&&(d==null?0:d.info.j.JA())&&!d.info.Te&&(e=d.info.C);if(a.policy.j&&d&&d.info.clipId){var f,h=(((f=a.ya.Wf())==null?void 0:gY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Rb)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=HZ(a))&&MZ(a,f))return f.D;f=a.Rb.Je(!0);return b&&d?(b=0,a.policy.C&&(b=fK(f,e+.02)),b+e-c):fK(f,c)};
    gab=function(a,b){if(a.C.length){if(a.C[0].info.jb[0].startTime<=b)return;GY(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();cab(a);a.B&&b<a.B.startTime&&(a.Ma=0,a.j.jg()?a.B=a.j.Hr(b,!0).jb[0]:a.B=null)};
    hab=function(a,b,c,d){GY(a);for(var e=a.D,f=null,h=e.B.length-1;h>=0;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=pQ(l,e.policy.Ob),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.eb,e.B.length!==0||e.G||I$a(e,"r"));e.ya.ma("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});d>c?IY(a,d):a.B=a.j.Xs(b-1,!1).jb[0]};
    PZ=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)OZ(a,b);else{for(;c<a.C.length;)OZ(a,a.C.pop());var d=iab(a);d&&d.j.mx()&&Zs(b.info.jb,function(e){return YSa(e,d)})?(a.B=d,a.policy.B&&a.ya.ma("cer",{lsr:"lsp",
        lsp:d.Vc()})):($P(b.info.jb[0])?(a.B=b.dg&&b.dg.C?VSa(b.dg.C):USa(b.info.jb[0]),a.policy.B&&a.ya.ma("cer",{lsr:a.B.Vc(),lsp:d==null?void 0:d.Vc()})):(a.B=null,a.policy.B&&a.ya.ma("cer",{lsr:"null",lsp:d==null?void 0:d.Vc()})),a.ya.isOffline()&&!a.policy.Ik||OZ(a,b,!0))}};
    MZ=function(a,b){if(!b)return!1;if(a.policy.j){var c;if((a=(c=a.ya.Wf())==null?void 0:c.ea.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return YP(b)};
    KZ=function(a){var b;!(b=a.j.info.qb==="f")&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&vZ(b.N));if(b)return!0;b=HZ(a);if(!b)return!1;var c=MZ(a,b)&&b.Te;return a.isManifestless&&a.Ca>0?c||b.Pa>=a.Ca:c};
    QZ=function(a){var b;return KZ(a)||MZ(a,(b=a.D.Mo())==null?void 0:b.info)};
    eab=function(a){var b=[],c=HZ(a);c&&b.push(c);b=g.Jb(b,a.D.Un());c=g.v(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.v(d.info.jb),f=e.next(),h={};!f.done;h={YG:void 0},f=e.next())h.YG=f.value,d.iQ&&(b=g.Pt(b,function(l){return function(m){return!XSa(m,l.YG)}}(h))),($P(h.YG)||h.YG.type===4)&&b.push(h.YG)}a.B&&!OSa(a.B,g.zb(b),a.B.j.Nm())&&b.push(a.B);
        return b};
    dab=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!PSa(a[b-1],a[b]))return!1;return!0};
    fab=function(a,b,c){c=c===void 0?!1:c;if(!a.B||!a.B.B)return NaN;a=eab(a);a:{b+=.02;var d=c;d=d===void 0?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return b<0?NaN:dab(a,c?b:0)?a[b].startTime:NaN};
    RZ=function(a){return!(!a.B||a.B.j===a.j)};
    jab=function(a){return RZ(a)&&a.j.jg()&&a.B.j.info.tb<a.j.info.tb};
    kab=function(a,b,c){if(a.policy.Bj)return NZ(a,!0)<c;var d=iab(a);return d&&!MZ(a,d)?d.D>b&&d.D<b+c:!1};
    iab=function(a){var b=a.D.Mo();return b?b.info:HZ(a)};
    lab=function(a){return(a=iab(a))?a.Pa:-1};
    GY=function(a){for(var b=g.v(a.C),c=b.next();!c.done;c=b.next())OZ(a,c.value);a.C=[];a.B=null};
    mab=function(a,b,c){b.iQ&&((c===void 0?0:c)||!b.info.jb[0].j.mx())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.jb[0].Pa}),R$a(a.D))};
    OZ=function(a,b,c){mab(a,b,c===void 0?!1:c);b.dispose()};
    nab=function(a){return!!a.B&&a.B.Pa!==-1&&a.B.Pa<a.j.index.Qn()};
    oab=function(a){var b=a.B;b&&b.Pa===-1&&(a=a.D.Mo())&&$P(a.info)&&(a=a.info.Pa,b.G="updateLastSliceRequested",b.Pa=a)};
    pab=function(a){return Zs(a.C,function(b){return b.HB})};
    qab=function(a,b){a.B&&(a.B.j=b)};
    SZ=function(a){var b=LY(a),c=a.ya.Wf();if(a=b&&c&&!a.policy.QA&&b.info.clipId){a:if(b=b.info.clipId,c.uT&&c.Kw&&c.Kw!==b)c=!1;else{if(b=c.Yj.get(b))if(b=b.getId().split(","),b.length>1)for(a=0;a<b.length;a++){var d=a<b.length-1?b[a+1]:"";if(c.zk.has(b[a])){c=b[a]===c.Vb&&!c.zk.has(d);break a}}c=!0}a=!c}return a?!0:!1};
    rab=function(a){return a.Rb?a.Rb.zF():!1};
    sab=function(a,b){var c=LY(a);return c&&c.info.type!==6?!!(b.B===1||b.B===2||b.B!==0&&a===b.Ca&&c.info.Pa>lab(b.Y)):!1};
    tab=function(a){var b=HZ(a),c,d=(c=a.Rb)==null?void 0:c.Je();c=NaN;b&&d&&KZ(a)&&(c=dK(d,(b.C+b.D)/2));return!isNaN(c)};
    uab=function(a){var b=a===void 0?{}:a;a=b.dk;var c=b.jj;var d=b.Pj;var e=b.Bd;b=b.Mw;this.dk=a;this.jj=c;this.Pj=d;this.Bd=e;this.Mw=b};
    J8a=function(a,b){if(b<0)return!0;var c=a.Bd();return b<c||b===c&&!a.dk||b===c&&(a=a.Mw())&&b===a.Pa?!0:!1};
    K8a=function(a,b,c){if(!J8a(a,b))return 0;if(!a.jj||!isNaN(c)&&c>0)return 2;if(b<0)return 1;c=a.Bd();return b<c||b===c&&(a=a.Mw())&&b===a.Pa&&!a.pending?2:1};
    TZ=function(a,b,c){g.I.call(this);this.ya=a;this.policy=b;this.Nc=c;this.B=0;this.j=!1;this.delay=new g.Av(this.C,this.policy.Vf,this);g.M(this,this.delay)};
    vab=function(a,b){fP(b.j)||(a.resource=b,a.B=0,g.Bv(a.delay))};
    wab=function(a,b,c,d,e){var f=this;this.ya=a;this.policy=b;this.Nc=c;this.resource=d;this.Rj=e;this.done=!1;this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))};
        this.size=Math.ceil(Math.min(1E5,.1*fR(this.Nc)));this.timing=new PY(this,{Nc:this.Nc,Yz:this.size,rr:!0,Vu:function(){},
            kJ:this.policy.B});a=HSa(this.resource,this.Rj,this.policy).base.clone();dP(a);a.path!=="/videogoodput"&&(a.path="/videogoodput",a.url="");this.location=new PP(a);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=TY(this.location,this.policy.N,this.timing,this.policy.Rs,{});setTimeout(this.onTimeout,1E4)};
    xab=function(a,b,c){var d=a.Rw();if(a.isComplete()||!d||a.info.resource.Rj(b,c)||d<2)return 0;a=QP(c,ISa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
    yab=function(a,b,c){if(!(b.Ev&&a.isComplete()&&a.canRetry()&&a.info.resource.Rj(b,c)))return 0;a=QP(c,ISa(a.info.resource,!1,b));return a.B+b.Ev*FSa(a,!0)>(0,g.fC)()?0:1};
    UZ=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.I.call(this);var u=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.pM=r;this.wi=t;this.qa=!1;this.KG="";this.Bl=null;this.hh=NaN;this.ra=!1;this.B=null;this.uh=this.Z=NaN;this.kq=this.K=0;this.logger=new g.CQ("dash");this.rd={HQ:function(w,A){return u.HQ(w,A)}};
        this.policy.tq>0&&(this.KG=g.wD(this.policy.tq));this.policy.Vf&&(this.N=new TZ(this.ya,this.policy,this.schedule),g.M(this,this.N))};
    Bab=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.JF)||(f=eP(d.j)===eP(d.C));f?d=!1:(e=QP(e,eP(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.fC)()<e.B+f?d=!1:(e.B=(0,g.fC)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.ya.ma("hostch",{},!0);if(zab(a,b,c)){if(b.N)a.manifest.isLive?(c=a.manifest.cf&&a.manifest.C?b.j.Xs(a.manifest.cf,!1):b.j.Hr(Infinity),c.hh=a.hh):c=b.j.Xs(0,!1),a.Y?c.hh===0&&(c.G=a.Y.Z):c.G=a.Z;else if(d=b.B,d.j.jg()){e=d.D-a.ya.getCurrentTime();var h=!d.range||d.B===0&&
    d.Sb===0?0:d.range.length-(d.Sb+d.B);f=d.j;a.HQ(b,e)&&h===0&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+VZ,d.B&&(f+=d.duration),IY(b,f),d=b.B,f=d.j));f.Nm()?(h=a.C,e=g8a(a.G,f.info.tb,c.j.info.tb,e,h.D.length>0&&h.Z===0&&a.ya.Sr),c=d,f=RZ(b),d=c.j.ez(c,e),(e=d.C)&&d.jb.length>1&&(f||d.resource.B||d.jb[0].j!==c.j?d=c.j.ez(c,d.jb[0].B):(f=d.jb[d.jb.length-1],h=f.B/e,!f.Te&&h<.4&&(d=c.j.ez(c,e-f.B)))),c=d):(d.Pa<0&&(c=bQ(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.G,a.ya.ma("nosq",
        c)),c=f.tD(d));if(a.policy.Fa)for(d=g.v(c.jb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Nm()?(c=g8a(a.G,b.j.info.tb,c.j.info.tb,0),c=d.j.ez(d,c)):c=d.j.tD(d);if(a.B){var l=c.jb[0].j.info.id;d=a.j;e=c.jb[0].Pa;d=e<0&&!isNaN(d.G)?d.G:e;e=R9a(a.j,c.jb[0].C,d);var m=b===a.audioTrack?1:2;h=c.jb[0].j.info.qb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Zg.event;if(n.j.Pa===d){n=p==="predictStart"?void 0:n.j.Zg.event;break a}if(n.j.Pa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n=
        void 0}if(a.policy.Ea&&a.j.B!==0){var q=a.B.TJ(e,d,l,m,h,n);d<0&&m===2&&iZ(a.j,0,0,!0);if(q){var r;l=((r=q.Zm)==null?void 0:r.Gt)||"";var t;r=((t=q.Zm)==null?void 0:t.T1)||-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.eA(e,d,l,m,h,n),d<0&&m===2&&iZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.NC&&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.cP(t));a.policy.B&&(t=c.resource.LJ("id")||
        "",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.ya.ma("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.ya.ma("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Wl&&c.jb[0].Pa!==-1&&c.jb[0].Pa<a.manifest.cf&&(c=b.j.Xs(a.manifest.cf,!1));$$a(b,Aab(a,c));fZ(a.timing);var u;(u=a.N)==null||vab(u,c.resource)}};
    zab=function(a,b,c){if(a.policy.Sf&&a.policy.VC)return!1;var d;var e=a.j,f=((d=b.B)==null?void 0:d.Pa)||-1;e.B===3&&f+1>=e.D?(e.ma("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!JSa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!gR(a.schedule)||a.ya.gJ))return!1;if(a.policy.D&&gS>=5)return g.Bv(a.ya.PF),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Pa===-1||b.C.length>=a.policy.xp||!a.policy.LD&&b.C.length>0&&!a.policy.N.jj)return!1;if(b.N)return!a.manifest.isLive||
        !isNaN(a.hh)}if(pab(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.jg())return!1;IY(b,a.ya.getCurrentTime())}if(LY(b)&&(b.Mo()!==LY(b)||a.ya.isSuspended))return!1;e=(d=a.policy.nz)&&!b.C.length&&NZ(b,!0)<Math.min(d,NZ(c));d=b.C.length+c.C.length;f=!a.policy.uA&&((b.C.length?b.C[0].nx():!1)||(c.C.length?c.C[0].nx():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Ap)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.jg()&&(b.B=g.zb(d.j.ZB(d)),d=b.B);
        if(!YP(d)&&!d.j.Ws(d))return!1;if(!NTa&&(f=a.manifest.je||a.manifest.C,a.manifest.isManifestless&&f)){f=b.j.index.Bd();var h=c.j.index.Bd();f=Math.min(f,h);if(b.j.index.EJ()>0&&f>0&&d.Pa>=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&d.type===4||YP(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!MZ(c,c.B)&&c.B.D<e);h=b===a.videoTrack&&a.policy.Fa;return e&&(!a.manifest.isManifestless||c.B&&c.B.D&&d.D)&&f&&!h||a.policy.Jb&&!b.G&&c.G?!1:$P(d)&&d.D>Cab(a,b)?(Cab(a,b),!1):(a=b.Rb)&&a.isLocked()?!1:!0};
    Cab=function(a,b){var c=a.j;c=c.j?c.j.Zg:null;if(a.policy.Fa&&c)return c.startSecs+c.Ch+15;b=WZ(a.ya,b);a.policy.Ab>0&&(c=((0,g.fC)()-a.ya.gq)/1E3,b=Math.min(b,a.policy.Ab+a.policy.Jg*c));c=a.ya.getCurrentTime()+b;return a.policy.Ry&&(b=Dab(a.ya)+a.policy.Ry,b<c)?(a.ya.ma("mrl",{ori:c,mod:b},!0),a.policy.XC&&(a=a.ya,c=(0,g.fC)(),a.gq=c),b):c};
    Eab=function(a,b,c){if(c!==0){a:if(b=b.info,c=c===2,b.j)b=null;else{var d=b.jb[0];if(b.range)var e=VP(b.range.start,Math.min(4096,b.C));else{if(b.B&&b.B.indexOf("/range/")>=0||b.resource.LJ("defrag")==="1"||b.resource.LJ("otf")==="1"){b=null;break a}e=VP(0,4096)}e=new cQ([new XP(5,d.j,e,"createProbeRequestInfo"+d.G,d.Pa)],b.B);e.Rj=c;e.j=b.j;b=e}b&&Aab(a,b)}};
    Aab=function(a,b){a.ya.XJ(b);var c=aTa(b),d=Fab(a.ya);c={Nc:a.schedule,Yz:c,iS:e8a(a.G,c),Ip:ZP(b.jb[0]),rr:fP(b.resource.j),kJ:a.policy.B,Vu:function(e,f){a.ya.NG(e,f)}};
        a.Bl&&(c.Pa=b.jb[0].Pa,c.hh=b.hh,c.Bl=a.Bl);d={uw:bTa(b,a.ya.getCurrentTime()),CG:a.policy.He&&dQ(b)&&b.jb[0].j.info.video?k$a(a.C):void 0,yH:a.policy.Fa,poToken:a.ya.Rt(),Wx:a.ya.oA(),KG:a.KG,uh:isNaN(a.uh)?null:a.uh,wi:a.wi,pM:a.pM,kq:a.kq,JB:d};return new FY(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.jb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(e.state>=2)||e.isComplete()||e.Rw()||!(!a.ya.Qa||a.ya.isSuspended||NZ(l)>3)){var m=xab(e,a.policy,a.D);m===1&&(a.ra=!0);Eab(a,e,m);if(e.isComplete()||
            e.Na()&&f<3){if(a.policy.B){var n=e.timing.Uq();n.rst=e.state;n.strm=e.xhr.wC();n.cncl=e.xhr&&e.Hd.D?1:0;a.ya.ma("rqs",n)}e.D1&&a.ya.ma("sbwe3",{},!0)}if(!a.Na()&&e.state>=2){L9a(a.timing,e,h);var p=a.ya;a.uh&&e.GI&&p&&(a.uh=NaN,a.ya.oT(e.GI),a.ya.dE(),a.ya.ma("cabrUtcSeek",{mediaTimeSeconds:e.GI}));e.eC&&(e.Pp>0&&a.ya.ma("sError",{errorHttpResponseCode:e.Pp.toString()}),a.uh&&e.eC&&!e.eC.action&&(a.ya.hB(a.uh),a.uh=NaN,a.ya.ma("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.uh})));a.policy.ew&&e.ej&&
        a.ya.Tm(e.ej);a.policy.Qc&&(a.kq=e.kq);if(e.state===3){PZ(l,e);dQ(e.info)&&XZ(a,l,h,!0);if(a.B){var q=e.info.eA();q&&a.B.rl(e.info.jb[0].Pa,h.info.id,q,e.info.jb[0].startTime)}a.ya.rf()}else if(e.isComplete()&&e.info.jb[0].type===5){if(e.state!==4)e.Lm()&&a.ya.handleError(e.eh(),e.Dr());else{var r=(e.info.jb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof FY&&r.Rw()&&r.IH(!0)}e.dispose()}else{e.Lm()||Gab(a,e);var t;((t=e.VA)==null?0:t.itagDenylist)&&a.ya.fL(e.VA.itagDenylist);
            if(e.state===4)Hab(a,e),a.j&&P9a(a.j,e.info,a.B);else if(a.policy.Rs&&e.El()&&!e.isComplete()&&!Hab(a,e)&&!e.Lm())break a;e.Lm()&&(Iab(a,e),isNaN(a.uh)||(a.ya.hB(a.uh),a.uh=NaN));a.ya.rf();var u=yab(e,a.policy,a.D);Eab(a,e,u)}}}}}catch(w){f=a.qa?1:0,a.qa=!0,e=CJ(f),f=DJ(w,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.Zk()}},d)};
    Gab=function(a,b){if(b.HB&&b.state>=2&&b.state!==3){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
        var d=j$a(a.C,c),e=b.info.C;e&&(e-=d.GP(),d.C=!0,b.info.jb[0].j.C=!1,w9a(b,d.Qw(e)),YZ(a.ya,a.videoTrack,d),qab(a.videoTrack,d),a.ya.dS(d.info.video.quality),(e=b.OP())&&d.info.lastModified&&d.info.lastModified!==+e&&PZ(a.videoTrack,b))}else b.HB=!1}};
    Iab=function(a,b){var c=b.info.jb[0].j,d=b.eh();if(fP(c.resource.j)){var e=g.Gg(b.wf(),3);a.ya.ma("dldbrerr",{em:e||"none"})}e=b.info.jb[0].Pa;var f=R9a(a.j,b.info.jb[0].C,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&Jab(a.ya)){if(!(b.info.resource.B>=a.policy.Wv&&a.B&&b.info.aq()&&d==="net.badstatus"&&a.B.nE(f,e))){e=(c.info.video&&c.resource.B>1||b.Bg===410||b.Bg===500||b.Bg===503)&&!(nZ(a.C.G).size>0)&&!fP(c.resource.j);f=b.Dr();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1");
        a.ya.handleError(d,f);a.Na()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),sZ(a.C,c)),PZ(h,b),a.ya.rf())}}else h=1,a.B&&b.info.aq()&&d==="net.badstatus"&&a.B.nE(f,e)&&(h=0),a.manifest.isLive&&b.eh()==="net.badstatus"&&a.K<=a.policy.uj*2?(qUa(a.manifest),a.manifest.je||a.manifest.isPremiere?KY(a.ya,0,{jd:"badStatusWorkaround"}):a.manifest.C?KY(a.ya,a.manifest.Za,{jd:"badStatusWorkaround",
        gr:!0}):ZZ(a.ya)):a.ya.handleError(d,b.Dr(),h)};
    Hab=function(a,b){if(a.policy.useUmp&&b.Na())return!1;try{var c=b.info.jb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.Na(),b.isComplete()||b.El(),d.N=!1);b.sP()&&a.ya.RI.Si(1,b.sP());var e=b.EJ(),f=b.mY();rUa(a.manifest,e,f)}if(b.info.Ip()&&!$Sa(b.info))for(var h=g.v(b.Mk()),l=h.next();!l.done;l=h.next())bab(d,l.value);for(a.ya.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();aab(d,m);d.La=m.hY()}d.C.length&&aab(d,d.C[0]);var n=!!LY(d);
        n&&b instanceof EY&&(c.info.Fh()?E9a(a.timing):D9a(a.timing));return n}catch(p){b=b.Dr();b.origin="hrhs";a:{a=a.ya;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.CB&&c.args)for(d=g.v(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.v(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.kE(c);if(c.level==="WARNING"){a.ea.Eq(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
    Kab=function(a){var b=a.videoTrack.j.index;a.Bl=new uab({dk:a.policy.dk,jj:a.policy.N.jj,Pj:b.Pj,Bd:function(){return b.Bd()},
        Mw:function(){return b.Mw()}})};
    XZ=function(a,b,c,d){if(!(c.jg()||c.OA()||c.C||!JSa(c.resource,a.policy,a.D)||c.info.qb==="f"||a.policy.C)){if(d){d=a.G;var e=c.info;d=f8a(d,e.video?d.policy.gw:d.policy.Sl,e.tb)}else d=0;d=c.Qw(d);a=Aab(a,d);$Sa(d)&&$$a(b,a);c.C=!0}};
    $Z=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.ya=a;this.Ue=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.isAudioOnly=h;this.Ca=l;this.B=oS;this.ra=!1;this.logger=new g.CQ("sabr");this.qa=this.Y=!1;this.videoInfos=this.G=this.N.videoInfos;this.C=this.Z=this.N.j;this.j=new lZ(b,f,function(n,p){m.ya.ma(n,p)});
        Lab(this);this.isAudioOnly&&Mab(this,this.manifest.j["0"])};
    Nab=function(a,b){var c=[];b=g.v(b);for(var d=b.next();!d.done;d=b.next())c.push(VJ(d.value,a.manifest.dc));return c};
    Mab=function(a,b,c){b!==a.D&&(a.D&&(a.ra=!0),a.D=b,a.eL(b,a.videoTrack,c))};
    Rab=function(a,b){a.logger.debug("setConstraint: "+SO(b));a.Ue.j&&(a.qa=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&Oab(a,b.j):Pab(a,b)?Qab(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
    Pab=function(a,b){return a.Ue.zn&&b.reason==="b"||a.Ue.TF?!1:a.Ue.mz?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"};
    Sab=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:uRa(b,a.B)};
    Uab=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.ra?!0:a.D?b!==d?!0:!a.j.B||a.Ue.yj&&a.j.j===a.D.info.itag?!1:!0:!1};
    Oab=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Cb(a.videoInfos,function(e){return e.id===c});
        d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.ya.ma("sabrpf",{pfid:""+c,
            vfids:""+d.join(".")}),Qab(a,b,b),oZ(a.j,""))}else Qab(a,b,b)};
    Qab=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Pt(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
    Lab=function(a){var b=null;if(b=a.Ue.Lv?U9a(a.j,a.Ca):g.Cb(a.Z,function(c){var d;return!((d=c.hc)==null||!d.isDefault)}))a.C=[b]};
    Vab=function(a,b){return a.map(function(c){return WJ(c,b)})};
    Wab=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=nZ(a.j);b=g.Pt(a.videoInfos,function(d){return d.tb>a.Ue.tb?!1:!c.has(d.id)});
        T9a(a.j)&&(b=g.Pt(b,function(d){return d.video.width<=854&&d.video.height<=480}));
        return b};
    Xab=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.dT(e),h=o9a({Da:e.U(),ea:a.ea,iE:a.iE,Ue:a.Ue,gq:a.gq,Hx:a.Hx,ww:a.ww,Jy:a.Jy,Cq:a.Cq,isPrefetch:a.isPrefetch,UG:a.UG,ZG:a.ZG,Jz:a.Jz,sabrLicenseConstraint:e.sabrLicenseConstraint,yy:a.yy},c),l=aZ(e,a.JB,a.nextRequestPolicy,a.lk,a.BS,a.uda),m=a.hH,n=a.iH;if(n===void 0&&m===void 0){var p;n=d.dc;n=(m=(p=a.kO)==null?void 0:p.video)?[VJ(m.info,n)]:[];var q;p=d.dc;m=(m=(q=a.kO)==null?void 0:q.audio)?[VJ(m.info,p)]:[]}if(e.wi)var r=e.wi;e={qr:h,
        Lo:a.Lo,hH:m,iH:n,videoPlaybackUstreamerConfig:r,vC:l};a.Zm&&(e.Zm=a.Zm);if(f&&b){f=new Map;var t=g.v(d.Ea);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Ma[VTa(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.v(a.ud);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:iY(q,l),q=r.clipId,r=r.Cl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,ud:[],hx:n})),r!==0&&(h.startTimeMs=
        l-r),d.get(q).ud.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=h.formatId)==null?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:hY(b)}));e.wH=[];d=g.v(d.entries());for(f=d.next();!f.done;f=d.next())f=g.v(f.value),f.next(),f=f.next().value,e.wH.push(f);if(a.ud.length&&!e.wH.length){if(c){e="";a=g.v(a.ud);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+(((f=d.formatId)==null?void 0:f.itag)||"")+"_"+(((t=d.formatId)==null?void 0:t.lmt)||0)+"_"+
        (((h=d.formatId)==null?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:hY(b)})}return}a.zK&&(e.zK=a.zK);a.wK&&(e.wK=a.wK)}else e.ud=a.ud,e.hx=d.Ea,f&&((t=a.ud)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return e};
    a_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Cb=c;this.B=null;this.rd={Oqb:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch}}};
    Yab=function(a,b,c){if(a.pu())return!0;a.data=b;a.j=Xab(b,c,function(d,e){var f;(f=a.Cb)==null||f.zl(d,e)});
        if(!a.j)return!1;a.B=g.QN(a.j,MQa);return!0};
    A9a=function(a,b,c){a.Rj===void 0&&(a.Rj=a.resource.Rj(b,c));return a.Rj};
    Zab=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.qr)==null?void 0:c.vS)||0};
    $ab=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.ud.length;e++){var f=a.data.ud[e],h=void 0;c.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.To)+("_en."+f.vj))}for(e=0;e<a.data.Lo.length;e++){f=a.data.Lo[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.Mj||NaN)+"_lb."+f.OZ+"_tr.s_"+((l=f.vJ)==null?void 0:l.rh)+"_d_"+
        ((m=f.vJ)==null?void 0:m.rE)+"_t_"+((n=f.vJ)==null?void 0:n.uv))}b.ptime=Zab(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
    b_=function(a,b){g.I.call(this);this.j=a;this.Md=b;this.iv=(0,g.bZ)(vD(16))};
    abb=function(a,b){var c;return g.G(function(d){(0,g.fC)();c=$Ua(a.j);return d.return(c.encrypt(b,a.iv))})};
    bbb=function(a,b){var c;return g.G(function(d){(0,g.fC)();var e=a.j;e.D||(e.D=new VKa(e.C));c=e.D;return d.return(YKa(c,b,a.iv))})};
    cbb=function(a,b,c){var d;return g.G(function(e){(0,g.fC)();d=$Ua(a.j);return e.return(d.decrypt(b,c))})};
    dbb=function(a){if(a.B)return a.B;if(a.Md){var b=new YQ(a.Md,a.j.j);g.M(a,b);a.B=b}else a.B=new XQ(a.j.j);return a.B};
    ebb=function(a){this.Um=a;this.B=!1;this.j=[]};
    d_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Xp,e=b.formatId,f=b.buffer;b=b.z8;if(f)b=void 0,(b=c_(a.Um.qd,c))==null||u6a(b,d,e,f);else if(b)a.Um.qd.qq(c,d,e);else if(d=a.Um,d.j[e].TY=!0,c=c_(d.qd,c),c==null?0:c.bd.has(e))c==null||l6a(c,e)}};
    g.hbb=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(e_.length===0){e_.length=288;e_.fill(8);for(a=144;a<280;a++)e_[a]=a<=255?9:7;fbb.length=32;fbb.fill(5);f_.length=286;f_.fill(0);for(a=261;a<285;a++)f_[a]=Math.floor((a-261)/4);g_[257]=3;for(a=258;a<285;a++){var b=g_[a-1];b+=1<<f_[a-1];g_[a]=b}g_[285]=258;for(a=0;a<30;a++)gbb[a]=a<=3?0:Math.floor((a-2)/2);for(a=h_[0]=1;a<30;a++)b=h_[a-1],b+=1<<gbb[a-1],h_[a]=b}a=100+7*this.data.length;this.data[0]===31&&
    this.data[1]===139&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(a)};
    g.nbb=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!i_(b,1);switch(i_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=i_(b,5)+257;var f=i_(b,5)+1;for(var h=i_(b,4)+4,l=0;l<h;l++)d[ibb[l]]=i_(b,3);d=jbb(d);for(h=e+f;c.length<h;){l=kbb(b,d);switch(l){case 16:l=c[c.length-1];var m=i_(b,2)+3;break;case 17:l=0;m=i_(b,3)+3;break;case 18:l=0;m=i_(b,7)+11;break;default:m=1}for(;m>0;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,lbb(b,c,f));break;case 1:lbb(b,e_,fbb);break;case 0:mbb(b,
        b.j&7);c=i_(b,16);e=i_(b,16);(c^e)!==65535&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(a.C*2),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};
    lbb=function(a,b,c){b=jbb(b);c=jbb(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(l<15){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(n<0)for(h>>=7;n<0;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(n<256)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,n>256){h=g_[n];h+=i_(a,f_[n]);m=kbb(a,c);l=h_[m];l+=i_(a,gbb[m]);if(obb&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];
        f+=h;h=a.register;l=a.j;m=a.B}else break}a.C=f};
    kbb=function(a,b){if(a.j<7){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(c>=0)return mbb(a,c&15),c>>4;for(mbb(a,7);c<0;)c=b[i_(a,1)-c];return c>>4};
    i_=function(a,b){for(;a.j<b;){if(a.B>=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
    mbb=function(a,b){a.j-=b;a.register>>=b};
    jbb=function(a){for(var b=[],c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,h>7&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+(e+d)*2);for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(h<=7)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
    pbb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.G(function(u){switch(u.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=vV.Po(b.Zp?"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 u.return(h)}catch(w){g.jE(w)}if(!("DecompressionStream"in window))return vV.isActive()?u.return(vV.Po("gzj",function(){return g.nbb(new g.hbb(a))})):u.return(g.nbb(new g.hbb(a)));
        l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new lN([]);if(vV.isActive())return u.return(vV.Po("gzn",function(){var w,A,C;return g.G(function(E){if(E.j==1)return g.z(E,n.read(),5);if(E.j!=4){w=E.B;A=w.value;if(C=w.done)return E.Ia(4);p.append(A);return E.Ia(1)}return E.return(oN(p))})}));
        case 2:return g.z(u,n.read(),5);case 5:q=u.B;r=q.value;if(t=q.done){u.Ia(4);break}p.append(r);u.Ia(2);break;case 4:return u.return(oN(p))}})};
    qbb=function(a){cZ.call(this,"onesie");this.qd=a;this.j={};this.D=!0;this.C=null;this.queue=new ebb(this);this.G={}};
    rbb=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.v(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.TY){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||d_(e)}}};
    tbb=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.TR(b,a.D).then(function(f){var h=a.qd;h.Td("oprr");h.playerResponse=f;h.cR||(h.aH=!1);j_(h)},function(f){a.qd.xj(f)});
        break;case 2:a.Td("ormk");b=oN(b);var e;a.queue.decrypt(b,!sbb(a.qd),(e=a.qd.U())==null?void 0:e.Md);break;default:d=!0}a.qd.Jm&&a.qd.ma("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
    ubb=function(a){return new Promise(function(b){setTimeout(b,a)})};
    vbb=function(a,b){var c=a.U();c=a.Dd&&c.L("html5_onesie_preload_use_content_owner");var d=a.eS,e=TQ(b.X.experiments,"debug_bandaid_hostname");if(e)b=tX(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=eP(new g.cP(d.url));b=tX(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=ZQ(a.videoId);a=[];if(f)for(f=g.v(f),c=f.next();!c.done;c=f.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
    wbb=function(a,b,c){c=c===void 0?0:c;var d,e;return g.G(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(ubb(c)),g.z(f,Promise.race(d),2);e=vbb(a,b);return f.return(e)})};
    xbb=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");dN()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&ES(b)&&b.Dd,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),SQ||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad",
        "0"),a.set("oavd","0")))};
    ybb=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.Nk,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.vQ&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.nc()});g.gA("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.gA("EOM_VISITOR_DATA")}):(c=c.visitorData||g.gA("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=TQ(b.experiments,
        "debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=hLa(JSON.stringify(a));return{url:h,nQ:f,postBody:a,gda:e,sC:e}};
    Abb=function(a,b,c,d,e,f){var h=g.QN(a,FQa,a.sC?void 0:c.Md),l={encryptedClientKey:b.j.encryptedClientKey,C1:!0,OX:!0,aP:zbb(c,!!a.sC),l3:c.experiments.fb("html5_use_jsonformatter_to_parse_player_response")};if(a.sC)l.Qea=h;else{a=b.encrypt(h);var m;a=((m=c.Md)==null?void 0:m.lR(a))||a;m=l.PX=a;(0,g.fC)();m=UKa(new TKa(b.j.C),m,b.iv);l.dZ=m;l.iv=b.iv}b=d.getVideoData();c=o9a({Da:c,ea:d,iE:b.startSeconds*1E3,UG:!0,ZG:!0});return{wQ:l,qr:c,onesieUstreamerConfig:e,gp:f,vC:aZ(b)}};
    Bbb=function(a,b,c){var d,e,f;return g.G(function(h){if(h.j==1)return d=g.QN(b,FQa),g.z(h,abb(c,d),2);if(h.j!=3)return e=h.B,g.z(h,bbb(c,e),3);f=h.B;return h.return({PX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,dZ:f,C1:!0,OX:!0,aP:zbb(a,!!b.sC),l3:a.experiments.fb("html5_use_jsonformatter_to_parse_player_response")})})};
    Cbb=function(a,b,c,d,e,f){var h,l,m;return g.G(function(n){if(n.j==1)return g.z(n,Bbb(c,a,b),2);h=n.B;l=d.getVideoData();m=o9a({Da:c,ea:d,iE:l.startSeconds*1E3,UG:!0,ZG:!0});return n.return({wQ:h,qr:m,onesieUstreamerConfig:e,gp:f,vC:aZ(l)})})};
    zbb=function(a,b){a=fR(a.schedule,!0);b=b||!!dN()&&a>1572864;return"DecompressionStream"in window||!b};
    l_=function(a,b){g.I.call(this);var c=this;this.ea=a;this.playerRequest=b;this.X=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.CQ("onesie");this.Jm=this.X.wc();this.RO=this.X.Pk;this.vG=new b_(this.RO.j,this.X.Md);this.xhr=null;this.state=1;this.Mq=new sK;this.YY=!1;this.playerResponse="";this.Ll=new QY(this);this.Um=new qbb(this);this.NH=this.X.L("html5_onesie_check_timeout");this.uO=new g.Av(this.y7,500,this);this.wG=new g.Av(this.cQ,1E4,this);this.pL=new g.Av(function(){if(!c.isComplete()){var d=
        k_(c);c.xj(new BJ("net.timeout",d))}},g.hI(this.X.experiments,"html5_onesie_request_timeout_ms"));
        this.o0=new g.Av(this.H$,2E3,this);this.Su="";this.oK=this.uZ=!1;this.xA=this.ea.oA();this.fS="";this.aH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.cR=this.HA=!1;this.zH=[];this.Yu=this.cj=-1;g.M(this.videoData,this);g.M(this,this.uO);g.M(this,this.wG);g.M(this,this.o0);g.M(this,this.vG);a=UQ();SQ&&a&&!this.X.L("html5_disable_onesie_media_bytes")&&(this.ag=new Map);this.cY=new Map;this.u_=new Map;this.f1=new Map};
    c_=function(a,b){var c;return(c=a.ag)==null?void 0:c.get(b)};
    Dbb=function(a,b,c){var d;return g.G(function(e){if(e.j==1)return a.Td("oprd_s"),sbb(a)?g.z(e,cbb(a.vG,b,c),3):(d=a.vG.decrypt(b,c),e.Ia(2));e.j!=2&&(d=e.B);a.Td("oprd_c");return e.return(d)})};
    Ebb=function(a){return a.L("html5_onesie_host_probing")||a.Jm?SQ:!1};
    j_=function(a){if(!a.playerResponse)return!1;if(a.HA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&FS(a.videoData);if(a.ag&&a.aH){if(!a.ag.has(a.Su))return!1;var c=a.ag.get(a.Su),d;if(d=c){d=!1;for(var e=g.v(c.bd.keys()),f=e.next();!f.done;f=e.next())if(f=c.bd.get(f.value))for(var h=g.v(f.UF),l=h.next();!l.done;l=h.next())l.value.Bs>0&&(f.Fh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Td("ofr");a.Mq.resolve(a.playerResponse);if(!a.NH){var m;(m=a.pL)==null||m.start();a.wG.start()}return a.HA=
        !0};
    Gbb=function(a){if(a.ag&&!a.L("html5_onesie_media_capabilities")){a.Td("ogsf_s");var b=k9a(a.ea.getVideoData(),function(d,e){a.ma(d,e)}),c=Fbb(a.ea);
        b.video=a9a(c,b.video);a.Td("ogsf_c");if(b.video.length)return b;a.ma("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
    sbb=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.sC)||g.DR(a.X)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!dN()};
    k_=function(a){if(!a.Jd)return{};var b=a.Jd.Uq();b.d=D8a(a.Jd);b.shost=a.A1;b.ty="o";return b};
    Hbb=function(a,b){var c,d;(d=(a=(c=a.ag)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d};
    Ibb=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);var q=this;this.ea=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Nc=h;this.Ca=l;this.D=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.La=this.Sa=!1;this.lk=new Set;this.C=this.Ma=this.Y=this.Cq=0;this.qa=this.K=null;this.rd={wqb:function(){return q.j},
        Spb:function(){return q.G},
        epb:function(){q.j.length=0},
        gqb:function(){return q.lk},
        cqb:function(){return q.Y},
        Mrb:function(r){q.Y=r},
        Rrb:function(r){q.C=r}};
        this.videoData=this.ea.getVideoData();this.policy.Vf&&(this.Ea=new TZ(this.ya,this.policy,this.Nc),g.M(this,this.Ea))};
    Lbb=function(a,b){b=b===void 0?!1:b;if(Jbb(a,b)){a.policy.Za&&a.ya.ma("sabrcrq",{create:1});var c=new a_(0,a.manifest.Z,a);a.policy.jf>0&&a.C++;b=Kbb(a,c,b);a.j.push(b);var d;(d=a.Ea)==null||vab(d,a.manifest.Z)}};
    Obb=function(a,b){var c=JZ(a.audioTrack,a.ya.isSeeking()),d=JZ(a.videoTrack,a.ya.isSeeking()),e=[].concat(g.ra(c.ud),g.ra(d.ud)),f=[].concat(g.ra(c.Lo),g.ra(d.Lo)),h,l=((h=a.ya)==null?void 0:h.xF())&&(SS(a.videoData)||g.RS(a.videoData));h=a.policy.G&&l;l=a.ya.getCurrentTime()||0;l=Mbb(a,l);var m=a.ya.Lc()||0;h=h?Number.MAX_SAFE_INTEGER:Math.ceil((l+m)*1E3);l=!m_(a,a.audioTrack);m=!m_(a,a.videoTrack);var n=ZQ(a.ya.Rt()),p=Fab(a.ya),q,r,t=a.ea,u=a.manifest,w=a.B,A=a.lk,C=a.policy,E=a.ya.gq,H=Dab(a.ya)*
        1E3,L=(q=a.Fa)==null?void 0:q.ww;q=(r=a.Fa)==null?void 0:r.Jy;var N;r=Number((N=a.D.D)==null?void 0:N.info.itag)||0;var Q;N=Number((Q=a.D.K)==null?void 0:Q.info.itag)||0;b={ea:t,manifest:u,ud:e,Lo:f,iE:h,nextRequestPolicy:w,lk:A,Ue:C,gq:E,Hx:H,ww:L,Jy:q,Cq:a.Cq,isPrefetch:b||a.ya.isSuspended,UG:l,ZG:m,BS:n,zK:r,wK:N,JB:p,yy:a.qa||void 0};if(a.policy.xi){e=a.D;f=e.Y;if(e.Ue.j&&!f&&e.Ue.OC)for(Q=g.v(e.C),N=Q.next();!N.done;N=Q.next())if(N.value.hc){f=!0;break}e=e.Ue.j&&!f?[]:Nab(e,e.C);b.hH=e;e=a.D;
        e.Ue.j&&!e.qa?e=[]:(f=Wab(e),f.length===0&&(f=e.G),e=Nab(e,f));b.iH=e}else a.XJ(a.videoTrack.j),a.XJ(a.audioTrack.j),b.kO=tZ(a.Ca);a.policy.zn&&(e=a.ea.pP().y0,b.Jz=e.j);if(a.policy.K){c=Nbb(a,c.ud,d.ud);var da;if(d=(da=a.K)==null?void 0:da.PP(c))b.Zm=d}a.policy.qa&&a.j.length>0&&a.j[0].nO()&&(b.uda=a.j[0].MP());return b};
    Mbb=function(a,b){if(a.ya.isSeeking())return b;var c=a.ea.Ke();if(!c)return b;c=c.Dh();if(c.length===0||cK(c,b))return b;for(var d=b,e=Infinity,f=0;f<c.length;f++)if(!(c.start(f)>b)){var h=b-c.end(f);h<e&&(e=h,d=c.end(f))}d!==b&&a.ya.ma("sundrn",{bre:d,lt:b});return d};
    Nbb=function(a,b,c){var d=a.ya.getCurrentTime()||0;b=Pbb(a,b,d);a=Pbb(a,c,d);return Math.min(b,a)};
    Pbb=function(a,b,c){a=a.ya.Lc()||0;b=g.v(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.startTimeMs?e.startTimeMs/1E3-a:0;e=d+(e.durationMs?e.durationMs/1E3:0);if(d<=c&&c<=e)return e}return c};
    Jbb=function(a,b){if(a.policy.jf>0){var c=Math.floor((0,g.fC)()/1E4);if(c===a.Ma){if(a.C>=a.policy.jf){if(a.C===a.policy.jf){var d={reason:"toomanyrequests"};d.limit=a.C;a.ya.handleError("player.exception",d);a.C+=1}return!1}}else a.Ma=c,a.C=0}b=!b&&!gR(a.Nc);if(a.ya.isSuspended&&(a.ya.gJ||b)||a.ra&&(0,g.fC)()<a.ra||a.j.length>0&&(!a.policy.qa||a.j.length!==1||!a.j[0].nO())||(d=a.manifest.Z)==null||!JSa(d,a.policy,a.G))return!1;d=a.policy.eD&&a.policy.j&&a.ya.Wf();if(QZ(a.audioTrack)&&QZ(a.videoTrack)&&
        !d)return!1;if(a.policy.j&&a.N&&!a.ya.Wf())return a.zl("ssap",{pauseontlm:1}),!1;if(a.policy.zv&&m_(a,a.audioTrack)&&m_(a,a.videoTrack))return a.policy.B&&a.ya.ma("sabrHeap",{a:""+LZ(a.audioTrack),v:""+LZ(a.videoTrack)}),!1;if(d=a.policy.K)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=Nbb(a,JZ(a.audioTrack,a.ya.isSeeking()).ud,JZ(a.videoTrack,a.ya.isSeeking()).ud),c=a.Z,b>=c.C?(c.ma("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.Za&&a.ya.ma("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.Za&&
    a.ya.ma("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.Za&&a.ya.ma("sabrcrq",{noreadahead:1}),!0;if(a.policy.G&&a.ya.xF())return a.policy.Za&&a.ya.ma("sabrcrq",{seekToHead:1}),!0;d=Math.min(WZ(a.ya,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(WZ(a.ya,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=NZ(a.audioTrack,!0)*1E3;var f=NZ(a.videoTrack,!0)*1E3;var h=c>e;e=f>e;if((!h||!e)&&a.policy.B&&a.policy.Uf){var l=
        a.ya.qc();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.j)&&(a=a.ya,a.Qa&&a.Qa.j&&a.Qa.B&&a.wb&&!AQ(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.Je(),b=a.Qa.B.Je(),c=c?dK(c,d):d,d=b?dK(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=jY(a.wb),d=d>=a-.01)):d=!1);return d?!1:!0};
    Kbb=function(a,b,c){var d={Nc:a.Nc,Vu:function(m,n){a.ea.NG(m,n)},
        Ip:a.policy.jm,kJ:a.policy.B},e=A9a(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,Qbb(a));c=Obb(a,c);if((a.policy.j||a.policy.qa)&&a.policy.B&&c.lk){for(var f=e="",h=g.v(c.lk),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})}Yab(b,c,a.ya.Wf())||!a.policy.j&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new eZ(a.policy,b,a.manifest,a.G,a,d,a.ya.oA(),a.policy.wh?a.ya.Wf():void 0);
        fZ(a.timing);a.policy.Za&&a.ya.ma("sabrcrq",{rn:d.Rp(),probe:b.pu()});return d};
    n_=function(a,b){if(!b.Na()&&!a.Na()){if(a.policy.B&&b.isComplete()&&b instanceof eZ){var c=a.ya,d=c.ma;var e=Object.assign(b.Jd.Uq(),{rst:b.state,strm:b.xhr.wC(),d:D8a(b.Jd),cncl:b.xhr&&b.Hd.D?1:0});b.policy.wp&&(e.rqb=b.e1);e=Object.assign($ab(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.pu())b.dispose();else{if(b.AZ())b instanceof eZ&&L9a(a.timing,b),Qbb(a),Rbb(a);else if(b.Lm()){if(c=b instanceof eZ){var f,h;c=!!((f=b.info.j)==null?0:(h=f.qr)==null?0:h.yy)}c&&(a.qa=null);b instanceof l_?
        a.j.pop():(f=1,b.canRetry()&&Jab(a.ya)&&(Sbb(a,b),f=0),a.ya.handleError(b.eh(),b.Dr(),f))}else{if(a.ya.isSuspended&&!b.isComplete())return;Rbb(a);a.policy.K&&(c=b.Rp(),a.Va!==c&&(h=b.AY(),f=h.cj,d=h.Yu,h=h.aq,!a.K||d<0||(a.Va=c,c=R9a(a.Z,d,f),d=a.ya.Lc()||0,O9a(a.Z,f,c/1E3-d,h,a.K))))}b.Na()||b instanceof l_||(b.isComplete()?f=yab(b,a.policy,a.G):(f=xab(b,a.policy,a.G),f===1&&(a.Sa=!0)),f!==0&&(b=new a_(1,b.info.resource),b.Rj=f===2,Kbb(a,b)))}}a.ya.rf()};
    Rbb=function(a){for(;a.j.length&&a.j[0].aZ(a.qe());){var b=a.j.shift();Tbb(a,b);a.policy.Yd&&b instanceof eZ&&b.dispose()}a.j.length&&Tbb(a,a.j[0])};
    Tbb=function(a,b){if(a.policy.xi){var c=new Set(b.Br(a.qe()));c=g.v(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof l_))){var f=a.D,h=f.manifest.dc;d=Vab(f.C,h);f=Vab(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Un(e,a.qe()),b.El(e,a.qe()))){e=b.Mk(e,a.qe());if(a.policy.j&&(f=d[0].j.info,(h=a.ya.Wf())&&f)){var l=b.fY();l!==h.ea.getVideoData().clientPlaybackNonce&&(h=SX(h.timeline,l))&&(h=h[0].getVideoData())&&(f.Fh()?h.D=f:h.B=f)}e=g.v(e);for(f=e.next();!f.done;f=
        e.next()){f=f.value;a.policy.B&&b instanceof l_&&a.ya.ma("omblss",{s:f.info.Vc()});h=f.info.j.info.Fh();var m=f.info.j;if(h){l=void 0;var n=a.D,p=(l=b.KP(a.qe()))==null?void 0:l.token;m!==n.K&&(n.K=m,n.eL(m,n.audioTrack,p))}else l=void 0,Mab(a.D,m,(l=b.KP(a.qe()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof l_&&(l.N=!1,b instanceof l_&&(h?E9a(a.timing):D9a(a.timing)));IZ(l,d,f)}}}}else for(d=b.eY()||tZ(a.Ca),c=new Set(b.Br(a.qe())),a.policy.j?e=c:e=[((f=d.video)==null?void 0:
        WJ(f.info,a.manifest.dc))||"",((h=d.audio)==null?void 0:WJ(h.info,a.manifest.dc))||""],d=g.v(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.El(e,a.qe()))for(f=b.Mk(e,a.qe()),f=g.v(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.B&&b instanceof l_&&a.ya.ma("omblss",{s:h.info.Vc()}),l=b.Un(e,a.qe()),m=(n=h.info.j.info.Fh())?a.audioTrack:a.videoTrack,b instanceof l_&&(m.N=!1,b instanceof l_&&(n?E9a(a.timing):D9a(a.timing))),IZ(m,l,h)};
    Sbb=function(a,b){a.policy.qa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())};
    Ubb=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof l_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
    Vbb=function(a,b,c){b.UN(c.vt,c.version)?a.videoData.zz=c.version||"":a.ya.ma("ssap",{v:c.version,tlnu:1})};
    Qbb=function(a){a.lk.clear();if(a.videoData.sabrContextUpdates.size>0)for(var b=g.v(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=a.videoData.sabrContextUpdates.get(c))==null?0:d.sendByDefault)&&a.lk.add(c)}if(a.policy.qa&&a.j.length)for(b=g.v(a.j),c=b.next();!c.done;c=b.next())(c=c.value.MP())&&c.type&&c.sendByDefault&&a.lk.add(c.type)};
    Wbb=function(a){a.policy.Tb&&(a.Fa=void 0,a.Cq=0)};
    Xbb=function(a,b){if(b.Lm()||b.Na()){var c=a.ya,d=c.ma,e=b.state;a=a.qe();var f,h;if((b=(f=b.ag)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.Br();for(var l=0;l<a.length;l++){var m=void 0;f+=((m=b.bd.get(a[l]))==null?void 0:m.bytesReceived)||0}b=f}b=(h=b)!=null?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.zH.push(a),b.X.L("html5_onesie_notify_request_progress_on_subscription")&&n_(a,b),fZ(a.timing)};
    m_=function(a,b){return!a.ya.Cp&&LY(b)&&(b.Mo()!==LY(b)||a.ya.isSuspended)};
    Ybb=function(a){var b="";a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.Rq){var d=c.Rq;b+=".vid."+d.z3+(".pst."+d.C0)+(".ps."+d.D0)+(".lst."+d.v$)+(".ld."+d.WZ)+(".ls."+d.XZ)}c.pR&&(b+=".nonv."+c.pR.DK)}return b};
    Zbb=function(a,b,c,d,e){this.ya=a;this.policy=b;this.schedule=c;this.Kz=d;this.Y=e;this.qa=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
    $bb=function(a,b,c,d,e,f){return b.sj&&b.Rf&&c===3?new Zbb(a,b,d,e,f):null};
    acb=function(a,b){if(a.policy.RC){var c=b.info.tb,d=fR(a.schedule);b=b.index.Pj;c=Math.max(1,d/c);a.Z=Math.round(Math.max(((c-1)*b+a.policy.Dc)/c,b-a.policy.Sk)*1E3)}};
    dcb=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Yv,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.WC&&(h=!0);a.K=c}c=d>=a.policy.Sk&&!a.C;if(!f&&!c&&bcb(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.fC)()/1E3-(a.Kz.fh()||0)-a.N.j-a.policy.Dc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){o_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Rk;d<c&&(c=d)}else a.C&&(d=c+a.policy.Dc-a.qa+a.policy.YC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Rk))),c=d);f=c=Math.max(c,
        f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&bcb(a,b))return ccb(a,b),NaN;if(a.j<=a.B.startTime)return o_(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.j,!1))return!ccb(a,b)&&h&&(o_(a,NaN,"t",b),a.clear()),NaN;h=a.j;o_(a,h,"s",b);a.clear();return h};
    ccb=function(a,b){return a.Y(a.j,!0)?!1:(o_(a,NaN,"ns",b),a.clear(),!0)};
    bcb=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.Rk:a.policy.TC)};
    o_=function(a,b,c,d){var e=a.D.Dr();e.ssr_sk=(b*1E3).toFixed(0);e.ssr_t=(a.j*1E3).toFixed(0);e.ssr_r=c;e.ssr_st=(a.startTimeSecs*1E3).toFixed(0);e.ssr_n=(0,g.fC)().toFixed(0);e.ssr_f=(a.N.j*1E3).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(a.Kz.fh()*1E3||0).toFixed(0);e.ssr_v=(d*1E3).toFixed(0);b=a.B.j.index;b.Zn(a.B.Pa,!0)&&(e.ssr_ist=(b.getStartTime(a.B.Pa)*1E3).toFixed(0),e.ssr_id=(b.getDuration(a.B.Pa)*1E3).toFixed(0));a.ya.ma("ssr",e)};
    ecb=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,a.msUsed=b.usedMediaSourceMemorySize)}var c;if((c=window.h5vcc)==null?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
    g.q_=function(a,b,c,d,e,f,h,l,m,n){l=l===void 0?!1:l;g.I.call(this);var p=this;this.ea=a;this.schedule=b;this.policy=c;this.manifest=d;this.ra=m;this.Ob=n;this.timing=new C9a(this.Ob);this.Y=new d8a(this.schedule,this.policy);this.Qa=null;this.gb=new g.Av(this.rf,0,this);this.PF=new g.Av(this.rf,1E3,this);this.Kb=new g.Av(this.rf,void 0,this);this.Wa=new g.Av(this.rf,1E4,this);this.Jb=new g.Av(this.Uca,250,this);this.N=this.currentTime=NaN;this.Ea=this.Cp=0;this.Sr=this.gJ=this.isSuspended=!1;this.La=
        "";this.RI=new $Q(5);this.Tb={};this.timestampOffset=NaN;this.rb=!1;this.eb=0;this.K=null;this.Ca=NaN;this.Za=this.Ma=!1;this.logger=new g.CQ("dash");this.gq=0;this.Sa=!1;this.Va=0;this.Ab=Infinity;this.rd={getAudioTrack:function(){return p.audioTrack},
        getManifest:function(){return p.manifest},
        Aqb:function(){return p.Z},
        rf:function(){p.rf()},
        MB:function(){p.Cp=0;p.MB()},
        urb:function(H){return p_(p,p.videoTrack,p.Qa.B,H)}};
        a=m&&m.Br();m&&(t6a(m,this.manifest,this.policy),this.Ca=Date.now());this.j=new V9a(this,this.Y,c,this.manifest,e,a);c=$9a(this.j,f,h&&h.id);this.audioTrack=new FZ(this,this.policy,c.audio,this.timing);this.videoTrack=new FZ(this,this.policy,c.video,this.timing);this.videoTrack.D.Fa=this.audioTrack.FP();this.Fa={updateend:this.J4,error:this.iaa};g.M(this,this.gb);g.M(this,this.PF);g.M(this,this.Kb);g.M(this,this.Wa);c=this.policy.wD&&this.policy.dk?!SEa(this.videoTrack.j.info):!1;this.Bb=l$a({jj:this.policy.N.jj||
                c,dk:this.policy.dk&&!c,Rs:this.policy.Rs});this.G=$bb(this,this.policy,this.Bb,this.schedule,this.RI,function(H,L){return fcb(p,H,L)});
        this.B=new N9a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.Mg=new DY(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.Mv?this.ea.getVideoData().wi:null;this.D=new UZ(this,this.policy,this.videoTrack,this.audioTrack,this.Tb,this.B,this.timing,this.Y,this.schedule,this.manifest,this.j,this.G,c,l);g.M(this,this.D);this.C=new $Z(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,FS(this.ea.getVideoData()),h==null?void 0:h.id);g.M(this,
            this.C);Rab(this.C,f);this.Z=new Ibb(this.ea,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.C,this.timing,this.B);g.M(this,this.Z);this.qa=this.ea.zd.Hu.aA;var q,r;if((q=this.qa)==null?0:(r=q.VA)==null?0:r.itagDenylist){var t;this.fL((t=this.qa)==null?void 0:t.VA.itagDenylist)}var u;if((u=this.qa)==null?0:u.playbackStartPolicy){var w,A;u0a(this.policy,(w=this.qa)==null?void 0:w.playbackStartPolicy,3,(A=this.qa)==null?void 0:A.Rp())}if(this.policy.Uf){e=this.qe();
            var C;(f=e?(C=this.qa)==null?void 0:C.u_.get(e):void 0)&&this.Z.rq(f)}if(!this.manifest.Y){var E;C=(E=this.qa)==null?void 0:E.RZ;(C==null?0:C.dK)&&(C==null?0:C.eK)&&this.manifest.dc&&rUa(this.manifest,C.dK,C.eK)}this.logger.debug("Created")};
    gcb=function(a,b){if(a.policy.j&&!a.policy.lz)return!1;var c=WJ(b.j.info,a.manifest.dc),d,e=((d=a.ra)==null?void 0:d.Un(c))||[];if(e.length===0)return a.ma("ombmsi",{}),!1;e=new cQ(e);if(d=!a.policy.Wa||isFinite(a.getCurrentTime())){a:{d=a.getCurrentTime();e=g.v(e.jb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.type===3&&d>=f.C&&d<=f.D){d=!0;break a}d=!1}d=!d}if(d)return a.ma("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Fh()}),!1;(a=a.ra)!=null&&(a.bd.get(c).PD=!0);return!0};
    hcb=function(a){if(!a.manifest.dc)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&r_(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&r_(a.ea)&&(b.je||b.isPremiere))return a.ma("ombpa",{}),!1;var c,d;if(a.policy.GB&&!!((c=a.qa)==null?0:(d=c.RZ)==null?0:d.Vca)!==a.manifest.je)return a.ma("ombplmm",{}),!1;c=b.Ob||b.liveUtcStartSeconds||b.Yd;if(a.manifest.je&&c)return a.ma("ombplst",{}),!1;if(a.manifest.Y)return a.ma("ombab",{}),!1;c=Date.now();if(AQ(a.manifest)&&
        !isNaN(a.Ca)&&c-a.Ca>a.policy.HD*1E3)return a.ma("ombttl",{}),!1;if(!(a=a.manifest.cf&&a.manifest.C||!a.policy.aD&&a.manifest.isPremiere||IS(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0};
    icb=function(a,b){var c=b.j,d=a.manifest.dc;if(hcb(a))if(a.ra&&a.ra.bd.has(WJ(c.info,d))){if(d=WJ(c.info,d),gcb(a,b)){var e=new cQ(a.ra.Un(d)),f=function(h){try{if(h.Lm())a.handleError(h.eh(),h.Dr()),PZ(b,h),dQ(h.info)&&XZ(a.D,b,c,!0),a.rf();else if(Hab(a.D,h)){var l;(l=a.B)==null||P9a(l,h.info,a.K);a.rf()}}catch(m){h=DJ(m),a.handleError(h.errorCode,h.details,h.severity),a.Zk()}};
        c.C=!0;$Sa(e)&&($$a(b,new EY(a.policy,d,e,a.ra,f)),fZ(a.timing))}}else a.ma("ombfmt",{})};
    s_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=YZ,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Hi(b)||0;e.Fa!==b&&(e.Ma={},e.Fa=b,qZ(e,e.j));b=!e.j.isLocked()&&e.Y>-1&&(0,g.fC)()-e.Y<e.policy.DD*1E3;var f=e.nextVideo&&uZ(e,e.nextVideo.info)*3<CY(e.Ca);if(!b||f)pZ(e),rZ(e),e.ra=e.ra||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Fa=-1);c(a,d,e.nextVideo);YZ(a,a.audioTrack,a.j.B)};
    t_=function(a,b){a.gJ=b;a.policy.Fa||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Xv&&(a.PF.stop(),a.gb.stop()))};
    Q9a=function(a,b,c,d){a.policy.K&&a.bH(!1);hab(a.videoTrack,d,c,b);hab(a.audioTrack,d,c,b);zQ(a.manifest,d,!0);zQ(a.manifest,d,!1);a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
    jcb=function(a){a.logger.debug("Rebuffering.");a.Sr=!0;if(a.policy.Ma&&a.Qa){var b,c,d,e;a.ma("lr_rb",{c:a.getCurrentTime(),s:a.isSeeking(),ab:aK(a.Qa.j.Je()),ala:(b=HZ(a.audioTrack))==null?void 0:b.Vc(),alr:(c=a.audioTrack.B)==null?void 0:c.Vc(),vb:aK(a.Qa.B.Je()),vla:(d=HZ(a.videoTrack))==null?void 0:d.Vc(),vlr:(e=a.videoTrack.B)==null?void 0:e.Vc()})}a.policy.MC&&a.ea.qA()!==0&&a.ma("sps_rebuffer",{c:a.getCurrentTime()})};
    kcb=function(a){a.policy.Va=!1;try{a.MB()}catch(b){g.jE(b)}};
    ncb=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;a.policy.Fa&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ea&&a.ma("loader",{setsmb:0}),a.Zk(),a.policy.Fa=!1);a.logger.debug("attaching media source");lcb(a,d);if(kV(a.policy)&&!jK()&&a.policy.xn)a.ma("ssap",{delaysb:1}),a.Qa=b;else{if(!qK(b)){var e=LY(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=LY(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.j&&a.ma("ssap",{initsb:1,v:e.info.id,vf:e.info.qb,a:f.info.id,af:f.info.qb});
        eFa(b,e.info,f.info,a.policy.Kb)}mcb(a,b,c,d);try{a.rf()}catch(h){g.jE(h)}}};
    mcb=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;GZ(a.videoTrack,b.B||null,d);GZ(a.audioTrack,b.j||null,d);a.Qa=b;a.Qa.G=!0;c||a.resume();g.EE(b.j,a.Fa,a);g.EE(b.B,a.Fa,a)};
    lcb=function(a,b){b=b===void 0?!1:b;a.Qa&&a.Qa.j&&a.Qa.B&&(FE(a.Qa.j,a.Fa,a),FE(a.Qa.B,a.Fa,a));GZ(a.audioTrack,null,b);GZ(a.videoTrack,null,b);a.Qa&&(a.Qa.G=!1);a.Qa=null};
    ocb=function(a){a.Qa&&a.Qa.Pg()&&(a.Vz(),a.policy.UH&&a.handleError("fmt.unplayable",{unexpected:1},1))};
    qcb=function(a,b){if(!a.Na())if(kV(a.policy)){if(!Sab(a.C,b)){var c=a.C.B;Rab(a.C,b);var d=!1;d=b.isLocked()&&b.reason==="m"&&Uab(a.C,b.j);var e=a.policy.Tf&&b.reason==="l";c=c.j>b.j&&b.reason==="b";d||e||c?(a.ea.Eq({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.yj||(a.C.j.B=!1)):(a.policy.yj&&(a.C.j.B=!1),u_(a))}}else if(!a$a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
        c=a.j.j;pcb(a,c$a(a.j,b));s_(a);d=b.isLocked()&&b.reason==="m"&&a.j.ra;e=a.policy.Tf&&b.reason==="l"&&RZ(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.eb&&!jK();d||e||c||f?a.ea.Eq({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):u_(a)}};
    rcb=function(a,b,c){if((!a.Qa||mK(a.Qa)&&!a.policy.Yl)&&!a.Mg.isSeeking()&&(kV(a.policy)||RZ(b)&&b.j.jg()&&a.j.qa)){var d=a.getCurrentTime()+h8a(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
        gab(b,d)}};
    pcb=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+ZJ(b.video.info)}),scb(a.ea,new kZ(b.video,b.reason)));
        if(a.j.Wa){var c=tZ(a.j,"a");a.ea.Sx(new kZ(c.audio,c.reason))}};
    Fab=function(a){a=a.ea;a=a.videoData.videoId?a.videoData.ifa:void 0;if(a)return ZQ(a)||void 0};
    u_=function(a){g.Bv(a.gb)};
    tcb=function(a,b){var c=(0,g.fC)()-b,d=NZ(a.audioTrack,!0)*1E3,e=NZ(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c});
        if(a.policy.B&&(a.ma("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),lV(a.policy))){var f=CY(a.Y);a.ma("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:i8a(a.Y,a.Sr,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Sr,ps:(a.policy.ND||"").toString(),rn:(a.policy.MD||"").toString()})}};
    ucb=function(a){if(a.policy.j&&SZ(a.videoTrack)&&SZ(a.audioTrack))return"ssap";if(pab(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.rb&&rab(a.videoTrack)&&rab(a.audioTrack))return"updateEnd";if(QZ(a.audioTrack)||QZ(a.videoTrack)&&a.videoTrack.j.info.qb!=="f")return"";if(a.Mg.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.Ij;lV(b.policy)&&(e=i8a(b,!1,CY(b)));b=e;c=NZ(d,!0)>=b&&NZ(c,!0)>=b}else c.C.length||
    d.C.length?(e=c.j.info.tb+d.j.info.tb,e=10*(1-CY(b)/e),b=Math.max(e,b.policy.Ij),c=NZ(d,!0)>=b&&NZ(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&H$a(c.D).info.K<c.La)return"seek"}if(a.policy.K&&a.policy.Bq&&sab(a.videoTrack,a.B)&&sab(a.audioTrack,a.B))return"ssdai";c=!a.policy.Dj||a.getCurrentTime()<10;a.policy.pp||(c=c||a.videoTrack.j.info.video.j>360);d=lV(a.policy)&&a.policy.Zl;if(!a.Sr||!d&&c)return"";c=a.policy.Dj;lV(a.policy)&&(c=i8a(a.Y,a.Sr,CY(a.Y)));c=
        kab(a.videoTrack,a.getCurrentTime(),c)||kab(a.audioTrack,a.getCurrentTime(),c);return lV(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||zab(a.D,a.videoTrack,a.audioTrack)||zab(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""};
    vcb=function(a){if(a.G){var b=a.G.rf(a.audioTrack,eK(a.Qa.B.Je()));b&&a.ea.seekTo(b,{bx:!0,jd:"pollSubsegmentReadahead",gr:!0})}};
    zcb=function(a,b,c){if(a.policy.rb&&rab(b))return!1;if(c.BQ())return!0;if(!c.KI())return!1;var d=LY(b);if(!d||d.info.type===6)return!1;var e=a.policy.BD;if(e&&!d.info.Te){var f=d.info.C-a.getCurrentTime();if(d.info.K<f*e)return!1}var h;if((h=a.B)==null||h.B===1||h.B===2||h.B!==0&&b===h.Ca&&d.info.Pa>lab(h.Y))return a.Mg.isSeeking()&&u_(a),!1;if(!p_(a,b,c,d.info))return!1;if(a.manifest.B&&d.info.Sb===0){if(e=wcb(b,c,d))f=HZ(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.TJ(d.info.j.info);a.policy.Xd&&f&&!e&&yTa(d)}e=a.G&&!!a.G.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&d.info.Sb!==0||f&&!e)&&xcb(a,c,d))return!0;if(e)return!1;e=WZ(a,b);e=a.getCurrentTime()+e;if(d.info.C>e)return a.policy.C&&!a.Ea&&(a.Ea=(0,g.fC)()),!1;a.Ea&&(a.Ea=0);var l;a.policy.Dd&&c===((l=a.Qa)==null?void 0:l.j)&&a.Sa&&(c.UJ()===0?(a.Sa=!1,a.policy.Dd=!1):a.Va=c.UJ());if(!ycb(a,c,d))return!1;a.policy.rb?d.isLocked=!0:(b.Hs(d),f$a(a.j,d.info),a.logger.debug(function(){return"Appended "+
        d.info.Vc()+", buffered: "+aK(c.Je())}));
        return!0};
    ycb=function(a,b,c){var d=a.policy.Ma?(0,g.fC)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=Acb(a,c,f)||f);var h=oN(f);f=a.policy.Ma?(0,g.fC)():0;e=Bcb(a,b,h,c.info,e);a.policy.Ma&&(!c.info.Sb||c.info.Te||c.info.C<10)&&(b=b.qc({as:c.info.Vc(),pdur:Math.round(f-d),adur:Math.round((0,g.fC)()-f)}),b.omt=(a.getCurrentTime()+a.Lc()).toFixed(3),b.to=a.Lc(),a.ma("sba",b));if(e==="s")return a.Ma&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Ma=!1,a.Za=!1),a.eb=0,!0;if(e==="i"||e==="x")return Ccb(a,
        "checked",e,c.info),!1;if(e==="q"){if(!a.Ma)return a.logger.debug("QuotaExceeded, retrying."),a.Ma=!0,!1;if(!a.Za)return a.Za=!0,a.ea.seekTo(a.getCurrentTime(),{jd:"quotaExceeded",gr:!0}),!1;c.info.Ag()?(b=a.policy,b.Ca=Math.floor(b.Ca*.8),b.Fd=Math.floor(b.Fd*.8),b.ra=Math.floor(b.ra*.8)):(b=a.policy,b.gb=Math.floor(b.gb*.8),b.ra=Math.floor(b.ra*.8));kV(a.policy)?mZ(a.C.j,c.info.j,!1):sZ(a.j,c.info.j)}a.ea.Eq({reattachOnAppend:e});return!1};
    Acb=function(a,b,c){var d;if(d=a.policy.Vv&&a.Qa&&!a.Qa.qa&&!a.ea.lJ())b=b.info.j.info,d=b.Le()&&QJ(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,HJ('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=E$a(c),a.policy.B&&a.ma("sp4k",{s:!!c}),c};
    Ccb=function(a,b,c,d){var e="fmt.unplayable",f=1;c==="x"||c==="m"?(e="fmt.unparseable",kV(a.policy)?!d.j.info.video||nZ(a.C.j).size>0||mZ(a.C.j,d.j,!1):!d.j.info.video||nZ(a.j.G).size>0||sZ(a.j,d.j)):c==="i"&&(a.eb<15?(a.eb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=bQ(d);var h;d.mrs=(h=a.Qa)==null?void 0:rK(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
    W$a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=XJ(f.j[p].info.mimeType)||f.j[p].info.Ag();if(d===m)if(m=f.j[p].index,m.Zn(b.Pa)){if(!f.Sa){h=m;m=b;var n=h.On(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.tN(m),h=!0):h=!1}h&&(l=b.Pa)}else m.tN(b),h=!0}if(l>=0){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;z8a(a.Mg,b,d,f);a.B.QR(b,c,d,e);b.Pa===a.manifest.cf&&f&&xQ(a.manifest)&&b.startTime>xQ(a.manifest)&&(a.manifest.Za=b.startTime+(isNaN(a.timestampOffset)?
        0:a.timestampOffset),a.Mg.isSeeking()&&a.Mg.j<a.manifest.Cd()&&a.Mg.seek(a.manifest.Cd(),{}))};
    p_=function(a,b,c,d){b=HZ(b);!b||b.Te||aQ(b,d)||c.abort();if(!c.SE()||jK())try{c.fU(d.j.info.containerType,d.j.info.mimeType)}catch(e){return c=e,g.kE(c),a.ma("ctexp",{name:c.name,msg:c.message}),!1}else d.j.info.containerType!==c.SE()&&a.ma("ctu",{ct:jK(),prev_c:c.SE(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.yn&&b&&(d=0+b.duration,b=-b.j,0===c.GE()&&d===c.xJ()||c.fT(0,d),b!==c.Lc()&&(c.Iq(b),OX&&Y$a(a.audioTrack.FP(),c.RP())));return!0};
    xcb=function(a,b,c){c.info.j.jg();var d=c.info.j.j;if(!d||!b.KI()||b.Lw()===d)return!1;var e=d,f=b.FJ();if(a.policy.Jv&&f&&b.isView()&&g.TJ(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=rSa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ma("fenc",{})}a.policy.Vv&&(f=Acb(a,c,new lN([e])))&&(e=oN(f));f=null;(h=c.info.j.Qw(0,c.info.clipId))&&(f=h.jb[0]);a.policy.Ma&&a.ma("sbi",b.qc({as:c.info.Vc()}));a.policy.jz&&b.abort();d=Bcb(a,b,e,f,d);if(d!=="s")return Dcb(a,
        d,c),!0;c.info.Ag()?H9a(a.timing):I9a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
        return b.rk()};
    wcb=function(a,b,c){if(b.Lw()==null){a=HZ(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.N,c=c.info.N,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Vb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Lw();c.info.j.OA()&&zTa(c);c=c.info.j.j;return a!==c&&!g.Vb(a,c)};
    Bcb=function(a,b,c,d,e){var f=0;if(a.policy.j&&d&&d.clipId&&a.wb){var h;f=(((h=a.wb)==null?void 0:gY(h,d.clipId))||0)/1E3}try{a.policy.j&&b.Lc()!==f&&b.Iq(f);if(a.policy.rb&&(d==null?void 0:d.type)===3){var l,m=b===((l=a.Qa)==null?void 0:l.j)?a.audioTrack:a.videoTrack;m.Fa=new g.Av(function(){if(!a.Na()&&b.zF()){var n;a.ma("nue",{ls:(n=b.iA())==null?void 0:n.Vc()});b.OI();a.Qa&&a.MB()}},5E3,a);
        m.Fa.start()}a.policy.dw&&(d==null?void 0:d.j)instanceof fQ&&YP(d)&&a.ma("poseos",{itag:d.j.info.itag,seg:d.Pa,lseg:d.j.index.Bd(),es:d.j.index.C});b.appendBuffer(c,d,e)}catch(n){if(n instanceof DOMException){if(n.code===11)return"i";if(n.code===12)return"x";if(n.code===22||n.message.indexOf("Not enough storage")===0)return c=Object.assign({name:"QuotaExceededError",buffered:aK(b.Je()).replace(/,/g,"_"),vheap:LZ(a.videoTrack),aheap:LZ(a.audioTrack),message:g.Gg(n.message,3),track:a.Qa?b===a.Qa.B?
            "v":"a":"u"},ecb()),a.handleError("player.exception",c),"q";g.jE(n)}return"u"}return a.Qa.Pg()?"m":"s"};
    KY=function(a,b,c){a.ea.seekTo(b,c)};
    CZ=function(a,b){a.ea.hL(b)};
    WZ=function(a,b){if(a.Ma&&!a.Sr)return 3;if(a.isSuspended)return 1;var c;if((c=a.Qa)==null?0:c.Qa&&c.Qa.streaming===!1)return 4;c=(b.j.info.audio?a.policy.gb:a.policy.Ca)/(b.tb*a.policy.Ul);if(a.policy.eq>0&&a.Qa&&mK(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.rk()){b=b.Je();var d=bK(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.eq,a.policy.CD)))}a.policy.ra>0&&(c=Math.min(c,a.policy.ra));return c};
    Fcb=function(a){a.La&&!a.isSuspended&&gR(a.schedule)&&(Ecb(a,a.La),a.La="")};
    Ecb=function(a,b){rX(b,"cms",function(c){a.policy.B&&a.ma("pathprobe",c)},function(c){a.ea.handleError(c)})};
    Gcb=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Pg()&&(b.uw=NZ(a.videoTrack),b.B=NZ(a.audioTrack),a.policy.B)){var c=LZ(a.videoTrack),d=LZ(a.audioTrack),e=aK(a.Qa.B.Je(),"_",5),f=aK(a.Qa.j.Je(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=BY(a.Y);a.logger.debug(function(){return AJ(b.j)})};
    Hcb=function(a,b){a.K=b;a.B&&(a.B.N=b);a.K.qT(a.videoTrack.j.info.Le());a.D.B=a.K;a.policy.K&&(a.Z.K=a.K)};
    Icb=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();if(a.Mg.isSeeking()&&a.Qa&&!a.Qa.Pg()){var c=a.getCurrentTime()<=b&&b<a.getCurrentTime()+10,d=cK(a.Qa.B.Je(),a.getCurrentTime()+VZ);c&&d&&(a.Mg.G=!1)}a.Mg.isSeeking()||a.policy.Bb||(a.currentTime=b);g.Bv(a.PF)}};
    Jcb=function(a,b){var c=eab(a.videoTrack).find(function(d){return d.startTime>=b&&fcb(a,d.startTime,!1)});
        return c&&c.startTime<b+c.duration*1.5?c.startTime+.1:0};
    fcb=function(a,b,c){if(!(a.videoTrack.j.jg()&&a.audioTrack.j.jg()&&a.Qa&&a.Qa.B&&a.Qa.j))return!1;if(c&&a.manifest.isManifestless&&(a.videoTrack.K===-1||a.audioTrack.K===-1))return!0;var d=HY(a.videoTrack,b,c);if(isNaN(d))return!1;a=HY(a.audioTrack,a.policy.Rf?b:d,c);return isNaN(a)?!1:!0};
    ZZ=function(a){a.Zk();a.Mg.isSeeking()&&a.logger.debug("seeking cancelled by seek-to-head");a.G&&acb(a.G,a.videoTrack.j);u_(a);return u8a(a.Mg)};
    YZ=function(a,b,c,d){(d===void 0?0:d)&&!b.Ea&&(jK()||(d=b.Rb)&&d.sx(c.info)||Kcb(a,b,c),b.Ea=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
    Kcb=function(a,b,c){if(a.Qa){var d=c.info.Ag(),e=d?a.Qa.B:a.Qa.j;e&&FE(e,a.Fa,a);a.ma("ssap",{reinitsb:1,itag:c.info.id,mime:c.info.mimeType});e=a.Qa;var f=c.info,h=a.policy.Kb;h=h===void 0?"":h;if(e.Qa){h=(c=f.Ag())?f.mimeType+h:f.mimeType;var l=c?"1":"0";e.wg&&e.wg.webkitSourceAddId(l,h);var m=c?e.B:e.j;m&&FE(m,e.D,e);(m=c?e.Y:e.Z)&&e.Qa.removeSourceBuffer(m);var n;m=(n=e.Qa)==null?void 0:n.addSourceBuffer(h);c?e.Y=m:e.Z=m;n=new iK(m,e.wg,l,NJ(h),f.qb,c);nK&&g.EE(n,e.D,e);c?e.B=n:e.j=n;g.M(e,n)}d=
        d?a.Qa.B:a.Qa.j;GZ(b,d||null);d&&g.EE(d,a.Fa,a)}else a.ma("ssap",{missmse:1})};
    Lcb=function(a,b){var c;if(c=a.policy.rb&&a.Qa){c=HZ(b);var d;(d=!c)||(c=Math.min(c.C+VZ,c.D),d=b.Rb?cK(b.Rb.Je(),c):!0);c=d}if(c){var e,f;c=b===a.audioTrack?(e=a.Qa)==null?void 0:e.j:(f=a.Qa)==null?void 0:f.B;if((e=LY(b))&&(c==null?0:c.zF())){c.OI();var h;(h=b.Fa)==null||h.stop();e.isLocked=!1;b.Hs(e);f$a(a.j,e.info);b=c.iA();(b==null?void 0:b.Vc())!==e.info.Vc()&&a.ma("oue",{bls:b==null?void 0:b.Vc(),tls:e.info.Vc()})}}};
    Mcb=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.B.Z=a.timestampOffset,a.ea.cS(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Iq(a.timestampOffset),a.audioTrack.Iq(a.timestampOffset))};
    Dab=function(a){var b=a.il().filter(function(d){return d.namespace==="ad"});
        b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
    Ncb=function(a){var b=HZ(a.videoTrack),c=HZ(a.audioTrack);return b&&!tab(a.videoTrack)?b.startTime:c&&!tab(a.audioTrack)?c.startTime:NaN};
    Dcb=function(a,b,c){a.policy.SC&&ES(a.ea.getVideoData())?(a.ea.wF()||Ccb(a,"sepInit",b,c.info),Ocb(a.ea,"sie")):Ccb(a,"sepInit",b,c.info)};
    Jab=function(a){return a.ea.qA()<a.Ab};
    g.v_=function(a){this.Yc=a};
    w_=function(){g.DE.apply(this,arguments)};
    x_=function(a,b,c,d){w_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Av(this.G,0,this);g.M(this,this.D);this.B=new g.Av(function(){e.Na()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
        g.M(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
    Pcb=function(a){if(!(a.length<=28))for(var b=(0,g.bZ)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;d<24;++d)b[d]=a[c+d*2];a=tN(b);a=Hg(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++}};
    y_=function(a,b,c){w_.call(this);var d=this;this.C=a;this.j=[];this.rd={Upb:function(){return d.j.length}};
        this.D=c.fb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.Av(function(){d.publish("log_qoe",{wvagt:"timer",reqlen:d.j?d.j.length:-1});if(d.j){if(d.j.length>0){var e=d.j.shift();Qcb(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.fC)(),d.B.start(Math.max(0,e)))}},0);
        g.M(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
    Qcb=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.v(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)};
    Rcb=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a};
    Scb=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
    Tcb=function(a){var b=rN(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(c===-1)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(e==null)return null;e=e[1];isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=tP(b.slice(d+2));if(b==null)return null;a=new Scb(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.MEa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Rcb({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
            60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.v(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),e.length===2&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
    Ucb=function(a,b,c){c=c===void 0?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.We=c;this.onError=this.onSuccess=null;this.j=new g.Sm(5E3,2E4,.2)};
    Vcb=function(a,b,c){a.onSuccess=b;a.onError=c};
    Xcb=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Na())if(e.status!==0&&e.response)if(EG("drm_net_r",void 0,a.We),e=new Uint8Array(e.response),e=Tcb(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else Wcb(a,e)},
        onError:function(e){Wcb(a,e)}};
        c&&(b=Ufa(b,"access_token",c));g.EA(b,d)};
    Wcb=function(a,b){if(!a.Na())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
    Zcb=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Na()){EG("drm_net_r",void 0,a.We);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=Hg(f.license)}catch(u){g.jE(u)}if(h!==0||l){l=new Scb(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.v(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=Ycb[q.trackType];if(r){r==="HD"&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]||
        (m.push(r),h[r]=!0);var t=null;try{t=Hg(q.keyId)}catch(u){g.jE(u)}t&&(n[g.Fg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Hg(f.sabrLicenseConstraint));f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
        onError:function(f){if(!a.Na())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
        onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
        d&&(e.RW="Bearer "+d);g.iD(c,"player/get_drm_license",b,e)};
    $cb=function(a,b,c,d){g.DE.call(this);this.videoData=a;this.X=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Fa=[];this.D=[];this.Z=!1;this.j={};this.Ca=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Fa&&(a.vvt=this.videoData.Fa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
        this.X.Ca&&(a.authuser=this.X.Ca);this.X.pageId&&(a.pageid=this.X.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.nc()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(TQ(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.qa=!1);b="";g.MQ(this.B)?LQ(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
            Qca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=yo(this.baseUrl,"ek")||"";if(b=yo(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ea=this.videoData.L("html5_use_drm_retry");this.Fa=c.Le?[g.Fg(c.initData,4)]:c.C;z_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
    ddb=function(a,b){z_(a,{createkeysession:1});a.status="gr";EG("drm_gk_s",void 0,a.videoData.Sa);a.url=adb(a);try{a.C=b.createSession(a.Y,function(c){z_(a,{m:c})})}catch(c){b="t.g";
        c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(bdb(a.C,function(c,d){cdb(a,c,d)},function(c,d,e){if(!a.Na()){d=void 0;
        var f=1;g.MQ(a.B)&&g.qR(a.X)&&a.X.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.X.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Na()||(z_(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.mq(c)}),g.M(a,a.C))};
    adb=function(a){var b=a.baseUrl;dDa(b)||a.error("drm.net",2,"t.x");if(!yo(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.experiments.experiments[e]});
        c.length>0&&(a.G.fexp=c.join())}c=g.v(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ufa(b,d,a.G[d]);return b};
    cdb=function(a,b,c){if(!a.Na())if(b){z_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":edb(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(EG("drm_gk_f",void 0,a.videoData.Sa),a.ra=!0,a.publish("newsession",a));if(IQ(a.B)&&(b=fdb(b),!b))return;g.MQ(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=gLa(g.Fg(b)));b=new Ucb(b,++a.requestNumber,a.videoData.Sa);Vcb(b,function(d){gdb(a,
        d)},function(d,e,f){if(!a.Na()){var h=0,l;
        (l=d.j.B>=3)||(l=a.Ea&&(0,g.fC)()-a.Ca>36E4);l&&(h=1,e="drm.net.retryexhausted");z_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(CJ(h),d)&&hdb(a,d)}});
        g.M(a,b);idb(a,b)}else a.error("drm.unavailable",1,"km.empty")};
    edb=function(a,b){z_(a,{sdpvrq:1});a.K=Date.now();if(a.B.flavor!=="widevine")a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.X.j);c=g.wo("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:rN(b)}),responseType:"arraybuffer"};
        g.HA(c,b,3,500).then(WN(function(d){d=d.xhr;if(!a.Na()){d=new Uint8Array(d.response);var e=rN(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),WN(function(d){a.Na()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
    A_=function(a){var b;if(b=a.qa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
    idb=function(a,b){a.status="km";EG("drm_net_s",void 0,a.videoData.Sa);if(a.videoData.useInnertubeDrmService()){var c=new g.hD(a.X.Nk),d={context:g.jua(c.config_||g.IC())};d.drmSystem=jdb[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Fg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!((e=a.videoData.B)==null?0:(f=e.video)==null?
        0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.X.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Fa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Fa,
        scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.MQ(a.B)&&(d.fairplayKeyId=g.Fg(Rca(a.fairplayKeyId)));g.JR(a.X,g.bT(a.videoData)).then(function(l){Zcb(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.JR(a.X,g.bT(a.videoData)).then(function(l){Xcb(b,a.url,l);
        a.status="rs"})};
    gdb=function(a,b){if(!a.Na())if(z_(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{EG("drm_kr_s",void 0,a.videoData.Sa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
    !a.videoData.DD&&a.publish("newlicense",new Rcb({})),a.videoData.DD=!0,a.Z=Zs(a.D,function(d){return d.includes("HDR")}));
        b.j&&(a.X.L("html5_enable_vp9_fairplay")&&LQ(a.B)?(c=g.Fg(Rca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Xc(b.j,function(d){return{type:d,status:"unknown"}}));
        JQ(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Hg(rN(b.message)):KQ(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=gLa(g.Fg(b.message)));a.C&&(z_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){EG("drm_kr_f",void 0,a.videoData.Sa);A_(a)||(z_(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Gg(d.message,3);
            a.error("drm.keyerror",1,d)}));
        a.N&&(a.Ca=(0,g.fC)());g.MQ(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.X.L("html5_enable_vp9_fairplay")&&LQ(a.B)&&a.publish("qualitychange",kdb(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
    hdb=function(a,b){var c=b.j.getValue();c=new g.Av(function(){idb(a,b)},c);
        g.M(a,c);c.start();g.Tm(b.j);z_(a,{rtyrq:1})};
    ldb=function(a,b){for(var c=[],d=g.v(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
    mdb=function(a){var b={};b[a.status]=A_(a)?ldb(a,"."):a.D.join(".");return b};
    ndb=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
    odb=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1};
    pdb=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
    z_=function(a,b){var c=c===void 0?!1:c;AJ(b);(c||a.X.wc())&&a.publish("ctmp","drmlog",b)};
    qdb=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b};
    kdb=function(a){return g.Eb(a,"UHD2")||g.Eb(a,"UHD2HDR")?"highres":g.Eb(a,"UHD1")||g.Eb(a,"UHD1HDR")?"hd2160":g.Eb(a,"HD")||g.Eb(a,"HDHDR")?"hd1080":g.Eb(a,"HD720")||g.Eb(a,"HD720HDR")?"hd720":"large"};
    fdb=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Oba(new DOMParser,se(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&a.childNodes.length!==0?new Uint8Array((0,g.bZ)(Wca(a.childNodes[0].nodeValue)).buffer):null:null};
    B_=function(a,b,c,d,e,f){f=f===void 0?!1:f;g.I.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.Y=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.IJ(this);g.M(this,this.D);rdb(this)};
    rdb=function(a){a.j?(a.D.T(a.j,"message",a.K4),a.D.T(a.j,"keystatuseschange",a.mq),a.j.closed&&a.j.closed.then(WN(function(){a.onClosed()}),null)):a.B&&(qB(a.D,a.B,["mskeymessage",
        "webkitkeymessage"],a.W_),qB(a.D,a.B,["mskeyerror","webkitkeyerror"],a.V_),qB(a.D,a.B,["mskeyadded","webkitkeyadded"],a.U_))};
    bdb=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
    sdb=function(a,b,c){g.jE(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
    C_=function(a,b,c,d){d=d===void 0?!1:d;g.I.call(this);this.element=a;this.j=b;this.ma=c;this.N=d;this.K={};this.D=null;this.G=new g.IJ(this);this.C=this.B=null;g.M(this,this.G)};
    udb=function(a,b){b=tdb(b,a.j.Wa);b=a.C.createSession("video/mp4",b);return new B_(null,null,null,null,b,a.N)};
    vdb=function(a,b){for(var c=new Uint8Array(270),d=0;d<135;d++)c[d*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new B_(null,null,null,null,a)};
    wdb=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};
    tdb=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(c.length*2);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
        c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
    D_=function(){this.keys=[];this.values=[]};
    zdb=function(a,b,c){g.DE.call(this);this.element=a;this.videoData=b;this.X=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.Dva();this.B=new Map;this.K=new D_;this.N=new D_;this.C=[];this.La=2;this.ra=new g.IJ(this);this.Sa=this.Ea=!1;this.heartbeatParams=null;this.Fa=this.Y=!1;this.G=null;this.Ma=!1;this.Ca=this.X.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||GQ()||BUa(c.experiments);this.X.L("html5_enable_vp9_fairplay")&&LQ(this.j)?
        c=xdb:(c=this.videoData.Pl,c=this.j.flavor==="fairplay"||c?oS:xdb);this.Z=c;this.D=new C_(this.element,this.j,this.cL.bind(this),this.Ca);g.M(this,this.D);HQ(this.j)&&(this.qa=new C_(this.element,this.j,this.cL.bind(this),this.Ca),g.M(this,this.qa));g.M(this,this.ra);c=this.element;this.j.keySystemAccess?this.ra.T(c,"encrypted",this.Iaa):qB(this.ra,c,HQ(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.jba);ydb(this);a:switch(c=this.j,a=this.X.experiments,b=this.B,c.flavor){case "fairplay":tra()>
    19.2999?(a=c.dw,c=c.cw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new x_(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new y_(b,this,a);break a;default:c=null}if(this.G=c)g.M(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.LW,this),this.G.subscribe("log_qoe",this.mj,this);BUa(this.X.experiments);this.mj({cks:this.j.getInfo()})};
    ydb=function(a){var b=a.D.aO();b?b.then(WN(function(){Adb(a)}),WN(function(c){if(!a.Na()){g.jE(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.mj({mdkrdy:1}),a.Y=!0);
        a.qa&&(b=a.qa.aO())};
    Cdb=function(a,b,c){a.Sa=!0;c=new zZ(b,c);a.X.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));Bdb(a,c)};
    Bdb=function(a,b){if(!a.Na()){a.mj({onInitData:1});if(a.X.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.mj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Ea&&!a.videoData.isLivePlayback)E_(a);else{if(!(a.X.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Le)){a.Ea=!0;c=b.cryptoPeriodIndex;var d=b.j;y$a(b);b.Le||(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.LW(b)}};
    Adb=function(a){if(!a.Na())if(a.X.L("html5_drm_set_server_cert")||LQ(a.j)){var b=a.D.setServerCertificate();b?b.then(WN(function(c){a.X.wc()&&a.publish("ctmp","ssc",{success:c})}),WN(function(c){a.publish("ctmp","ssce",{n:c.name,
        m:c.message})})).then(WN(function(){Ddb(a)})):Ddb(a)}else Ddb(a)};
    Ddb=function(a){a.Na()||(a.Y=!0,a.mj({onmdkrdy:1}),E_(a))};
    Edb=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")};
    E_=function(a){if((a.Sa||a.X.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Fa){for(;a.C.length;){var b=a.C[0],c=Edb(a)?z$a(b):g.Fg(b.initData);if(LQ(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||LQ(a.j)){a.C.shift();continue}else a.B.delete(c);y$a(b);break}}a.C.length&&a.createSession(a.C[0])}};
    Fdb=function(a){var b;if(b=g.RA()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.vN(b),a.publish("ctmp","drm",{metrics:b}))};
    Gdb=function(a){g.I.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.IF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.hI(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.Av(function(){F_(b.ea)},g.hI(this.Da.experiments,"html5_delayed_retry_delay_ms"));
        g.M(this,this.j)};
    Kdb=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;ES(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&Ocb(a.ea,"pe");if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Ek.G&&d&&d.itag==="22")return a.ea.Ek.G=!0,a.Sd("qoe.restart",{reason:"fmt.unplayable.22"}),G_(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.W3)c.mimeType=f.type,a.ma("3pp",{url:f.url});c.ns="3pp";a.ea.Nf(b,1,"VIDEO_UNAVAILABLE",AJ((new BJ(b,
        c,1)).details));return!0}var h=a.IF+3E4<(0,g.fC)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Sd("auth",c),!0;h||D_a(a.ea.Hm())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:UEa(e)||SJ(e))&&(YUa(a.Da.G,e.qb),c.acfallexp=e.qb,f=h=!0);!h&&a.C>0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ya;!h&&((d==null?0:RJ(d))||(d==null?0:QJ(d)))&&(YUa(a.Da.G,d.qb),
        f=h=!0,c.cfallexp=d.qb);if(!h)return Hdb(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.dT(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&D_a(a.ea.Hm())&&(a.Sd("ssap.transitionfailure",c),h=a.ea,g.dT(h.videoData)&&h.wb&&k7a(h.wb)))return!0;h=!1;a.G?a.IF=(0,g.fC)():h=a.G=!0;var l=a.videoData;if(l.gb){l=l.gb.KV();var m=Date.now()/1E3+1800;l=l<m}else l=!1;c.e=b;c.bkg=f6a();l&&(c.staleprog="1");a.Sd("qoe.restart",c);if(l&&Idb(a))return Jdb(a),!0;if(!(!g.PA("philips")||
        b==="fmt.unplayable"&&e&&e.Ca||a.Da.j.cplatform==="GAME_CONSOLE"))try{window.close()}catch(n){}d&&RJ(d)&&!a.Da.L("html5_allow_av1_retry_in_session")?(f=a.Da.G,f.Y=!0,f=f.B=!0):e?h||(b=(b=HZ(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,kV(e.policy)?mZ(e.C.j,b,!0):sZ(e.j,b,!0)):a.videoData.gb&&a.videoData.gb.eT();a.j.isActive()||F_(a.ea,f);return!0};
    Hdb=function(a,b){if(a.videoData.ra)return!1;a.Da.Kb+=1;if(a.Da.Kb<=10)return!1;b.exiled=""+a.Da.Kb;a.Sd("qoe.start15s",b);a.ea.publish("playbackstalledatstart");return!0};
    Idb=function(a){return a.B?!0:a.Da.qa==="yt"?a.videoData.ra?a.videoData.Dc<25:!a.videoData.Dc:!1};
    Jdb=function(a){if(!a.B){a.B=!0;var b=a.ea.getPlayerState();b=b.isPaused()||b.isSuspended();a.ea.Ro();b&&!cT(a.videoData)||a.ea.publish("signatureexpired")}};
    Ldb=function(a,b){if((a=a.ea.Ke())&&(b.errorCode==="fmt.unplayable"||b.errorCode==="html5.invalidstate")){var c=a.eh();b.details.merr=c?c.toString():"0";b.details.mmsg=a.wf()}};
    Mdb=function(a){return a.errorCode==="net.badstatus"&&(a.severity===1||!!a.details.fmt_unav)};
    Ndb=function(a,b){return a.Da.L("html5_use_network_error_code_enums")&&b.details.rc===403||b.details.rc==="403"?(a=b.errorCode,a==="net.badstatus"||a==="manifest.net.retryexhausted"):!1};
    Pdb=function(a,b){if(!Ndb(a,b)&&!a.B)return!1;b.details.sts="19898";if(Idb(a))return CJ(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new BJ("qoe.restart",b)),a.Sd(b.errorCode,b.details),Jdb(a),!0;(0,g.fC)()-a.Da.Tf>6048E5&&Odb(a,"signature");return!1};
    Odb=function(a,b){try{window.location.reload(),a.Sd("qoe.restart",{detail:"pr."+b})}catch(c){}};
    Qdb=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Sd("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});F_(a.ea,!0)};
    Rdb=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
    Sdb=function(a,b,c){this.X=a;this.sH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.hI(this.X.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
    Udb=function(a,b,c){!a.X.L("html5_tv_ignore_capable_constraint")&&g.sI(a.X)&&(c=c.compose(Tdb(a,b)));return c};
    Wdb=function(a,b){var c,d=Vdb(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=SUa(a.X.G,b.j.videoInfos,c),new MO(0,a,!0,"o")):new MO(0,0,!1,"o")};
    Vdb=function(a,b){return b&&g.sI(a.X)?b.some(function(c){return c.video.fps>32}):!1};
    Xdb=function(a,b){var c=a.ea.CJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.oU>0&&PO(b.videoData.iB)&&(a=c.oU,b.videoData.iB=new MO(0,a,!1,"u"));return b.videoData.iB};
    Tdb=function(a,b){if(g.sI(a.X)&&aP(a.X.G,bP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.oR(a.X)&&(e=window.screen&&window.screen.width?new g.Ke(window.screen.width,window.screen.height):null);e||(e=a.X.An?a.X.An.clone():a.sH.Xh());(UA||AY||d)&&e.scale(g.AR());d=e;FS(b.videoData)||cT(b.videoData);b=b.j.videoInfos;if(b.length){e=g.hI(a.X.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!==
    "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||wVa||(e=.45);a=g.hI(a.X.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(d===null||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new MO(0,c.itag==="93"?g.KJ[REa(d.width,d.height)]:d.j,!1,"r")}else c=oS;c=c.j}c&&(c=Math.max(c,360));return new MO(0,c,!1,"r")};
    Ydb=function(a){var b,c,d,e;return g.G(function(f){switch(f.j){case 1:return a.j.j&&typeof((b=navigator.mediaCapabilities)==null?void 0:b.decodingInfo)==="function"?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.v(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ia(0);break}e=d.value;return g.z(f,WEa(e),4);case 4:d=c.next(),f.Ia(3)}})};
    $db=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;g.kb()-a.N>6E4&&(a.B=0);a.B++;a.N=g.kb();if(a.B!==4)return!1;Zdb(a,b.videoData.B);return!0};
    beb=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.hI(a.X.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!((0,g.fC)()-a.D<5E3?0:f||e>0))return!1;var h=((0,g.fC)()-a.D)/1E3;a.D=(0,g.fC)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;f&&a.X.wc()&&a.ea.ma("ddf",{dr:c.droppedVideoFrames,
        de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.sI(a.X))return!1;a.j=(m>60?l/m:0)>e?a.j+1:0;if(a.j!==3)return!1;Zdb(a,b.videoData.B);a.ea.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},aeb()));return!0};
    Zdb=function(a,b){var c=a.X,d=b.qb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(e>49?"p60":e>32?"p48":"");if(c.L("html5_gradual_perf_cap"))if(f<=0&&wUa("VideoPlayer",321298775,b,f.toFixed(0)),c=EQ(c,d,e,h),f>0&&(c=Math.min(c,f)),!H_.has(b)&&hQa().includes(b))fQa(b,c,!0);else if(H_.has(b)||h==null){a:{var l=l===void 0?!0:l;d=hQa().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.uB("yt-player-performance-cap-active-set",d,2592E3)}DQ.set(b,c)}else H_.add(b),
    h==null||h.set(b,c);else fQa(b,f);a.ea.Xo()};
    ceb=function(a,b){if(!b.j.j)return a.G?new MO(0,360,!1,"b"):oS;for(var c=!1,d=!1,e=g.v(b.j.videoInfos),f=e.next();!f.done;f=e.next())RJ(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.hI(a.X.experiments,"html5_performance_cap_floor");e=a.X.B?240:e;b=g.v(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!RJ(h))if(f=EQ(a.X,h.qb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new MO(0,d,!1,"b")};
    deb=function(a,b){var c=a.ea.Hm();return c.isInline()&&!b.CN?new MO(0,480,!1,"v"):c.isBackground()&&zD()/1E3>60&&!g.sI(a.X)?new MO(0,360,!1,"v"):oS};
    feb=function(a,b,c){if(a.X.experiments.fb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.sI(a.X)&&(HO(-1)>=1080||b.osid))return oS;var d=g.hI(a.X.experiments,"html5_autonav_quality_cap"),e=g.hI(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&zD()/1E3>e?(c&&(d=eeb(a,c,d)),new MO(0,d,!1,"e")):oS};
    eeb=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
    geb=function(a,b){a.L("html5_log_media_perf_info")&&(a.ea.ma("perfdb",aeb()),a.L("html5_gradual_perf_cap")&&(a.ea.ma("sessionperfdb",Object.fromEntries(DQ.entries())),a.ea.ma("playbackperfdb",Object.fromEntries(a.C.entries()))),a.ea.ma("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.ea.ma("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return((d=c.B)==null?void 0:d.smooth)===!1}).map(function(c){return c.itag}).join("-")}))};
    aeb=function(){return Xc(IO(),function(a){return""+a})};
    I_=function(a){g.I.call(this);var b=this;this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.vK;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Av(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.rd={vB:function(){b.vB()}};
        this.vB=function(){b.jsErrorCount++};
        g.M(this,this.delay);window.addEventListener("error",this.vB);window.addEventListener("unhandledrejection",this.vB)};
    heb=function(a){a.j>=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.uM(a.provider),a.delay.start()))};
    ieb=function(a){if(!(a.B<0)){var b=g.uM(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.vF(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
    jeb=function(a){var b;switch((b=a.X.playerCanaryStage)==null?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"}};
    leb=function(a,b){b?keb.test(a):(a=g.pA(a),Object.keys(a).includes("cpn"))};
    neb=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(sA(a)&&tA()){if(h){var n;((n=meb.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=meb.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.gA("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
        d:g.gA("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.gA("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!CR(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Vl&&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")&&keb.test(a)&&(l.withCredentials=!0)}Object.keys(m).length>0&&(l.headers=m);f&&(l.onFinish=f);return Object.keys(l).length>1?l:null};
    oeb=function(a,b,c,d,e,f,h,l){tA()&&c.token&&(a=qA(a,{ctt:c.token,cttype:c.TT,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(b==null?b={}:leb(a,d.L("html5_assert_cpn_with_regex")),h?gD().sendAndWrite(a,b):gD().sendThenWrite(a,b,l)):b?(leb(a,d.L("html5_assert_cpn_with_regex")),g.EA(a,b)):g.$C(a,e)};
    qeb=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(Math.random()*9*peb)+peb,f="",h=0;h<9;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
    g.L_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.CQ("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.Ee="N";this.Z=this.PB=this.OB=this.Jb=this.G=0;this.La=this.Cc="";this.Ob=this.Sa=NaN;this.Kb=0;this.Dc=-1;this.Tb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Za=this.rb=this.Fa=this.isOffline=this.isBuffering=!1;this.Zc=[];this.qa=null;this.eb=this.C=this.Wa=this.N=!1;this.B=-1;this.Va=!1;this.Qc=new g.Av(this.y9,750,this);this.Y=this.adCpn=this.ra=this.contentCpn=
        "";this.adFormat=void 0;this.Fd=0;this.Xd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Dd=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.gb=!1;this.Ab=NaN;this.Ea=0;this.Bb=!1;this.Ca=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.rd={OL:function(e){c.OL(e)},
        iqb:function(){return c.D},
        gg:function(){return c.contentCpn},
        Qpb:function(){return c.ra},
        reportStats:function(){c.reportStats()},
        Mpb:function(){return c.j.cat},
        LJ:function(e){return c.j[e]},
        Fqb:function(){return c.Ca}};
        var d=g.hI(this.provider.X.experiments,"html5_qoe_proto_mock_length");d&&!J_.length&&(J_=qeb(d));g.M(this,this.Qc);try{navigator.getBattery().then(function(e){c.qa=e})}catch(e){}g.K_(this,0,"vps",["N"]);
        a.X.wc()&&(this.Ea=(0,g.fC)(),this.Ab=g.zA(function(){var e=(0,g.fC)(),f=e-c.Ea;f>500&&c.ma("vmlock",{diff:f.toFixed()});c.Ea=e},250));
        a.ea.Wf()&&b&&(this.Ca=b-Math.round(g.uM(a)*1E3));this.provider.videoData.bj&&(this.remoteControlMode=reb[this.provider.videoData.bj]||0);this.provider.videoData.Kj&&(a=tRa(this.provider.videoData.Kj),a==null?0:a.length)&&(this.remoteConnectedDevices=a)};
    g.K_=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
    seb=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.K_(a,b,"cmt",[d.toFixed(3)]);d=a.provider.Ef(c);if(a.D&&d*1E3>a.D.w_+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.w_;a.Ma=b*1E3-e.Dda-d-e.mda;e=(0,g.fC)()-d;b=a.Ma;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=e-b;GG(f,h);g.FG({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
        f);EG("pbs",e,f)}else e=a.provider.ea.Fi(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.nk()||g.kE(new g.CB("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ma("gllat",{l:a.Ma.toFixed(),prev_ad:+c});delete a.D}};
    M_=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.uM(a.provider);var c=a.provider.ea.aF(),d=c.Ns-(a.Sa||0);d>0&&g.K_(a,b,"bwm",[d,(c.wv-(a.Ob||0)).toFixed(3)]);isNaN(a.Sa)&&c.Ns&&a.isOffline&&a.OL(!1);a.Sa=c.Ns;a.Ob=c.wv;isNaN(c.bandwidthEstimate)||g.K_(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.X.wc()&&Object.keys(c.j).length!==0&&a.ma("bwinfo",c.j);if(a.provider.X.wc()||a.provider.X.L("html5_log_meminfo"))d=ecb(),Object.values(d).some(function(e){return e!==void 0})&&a.ma("meminfo",d);
        a.qa&&g.K_(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.Dc!==d&&(g.K_(a,b,"vis",[d]),a.Dc=d);seb(a,b);(d=teb(a.provider))&&d!==a.Kb&&(g.K_(a,b,"conn",[d]),a.Kb=d);ueb(a,b,c)};
    ueb=function(a,b,c){if(!isNaN(c.uw)){var d=c.uw;c.B<d&&(d=c.B);g.K_(a,b,"bh",[d.toFixed(3)])}};
    veb=function(a,b,c){g.JR(a.provider.X,g.bT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.X.L("kevlar_woffle")||a.provider.X.L("qoe_nwl_downloads"))e=!0}else a.provider.X.L("qoe_with_networkless")&&(e=!0);var f=a.provider.X.L("qoe_send_and_write"),h=a.provider.X;d=neb(b,h,a.provider.X.pageId,a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
        oeb(b,d,{token:a.provider.videoData.G,TT:a.provider.videoData.un,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Fa)):e?(e=a.provider.X.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Fa?gD().sendAndWrite(b,h):e?g.EA(b,{method:"POST",postBody:c}):gD().sendThenWrite(b,h)):(f=c,f=f===void 0?"":f,bva(b,f)||g.$C(b,void 0,void 0,void 0,f))})};
    web=function(a){for(var b=0,c=g.v(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(cs(a.j[d],function(e,f){return e+f.length},0));
        b>96E3&&(new g.Av(a.reportStats,0,a)).start()};
    xeb=function(a){a.provider.videoData.Dd&&N_(a,"prefetch");a.provider.videoData.Dc&&a.ma("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Dc});a.provider.videoData.Bb&&N_(a,"monitor");a.provider.videoData.isLivePlayback&&N_(a,"live");SQ&&N_(a,"streaming");a.provider.videoData.Mm()&&N_(a,"lifa");a.provider.videoData.bj&&a.ma("ctrl",{mode:a.provider.videoData.bj},!0);if(a.provider.videoData.Kj){var b=a.provider.videoData.Kj.replace(/,/g,"_");a.ma("ytp",{type:b},!0)}a.provider.videoData.wW&&
    (b=a.provider.videoData.wW.replace(/,/g,"."),a.ma("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.X.L("enable_white_noise")||a.provider.X.L("enable_webgl_noop");c=g.JS(c)||g.TS(c)||g.US(c)||g.VS(c);(b||c)&&(b=(0,g.O_)())&&(a.j.gpu=[b]);cT(a.provider.videoData)&&g.K_(a,g.uM(a.provider),"dt",["1"]);a.provider.X.wc()&&(b=(0,g.fC)()-a.provider.X.Tf,a.ma("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.zA(function(){a.reportStats()},1E4)};
    zeb=function(a,b,c){var d=g.uM(a.provider);yeb(a,d,b,0,c);M_(a,d);web(a)};
    yeb=function(a,b,c,d,e){var f=a.provider.X.j.cbrver;a.provider.X.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&Aeb(a,3);a.provider.X.L("html5_use_ump")&&/b248180278/.test(e)&&Aeb(a,4);f=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+ZG());e&&c.push(Beb(e));g.K_(a,b,"error",c);a.C=!0};
    Ceb=function(a){a.B>=0||(a.provider.X.Rf||a.provider.ea.getVisibilityState()!==3?a.B=g.uM(a.provider):a.Va=!0)};
    u7a=function(a,b,c,d){if(c!==a.Ee){b<a.G||(a.Ee==="PL"?a.playTimeSecs+=b-a.G:a.Ee==="B"&&a.isBuffering&&(a.isBuffering=!1,a.rebufferTimeSecs+=b-a.Jb,!a.Za&&a.rebufferTimeSecs>=10&&a.playTimeSecs<=180&&(a.provider.ea.fG(),a.j.qoealert=["1"],a.Za=!0)),c!=="B"||a.Ee!=="PL"&&a.Ee!=="PB"||(a.isBuffering=!0),a.G=b);a.Ee==="PL"&&(c==="B"||c==="S")||a.provider.X.wc()?M_(a,b):(a.gb||c!=="PL"||(a.gb=!0,ueb(a,b,a.provider.ea.aF())),seb(a,b));c==="PL"&&g.Bv(a.Qc);var e=[c];c==="S"&&d&&e.push("ss."+d);g.K_(a,
        b,"vps",e);a.Ee=c;a.Jb=b;a.G=b;a.C=!0}};
    N_=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
    kY=function(a,b,c,d,e,f){var h=g.uM(a.provider);c!==1&&c!==3&&c!==5||g.K_(a,h,"vps",[a.Ee]);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};
    Aeb=function(a,b){if(!a.eb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.eb=!0}};
    Beb=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
    Deb=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.hq=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=P_(this.provider)};
    Q_=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.zb(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?a.B.endTime===0&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=P_(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
    Feb=function(a){Eeb(a);a.K=g.zA(function(){a.update()},100);
        a.hq=g.uM(a.provider);a.B=P_(a.provider)};
    Eeb=function(a){g.BA(a.K);a.K=NaN};
    Geb=function(a,b,c){c-=a.hq;return b===a.j&&c>.5};
    Heb=function(a,b,c,d){this.X=b;this.Dc=c;this.segments=[];this.experimentIds=[];this.Wa=this.Tb=this.isFinal=this.delayThresholdMet=this.Ab=this.Dd=this.autoplay=this.autonav=!1;this.Qc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.eb=!1;this.N=this.pageId="";this.D=c==="watchtime";this.C=c==="playback";this.ra=c==="atr";this.wh=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.Bn+"/api/stats/"+c;d&&(this.Tb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=
        d.state,d.rti>0&&(this.Z=d.rti)):(this.Sf=d.mos,this.Jg=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Xd=d.inview),d.size&&(this.Zc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.jf=g.jd(b.j);this.N=TQ(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Ob=g.jd(b.Ob);this.Rf=b.Qc;this.experimentIds=OUa(b.experiments);this.Va=b.sj;this.Qc=b.qa;this.region=
        b.region;this.userAge=b.userAge;this.gb=b.uj;this.He=zD();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Tf=b.L("vss_final_ping_send_and_write");this.Fa=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Uf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Qf=b.D&&b.L("embeds_append_synth_ch_headers");g.kR(b)&&(this.La=b.Ea);g.cB(g.sR(b))&&this.K.push(1);this.accessToken=
        g.bT(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.tp[this.Dc]?this.rb=a.tp[this.Dc]:a.tp.playback&&(this.rb=a.tp.playback):a.rb&&(this.rb=a.rb);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=fYa(a);this.C&&(this.Dd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Gq&&YS(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=$S(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Ab=
        a.Jf;a.G&&(this.Y=a.G,this.Jb=a.un);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Ik;this.Kb=a.Kb;a.B&&(this.Yd=a.B.itag,a.D&&a.D.itag!==this.Yd&&(this.Bb=a.D.itag));a.j&&UO(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=YS(a);this.Wa=a.xi?!1:a.Qi;this.kf=a.vn;if(b=MS(a))this.Vf=b;this.uf=a.Ry;this.Ma=a.Ma;this.eventId=a.eventId;this.playlistId=a.MX||a.playlistId;this.pz=a.pz;this.bj=a.bj;this.Kj=a.Kj;this.zp=a.zp;this.subscribed=a.subscribed;this.videoId=a.videoId;
        this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.UH=a.UH;this.referrer=a.referrer;this.xp=a.uW||a.xp;this.Za=a.MC;this.uA=a.uA;this.userGenderAge=a.userGenderAge;this.Fv=a.Fv;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.kR(this.X)&&a.mutedAutoplay&&this.K.push(2);a.hd(new g.Ke(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.hT(a)&&this.K.push(4);this.Sa=a.mW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=
            a.compositeLiveIngestionOffsetToken)};
    Ieb=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.JR(a.X,a.accessToken).then(function(d){return neb(a.uri,a.X,a.pageId,c,d,b,a.Qf)})};
    Leb=function(a,b){return function(){a.X.L("html5_simplify_pings")?(a.j=a.Ea,a.Fd=b(),a.He=0,a.send()):Ieb(a).then(function(c){var d=Jeb(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.wo(a.uri,d);a.X.L("vss_through_gel_double")&&Keb(d);a.Ca?(c==null&&(c={}),a.Fa?gD().sendAndWrite(d,c):gD().sendThenWrite(d,c)):c?g.EA(d,c):g.$C(d)})}};
    Jeb=function(a){var b={ns:a.Qc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Yd,fs:a.Tb?"1":"0",rt:a.B(a.Fd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Rf,lact:a.He,live:a.Vf,cl:(645945906).toString(),mos:a.Sf,state:a.playerState,volume:a.Jg};a.subscribed&&(b.subscribed="1");Object.assign(b,a.jf);a.N==="all"?Object.assign(b,a.Ob):a.N==="once"&&a.C&&Object.assign(b,a.Ob);a.autoplay&&(b.autoplay="1");a.Dd&&(b.sautoplay="1");a.Ab&&(b.dni="1");!a.D&&a.La&&(b.epm=Meb[a.La]);
        a.isFinal&&(b["final"]="1");a.Wa&&(b.splay="1");a.Kb&&(b.delay=a.Kb);a.Va&&(b.hl=a.Va);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.gb&&(b.uga=a.gb+a.userAge);a.Ea!==void 0&&(b.len=a.B(a.Ea));!a.D&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.G!==null&&(b.rtn=a.B(a.G));a.xp&&(b.feature=a.xp);a.bj&&(b.ctrl=a.bj);a.Kj&&(b.ytr=a.Kj);a.Bb&&(b.afmt=a.Bb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Cc&&(b.lio=a.B(a.Cc));
        a.D?(b.idpj=a.kf,b.ldpj=a.uf,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.Fv&&(b.ald=a.Fv),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Zc&&(a.C||a.D)&&(b.size=a.Zc);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));a.Xd!=null&&(a.C||a.D)&&(b.inview=a.B(a.Xd));a.D&&(b.volume=R_(a,g.as(a.segments,function(d){return d.volume})),b.st=R_(a,g.as(a.segments,function(d){return d.startTime})),b.et=R_(a,g.as(a.segments,function(d){return d.endTime})),
        Zs(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=R_(a,g.as(a.segments,function(d){return d.playbackRate}))),Zs(a.segments,function(d){return d.j!=="-"})&&(b.als=g.as(a.segments,function(d){return d.j}).join(",")),Zs(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.as(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
        b.muted=R_(a,g.as(a.segments,function(d){return d.muted?1:0}));
        Zs(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=R_(a,g.as(a.segments,function(d){return d.visibilityState})));
        Zs(a.segments,function(d){return d.connectionType!==0})&&(b.conn=R_(a,g.as(a.segments,function(d){return d.connectionType})));
        Zs(a.segments,function(d){return d.B!==0})&&(b.blo=R_(a,g.as(a.segments,function(d){return d.B})));
        Zs(a.segments,function(d){return!!d.C})&&(b.blo=g.as(a.segments,function(d){return d.C}).join(","));
        Zs(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.as(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
        Zs(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.as(a.segments,function(d){return d.G}).join(","));
        Zs(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.as(a.segments,function(d){return d.clipId}).join(","));
        if(Zs(a.segments,function(d){return!!d.D})){var c="au";
            a.C&&(c="au_d");b[c]=g.as(a.segments,function(d){return d.D}).join(",")}tA()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment);
        a.wh&&(b.etype=a.qa!==void 0?a.qa:0);a.Za&&(b.uoo=a.Za);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=Neb[a.livingRoomAppMode]||a.livingRoomAppMode);a.rb?Oeb(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.UH,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.zp&&(b.ssrt="1"),a.uA&&(b.upt=a.uA));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
            a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Sa&&(b.host_cpn=a.Sa);return b};
    Oeb=function(a,b){if(b&&a.rb){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);a.rb.ns==="3pp"&&(b.ns="3pp");for(var f=g.v(Object.keys(a.rb)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.rb[h]||(b[h]=a.rb[h])}};
    R_=function(a,b){return g.as(b,a.B).join(",")};
    Keb=function(a){a.indexOf("watchtime")!==-1&&g.SB("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
    Peb=function(a,b){a.attestationResponse&&Ieb(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Fa?gD().sendAndWrite(b,c):gD().sendThenWrite(b,c):g.EA(b,c)})};
    S_=function(a){g.I.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.ra=this.Fa=this.Ca=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new Deb(a)};
    Teb=function(a){if(!a.C){a.provider.videoData.dH===16623&&g.kE(Error("Playback for EmbedPage"));var b=T_(a,"playback");a:{if(a.provider.X.L("web_player_use_server_vss_schedule")){var c,d=(c=a.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,e=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&e.length>0&&d){c=[];var f=a.provider.videoData.vn,h=a.provider.videoData.Ry,l=-f;e=g.v(e);for(var m=e.next();!m.done;m=
        e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.vn,10,10,40+a.provider.videoData.Ry-a.provider.videoData.vn,40]}Feb(a.j);b.G=U_(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.lz&&(b=a.provider.X,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.lz,oid:d.DU,ptchn:d.CU,pltype:d.EU,content_v:$S(d)},d.Yv&&Object.assign(c,{m:d.Yv}),b=g.wo(b.Fa+"ptracking",c),Qeb(a,b));a.provider.videoData.Kb||(Reb(a),
        Seb(a),a.Qs());a.C=!0;b=a.j;b.j=b.provider.ea.Ef();b.hq=g.uM(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.X.L("html5_log_vss_details")&&a.provider.ea.ma("vssinit",{})}};
    U_=function(a,b){b=b===void 0?NaN:b;var c=g.uM(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+1<a.N.length&&a.Z++;var e=b+d;a.D=g.yA(function(){if(!a.Na()){a.D=NaN;var f=Ueb(a),h=Veb(a,f);h.Z=e;var l=a.Y>1E3;!(f.length>1)&&f[0].isEmpty()||l||(h.G=U_(a,e));h.send();a.Y++}},(e-c)*1E3);
        return a.G=e};
    V_=function(a){g.AA(a.D);a.D=NaN};
    Ueb=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||Q_(a);var b=a.segments;a.segments=[];return b};
    T_=function(a,b){var c=Web(a.provider);Object.assign(c,{state:a.K});b=new Heb(a.provider.videoData,a.provider.X,b,c);b.j=a.provider.ea.Ef();c=a.provider.videoData.clientPlaybackNonce;a.provider.X.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.zJ(c));a.provider.videoData.isLivePlayback||(b.Ea=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.Ze(b.j))&&(b.Cc=c-b.j);b.Fd=g.uM(a.provider);b.segments=[P_(a.provider)];return b};
    Veb=function(a,b){var c=T_(a,"watchtime");Xeb(a)&&(c.delayThresholdMet=!0,a.Ca=!0);if(a.B>0){for(var d=g.v(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.DP();c.segments=b;return c};
    W_=function(a,b){var c=Yeb(a,!isNaN(a.G));b&&(a.G=NaN);return c};
    Yeb=function(a,b){var c=Veb(a,Ueb(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c};
    Xeb=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Kb&&a.C&&!a.Ca)b=a.j,b=b.G+b.provider.ea.Ef()-b.C>=a.provider.videoData.Kb;return!!b};
    Reb=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Fa&&(Qeb(a,a.provider.videoData.youtubeRemarketingUrl),a.Fa=!0)};
    Seb=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&(Qeb(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)};
    Zeb=function(a){a.provider.X.L("html5_log_vss_details")&&a.provider.ea.ma("vssfi",{});if(!a.Na()&&a.C){a.K="paused";var b=W_(a);b.isFinal=!0;b.send();a.dispose()}};
    $eb=function(a,b){if(!a.Na())if(g.vF(b.state,2)||g.vF(b.state,512)){if(a.K="paused",g.xF(b,2)||g.xF(b,512))g.xF(b,2)&&(a.j.previouslyEnded=!0),a.C&&(V_(a),W_(a).send(),a.G=NaN)}else if(g.vF(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?U_(a):NaN;!isNaN(c)&&(wF(b,64)<0||wF(b,512)<0)&&(a=Yeb(a,!1),a.G=c,a.send())}else a.K="paused"};
    afb=function(a,b,c){if(!a.qa){c||(c=T_(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.qa=!0}};
    Qeb=function(a,b){var c=a.provider.X;g.JR(a.provider.X,g.bT(a.provider.videoData)).then(function(d){var e=a.provider.X.pageId,f=a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.X.L("vss_pings_using_networkless")||a.provider.X.L("kevlar_woffle"),l=a.provider.X.L("allow_skip_networkless");d=neb(b,c,e,f,d);oeb(b,d,{token:a.provider.videoData.G,TT:a.provider.videoData.un,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
    bfb=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};
    X_=function(a,b,c){this.videoData=a;this.X=b;this.ea=c;this.j=void 0};
    g.uM=function(a){return cfb(a)()};
    cfb=function(a){if(!a.j){var b=g.jb(function(d){var e=(0,g.fC)();d&&e<=631152E6&&(a.ea.ma("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.X.L("html5_validate_yt_now")),c=b();
        a.j=function(){return Math.round(b()-c)/1E3};
        a.ea.VR()}return a.j};
    Web=function(a){var b=a.ea.Ir()||{};b.fs=a.ea.qF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.cA();var c;b.playerheight=((c=a.ea.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ea.getPlayerSize())==null?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.Pk&&(c.infringe=1);(a.xi?0:a.Qi)&&(c.splay=1);
        (d=MS(a))&&(c.live=d);a.Gq&&(c.sautoplay=1);a.Dl&&(c.autoplay=1);a.pz&&(c.sdetail=a.pz);a.Ma&&(c.partnerid=a.Ma);a.osid&&(c.osid=a.osid);a.xD&&(c.cc=g.hWa(a.xD));return Object.assign(b,c)};
    teb=function(a){if(navigator.connection&&navigator.connection.type)return dfb[navigator.connection.type]||dfb.other;if(g.sI(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
    P_=function(a){var b=new bfb,c;b.G=((c=Web(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.X.rb&&(b.B=1);b.C=a.videoData.Oy;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.hc&&c.hc.id&&c.hc.id!=="und"&&(b.D=c.hc.id);b.connectionType=teb(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.cA()||"-";b.j=a.videoData.hW||"-";return b};
    g.Y_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ee=new g.vK;this.rd={sqb:function(){return c.qoe},
        Eqb:function(){return c.j},
        bqb:function(){return c.B}};
        this.provider.videoData.ue()&&!this.provider.videoData.Yl&&(this.j=new S_(this.provider),this.provider.X.L("html5_ssap_vss_fix")&&(this.j.B=this.provider.videoData.Tf/1E3),g.M(this,this.j),this.qoe=new g.L_(this.provider,b),g.M(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ng=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Ng,this.j));if(a.X.playerCanaryState==="canary"||a.X.playerCanaryState==="holdback")this.B=new I_(this.provider),g.M(this,this.B)};
    efb=function(a){return!!a.j&&!!a.qoe};
    lY=function(a){a.B&&heb(a.B);a.qoe&&Ceb(a.qoe)};
    ffb=function(a){if(a.qoe){a=a.qoe;for(var b=g.v(a.provider.X.wh),c=b.next();!c.done;c=b.next())N_(a,c.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(b=g.v(a.provider.videoData.wp),c=b.next();!c.done;c=b.next())N_(a,c.value);else a.provider.videoData.wh&&N_(a,a.provider.videoData.wh);a.provider.videoData.dc()&&(b=a.provider.videoData.j,zS(a.provider.videoData)&&N_(a,"manifestless"),b&&yQ(b)&&N_(a,"live-segment-"+yQ(b).toFixed(1)));yS(a.provider.videoData)&&N_(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&
    (b=a.provider.videoData.gatewayExperimentGroup,b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?b="spkadtrt":b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(b="spkadctrl"),N_(a,b));a.provider.X.qa!=="yt"&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!cT(a.provider.videoData)&&a.OL(!0);a.provider.X.wc()&&(b=w6a())&&a.ma("cblt",{m:b});IS(a.provider.videoData)&&(a.provider.ea.getProximaLatencyPreference()?N_(a,"proximaui"):N_(a,"proximaexp"))}};
    w7a=function(a){if(a.provider.ea.Wf()){if(a.D)return;a.D=!0}a.j&&Teb(a.j);if(a.B){a=a.B;var b=g.uM(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
    v7a=function(a,b){if(g.xF(b,1024)||g.xF(b,512)||g.xF(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Ng){var d;(d=a.C.get(a.Ng))==null||$eb(d,b)}else a.j&&$eb(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.uM(d.provider),f=d.getPlayerState(c);u7a(d,e,f,c.seekSource||void 0);f=c.Og;g.vF(c,128)&&f&&(f.LL=f.LL||"",yeb(d,e,f.errorCode,f.qJ,f.LL));(g.vF(c,2)||g.vF(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(d.B>=
    0&&(d.j.user_intent=[d.B.toString()]),d.N=!0);web(d)}a.B&&(d=a.B,ieb(d),d.playerState=b.state,d.B>=0&&g.xF(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Wf()&&(a.Ee=b.state)};
    gfb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Ng){var b;(b=a.C.get(a.Ng))!=null&&Q_(b.j)}else a.j&&Q_(a.j.j)};
    hfb=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Ee==="PL"&&(b.Ee="N");var c=g.uM(b.provider);g.K_(b,c,"vps",[b.Ee]);b.N||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.X.wc()&&b.ma("finalized",{});b.Fa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.v(a.C.values()),c=b.next();!c.done;c=b.next())Zeb(c.value);else a.j&&Zeb(a.j);a.dispose()};
    ifb=function(a,b){a.j&&afb(a.j,b)};
    jfb=function(a){if(!a.j)return null;var b=T_(a.j,"atr");return function(c){a.j&&afb(a.j,c,b)}};
    kfb=function(a,b,c,d){c.adFormat=c.Cc;var e=b.ea;b=new S_(new X_(c,b.X,{getDuration:function(){return c.lengthSeconds},
        getCurrentTime:function(){return e.getCurrentTime()},
        Ef:function(){return e.Ef()},
        zJ:function(){return e.zJ()},
        Wf:function(){return e.Wf()},
        aF:function(){return e.aF()},
        getPlayerSize:function(){return e.getPlayerSize()},
        getAudioTrack:function(){return c.getAudioTrack()},
        getPlaybackRate:function(){return e.getPlaybackRate()},
        eF:function(){return e.eF()},
        getVisibilityState:function(){return e.getVisibilityState()},
        Fi:function(){return e.Fi()},
        Ir:function(){return e.Ir()},
        getVolume:function(){return e.getVolume()},
        isMuted:function(){return e.isMuted()},
        qF:function(){return e.qF()},
        cA:function(){return e.cA()},
        getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
        VR:function(){e.VR()},
        fG:function(){e.fG()},
        ma:function(f,h){e.ma(f,h)}}));
        b.B=d;g.M(a,b);return b};
    lfb=function(){this.uw=0;this.C=this.wv=this.Ns=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
    Z_=function(a,b,c){g.I.call(this);var d=this;this.X=a;this.ea=b;this.B=c;this.j=new Map;this.Ng="";this.rd={Sn:function(){return Array.from(d.j.keys())}}};
    x7a=function(a,b){a.j.has(b)&&(hfb(a.j.get(b)),a.j.delete(b))};
    mfb=function(){this.j=g.kDa;this.array=[]};
    ofb=function(a,b,c){var d=[];for(b=nfb(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
    pfb=function(a,b){var c=[];a=g.v(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};
    qfb=function(a){return a.array.slice(nfb(a,0x7ffffffffffff),a.array.length)};
    nfb=function(a,b){a=Rb(a.array,function(c){return b-c.start||1});
        return a<0?-(a+1):a};
    rfb=function(a,b){var c=NaN;a=g.v(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
    sfb=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
    $_=function(a,b,c,d,e){g.I.call(this);this.Y=a;this.Ca=b;this.K=c;this.qa=d;this.D=e;this.C=NaN;this.N=this.Z=this.started=!1;this.B=[];this.ra=new g.Av(this.sync,250,this);g.M(this,this.ra);this.G=new g.Av(this.sync,0,this);g.M(this,this.G);this.j=new mfb};
    tfb=function(a){a.started=!0;a.sync()};
    ufb=function(a,b){a.started&&(a.sync(),g.vF(b.tB,16)&&(b=rfb(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&b<0x7ffffffffffff&&a.G.start()))};
    vfb=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];c[0]===1?a.qa(g.OI(d.namespace),d):a.qa(g.PI(d.namespace),d)}};
    wfb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.sI(a)&&(this.C=.01)};
    a0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
    sFa=function(a,b,c,d){if(d=d>1)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
    xfb=function(a,b){this.videoData=a;this.j=b};
    yfb=function(a,b,c){return b.BI(c).then(function(){return KA(new xfb(b,b.C))},function(d){d instanceof Error&&g.kE(d);
        var e=FJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=HJ('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.TUa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Xw(),d:!!b.Zc,drm:b.Wi(),f18:b.Vf.indexOf("itag=18")>=0,c18:e};b.j&&(b.Wi()?(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=HJ('video/mp4; codecs="avc1.42001E"'),
            e.cVP9=HJ('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 BJ(d,e,h)})};
    zfb=function(a){this.G=a;this.C=this.B=0;this.D=new MU(50)};
    c0=function(a,b,c){g.DE.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new Afb;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.Bb?c.B=3:g.RS(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.hI(b,"html5_liveness_drift_proxima_override");if(IS(a)&&d){c.j=d;var e;((e=a.j)==null?0:OTa(e))&&c.j--}if(g.PA("trident/")||g.PA("edge/"))c.C=Math.max(c.C,g.hI(b,"html5_platform_minimum_readahead_seconds")||3);g.hI(b,"html5_minimum_readahead_seconds")&&
    (c.C=g.hI(b,"html5_minimum_readahead_seconds"));g.hI(b,"html5_maximum_readahead_seconds")&&(c.K=g.hI(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.hI(b,"html5_liveness_drift_chunk_override"))c.j=b;HS(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=b0(this,Bfb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
    Cfb=function(a,b){if(b)return b=a.videoData,b=Bfb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),b0(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return b0(a,a.j-1);if(a.policy.D)return b0(a,a.j+1)}return a.j};
    Dfb=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=Cfb(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
    d0=function(a,b){return b>=a.Rn()-Efb(a)};
    Ffb=function(a,b,c){b=d0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C};
    Gfb=function(a,b){b=d0(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
    Efb=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*e0(a)};
    Bfb=function(a,b,c){c.Bb&&b--;HS(c)&&(b=1);if(IS(c)&&(a=g.hI(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:OTa(d))&&b++}return b};
    e0=function(a){return a.videoData.j?yQ(a.videoData.j)||5:5};
    b0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/e0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/e0(a))),b)};
    Afb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
    h0=function(a){g.I.call(this);this.ea=a;this.X=this.ea.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.Av(this.rf,1E3,this);this.rb=new f0({delayMs:g.hI(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Ea=new f0({delayMs:g.hI(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Bb=g0(this,"html5_seek_set_cmt");this.Va=g0(this,"html5_seek_jiggle_cmt");this.eb=g0(this,"html5_seek_new_elem");this.Tb=g0(this,"html5_unreported_seek_reseek");this.Ca=g0(this,"html5_long_rebuffer_jiggle_cmt");
        this.Ma=g0(this,"html5_long_rebuffer_ssap_clip_not_match");this.Fa=new f0({delayMs:2E4});this.Wa=g0(this,"html5_seek_new_elem_shorts");this.gb=g0(this,"html5_seek_new_media_source_shorts_reuse");this.Za=g0(this,"html5_seek_new_media_element_shorts_reuse");this.Sa=g0(this,"html5_reseek_after_time_jump");this.Z=g0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=g0(this,"html5_gapless_slow_seek");this.Y=g0(this,"html5_gapless_slice_append_stuck");this.ra=g0(this,"html5_gapless_slow_start");
        this.N=g0(this,"html5_ads_preroll_lock_timeout");this.Ob=g0(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new f0({delayMs:g.hI(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Rz:!this.X.L("html5_report_slow_ads_as_error")});this.Ab=new f0({delayMs:g.hI(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Rz:!this.X.L("html5_skip_slow_buffering_ad")});this.Kb=new f0({delayMs:g.hI(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.La=g0(this,"html5_slow_start_no_media_source");
        this.B={};g.M(this,this.G)};
    g0=function(a,b){var c=g.hI(a.X.experiments,b+"_delay_ms");a=a.X.L(b+"_cfl");return new f0({delayMs:c,Rz:a})};
    Hfb=function(a,b){a.j=b};
    i0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Sd(e,b,h),b.Rz||f()):(b.TL&&b.B&&!b.D?(c=(0,g.fC)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.TL,c=b.j&&c-b.j>b.JS||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.qc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.ma("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
    f0=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.JS===void 0?1E3:b.JS;var d=b.TL===void 0?3E4:b.TL;b=b.Rz===void 0?!1:b.Rz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.JS=c;this.TL=d;this.Rz=b};
    Lfb=function(a){g.I.call(this);var b=this;this.ea=a;this.X=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new Ifb;this.Ca=new h0(this.ea);this.K=this.j=this.ya=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.La=NaN;this.C=null;this.Sa=NaN;this.G=this.Y=null;this.qa=!1;this.gb=NaN;this.Bb=0;this.N=!1;this.Ma=new g.Av(function(){Jfb(b,!1)},2E3);
        this.Jb=new g.Av(function(){j0(b)});
        this.Wa=new g.Av(function(){b.qa=!0;Kfb(b,{})});
        this.timestampOffset=0;this.Fa=!0;this.Va=0;this.rb=NaN;this.Ea=new g.Av(function(){var c=b.X.Qf;c.j+=1E4/36E5;c.j-c.C>1/6&&(lVa(c),c.C=c.j);b.Ea.start()},1E4);
        this.eb=this.Ab=!1;this.Z=0;this.Za=!1;this.ra=0;g.M(this,this.Ca);g.M(this,this.Ma);g.M(this,this.Wa);g.M(this,this.Jb);g.M(this,this.Ea)};
    Nfb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new zfb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(zS(a.videoData)&&a.ya){var c=a.ya.RI.fh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ca;break a}}c=0}return c}),a.j=new c0(a.videoData,a.X.experiments,function(){return a.oe(!0)}));
        k0(a.ea)?(b=Mfb(a),a.seekTo(b.startSeconds,{jd:"seektimeline_startPlayback",seekSource:15})):l0(a)||(a.D=a.D||(g.dT(a.videoData)?0:a.videoData.startSeconds)||0)};
    Pfb=function(a,b){(a.ya=b)?Ofb(a,!0):m0(a)};
    Qfb=function(a,b){g.Bv(a.Ca.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Bv(a.Ea):a.Ea.stop());if(a.mediaElement)if(b.tB.state===8&&uFa(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Dh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?bK(c,Math.max(b-3.5,0)):bK(c,b-3.5);d>=0&&b>c.end(d)-1.1&&d+1<c.length&&c.start(d+1)-c.end(d)<11&&(d=c.start(d+1)+.2,Math.abs(a.rb-d)<.2||(a.ea.ma("seekover",{b:aK(c,"_"),cmt:b}),
        a.rb=d,a.seekTo(d,{bx:!0,jd:"seektimeline_postLiveDisc"})))}else((c=b.state)==null?0:c.state===8)&&!a.eb&&(a.videoData.limitedPlaybackDurationInSeconds>0?(n0(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.eb=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(n0(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.eb=!0))};
    Sfb=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.Hi(c);f!==-1&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.fC)()/1E3-e.j.Ze(f),f-=e.G(),e.D.add(f))}}a.j&&(d&&(e=a.j,f=Rfb(a),e.D++,e.D<3||g.kb()-e.N<3E3||(e.N=g.kb(),e.B.push(f),e.B.length>50&&e.B.shift())),e=a.j,Ffb(e,c,b===void 0?!0:b),Gfb(e,c),b&&Jfb(a,!0));d!==a.Ab&&(b=a.getCurrentTime()-a.gb<=500,c=a.Bb>=1E3,b||c||(b=a.ea.vc(),b.qoe&&(b=b.qoe,c=g.uM(b.provider),
        g.K_(b,c,"lh",[d?"1":"0"])),a.Ab=d,a.Bb++,a.gb=a.getCurrentTime()))};
    Jfb=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!d0(c,d)&&c.cq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Cd()?Math.min(c.videoData.Cd()+10,c.Rn()):NaN;if(!isNaN(c)){if(a.ya&&b&&(b=a.Ma.isActive(),d=a.j.Rn(),(d=Jcb(a.ya,d-a.Lc()))&&!b)){a.Ma.start();a.ea.ma("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Lc()});a.seekTo(d+a.Lc(),{jd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{jd:"seektimeline_pegToLive"})}}};
    Ofb=function(a,b){if(a.j&&a.ya){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||a.videoData.latencyClass==="LOW"||a.videoData.latencyClass==="ULTRALOW"?c=Dfb(a.j):a.Za&&(a.Za=!1,c=Dfb(a.j,!0));c&&(b=a.ea.vc(),c=a.j,c=e0(c)*c.j,b.qoe&&(b=b.qoe,g.K_(b,g.uM(b.provider),"lra",[c]),b.ma("live-readahead-seconds",{v:c})));b=a.ya;var d=a.j.j;a=a.j;a=(a.j-1+a.policy.j)*e0(a);c=NaN;var e=b.Bb;e===2||e===-1?HS(b.ea.getVideoData())&&(c=b.policy.ZC):(--d,e=b.ea.getVideoData(),e.dc()&&e.latencyClass!=="ULTRALOW"&&
    !e.isLowLatencyLiveStream&&(c=IS(e)?b.policy.FD:b.policy.iq));d=Math.max(d,0);e=b.D;e.hh=d;e.Z=c;b.G&&(b.G.qa=a)}};
    Tfb=function(a,b){a.D=b};
    Kfb=function(a,b){Ufb(a,b).then(void 0,function(){m0(a)});
        Vfb(a).then(function(c){Wfb(a,c)},function(){m0(a)});
        T6a(a.ea,b);a.X.wc()&&(b=a.qc(),b["native"]=""+ +a.N,b.tgt=""+a.B,b.otgt=""+(a.B+a.timestampOffset),a.j&&a.L("html5_high_res_seek_logging")&&(b.tht=""+a.j.K(),b.ht=""+a.j.Rn(),b.adft=""+Efb(a.j)),a.ea.ma("startSeek",b))};
    Ufb=function(a,b){a.Y||(a.ya?isFinite(a.B)?a.Y=a.ya.seek(a.B-a.timestampOffset,b):(xS(a.videoData),a.Y=ZZ(a.ya),kYa(a.videoData)||(a.B=a.ya.getCurrentTime()+a.timestampOffset)):a.Y=hg(a.B-a.timestampOffset));return a.Y};
    Vfb=function(a){var b=a.C;b||(a.C=new sK,b=a.C,j0(a));return b};
    Xfb=function(a,b,c){return isNaN(b)?NaN:g.ze(b,a.Cd(),a.oe(c))};
    j0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&a.mediaElement.Uk()>0&&jFa(a.mediaElement)>0&&(a.B=Xfb(a,a.B,!1)),!a.mediaElement||!Yfb(a))a.Jb.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Sa-(a.B-a.timestampOffset);if(!(b===0||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Va||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
    else{if(a.videoData.AD)a.videoData.AD=!1;else if(!xS(a.videoData)&&a.B>=a.oe()-.1){a.B=a.oe();a.C.resolve(a.oe());EX(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Ca.j=c;a.Sa=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}};
    Yfb=function(a){if(!a.mediaElement||a.mediaElement.Uk()===0||a.mediaElement.hasError())return!1;var b=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Wi())return b;if(a.B>=0){var c=a.mediaElement.pA();if(c.length||!b)return cK(c,a.B-a.timestampOffset)}return b};
    Wfb=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.X.wc()&&(b=a.qc(),b["native"]=""+ +a.N,b.otgt=""+(a.B+a.timestampOffset),a.ea.ma("seekEnd",b)));m0(a)};
    m0=function(a){a.B=NaN;a.Sa=NaN;a.C=null;a.Y=null;a.G=null;a.qa=!1;a.N=!1;a.Va=0;a.Ma.stop();a.Wa.stop()};
    $fb=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.N&&f!==a.B){var h=!!a.C;a.C=new sK;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){Wfb(a,m)},function(){m0(a)});
        if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;rza({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.mW)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.aL()}a.Sa=f;Hfb(a.Ca,d.getCurrentTime());a.seekTo(f,{seekSource:104,jd:"seektimeline_mediaElementEvent"});c&&z7a(c,f*1E3,!!h);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":k0(a.ea)||Zfb(a);j0(a);break;case "progress":j0(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&
    ((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.Z>10&&a.seekTo(a.Z,{jd:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Z=0))};
    agb=function(a){return(SS(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||l0(a))&&!!a.videoData.j};
    l0=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9};
    Mfb=function(a){var b=0,c=NaN,d="";xS(a.videoData)&&(b=Infinity);if(g.RS(a.videoData))return{startSeconds:b,dfa:c,source:d};a.videoData.startSeconds&&!l0(a)?(d="ss",b=a.videoData.startSeconds):a.videoData.Yd?(d="stss",b=a.videoData.Yd):agb(a)&&(c=a.videoData.liveUtcStartSeconds||NaN)&&(d="utc",b=a.oe()-a.Ze(a.oe())+c);return{startSeconds:b,dfa:c,source:d}};
    Zfb=function(a){if(a.Fa)if(g.RS(a.videoData))a.Fa=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Ob&&!l0(a)&&(b="mss",c=a.videoData.Ob);(a.videoData.eb?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.Yd&&(b="stss",c=a.videoData.Yd);!c&&agb(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Ob,b="utc",c=a.oe()-a.Ze(a.oe())+c);!c&&a.videoData.Yd&&(b="stss",c=a.videoData.Yd);var d={};if(c){if(c>a.oe()||c<a.Cd())d.minSeekableTime=
        a.Cd(),d.maxSeekableTime=a.oe(),d.cmt=a.getCurrentTime(),d.it=a.Ze(a.getCurrentTime()),d.ss=c,d.utc=agb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Ob:0,a.ea.ma("startSecondsOutOfBounds",d),a.videoData.dc()&&(c=Xfb(a,c,!1));a.seekTo(c,{jd:"seektimeline_startSeconds"});d[b]=c;a.ea.ma("startSeconds",d);a.Fa=!1}else a.videoData.Ob&&(d[b]=a.videoData.Ob+a.Lc(),a.ea.ma("startSeconds",d))}};
    bgb=function(a,b){a.ea.ma("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.B=b;a.D=b;Vfb(a).then(function(c){Wfb(a,c)},function(){m0(a)})};
    Rfb=function(a){return a.mediaElement?uK(a.mediaElement):0};
    Ifb=function(){};
    o0=function(){this.j=this.started=!1};
    hgb=function(a){function b(e){return c.Tl&&(!d.zn||!d.Da.N)||c.qa!=="yt"&&(d.Ma===38&&c.playerStyle==="books"||d.Ma===30&&c.playerStyle==="docs"||d.Ma===33&&c.playerStyle==="google-live")?cgb(a,d,e):dgb(a,d).then(function(){p0(a,d)},function(f){p0(a,d,!0);
        throw f;})}
        var c=a.U(),d=a.getVideoData();d.Na();d.loading=!0;return egb(a)?fgb(a,d).then(function(){p0(a,d)},function(e){e=DJ(e);
            if(CJ(e.severity))return p0(a,d,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(ggb=!0);a.handleError(e);return b("onesie")}):b("gvi")};
    egb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&a.getVisibilityState()===5||b.qa!=="yt")return!1;var c=b.Pk;if(!c||!c.j)return a.handleError(new BJ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.fC)()&&(a.ma("okexp","1"),(c=a.oA())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=(d=c.j.get(0))==null?void 0:eP(d.location))&&!vX(b)&&c.j.delete(0)}if(ggb)return a.ma("ost3","1"),!1;d={};return Object.keys(d).length>
    0?(d.onesie="0",a.handleError(new BJ("html5.missingapi",d)),!1):!0};
    igb=function(a){var b=HT();IT(b,a);return g.YG(b,KPa())};
    fgb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L,N,Q,da,na,qa,ha,ta;return g.G(function(P){if(P.j==1)return b.fetchType="onesie",c=yYa(b,a.getPlayerSize(),a.getVisibilityState()),d=new l_(a,c),g.z(P,d.fetch(),2);e=P.B;f={player_response:e};b.loading=!1;h=a.zd.Hu;if(d.ag){l=g.v(d.ag.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.v(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(w=u.Br(),b.JG=w);h.aA=d}A=g.v(d.cY.entries());for(C=A.next();!C.done;C=
        A.next())E=C.value,H=g.v(E),L=H.next().value,N=H.next().value,Q=L,da=N,h.B.set(Q,da,180);g.sS(b,f,!0);if(b.loading||qS(b))return P.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.JG=[];na={};qa="onesie.response";ha=0;b.errorCode?(qa="auth",na.ec=b.errorCode,na.ed=b.errorDetail,na.es=b.Mn||"",ha=2):(na.successButUnplayable="1",na.disposed=""+ +b.Na(),na.afmts=""+ +/adaptiveFormats/.test(e),na.cpn=b.clientPlaybackNonce);ta=new BJ(qa,na,ha);return P.return(Promise.reject(ta))})};
    dgb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.G(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ia(4);break}if(!(f>0)){t.Ia(5);break}return g.z(t,pg(5E3),6);case 6:h=new g.CB("Retrying OnePlatform request",{attempt:f}),g.kE(h);case 5:return g.Ba(t,7),g.z(t,jgb(a,b),9);case 9:return t.return();case 7:l=g.Da(t);m=DJ(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&n==="manifest.net.badstatus"&&m.details.rc===401&&(d=!1,f===e-1&&(e+=1)):d&&n===
        "manifest.net.badstatus"&&m.details.rc==="401"&&(d=!1,f===e-1&&(e+=1));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(CJ(m.severity)){t.Ia(4);break}case 3:f++;t.Ia(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new BJ(q,{backend:"op"},r)))}})};
    jgb=function(a,b){function c(qa){qa.readyState===2&&a.Td("ps_c")}
        var d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L,N,Q,da,na;return g.G(function(qa){switch(qa.j){case 1:b.fetchType="gp";d=a.U();e=g.JR(d,g.bT(b));if(!e.j){f=e.getValue();qa.Ia(2);break}return g.z(qa,e.j,3);case 3:f=qa.B;case 2:return h=f,l=igb(h),m=yYa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.XF(kgb),p=g.bT(b),q=(0,g.fC)(),r=!1,t="empty",u=0,a.Td("psns"),w={xB:c},g.z(qa,g.LG(l,m,n,void 0,w),4);case 4:A=qa.B;a.Td("psnr");if(b.Na())return qa.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message,
            u=A.error.code):A.errorMetadata&&(r=!0,t="its",u=A.errorMetadata.status):r=!0;if(r)return C=0,E=((0,g.fC)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:E,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.gA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Fa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.bj||"",token_eq:p===g.bT(b)?"1":"0"}:{backend:"op",
            rc:""+u,rt:E,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.gA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.Fa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.bj||"",token_eq:p===g.bT(b)?"1":"0"},L="manifest.net.connect",u===429?(L="auth",C=2):u>200&&(L="manifest.net.badstatus",u===400&&(C=2)),qa.return(Promise.reject(new BJ(L,H,C)));b.loading=!1;g.sS(b,{raw_player_response:A},!0);
            N=A;g.pR(b.U())&&N&&N.trackingParams&&CO(N.trackingParams);if(b.errorCode)return Q={ec:b.errorCode,ed:b.errorDetail,es:b.Mn||""},qa.return(Promise.reject(new BJ("auth",Q,2)));if(!b.loading&&!qS(b))return da=b.isAd()?"auth":"manifest.net.retryexhausted",na=b.isAd()?2:1,qa.return(Promise.reject(new BJ(da,{successButUnplayable:"1",hasMedia:g.OS(b)?"1":"0"},na)));g.Aa(qa)}})};
    cgb=function(a,b,c){function d(u){u=DJ(u);if(CJ(u.severity))return Promise.reject(u);a.handleError(u);return!1}
        function e(){return!0}
        var f,h,l,m,n,p,q,r,t;return g.G(function(u){switch(u.j){case 1:var w=a.U(),A=a.getPlayerSize(),C=a.getVisibilityState();a.isFullscreen();var E=window.location.search;if(b.Ma===38&&w.playerStyle==="books")E=b.videoId.indexOf(":"),E=g.wo("//play.google.com/books/volumes/"+b.videoId.slice(0,E)+"/content/media",{aid:b.videoId.slice(E+1),sig:b.lfa});else if(b.Ma===30&&w.playerStyle==="docs")E=g.wo("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.P9,authkey:b.hda,eurl:w.Qc});else if(b.Ma===
            33&&w.playerStyle==="google-live")E=g.wo("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{w.qa!=="yt"&&g.jE(Error("getVideoInfoUrl for invalid namespace: "+w.qa));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:w.Qc,ps:w.playerStyle,el:YS(b),hl:w.sj,list:b.playlistId,agcid:b.tW,aqi:b.adQueryId,sts:19898,lact:zD()};Object.assign(H,w.j);w.forcedExperiments&&(H.forced_experiments=w.forcedExperiments);b.Fa?(H.vvt=b.Fa,b.mdxEnvironment&&(H.mdx_environment=b.mdxEnvironment)):
            g.bT(b)&&(H.access_token=g.bT(b));b.adFormat&&(H.adformat=b.adFormat);b.slotPosition>=0&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);b.OC!==null&&(H.ad_id=b.OC);b.SC!==null&&(H.ad_sys=b.SC);b.CD!==null&&(H.encoded_ad_playback_context=b.CD);b.eD&&(H.tpra="1");w.captionsLanguagePreference&&(H.cc_lang_pref=w.captionsLanguagePreference);w.Jb&&w.Jb!==2&&(H.cc_load_policy=w.Jb);var L=g.AB(g.zB(),65);g.BR(w)&&L!=null&&!L&&(H.device_captions_on="1");w.mute&&(H.mute=w.mute);b.annotationsLoadPolicy&&
        w.annotationsLoadPolicy!==2&&(H.iv_load_policy=b.annotationsLoadPolicy);b.Zv&&(H.endscreen_ad_tracking=b.Zv);(L=w.La.get(b.videoId))&&L.wM&&(H.ic_track=L.wM);b.Ca&&(H.itct=b.Ca);fYa(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.KD&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Kj);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.Aw&&(H.ytrcc=b.Aw);b.FE&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1");
            b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(L=b.forceAdsUrl.split("|").length===3,H.force_ad_params=L?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Dd&&(H.preload=b.Dd);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.xi?0:b.Qi)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");$S(b)&&(H.content_v=$S(b));b.Bb&&(H.livemonitor=1);w.Ca&&(H.authuser=w.Ca);w.pageId&&(H.pageid=w.pageId);w.gb&&(H.ei=w.gb);w.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");w.N&&b.TF&&(H.live_start_walltime=
                b.TF);w.N&&b.Rl&&(H.live_manifest_duration=b.Rl);w.N&&b.playerParams&&(H.player_params=b.playerParams);w.N&&b.cycToken&&(H.cyc=b.cycToken);w.N&&b.yN&&(H.tkn=b.yN);C!==0&&(H.vis=C);w.enableSafetyMode&&(H.enable_safety_mode="1");b.Jb&&(H.kpt=b.Jb);b.qp&&(H.kids_age_up_mode=b.qp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.QA&&(H.upg_content_filter_mode="1");w.widgetReferrer&&(H.widget_referrer=w.widgetReferrer.substring(0,128));b.qa?(A=b.qa.latitudeE7!=null&&b.qa.longitudeE7!=null?b.qa.latitudeE7+
                ","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.mp&&(H.internalipoverride=b.mp);w.embedConfig&&(H.embed_config=w.embedConfig);w.lm&&(H.co_rel="1");w.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(w.ancestorOrigins).join(","));w.homeGroupInfo!==void 0&&(H.home_group_info=w.homeGroupInfo);w.livingRoomAppMode!==void 0&&(H.living_room_app_mode=w.livingRoomAppMode);w.enablePrivacyFilter&&
            (H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.Mv&&b.Uv&&(H.clip=b.Mv,H.clipt=b.Uv);b.Xv&&(H.disable_watch_next="1");b.Bn&&(H.forced_by_var="1");for(var N in H)!lgb.has(N)&&H[N]&&String(H[N]).length>512&&(g.kE(Error("GVI param too long: "+N)),H[N]="");N=w.Fa;g.qR(w)&&(N=YCa(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||w.Fa);w=g.wo(N+"get_video_info",H);E&&(w=bra(w,E));E=w}f=E;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){u.Ia(4);break}n=f;if(!(m>0)){u.Ia(5);break}return g.z(u,
            pg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=rA(f,p);case 5:return g.z(u,mgb(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.kE(new g.CB("b/152131571",btoa(f)))}catch(Q){}return u.return(Promise.reject(new BJ(r,{backend:"gvi"},t)))}})};
    mgb=function(a,b){function c(A){return d(A.xhr)}
        function d(A){if(!a.Na()){A=A?A.status:-1;var C=0,E=((0,g.fC)()-p).toFixed();E=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:E}:{backend:"gvi",rc:""+A,rt:E};var H="manifest.net.connect";A===429?(H="auth",C=2):A>200&&(H="manifest.net.badstatus",A===400&&(C=2));return Promise.reject(new BJ(H,E,C))}}
        var e,f,h,l,m,n,p,q,r,t,u,w;return g.G(function(A){if(A.j==1){a.fetchType="gvi";e=a.U();var C={};a.WC&&(C.ytrext=a.WC);(l=g.gd(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=rA(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b);m={};e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData);(n=TQ(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length>
        0&&(f.headers=m);p=(0,g.fC)();return g.z(A,GTa(GA,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=oA(q.responseText);g.sS(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Mn||""},A.return(Promise.reject(new BJ("auth",t,2)));if(!a.loading&&!qS(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",w=a.isAd()?2:1,A.return(Promise.reject(new BJ(u,{successButUnplayable:"1"},w)));g.Aa(A)})};
    p0=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.G(function(l){if(l.j==1){d=a.U();if(c&&(!g.DR(d)||YS(b)!=="embedded")||b.Xv||YS(b)!=="adunit"&&(g.sI(d)||vR(d)||g.NF(d)||g.qR(d)||g.RQ(d)==="WEB_CREATOR"))return l.return();e=g.JR(d,g.bT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ia(2))}l.j!=2&&(f=l.B);h=f;return l.return(ngb(a,b,h))})};
    ngb=function(a,b,c){var d,e,f,h,l;return g.G(function(m){if(m.j==1){g.Ba(m,2);d=igb(c);var n=b.U();g.zB();var p={context:g.iT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};YS(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.lm&&(p.showContentOwnerOnly=!0);b.BW&&(p.showShortsOnly=!0);g.AB(0,141)&&(p.autonavState=g.AB(0,140)?"STATE_OFF":"STATE_ON");if(g.BR(n)){var q=g.AB(0,65);q=q!=null?
        !q:!1;var r=!!g.vB("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.XF(ogb);a.Td("wn_s");return g.z(m,g.LG(d,e,f),4)}if(m.j!=2)return h=m.B,a.Td("wn_r"),!h||"error"in h&&h.error||(l=h,g.pR(b.U())&&l.trackingParams&&CO(l.trackingParams),g.sS(b,{raw_watch_next_response:h},!1)),g.Ca(m,0);g.Da(m);g.Aa(m)})};
    pgb=function(a){a.Td("vir");a.Td("ps_s");IG("vir",void 0,"video_to_ad");var b=hgb(a);b.then(function(){a.Td("virc");IG("virc",void 0,"video_to_ad");a.Td("ps_r");IG("ps_r",void 0,"video_to_ad")},function(){a.Td("virc");
        IG("virc",void 0,"video_to_ad")});
        return b};
    g.s0=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.pS(a):m;n=n===void 0?!0:n;g.DE.call(this);var p=this;this.X=a;this.playerType=b;this.Qb=c;this.sH=d;this.getVisibilityState=f;this.visibility=h;this.zd=l;this.videoData=m;this.u7=n;this.logger=new g.CQ("VideoPlayer");this.YD=new wfb(this.X);this.Ae=null;this.IB=new D_;this.wr=null;this.Ek=new Sdb(this.X,this.sH,this);this.RY=!0;this.Qa=this.ya=null;this.uq=[];this.wq=new o0;this.Mf=this.yG=null;this.xs=new o0;this.zL=null;this.hQ=this.nu=!1;this.AL=
        NaN;this.z0=!1;this.playerState=new g.vK;this.DL=[];this.FC=new g.IJ;this.bl=new Gdb(this);this.mediaElement=null;this.zx=new g.Av(this.Vaa,15E3,this);this.bT=this.WK=!1;this.iy=NaN;this.zI=!1;this.bO=0;this.pF=!1;this.vK=NaN;this.JT=new NU(new Map([["bufferhealth",function(){return Rfb(p.Sc)}],
        ["bandwidth",function(){return p.qP()}],
        ["networkactivity",function(){return p.X.schedule.Y}],
        ["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?qgb(p):NaN}],
        ["rawlivelatency",function(){return qgb(p)}]]));
        this.IF=0;this.loop=!1;this.playbackRate=1;this.HZ=0;this.Sc=new Lfb(this);this.VW=!1;this.CL=[];this.PQ=this.A0=0;this.WS=this.X2=!1;this.wv=this.Ns=0;this.ON=new g.Av(this.m9,0,this);this.IT=!1;this.wb=this.Yc=null;this.X$=[this.FC,this.ON,this.zx,this.JT];this.Lf=function(){var q=p.vc();q.provider.X.Rf||q.provider.ea.getVisibilityState()===3||(q.provider.X.Rf=!0);gfb(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&heb(r)}q.qoe&&(q=q.qoe,q.Va&&q.B<0&&q.provider.X.Rf&&Ceb(q),
        q.C&&M_(q));p.ya&&q0(p);p.X.yp&&!p.videoData.backgroundable&&p.mediaElement&&!p.Zh()&&(p.isBackground()&&p.mediaElement.mI()?(p.ma("bgmobile",{suspend:1}),p.Ro(!0,!0)):p.isBackground()||r0(p)&&p.ma("bgmobile",{resume:1}))};
        this.rd={mq:function(q){p.mq(q)},
            Lrb:function(q){p.Ae=q},
            kqb:function(){return p.aB},
            mA:function(){return p.bB},
            Jpb:function(){return p.cO},
            Kpb:function(){return p.dO},
            hrb:function(){},
            U:function(){return p.X},
            Ke:function(){return p.mediaElement},
            krb:function(q){p.nL(q)}};
        this.logger.debug(function(){return"creating, type "+b});
        this.Bh=new $_(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.OI("endcr")||g.vF(p.playerState,32)||EX(p);
            e(q,r,p.playerType)},function(q,r){g.dT(p.videoData)&&p.ma(q,r)});
        g.M(this,this.Bh);g.M(this,this.Sc);rgb(this,m);this.videoData.subscribe("dataupdated",this.Cca,this);this.videoData.subscribe("dataloaded",this.vO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.WB,this);this.YI();h6a(this.Lf);this.visibility.subscribe("visibilitystatechange",this.Lf);this.cO=new g.Av(this.bM,g.hI(this.X.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.dO=
            new g.Av(this.bM,g.hI(this.X.experiments,"html5_player_att_retry_delay_ms")||4500,this)};
    pK=function(a){return a.L("html5_not_reset_media_source")&&!a.Wi()&&!a.videoData.isLivePlayback&&g.ZS(a.videoData)&&!a.X.supportsGaplessShorts()};
    rgb=function(a,b){if(a.playerType===2||a.X.Ap)b.uU=!0;var c=lWa(b.Cc,b.sB,a.X.D,a.X.N);c&&(b.adFormat=c);a.playerType===2&&(b.Dl=!0);if(a.isFullscreen()||a.X.D)c=g.vB("yt-player-autonavstate"),b.autonavState=c||(a.X.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&n0(a,b.endSeconds)};
    sgb=function(a){if(a.videoData.Y){var b=a.zd.Uc();a.videoData.Sy=a.videoData.Sy||(b==null?void 0:b.uP());a.videoData.Ev=a.videoData.Ev||(b==null?void 0:b.xP())}if(YXa(a.videoData)||!lYa(a.videoData))b=a.videoData.errorDetail,a.Nf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Mn||void 0);a.videoData.Jg=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&(a.videoData.videoId?a.videoData.cZ=a.zd.QK(a.videoData.videoId):a.ma("pomvid",{}));a.L("html5_enable_d6de4")&&
    a.gU()};
    tgb=function(a){hfb(a.aB);g.ub(a.aB);for(var b=a.bB,c=g.v(b.j.values()),d=c.next();!d.done;d=c.next())hfb(d.value);b.j.clear();g.ub(a.bB)};
    ugb=function(a){return a.mediaElement&&a.mediaElement.Tv()?a.mediaElement.Ib():null};
    t0=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.Nf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
    g.DX=function(a,b){(b=b===void 0?!1:b)||g.dT(a.videoData)||lY(a.vc());a.nu=b;!t0(a)||a.wq.vu()?g.sI(a.X)&&a.videoData.isLivePlayback&&a.wq.vu()&&!a.wq.j&&!a.nu&&a.vO():(a.wq.start(),b=a.vc(),g.uM(b.provider),b.qoe&&xeb(b.qoe),a.vO())};
    vgb=function(a){var b=a.videoData;pgb(a).then(void 0,function(c){a.videoData!==b||b.Na()||(c=DJ(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Nf(c.errorCode,2,unescape(a.videoData.errorReason),AJ(c.details),a.videoData.errorDetail,a.videoData.Mn||void 0):a.handleError(c))})};
    L6a=function(a,b){a.Yc=b;a.ya&&Hcb(a.ya,new g.v_(b))};
    ygb=function(a){if(!g.vF(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.uq=g.Kb(a.videoData.Ea),g.OS(a.videoData)){a.Qb.tick("bpd_s");u0(a).then(function(){a.Qb.tick("bpd_c");if(!a.Na()){a.nu&&(a.Gc(yK(yK(a.playerState,512),1)),r0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&n0(a,c.endSeconds);a.wq.j=!0;v0(a,"dataloaded");a.xs.vu()&&wgb(a);geb(a.Ek,a.Mf)}});
        a.L("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Sf.toFixed(3)},!0);var b=mYa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);xgb(a)}else v0(a,"dataloaded")};
    u0=function(a){w0(a);a.Mf=null;var b=yfb(a.X,a.videoData,a.Zh());a.yG=b;a.yG.then(function(c){zgb(a,c)},function(c){a.Na()||(c=DJ(c),a.visibility.isBackground()?(x0(a,"vp_none_avail"),a.yG=null,a.wq.reset()):(a.wq.j=!0,a.Nf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",AJ(c.details))))});
        return b};
    G_=function(a){a.logger.debug("Updating for format change");u0(a).then(function(){return r0(a)});
        a.playerState.isOrWillBePlaying()&&a.playVideo()};
    zgb=function(a,b){if(!a.Na()&&!b.videoData.Na()){a.logger.debug("finished building playback data");a.Mf=b;Nfb(a.Sc,a.Mf);if(a.videoData.isLivePlayback){var c=S7a(a.zd.Hu,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ca);c=a.L("html5_onesie_live")&&c;k0(a)||a.videoData.Ob>0&&!zS(a.videoData)||c||a.seekTo(a.oe(),{jd:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&jYa(a.videoData)){a.handleError(new BJ("fmt.missing",{missabrurl:"1"},2));return}a.ya?
        g.kE(Error("Duplicated Loader")):(c=g.hI(a.X.experiments,"html5_onesie_defer_content_loader_ms"))&&r_(a)&&S7a(a.zd.Hu,a.videoData.mfa)?g.yA(function(){a.Na()||a.ya||Agb(a)},c):Agb(a)}else!a.videoData.C.j&&cT(a.videoData)&&a.hL(new AZ(a.videoData.videoId||"",4));
        y0(a);Ydb(b).then(function(){var d={};a.Xo(d);a.X.wc()&&a.L("html5_log_media_perf_info")&&a.ma("av1Info",d);q0(a)})}};
    Bgb=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.DX(a);t0(a)&&!g.vF(a.playerState,128)&&(a.xs.vu()||(a.xs.start(),a.videoData.Sl?a.Gc(yK(a.playerState,4)):a.Gc(yK(yK(a.playerState,8),1))),wgb(a))};
    wgb=function(a){a.Na();a.logger.debug("try finish readying playback");if(a.xs.j)a.logger.debug("already finished readying");else if(a.wq.j)if(g.vF(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.uq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.uq});
    else if(a.Bh.started||tfb(a.Bh),a.Yn())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.hQ=M9a(a.ya.timing));a.xs.j||(a.xs.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Ca);!a.videoData.isLivePlayback||a.videoData.Ob>0&&!zS(a.videoData)||b||k0(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{jd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.bT=!0));ffb(a.vc());a.logger.debug("finished readying playback");a.publish("playbackready",
        a);HG("pl_c",a.Qb.timerName)||(a.Qb.tick("pl_c"),IG("pl_c",void 0,"video_to_ad"));HG("pbr",a.Qb.timerName)||(a.Qb.tick("pbr"),IG("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
    EX=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();Cgb(a)&&!a.videoData.ra&&a.IT||a.Gc(b?new g.vK(14):new g.vK)};
    n0=function(a,b){a.wr&&Dgb(a);a.wr=new g.NI(b*1E3,0x7ffffffffffff);a.wr.namespace="endcr";a.addCueRange(a.wr)};
    Dgb=function(a){a.removeCueRange(a.wr);a.wr=null};
    Egb=function(a,b,c,d,e){var f=a.vc(e);e=g.dT(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.QU(a);f.uG(new Rdb(e,c,b,h?h.itag:"",d));c=a.Ek;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,b==="m")};
    g.QU=function(a){var b=z0(a);return PO(b)||!a.Mf?null:g.Cb(a.Mf.j.videoInfos,function(c){return b.D(c)})};
    z0=function(a){if(a.Mf){var b=a.Ek;var c=a.Mf;a=a.Ow();if(b.ea.Hm().isInline())var d=oS;else b.L("html5_exponential_memory_for_sticky")?d=oVa(b.X.Qf,"sticky-lifetime")<.5?"auto":QO[HO()]:d=QO[HO()],d=g.OO("auto",d,!1,"s");if(PO(d)){d=Tdb(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.v(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if((m=l.B)==null?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;ura()&&!g.sI(b.X)&&QJ(c.j.videoInfos[0])&&
    (f=Math.min(f,g.KJ.large));h=g.hI(b.X.experiments,"html5_chipset_soft_cap");h>0&&(f=Math.min(f,h));d=e.call(d,new MO(0,f,!1,"o"));e=d.compose;f=4320;!b.X.B||g.pR(b.X)||b.X.L("hls_for_vod")||b.X.L("mweb_remove_360p_cap")||g.hI(b.X.experiments,"html5_byterate_soft_cap_mweb")!==0||(f=g.KJ.medium);(h=g.hI(b.X.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.X.L("html5_always_apply_default_quality_cap")||!c.videoData.bj&&!c.videoData.me)&&(f=Math.min(f,h));(h=g.hI(b.X.experiments,"html5_ns_yt_progressive_quality_cap"))&&
    !c.j.j&&b.X.qa==="yt"&&(f=Math.min(f,h));h=g.hI(b.X.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.hI(b.X.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.v(l.videoInfos),m=l.next();!m.done;m=l.next())if(m.value.video.fps>32){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.hI(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=eeb(b,c,f);d=e.call(d,g.hI(b.X.experiments,"html5_byterate_soft_cap_mweb")>
    0&&b.X.B&&!g.pR(b.X)?new MO(0,f===4320?0:f,!1,"d",g.hI(b.X.experiments,"html5_byterate_soft_cap_mweb")):new MO(0,f===4320?0:f,!1,"d")).compose(deb(b,c.videoData)).compose(feb(b,c.videoData,c)).compose(ceb(b,c)).compose(Wdb(b,c));if(PO(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(Xdb(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(ceb(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(Xdb(b,c)));d=d.compose(Wdb(b,c));b=c.videoData.RA.compose(d).compose(c.videoData.FX).compose(a)}else b=
        oS;return b};
    Fbb=function(a){var b=a.Ek;a=a.videoData;var c=deb(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(feb(b,a));return c};
    g.Fgb=function(a,b,c,d){a.videoData.RA=b;if(a.Mf&&c){c=a.Ek;var e=a.Mf;if(e.j.j){var f=HO(),h=e.j.videoInfos[0].video.j;if(!(f>h&&h!==0&&b.j===h)){var l;f=Vdb(c,(l=e.j)==null?void 0:l.videoInfos);l=c.ea.getPlaybackRate();l>1&&f&&(l=SUa(c.X.G,e.j.videoInfos,l),b.j!==0&&l<b.j&&c.ea.setPlaybackRate(1));var m,n;b=g.KJ[RO(b)];e=((m=e.videoData.B)==null?void 0:(n=m.video)==null?void 0:n.j)||0;g.uB("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.X.schedule.policy.C=HO()>=480;if(c.L("html5_exponential_memory_for_sticky")){m=
        c.X.Qf;n=1;var p=p===void 0?!1:p;nVa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Kr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Kr["sticky-lifetime"]=0);p&&oVa(m,"sticky-lifetime")>.0625&&(n=m.Kr["sticky-lifetime"]*2);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Kr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.X;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=c===void 0?!1:c;m=m.L("html5_gradual_perf_cap");m=m===void 0?!1:m;if(n===void 0?0:n){n=
        IO();b=g.v(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,e.indexOf("1")!==0&&(n[e]=0);g.uB("yt-player-performance-cap",n,m?2592E3:604800)}else g.wB("yt-player-performance-cap");iQa(c);if(c){c=g.v(DQ.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||DQ.delete(m);c=g.v(H_.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||H_.delete(m);c=g.v(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else DQ.clear(),H_.clear(),
        p.clear()}}}}a.ya&&(p=a.ya,d=d||"",kV(p.policy)?oZ(p.C.j,d):oZ(p.j.G,d));y0(a)};
    y0=function(a){if(!a.Na()&&!g.vF(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)q0(a);else{var b=z0(a),c=a.videoData;a:{var d=a.videoData.Fd;if(b.j){for(var e=g.v(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.KJ[h.video.quality];if((!b.C||h.video.quality!=="auto")&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.gb=d;Egb(a,b.reason,Ggb(a,a.videoData.gb))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Sc.Fa=!1,a.playVideo()}};
    q0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=z0(a);a.ya&&qcb(a.ya,b)}};
    Hgb=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.aC&&((b=a.videoData.B)==null?0:UJ(b)))};
    Igb=function(a){if(!Hgb(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)};
    Kgb=function(a){var b=Jgb(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.hc.getName()===b})};
    Jgb=function(a){var b;if(a=(b=a.mediaElement)==null?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
    Agb=function(a){for(var b=a.videoData.j,c=g.v(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.X.j.c,cver:a.X.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;for(var f=g.v(Object.values(b.j)),h=f.next();!h.done;h=f.next())KSa(h.value.resource,d,e);f=void 0;(f=b.Z)==null||KSa(f,d,e)}c=a.X;d=a.videoData;b=new g.s0a(c);e=r0a({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,kF:d.kF});b.N=e;b.ra=d.maxReadAheadMediaTimeMs/1E3||b.ra;e=c.schedule;e.B.fh()===
    e.policy.B?b.Ab=10:b.Ab=d.minReadAheadMediaTimeMs/1E3||b.Ab;b.Jg=d.readAheadGrowthRateMs/1E3||b.Jg;Ks&&(b.Fd=41943040);b.Yl=!fFa();g.sI(c)||!fFa()?(e=c.experiments,b.Ca=8388608,b.gb=524288,b.Sl=5,b.La=1048576,b.Iv=1.5,b.tb=4587520,vra()&&(b.tb=786432),b.Z*=1.1,b.Y*=1.1,b.Xd=!0,b.Fd=b.Ca,b.Qf=e.fb("persist_disable_player_preload_on_tv")||e.fb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.Z*=1.3,b.Y*=1.3);g.GJ&&g.PA("crkey")&&(e=c.j.cmodel==="CHROMECAST/ANCHOVY",b.Ca=20971520,
        b.gb=1572864,e&&(b.tb=812500,b.Jk=1E3,b.gw=5,b.La=2097152));g.NQ&&(b.Xd=!0);c.supportsGaplessAudio()||(b.yn=!1);iR&&(b.Zc=!0);b.He=c.L("html5_peak_shave");d.fetchType==="onesie"&&c.L("html5_disable_peak_shave_for_onesie")&&(b.He=!1);var l;e=(l=d.j)==null?void 0:XO(l);if(zS(d)){b.kf=!0;b.Aj=!0;b.Ob=!0;b.Pk=!0;b.Uv=!0;if(d.latencyClass==="ULTRALOW"||d.latencyClass==="LOW"&&!c.L("html5_disable_low_pipeline"))b.xp=2,b.Ap=4;b.dk=d.defraggedFromSubfragments;if(d.If||c.L("html5_publish_all_cuepoints"))b.Fv=
        !0;g.RS(d)&&(b.Jb=!1);b.Wl=g.qI(c)}d.isAd()&&(b.Dj=0,b.ao=0);b.sj=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&d.latencyClass==="ULTRALOW";b.B=/^rq/.test(d.clientPlaybackNonce)||c.wc();Bra()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.Xd=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.hI(c.experiments,d.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":
        d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));l=c.schedule;l.Sa.C=zS(d)?.5:0;if(!l.policy.D&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.C?l.j:l.B),n=l.B-m;n<0&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.B=m%f;l.C=m===f;l.al=!0;l.G=bVa(l)}d.isLivePlayback&&(b.Ij=g.hI(c.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||
        .25,b.rb=!1);HS(d)&&(b.sj=!0,d.latencyClass==="LOW"?b.Dc=g.hI(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):d.latencyClass==="ULTRALOW"&&(b.Dc=g.hI(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.fq=!0);d.dc()&&(b.Ul=1.3);b.Zc=b.Zc||d.XH;b.j=g.dT(d);b.Va=d.Y||b.j&&!c.L("html5_enable_ssap_seteos");c.wc()&&(b.Ma=!0);d.Y&&!e&&(b.Jv=!0);d.Y&&d.isAd()&&(b.Z*=1.6,b.Y*=1.6);cT(d)&&(b.D=d.videoId,b.Ql=!0,b.Zv=g.hI(c.experiments,"html5_offline_download_timeout_retry_limit"),
    d.Qy&&d.Qy.length>0&&(b.uf=d.Qy));b.Tf=d.Pl;b.qj=AUa(c,{},d.C||void 0,DXa(d));b.eb=FS(d)&&g.NF(c);yS(d)&&(c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.Kv=!0),b.C=!0,b.Bn=c.L("html5_sabr_enable_utc_seek_requests"),b.Zl=c.L("html5_disable_client_resume_policy_for_sabr"),b.Xv=c.L("html5_trigger_loader_when_idle_network"),b.zv=c.L("html5_enable_platform_backpressure_with_sabr"),b.Uf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Gv=c.L("html5_sabr_report_next_ad_break_time"),
        b.K=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Bq=c.L("html5_pause_ssdai_append"),b.pp=c.L("html5_sabr_exclude_quality_ordinal_check"),b.vp=c.L("html5_log_high_res_buffer_timeline"),b.cw=c.L("html5_gapless_sabr_btl_last_slice")&&ES(d),zS(d)&&(b.jm=c.L("html5_disable_variability_tracker_for_live"),b.Sa=c.L("html5_sabr_use_accurate_slice_info_params")),b.Sy=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"),b.qa=c.L("html5_enable_sabr_request_pipelining")&&!g.dT(d),b.Bj=c.L("html5_ignore_partial_segment_from_live_readahead"),
        b.dw=c.L("html5_use_non_active_broadcast_for_post_live"),b.Bb=c.L("html5_use_centralized_player_time"),b.Wa=c.L("html5_enable_sabr_seek_loader_refactor"));b.G=b.C&&c.L("html5_sabr_live");aP(c.G,bP.BITRATE)&&(b.tb=NaN);if(l=g.hI(c.experiments,"html5_request_size_max_kb"))b.La=l*1024;c.G.D?b.Kb="; "+bP.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Kb="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.zi=!0,u0a(b,l.playbackStartPolicy,
        2));if(a.X.experiments.fb("enable_audio_description_setting")&&g.AB(g.zB(),198))for(l=a.videoData.getAvailableAudioTracks(),l=g.v(l),c=l.next();!c.done;c=l.next())if(c=c.value,c.G){var q=c;break}q||(q=a.getAudioTrack(),q=q.hc.isDefault?void 0:q);a.IB.removeAll();a:{l=a.zd.Hu;if(c=a.videoData.videoId)if(d=l.j.get(c)){l.j.remove(c);l=d;break a}l=void 0}a.ya=new g.q_(a,a.X.schedule,b,a.videoData.j,a.videoData.C,z0(a),q,a.videoData.enableServerStitchedDai,l,a.videoData.Sa);q=a.nu&&g.sI(a.X)&&a.videoData.isLivePlayback;
        a.ya.initialize(a.getCurrentTime(),z0(a),q);a.videoData.probeUrl&&(a.ya.La=a.videoData.probeUrl);if(a.uq.length||a.nu)a.videoData.cotn||A0(a,!1);Pfb(a.Sc,a.ya);a.Yc&&Hcb(a.ya,new g.v_(a.Yc));a.wb&&(a.ya.gM(a.wb),a.Sc.Fa=!1);g.eT(a.videoData)&&(a=a.ya,a.policy.uj=a.policy.GD)};
    w0=function(a){a.ya&&(a.ya.dispose(),a.ya=null,Pfb(a.Sc,null));pK(a)?Lgb(a):GX(a)};
    Lgb=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.Vz(),a.Qa.K)try{a.X.wc()&&a.ma("rms",{l:"vprms",sr:pK(a),rs:rK(a.Qa)});a.Qa.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.CB("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=DJ(b),a.handleError(b),GX(a)}else GX(a)};
    GX=function(a){a.Qa&&(a.logger.debug("remove media source"),iFa(a.Qa),a.Vz(),a.Qa.dispose(),a.Qa=null)};
    Mgb=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.RA()&&a.videoData.DQ()&&lFa(a.mediaElement);var b=a.mediaElement.Gr(a.dA(),a.vP())}catch(d){if(Kdb(a.bl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Nf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}V5a(a,b)}var c;return((c=a.Gr())==null?void 0:c.C)||null};
    V5a=function(a,b,c,d){function e(f){try{Ngb(a,f,c,d)}catch(h){g.kE(h),a.handleError(new BJ("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}}
        c=c===void 0?!1:c;d=d===void 0?!1:d;Ogb(a);a.Qa=b;pK(a)&&rK(a.Qa)==="open"?e(a.Qa):cFa(a.Qa,e)};
    Ogb=function(a){if(a.ya){var b=a.getCurrentTime()-a.Lc();a.ya.seek(b,{}).Jl(function(){})}else Agb(a)};
    Ngb=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&zS(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
        f>a.Qa.getDuration()&&a.Qa.Hl(f)}else a.Qa.Hl(e);ncb(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}};
    scb=function(a,b){Egb(a,b.reason,b.j.info,b.token,b.videoId)};
    F_=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d,e,f;return g.G(function(h){if(h.j==1){a.ya&&a.ya.Ww();a.ya&&a.ya.Na()&&w0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Wi()&&(d=a.videoData.j)!=null)for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Gc(yK(a.playerState,2048));a.publish("newelementrequired");return b?g.z(h,u0(a),2):h.Ia(2)}a.videoData.dc()&&((e=a.ya)==null?0:e.Ca)&&!k0(a)&&((f=a.isAtLiveHead())&&xS(a.videoData)?a.seekTo(Infinity,{jd:"videoPlayer_getNewElement"}):
        a.videoData.je&&a.ya&&(l=a.ya,l.manifest.dc&&(l.manifest.je||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{jd:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):AQ(l.manifest)&&ZZ(l))));c&&a.seekTo(0);g.vF(a.playerState,8)&&a.playVideo();g.Aa(h)})};
    B0=function(a,b){a.ma("hgte",{ne:+b});a.videoData.Y=!1;b&&F_(a);a.ya&&kcb(a.ya)};
    c6a=function(a,b){a.ma("newelem",{r:b});F_(a)};
    Pgb=function(a,b){a.Qb.D.vR();g.vF(a.playerState,32)||(a.Gc(yK(a.playerState,32,b==null?void 0:b.seekSource)),g.vF(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Tc()};
    T6a=function(a,b){b=b==null?void 0:b.seekSource;g.vF(a.playerState,32)?(a.Gc(AK(a.playerState,16,32,b)),a.publish("endseeking",a)):g.vF(a.playerState,2)||a.Gc(yK(a.playerState,16,b));a.Qb.D.AR(a.videoData,a.playerState.isPaused())};
    Qgb=function(a,b){a.X.experiments.fb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.aL(),b&&a.Nf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
    H_a=function(a){var b=0,c="";if(a.Yc){if(a.Yc.Kn)return"D,";b=a.Yc.tP();c=a.Yc.jl().substring(0,4)}else a.wb&&(b=a.wb.tP(),c=a.wb.jl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
    v0=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)};
    Rgb=function(a){for(var b=g.v("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.FC.T(a.mediaElement,c.value,a.nL,a);a.X.Zl&&a.mediaElement.Tv()&&(a.FC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.caa,a),a.FC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.daa,a))};
    S5a=function(a){g.BA(a.AL);Sgb(a)||(a.AL=g.zA(function(){return Sgb(a)},100))};
    Sgb=function(a){var b=a.mediaElement;b&&a.WK&&!a.videoData.ra&&!HG("vfp",a.Qb.timerName)&&b.Uk()>=2&&!b.isEnded()&&eK(b.Dh())>0&&a.Qb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.ra&&b.getDuration()>0&&(b.isPaused()&&b.Uk()>=2&&eK(b.Dh())>0&&(HG("pbp",a.Qb.timerName)||a.Qb.tick("pbp"),!a.videoData.Sl||a.z0||b.isSeeking()||(a.z0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),a0(a.YD,b))?(T5a(a),!0):!1};
    T5a=function(a){g.BA(a.AL);a.zx.stop();a.videoData.ra=!0;a.X.mp=!0;a.X.Kb=0;var b=a.bl;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.qb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();Tgb(a);g.vF(a.playerState,8)&&a.Gc(zK(a.playerState,65));a.nu=!1;w7a(a.vc());g.Bv(a.cO);a.publish("playbackstarted");(a=g.Wa("yt.scheduler.instance.clearPriorityThreshold"))?a():PB(0,0)};
    Tgb=function(a){var b=a.zd.Od(),c={},d={};!HG("pbs",a.Qb.timerName)&&kG.measure&&kG.getEntriesByName&&(kG.getEntriesByName("mark_nr")[0]?FAa("mark_nr"):FAa());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);if(a.mediaElement&&a.mediaElement.isPaused())if(a.X.experiments.fb("web_csi_via_jspb")){var e=new Rz;Uk(e,6,!0);var f=new Sz;ik(f,Rz,22,e);g.kA(zG)(f,a.Qb.timerName)}else d.isPausedOnLoad=!0;a.X.experiments.fb("web_csi_via_jspb")?
        (e=new Rz,b.B?Vk(e,1,Number(b.B.itag)):Vk(e,1,-1),f=new Sz,ik(f,Rz,22,e),g.kA(zG)(f,a.Qb.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.Dd&&(f=a.hQ?2:1,a.X.experiments.fb("web_csi_via_jspb")?(e=new Rz,T(e,8,f),f=new Sz,ik(f,Rz,22,e),g.kA(zG)(f,a.Qb.timerName)):d.preloadType=String(a.hQ?2:1));c.liveStreamMode=Ugb[MS(b)];c.playerInfo=d;a.Qb.infoGel(c);if(a.ya){b=a.ya.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=
        c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var h in b)b.hasOwnProperty(h)&&a.Qb.tick(h,b[h])}};
    Vgb=function(a){a.vc().Cg();if(xS(a.videoData)&&Date.now()>a.HZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&lUa(a.videoData.j))){var b=a.vc();if(b.qoe){b=b.qoe;var c=b.provider.ea.aF(),d=g.uM(b.provider);ueb(b,d,c);c=c.C;isNaN(c)||g.K_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.qI(b.U())?!0:g.RQ(b.U())==="TVHTML5"?b.Sk==="6":!1):b=g.qI(a.X);b&&a.ma("rawlat",{l:PU(a.JT,"rawlivelatency").toFixed(3)});a.HZ=Date.now()}a.videoData.B&&UJ(a.videoData.B)&&(b=ugb(a))&&
    b.videoHeight!==a.PQ&&(a.PQ=b.videoHeight,Egb(a,"a",Ggb(a,a.videoData.gb)))};
    Ggb=function(a,b){if(b.j.video.quality==="auto"&&UJ(b.getInfo())&&a.videoData.Fd)for(var c=g.v(a.videoData.Fd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.PQ&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()};
    qgb=function(a){if(!xS(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=zS(a.videoData)?a.ya.RI.fh()||0:a.videoData.j.Ca);return(0,g.fC)()/1E3-a.Ze()-b};
    Xgb=function(a){a.mediaElement&&a.mediaElement.Zh()&&(a.vK=(0,g.fC)());a.X.fq?g.yA(function(){Wgb(a)},0):Wgb(a)};
    Wgb=function(a){var b;if((b=a.Qa)==null||!b.Km()){if(a.mediaElement)try{a.zL=a.mediaElement.playVideo()}catch(d){x0(a,"err."+d)}if(a.zL){var c=a.zL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
        if(!g.vF(a.playerState,4)&&!g.vF(a.playerState,256)&&a.zL===c)if(d&&d.name==="AbortError"&&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);x0(a,e);a.VW=!0;a.videoData.xi=!0}})}}};
    x0=function(a,b){g.vF(a.playerState,128)||(a.Gc(AK(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
    r0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if((b=a.videoData.C)==null?0:b.j){c=Mgb(a);var d;(d=a.ya)==null||d.resume()}else w0(a),a.videoData.gb&&(c=a.videoData.gb.uD());b=c;d=a.mediaElement.mI();c=!1;d&&b!==null&&b.resource===d.resource||(Ygb(a,b),c=!0);g.vF(a.playerState,2)||(b=a.Sc,b.G||!(b.D>0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(d={jd:"seektimeline_resumeTime"},b.videoData.ra||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(yS(a.videoData)){if(!a.videoData.Wi())break a}else if(!g.LS(a.videoData))break a;
        if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Tv()){var e=a.mediaElement.Ib();if(a.Ae)if(e!==a.Ae.element)C0(a);else if(b&&d.flavor==="fairplay"&&!SA())C0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&SA()&&d.flavor==="widevine")a.Nf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ae=new zdb(e,a.videoData,a.X);a.Ae.subscribe("licenseerror",a.gL,a);a.Ae.subscribe("qualitychange",a.Taa,a);a.Ae.subscribe("heartbeatparams",
            a.hG,a);a.Ae.subscribe("keystatuseschange",a.mq,a);a.Ae.subscribe("ctmp",a.ma,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Ae.Tx(new zZ(Zgb,"cenc",!1));b=g.v(a.IB.keys);for(d=b.next();!d.done;d=b.next())d=a.IB.get(d.value),a.Ae.Tx(d);a.L("html5_eme_loader_sync")||a.IB.removeAll()}}else a.Nf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
    Ygb=function(a,b){a.Qb.tick("vta");IG("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&Tfb(a.Sc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&PB(0,4);!a.videoData.ra&&a.playerState.isOrWillBePlaying()&&a.zx.start();if(Hgb(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
    C0=function(a){a.Ae&&(a.Ae.dispose(),a.Ae=null)};
    BX=function(a,b){b=b===void 0?!1:b;xS(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.cq()||g.RS(a.videoData))?a=a.getCurrentTime():g.dT(a.videoData)&&a.wb?(b=a.wb,a=a.getCurrentTime(),a=(a=m7a(b,a*1E3))?(a.Wh()-a.Ye())/1E3:0):a=a.oe(b);return a};
    $gb=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(C0(a),GX(a),Mgb(a)):(a.videoData.gb&&a.videoData.gb.eT(),a.mediaElement.stopVideo()),a.playVideo())};
    ahb=function(a,b){a.X.L("html5_log_rebuffer_reason")&&a.ma("bufreason",{r:b,lact:zD()})};
    YX=function(a,b,c,d,e,f,h){var l;if((l=a.videoData.j)==null?0:l.isLive){var m=c.playerType===2?c:b,n=b.videoData.videoId,p=c.videoData.videoId;if(n&&p){l=a.vc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,u=m.videoData.Cc,w=q.provider.videoData.clientPlaybackNonce,A=q.provider.videoData.videoId,C=t!==w&&p!==A;w=r!==w&&n!==A;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=w?r:"",q.Y=w?n:"",q.adFormat=w?u:void 0,kY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=C?t:"",q.Y=C?p:"",q.adFormat=C?u:void 0,kY(q,2,
        h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),W_(f,!0).send(),V_(f),d!==l.provider.videoData.clientPlaybackNonce){Zeb(f);var E;(E=l.j)==null||Ueb(E);l.C.delete(d)}}else l.Ng=l.provider.videoData.clientPlaybackNonce,l.Ng&&l.j&&(l.C.set(l.Ng,l.j),W_(l.j).send(),V_(l.j));E=c.cpn;m=m.videoData;e-=a.Ut();if(l.C.has(E)){e=l.C.get(E);var H=e.C&&isNaN(e.D)?U_(e):NaN;e=Yeb(e,!1);isNaN(H)||(e.G=H);e.send()}else e=kfb(l,l.provider,m,e),l.C.set(E,e),$eb(e,new g.uF(yK(new g.vK,8),new g.vK)),
        Teb(e),(H=l.j)==null||V_(H);l.Ng=E;a.L("html5_unify_csi_server_stitched_transition_logging")?d0a(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),GG(b,l),g.FG({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),EG("pbs",(0,g.fC)(),b))}}};
    bhb=function(a,b){if(a.X.wc()&&a.mediaElement){var c=a.mediaElement.qc();c.omt=(a.mediaElement.getCurrentTime()+a.Lc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.uM(a.vc().provider)*1E3).toFixed();c.e=b;a.CL[a.A0++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})};
    chb=function(a){if(a.X.wc()){a.CL.sort(function(d,e){return+d.rt-+e.rt});
        for(var b=g.v(a.CL),c=b.next();!c.done;c=b.next())c=c.value,a.ma("vpe",Object.assign({t:c.rt},c));a.CL=[];a.A0=0}};
    dhb=function(a){if(g.PA("cobalt")&&g.PA("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ma("nxdock",{d:b})}};
    R5a=function(a,b,c,d,e){a.ma("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
    A0=function(a,b){var c;(c=a.ya)==null||t_(c,b)};
    r_=function(a){return g.Eb(a.uq,"ad")};
    xgb=function(a){vS(a.videoData,"html5_set_debugging_opt_in")&&(a=g.zB(),g.AB(0,183)||(zsa(183,!0),a.save()))};
    ehb=function(a){return g.dT(a.videoData)&&a.wb?jY(a.wb):a.videoData.oe()};
    Ocb=function(a,b){a.zd.zo()||(a.ma("sgap",{f:b}),a.zd.clearQueue(!1,b==="pe"))};
    Cgb=function(a){return ES(a.videoData)&&a.L("html5_shorts_gapless_endstate_fix")};
    k0=function(a){return yS(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")};
    g.D0=function(a,b,c,d){g.I.call(this);var e=this;this.logger=new g.CQ("App");this.oB=this.wj=!1;this.Ss={};this.KL={};this.cC=[];this.mZ=!1;this.xQ=null;this.rZ=!1;this.ox=!0;this.wT=!1;this.LZ=this.RQ=null;this.YZ=!0;this.mediaElement=this.Db=null;this.mR=NaN;this.xG=!1;this.ze=this.HC=this.wb=this.xe=this.screenLayer=this.ub=this.playlist=null;this.rd={UN:function(h,l){e.wb&&e.wb.UN(h,l)}};
        this.logger.debug("constructor begin");this.config=psa(b||{});this.webPlayerContextConfig=c;Msa();b=this.config.args||{};this.X=new BVa(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.M(this,this.X);B6a(this.X);D6a(this.X);this.X.experiments.fb("jspb_serialize_with_worker")&&awa();this.X.experiments.fb("gzip_gel_with_worker")&&Aua();this.X.experiments.fb("web_player_empty_translator")?Twa({},{}):this.X.experiments.fb("web_player_all_payloads_via_jspb")&&Twa(fhb,ghb);this.X.B&&
        !hhb&&(window.addEventListener(hR?"touchstart":"click",J5a,{capture:!0,passive:!0}),hhb=!0);this.L("html5_onesie")&&(this.Wx=new sX(this.X),g.M(this,this.Wx));this.S1=YA(mR(this.X)&&!0,b.enablesizebutton);this.KQ=YA(!1,b.player_wide);this.visibility=new j6a;g.M(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.qC(YA(!1,b.player_wide));this.wj=YA(!1,b.external_list);this.events=new g.IJ(this);g.M(this,this.events);this.L("start_client_gcf")&&(Hva(ED(),{HG:GC,mU:Tta()}),this.H7=
            ED().resolve(GC),Wta(this.H7));this.fda=new oT;g.M(this,this.fda);this.Pr=new b8a;d=new CYa;this.Ua=new g.yT(this,d);g.M(this,this.Ua);this.template=new W7a(this);g.M(this,this.template);this.appState=1;this.Ni=ihb(this);this.J=new g.uT(this,d,!0,1);g.M(this,this.J);g.M(this,d);d={};this.ZN=(d.internalvideodatachange=this.haa,d.playbackready=this.jaa,d.playbackstarted=this.maa,d.statechange=this.naa,d);this.u8=new ZU(this.Ua);this.Qd=jhb(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");
        if(d&&khb||b)a1a(this.Qd,b).pj(function(h){e.X.Md=h;var l;(l=g.sT(e))==null||l.ma("wasm",{a:h.Zp})},function(h){g.kE(h);
            h="message"in h&&h.message||h.toString()||"";var l;(l=g.sT(e))==null||l.ma("wasm",{e:h})});
        else if(d&&!khb){var f;(f=g.sT(this))==null||f.ma("wasm",{e:"wasm unavailable"})}this.Qb=new b0a(this.X,this.Qd);this.Ua.publish("csiinitialized");this.sb=lhb(this);this.sb.setPlaybackRate(this.X.D?1:mhb(this,Number(g.vB("yt-player-playback-rate"))||1));g.EE(this.sb,this.ZN,this);sgb(this.sb);f={};this.G0=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.vR,f.endseeking=this.AR,f.internalAbandon=this.iG,f.internalaudioformatchange=
            this.cG,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.uG,f.liveviewshift=this.Uaa,f.playbackstalledatstart=this.oca,f.progresssync=this.Dba,f.onAbnormalityDetected=this.aL,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.zB,f.SEEK_TO=this.dca,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.rba,f.playbackready=this.tba,f.statechange=this.n0,f.connectionissue=
            this.fG,f.newelementrequired=this.Q_,f.heartbeatparams=this.hG,f.videoelementevent=this.nL,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.jca,f.nonfatalerror=this.kba,f);this.Gu=new g.IJ(this);g.M(this,this.Gu);f=10;g.sI(this.X)&&(f=3);CR(this.X)&&(f=g.hI(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Hu=new wY;g.M(this,this.Hu);this.ey=new uY(f,function(h){h!==g.sT(e,h.getPlayerType())&&h.dispose()});
        g.M(this,this.ey);this.hP=this.uJ=-1;this.XL=new g.Av(this.template.resize,16,this.template);g.M(this,this.XL);this.Yc=new B7a(this.Ua,this.X,this.sb);this.xq=new PX(this.X);this.Qk=new a6a(this);g.M(this,this.Qk);this.LM=new xX(this);g.M(this,this.LM);Q7a(this.X.j.c);this.events.T(this.Ua,g.OI("appapi"),this.eaa);this.events.T(this.Ua,g.PI("appapi"),this.faa);this.events.T(this.Ua,g.OI("appprogressboundary"),this.Cba);this.events.T(this.Ua,g.PI("applooprange"),this.aM);this.events.T(this.Ua,"presentingplayerstatechange",
            this.Bk);this.events.T(this.Ua,"resize",this.Pba);this.template.Ja(mf(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.mba);this.Qd.J.U().yj&&xV(this.Qd,"offline");this.X.eb&&g.dV("ux",g.qX);this.QW=new g.Av(this.kda,g.hI(this.X.experiments,"html5_defer_fetch_att_ms"),this);g.M(this,this.QW);this.Od().ue()&&(g.xB()&&this.Od().Ea.push("remote"),nhb(this));this.Qb.tick("fs");ohb(this);this.X.eb&&xV(this.Qd,"ux",!0);g.kR(this.Qd.J.U())&&xV(this.Qd,"embed");this.L("web_player_sentinel_is_uniplayer")||
        g.kE(new g.CB("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.CA("web_player_sentinel_yt_experiments_sync");a!==f&&g.kE(new g.CB("b/195699950",{yt:a,player:f}));c||g.kE(new g.CB("b/179532961"));this.Q2=phb(this);if(c=g.hI(this.X.experiments,"html5_block_pip_safari_delay"))this.nP=new g.Av(this.gX,c,this),g.M(this,this.nP);LA=this.X.Dc;c=g.hI(this.X.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.w0=
            new g.ng(c),g.M(this,this.w0),this.events.T(this.w0,"tick",function(){e.x0&&qhb.Ar("apit",e.x0);e.x0=qhb.Js()}));
        this.Ua.publish("applicationInitialized");this.logger.debug("constructor end")};
    phb=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.ub||a.sb).vc().Sd("player.exception",AJ(c)))}
        lE.subscribe("handleError",b);iA.push(b);return function(){lE.unsubscribe("handleError",b);var c=iA.indexOf(b);c!==-1&&iA.splice(c,1)}};
    lhb=function(a){var b=new g.pS(a.X,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.Sz(1,b)};
    rhb=function(a,b){if(a.sb!==b){b.getVideoData().autonavState=a.sb.getVideoData().autonavState;FE(a.sb,a.ZN,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);g.EE(b,a.ZN,a);nhb(a)}};
    jhb=function(a){var b="",c=U7a(a);c.indexOf("//")===0&&(c=a.X.protocol+":"+c);var d=c.lastIndexOf("/base.js");d!==-1&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.kE(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new K0a(a.Ua,b);shb(a,b);return b};
    shb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
        b.C=c};
    ihb=function(a){if(a.X.storeUserVolume){a=g.vB("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ze(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.X.mute};return a};
    E0=function(a){a.mediaElement=a.X.deviceIsAudioOnly?new g.LU(g.yf("AUDIO")):wX.pop()||new g.LU(g.yf("VIDEO"));g.M(a,a.mediaElement);a.ub&&a.ub.setMediaElement(a.mediaElement);try{a.X.Zc?(a.HC&&a.events.Pc(a.HC),a.HC=a.events.T(a.mediaElement,"volumechange",a.cba)):(a.mediaElement.iC(a.Ni.muted),a.mediaElement.setVolume(a.Ni.volume/100))}catch(e){a.Dg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,
        "_")));return}g.rB(a.Gu);thb(a);var b=a.template,c=a.mediaElement.Ib();b.Fc=c;b.gK=!1;b.Fc.parentNode||Gf(b.Pz,b.Fc,0);b.IL=new g.Gs(0,0,0,0);a8a(b);yY(b);c=b.Fc;g.Hv(c,"video-stream");g.Hv(c,g.xY.MAIN_VIDEO);var d=b.app.U();d.Ik&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in EJ()&&(c.playsInline=!0):d.Yl&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.eq&&b.Fc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Dg("html5.missingapi",
        2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}};
    FX=function(a,b,c){if(a.ub!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
        var d=null;if(a.ub){d=a.ub.getPlayerState();a.logger.debug("set presenting player, destroy modules");yV(a.Qd,3);F0(a,"cuerangesremoved",a.ub.il());a.Qk&&!b.isGapless()&&a.ub.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=pK(b)&&pK(a.ub);a.L("html5_rebase_video_to_ad_timeline")&&a.Qb.tv("iv_s");uhb(a,e)}b.getPlayerType()===1&&rhb(a,b);vhb(a,b);a.ub=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.EE(b,a.G0,a);if(b.sK())whb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
            b,b.getVideoData());d&&!g.tFa(d,b.getPlayerState())&&a.n0(new g.uF(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.wq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Xm("onPlaybackQualityChange",c.quality);F0(a,"cuerangesadded",a.ub.il());c=b.getPlayerState();g.vF(c,2)?xhb(a):g.vF(c,8)?b.playVideo():b.uF()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().mW=(f=g.sT(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!==
        2||a.If()||(f=b.getVideoData(),a.sb.oy(f.clientPlaybackNonce,f.Cc||"",f.breakType||0,f.Sf,f.videoId||""));a.logger.debug("finish set presenting player")}}};
    xhb=function(a){if(!yhb(a)){var b=a.sb.Ke();b&&(b=b.yE(),b instanceof Promise&&b.catch(function(){}));
        G0(a,BK(a.getPlayerStateObject()))}};
    thb=function(a){var b=a.mediaElement;PEa()?a.Gu.T(b,"webkitpresentationmodechanged",a.aca):window.document.pictureInPictureEnabled&&(a.Gu.T(b,"enterpictureinpicture",function(){a.lC(!0)}),a.Gu.T(b,"leavepictureinpicture",function(){a.lC(!1)}));
        UA&&(a.Gu.T(b,"webkitbeginfullscreen",function(){a.dn(3)}),a.Gu.T(b,"webkitendfullscreen",function(){a.dn(0)}))};
    vhb=function(a,b){var c=b.getPlayerType();if(b!==a.sb&&b!==a.Ss[c]){var d;(d=a.Ss[c])==null||d.dispose();a.Ss[c]=b}};
    uhb=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Lj(),E0(a));a.ub&&(a.ub.Lj(!b),FE(a.ub,a.G0,a),a.ub.getPlayerType()!==1&&a.ub.dispose());a.ub=null;a.logger.debug("finish clear presenting player")};
    g.sT=function(a,b){return b?b===1?a.sb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.Ss[2]||a.ub:a.ub:g.dT(a.getVideoData())&&b===2?a.Ss[2]||a.ub:a.Ss[b]||null:a.ub};
    zhb=function(a,b,c,d){a=a.Sz(b,c,d);sgb(a);return a};
    H0=function(a,b){return a.If(b)?a.sb:b};
    I0=function(a,b){var c=a.ub;return c&&b===a.sb&&a.If(b)&&a.If(c)?c:b};
    Chb=function(a){a.logger.debug("start application playback");if(a.sb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=J0(a);a.Od().isLoaded();b&&a.Hq(6);Ahb(a);U0a(a.Qd)||Bhb(a)}};
    Bhb=function(a){if(!J0(a)){var b=zV(a.Qd);b&&!b.created&&L0a(a.Qd)&&(a.logger.debug("reload ad module"),b.create())}};
    Ahb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Qd;U0a(c)||c.MO();!khb&&c.J.L("html5_allow_asmjs")&&$0a(c);xV(c,"embed");xV(c,"inline_preview");xV(c,"kids");xV(c,"remote");xV(c,"miniplayer");xV(c,"offline");xV(c,"unplugged");xV(c,"ypc",!1,!0);xV(c,"ypc_clickwrap",!1,!0);xV(c,"yto",!1,!0);xV(c,"webgl",!1,!0);V0a(c)||(xV(c,"captions",!0),xV(c,"endscreen"),c.XI(),xV(c,"creatorendscreen",!0));c.wX();a.Ua.publish("videoready",b)};
    K0=function(a){a=a.Od();a.ue();return aT(a)};
    ohb=function(a){a.logger.debug("start prepare initial playback");a.TO();var b=a.config.args;E0(a);var c=a.Od();a.Ua.Bc("onVolumeChange",a.Ni);if(b&&g0a(b)){var d=yR(a.X);d&&!a.wj&&(b.fetch=0);var e=g.kR(a.X);e&&!a.wj&&(b.fetch=0);L0(a,b);g.kR(a.X)&&a.Qb.tick("ep_pr_s");if(!d||a.wj)if(e&&!a.wj)Dhb(a);else if(!c.ue())a.playlist.onReady(function(){M0(a)})}FX(a,a.sb);
        g.vF(a.sb.getPlayerState(),128)||(b=OEa(!a.X.deviceIsAudioOnly),b==="fmt.noneavailable"?a.Dg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?a.Dg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.ue()&&K0(a)&&(a.X.xi||a.X.zi)?N0(a):c.aD?a.Ua.mutedAutoplay():g.vB("yt-player-playback-on-reload")?(g.SB("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.Ca}),g.uB("yt-player-playback-on-reload",!1),N0(a)):HR(a.X)||Ehb(a),g.BR(a.X)||g.RQ(a.X)===
        "MWEB"?(g.LB(g.NB(),function(){O0(a)}),g.LB(g.NB(),function(){aBa()})):(O0(a),aBa()),a.logger.debug("finish prepare initial playback"))};
    O0=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.Bv(a.QW);else{var b=a.getVideoData().botguardData;b&&g.aQa(b,a.X,a.getVideoData().ir||"")}};
    Ehb=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Hq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.DR(a.X)?g.LB(g.NB(),function(){xV(a.Qd,"remote")}):xV(a.Qd,"remote");
        xV(a.Qd,"miniplayer");a.logger.debug("initialized to CUED mode")};
    N0=function(a){a.logger.debug("start initialize application playback");if(g.vF(a.sb.getPlayerState(),128))return!1;var b=a.sb.getVideoData();K0(a)&&a.X.zi&&(wX.length&&a.oB?(P0(a,{muted:!1,volume:a.Ni.volume},!1),Q0(a,!1)):wX.length||a.Ni.muted||(P0(a,{muted:!0,volume:a.Ni.volume},!1),Q0(a,!0)));K0(a)&&g.kR(a.X)&&b.mutedAutoplay&&(P0(a,{muted:!0,volume:a.Ni.volume},!1),Q0(a,!0));b.zW&&P0(a,{muted:!0,volume:a.Ni.volume},!1);Fhb(a,1,b,!1);a.Ua.publish("initializingmode");FX(a,a.sb);a.Hq(3);var c;if(!(c=
        !a.X.zn)){if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.mZ}c&&(a.Lj(),E0(a),a.sb.setMediaElement(a.mediaElement));Bgb(a.sb);if(g.vF(a.sb.getPlayerState(),128))return!1;b.Sl||G0(a,3);return a.mZ=!0};
    J0=function(a){a=BT(a.Qd);return!!a&&a.loaded};
    Ghb=function(a,b){if(!a.Db)return!1;var c=a.Db.startTimeMs*.001-1,d=a.Db.endTimeMs*.001;a.Db.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d};
    Jhb=function(a){var b,c=(b=g.sT(a))==null?void 0:b.ya;a.ub&&ES(a.getVideoData())&&c&&c.policy.Va&&(b=g.hI(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=Hhb(a)*1E3-b,a.L("html5_gapless_new_slr")?(a=a.LM,Ihb(a.app,"gaplessshortslooprange"),b=new g.NI(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Uc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
    Khb=function(a){if(!(g.vF(a.sb.getPlayerState(),64)&&a.Od().isLivePlayback&&a.Db.startTimeMs<5E3)){if(a.Db.type==="repeatChapter"){var b,c=(b=PYa(a.zb()))==null?void 0:b.Ei(),d;b=(d=a.getVideoData())==null?void 0:d.Jk;c instanceof g.NV&&b&&(d=b[eW(b,a.Db.startTimeMs)],c.QG(0,d.title));isNaN(Number(a.Db.loopCount))?a.Db.loopCount=0:a.Db.loopCount++;a.Db.loopCount===1&&a.Ua.ib("innertubeCommand",a.getVideoData().nfa)}c={jd:"application_loopRangeStart"};if(a.Db.type==="clips"||a.Db.type==="shortsLoop")c.seekSource=
        58;a.sb.seekTo(a.Db.startTimeMs*.001,c)}};
    mhb=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(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b};
    Hhb=function(a,b){b=g.sT(a,b);if(!b)return 0;b=H0(a,b);return R0(a,BX(b),b)};
    R0=function(a,b,c){if(a.If(c)){c=c.getVideoData();if(S0(a))c=b;else{a=a.Yc;for(var d=g.v(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.od===e.od){b+=e.pc/1E3;break}d=b;a=g.v(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.od===e.od)break;var f=e.pc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Wd/1E3;else break}c=d}return c}return b};
    Lhb=function(a,b){if(a.getPresentingPlayerType()===3)return BK(BT(a.Qd).Ee);if((a.getVideoData().enableServerStitchedDai||g.dT(a.getVideoData()))&&b===2){var c,d;return((c=a.xe)==null?0:c.wl(a.getCurrentTime()))||((d=a.wb)==null?0:d.wl())?a.uJ:-1}return b!==2||a.If()?a.uJ:a.hP};
    nhb=function(a){a.logger.debug("reset for new application playback");T0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Ua.publish("legacyadtrackingpingreset");a.KL={};a.cC=[];e0a(a.Qb);if(a.xe){var b=a.xe,c=a.sb;c.getPlayerType();aY(b,!1);U6a(b);V6a(b);b.ea=c}b=a.Yc;a=a.sb;a.getPlayerType()!==1&&nY(b,"invalidParentVideoPlayerType");rY(b,!1);O7a(b);b.j=a};
    Dhb=function(a,b){var c=(b?b:a.Od()).DZ;a.Qb.tick("ep_pr_r");if(c!=null&&(k0a(a.playlist,c),a.wT))a.playlist.onReady(function(){M0(a,b)})};
    L0=function(a,b){a.playlist&&(g.ub(a.playlist),a.playlist=null);b&&(a.wj&&(b.fetch=0),a.playlist=new f0a(a.X,b))};
    Mhb=function(a){var b,c=Number((b=a.getVideoData().progressBarEndPosition)==null?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.Ze())&&(b-=a.getCurrentTime(),c=(c-b)*1E3,b=a.KL.progressEndBoundary,(b==null?void 0:b.start)!==c&&(b&&a.PG([b]),c=new g.NI(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.sb.addCueRange(c),a.KL.progressEndBoundary=c))};
    G0=function(a,b){a.logger.debug(function(){return"set external state "+b});
        if(a.ub){var c=a.ub.getPlayerType();if(c===2&&!a.If()){a.hP!==b&&(a.hP=b,a.Ua.ib("onAdStateChange",b));return}if(c===2&&a.If()||c===5||c===6||c===7)if(b===-1||b===0||b===5)return}if(b===0){if(a.Db)return;var d;if(((d=a.ub)==null?0:d.Pt())&&!GR(a.X)){a.playVideo();return}}a.uJ!==b&&(a.uJ=b,a.Ua.Xm("onStateChange",b))};
    Nhb=function(a,b,c,d,e){d=d===void 0?Infinity:d;e=e===void 0?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n        videoId="+b.videoId});
        c=c||a.ub.getPlayerType();var f=Fhb(a,c,b,!0);f||(f=zhb(a,c,b));if(c===2&&a.sb){var h=f.getVideoData();a.sb.oy(h.clientPlaybackNonce,h.Cc||"",h.breakType||0,h.Sf,h.videoId||"")}a.nJ(f,d,0,e)};
    Ohb=function(a,b,c,d,e){var f="";f=a.X.L("html5_autonav_autoplay_in_preload_key")?U0(a,c,b):V0(a,c,b.videoId,b.od);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
        var h="";if(a.ub&&(h=a.X.L("html5_autonav_autoplay_in_preload_key")?U0(a,a.ub.getPlayerType(),a.ub.getVideoData()):V0(a,a.ub.getPlayerType(),a.ub.getVideoData().videoId,a.ub.getVideoData().od),f===h))return g.DX(a.ub,!0),b.dispose(),null;b.Dd=!0;b=zhb(a,c,b);c===1&&CR(a.X)||g.DX(b,!0);a.ey.set(f,b,d||3600);return b};
    Phb=function(a,b,c,d){var e=bB(c);return V0(a,b,e,d,c.autonav==="1"||c.autonav===!0,c.autoplay==="1"||c.autoplay===!0||c.autoplay===1)};
    U0=function(a,b,c){return V0(a,b,c.videoId,c.od,c.isAutonav,c.Gq)};
    V0=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;b=b+"_"+c+"_"+d;a.X.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
    Fhb=function(a,b,c,d){var e=a.X.L("html5_autonav_autoplay_in_preload_key")?U0(a,b,c):V0(a,b,c.videoId,c.od);var f=a.ey.get(e);if(!f||f.Na())return null;a.ey.remove(e);if(g.vF(f.getPlayerState(),128))return f.dispose(),null;if(f===g.sT(a,b))return a.Qb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;b===1&&T0(a);d||FX(a,f,!0);a.Qb.infoGel({isCacheHit:!0});return f};
    W0=function(a,b,c){c=g.sT(a,c);b&&c===a.sb&&(c.getVideoData().Qi=!0)};
    X0=function(a,b,c){c=c===void 0?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
        if(b.ue()){var d=a.Sz(c,b);a.cancelPlayback(4,c);FX(a,d);sgb(d);if(c===1){a.Hq(1);if(g.kR(a.X)&&!lYa(b)){b.dispose();g.ub(g.sT(a,c));return}Ehb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.ub(g.sT(a,c)),iYa(a.Od())&&c===2&&delete a.Ss[2]};
    Qhb=function(a,b,c,d,e){b=FYa(b,c,d,e);(c=g.kR(a.X)&&!a.X.ra)&&!a.wj&&(b.fetch=0);L0(a,b);g.kR(a.X)&&a.Qb.tick("ep_a_pr_s");if(c&&!a.wj)c=a.Od(),n0a(c,b).then(function(f){a.wT=!0;Dhb(a,f)});
    else a.playlist.onReady(function(){M0(a)});
        g.kR(a.X)&&a.Qb.tick("ep_a_pr_r")};
    M0=function(a,b){var c=g.kR(a.X)&&!a.X.ra,d=c&&b?b:g.bV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Dl&&(a.X.xi||a.X.zi)||!a.ox?(b=b.Qi,d=a.Eu(d,1),b&&W0(a,d)):X0(a,d,1));g.kR(a.X)&&a.Qb.tick("ep_p_l");a.wT=!1;a.Ua.Bc("onPlaylistUpdate")};
    yhb=function(a){if(a.playlist&&g.pR(a.X)&&a.JE()){var b=a.X.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
    Rhb=function(a,b,c,d,e,f,h){b={id:b,namespace:h!=null?h:"appapi"};f==="chapter"?(b.style=MI.CHAPTER_MARKER,b.visible=!0):isNaN(e)||(f==="ad"?b.style=MI.AD_MARKER:(b.style=MI.TIME_MARKER,b.color=e),b.visible=!0);a.vz([new g.NI(c*1E3,d*1E3,b)],1);return!0};
    Shb=function(a,b,c,d,e,f){f=f===void 0?!0:f;var h=a.Ze();if(!h)return f&&a.getVideoData().isLivePlayback&&a.cC.push({id:b,cfa:c,bfa:d}),!1;f=h-a.getCurrentTime();return Rhb(a,b,c-f,d-f,void 0,void 0,e)};
    Thb=function(a,b){a.cC=g.Pt(a.cC,function(f){return f.id!==b});
        for(var c=a.sb.il(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.sb.removeCueRange(e),F0(a,"cuerangesremoved",[e]),!0}return!1};
    Ihb=function(a,b,c){var d=g.sT(a,c);d&&(b=d.Bh.sf(b),c&&a.getPresentingPlayerType()!==c||F0(a,"cuerangesremoved",b))};
    Uhb=function(a){var b=(0,g.fC)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
    P0=function(a,b,c){a.X.Va&&(a.Ni=b,b.muted||Q0(a,!1),c&&a.X.storeUserVolume&&!a.X.Zc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.uB("yt-player-volume",c),g.uB("yt-player-volume",c,2592E3))),Vhb(a),c=g.GJ&&a.mediaElement&&!a.mediaElement.Ff(),a.X.Zc&&!c||a.Ua.Bc("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
    Vhb=function(a){var b=a.getVideoData();if(!b.Pk){b=a.X.Zc?1:gYa(b);var c=a.mediaElement;c.iC(a.Ni.muted);try{c.setVolume(a.Ni.volume*b/100)}catch(d){g.kE(new g.CB("b183742307","multiplier: "+b+", volume: "+a.Ni.volume))}}};
    Q0=function(a,b){b!==a.oB&&(a.oB=b,a.Ua.Bc("onMutedAutoplayChange",b))};
    g.rT=function(a){return a.oB&&a.getVideoData().mutedAutoplay};
    Whb=function(a){var b=hB(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Ib())?b:null};
    Yhb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.L("lock_fullscreen2")||a.X.Z)&&c&&c.lock&&(!g.GJ||!Xhb))if(b){b=c.type.indexOf("portrait")===0;var d=a.template.getVideoAspectRatio(),e=b;d<1?e=!0:d>1&&(e=!1);if(!a.xG||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){});
        a.xG=!0}}else a.xG&&(a.xG=!1,c.unlock())};
    F0=function(a,b,c){a.Ua.publish(b,c);var d=g.sI(a.X)||g.qR(a.X)||g.NF(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.ib(e,c.map(function(f){return{getId:function(){return this.id},
        end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
    Y0=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.sT(a,e);h&&(h.getPlayerType()===2&&!a.If(h)||g.RS(h.getVideoData()))||(a.getPresentingPlayerType()===3?BT(a.Qd).gG("control_seek",b,c):(h===a.sb&&a.Db&&!Ghb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
    whb=function(a,b,c){c&&(a.Lj(),E0(a));c=g.sT(a);c.Sd(new BJ("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?zS(d)&&g.qI(a.X)&&(e.live_utc_start=c.Ze(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Fa&&(e.vvt=d.Fa);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.un);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Bn&&(e.force_gvi=d.Bn);e.autoplay=1;e.reload_count=d.Dc+1;e.reload_reason=b;d.MC&&(e.unplugged_partner_opt_out=
        d.MC);d.sj&&(e.ypc_is_premiere_trailer=d.sj);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);b==="signature"&&a.xe&&Bhb(a)};
    Zhb=function(a,b){a.Od().autonavState=b;g.uB("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)};
    $hb=function(a){var b=a.getVideoData().Pk,c=a.X.rb,d=a.isInline()&&!a.getVideoData().QZ,e=a.mediaElement;b||c||d?e.VO():(e.ZO(),P0(a,a.Ni))};
    T0=function(a){var b=zV(a.zb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
    S0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.xe};
    aib=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.v(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Ns(a,d);b.hidden=!!a.hidden};
    U7a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Kw(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
    bib=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
    cib=function(){var a=null;Pra().then(function(b){return a=b},function(b){return a=bib(b)});
        return a};
    dib=function(){var a=pg(1E3,"NO_BID");return lg(jca([Pra(),a]).Jl(bib),function(){a.cancel()})};
    Z0=function(a){return a.Yd?g.AB(g.zB(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
    $0=function(a){this.player=a;this.C=this.j=1};
    gib=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=sA(c),h=g.zn(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.zn(c)?!1:!0;if(f||h||d!==""){var l={};c=nA(vA(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");n.length>1&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
        m.has("bid")&&(l.bid=m.get("bid"));l.params=[];eib.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
        fib(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;a!=null&&a!=="cosver"&&(b.client.osVersion=a);a=e.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(b.client.platform=a);a=e.j.cmodel;a!=null&&a!=="cmodel"&&(b.client.deviceModel=a);a=e.j.cplayer;a!=null&&a!=="cplayer"&&(b.client.playerType=a);e=e.j.cbrand;e!=null&&e!=="cbrand"&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
    jib=function(a,b){var c=!1;if(b==="")return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";d[0]==="!"&&(d=d.substring(1),h="INACTIVE");d=d.split("-");d.length<3||(d[0]in hib&&(f.clientName=hib[d[0]]),d[1]in iib&&(f.platform=iib[d[1]]),f.applicationState=h,f.clientVersion=d.length>2?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
        return c};
    lib=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in kib))return!1;a=a.split(RegExp("[:&]"));var b=kib.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<<Math.floor(b%31);for(var d=0,e=a.length;d<e;d++){var f=a[d].split("=");if(f[0]===c&&parseInt("0x"+f[1],16)&b)return!0}return!1};
    fib=function(a,b){if(g.sI(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.gA("INNERTUBE_CONTEXT");var c,d;(a==null?0:(c=a.adSignalsInfo)==null?0:c.advertisingId)&&typeof(a==null?void 0:(d=a.adSignalsInfo)==null?void 0:d.limitAdTracking)!=="undefined"&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
    tib=function(a,b,c,d,e){var f=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,h=mib.exec(b);h=h!=null&&h.length>=2?h[1]:"";var l=nib.test(b),m=oib.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=pib.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=qib.exec(b),q=p!=null&&p.length>=2?p[1]:"0",r=uR(a.player.U().Fa);p=a.player.getVideoData(1);var t=g.UF(p.Ca,!0),u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";gib(a,t,b,u.toString(),a.player.U());
        var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19898,autonavState:Z0(a.player.U())};d&&(d={},jib(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=rib.includes(r)?void 0:g.OA("PREF")){for(var A=d.split(RegExp("[:&]")),C=0,E=A.length;C<E;C++){var H=A[C].split("=");if((H[0].toUpperCase()==="SML"||H[0].toUpperCase()==="GSML")&&H.length>1&&H[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;
            break}}w.autoCaptionsDefaultOn=lib(d)}b=sib.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:nA(vA(u.toString())),overridePlaybackContext:b};e!==void 0&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=
            c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=oYa(p))&&(h.getAdBreakContext=a);return h};
    uib=function(){$0.apply(this,arguments)};
    vib=function(a,b,c,d,e){var f=c.Dw;c=c.Zd;var h=a.player.U().Bj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Ch:0,AUTONAV_STATE:Z0(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Fr()*1E3,LACT:zD(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.ob().Xh().height,P_W:a.player.ob().Xh().width,YT_REMOTE:h?h.join(","):
            ""},m=Qqa(Pqa);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())});
        d!==""&&(l.BISCOTTI_ID=d);d={};uA(b)&&(d.sts="19898",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return rA(g.av(b,l),d)};
    wib=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.JR(c,e).then(function(f){if(f&&tA()){var h=HT();IT(h,f)}return g.LG(a.player.Dm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
    xib=function(a){this.Oa=a};
    yib=function(a){this.J=a};
    zib=function(a){this.Oa=a};
    Bib=function(a){g.I.call(this);this.dh=a;this.O4=Aib(this)};
    Aib=function(a){var b=new BBa(a.dh.kd);g.M(a,b);a=g.v([new xib(a.dh.Oa),new yib(a.dh.J),new zib(a.dh.Oa),new xBa(a.dh.yl,a.dh.Fo),new zBa,new HBa(a.dh.df,a.dh.fl,a.dh.Oa),new yBa,new vBa]);for(var c=a.next();!c.done;c=a.next())CBa(b,c.value);a=g.v(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())cH(b,c.value,function(){});
        return b};
    a1=function(a){var b=a.Ra,c=a.Aa;a=a.Ne;var d=new gKa,e={Np:new KEa(b.get(),c),Aa:c};return{Pb:new DKa(c,a,b,e),context:e,Rg:d}};
    b1=function(a,b,c,d,e){g.I.call(this);this.J=a;this.B=b;this.Ha=c;this.Ra=d;this.Bf=e;this.listeners=[];var f=new pB(this);g.M(this,f);f.T(a,"internalAbandon",this.iG);this.addOnDisposeCallback(function(){g.rB(f)})};
    c1=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.D=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
    Cib=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.C="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.D=!1;a.B=!1};
    Dib=function(a,b){a=g.v(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){EG("ad_i");g.FG({isMonetized:!0});break}};
    d1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||b!=null&&b.ra)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),GG("video_to_ad",b)};
    cGa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});GG("ad_to_video",b);Eib(a)};
    Eib=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&a.C==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")CG("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new Rz;b=T(b,8,2);var c=new Sz;c=T(c,21,Fib(a.C));c=T(c,7,4);b=ik(c,Rz,22,b);b=T(b,53,a.videoStreamType);a.actionType==="ad_to_video"?(a.contentCpn&&S(b,76,a.contentCpn),a.videoId&&S(b,78,a.videoId)):(a.adCpn&&S(b,76,a.adCpn),a.adVideoId&&S(b,78,a.adVideoId));a.adFormat&&S(b,12,a.adFormat);a.contentCpn&&S(b,
        8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&S(b,28,a.adCpn);a.adVideoId&&S(b,20,a.adVideoId);g.kA(zG)(b,a.actionType)}else b={adBreakType:IK(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},a.actionType==="ad_to_video"?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
        a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.FG(b,a.actionType)};
    Fib=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
    e1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new pB(this);g.M(this,this.B);this.B.T(this.J,g.OI("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.PI("ad"),this.onCueRangeExit,this)};
    Gib=function(a,b,c,d,e){g.NI.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
    f1=function(a){this.J=a};
    g1=function(a){this.J=a};
    PK=function(a){return oM(a,"html5_ssap_fix_layout_exit")};
    Hib=function(a){return h1(a)&&oM(a,"html5_ssap_play_cached_preroll")};
    zM=function(a){return a.J.U().wc()&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")};
    h1=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.dT(b))!=null?c:!1};
    oM=function(a,b){return a.J.U().L(b)};
    Iib=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
    tM=function(a){var b,c,d;return((b=a.J.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1};
    TJa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
    Jib=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
    sIa=function(a){return a.J.U().experiments.fb("enable_desktop_player_underlay")};
    Kib=function(a){return a.J.U().experiments.fb("html5_load_empty_player_in_media_break_sub_lra")};
    QK=function(a){return a.J.U().experiments.fb("html5_load_ads_instead_of_cue")};
    RK=function(a){return a.J.U().experiments.fb("html5_preload_ads")};
    i1=function(a){return a.J.U().experiments.fb("html5_rebase_video_to_ad_timeline")};
    sKa=function(a){return a.J.U().experiments.fb("enable_ads_control_flow_deterministic_id_generation")};
    Lib=function(a){return a.J.U().experiments.fb("enable_desktop_discovery_video_abandon_pings")};
    Mib=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
        case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
    Nib=function(){g.DE.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.v(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
    j1=function(){if(Oib===null){Oib=new Nib;ds($u).B="b";var a=ds($u),b=Wu(a)=="h"||Wu(a)=="b",c=!(is(),!1);b&&c&&(a.D=!0,a.G=new Dja)}return Oib};
    Pib=function(a,b,c){a.j[b]=c};
    Qib=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
        case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip";
        case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
    k1=function(a,b,c){this.Ha=a;this.J=b;this.Aa=c;this.B=new Set;this.j=new Map;j1().subscribe("adactiveviewmeasurable",this.Mx,this);j1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Lx,this);j1().subscribe("adviewableimpression",this.Nx,this);j1().subscribe("adaudioaudible",this.Jx,this);j1().subscribe("adaudiomeasurable",this.Kx,this)};
    m1=function(a,b,c){var d=c.Zs,e=c.QH,f=c.listener,h=c.V6;c=c.Pm===void 0?!1:c.Pm;if(a.j.has(b))tF("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);Ir(is().Kc,"fmd",1);Qka(ds($u),d);var l=c?b:void 0;Pib(j1(),b,{zP:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ha.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:l1(a.Ha.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0,
            volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}})}};
    n1=function(a,b){a.j.has(b)?(a.j.delete(b),delete j1().j[b]):tF("Unexpected unregistration of layout in LidarApi")};
    Tib=function(a,b,c){var d={};Rib(a,d,b,c);Sib(d);d.LACT=o1(function(){return zD().toString()});
        d.VIS=o1(function(){return a.getVisibilityState().toString()});
        d.SDKV="h.3.0";d.VOL=o1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
        d.VED="";return d};
    Uib=function(a,b){var c={};if(b)return c;if(!a.kind)return g.jE(Error("AdPlacementConfig without kind")),c;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.jE(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=o1(Id(Math.round(df(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=o1(Id("0"));return c};
    o1=function(a){return{toString:function(){return a()}}};
    Vib=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
        function e(l,m){(m=c[m])&&(f[l]=h(m))}
        if(!c||g.gd(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
        e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
    Rib=function(a,b,c,d){b.CPN=o1(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.kE(Error("Video data is null.")),e=null);return e});
        b.AD_MT=o1(function(){if(d!=null)var e=d;else{var f=c;a.U().L("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?Wib(a,h,f):0}else e=Wib(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()});
        b.MT=o1(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()});
        b.P_H=o1(function(){return a.ob().Xh().height.toString()});
        b.P_W=o1(function(){return a.ob().Xh().width.toString()});
        b.PV_H=o1(function(){return a.ob().getVideoContentRect().height.toString()});
        b.PV_W=o1(function(){return a.ob().getVideoContentRect().width.toString()})};
    Sib=function(a){a.CONN=o1(Id("0"));a.WT=o1(function(){return Date.now().toString()})};
    Wib=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)};
    Xib=function(){};
    Yib=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,w,A,C,E;g.G(function(H){switch(H.j){case 1:f=!!b.scrubReferrer;h=g.av(b.baseUrl,Vib(c,f,d));l={};if(!b.headers){H.Ia(2);break}m=a.D();if(!m.j){n=m.getValue();H.Ia(3);break}return g.z(H,m.j,4);case 4:n=H.B;case 3:p=n;q=g.v(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.gA("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.gA("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.gA("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
        g.gA("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(u=a.G())&&(l["X-Goog-PageId"]=u);break;case "AUTH_USER":w=a.B();!p&&w&&(l["X-Goog-AuthUser"]=w);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":A=void 0;((A=a.j())==null?0:A.fb("clean_up_manual_attribution_header"))||(l["Attribution-Reporting-Eligible"]="event-source");break;case "DATASYNC_ID":if(C=void 0,(C=a.j())==null?0:C.fb("enable_datasync_id_header_in_web_vss_pings"))E=a.C(),sA(h)&&g.gA("LOGGED_IN")&&
    E&&(l["X-Yt-DataSync-Id"]=E)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.$C(h,void 0,f,Object.keys(l).length!==0?l:void 0,"",!0,e),g.Aa(H)}})};
    Zib=function(a,b,c,d,e){this.D=a;this.G=b;this.B=c;this.C=d;this.j=e};
    $ib=function(a,b){this.j=a;this.Aa=b};
    p1=function(a,b,c,d,e,f,h){var l=l===void 0?new Zib(function(){var m=a.U(),n=a.getVideoData(1);return g.JR(m,n?g.bT(n):"")},function(){return a.U().pageId},function(){return a.U().Ca},function(){var m;
        return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l;
        this.J=a;this.B=b;this.xb=c;this.Ra=d;this.Pb=e;this.Aa=f;this.Rg=h;this.D=l;this.xC=null;this.j=new Map;this.C=new $ib(l,this.Aa)};
    bjb=function(a,b,c,d,e){var f=fKa(a.B.get(),c);f?(c=dJ(a,ajb(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):tF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
    BDa=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=fKa(a.B.get(),b);if(h){var l=a.xb.get().Ph(b,c),m=dJ(a,ajb(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Pb.Vr("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new kHa(n,p),void 0,void 0,h.adLayoutLoggingData))})}else tF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
        trackingType:c})};
    cL=function(a,b){g.SB("adsClientStateChange",b)};
    cjb=function(a,b){a.j.has(b.Nw())?tF("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Nw(),b)};
    djb=function(a,b){a.j.delete(b.Nw())||tF("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
    dL=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).WB(b,c):a.J.getVideoData(1).ma(b,c)};
    ajb=function(a){var b=cI(a.Ba,"metadata_type_ad_placement_config");a=cI(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,j_:a}};
    dJ=function(a,b,c,d,e,f){var h=c?ejb(a):{},l=c?fjb(a,c.layoutId):{},m=gjb(a),n,p=e!=null?e:(n=a.Ra.get().ge(2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ra.get().ge(1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Rg.j.get(c.layoutId))==null?0:q.Pm)e=c.layoutId}q={};a=Object.assign({},Tib(a.J,e,d),Uib(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=o1(function(){return"1"}),q.AD_CPN=o1(function(){return p||
        ""}),q));
        (c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=o1(function(){return(b.j_||0).toString()}));
        c={};f=Object.assign({},a,f);a=g.v(Object.values(hjb));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],h!=null&&h.toString()!=null&&(c[d]=h.toString());return c};
    ejb=function(a){var b={},c,d=(c=a.xC)==null?void 0:c.hj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=o1(function(){return Math.round(d*1E3).toString()}));
        b.SURVEY_LOCAL_TIME_EPOCH_S=o1(function(){return Math.round(Date.now()/1E3).toString()});
        return b};
    fjb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.oP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.OM.toString(),b.ERRORCODE=a.PH.toString(),b.ERROR_MSG=a.errorMessage,b};
    gjb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=o1(function(){var d;return(d=c==null?void 0:c.Hv)!=null?d:null});
        b.EI=o1(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null});
        return b};
    q1=function(a,b,c){g.I.call(this);this.J=a;this.Ls=b;this.Aa=c;this.listeners=[];this.UQ=null;this.TN=new Map;b=new g.IJ(this);g.M(this,b);b.T(a,"videodatachange",this.Bca);b.T(a,"serverstitchedvideochange",this.eca);this.Ew=this.ge()};
    ijb=function(a,b,c){var d=a.BI(b,c);a.Ew=d;a.listeners.forEach(function(e){e.iL(d)})};
    uJ=function(a,b,c){a.J.getVideoData(1).ma(b,c)};
    jjb=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5}};
    r1=function(a,b,c){g.I.call(this);this.J=a;this.Ra=b;this.Aa=c;this.listeners=[];this.fE=[];this.j=function(){tF("Called 'doUnlockPreroll' before it's initialized.")};
        b=new pB(this);c=new g.IJ(this);g.M(this,c);g.M(this,b);b.T(a,"progresssync",this.Eba);b.T(a,"presentingplayerstatechange",this.vba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.nh);b.T(a,"overlayvisibilitychange",this.Fj);b.T(a,"shortsadswipe",this.Hj);b.T(a,"resize",this.kc);c.T(a,g.OI("appad"),this.Ej)};
    s1=function(a){h1(a.Aa.get())||a.j()};
    kjb=function(a,b){a.fE=a.fE.filter(function(c){return c!==b})};
    t1=function(a,b,c){return a.getCurrentTimeSec(b,c)};
    ljb=function(a,b){var c;b=(c=a.Ra.get().TN.get(b))!=null?c:null;if(b===null)return tF("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
    l1=function(a,b){return a.J.getPlayerStateObject(b)};
    mjb=function(a){var b=a.J.ob().Xh();a=a.J.Vn(!0,!0);return b.height-(a.height+a.top)};
    njb=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
    IFa=function(a,b){var c=a.J.U();g.oR(c)||c.controlsType!=="3"||a.J.ob().dM(b)};
    u1=function(a,b){g.Hv(a.J.getRootNode(),b)};
    v1=function(a,b){g.Jv(a.J.getRootNode(),b)};
    ojb=function(a,b,c,d,e){g.I.call(this);var f=this,h=AI(function(){return new QM(f.Aa)});
        g.M(this,h);var l=AI(function(){return new RM(h,f.Aa)});
        g.M(this,l);var m=AI(function(){return new AM});
        g.M(this,m);d=AI(function(){return new xM(a)});
        g.M(this,d);var n=AI(function(){return new SM(h,l,f.Aa)});
        g.M(this,n);var p=AI(function(){return new VM});
        g.M(this,p);this.Lb=AI(function(){return new BI(e)});
        g.M(this,this.Lb);this.Ac=AI(function(){return new c1(b)});
        g.M(this,this.Ac);this.Oc=AI(function(){return new e1(b)});
        g.M(this,this.Oc);this.kd=AI(function(){return new f1(b)});
        g.M(this,this.kd);this.Aa=AI(function(){return new g1(b)});
        g.M(this,this.Aa);var q=AI(function(){return new iI(f.Aa)});
        g.M(this,q);var r=AI(function(){return new qM(h,n,l,f.Aa,q,null,null,null)});
        g.M(this,r);this.Ra=AI(function(){return new q1(b,p,f.Aa)});
        g.M(this,this.Ra);var t=a1({Ra:this.Ra,Aa:this.Aa,Ne:q}),u=t.context,w=t.Rg;this.Pb=t.Pb;this.Ha=AI(function(){return new r1(b,f.Ra,f.Aa)});
        g.M(this,this.Ha);this.xb=AI(function(){return new k1(f.Ha,b,f.Aa)});
        g.M(this,this.xb);this.Oa=AI(function(){return new p1(b,m,f.xb,f.Ra,f.Pb,f.Aa,w)});
        g.M(this,this.Oa);this.Rd=new wM(d,r,c,this.Aa,a,this.Ra,this.Ha,this.Ac);g.M(this,this.Rd);var A=new b1(b,this.Rd,this.Ha,this.Ra);this.yh=AI(function(){return A});
        this.Qx=A;this.Gg=new yM(d,n,this.Oc,this.yh,u);g.M(this,this.Gg);this.Ud=new bM(this.Aa,d,n,r,this.Ra,this.Gg,c);g.M(this,this.Ud);this.oh={CB:new Map,Lt:new Map,qn:new Map,fv:new Map,Bu:new Map};this.listeners=[];this.WA={Ud:this.Ud,fl:this.Aa.get(),kb:this.Lb.get(),KB:this.Ha.get(),Rd:this.Rd,ax:h.get(),KF:null,Fo:{ZP:function(){}},
            yl:m.get(),df:this.Ra.get()}};
    w1=function(a,b){g.I.call(this);this.Do=b;this.Do.get().addListener(this)};
    x1=function(a){this.j=a};
    pjb=function(a,b){if(!a)return{lw:[],adSlots:[],yC:!0,ssdaiAdsConfig:void 0};a.trackingParams&&CO(a.trackingParams);if(a.adThrottled)return{lw:[],adSlots:[],yC:!0,ssdaiAdsConfig:void 0};var c,d=(c=a.adSlots)!=null?c:[],e;c=(e=a.playerAds)!=null?e:[];if(!(c&&c.length||d.length))return{lw:[],adSlots:d,yC:!1,ssdaiAdsConfig:void 0};e=c.map(function(h){return h.adPlacementRenderer}).filter(function(h){return!(!h||!h.renderer)});
        if(!e.length&&!d.length)return{lw:[],adSlots:d,yC:!1,ssdaiAdsConfig:void 0};if(b.end>0){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&h.adTimeOffset&&h.adTimeOffset.offsetEndMilliseconds==="-1"&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)});
            d.map(function(h){return g.V(h,cM)}).forEach(function(h){var l;
                (h=h==null?void 0:(l=h.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&h.offsetEndMilliseconds==="-1"&&(h.offsetEndMilliseconds=f)})}return{lw:e,
            adSlots:d,yC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
    y1=function(a){g.I.call(this);this.J=a;this.listeners=[];this.j=new pB(this);g.M(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.tR);this.j.T(this.J,"aduxmouseout",this.sR);this.j.T(this.J,"muteadaccepted",this.baa)};
    qjb=function(a,b,c){b=g.as(b,function(d){return new Vya(d,c,d.id)});
        a.J.ib("onAdUxUpdate",b)};
    z1=function(a,b){a=g.v(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
    A1=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}};
    rjb=function(a,b){var c=a.startSecs+a.Ch;c=c<=0?null:c;if(c===null)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{N7:new Vv(b,c),Z9:new qP(b,c-b,a.context,a.identifier,a.event,a.j)}};
    sjb=function(){this.j=[]};
    oGa=function(a,b,c){var d=g.Qb(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
    B1=function(a,b,c){g.I.call(this);this.J=a;this.Aa=b;this.Oa=c;this.listeners=[];this.D=!1;this.zM=[];this.B=null;this.G=new A1(this,Jib(b.get()));this.C=new sjb;this.j=null};
    tjb=function(a,b){a.zM.push(b);for(var c=!1,d=g.v(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.O_(b)||c;a.D=c};
    vjb=function(a,b){cL(a.Oa.get(),{cuepointTrigger:{event:ujb(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Ch*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
    ujb=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")}};
    C1=function(a){this.J=a};
    wjb=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
    D1=function(a){this.J=a};
    E1=function(a){this.J=a};
    xjb=function(a){this.J=a};
    yjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=AI(function(){return new QM(f.Aa)});
        g.M(this,h);var l=AI(function(){return new RM(h,f.Aa)});
        g.M(this,l);var m=AI(function(){return new AM});
        g.M(this,m);var n=AI(function(){return new xM(a)});
        g.M(this,n);var p=AI(function(){return new SM(h,l,f.Aa)});
        g.M(this,p);var q=AI(function(){return new VM});
        g.M(this,q);this.Ec=AI(function(){return new y1(b)});
        g.M(this,this.Ec);this.Lb=AI(function(){return new BI(e)});
        g.M(this,this.Lb);this.Ac=AI(function(){return new c1(b)});
        g.M(this,this.Ac);this.Oc=AI(function(){return new e1(b)});
        g.M(this,this.Oc);this.fd=AI(function(){return new C1(b)});
        g.M(this,this.fd);this.kd=AI(function(){return new f1(b)});
        g.M(this,this.kd);this.Aa=AI(function(){return new g1(b)});
        g.M(this,this.Aa);var r=AI(function(){return new x1(d)});
        g.M(this,r);var t=AI(function(){return new iI(f.Aa)});
        g.M(this,t);this.Xf=AI(function(){return new D1(b)});
        g.M(this,this.Xf);this.Do=AI(function(){return new EI});
        g.M(this,this.Do);this.Ra=AI(function(){return new q1(b,q,f.Aa)});
        g.M(this,this.Ra);var u=a1({Ra:this.Ra,Aa:this.Aa,Ne:t}),w=u.context,A=u.Rg;this.Pb=u.Pb;this.Bf=AI(function(){return new B1(b,f.Aa,f.Oa)});
        g.M(this,this.Bf);this.zc=AI(function(){return new E1(b)});
        g.M(this,this.zc);this.Ha=AI(function(){return new r1(b,f.Ra,f.Aa)});
        g.M(this,this.Ha);u=AI(function(){return new qM(h,p,l,f.Aa,t,"SLOT_TYPE_ABOVE_FEED",f.Ha,f.bk)});
        g.M(this,u);this.hf=AI(function(){return new FI});
        this.xb=AI(function(){return new k1(f.Ha,b,f.Aa)});
        g.M(this,this.xb);this.Oa=AI(function(){return new p1(b,m,f.xb,f.Ra,f.Pb,f.Aa,A)});
        g.M(this,this.Oa);this.Gk=new vM($Ja,F1,function(E,H,L,N){return iM(l.get(),E,H,L,N)},n,p,l,t,this.Aa,this.Ra);
        g.M(this,this.Gk);this.Rd=new wM(n,u,c,this.Aa,a,this.Ra,this.Ha,this.Ac);g.M(this,this.Rd);var C=new b1(b,this.Rd,this.Ha,this.Ra,this.Bf);this.yh=AI(function(){return C});
        this.Qx=C;this.bk=new sM(n,p,this.yh,this.Bf,this.Ha,this.Aa,this.Oa,this.zc);g.M(this,this.bk);this.Gg=new yM(n,p,this.Oc,this.yh,w);g.M(this,this.Gg);this.Ud=new bM(this.Aa,n,p,u,this.Ra,this.Gg,c);g.M(this,this.Ud);this.Uj=AI(function(){return new QI(r,l,t,f.Aa,f.Oa,f.Ha,f.zc)});
        g.M(this,this.Uj);this.Xe=AI(function(){return new RI});
        g.M(this,this.Xe);this.Xg=new EM(a,this.Ec,this.Aa);g.M(this,this.Xg);this.Zb=new FM(a);g.M(this,this.Zb);this.zw=new GM(a);g.M(this,this.zw);this.Ah=new IM(a,this.yh,w);g.M(this,this.Ah);this.Cf=new JM(a,this.Oc,this.Ha,this.Ra,w);g.M(this,this.Cf);this.yx=new KM(a,this.Ra);g.M(this,this.yx);this.Me=new LM(a);g.M(this,this.Me);this.Ld=new OM(a);g.M(this,this.Ld);this.Dk=new MM(a);g.M(this,this.Dk);this.Ky=new NM(a);g.M(this,this.Ky);this.Ld=new OM(a);g.M(this,this.Ld);this.Re=AI(function(){return new BM});
        g.M(this,this.Re);this.Hk=AI(function(){return new CM(f.Ha)});
        g.M(this,this.Hk);this.FW=AI(function(){return new hEa(f.Ec,f.Oa,a,m,f.xb)});
        g.M(this,this.FW);this.Tj=AI(function(){return new kJ(f.Ud,n,h)});
        g.M(this,this.Tj);this.fk=AI(function(){return new mJ(f.Aa,f.Oa,f.Me,f.xb)});
        g.M(this,this.fk);this.Fk=AI(function(){return new OGa(a,f.Ld,f.Me,f.Ra,f.zc,f.Ha,f.Oa,q,f.Bf,f.xb,f.hf,f.fd,f.Oc,f.Ac,f.kd,f.Lb,f.Xf,f.Aa,m,w,A)});
        g.M(this,this.Fk);this.sS=AI(function(){return new AEa(f.Ha,f.Oa,f.Aa,f.xb)});
        g.M(this,this.sS);this.du=AI(function(){return new YGa(f.Ec,f.Ha,f.Oa,m,f.xb,f.zw,f.Ky,f.Lb,f.Aa,c)});
        g.M(this,this.du);this.R2=AI(function(){return new jEa(f.Ec)});
        g.M(this,this.R2);this.PN=new w1(a,this.Do,h);g.M(this,this.PN);this.oh={CB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.bk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Lt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["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]]),qn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",
                this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Zb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.zw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Cf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
                this.Cf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Cf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Cf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.yx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.yx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
                this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Dk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Ky],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ld]]),fv: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.Hk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Re],["SLOT_TYPE_PLAYBACK_TRACKING",this.Re],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Re]]),Bu:new Map([["SLOT_TYPE_ABOVE_FEED",
                this.FW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Tj],["SLOT_TYPE_FORECASTING",this.fk],["SLOT_TYPE_PLAYER_BYTES",this.Fk],["SLOT_TYPE_PLAYBACK_TRACKING",this.sS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.sS],["SLOT_TYPE_IN_PLAYER",this.du],["SLOT_TYPE_PLAYER_UNDERLAY",this.R2]])};this.listeners=[m.get()];this.WA={Ud:this.Ud,fl:this.Aa.get(),kb:this.Lb.get(),KB:this.Ha.get(),Rd:this.Rd,ax:h.get(),KF:this.Do.get(),Fo:this.Xg,yl:m.get(),df:this.Ra.get()}};
    zjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=AI(function(){return new QM(f.Aa)});
        g.M(this,h);var l=AI(function(){return new RM(h,f.Aa)});
        g.M(this,l);var m=AI(function(){return new AM});
        g.M(this,m);var n=AI(function(){return new xM(a)});
        g.M(this,n);var p=AI(function(){return new SM(h,l,f.Aa)});
        g.M(this,p);var q=AI(function(){return new VM});
        g.M(this,q);this.Ec=AI(function(){return new y1(b)});
        g.M(this,this.Ec);this.Lb=AI(function(){return new BI(e)});
        g.M(this,this.Lb);this.Ac=AI(function(){return new c1(b)});
        g.M(this,this.Ac);this.Oc=AI(function(){return new e1(b)});
        g.M(this,this.Oc);this.fd=AI(function(){return new C1(b)});
        g.M(this,this.fd);this.kd=AI(function(){return new f1(b)});
        g.M(this,this.kd);this.Aa=AI(function(){return new g1(b)});
        g.M(this,this.Aa);var r=AI(function(){return new x1(d)});
        g.M(this,r);var t=AI(function(){return new iI(f.Aa)});
        g.M(this,t);var u=AI(function(){return new qM(h,p,l,f.Aa,t,null,null,f.bk)});
        g.M(this,u);this.Xf=AI(function(){return new D1(b)});
        g.M(this,this.Xf);this.Do=AI(function(){return new EI});
        g.M(this,this.Do);this.Ra=AI(function(){return new q1(b,q,f.Aa)});
        g.M(this,this.Ra);var w=a1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context,C=w.Rg;this.Pb=w.Pb;this.Bf=AI(function(){return new B1(b,f.Aa,f.Oa)});
        this.Ha=AI(function(){return new r1(b,f.Ra,f.Aa)});
        g.M(this,this.Ha);this.xb=AI(function(){return new k1(f.Ha,b,f.Aa)});
        g.M(this,this.xb);this.Oa=AI(function(){return new p1(b,m,f.xb,f.Ra,f.Pb,f.Aa,C)});
        g.M(this,this.Oa);this.hf=AI(function(){return new FI});
        g.M(this,this.hf);this.Gk=new vM($Ja,F1,function(H,L,N,Q){return iM(l.get(),H,L,N,Q)},n,p,l,t,this.Aa,this.Ra);
        g.M(this,this.Gk);this.Rd=new wM(n,u,c,this.Aa,a,this.Ra,this.Ha,this.Ac);g.M(this,this.Rd);var E=new b1(b,this.Rd,this.Ha,this.Ra,this.Bf);this.yh=AI(function(){return E});
        this.Qx=E;this.bk=new sM(n,p,this.yh,this.Bf,this.Ha,this.Aa,this.Oa);g.M(this,this.bk);this.Gg=new yM(n,p,this.Oc,this.yh,A);g.M(this,this.Gg);this.Ud=new bM(this.Aa,n,p,u,this.Ra,this.Gg,c);g.M(this,this.Ud);this.Uj=AI(function(){return new QI(r,l,t,f.Aa,f.Oa,f.Ha)});
        g.M(this,this.Uj);this.Xe=AI(function(){return new RI});
        g.M(this,this.Xe);this.Xg=new EM(a,this.Ec,this.Aa);g.M(this,this.Xg);this.Zb=new FM(a);g.M(this,this.Zb);this.zw=new GM(a);g.M(this,this.zw);this.Ah=new IM(a,this.yh,A);g.M(this,this.Ah);this.Cf=new JM(a,this.Oc,this.Ha,this.Ra,A);g.M(this,this.Cf);this.Me=new LM(a);g.M(this,this.Me);this.Dk=new MM(a);g.M(this,this.Dk);this.Ky=new NM(a);g.M(this,this.Ky);this.zc=AI(function(){return new E1(b)});
        g.M(this,this.zc);this.Ld=new OM(a);g.M(this,this.Ld);this.Re=AI(function(){return new BM});
        g.M(this,this.Re);this.Hk=AI(function(){return new CM(f.Ha)});
        g.M(this,this.Hk);this.Tj=AI(function(){return new kJ(f.Ud,n,h)});
        g.M(this,this.Tj);this.fk=AI(function(){return new mJ(f.Aa,f.Oa,f.Me,f.xb)});
        g.M(this,this.fk);this.du=AI(function(){return new ZGa(f.Ec,f.Ha,f.Oa,m,f.xb,f.zw,f.Ky,f.Lb,f.Aa,c)});
        g.M(this,this.du);this.Fk=AI(function(){return new fL(a,f.Ld,f.Me,f.Oa,f.xb,f.hf,f.fd,f.Ra,f.Ha,f.Oc,f.Ac,f.kd,f.Lb,f.Xf,f.Aa,f.zc,A,C)});
        g.M(this,this.Fk);this.PN=new w1(a,this.Do,h);g.M(this,this.PN);this.oh={CB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.bk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Lt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],
                ["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),qn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],
                ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Zb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.zw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Dk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
                    this.Ky],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ld]]),fv: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.Hk]]),Bu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tj],["SLOT_TYPE_FORECASTING",this.fk],["SLOT_TYPE_IN_PLAYER",this.du],["SLOT_TYPE_PLAYER_BYTES",this.Fk]])};this.listeners=[m.get()];this.WA={Ud:this.Ud,fl:this.Aa.get(),kb:this.Lb.get(),KB:this.Ha.get(),Rd:this.Rd,ax:h.get(),KF:this.Do.get(),Fo:this.Xg,
            yl:m.get(),df:this.Ra.get()}};
    Ajb=function(a,b,c,d,e){g.I.call(this);var f=this,h=AI(function(){return new QM(f.Aa)});
        g.M(this,h);var l=AI(function(){return new RM(h,f.Aa)});
        g.M(this,l);var m=AI(function(){return new AM});
        g.M(this,m);var n=AI(function(){return new xM(a)});
        g.M(this,n);var p=AI(function(){return new SM(h,l,f.Aa)});
        g.M(this,p);var q=AI(function(){return new VM});
        g.M(this,q);this.Ec=AI(function(){return new y1(b)});
        g.M(this,this.Ec);this.Lb=AI(function(){return new BI(e)});
        g.M(this,this.Lb);this.Ac=AI(function(){return new c1(b)});
        g.M(this,this.Ac);this.Oc=AI(function(){return new e1(b)});
        g.M(this,this.Oc);this.fd=AI(function(){return new C1(b)});
        g.M(this,this.fd);this.kd=AI(function(){return new f1(b)});
        g.M(this,this.kd);this.Aa=AI(function(){return new g1(b)});
        g.M(this,this.Aa);var r=AI(function(){return new x1(d)});
        g.M(this,r);var t=AI(function(){return new iI(f.Aa)});
        g.M(this,t);var u=AI(function(){return new qM(h,p,l,f.Aa,t,null,null,null)});
        g.M(this,u);this.Xf=AI(function(){return new D1(b)});
        g.M(this,this.Xf);this.Ra=AI(function(){return new q1(b,q,f.Aa)});
        g.M(this,this.Ra);var w=a1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context,C=w.Rg;this.Pb=w.Pb;this.Ha=AI(function(){return new r1(b,f.Ra,f.Aa)});
        g.M(this,this.Ha);this.xb=AI(function(){return new k1(f.Ha,b,f.Aa)});
        g.M(this,this.xb);this.Oa=AI(function(){return new p1(b,m,f.xb,f.Ra,f.Pb,f.Aa,C)});
        g.M(this,this.Oa);this.hf=AI(function(){return new FI});
        g.M(this,this.hf);this.Gk=new vM($Ja,F1,function(H,L,N,Q){return iM(l.get(),H,L,N,Q)},n,p,l,t,this.Aa,this.Ra);
        g.M(this,this.Gk);this.Rd=new wM(n,u,c,this.Aa,a,this.Ra,this.Ha,this.Ac);g.M(this,this.Rd);var E=new b1(b,this.Rd,this.Ha,this.Ra);this.yh=AI(function(){return E});
        this.Qx=E;this.Gg=new yM(n,p,this.Oc,this.yh,A);g.M(this,this.Gg);this.Ud=new bM(this.Aa,n,p,u,this.Ra,this.Gg,c);g.M(this,this.Ud);this.Uj=AI(function(){return new QI(r,l,t,f.Aa,f.Oa,f.Ha)});
        g.M(this,this.Uj);this.Xe=AI(function(){return new RI});
        g.M(this,this.Xe);this.Xg=new EM(a,this.Ec,this.Aa);g.M(this,this.Xg);this.Zb=new FM(a);g.M(this,this.Zb);this.Ah=new IM(a,this.yh,A);g.M(this,this.Ah);this.Cf=new JM(a,this.Oc,this.Ha,this.Ra,A);g.M(this,this.Cf);this.Me=new LM(a);g.M(this,this.Me);this.Dk=new MM(a);g.M(this,this.Dk);this.zc=AI(function(){return new E1(b)});
        g.M(this,this.zc);this.Ld=new OM(a);g.M(this,this.Ld);this.Re=AI(function(){return new BM});
        g.M(this,this.Re);this.Hk=AI(function(){return new CM(f.Ha)});
        g.M(this,this.Hk);this.Tj=AI(function(){return new kJ(f.Ud,n,h)});
        g.M(this,this.Tj);this.fk=AI(function(){return new mJ(f.Aa,f.Oa,f.Me,f.xb)});
        g.M(this,this.fk);this.t0=AI(function(){return new xEa(f.Ec,f.Ha,f.Oa,m,c,f.Aa)});
        g.M(this,this.t0);this.Fk=AI(function(){return new fL(a,f.Ld,f.Me,f.Oa,f.xb,f.hf,f.fd,f.Ra,f.Ha,f.Oc,f.Ac,f.kd,f.Lb,f.Xf,f.Aa,f.zc,A,C)});
        g.M(this,this.Fk);this.oh={CB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Lt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),qn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
                this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
                this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Dk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ld]]),fv: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.Hk]]),Bu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tj],["SLOT_TYPE_FORECASTING",this.fk],["SLOT_TYPE_IN_PLAYER",
                this.t0],["SLOT_TYPE_PLAYER_BYTES",this.Fk]])};this.listeners=[m.get()];this.WA={Ud:this.Ud,fl:this.Aa.get(),kb:this.Lb.get(),KB:this.Ha.get(),Rd:this.Rd,ax:h.get(),KF:null,Fo:this.Xg,yl:m.get(),df:this.Ra.get()}};
    Bjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=AI(function(){return new QM(f.Aa)});
        g.M(this,h);var l=AI(function(){return new RM(h,f.Aa)});
        g.M(this,l);var m=AI(function(){return new AM});
        g.M(this,m);var n=AI(function(){return new xM(a)});
        g.M(this,n);var p=AI(function(){return new SM(h,l,f.Aa)});
        g.M(this,p);var q=AI(function(){return new VM});
        g.M(this,q);this.Cn=AI(function(){return new xjb(b)});
        g.M(this,this.Cn);this.Ec=AI(function(){return new y1(b)});
        g.M(this,this.Ec);this.Lb=AI(function(){return new BI(e)});
        g.M(this,this.Lb);this.Ac=AI(function(){return new c1(b)});
        g.M(this,this.Ac);this.Oc=AI(function(){return new e1(b)});
        g.M(this,this.Oc);this.fd=AI(function(){return new C1(b)});
        g.M(this,this.fd);this.kd=AI(function(){return new f1(b)});
        g.M(this,this.kd);this.Aa=AI(function(){return new g1(b)});
        g.M(this,this.Aa);var r=AI(function(){return new x1(d)});
        g.M(this,r);var t=AI(function(){return new iI(f.Aa)});
        g.M(this,t);var u=AI(function(){return new qM(h,p,l,f.Aa,t,null,null,null)});
        g.M(this,u);this.Xf=AI(function(){return new D1(b)});
        g.M(this,this.Xf);this.Ra=AI(function(){return new q1(b,q,f.Aa)});
        g.M(this,this.Ra);var w=a1({Ra:this.Ra,Aa:this.Aa,Ne:t}),A=w.context,C=w.Rg;this.Pb=w.Pb;this.Ha=AI(function(){return new r1(b,f.Ra,f.Aa)});
        g.M(this,this.Ha);this.xb=AI(function(){return new k1(f.Ha,b,f.Aa)});
        g.M(this,this.xb);this.Oa=AI(function(){return new p1(b,m,f.xb,f.Ra,f.Pb,f.Aa,C)});
        g.M(this,this.Oa);this.hf=AI(function(){return new FI});
        g.M(this,this.hf);this.Gk=new vM(bKa,F1,function(H,L,N,Q){return vKa(l.get(),H,L,N,Q)},n,p,l,t,this.Aa,this.Ra);
        g.M(this,this.Gk);this.Rd=new wM(n,u,c,this.Aa,a,this.Ra,this.Ha,this.Ac);g.M(this,this.Rd);var E=new b1(b,this.Rd,this.Ha,this.Ra);this.yh=AI(function(){return E});
        this.Qx=E;this.Gg=new yM(n,p,this.Oc,this.yh,A);g.M(this,this.Gg);this.Ud=new bM(this.Aa,n,p,u,this.Ra,this.Gg,c);g.M(this,this.Ud);this.Uj=AI(function(){return new QI(r,l,t,f.Aa,f.Oa,f.Ha)});
        g.M(this,this.Uj);this.Xe=AI(function(){return new RI});
        g.M(this,this.Xe);this.Xg=new EM(a,this.Ec,this.Aa);g.M(this,this.Xg);this.Zb=new FM(a);g.M(this,this.Zb);this.Ah=new IM(a,this.yh,A);g.M(this,this.Ah);this.Cf=new JM(a,this.Oc,this.Ha,this.Ra,A);g.M(this,this.Cf);this.Me=new LM(a);g.M(this,this.Me);this.Dk=new MM(a);g.M(this,this.Dk);this.zc=AI(function(){return new E1(b)});
        g.M(this,this.zc);this.Ld=new OM(a);g.M(this,this.Ld);this.Re=AI(function(){return new BM});
        g.M(this,this.Re);this.Hk=AI(function(){return new CM(f.Ha)});
        g.M(this,this.Hk);this.Tj=AI(function(){return new kJ(f.Ud,n,h)});
        g.M(this,this.Tj);this.fk=AI(function(){return new mJ(f.Aa,f.Oa,f.Me,f.xb)});
        g.M(this,this.fk);this.Fk=AI(function(){return new fL(a,f.Ld,f.Me,f.Oa,f.xb,f.hf,f.fd,f.Ra,f.Ha,f.Oc,f.Ac,f.kd,f.Lb,f.Xf,f.Aa,f.zc,A,C)});
        g.M(this,this.Fk);this.t3=AI(function(){return new aHa(f.Ec,f.Ha,f.Oa,m,f.Cn,c,f.Ra)});
        g.M(this,this.t3);this.oh={CB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Lt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),qn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
                this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
                this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Dk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ld]]),fv: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.Hk]]),Bu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tj],["SLOT_TYPE_FORECASTING",this.fk],["SLOT_TYPE_IN_PLAYER",this.t3],["SLOT_TYPE_PLAYER_BYTES",
                this.Fk]])};this.listeners=[m.get()];this.WA={Ud:this.Ud,fl:this.Aa.get(),kb:this.Lb.get(),KB:this.Ha.get(),Rd:this.Rd,ax:h.get(),KF:null,Fo:this.Xg,yl:m.get(),df:this.Ra.get()}};
    Cjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=AI(function(){return new QM(f.Aa)});
        g.M(this,h);var l=AI(function(){return new RM(h,f.Aa)});
        g.M(this,l);var m=AI(function(){return new AM});
        g.M(this,m);var n=AI(function(){return new xM(a)});
        g.M(this,n);var p=AI(function(){return new SM(h,l,f.Aa)});
        g.M(this,p);var q=AI(function(){return new VM});
        g.M(this,q);this.Cn=AI(function(){return new xjb(b)});
        g.M(this,this.Cn);this.Ec=AI(function(){return new y1(b)});
        g.M(this,this.Ec);this.Lb=AI(function(){return new BI(e)});
        g.M(this,this.Lb);this.Ac=AI(function(){return new c1(b)});
        g.M(this,this.Ac);this.Oc=AI(function(){return new e1(b)});
        g.M(this,this.Oc);this.fd=AI(function(){return new C1(b)});
        g.M(this,this.fd);this.kd=AI(function(){return new f1(b)});
        g.M(this,this.kd);this.Aa=AI(function(){return new g1(b)});
        g.M(this,this.Aa);var r=AI(function(){return new x1(d)});
        g.M(this,r);var t=AI(function(){return new iI(f.Aa)});
        g.M(this,t);this.Xf=AI(function(){return new D1(b)});
        g.M(this,this.Xf);this.Ra=AI(function(){return new q1(b,q,f.Aa)});
        g.M(this,this.Ra);var u=a1({Ra:this.Ra,Aa:this.Aa,Ne:t}),w=u.context,A=u.Rg;this.Pb=u.Pb;this.Bf=AI(function(){return new B1(b,f.Aa,f.Oa)});
        g.M(this,this.Bf);this.zc=AI(function(){return new E1(b)});
        g.M(this,this.zc);this.Ha=AI(function(){return new r1(b,f.Ra,f.Aa)});
        g.M(this,this.Ha);u=AI(function(){return new qM(h,p,l,f.Aa,t,null,f.Ha,f.bk,3)});
        g.M(this,u);this.hf=AI(function(){return new FI});
        this.xb=AI(function(){return new k1(f.Ha,b,f.Aa)});
        g.M(this,this.xb);this.Oa=AI(function(){return new p1(b,m,f.xb,f.Ra,f.Pb,f.Aa,A)});
        g.M(this,this.Oa);this.Rd=new wM(n,u,c,this.Aa,a,this.Ra,this.Ha,this.Ac);g.M(this,this.Rd);var C=new b1(b,this.Rd,this.Ha,this.Ra,this.Bf);this.yh=AI(function(){return C});
        this.Qx=C;this.Gk=new vM(cKa,F1,function(E,H,L,N){return vKa(l.get(),E,H,L,N)},n,p,l,t,this.Aa,this.Ra);
        g.M(this,this.Gk);this.bk=new sM(n,p,this.yh,this.Bf,this.Ha,this.Aa,this.Oa,this.zc);g.M(this,this.bk);this.Gg=new yM(n,p,this.Oc,this.yh,w);g.M(this,this.Gg);this.Ud=new bM(this.Aa,n,p,u,this.Ra,this.Gg,c);g.M(this,this.Ud);this.Uj=AI(function(){return new QI(r,l,t,f.Aa,f.Oa,f.Ha,f.zc)});
        g.M(this,this.Uj);this.Xe=AI(function(){return new RI});
        g.M(this,this.Xe);this.Xg=new EM(a,this.Ec,this.Aa);g.M(this,this.Xg);this.Zb=new FM(a);g.M(this,this.Zb);this.Ah=new IM(a,this.yh,w);g.M(this,this.Ah);this.Cf=new JM(a,this.Oc,this.Ha,this.Ra,w);g.M(this,this.Cf);this.yx=new KM(a,this.Ra);g.M(this,this.yx);this.Me=new LM(a);g.M(this,this.Me);this.Dk=new MM(a);g.M(this,this.Dk);this.Ld=new OM(a);g.M(this,this.Ld);this.Re=AI(function(){return new BM});
        g.M(this,this.Re);this.Hk=AI(function(){return new CM(f.Ha)});
        g.M(this,this.Hk);this.Tj=AI(function(){return new kJ(f.Ud,n,h)});
        g.M(this,this.Tj);this.fk=AI(function(){return new mJ(f.Aa,f.Oa,f.Me,f.xb)});
        g.M(this,this.fk);this.Fk=AI(function(){return new OGa(a,f.Ld,f.Me,f.Ra,f.zc,f.Ha,f.Oa,q,f.Bf,f.xb,f.hf,f.fd,f.Oc,f.Ac,f.kd,f.Lb,f.Xf,f.Aa,m,w,A)});
        g.M(this,this.Fk);this.du=AI(function(){return new bHa(f.Ec,f.Ha,f.Oa,m,f.Cn,c,f.Aa,f.Ra)});
        g.M(this,this.du);this.oh={CB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ud],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.bk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Gk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Lt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Uj],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),qn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
                this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Zb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Zb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Zb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Zb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Zb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
                this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.yx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.yx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Me],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Dk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ld]]),fv: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.Hk]]),Bu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tj],["SLOT_TYPE_FORECASTING",this.fk],["SLOT_TYPE_PLAYER_BYTES",this.Fk],["SLOT_TYPE_IN_PLAYER",this.du]])};this.listeners=[m.get()];this.WA={Ud:this.Ud,fl:this.Aa.get(),kb:this.Lb.get(),KB:this.Ha.get(),Rd:this.Rd,ax:h.get(),KF:null,Fo:this.Xg,yl:m.get(),df:this.Ra.get()}};
    Ejb=function(a,b,c,d){g.I.call(this);var e=this;this.j=Djb(function(){return e.B},a,b,c,d);
        g.M(this,this.j);this.B=(new PCa(this.j)).C();g.M(this,this.B)};
    G1=function(a){return a.j.WA};
    Djb=function(a,b,c,d,e){try{var f=b.U();if(g.BR(f))var h=new yjb(a,b,c,d,e);else if(g.DR(f))h=new zjb(a,b,c,d,e);else if(vR(f))h=new Ajb(a,b,c,d,e);else if(g.NF(f))h=new Bjb(a,b,c,d,e);else if(g.qR(f))h=new Cjb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),tF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Mqb:h.j.cver,Lqb:h.j.ctheme,Kqb:h.j.cplayer,srb:h.playerStyle}),new ojb(a,b,c,d,e)}};
    Fjb=function(a){gF.call(this,a)};
    Gjb=function(a,b,c,d,e){lF.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Ga("ytp-ad-timed-pie-countdown");this.D=this.Ga("ytp-ad-timed-pie-countdown-container");
        this.B=this.Ga("ytp-ad-timed-pie-countdown-inner");this.G=this.Ga("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()};
    Hjb=function(a,b,c,d,e,f){ME.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",W:{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.zT=e;this.iM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ea=this.Ga("ytp-ad-action-interstitial-instream-info");this.ra=this.Ga("ytp-ad-action-interstitial-image-container");this.Y=new dF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-image");g.M(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Ga("ytp-ad-action-interstitial-headline-container");
        this.G=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-headline");g.M(this,this.G);this.G.Ja(this.Wa);this.Va=this.Ga("ytp-ad-action-interstitial-description-container");this.C=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-description");g.M(this,this.C);this.C.Ja(this.Va);this.Za=this.Ga("ytp-ad-action-interstitial-background-container");this.La=new dF(this.api,this.layoutId,this.interactionLoggingClientData,
            this.kb,"ytp-ad-action-interstitial-background",!0);g.M(this,this.La);this.La.Ja(this.Za);this.gb=this.Ga("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ga("ytp-ad-action-interstitial-slot");this.Af=this.Ga("ytp-ad-action-interstitial-card");this.D=new pB;g.M(this,this.D);this.hide()};
    Ijb=function(a){var b=g.tf("html5-video-player");b&&g.Lv(b,"ytp-ad-display-override",a)};
    Mjb=function(a,b,c,d){ME.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.Ga("ytp-ad-overlay-container");this.La=new rF(a,45E3,6E3,.3,.4);g.M(this,this.La);this.C=Jjb(this);g.M(this,this.C);this.C.Ja(a);this.B=Kjb(this);g.M(this,this.B);this.B.Ja(a);this.j=Ljb(this);g.M(this,this.j);this.j.Ja(a);this.hide()};
    Jjb=function(a){var b=new g.LE({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:[WE(Njb)]}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Ga("ytp-ad-overlay-title"),"click",function(c){H1(a,b.element,c)});
        a.T(b.Ga("ytp-ad-overlay-link"),"click",function(c){H1(a,b.element,c)});
        a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.VM);b.hide();return b};
    Kjb=function(a){var b=new g.LE({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:[WE(Njb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",W:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
            va:"{{displayUrl}}"}]});a.T(b.Ga("ytp-ad-overlay-title"),"click",function(c){H1(a,b.element,c)});
        a.T(b.Ga("ytp-ad-overlay-link"),"click",function(c){H1(a,b.element,c)});
        a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.VM);a.T(b.Ga("ytp-ad-overlay-text-image"),"click",a.sca);b.hide();return b};
    Ljb=function(a){var b=new g.LE({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:[WE(Njb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ga("ytp-ad-overlay-image"),"click",function(c){H1(a,b.element,c)});
        a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.VM);b.hide();return b};
    Ojb=function(a,b){if(b){var c=g.V(b,YL)||null;if(c==null)g.jE(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.tf("video-ads ytp-ad-module")||null,b==null)g.jE(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ea=new g.LE({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.M(a,a.Ea),a.Ea.Ja(b),b=new jF(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.Ea.element,!1),g.M(a,b),b.init(BE("ad-info-hover-text-button"),
        c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.Z$,a);b.subscribe("e",a.SR,a);a.T(a.G,"click",a.aaa);var d=g.tf("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.V((e=g.V(c.button,g.$L))==null?void 0:e.serviceEndpoint,gza))a.Wa=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
        a.gb=b}else g.jE(Error("Ad info button container within overlay ad was not present."))}else g.kE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
    Qjb=function(a,b){if(Pjb(a,I1)||a.api.isMinimized())return!1;var c=NE(b.title),d=NE(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",NE(b.title));a.C.updateValue("description",NE(b.description));a.C.updateValue("displayUrl",NE(b.displayUrl));b.navigationEndpoint&&g.Lb(a.Y,b.navigationEndpoint);a.C.show();a.La.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++});
        return!0};
    Rjb=function(a,b){if(Pjb(a,I1)||a.api.isMinimized())return!1;var c=NE(b.title),d=NE(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",NE(b.title));a.B.updateValue("description",NE(b.description));a.B.updateValue("displayUrl",NE(b.displayUrl));a.B.updateValue("imageUrl",oya(b.image));b.navigationEndpoint&&g.Lb(a.Y,b.navigationEndpoint);a.Za=b.imageNavigationEndpoint||null;a.B.show();a.La.start();a.logVisibility(a.B.element,!0);
        a.T(a.B.element,"mouseover",function(){a.ra++});
        return!0};
    Sjb=function(a,b){if(a.api.isMinimized())return!1;var c=pya(b.image),d=c;c.width<I1.width&&(d=I1);if(c.width===0||c.height===0||Pjb(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",oya(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Lb(a.Y,b.navigationEndpoint);b=a.j.Ga("ytp-ad-image-overlay");g.Js(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.ra++;
        a.api.tR("invideo-overlay",a.layoutId)});
        a.T(a.j.element,"mouseout",function(){a.api.sR("invideo-overlay",a.layoutId)});
        return!0};
    Pjb=function(a,b){var c=a.api.ob().Xh(),d=a.api.Vn(!0,!1);return(b=RGa(c,c.height-(d.height+d.top),b))?(a.Va&&b&&(c=g.jd(a.macros),c.ERRORCODE=b.PH.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?DI(a.kb,a.Va,a.layoutId,c):g.jE(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
    H1=function(a,b,c){var d=g.jd(a.macros),e=g.Vs(b);d.AW={toString:function(){return e.width.toString()}};
        d.AH={toString:function(){return e.height.toString()}};
        var f=g.Ts(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
        d.NX={toString:function(){return f.x.toString()}};
        d.I_Y={toString:function(){return f.y.toString()}};
        d.NY={toString:function(){return f.y.toString()}};
        d.NM={toString:function(){return a.ra.toString()}};
        b=g.v(a.Y);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?DI(a.kb,c,a.layoutId,d):g.jE(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
    Tjb=function(a,b){a=a.api.getRootNode();g.Lv(a,"ytp-ad-overlay-open",b);g.Lv(a,"ytp-ad-overlay-closed",!b)};
    Ujb=function(a,b,c,d,e){lF.call(this,a,{I:"div",S:"ytp-ad-message-overlay",V:[{I:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.ra=!1;this.Ea=this.Ga("ytp-ad-message-slot");this.B=new g.LE({I:"span",S:"ytp-ad-message-container"});this.B.Ja(this.Ea);g.M(this,this.B);this.messageText=new kF(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.M(this,this.messageText);this.messageText.Ja(this.B.element);this.D=new g.oF(this.B,
        400,!1,100,function(){f.hide()});
        g.M(this,this.D);this.hide()};
    Vjb=function(a,b){a=a.api.getRootNode();g.Lv(a,"ytp-ad-overlay-open",b);g.Lv(a,"ytp-ad-overlay-closed",!b)};
    Wjb=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-ad-underlay-companion",V:[{I:"div",S:"ytp-ad-underlay-side-container",V:[{I:"div",S:"ytp-ad-underlay-image-container"},{I:"div",S:"ytp-ad-underlay-description-container"},{I:"div",S:"ytp-ad-underlay-headline-container"},{I:"div",S:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Ea=this.Ga("ytp-ad-underlay-image-container");this.C=new dF(this.api,this.layoutId,this.interactionLoggingClientData,
        this.kb,"ytp-ad-underlay-image");g.M(this,this.C);this.C.Ja(this.Ea);this.ra=this.Ga("ytp-ad-underlay-headline-container");this.B=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-underlay-headline");g.M(this,this.B);this.B.Ja(this.ra);this.Y=this.Ga("ytp-ad-underlay-description-container");this.D=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-underlay-description");g.M(this,this.D);this.D.Ja(this.Y);this.G=this.Ga("ytp-ad-underlay-action-button-container");
        this.j=this.Ga("ytp-ad-underlay-side-container");this.hide()};
    Xjb=function(a){var b=g.tf("html5-video-player");b&&g.Lv(b,"ytp-ad-display-override",a)};
    J1=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
        ME.call(this,a,{I:"div",S:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.onSelected=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Ga("ytp-ad-survey-answer");this.hide()};
    Yjb=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Ga("ytp-ad-survey-none-of-the-above");this.hide()};
    K1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");XE.call(this,a,b,c,d,e,"survey-submit")};
    L1=function(a,b,c,d,e){ME.call(this,a,{I:"div",S:"ytp-ad-survey-player-overlay",V:[{I:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{I:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.D=e;this.B=this.j=null;this.C=this.Ga("ytp-ad-survey-player-overlay-instream-info");
        this.skipOrPreview=this.Ga("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ga("ytp-ad-survey-player-overlay-submit");g.M(this,this.D);this.hide()};
    M1=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
        ME.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",Ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Ea=f;this.D=null;this.B=[];this.j=null;this.Y=this.api.U().experiments.fb("a11y_h5_associate_survey_question");this.question=this.Ga("ytp-ad-survey-question");
        this.La=this.Ga("ytp-ad-survey-question-background");this.questionText=this.Ga("ytp-ad-survey-question-text");this.answers=this.Ga("ytp-ad-survey-answers");this.playerOverlay=this.Ga("ytp-ad-survey-question-player-overlay");this.C=g.kb()};
    Zjb=function(a,b){b=g.OE(b);g.Kf(a.questionText,b);a.Y&&a.questionText.setAttribute("id",BE("survey-question-text"))};
    $jb=function(a,b,c,d){d=new J1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,d,a.Ea);d.Ja(a.answers);d.init(BE("survey-answer"),b,c);a.Y&&(b=a.questionText.getAttribute("id"),b!=null&&(d.j!==null?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
    bkb=function(a,b){if(b){var c=b.background;c&&g.V(c,akb)&&(c=(c=g.V(c,akb).image)&&cF(c)||"",g.ec(c)?g.kE(Error("Found ThumbnailDetails without valid image URL")):g.Js(a.La,"backgroundImage","url("+c+")"));if(b.durationMilliseconds==null||b.durationMilliseconds===void 0||b.durationMilliseconds===0)g.jE(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.kb();a.j=new DF(a.api,b.durationMilliseconds);g.M(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.V(b.instreamAdPlayerOverlay,
        MHa))try{var d=new L1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.j);d.Ja(a.playerOverlay);d.init(BE("survey-player-overlay"),g.V(b.instreamAdPlayerOverlay,MHa),a.macros);a.D=d;g.M(a,d);a.Y0()}catch(e){g.jE(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.jE(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&b.durationMilliseconds>0?(b=new LF(a.api,a.j),b.Ja(a.playerOverlay),
        g.M(a,b)):g.jE(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.jE(Error("addCommonComponents() needs to be called before starting countdown."))};
    ckb=function(a){function b(c){return{toString:function(){return c()}}}
        a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
        a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.kb()-a.C).toString()})};
    dkb=function(a,b,c,d,e){M1.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
    ekb=function(a,b,c){a.noneOfTheAbove=new Yjb(a.api,a.layoutId,a.interactionLoggingClientData,a.kb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(BE("survey-none-of-the-above"),b,c)};
    gkb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
        fkb(a,!0)};
    fkb=function(a,b){var c=a.D;a=hkb(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof AF&&!c.j.D&&vza(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
    hkb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
    N1=function(a,b,c,d,e){M1.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])});
        var f=this;this.hide()};
    O1=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ga("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ga("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ga("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
    kkb=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.V(c,XL)?ikb(a,g.V(c,XL),a.macros):g.V(c,WL)&&jkb(a,g.V(c,WL),a.macros);a.j=b};
    ikb=function(a,b,c){var d=new N1(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(BE("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.M(a,d)};
    jkb=function(a,b,c){var d=new dkb(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.D.bind(a));d.Ja(a.G);d.init(BE("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.M(a,d)};
    P1=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ga("ytp-ad-survey-interstitial");this.B=this.Ga("ytp-ad-survey-interstitial-contents");this.text=this.Ga("ytp-ad-survey-interstitial-text");
        this.logoImage=this.Ga("ytp-ad-survey-interstitial-logo-image");this.transition=new g.oF(this,500,!1,300);g.M(this,this.transition)};
    mkb=function(a,b){b=b&&cF(b)||"";if(g.ec(b))g.kE(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Jla(d.style);b=new g.oe([c,Kba(lkb,b)].map(Iba).join(""),ye);a.style.cssText=pe(b)}};
    nkb=function(a){var b=g.tf("html5-video-player");b&&g.Lv(b,"ytp-ad-display-override",a)};
    Q1=function(a){this.content=a.content;if(a.commandRuns){a=g.v(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.V(b,okb),b.onTap&&(this.interaction={onTap:b.onTap})}};
    R1=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
    S1=function(a,b,c,d){ME.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.adBadgeText.Ja(this.element);g.M(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
    T1=function(a,b,c,d,e,f){f=f===void 0?0:f;lF.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.ra=f;this.B=0;this.D=-1;this.C=this.Ga("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.oF(this,400,!1,100,function(){h.hide()});
        g.M(this,this.transition);this.hide()};
    U1=function(a,b,c,d){ME.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
    pkb=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
    V1=function(a,b,c,d){ME.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
    qkb=function(a,b,c,d,e){lF.call(this,a,{I:"div",Ka:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new U1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.M(this,this.adAvatar);Gf(this.element,this.adAvatar.element,0);this.headline=new R1(this.api,this.layoutId,this.interactionLoggingClientData,
        this.kb);g.M(this,this.headline);this.headline.Ja(this.Ga("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.M(this,this.description);this.description.Ja(this.Ga("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new V1(this.api,this.layoutId,this.interactionLoggingClientData,
        this.kb);g.M(this,this.adButton);this.adButton.Ja(this.element);this.hide()};
    rkb=function(a,b,c,d){ME.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ga("ytp-skip-ad-button__text");this.transition=new g.oF(this,500,!1,100,function(){e.hide()});
        g.M(this,this.transition);this.j=new rF(this.element,15E3,5E3,.5,.5,!0);g.M(this,this.j);this.hide()};
    skb=function(a,b,c,d,e){lF.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new T1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j);g.M(this,this.B);this.B.Ja(this.element);this.C=new rkb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.M(this,this.C);this.C.Ja(this.element);this.hide()};
    W1=function(a,b,c,d){ME.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
    X1=function(a,b,c,d,e){ME.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.ra=this.Ga("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ga("ytp-ad-player-overlay-layout__ad-info-container");
        this.G=this.Ga("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Ga("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
    Y1=function(a,b,c){gF.call(this,a);this.api=a;this.kb=b;this.B={};a=new g.W({I:"div",Ka:["video-ads","ytp-ad-module"]});g.M(this,a);iR&&g.Hv(a.element,"ytp-ads-tiny-mode");this.G=new tD(a.element);g.M(this,this.G);g.FT(this.api,a.element,4);sIa(c)&&(c=new g.W({I:"div",Ka:["ytp-ad-underlay"]}),g.M(this,c),this.C=new tD(c.element),g.M(this,this.C),g.FT(this.api,c.element,0));g.M(this,Pya())};
    tkb=function(a,b){a=g.hd(a.B,b.id,null);a==null&&g.kE(Error("Component not found for element id: "+b.id));return a||null};
    ukb=function(a){g.eV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new uib(this.player):new $0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new Bib({Fo:G1(b.j).Fo,df:G1(b.j).df,J:b.player,fl:G1(b.j).fl,Oa:b.j.j.Oa,yl:G1(b.j).yl,kd:b.j.j.kd});b.B=d.O4;return b.B};
        this.j=new Ejb(this.player,this,this.C,this.D);g.M(this,this.j);var c=a.U();!rI(c)||g.qR(c)||vR(c)||(g.M(this,new Y1(a,G1(this.j).kb,G1(this.j).fl)),g.M(this,new Fjb(a)))};
    vkb=function(a){a.created!==a.loaded&&tF("Created and loaded are out of sync")};
    ykb=function(a){g.eV.prototype.load.call(a);var b=G1(a.j).fl;try{a.player.getRootNode().classList.add("ad-created")}catch(l){tF(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.fb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(l){return g.V(l,cM)});
        e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.dc();b=wkb(f,h,b,G1(a.j).ax);f=c&&c.clientPlaybackNonce||"";c=c&&c.Ep||!1;h=1E3*a.player.getDuration(1);xkb(a);a.j.j.Qx.Ak(f,h,c,b.vL,b.KW,b.vL,e,d)};
    xkb=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Ep)||g.gA("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=rI(b)&&!g.qI(b)&&b.playerStyle==="desktop-polymer";c&&(a=VYa(a.player),a.addEventListener("updateKevlarOrC3Companion",Hza),a.addEventListener("updateEngagementPanelAction",Jza),a.addEventListener("changeEngagementPanelVisibility",Lza),window.addEventListener("yt-navigate-start",Nza))};
    Z1=function(a,b){b===a.Ys&&(a.Ys=void 0)};
    zkb=function(a){var b=G1(a.j).Rd,c=b.D().NP("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ra.get().ge(1).clientPlaybackNonce;var d=!1;c=g.v(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof pL?e.slotEntryTrigger.yv:void 0;f&&f===b&&(d&&tF("More than 1 preroll playerBytes slot detected",e),d=!0)}d||s1(G1(a.j).KB)};
    Akb=function(a){if(h1(G1(a.j).fl))return!0;var b="";a=g.v(G1(a.j).yl.dj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.Ya==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&tF("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
    Bkb=function(a){a=g.v(G1(a.j).yl.dj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
    QHa=function(a,b,c,d,e){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var f=G1(a.j).fl,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.dc();c=wkb(b,c,f,G1(a.j).ax);UHa(G1(a.j).Ud,d,c.vL,c.KW,b,e)};
    wkb=function(a,b,c,d){b={vL:[],KW:b};a=g.v(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){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((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,pM)?(h=g.V((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,pM),h=qKa(h,p),g.qE(f.sandwichedLinearAdRenderer.adVideoStart,pM,h)):g.V((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,pM)&&
        (m=g.V((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,pM),h=qKa(m,p),g.qE(f.linearAdSequenceRenderer.adStart,pM,h))}b.vL.push(e)}return b};
    g.$1=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=Qma(a);return b.parseFromString(g.re(a),"application/xml")}throw Error("Your browser does not support loading xml documents");};
    g.a2=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.zv(this.next,window,this);g.M(this,this.delay)};
    g.Ckb=function(a){var b=a.U();return b.Dd&&!b.C&&g.kR(b)?a.hd()?(a=a.Vn(),Math.min(a.width,a.height)>=315):!a.Qg():!1};
    g.b2=function(a){g.W.call(this,{I:"div",S:"ytp-more-videos-view",W:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.IJ(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",va:"{{title}}"});this.previous=new g.W({I:"button",Ka:["ytp-button","ytp-previous"],W:{"aria-label":"Show previous suggested videos"},V:[g.QE()]});this.N=new g.a2(function(c){b.suggestions.element.scrollLeft=-c});
        this.next=new g.W({I:"button",Ka:["ytp-button","ytp-next"],W:{"aria-label":"Show more suggested videos"},V:[g.RE()]});g.M(this,this.D);this.K=a.U().D;g.M(this,this.title);this.title.Ja(this.element);this.suggestions=new g.W({I:"div",S:"ytp-suggestions"});g.M(this,this.suggestions);this.suggestions.Ja(this.element);g.M(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.Q4,this);g.M(this,this.N);Dkb(this);g.M(this,this.next);this.next.Ja(this.element);this.next.listen("click",
            this.P4,this);this.D.T(this.api,"appresize",this.kc);this.D.T(this.api,"fullscreentoggled",this.Rx);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.kc(this.api.ob().getPlayerSize());this.onVideoDataChange()};
    Dkb=function(a){for(var b={zA:0};b.zA<16;b={zA:b.zA},++b.zA){var c=new g.W({I:"a",S:"ytp-suggestion-link",W:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",W:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",va:"{{title}}"},{I:"div",S:"ytp-suggestion-author",va:"{{author_and_views}}"},{I:"div",W:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
                va:"{{duration}}"}]}]});g.M(a,c);var d=c.Ga("ytp-suggestion-link");g.Js(d,"transitionDelay",b.zA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.zA;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.ql(),l={},g.XYa(a.api,l,"emb_rel_pause"),h=g.wo(h,l),g.XT(h,a.api,f)):g.WT(f,a.api,a.K,m||void 0)&&a.api.ip(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)}};
    Ekb=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.c2=function(a){var b=a.api.Gh()?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.Lv(a.element,"ytp-scroll-min",b>=0);g.Lv(a.element,"ytp-scroll-max",b<=c)};
    Gkb=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0;d=a;var h=d.api.U(),l=d.suggestionData[c],m=d.C[c];f=d.api.hd()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Ga("ytp-suggestion-link");g.Js(e,"display","inline-block");Fkb.test(l.title)&&(m.Ga("ytp-suggestion-title").dir="rtl");Fkb.test(f)&&(m.Ga("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.FF(l.lengthSeconds):
        "";var n=l.ql(d.api.hd());if(g.kR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.nT(d.api,"addEmbedsConversionTrackingParams",[p]);d.api.L("embeds_web_enable_referring_feature_deprecation")||(n=g.wo(n,g.GO(p,"emb_rel_pause")))}h.L("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.setTrackingParams(m.element,h);m.update({author_and_views:f,duration:e,link:n,title:l.title,aria_label:l.ariaLabel||l.title,is_live:l.isLivePlayback,
        aria_hidden:!!l.ariaLabel,blink_rendering_hack:g.GJ||g.jR?"will-change: opacity":void 0});f=m.Ga("ytp-suggestion-image");d=d.api.hd()?l.gh("hq2.jpg"):l.gh();f.style.backgroundImage=d?"url("+d+")":""}if(b<16)for(;b<16;++b)c=a.C[b].Ga("ytp-suggestion-link"),g.Js(c,"display","none");g.c2(a)};
    aaa=[];ma=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
    g.ea=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_"+(Math.random()*1E9>>>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<b.length;c++){var d=g.ea[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&ma(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
    var Hkb=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)sa(d,e)&&(a[e]=d[e])}return a};
    oa("Object.assign",function(a){return a||Hkb});
    var faa=typeof Object.create=="function"?Object.create:function(a){function b(){}
        b.prototype=a;return new b},Ikb=function(){function a(){function c(){}
        new c;Reflect.construct(c,[],function(){});
        return new c instanceof c}
        if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){e===void 0&&(e=c);
            e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Jkb;
    if(typeof Object.setPrototypeOf=="function")Jkb=Object.setPrototypeOf;else{var Kkb;a:{var Lkb={a:!0},Mkb={};try{Mkb.__proto__=Lkb;Kkb=Mkb.a;break a}catch(a){}Kkb=!1}Jkb=Kkb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var va=Jkb;
    wa.prototype.Z=function(a){this.B=a};
    wa.prototype.return=function(a){this.C={return:a};this.j=this.G};
    wa.prototype.Ia=function(a){this.j=a};
    oa("Reflect",function(a){return a?a:{}});
    oa("Reflect.construct",function(){return Ikb});
    oa("Reflect.setPrototypeOf",function(a){return a?a:va?function(b,c){try{return va(b,c),!0}catch(d){return!1}}:null});
    oa("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.N=!1;var l=this.D();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
        function c(){this.j=null}
        function d(h){return h instanceof b?h:new b(function(l){l(h)})}
        if(a)return a;c.prototype.B=function(h){if(this.j==null){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
        var e=g.ea.setTimeout;c.prototype.C=function(h){e(h,0)};
        c.prototype.G=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.j=null};
        c.prototype.D=function(h){this.C(function(){throw h;})};
        b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
            var l=this,m=!1;return{resolve:h(this.Ca),reject:h(this.G)}};
        b.prototype.Ca=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ea(h);else{a:switch(typeof h){case "object":var l=h!=null;break a;case "function":l=!0;break a;default:l=!1}l?this.ra(h):this.K(h)}};
        b.prototype.ra=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}typeof l=="function"?this.Ma(l,h):this.K(h)};
        b.prototype.G=function(h){this.Z(2,h)};
        b.prototype.K=function(h){this.Z(1,h)};
        b.prototype.Z=function(h,l){if(this.j!=0)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;this.j===2&&this.Fa();this.Y()};
        b.prototype.Fa=function(){var h=this;e(function(){if(h.qa()){var l=g.ea.console;typeof l!=="undefined"&&l.error(h.C)}},1)};
        b.prototype.qa=function(){if(this.N)return!1;var h=g.ea.CustomEvent,l=g.ea.Event,m=g.ea.dispatchEvent;if(typeof m==="undefined")return!0;typeof h==="function"?h=new h("unhandledrejection",{cancelable:!0}):typeof l==="function"?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
        b.prototype.Y=function(){if(this.B!=null){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
        var f=new c;b.prototype.Ea=function(h){var l=this.D();h.JI(l.resolve,l.reject)};
        b.prototype.Ma=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
        b.prototype.then=function(h,l){function m(r,t){return typeof r=="function"?function(u){try{n(r(u))}catch(w){p(w)}}:t}
            var n,p,q=new b(function(r,t){n=r;p=t});
            this.JI(m(h,n),m(l,p));return q};
        b.prototype.catch=function(h){return this.then(void 0,h)};
        b.prototype.JI=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
            var n=this;this.B==null?f.B(m):this.B.push(m);this.N=!0};
        b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
        b.race=function(h){return new b(function(l,m){for(var n=g.v(h),p=n.next();!p.done;p=n.next())d(p.value).JI(l,m)})};
        b.all=function(h){var l=g.v(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(u){return function(w){r[u]=w;t--;t==0&&n(r)}}
            var r=[],t=0;do r.push(void 0),t++,d(m.value).JI(q(r.length-1),p),m=l.next();while(!m.done)})};
        return b});
    oa("Object.setPrototypeOf",function(a){return a||va});
    oa("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});
    oa("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.v(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
        function c(){}
        function d(m){var n=typeof m;return n==="object"&&m!==null||n==="function"}
        function e(m){if(!sa(m,h)){var n=new c;ma(m,h,{value:n})}}
        function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
        if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(p.get(m)!=2||p.get(n)!=3)return!1;p.delete(m);p.set(n,4);return!p.has(m)&&p.get(n)==4}catch(q){return!1}}())return a;
        var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!sa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
        b.prototype.get=function(m){return d(m)&&sa(m,h)?m[h][this.j]:void 0};
        b.prototype.has=function(m){return d(m)&&sa(m,h)&&sa(m[h],this.j)};
        b.prototype.delete=function(m){return d(m)&&sa(m,h)&&sa(m[h],this.j)?delete m[h][this.j]:!1};
        return b});
    oa("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
        function c(l,m){var n=l[1];return daa(function(){if(n){for(;n.head!=l[1];)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
        function d(l,m){var n=m&&typeof m;n=="object"||n=="function"?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l[0][n];if(p&&sa(l[0],n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
        function e(l){this[0]={};this[1]=b();this.size=0;if(l){l=g.v(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
        if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var l=Object.seal({x:4}),m=new a(g.v([[l,"s"]]));if(m.get(l)!="s"||m.size!=1||m.get({x:4})||m.set({x:4},"t")!=m||m.size!=2)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||p.value[1]!="s")return!1;p=n.next();return p.done||p.value[0].x!=4||p.value[1]!="t"||!n.next().done?!1:!0}catch(q){return!1}}())return a;
        var f=new WeakMap;e.prototype.set=function(l,m){l=l===0?0:l;var n=d(this,l);n.list||(n.list=this[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].previous=n.entry,this.size++);return this};
        e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this[0][l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
        e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
        e.prototype.has=function(l){return!!d(this,l).entry};
        e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
        e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
        e.prototype.keys=function(){return c(this,function(l){return l.key})};
        e.prototype.values=function(){return c(this,function(l){return l.value})};
        e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
        e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
    oa("Array.prototype.keys",function(a){return a?a:function(){return Ka(this,function(b){return b})}});
    oa("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).IM}});
    oa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});
    oa("Set",function(a){function b(c){this.j=new Map;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
        if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(g.v([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)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||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
        b.prototype.add=function(c){c=c===0?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&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
    oa("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
    oa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=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)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-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)sa(b,d)&&c.push(b[d]);return c}});
    oa("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||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(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
    oa("String.prototype.includes",function(a){return a?a:function(b,c){return Ma(this,b,"includes").indexOf(b,c||0)!==-1}});
    oa("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
    oa("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(l){return l};
        var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
    oa("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}});
    oa("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
    oa("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
    oa("Int8Array.prototype.fill",Na);oa("Uint8Array.prototype.fill",Na);oa("Uint8ClampedArray.prototype.fill",Na);oa("Int16Array.prototype.fill",Na);oa("Uint16Array.prototype.fill",Na);oa("Int32Array.prototype.fill",Na);oa("Uint32Array.prototype.fill",Na);oa("Float32Array.prototype.fill",Na);oa("Float64Array.prototype.fill",Na);oa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)sa(b,d)&&c.push([d,b[d]]);return c}});
    oa("globalThis",function(a){return a||g.ea});
    oa("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>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=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
    oa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
    oa("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
    oa("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
        if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
        b.prototype.add=function(c){this.j.set(c,!0);return this};
        b.prototype.has=function(c){return this.j.has(c)};
        b.prototype.delete=function(c){return this.j.delete(c)};
        return b});
    oa("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
    oa("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
    oa("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return c===Infinity||c===-Infinity?c:c|0}
        return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=e===void 0?f:b(e);c=c<0?Math.max(f+c,0):Math.min(c,f);d=d<0?Math.max(f+d,0):Math.min(d,f);e=e<0?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
    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",Qa);oa("Uint8Array.prototype.findLastIndex",Qa);oa("Uint8ClampedArray.prototype.findLastIndex",Qa);oa("Int16Array.prototype.findLastIndex",Qa);oa("Uint16Array.prototype.findLastIndex",Qa);oa("Int32Array.prototype.findLastIndex",Qa);oa("Uint32Array.prototype.findLastIndex",Qa);oa("Float32Array.prototype.findLastIndex",Qa);oa("Float64Array.prototype.findLastIndex",Qa);oa("Number.parseInt",function(a){return a||parseInt});
    oa("String.raw",function(a){return a?a:function(b,c){if(b==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var Co,eb,maa;Co=Co||{};g.Ua=this||self;eb="closure_uid_"+(Math.random()*1E9>>>0);maa=0;g.k=rb.prototype;g.k.c7=function(a){var b=g.Ja.apply(1,arguments),c=this.rP(b);c?c.push(new paa(a)):this.F1(a,b)};
    g.k.F1=function(a){this.j.set(this.wV(g.Ja.apply(1,arguments)),[new paa(a)])};
    g.k.rP=function(){var a=this.wV(g.Ja.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
    g.k.G8=function(){var a=this.rP(g.Ja.apply(0,arguments));return a&&a.length?a[0]:void 0};
    g.k.clear=function(){this.j.clear()};
    g.k.wV=function(){var a=g.Ja.apply(0,arguments);return a?a.join(","):"key"};g.x(sb,rb);sb.prototype.B=function(a){var b=g.Ja.apply(1,arguments),c=0,d=this.G8(b);d&&(c=d.j);this.F1(c+a,b)};g.x(tb,rb);tb.prototype.Oh=function(a){this.c7(a,g.Ja.apply(1,arguments))};g.k=g.I.prototype;g.k.cz=!1;g.k.Na=function(){return this.cz};
    g.k.dispose=function(){this.cz||(this.cz=!0,this.xa())};
    g.k.addOnDisposeCallback=function(a,b){this.cz?b!==void 0?a.call(b):a():(this.ao||(this.ao=[]),this.ao.push(b!==void 0?(0,g.ib)(a,b):a))};
    g.k.xa=function(){if(this.ao)for(;this.ao.length;)this.ao.shift()()};g.lb(wb,Error);wb.prototype.name="CustomError";var Tba;g.lb(xb,wb);xb.prototype.name="AssertionError";g.yb.prototype.stopPropagation=function(){this.B=!0};
    g.yb.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,cs,Zs;saa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);
        for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
    g.Nkb=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
        c<0&&(c=Math.max(0,a.length+c));if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1};
    g.Yb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
    g.Pt=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=typeof a==="string"?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
        b.call(c,m,l,a)&&(e[f++]=m)}return e};
    g.as=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=typeof a==="string"?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
        return e};
    cs=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
        (0,g.Yb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
        return d};
    Zs=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
        return!1};
    g.bs=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
        return!0};var cc={};var iba=function(){if(!g.Ua.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
        try{var c=function(){};
            g.Ua.addEventListener("test",c,b);g.Ua.removeEventListener("test",c,b)}catch(d){}return a}();var Okb=Xa(1,!0),pc=Xa(610401301,!1),mea;Xa(899588437,!1);var Pea=Xa(188588736,Okb);Xa(628162879,!0);g.Pkb=Xa(641353869,!1);g.Qkb=Xa(644029907,!1);mea=Xa(645172343,Okb);Xa(2147483644,!1);Xa(2147483645,!1);Xa(2147483646,Okb);Xa(2147483647,!0);var rc=!!g.Wa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var jc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Haa=/&/g,Iaa=/</g,Jaa=/>/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var sc,Rkb=g.Ua.navigator;sc=Rkb?Rkb.userAgentData||null:null;Lc[" "]=function(){};var Ks,AY,Xhb,Skb,Tkb,Ukb,hR,iR,Vkb;g.jR=zc();g.Ls=Naa();g.wC=xc("Edge");g.ER=g.wC||g.Ls;Ks=xc("Gecko")&&!(ic(g.nc(),"WebKit")&&!xc("Edge"))&&!(xc("Trident")||xc("MSIE"))&&!xc("Edge");g.Oc=ic(g.nc(),"WebKit")&&!xc("Edge");AY=Jc();Xhb=Uaa();g.WA=Taa();Skb=Hc();Tkb=xc("iPad");Ukb=xc("iPod");hR=Ic();iR=ic(g.nc(),"KaiOS");
    a:{var Wkb="",Xkb=function(){var a=g.nc();if(Ks)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.wC)return/Edge\/([\d\.]+)/.exec(a);if(g.Ls)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Oc)return/WebKit\/(\S+)/.exec(a);if(g.jR)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
        Xkb&&(Wkb=Xkb?Xkb[1]:"");if(g.Ls){var d2,Ykb=g.Ua.document;d2=Ykb?Ykb.documentMode:void 0;if(d2!=null&&d2>parseFloat(Wkb)){Vkb=String(d2);break a}}Vkb=Wkb}var Xaa=Vkb,Vaa={};var G1a=Yaa("AnimationEnd"),vZa=Yaa("TransitionEnd");g.lb(Pc,g.yb);var Zkb={2:"touch",3:"pen",4:"mouse"};
    Pc.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)?Ks&&(Mc(b,"nodeName")||(b=null)):c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0?
        a.clientX:a.pageX,this.clientY=a.clientY!==void 0?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||(c=="keypress"?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=typeof a.pointerType==="string"?a.pointerType:Zkb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=
        a;a.defaultPrevented&&Pc.Pf.preventDefault.call(this)};
    Pc.prototype.stopPropagation=function(){Pc.Pf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
    Pc.prototype.preventDefault=function(){Pc.Pf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zaa="closure_listenable_"+(Math.random()*1E6|0);var $aa=0;var fba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=md.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=od(a,b,d,e);h>-1?(b=a[h],c||(b.II=!1)):(b=new aba(b,this.src,f,!!d,e),b.II=c,a.push(b));return b};
    g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=od(e,b,c,d);return b>-1?(Sc(e[b]),g.Fb(e,b),e.length==0&&(delete this.listeners[a],this.j--),!0):!1};
    g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Sc(d[e]);delete this.listeners[c];this.j--}return b};
    g.k.UE=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=od(a,b,c,d));return e>-1?a[e]:null};
    g.k.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return g.Yc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var xd="closure_lm_"+(Math.random()*1E6|0),Bd={},kba=0,Cd="__closure_events_fn_"+(Math.random()*1E9>>>0);g.lb(g.Ed,g.I);g.Ed.prototype[Zaa]=!0;g.k=g.Ed.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.lS;if(b){var c=[];for(var d=1;b;b=b.lS)c.push(b),++d}b=this.W6;d=a.type||a;if(typeof a==="string")a=new g.yb(a,b);else if(a instanceof g.yb)a.target=a.target||b;else{var e=a;a=new g.yb(d,b);g.ld(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=Fd(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Fd(h,d,!0,a)&&e,a.B||(e=Fd(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Fd(h,d,!1,a)&&e;return e};
    g.k.xa=function(){g.Ed.Pf.xa.call(this);this.zm&&this.zm.removeAll(void 0);this.lS=null};
    g.k.listen=function(a,b,c,d){return this.zm.add(String(a),b,!1,c,d)};
    g.k.MF=function(a,b,c,d){return this.zm.add(String(a),b,!0,c,d)};
    g.k.Pc=function(a,b,c,d){this.zm.remove(String(a),b,c,d)};
    g.k.UE=function(a,b,c,d){return this.zm.UE(String(a),b,c,d)};
    g.k.hasListener=function(a,b){return this.zm.hasListener(a!==void 0?String(a):void 0,b)};Gd.prototype.get=function(){if(this.B>0){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var $kb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};Rd.prototype.toString=function(){return this.j};
    var rba={},qba={};Td("");var Wd;g.Yd.prototype.toString=function(){return this.M0+""};
    var sba={};g.ce.prototype.toString=function(){return this.O0};
    g.ie=new g.ce("about:invalid#zClosurez");var k2a=fe("tel"),i2a=fe("sms"),tba=[fe("data"),fe("http"),fe("https"),fe("mailto"),fe("ftp"),new ee(function(a){return/^[^:]*([/?#]|$)/.test(a)})],uba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ye={};g.oe.prototype.toString=function(){return this.L0.toString()};
    var Ela=new g.oe("",ye),xba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),wba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),vba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),yba=/\/\*/;var Fba={};g.qe.prototype.toString=function(){return this.K0.toString()};
    var alb=/^[a-zA-Z0-9-]+$/,blb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},clb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Cba=new g.qe(g.Ua.trustedTypes&&g.Ua.trustedTypes.emptyHTML||"",Fba);te.prototype.toString=function(){return this.j};ue.prototype.toString=function(){return this.N0.toString()};var dlb=Kd(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.re(Cba);return!b.parentElement});g.k=g.Ee.prototype;g.k.clone=function(){return new g.Ee(this.x,this.y)};
    g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
    g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
    g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
    g.k.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};g.k=g.Ke.prototype;g.k.clone=function(){return new g.Ke(this.width,this.height)};
    g.k.area=function(){return this.width*this.height};
    g.k.aspectRatio=function(){return this.width/this.height};
    g.k.isEmpty=function(){return!this.area()};
    g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
    g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
    g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
    g.k.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};g.elb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Uba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=ef.prototype;g.k.Ib=function(a){return mf(this.j,a)};
    g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
    g.k.Ga=function(a){return g.tf(a,this.j)};
    g.k.setProperties=uf;g.k.createElement=function(a){return wf(this.j,a)};
    g.k.appendChild=g.Bf;g.k.append=function(a,b){Yba(ff(a),a,arguments,1)};
    g.k.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
    g.k.removeNode=g.Hf;g.k.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};
    g.k.contains=g.Jf;var Nf;Rf.prototype.add=function(a,b){var c=eca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
    Rf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a};
    var eca=new Gd(function(){return new Sf},function(a){return a.reset()});
    Sf.prototype.set=function(a,b){this.Bm=a;this.scope=b;this.next=null};
    Sf.prototype.reset=function(){this.next=this.scope=this.Bm=null};var bg,cg=!1,cca=new Rf;fca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
    var gca=new Gd(function(){return new fca},function(a){a.reset()});
    g.fg.prototype.then=function(a,b,c){return qca(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)};
    g.fg.prototype.$goog_Thenable=!0;g.k=g.fg.prototype;g.k.Jl=function(a,b){return qca(this,null,a,b)};
    g.k.catch=g.fg.prototype.Jl;g.k.cancel=function(a){if(this.j==0){var b=new mg(a);g.dg(function(){mca(this,b)},this)}};
    g.k.Oea=function(a){this.j=0;eg(this,2,a)};
    g.k.Pea=function(a){this.j=0;eg(this,3,a)};
    g.k.q8=function(){for(var a;a=nca(this);)oca(this,a,this.j,this.N);this.K=!1};
    var uca=Qf;g.lb(mg,wb);mg.prototype.name="cancel";g.lb(g.ng,g.Ed);g.k=g.ng.prototype;g.k.enabled=!1;g.k.pd=null;g.k.setInterval=function(a){this.Vi=a;this.pd&&this.enabled?(this.stop(),this.start()):this.pd&&this.stop()};
    g.k.Aea=function(){if(this.enabled){var a=g.kb()-this.MZ;a>0&&a<this.Vi*.8?this.pd=this.FH.setTimeout(this.bX,this.Vi-a):(this.pd&&(this.FH.clearTimeout(this.pd),this.pd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
    g.k.start=function(){this.enabled=!0;this.pd||(this.pd=this.FH.setTimeout(this.bX,this.Vi),this.MZ=g.kb())};
    g.k.stop=function(){this.enabled=!1;this.pd&&(this.FH.clearTimeout(this.pd),this.pd=null)};
    g.k.xa=function(){g.ng.Pf.xa.call(this);this.stop();delete this.FH};g.x(g.Cg,g.I);g.k=g.Cg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
    g.k.hn=function(){var a=this.B.values();a=[].concat(g.ra(a)).filter(function(b){return b.j.size});
        a.length&&this.N.flush(a,this.G);xca(a);this.D=0;this.j.enabled&&this.j.stop()};
    g.k.Vj=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new sb(a,b))};
    g.k.RD=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new tb(a,b))};
    g.k.hm=function(a){this.nN(a,1,g.Ja.apply(1,arguments))};
    g.k.nN=function(a,b){var c=g.Ja.apply(2,arguments),d=wca(this,a);d&&d instanceof sb&&(d.B(b,c),vca(this))};
    g.k.Oh=function(a,b){var c=g.Ja.apply(2,arguments),d=wca(this,a);d&&d instanceof tb&&(d.Oh(b,c),vca(this))};Aca.prototype.Oh=function(a,b,c){this.j.Oh("/client_streamz/bg/fil",a,b,c)};
    Cca.prototype.Oh=function(a,b,c){this.j.Oh("/client_streamz/bg/fcd",a,b,c)};
    Eca.prototype.Oh=function(a,b,c){this.j.Oh("/client_streamz/bg/fsl",a,b,c)};
    Fca.prototype.Oh=function(a,b,c,d,e,f){this.j.Oh("/client_streamz/bg/wrl",a,b,c,d,e,f)};
    Gca.prototype.Oh=function(a,b,c,d,e){this.j.Oh("/client_streamz/bg/el",a,b,c,d,e)};var Hh=void 0,Gh,qda=typeof TextDecoder!=="undefined",Oca,Nca=typeof String.prototype.h$==="function",Mca=typeof TextEncoder!=="undefined";var UA,VA;g.NQ=Ac();UA=Hc()||xc("iPod");VA=xc("iPad");g.vVa=Paa();g.GJ=Bc();g.aC=Cc()&&!Ic();var Tca={},Ig=null,Uca=Ks||g.Oc||typeof g.Ua.btoa=="function";var cda=typeof Uint8Array!=="undefined",Xca=!g.Ls&&typeof btoa==="function",ada=/[-_.]/g,Zca={"-":"+",_:"/",".":"="},Kg={};var eda;Lg.prototype.isEmpty=function(){return this.j==null};
    Lg.prototype.sizeBytes=function(){var a=Ng(this);return a?a.length:0};var mda=typeof Uint8Array.prototype.slice==="function",ah=0,bh=0,ifa;fh.prototype.init=function(a,b,c,d){d=d===void 0?{}:d;this.vI=d.vI===void 0?!1:d.vI;a&&(a=Qg(a),this.B=a.buffer,this.G=a.jx,this.D=b||0,this.C=c!==void 0?this.D+c:this.B.length,this.j=this.D)};
    fh.prototype.free=function(){this.clear();Ch.length<100&&Ch.push(this)};
    fh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.vI=!1};
    fh.prototype.reset=function(){this.j=this.D};
    var Ch=[];Dh.prototype.free=function(){this.j.clear();this.B=this.D=-1;e2.length<100&&e2.push(this)};
    Dh.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
    var e2=[];var tda,wda;Jh.prototype.length=function(){return this.j.length};
    Jh.prototype.end=function(){var a=this.j;this.j=[];return a};var ek=typeof Symbol==="function"&&typeof Symbol()==="symbol",f2=Rh(),Wda=Rh("0di"),Jj=Rh("2ex"),iea=Rh("0dg"),fk=Rh("1oa");Math.max.apply(Math,g.ra(Object.values({FLa:1,zLa:2,qLa:4,p0a:8,o0a:16,tXa:32,Hva:64,lgb:128,mIa:256,jIa:512,ALa:1024,NHa:2048,adb:4096,OHa:8192})));var Th=ek?function(a,b){a[f2]|=b}:function(a,b){a.oo!==void 0?a.oo|=b:Object.defineProperties(a,{oo:{value:b,
            configurable:!0,writable:!0,enumerable:!1}})},Oj=ek?function(a,b){a[f2]&=~b}:function(a,b){a.oo!==void 0&&(a.oo&=~b)},qi=ek?function(a){return a[f2]|0}:function(a){return a.oo|0},Fj=ek?function(a){return a[f2]}:function(a){return a.oo},Vh=ek?function(a,b){a[f2]=b;
        return a}:function(a,b){a.oo!==void 0?a.oo=b:Object.defineProperties(a,{oo:{value:b,
            configurable:!0,writable:!0,enumerable:!1}});return a};var cj={},Eda={},Nj,flb=[];Vh(flb,55);Nj=Object.freeze(flb);ti.prototype.next=function(){if(this.C<this.j.length){var a=this.j[this.C++];return{done:!1,value:this.B?this.B.call(this.D,a):a}}return{done:!0,value:void 0}};
    ti.prototype[Symbol.iterator]=function(){return new ti(this.j,this.B,this.D)};
    var ui,Vea;Object.freeze(new function(){});
    Object.freeze(new Ida);var sea=Object.freeze(new Ida);var lea;var Oda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ej,gj,Xda;var glb=function(){try{var a=function(){return Ikb(Map,[],this.constructor)};
        g.x(a,Map);Lc(new a);return!1}catch(b){return!0}}();
    g.k=ij.prototype;g.k.get=function(a){return this.j.get(a)};
    g.k.set=function(a,b){this.j.set(a,b);this.size=this.j.size;return this};
    g.k.delete=function(a){a=this.j.delete(a);this.size=this.j.size;return a};
    g.k.clear=function(){this.j.clear();this.size=this.j.size};
    g.k.has=function(a){return this.j.has(a)};
    g.k.entries=function(){return this.j.entries()};
    g.k.keys=function(){return this.j.keys()};
    g.k.values=function(){return this.j.values()};
    g.k.forEach=function(a,b){return this.j.forEach(a,b)};
    ij.prototype[Symbol.iterator]=function(){return this.entries()};
    var jj=function(){function a(){return Ikb(Map,[],this.constructor)}
        if(glb)return Object.setPrototypeOf(ij.prototype,Map.prototype),Object.defineProperties(ij.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),ij;g.x(a,Map);return a}();
    g.x(kj,jj);g.k=kj.prototype;g.k.clear=function(){lj(this);jj.prototype.clear.call(this)};
    g.k.delete=function(a){lj(this);return jj.prototype.delete.call(this,this.EF(a,!0,!1))};
    g.k.entries=function(){var a=Array.from(jj.prototype.keys.call(this));return new ti(a,cea,this)};
    g.k.keys=function(){return jj.prototype.keys.call(this)};
    g.k.values=function(){var a=Array.from(jj.prototype.keys.call(this));return new ti(a,kj.prototype.get,this)};
    g.k.forEach=function(a,b){var c=this;jj.prototype.forEach.call(this,function(d,e){a.call(b,c.get(e),e,c)})};
    g.k.set=function(a,b){lj(this);a=this.EF(a,!0,!1);return a==null?this:b==null?(jj.prototype.delete.call(this,a),this):jj.prototype.set.call(this,a,this.nU(b,!0,!0,this.JM,!1,this.xI))};
    g.k.has=function(a){return jj.prototype.has.call(this,this.EF(a,!1,!1))};
    g.k.get=function(a){a=this.EF(a,!1,!1);var b=jj.prototype.get.call(this,a);if(b!==void 0){var c=this.JM;return c?(c=this.nU(b,!1,!0,c,this.bpb,this.xI),c!==b&&jj.prototype.set.call(this,a,c),c):b}};
    kj.prototype[Symbol.iterator]=function(){return this.entries()};
    kj.prototype.toJSON=void 0;kj.prototype.A$=Eda;var el,dl;g.k=U.prototype;g.k.toJSON=function(){return fl(this)};
    g.k.Lk=function(a){try{return dl=!0,a&&(el=a===cl||a!==Fea&&a!==Jea&&a!==Mea?cl:a),JSON.stringify(fl(this),eea)}finally{a&&(el=void 0),dl=!1}};
    g.k.clone=function(){var a=this.oa;return fj(this.constructor,Gj(a,Fj(a),!1))};
    g.k.jx=function(){return!!(qi(this.oa)&2)};
    g.k.KK=cj;g.k.toString=function(){try{return dl=!0,fl(this).toString()}finally{dl=!1}};var Sea=Symbol(),il,jl,ml=Symbol(),$ea=Symbol(),pl=Symbol(),ql=Symbol(),hlb=rl(function(a,b,c){if(a.B!==1)return!1;bm(b,c,mh(a.j));return!0},cm),ilb=rl(function(a,b,c){if(a.B!==1)return!1;
        a=mh(a.j);bm(b,c,a===0?void 0:a);return!0},cm),jlb=rl(function(a,b,c,d){if(a.B!==1)return!1;
        ck(b,c,d,mh(a.j));return!0},cm),klb=rl(function(a,b,c){if(a.B!==0)return!1;
        bm(b,c,hh(a.j));return!0},dm),llb=rl(function(a,b,c){if(a.B!==0)return!1;
        a=hh(a.j);bm(b,c,a===0?void 0:a);return!0},dm),mlb=rl(function(a,b,c,d){if(a.B!==0)return!1;
        ck(b,c,d,hh(a.j));return!0},dm),nlb=rl(function(a,b,c){if(a.B!==0)return!1;
        bm(b,c,ih(a.j));return!0},em),olb=rl(function(a,b,c){if(a.B!==0)return!1;
        a=ih(a.j);bm(b,c,a===0?void 0:a);return!0},em),plb=rl(function(a,b,c,d){if(a.B!==0)return!1;
        ck(b,c,d,ih(a.j));return!0},em),qlb=rl(function(a,b,c){if(a.B!==1)return!1;
        bm(b,c,lh(a.j));return!0},function(a,b,c){Bda(a,c,Uda(b))}),rlb=sl(function(a,b,c){if(a.B!==1&&a.B!==2)return!1;
        b=Pj(b,Fj(b),c,2,!1);if(a.B==2)for(c=ih(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(lh(a.j));else b.push(lh(a.j));return!0},function(a,b,c){b=gl(Uda,b,!1);
        if(b!=null)for(var d=0;d<b.length;d++)Bda(a,c,b[d])}),slb=rl(function(a,b,c){if(a.B!==0)return!1;
        bm(b,c,Bh(a.j));return!0},jfa),tlb=rl(function(a,b,c,d){if(a.B!==0)return!1;
        ck(b,c,d,Bh(a.j));return!0},jfa),g2=rl(function(a,b,c){if(a.B!==2)return!1;
        bm(b,c,Ih(a));return!0},kfa),ulb=sl(function(a,b,c){if(a.B!==2)return!1;
        a=Ih(a);Wj(b,c,uea,a);return!0},function(a,b,c){b=gl(aj,b,!0);
        if(b!=null)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];h!=null&&Oh(e,f,Pca(h))}}),vlb=rl(function(a,b,c,d){if(a.B!==2)return!1;
        ck(b,c,d,Ih(a));return!0},kfa),Qea=new Ph(function(a,b,c,d,e){if(a.B!==2)return!1;
        Fh(a,gk(b,d,c,!0),e);return!0},fm,!1,!0),Zea=new Ph(function(a,b,c,d,e){if(a.B!==2)return!1;
        Fh(a,gk(b,d,c),e);return!0},fm,!1,!0),h2;
    h2=new Ph(function(a,b,c,d,e){if(a.B!==2)return!1;d=R(void 0,d[0],d[1]);var f=Fj(b);si(f);var h=Pj(b,f,c,3);f=Fj(b);qi(h)&4&&(h=Qh(h),Vh(h,(qi(h)|1)&-2079),Kj(b,f,c,h));h.push(d);Fh(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)fm(a,b[f],c,d,e)},!0,!0);
    var i2=new Ph(function(a,b,c,d,e,f){if(a.B!==2)return!1;ak(b,Fj(b),f,c);b=gk(b,d,c);Fh(a,b,e);return!0},fm,!1,!0),wlb=rl(function(a,b,c){if(a.B!==2)return!1;
        bm(b,c,rda(a));return!0},function(a,b,c){b=Vda(b);
        b!=null&&Oh(a,c,Qg(b).buffer)}),xlb=sl(function(a,b,c){if(a.B!==2)return!1;
        a=rda(a);Wj(b,c,uea,a);return!0},function(a,b,c){b=gl(Vda,b,!1);
        if(b!=null)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];h!=null&&Oh(e,f,Qg(h).buffer)}}),j2=rl(function(a,b,c){if(a.B!==0)return!1;
        bm(b,c,ih(a.j)>>>0);return!0},function(a,b,c){b=Ci(b);
        b!=null&&b!=null&&(Nh(a,c,0),Kh(a.j,b))}),ylb=rl(function(a,b,c){if(a.B!==0)return!1;
        bm(b,c,ih(a.j));return!0},function(a,b,c){b=Bi(b);
        b!=null&&(b=parseInt(b,10),Nh(a,c,0),zda(a.j,b))});g.x(hm,U);hm.yb=[1,2,3,4];var nfa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.x(km,U);var qm=[1,2,3],zlb=[0,qm,vlb,plb,tlb];var Alb=[0,h2,[0,hlb,klb]];g.x(lm,U);var pm=[1,2,3],Blb=[0,pm,mlb,jlb,i2,Alb];g.x(mm,U);mm.yb=[1];var Clb=[0,h2,zlb,Blb];var Dlb=[0,[1,2,3],i2,[0,g2,-1,slb],i2,[0,g2,-1,nlb,slb],i2,[0,g2]];g.x(nm,U);nm.prototype.Er=function(){var a=Cea(this,3,3,void 0,!0);Fda(a);return a[void 0]};
    nm.yb=[3,6,4];nm.prototype.j=lfa([0,g2,Dlb,ulb,h2,Clb,qlb,rlb]);g.x(om,U);om.yb=[1];var ufa={};g.k=rm.prototype;g.k.isEnabled=function(){if(!g.Ua.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{SF:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
    g.k.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.Ida;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.SF}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');l===void 0&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(e!=null?";samesite="+
        e:"")};
    g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=jc(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};
    g.k.remove=function(a,b,c){var d=this.get(a)!==void 0;this.set(a,"",{SF:0,path:b,domain:c});return d};
    g.k.Sn=function(){return sm(this).keys};
    g.k.Gm=function(){return sm(this).values};
    g.k.isEmpty=function(){return!this.j.cookie};
    g.k.clear=function(){for(var a=sm(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
    var MA=new rm(typeof document=="undefined"?null:document);g.x(Om,U);Om.yb=[2];Pm.prototype.setInterval=function(a){this.intervalMs=a;this.We&&this.enabled?(this.stop(),this.start()):this.We&&this.stop()};
    Pm.prototype.start=function(){var a=this;this.enabled=!0;this.We||(this.We=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
    Pm.prototype.stop=function(){this.enabled=!1;this.We&&(clearTimeout(this.We),this.We=void 0)};
    Pm.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<this.intervalMs*.8?this.We=setTimeout(function(){a.tick()},this.intervalMs-b):(this.We&&(clearTimeout(this.We),this.We=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.We=void 0};g.x(Qm,U);g.x(Rm,U);g.Sm.prototype.B=0;g.Sm.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
    g.Sm.prototype.getValue=function(){return this.C};g.x(Um,U);Um.prototype.RJ=function(){return Tk(this,1)};g.x(Vm,U);g.x(Wm,U);Wm.yb=[1];g.x(Xm,U);var zfa=["platform","platformVersion","architecture","model","uaFullVersion"],Zm=new Wm,Ym=null;g.x($m,U);g.x(an,U);an.yb=[1,2,3,4,5];g.x(bn,U);g.x(cn,U);cn.prototype.L=function(){return Mj(this,an,7)};
    cn.prototype.Gz=function(){return Lj(this,16)};
    cn.yb=[3,20,27];g.x(dn,U);dn.prototype.kH=function(a){return T(this,2,a)};
    dn.yb=[3,5];g.x(en,U);var Elb=gm(en);en.yb=[5,6,7];g.x(Bfa,U);var k2;k2=new function(a,b){this.B=a;this.j=b;this.isRepeated=0;this.C=g.hk;this.defaultValue=void 0}(175237375,Bfa);g.x(hn,g.I);g.k=hn.prototype;g.k.xa=function(){this.iP();this.j.stop();this.qa.stop();g.I.prototype.xa.call(this)};
    g.k.dispatch=function(a){if(this.N)if(a instanceof cn)this.log(a);else{var b=new cn;a=a.Lk();b=S(b,8,a);this.log(b)}};
    g.k.log=function(a){if(this.N){a=a.clone();var b=this.Fa++;a=Xk(a,21,b);this.componentId&&S(a,26,this.componentId);if(zea(a)==null){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Lj(b,1,Fi(c))}Mk(a,15)!=null||Xk(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=a,c=this.experimentIds.clone(),ik(b,Om,16,c));b=this.C.length-1E3+1;b>0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.mE||this.j.enabled||this.j.start()}};
    g.k.flush=function(a,b){var c=this;if(this.C.length===0)a&&a();else{var d=Date.now();if(this.Ca>d&&this.Y<d)b&&b("throttled");else{this.network&&(typeof this.network.RJ==="function"?Efa(this.B,this.network.RJ()):Efa(this.B,0));var e=this.B.build(this.C,this.G,this.Z,this.RB,0,0);d={};var f=this.HE();f&&(d.Authorization=f);this.K||(this.K=gn());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,vf().location.origin)).toString()}h=new URL(h);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,
        h.searchParams.set("authuser",this.sessionIndex));this.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:this.pageId}),h.searchParams.set("pageId",this.pageId));if(f&&this.ra===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.Lk();d={url:h.toString(),body:l,Zob:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis};h=function(m){c.D.reset();c.j.setInterval(c.D.getValue());if(m){var n=null;try{var p=
        JSON.stringify(JSON.parse(m.replace(")]}'\n","")));n=Elb(p)}catch(q){}n&&(m=Number,p="-1",p=p===void 0?"0":p,p=Nk(zea(n),p),m=m(p),m>0&&(c.Y=Date.now(),c.Ca=c.Y+m),n=k2.j?k2.C(n,k2.j,k2.B,!0):k2.C(n,k2.B,null,!0),n=n===null?void 0:n)&&(n=Pk(n,1,-1),n!==-1&&(c.D=new g.Sm(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0};
        l=function(m,n){var p=xea(e,cn);var q=Mk(e,14);g.Tm(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.ra=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.mE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z};
        c.network&&c.network.send(d,h,l)}}}};
    g.k.iP=function(){Ffa(this.B,!0);this.flush();Ffa(this.B,!1)};
    g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
    fn.prototype.kH=function(a){this.j.kH(a);return this};
    fn.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;e=e===void 0?0:e;f=f===void 0?0:f;c=c===void 0?0:c;if(Mj(kn(this),Xm,11)){var h=ln(this);Vk(h,3,c)}Mj(kn(this),Xm,11)&&(c=ln(this),Vk(c,4,e));Mj(kn(this),Xm,11)&&(e=ln(this),Vk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Lj(f,4,Fi(e));a=kk(f,cn,3,a.slice());d&&(f=new Qm,d=Vk(f,13,d),f=new Rm,d=ik(f,Qm,2,d),f=new bn,d=ik(f,Rm,1,d),d=T(d,2,9),ik(a,bn,18,d));b&&Xk(a,14,b);return a};mn.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.G(function(u){switch(u.j){case 1:return f=(e=d.T6?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(u,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(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ia(3);break}if((n=b)==null){u.Ia(7);break}return g.z(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.Ea(u);clearTimeout(f);g.Fa(u,0);break;case 2:p=g.Da(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ia(3)}})};
    mn.prototype.RJ=function(){return 4};g.x(nn,g.I);nn.prototype.HX=function(){this.D=!0;return this};
    nn.prototype.build=function(){this.network||(this.network=new mn);var a=new hn({logSource:this.logSource,HE:this.HE?this.HE:xfa,sessionIndex:this.sessionIndex,Yea:this.B,qx:this.C,mE:!1,HX:this.D,XW:this.XW,network:this.network});g.M(this,a);if(this.j){var b=this.j,c=jn(a.B);S(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.RB&&(a.RB=this.RB);this.pageId&&(a.pageId=this.pageId);this.Gz&&((c=this.Gz)?(a.experimentIds||(a.experimentIds=new Om),b=a.experimentIds,c=c.Lk(),S(b,4,c)):a.experimentIds&&
        Lj(a.experimentIds,4));Gfa(a.B);this.network.kH&&this.network.kH(this.logSource);this.network.Zda&&this.network.Zda(a);return a};g.x(on,g.I);on.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new om,c=[],d=0;d<a.length;d++){var e=a[d],f=g.ofa(e);c.push(f);e.clear()}kk(b,nm,1,c);this.j.dispatch(b);this.j.flush()}};g.x(qn,Error);qn.prototype.toString=function(){var a="RpcError("+(Hfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};Ifa.prototype.Lk=function(a){var b=[];sn(this,a,b);return b.join("")};
    var Lfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Kfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;tn.prototype.C=null;tn.prototype.getOptions=function(){return this.C||(this.C=this.D())};var Flb;g.lb(un,tn);un.prototype.j=function(){return new XMLHttpRequest};
    un.prototype.D=function(){return{}};
    Flb=new un;var xn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Sfa=/#|$/,Tfa=/[?&]($|#)/;g.lb(g.Ao,g.Ed);var aga=/^https?$/i,Glb=["POST","PUT"],Vfa=[];g.k=g.Ao.prototype;g.k.A7=function(){this.dispose();g.Gb(Vfa,this)};
    g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.D="";this.B=0;this.Fa=!1;this.C=!0;this.j=this.N?this.N.j():Flb.j();this.Ca=this.N?this.N.getOptions():Flb.getOptions();this.j.onreadystatechange=(0,g.ib)(this.Y_,this);try{this.getStatus(),this.Ea=!0,this.j.open(b,String(a),!0),this.Ea=!1}catch(h){this.getStatus();Yfa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
        Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=g.v(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
        e=g.Ua.FormData&&a instanceof g.Ua.FormData;!g.Eb(Glb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.v(c);for(d=b.next();!d.done;d=b.next())c=g.v(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ma&&(this.j.responseType=this.Ma);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{$fa(this),this.ra>0&&(this.getStatus(),this.qa=g.og(this.S5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a),
            this.Z=!1}catch(h){this.getStatus(),Yfa(this,h)}};
    g.k.S5=function(){typeof Co!="undefined"&&this.j&&(this.D="Timed out after "+this.ra+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
    g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Bo(this))};
    g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Bo(this,!0));g.Ao.Pf.xa.call(this)};
    g.k.Y_=function(){this.Na()||(this.Ea||this.Z||this.G?Zfa(this):this.Gba())};
    g.k.Gba=function(){Zfa(this)};
    g.k.isActive=function(){return!!this.j};
    g.k.isComplete=function(){return g.Do(this)==4};
    g.k.getStatus=function(){try{return g.Do(this)>2?this.j.status:-1}catch(a){return-1}};
    g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),a===null?void 0:a};
    g.k.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};Io.prototype.send=function(a,b,c){b=b===void 0?function(){}:b;
        c=c===void 0?function(){}:c;
        Wfa(a.url,function(d){d=d.target;Eo(d)?b(g.Fo(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
    Io.prototype.RJ=function(){return 1};Ko.prototype.start=function(){this.startMillis=Jo()};
    Ko.prototype.done=function(){this.startMillis!=null&&this.logger.AK(this.event,Jo()-this.startMillis)};
    g.k=Lo.prototype;g.k.WQ=function(){};
    g.k.AK=function(){};
    g.k.wk=function(){};
    g.k.hn=function(){};
    g.k.XQ=function(a,b,c){return c};
    g.k.ZZ=function(){};
    g.k.Ax=function(){};
    g.k.OF=function(){};
    g.x(Mo,g.I);g.k=Mo.prototype;g.k.WQ=function(){this.Fa.j.hm("/client_streamz/bg/fsc",this.D,this.Ji)};
    g.k.AK=function(a,b){if(a==="t")this.Ca.Oh(b,this.D,this.Ji);else if(a==="n")this.Ea.Oh(b,this.D,this.Ji);else if(a==="h"||a==="u"||a==="k"||a==="P"||a==="p"){if(a=this.B.get(a))this.Z.j.hm("/client_streamz/bg/fcc",a,this.Ji),this.Y.Oh(b,a,this.Ji)}else this.qa.Oh(b,a,"",this.C,this.Ji)};
    g.k.wk=function(a){var b=this.G.get(a);b?this.ra.j.hm("/client_streamz/bg/fiec",this.D,this.Ji,b):this.errorCount.j.hm("/client_streamz/bg/cec",a,"",this.C,this.Ji)};
    g.k.XQ=function(a,b,c){function d(h){var l=Jo()-f;e.Ma.Oh(l,a,b,h,e.C,e.Ji)}
        var e=this,f=Jo();c.then(function(){d(0)},function(h){h instanceof qn?d(h.code):d(-1)});
        return c};
    g.k.ZZ=function(a){this.Sa.j.hm("/client_streamz/bg/po/csc",a,this.C,this.Ji)};
    g.k.Ax=function(a){this.N.j.hm("/client_streamz/bg/po/ctav",a,this.C,this.Ji)};
    g.k.OF=function(a){this.La.j.hm("/client_streamz/bg/po/cwsc",a,this.C,this.Ji)};
    g.k.hn=function(){this.j.hn()};g.x(No,U);g.x(Oo,U);g.x(Po,U);var kga=gm(Po);Po.messageId="bfkj";g.x(Ro,g.I);Ro.prototype.snapshot=function(a){var b=this;if(this.Na())throw Error("Already disposed");this.xg.WQ();return this.B.then(function(c){var d=c.q7;return new Promise(function(e){var f=new Ko(b.xg,"n");d(function(h){f.done();b.xg.hn();e(h)},[a.Dt,
        a.eea,a.s3,a.hea])})})};
    Ro.prototype.V1=function(a){if(this.Na())throw Error("Already disposed");this.xg.WQ();var b=new Ko(this.xg,"n");a=this.C([a.Dt,a.eea,a.s3,a.hea]);b.done();this.xg.hn();return a};
    g.x(So,Error);g.x(Vo,U);g.x(Wo,U);g.x(Xo,U);Yo.prototype.AE=function(a,b){var c=this,d,e,f,h,l;return g.G(function(m){if(m.j==1){var n=new Vo;d=$k(n,1,c.ys);a&&$k(d,2,a);b&&$k(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=Og(Uj(f,2));if(h.length)return m.return(lga(h));l=g.hk(f,Po,1);if(!l)throw Error("Missing field");return m.return(l)})};
    Yo.prototype.VX=function(a){var b=this,c,d;return g.G(function(e){c=b.j();var f=new Wo;f=$k(f,1,b.ys);d=$k(f,2,a);f=e.return;var h=b.client;h=Kq(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Hlb);return f.call(e,h)})};
    Yo.prototype.ping=function(a,b){var c=this,d,e;return g.G(function(f){d=c.j();e=b||new Xo;var h=S(e,1,c.ys);S(h,2,a);return g.z(f,c.client.ping(e,d),0)})};var Ilb,nga=(Ilb=Math.imul)!=null?Ilb:function(a,b){return a*b|0};
    $o.prototype.Lk=function(){return String(this.j)+","+this.B.join()};
    $o.prototype.Eh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);d!==-1?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=mga("iU5q-!O9@$",this.Lk());c&&a&&b(c);return a};
    var ap=[196,200,224,18];var uga=globalThis.TextEncoder?new TextEncoder:void 0;g.x(cp,g.I);cp.prototype.VF=function(a,b){b=this.j(a,b);a=new Ko(this.logger,this.B);b=g.Fg(b,2);a.done();return b};
    g.x(fp,cp);fp.prototype.j=function(a,b){++this.Z>=this.Y&&this.D.resolve();var c=a(),d=new Ko(this.logger,"C");a=this.N(c);d.done();if(a===void 0)throw new So(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new So(18,"ODM:Invalid");if(b==null?0:b.oea)try{var e;(e=this.K())==null||tga(e,c,a,b.cX,this.G)}catch(f){b=new So(24,"ELX:write",f),e=this.onError,this.logger.wk(b.code),e==null||e(b)}return a};
    g.x(gp,cp);gp.prototype.j=function(){return this.G};
    g.x(hp,cp);hp.prototype.j=function(){return Hg(this.G)};
    hp.prototype.VF=function(){return this.G};
    g.x(ip,cp);ip.prototype.j=function(){if(this.G)return this.G;this.G=vga(this,function(a){return"_"+jm(a)});
        return vga(this,function(a){return a})};
    g.x(jp,cp);jp.prototype.j=function(a){var b=a();if(b.length>118)throw new So(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.G&255,this.clientState],[a>>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;d<b.length;++d)b[d]^=b[d%c];this.logger.ZZ(this.clientState);return a};g.x(kp,U);var Jlb=gm(kp);lp.prototype.HJ=function(){return this.C};
    lp.prototype.getMetadata=function(){return this.B};mp.prototype.getMetadata=function(){return this.j};
    mp.prototype.HJ=function(){return this.B};
    mp.prototype.getStatus=function(){return null};np.prototype.getName=function(){return this.name};
    np.prototype.getName=np.prototype.getName;var Klb=new np("/google.internal.waa.v1.Waa/Create",Vo,kp,function(a){return a.Lk()},Jlb);g.x(op,U);var Llb=gm(op);var Hlb=new np("/google.internal.waa.v1.Waa/GenerateIT",Wo,op,function(a){return a.Lk()},Llb);g.x(pp,U);var Mlb=new np("/google.internal.waa.v1.Waa/Ping",Xo,pp,function(a){return a.Lk()},gm(pp));var Xga=new Set(["SAPISIDHASH","APISIDHASH"]);var Sga=Promise;g.x(qp,U);qp.prototype.getValue=function(){var a=Ij(this,2);if(Array.isArray(a)||a instanceof U)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Uj(this,2)};g.x(rp,U);rp.prototype.getMessage=function(){return Sk(this,2)};
    var Bga=gm(rp);rp.yb=[3];sp.prototype.on=function(a,b){a=="data"?this.C.push(b):a=="metadata"?this.G.push(b):a=="status"?this.K.push(b):a=="end"?this.D.push(b):a=="error"&&this.B.push(b);return this};
    sp.prototype.removeListener=function(a,b){a=="data"?gq(this.C,b):a=="metadata"?gq(this.G,b):a=="status"?gq(this.K,b):a=="end"?gq(this.D,b):a=="error"&&gq(this.B,b);return this};
    sp.prototype.cancel=function(){this.j.abort()};
    sp.prototype.cancel=sp.prototype.cancel;sp.prototype.removeListener=sp.prototype.removeListener;sp.prototype.on=sp.prototype.on;g.lb(g.hq,tn);g.hq.prototype.j=function(){var a=new iq(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
    g.hq.prototype.D=Id({});g.hq.prototype.setCredentialsMode=function(a){this.B=a};
    g.lb(iq,g.Ed);g.k=iq.prototype;g.k.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.Y=b;this.readyState=1;jq(this)};
    g.k.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Ua).fetch(new Request(this.Y,b)).then(this.B9.bind(this),this.aK.bind(this))};
    g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
        this.readyState>=1&&this.j&&this.readyState!=4&&(this.j=!1,kq(this));this.readyState=0};
    g.k.B9=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,jq(this)),this.j&&(this.readyState=3,jq(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.z9.bind(this),this.aK.bind(this));else if(typeof g.Ua.ReadableStream!=="undefined"&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
        []}else this.response=this.responseText="",this.N=new TextDecoder;Cga(this)}else a.text().then(this.A9.bind(this),this.aK.bind(this))};
    g.k.q9=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?kq(this):jq(this);this.readyState==3&&Cga(this)}};
    g.k.A9=function(a){this.j&&(this.response=this.responseText=a,kq(this))};
    g.k.z9=function(a){this.j&&(this.response=a,kq(this))};
    g.k.aK=function(){this.j&&kq(this)};
    g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
    g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""};
    g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
    g.k.setCredentialsMode=function(a){this.G=a};
    Object.defineProperty(iq.prototype,"withCredentials",{get:function(){return this.G==="include"},
        set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.lq.prototype.toString=function(){var a=[],b=this.G;b&&a.push(sq(b,Nlb,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(sq(b,Nlb,!0),"@"),a.push(g.Xe(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(sq(c,c.charAt(0)=="/"?Olb:Plb,!0));(c=this.C.toString())&&a.push("?",c);(c=this.K)&&a.push("#",sq(c,Qlb));return a.join("")};
    g.lq.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.mq(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.nq(b,a.j):c=a.D!=null;var d=a.B;if(c)g.oq(b,a.D);else if(c=!!a.B){if(d.charAt(0)!="/")if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");e!=-1&&(d=b.B.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(g.hc(e,"./")||g.hc(e,"/.")){d=dc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];l=="."?d&&h==e.length&&f.push(""):l==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),
    d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=a.C.toString()!=="";c?pq(b,a.C.clone()):c=!!a.K;c&&(b.K=a.K);return b};
    g.lq.prototype.clone=function(){return new g.lq(this)};
    var Nlb=/[#\/\?@]/g,Plb=/[#\?:]/g,Olb=/[#\?]/g,Ega=/[#\?@]/g,Qlb=/#/g;g.k=rq.prototype;g.k.add=function(a,b){vq(this);this.C=null;a=wq(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
    g.k.remove=function(a){vq(this);a=wq(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1};
    g.k.clear=function(){this.j=this.C=null;this.B=0};
    g.k.isEmpty=function(){vq(this);return this.B==0};
    g.k.forEach=function(a,b){vq(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
    g.k.Sn=function(){vq(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
    g.k.Gm=function(a){vq(this);var b=[];if(typeof a==="string")Gga(this,a)&&(b=b.concat(this.j.get(wq(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
    g.k.set=function(a,b){vq(this);this.C=null;a=wq(this,a);Gga(this,a)&&(this.B=this.B-this.j.get(a).length);this.j.set(a,[b]);this.B=this.B+1;return this};
    g.k.get=function(a,b){if(!a)return b;a=this.Gm(a);return a.length>0?String(a[0]):b};
    g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Xe(d);d=this.Gm(d);for(var f=0;f<d.length;f++){var h=e;d[f]!==""&&(h+="="+g.Xe(d[f]));a.push(h)}}return this.C=a.join("&")};
    g.k.clone=function(){var a=new rq;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.lb(g.yq,g.I);var Rlb=[];g.k=g.yq.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Rlb[0]=b.toString()),b=Rlb);for(var e=0;e<b.length;e++){var f=g.ud(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
    g.k.MF=function(a,b,c,d){return Jga(this,a,b,c,d)};
    g.k.Pc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Pc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.db(d)?!!d.capture:!!d,e=e||this.B||this,c=vd(c),d=!!d,b=Rc(a)?a.UE(b,c,d,e):a?(a=wd(a))?a.UE(b,c,d,e):null:null,b&&(Ad(b),delete this.j[b.key])};
    g.k.removeAll=function(){g.Tc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Ad(a)},this);
        this.j={}};
    g.k.xa=function(){g.yq.Pf.xa.call(this);this.removeAll()};
    g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Kga.prototype.isInputValid=function(){return this.C};zq.prototype.isInputValid=function(){return this.j!=3};
    zq.prototype.wf=function(){return this.K};
    zq.prototype.sI=function(){return!0};
    zq.prototype.parse=function(a){function b(m){m&128&&Aq(f,h,l,"invalid tag");(m&7)!=2&&Aq(f,h,l,"invalid wire type");f.C=m>>>3;f.C!=1&&f.C!=2&&f.C!=15&&Aq(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
        function c(m){f.D++;f.D==5&&m&240&&Aq(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.Z=0,typeof Uint8Array!=="undefined"?f.G=new Uint8Array(f.B):f.G=Array(f.B),f.B==0&&e())}
        function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
        function e(){if(f.C<15){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;l<h.length;){switch(f.j){case 3:Aq(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Y++;l++}a=f.N;f.N=[];return a.length>0?a:null};Bq.prototype.isInputValid=function(){return this.j===null};
    Bq.prototype.wf=function(){return this.j};
    Bq.prototype.sI=function(){return!1};
    Bq.prototype.parse=function(a){this.j!==null&&Mga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Lga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(d==0)var e=null;else{try{var f=Wca(c.j.slice(0,d*4))}catch(h){Lga(c,c.j,h.message)}c.B+=d*4;c.j=c.j.slice(d*4);e=f}b=e===null?null:this.D.parse(e)}catch(h){Mga(this,a,h.message)}this.B+=a.length;return b};var Slb={INIT:0,ID:1,FN:2,iz:3,LC:4,KC:5,STRING:6,zN:7,VV:8,jW:9,kW:10,lW:11,xU:12,yU:13,zU:14,AU:15,ZV:16,aW:17,bW:18,A6:19,DN:20};g.k=Dq.prototype;g.k.isInputValid=function(){return this.G!=3};
    g.k.wf=function(){return this.Y};
    g.k.done=function(){return this.G===2};
    g.k.sI=function(){return!1};
    g.k.parse=function(a){function b(){for(;r<a.length;)if(Cq(a[r]))r++,f.C++;else break;return r<n}
        function c(){for(var u;;){u=a[r++];if(!u)break;f.C++;switch(f.j){case m.INIT:u==="{"?f.j=m.FN:u==="["?f.j=m.LC:Cq(u)||Eq(f,a,r);continue;case m.zN:case m.FN:if(Cq(u))continue;if(f.j===m.zN)h.push(m.VV);else if(u==="}"){e("{}");f.j=d();continue}else h.push(m.iz);u==='"'?f.j=m.STRING:Eq(f,a,r);continue;case m.VV:case m.iz:if(Cq(u))continue;u===":"?(f.j===m.iz&&(h.push(m.iz),f.B++),f.j=m.ID):u==="}"?(f.B--,e(),f.j=d()):u===","?(f.j===m.iz&&h.push(m.iz),f.j=m.zN):Eq(f,a,r);continue;case m.LC:case m.ID:if(Cq(u))continue;
            if(f.j===m.LC)if(f.B++,f.j=m.ID,u==="]"){f.B--;if(f.B===0){f.j=m.KC;return}e("[]");f.j=d();continue}else h.push(m.KC);u==='"'?f.j=m.STRING:u==="{"?f.j=m.FN:u==="["?f.j=m.LC:u==="t"?f.j=m.jW:u==="f"?f.j=m.xU:u==="n"?f.j=m.ZV:u!=="-"&&("0123456789".indexOf(u)!==-1?f.j=m.DN:Eq(f,a,r));continue;case m.KC:if(u===",")h.push(m.KC),f.j=m.ID,f.B===1&&(q=r);else if(u==="]"){f.B--;if(f.B===0)return;e();f.j=d()}else if(Cq(u))continue;else Eq(f,a,r);continue;case m.STRING:var w=r;a:for(;;){for(;f.Z>0;)if(u=a[r++],
            f.Z===4?f.Z=0:f.Z++,!u)break a;if(u==='"'&&!f.N){f.j=d();break}if(u==="\\"&&!f.N&&(f.N=!0,u=a[r++],!u))break;if(f.N)if(f.N=!1,u==="u"&&(f.Z=1),u=a[r++])continue;else break;l.lastIndex=r;u=l.exec(a);if(!u){r=a.length+1;break}r=u.index+1;u=a[u.index];if(!u)break}f.C+=r-w;continue;case m.jW:if(!u)continue;u==="r"?f.j=m.kW:Eq(f,a,r);continue;case m.kW:if(!u)continue;u==="u"?f.j=m.lW:Eq(f,a,r);continue;case m.lW:if(!u)continue;u==="e"?f.j=d():Eq(f,a,r);continue;case m.xU:if(!u)continue;u==="a"?f.j=m.yU:
            Eq(f,a,r);continue;case m.yU:if(!u)continue;u==="l"?f.j=m.zU:Eq(f,a,r);continue;case m.zU:if(!u)continue;u==="s"?f.j=m.AU:Eq(f,a,r);continue;case m.AU:if(!u)continue;u==="e"?f.j=d():Eq(f,a,r);continue;case m.ZV:if(!u)continue;u==="u"?f.j=m.aW:Eq(f,a,r);continue;case m.aW:if(!u)continue;u==="l"?f.j=m.bW:Eq(f,a,r);continue;case m.bW:if(!u)continue;u==="l"?f.j=d():Eq(f,a,r);continue;case m.A6:u==="."?f.j=m.DN:Eq(f,a,r);continue;case m.DN:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j=
            d();continue;default:Eq(f,a,r)}}}
        function d(){var u=h.pop();return u!=null?u:m.ID}
        function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(u):f.K.push(JSON.parse(u)),q=r)}
        for(var f=this,h=f.ra,l=f.Ca,m=Slb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Eq(f,a,r),null;case 2:return b()&&Eq(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if(t==="["){f.G=1;p=r;f.j=m.LC;continue}else Eq(f,a,r)}return null;case 1:return c(),f.B===0&&f.j==m.KC?(f.G=2,f.D=a.substring(r)):f.D=q===-1?f.D+a.substring(p):a.substring(q),f.K.length>0?(t=f.K,f.K=[],t):null}return null};Fq.prototype.isInputValid=function(){return this.G===null};
    Fq.prototype.wf=function(){return this.G};
    Fq.prototype.sI=function(){return!1};
    Fq.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);}
        function c(){f.C=new Dq({Vob:!0,W7:!0})}
        function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
        function e(m){if(m){(f.K||m.length>1)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
        for(var f=this,h=0;h<a.length;){var l;if(l=f.B!==2){a:{for(;h<a.length;){if(!Cq(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:a[h]==="["?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:a[h]==="["?(f.B=2,c()):a[h]===","||a.slice(h,h+5)=="null,"?f.B=3:a[h]==="]"?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
            h,h=a.length);break;case 3:a[h]===","||a.slice(h,h+5)=="null,"?(f.B=4,c(),f.C.parse("["),h+=a[h]===","?1:5,f.j++):a[h]==="]"&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return f.D.length>0?(a=f.D,f.D=[],a):null};Gq.prototype.TP=function(){return this.j};
    Gq.prototype.getStatus=function(){return this.D};
    Gq.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Do(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Fo(this.j);a=[];if(g.Go(this.j)instanceof Array){var f=g.Go(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?Hq(this,7):c==7?Hq(this,8):d||Hq(this,3)),this.B||(this.B=Nga(this.j),this.B==null&&Hq(this,5)),this.D>2)Iq(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.sI())for(var l=0;l<h;l++){var m=
        this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:b==4&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Hq(this,5);Iq(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);n!=null&&this.G&&this.G(n)}catch(p){Hq(this,5);Iq(this);break a}}b==4?(e.length!=
    0||this.Y?Hq(this,2):Hq(this,4),Iq(this)):Hq(this,1)}}}catch(p){Hq(this,6),Iq(this)}};g.k=Oga.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.Gb(c,b);(a=this.j[a])&&g.Gb(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.Caa=function(a){var b=this.B.data;b&&Pga(a,b);(b=this.j.data)&&Pga(a,b);this.j.data=[]};
    g.k.pca=function(){switch(this.C.getStatus()){case 1:Jq(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Jq(this,"error");break;case 8:Jq(this,"close");break;case 2:Jq(this,"end")}};Qga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Rga(function(h){var l=h.HJ(),m=h.getMetadata(),n=Uga(e,!1);m=Vga(e,m,n,f+l.getName());var p=Wga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,wga(d,b,c))};Lq.prototype.create=function(a,b){return Kq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Klb)};
    Lq.prototype.ping=function(a,b){return Kq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Mlb)};var Tlb=1,Sq=new WeakMap;g.x(Mq,g.I);Mq.prototype.signal=function(){var a=new Oq(!1);this.signals.add(a);g.M(this,a);return a};
    Mq.prototype.SA=function(a){this.signals.has(a);return a.SA()};
    g.x(Oq,g.I);g.k=Oq.prototype;g.k.aO=function(){var a=this,b=Tlb++;Pq(function(){Zga(a,b)});
        return b};
    g.k.detach=function(a){var b=this;Pq(function(){var c=b.slots.get(a);c&&c.EX()})};
    g.k.value=function(a){return this.promise(!0,a)};
    g.k.SA=function(){return this.KZ};
    g.k.next=function(a){return this.promise(!1,a)};
    g.k.promise=function(a,b){var c=this,d=lca();Pq(function(){if(c.Na())d.reject(new mg("Signal initially disposed"));else if(b&&b.Na())d.reject(new mg("Owner initially disposed"));else if(a&&c.dX&&c.VY)d.resolve(c.KZ);else if(c.aC.add(d),lg(d.promise,function(){c.aC.delete(d)}),b){var e=function(){d.reject(new mg("Owner asynchronously disposed"))};
        lg(d.promise,function(){var f=Sq.get(b);f&&g.Gb(f,e)});
        cha(b,e)}});
        return d.promise};
    g.k.xa=function(){var a=this;g.I.prototype.xa.call(this);Pq(function(){for(var b=g.v(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.EX,c();a.slots.clear();b=g.v(a.aC);for(c=b.next();!c.done;c=b.next())c.value.reject(new mg("Signal asynchronously disposed"));a.aC.clear()})};
    var Qq=[],Rq=!1;g.x(Tq,g.I);Tq.prototype.start=function(){var a=this;if(this.Na())throw new Vq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=a.milliseconds>0?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)==null||Nq(d,a.C,a)}a.Cb.aS(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
        a.handle=void 0;a.D=1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)==null||Nq(d,a.C,a)}a.Cb.aS(a)},this.milliseconds);
        this.state=1}};
    Tq.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new Uq);var b;(b=this.Cb.E_)==null||b.call(this);if(this.G){var c;(c=this.j)==null||Nq(c,this.G)}}};
    Tq.prototype.xa=function(){this.clear();var a;(a=this.B)==null||a.reject(new Vq);this.state=4;g.I.prototype.xa.call(this)};
    Tq.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
    g.ea.Object.defineProperties(Tq.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return this.state===1}},
        isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}},
        isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}},
        tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
        Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.Qo),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Uq("Timer has been cancelled."));case 4:return Promise.reject(new Vq("Timer has been disposed."));default:Ne(this.state)}}},
        aS:{configurable:!0,enumerable:!0,get:function(){if(this.Na())throw new Vq("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new Mq(this)),this.C=this.j.signal());return this.C}},
        E_:{configurable:!0,enumerable:!0,get:function(){if(this.Na())throw new Vq("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new Mq(this)),this.G=this.j.signal());return this.G}}});
    g.x(Uq,wb);g.x(Vq,wb);g.x(Wq,g.I);g.k=Wq.prototype;g.k.isReady=function(){return!!this.j};
    g.k.ready=function(){var a=this;return g.G(function(b){return g.z(b,a.D.promise,0)})};
    g.k.AE=function(a){return gha(this,this.logger.XQ("c",a===void 0?1:a,this.aA.AE(Uo().j,null)),new So(10,"JVZ:Timeout"))};
    g.k.prefetch=function(){this.state===1&&(this.B=this.AE())};
    g.k.start=function(){if(this.state===1){this.state=2;var a=new Ko(this.logger,"r");this.ready().finally(function(){return void a.done()});
        iha(this)}};
    g.k.reportError=function(a){this.logger.wk(a.code);var b;(b=this.onError)==null||b.call(this,a)};
    g.k.VF=function(a){a:{a=Object.assign({},a);b:{var b=22;try{a.Cz&&!this.cache&&(this.cache=new qga(Math.min(a.Cz.C$,150),this.logger));b=23;var c;if(!this.isReady()&&((c=a.Cz)==null?0:c.r7)){var d;if((d=this.cache)==null)var e=void 0;else{if(a.vE)var f=a.vE;else if(a.Dt===void 0)f=[];else{var h=new Ko(this.logger,"c"),l=bp(a.Dt);h.done();f=a.vE=l}c:{c=f;var m=a.Cz.cX;if(d.index){var n=new Ko(d.logger,"R"),p=sga(c!=null?c:[]),q=globalThis.sessionStorage.getItem(p);if(q){try{var r=Hg(q);rga(r,m)}catch(L){globalThis.sessionStorage.removeItem(p);
        d.logger.Ax("c");e=void 0;break c}for(m=4;m<7&&r[m]===0;)m++;for(q=0;q<ap.length;q++)if(r[m++]!==ap[q]){globalThis.sessionStorage.removeItem(p);d.logger.Ax("d");e=void 0;break c}var t=(new DataView(r.buffer)).getUint32(m);if(Math.floor(Date.now()/1E3)>=t)globalThis.sessionStorage.removeItem(p),d.logger.Ax("e");else{var u=new Uint8Array(r.buffer,m+4);n.done();d.logger.Ax("a");e=u;break c}}else d.logger.Ax("m")}else d.logger.Ax("u");e=void 0}}if(d=e){var w=new Ko(this.logger,"a"),A=g.Fg(d,2);w.done();
        var C=A;break b}}}catch(L){this.reportError(new So(b,b===22?"GBJ:init":"RXO:read",L))}C=void 0}if(C)var E=C;else{try{if(this.Na())throw new So(21,"BNT:disposed");var H;E=(H=jha(this,a))!=null?H:kha(this,a);break a}catch(L){E=lha(this,a,L);break a}E=void 0}}return E};var pha={NONE:0,Uya:1},Wha={X3:0,r6a:1,q6a:2,s6a:3},js={F3:"a",sya:"d",VIDEO:"v"};Br.prototype.isVisible=function(){return this.kx?this.Be>=.3:this.Be>=.5};var Lr={Sva:0,tFa:1},Uha={NONE:0,IKa:1,RHa:2};Cr.prototype.getValue=function(){return this.B};
    g.x(Dr,Cr);Dr.prototype.C=function(a){this.B===null&&g.ed(this.D,a)&&(this.B=a)};
    g.x(Er,Cr);Er.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)};
    g.x(Fr,Cr);Fr.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};Gr.prototype.disable=function(){this.B=!1};
    Gr.prototype.enable=function(){this.B=!0};
    Gr.prototype.isEnabled=function(){return this.B};
    Gr.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var at=document,Pr=window;var Yia=!g.Ls&&!Cc();Mr.prototype.now=function(){return 0};
    Mr.prototype.B=function(){return 0};
    Mr.prototype.C=function(){return 0};
    Mr.prototype.j=function(){return 0};g.x(Or,Mr);Or.prototype.now=function(){return Nr()&&Pr.performance.now?Pr.performance.now():Mr.prototype.now.call(this)};
    Or.prototype.B=function(){return Nr()&&Pr.performance.memory?Pr.performance.memory.totalJSHeapSize||0:Mr.prototype.B.call(this)};
    Or.prototype.C=function(){return Nr()&&Pr.performance.memory?Pr.performance.memory.usedJSHeapSize||0:Mr.prototype.C.call(this)};
    Or.prototype.j=function(){return Nr()&&Pr.performance.memory?Pr.performance.memory.jsHeapSizeLimit||0:Mr.prototype.j.call(this)};var sha=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
        g.Ua.addEventListener("test",null,b)}catch(c){}return a});tha.prototype.isVisible=function(){return Sr(at)===1};Td("csi.gstatic.com");Td("googleads.g.doubleclick.net");Td("partner.googleadservices.com");Td("pubads.g.doubleclick.net");Td("securepubads.g.doubleclick.net");Td("tpc.googlesyndication.com");var vha={Ela:"allow-forms",Fla:"allow-modals",Gla:"allow-orientation-lock",Hla:"allow-pointer-lock",Ila:"allow-popups",Jla:"allow-popups-to-escape-sandbox",Kla:"allow-presentation",Lla:"allow-same-origin",Mla:"allow-scripts",Nla:"allow-top-navigation",Ola:"allow-top-navigation-by-user-activation"},zha=Kd(function(){return wha()});var Dha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Xr.prototype.Ce=function(a,b,c){a=a+"//"+b+c;var d=Hha(this)-c.length;if(d<0)return"";this.j.sort(function(n,p){return n-p});
        c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.B[f],l=0;l<h.length;l++){if(!d){c=c==null?f:c;break}var m=Gha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=c==null?f:c}}d="";c!=null&&(d=b+"trn="+c);return a+d};es.prototype.setInterval=function(a,b){return Pr.setInterval(a,b)};
    es.prototype.clearInterval=function(a){Pr.clearInterval(a)};
    es.prototype.setTimeout=function(a,b){return Pr.setTimeout(a,b)};
    es.prototype.clearTimeout=function(a){Pr.clearTimeout(a)};g.x(gs,U);gs.prototype.j=lfa([0,ilb,llb,-2,olb]);var Vha={A3a:1,Q6:2,dXa:3};Xha.prototype.yS=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Kc;if(b.B){a=a.split("&");for(var c=a.length-1;c>=0;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var l2=null;var ms=g.Ua.performance,Ulb=!!(ms&&ms.mark&&ms.measure&&ms.clearMarks),ks=Kd(function(){var a;if(a=Ulb){var b;if(l2===null){l2="";try{a="";try{a=g.Ua.top.location.hash}catch(c){a=g.Ua.location.hash}a&&(l2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=l2;a=!!b.indexOf&&b.indexOf("1337")>=0}return a});
    ls.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(ks()&&g.Yb(this.events,cia),this.events.length=0)};
    ls.prototype.start=function(a,b){if(!this.j)return null;var c=aia()||$ha();a=new bia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";ms&&ks()&&ms.mark(b);return a};
    ls.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=aia()||$ha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";ms&&ks()&&ms.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};dia.prototype.aR=function(a,b,c,d,e){e=e||this.RX;try{var f=new Xr;f.j.push(1);f.B[1]=Yr("context",a);b.error&&b.meta&&b.id||(b=new qs(rs(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Yr("msg",h)}var l=b.meta||{};if(this.VN)try{this.VN(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Fha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Yr("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(xn);var r=vn(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5);
        f.B[5]=n;Yha(this.j,e,f,c)}catch(t){try{Yha(this.j,e,{context:"ecmserr",rctx:a,msg:rs(t),url:m&&m.j.url},c)}catch(u){}}return this.BT};
    g.x(qs,Zha);var os,ps,ns=new ls;os=new function(){var a="https:";Pr&&Pr.location&&Pr.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01};
    ps=new dia;Pr&&Pr.document&&(Pr.document.readyState=="complete"?fia():ns.j&&Rr(Pr,"load",function(){fia()}));var iia=Date.now(),zs=-1,xs=-1,zja,As=-1,ys=!1;g.k=Bs.prototype;g.k.getHeight=function(){return this.bottom-this.top};
    g.k.clone=function(){return new Bs(this.top,this.right,this.bottom,this.left)};
    g.k.contains=function(a){return this&&a?a instanceof Bs?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
    g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
    g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
    g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
    g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Es.prototype.Ib=function(){return this.N};var Vlb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fu={J6:"start",g4:"firstquartile",w6:"midpoint",K6:"thirdquartile",COMPLETE:"complete",ERROR:"error",v6:"metric",PAUSE:"pause",E6:"resume",F6:"skip",P6:"viewable_impression",z6:"mute",O6:"unmute",i4:"fullscreen",f4:"exitfullscreen",N3:"bufferstart",M3:"bufferfinish",j4:"fully_viewable_audible_half_duration_impression",u6:"measurable_impression",C3:"abandon",e4:"engagedview",n4:"impression",T3:"creativeview",t6:"loaded",
        e5a:"progress",CLOSE:"close",mva:"collapse",w1a:"overlay_resize",x1a:"overlay_unmeasurable_impression",y1a:"overlay_unviewable_impression",A1a:"overlay_viewable_immediate_impression",z1a:"overlay_viewable_end_of_session_impression",V3:"custom_metric_viewable",G3:"audio_audible",I3:"audio_measurable",H3:"audio_impression"},Nka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Oka=["start","firstquartile","midpoint","thirdquartile"],Bja=["abandon"],Au={UNKNOWN:-1,J6:0,g4:1,w6:2,
        K6:3,COMPLETE:4,v6:5,PAUSE:6,E6:7,F6:8,P6:9,z6:10,O6:11,i4:12,f4:13,j4:14,u6:15,C3:16,e4:17,n4:18,T3:19,t6:20,V3:21,N3:22,M3:23,H3:27,I3:28,G3:29};var lia={Cga:"addEventListener",THa:"getMaxSize",UHa:"getScreenSize",VHa:"getState",WHa:"getVersion",k6a:"removeEventListener",MLa:"isViewable"};g.k=g.Gs.prototype;g.k.clone=function(){return new g.Gs(this.left,this.top,this.width,this.height)};
    g.k.contains=function(a){return a instanceof g.Ee?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=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var pia={};yia.prototype.update=function(a){a&&a.document&&(this.N=Fs(!1,a,this.isMobileDevice),this.j=Fs(!0,a,this.isMobileDevice),Aia(this,a),zia(this,a))};lt.prototype.cancel=function(){fs().clearTimeout(this.j);this.j=null};
    lt.prototype.schedule=function(){var a=this,b=fs(),c=is().j.j;this.j=b.setTimeout(hs(c,us(143,function(){a.B++;a.C.sample()})),jia())};g.k=mt.prototype;g.k.qD=function(){return!1};
    g.k.initialize=function(){return this.isInitialized=!0};
    g.k.gA=function(){return this.j.Ea};
    g.k.hF=function(){return this.j.qa};
    g.k.xj=function(a,b){if(!this.qa||(b===void 0?0:b))this.qa=!0,this.Ea=a,this.Z=0,this.j!=this||ot(this)};
    g.k.getName=function(){return this.j.Sa};
    g.k.Ot=function(){return this.j.nY()};
    g.k.nY=function(){return{}};
    g.k.Jr=function(){return this.j.Z};
    g.k.xV=function(){var a=$s();a.j=Fs(!0,this.C,a.isMobileDevice)};
    g.k.yV=function(){zia($s(),this.C)};
    g.k.BY=function(){return this.D.j};
    g.k.sample=function(){};
    g.k.isActive=function(){return this.j.K};
    g.k.sA=function(a){var b=this.j;this.j=a.Jr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,ot(this)):this.K!==this.j.K&&(this.K=this.j.K,ot(this))};
    g.k.Xt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(c===void 0||!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&&Dia(this)}};
    g.k.Dq=function(){return this.Y};
    g.k.dispose=function(){this.Fa=!0};
    g.k.Na=function(){return this.Fa};g.k=pt.prototype;g.k.oN=function(){return!0};
    g.k.jI=function(){};
    g.k.dispose=function(){if(!this.Na()){var a=this.B;g.Gb(a.G,this);a.Y&&this.Dq()&&Cia(a);this.jI();this.qa=!0}};
    g.k.Na=function(){return this.qa};
    g.k.Ot=function(){return this.B.Ot()};
    g.k.Jr=function(){return this.B.Jr()};
    g.k.gA=function(){return this.B.gA()};
    g.k.hF=function(){return this.B.hF()};
    g.k.sA=function(){};
    g.k.Xt=function(){this.nt()};
    g.k.Dq=function(){return this.ra};g.k=qt.prototype;g.k.Jr=function(){return this.j.Jr()};
    g.k.gA=function(){return this.j.gA()};
    g.k.hF=function(){return this.j.hF()};
    g.k.create=function(a,b,c){var d=null;this.j&&(d=this.kI(a,b,c),nt(this.j,d));return d};
    g.k.zV=function(){return this.rD()};
    g.k.rD=function(){return!1};
    g.k.init=function(a){return this.j.initialize()?(nt(this.j,this),this.D=a,!0):!1};
    g.k.sA=function(a){a.Jr()==0&&this.D(a.gA(),this)};
    g.k.Xt=function(){};
    g.k.Dq=function(){return!1};
    g.k.dispose=function(){this.G=!0};
    g.k.Na=function(){return this.G};
    g.k.Ot=function(){return{}};rt.prototype.add=function(a,b,c){++this.C;a=new Eia(a,b,c);this.j.push(new Eia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Jia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=ut(this.j);b.length>0&&(a+="?"+b);return a};vt.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(c===void 0?!a:c)this.D=0};var Oia=[1,.75,.5,.3,0];wt.prototype.update=function(a,b,c,d,e,f){f=f===void 0?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=b>0&&b>=h;h=!(a>0&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Dt.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.Be):b.Be;this.ra=Math.max(this.ra,b.Be);this.Ca=this.Ca!=-1?Math.min(this.Ca,b.Kk):b.Kk;this.Ea=Math.max(this.Ea,b.Kk);this.Za.update(b.Kk,c.Kk,b.j,a,d);this.B.update(b.Be,c.Be,b.j,a,d);c=d||c.kx!=b.kx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Sa.update(c,a,b)};
    Dt.prototype.Ur=function(){return this.Sa.C>=this.eb};if(at&&at.URL){var Wlb=at.URL,Xlb;if(Xlb=!!Wlb){var Ylb;a:{if(Wlb){var Zlb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var m2=Zlb.exec(decodeURIComponent(Wlb));if(m2){Ylb=m2[1]&&m2[1].length>1?m2[1].substring(1):"true";break a}}catch(a){}}Ylb=""}Xlb=Ylb.length>0}ps.BT=!Xlb};var $lb=new Bs(0,0,0,0);var Wia=new Bs(0,0,0,0);g.x(It,g.I);g.k=It.prototype;
    g.k.xa=function(){if(this.Zj.j){if(this.Cw.kR){var a=this.Zj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Cw.kR,Qr());this.Cw.kR=null}this.Cw.jR&&(a=this.Zj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Cw.jR,Qr()),this.Cw.jR=null)}this.xH&&this.xH.dispose();this.Yf&&this.Yf.dispose();delete this.HK;delete this.bR;delete this.T2;delete this.Zj.Fu;delete this.Zj.j;delete this.Cw;delete this.xH;delete this.Yf;delete this.Kc;g.I.prototype.xa.call(this)};
    g.k.St=function(){return this.Yf?this.Yf.j:this.position};
    g.k.yS=function(a){is().yS(a)};
    g.k.Dq=function(){return!1};
    g.k.KJ=function(){return new Dt};
    g.k.zj=function(){return this.HK};
    g.k.rY=function(a){return $ia(this,a,1E4)};
    g.k.Ta=function(a,b,c,d,e,f,h){this.fu||(this.sE&&(a=this.iO(a,c,e,h),d=d&&this.gi.Be>=(this.kx()?.3:.5),this.iU(f,a,d),this.hq=b,a.Be>0&&-1===this.t2&&(this.t2=b),this.B2==-1&&this.Ur()&&(this.B2=b),this.VQ==-2&&(this.VQ=Gt(this.St())?a.Be:-1),this.gi=a),this.bR(this))};
    g.k.iU=function(a,b,c){this.zj().update(a,b,this.gi,c)};
    g.k.HP=function(){return new Br};
    g.k.iO=function(a,b,c,d){c=this.HP();c.j=b;b=fs().B;b=Sr(at)===0?-1:b.isVisible()?0:1;c.B=b;c.Be=this.DO(a);c.kx=this.kx();c.Kk=d;return c};
    g.k.DO=function(a){return this.opacity===0&&Jr(this.Kc,"opac")===1?0:a};
    g.k.kx=function(){return!1};
    g.k.kM=function(){return this.d$||this.g$};
    g.k.Fx=function(){ws()};
    g.k.nB=function(){ws()};
    g.k.Sp=function(){return 0};
    g.k.Ur=function(){return this.HK.Ur()};
    g.k.EY=function(){var a=this.sE;a=(this.hasCompleted||this.Na())&&!a;var b=is().B!==2||this.Hea;return this.fu||b&&a?2:this.Ur()?4:3};
    g.k.yJ=function(){return 0};g.Kt.prototype.next=function(){return g.n2};
    g.n2={done:!0,value:void 0};g.Kt.prototype.mm=function(){return this};g.x(fja,Br);var o2=hja([void 0,1,2,3,4,8,16]),p2=hja([void 0,4,8,16]),amb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ot("p0",p2),p1:Ot("p1",p2),p2:Ot("p2",p2),p3:Ot("p3",p2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Nt("mtos1",[0,2,4],!1,p2),mtos2:Nt("mtos2",[0,2,4],!1,p2),mtos3:Nt("mtos3",[0,2,4],!1,p2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ot("a0",p2),a1:Ot("a1",p2),a2:Ot("a2",p2),a3:Ot("a3",p2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
        vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Ot("c0",p2),c1:Ot("c1",p2),c2:Ot("c2",p2),c3:Ot("c3",p2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ot("qmtos",o2),qnc:Ot("qnc",o2),qmv:Ot("qmv",o2),qnv:Ot("qnv",o2),
        raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Ot("ss0",p2),ss1:Ot("ss1",p2),ss2:Ot("ss2",p2),ss3:Ot("ss3",p2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
        omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},bmb=Object.assign({},amb,{avid:Id("audio"),avas:"avas",vs:"vs"}),cmb={atos:"atos",avt:Nt("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0),
        t:"t"};St.prototype.getValue=function(){return this.B};
    St.prototype.update=function(a,b){a>=32||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.x(Tt,Dt);
    Tt.prototype.update=function(a,b,c,d){if(!b.paused){Dt.prototype.update.call(this,a,b,c,d);var e=Mt(b)&&Mt(c),f=(d?Math.min(b.Be,c.Be):c.Be)>=.5;Ys(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Fa+=a,this.Y+=e?a:0);this.j.update(b.Be,c.Be,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.gb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.Wa.update(a,b.Be>=1);this.Va.update(a,
        Mt(b))}};nja.prototype.B=function(a){this.C||(this.j(a)?(a=yka(this.Y,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.x(Vt,nja);Vt.prototype.j=function(){return!0};
    Vt.prototype.K=function(){return!1};
    Vt.prototype.getId=function(){var a=this,b=fd(fu,function(c){return c==a.D});
        return Au[b].toString()};
    Vt.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.x(Wt,Vt);Wt.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);Vt.prototype.B.call(this,a)};g.x(Xt,oja);Xt.prototype.B=function(){return null};
    Xt.prototype.C=function(){return[]};g.x(Yt,pt);g.k=Yt.prototype;g.k.mO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=via(a.getBoundingClientRect())}catch(n){c=new Bs(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=sia(a,b),h=f.x,l=f.y;var m=new Bs(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=$lb.clone()}this.j=m}};
    g.k.eX=function(){this.D=this.B.D.j};
    g.k.wZ=function(a){var b=Jr(this.Kc,"od")==1;return Via(a,this.D,this.element,b)};
    g.k.fX=function(){this.timestamp=ws()};
    g.k.nt=function(){this.fX();this.mO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Ke(a.videoWidth,a.videoHeight);a=this.j;var c=Cs(a),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.eX();
        a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Bs(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new Bs(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Bs(0,0,0,0):a;a=this.B.D;b=e=d=0;(this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0&&(this.wZ(c)?c=new Bs(0,0,0,0):(d=$s().D,b=new Bs(0,d.height,d.width,0),d=Ht(c,this.j),e=Ht(c,$s().j),b=Ht(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Bs(0,0,0,
            0):Ds(c,-this.j.left,-this.j.top);bt()||(e=d=0);this.N=new Es(a,this.element,this.j,c,d,e,this.timestamp,b)};
    g.k.getName=function(){return this.B.getName()};var dmb=new Bs(0,0,0,0);g.x(Zt,Yt);g.k=Zt.prototype;g.k.oN=function(){this.C();return!0};
    g.k.Xt=function(){Yt.prototype.nt.call(this)};
    g.k.fX=function(){};
    g.k.mO=function(){};
    g.k.nt=function(){this.C();Yt.prototype.nt.call(this)};
    g.k.sA=function(a){a=a.isActive();a!==this.K&&(a?this.C():($s().j=new Bs(0,0,0,0),this.j=new Bs(0,0,0,0),this.D=new Bs(0,0,0,0),this.timestamp=-1));this.K=a};var q2={},yja=(q2.firstquartile=0,q2.midpoint=1,q2.thirdquartile=2,q2.complete=3,q2);g.x(au,It);g.k=au.prototype;g.k.Dq=function(){return!0};
    g.k.Ao=function(){return this.xk==2};
    g.k.rY=function(a){return $ia(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.ld(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Sa=m.isYouTube||this.Sa;fs();this.rb=!1;e=qja(this,b);pja(this)===1&&(f=e);It.prototype.Ta.call(this,a,b,c,d,m,f,h);this.Wr&&this.Wr.C&&g.Yb(this.K,function(n){n.B(l)})};
    g.k.iU=function(a,b,c){It.prototype.iU.call(this,a,b,c);du(this).update(a,b,this.gi,c);this.gb=Mt(this.gi)&&Mt(b);this.Ea==-1&&this.Za&&(this.Ea=this.zj().C.j);this.Lg.C=0;a=this.Ur();b.isVisible()&&Rt(this.Lg,"vs");a&&Rt(this.Lg,"vw");Ys(b.volume)&&Rt(this.Lg,"am");Mt(b)?Rt(this.Lg,"a"):Rt(this.Lg,"mut");this.EA&&Rt(this.Lg,"f");b.B!=-1&&(Rt(this.Lg,"bm"),b.B==1&&(Rt(this.Lg,"b"),Mt(b)&&Rt(this.Lg,"umutb")));Mt(b)&&b.isVisible()&&Rt(this.Lg,"avs");this.gb&&a&&Rt(this.Lg,"avw");b.Be>0&&Rt(this.Lg,
        "pv");eu(this,this.zj().C.j,!0)&&Rt(this.Lg,"gdr");Bt(this.zj().B,1)>=2E3&&Rt(this.Lg,"pmx");this.rb&&Rt(this.Lg,"tvoff")};
    g.k.KJ=function(){return new Tt};
    g.k.zj=function(){return this.HK};
    g.k.HP=function(){return new fja};
    g.k.iO=function(a,b,c,d){a=It.prototype.iO.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.EA;a.paused=this.Ao();a.volume=c.volume;Ys(a.volume)||(this.Jb++,b=this.gi,Ys(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a};
    g.k.DO=function(a){return $s(),this.EA?1:It.prototype.DO.call(this,a)};
    g.k.Sp=function(){return 1};
    g.k.getDuration=function(){return this.C};
    g.k.EY=function(){return this.fu?2:sja(this)?5:this.Ur()?4:3};
    g.k.yJ=function(){return this.Bb?this.zj().G.C>=2E3?4:3:2};var emb=g.kb();Jja.prototype.reset=function(){this.j=[];this.B=[]};
    var ku=ds(Jja);g.x(nu,qt);g.k=nu.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
    g.k.Ot=function(){return(this.B?this.B:this.j).Ot()};
    g.k.Jr=function(){return(this.B?this.B:this.j).Jr()};
    g.k.init=function(a){var b=!1;(0,g.Yb)(this.C,function(c){c.initialize()&&(b=!0)});
        b&&(this.D=a,nt(this.j,this));return b};
    g.k.dispose=function(){(0,g.Yb)(this.C,function(a){a.dispose()});
        qt.prototype.dispose.call(this)};
    g.k.zV=function(){return Zs(this.C,function(a){return a.qD()})};
    g.k.rD=function(){return Zs(this.C,function(a){return a.qD()})};
    g.k.kI=function(a,b,c){return new Yt(a,this.j,b,c)};
    g.k.Xt=function(a){this.B=a.B};var Sja={threshold:[0,.3,.5,.75,1]};g.x(ou,Yt);g.k=ou.prototype;g.k.oN=function(){var a=this;this.Y||(this.Y=ws());if(hia(298,function(){return Tja(a)}))return!0;
        this.B.xj("msf");return!1};
    g.k.jI=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
    g.k.nt=function(){var a=pu(this);a.length>0&&qu(this,a);Yt.prototype.nt.call(this)};
    g.k.mO=function(){};
    g.k.wZ=function(){return!1};
    g.k.eX=function(){};
    g.k.Ot=function(){var a={};return Object.assign(this.B.Ot(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))};
    g.k.getName=function(){return"nio"};g.x(ru,qt);ru.prototype.getName=function(){return"nio"};
    ru.prototype.rD=function(){return!$s().B&&this.j.j.C.IntersectionObserver!=null};
    ru.prototype.kI=function(a,b,c){return new ou(a,this.j,b,c)};g.x(tu,mt);tu.prototype.BY=function(){return $s().j};
    tu.prototype.qD=function(){var a=Vja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,ot(this)),this.Z=a);return a==2};uu.prototype.sample=function(){xu(this,lu(),!1)};
    uu.prototype.D=function(){var a=bt(),b=ws();a?(ys||(zs=b,g.Yb(ku.j,function(c){var d=c.zj();d.La=Ut(d,b,c.xk!=1)})),ys=!0):(this.N=$ja(this,b),ys=!1,zja=b,g.Yb(ku.j,function(c){c.sE&&(c.zj().Z=b)}));
        xu(this,lu(),!a)};
    var vu=ds(uu);var bka=null,Uu="",Tu=!1;var eka=dka().Hp,zu=dka().Lp;var hka={uFa:"visible",wqa:"audible",Neb:"time",Qeb:"timetype"},ika={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
        audible:function(a){return a=="0"||a=="1"},
        timetype:function(a){return a=="mtos"||a=="tos"},
        time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
    gka.prototype.setTime=function(a,b,c){b=="ms"?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=c===void 0?"tos":c;return this};g.x(Du,Vt);Du.prototype.getId=function(){return this.N};
    Du.prototype.K=function(){return!0};
    Du.prototype.j=function(a){var b=a.zj(),c=a.getDuration();return Zs(this.Z,function(d){if(d.j!=void 0)var e=kka(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}e==0?d=!1:(d=d.C!=-1?d.C:c!==void 0&&c>0?d.D*c:-1,d=d!=-1&&e>=d);return d})};g.x(Eu,jja);Eu.prototype.j=function(a){var b=new ija;b.j=Qt(a,amb);b.B=Qt(a,cmb);return b};g.x(Fu,Vt);Fu.prototype.j=function(a){return sja(a)};g.x(Gu,oja);g.x(Hu,Vt);Hu.prototype.j=function(a){return a.zj().Ur()};g.x(Iu,Wt);Iu.prototype.j=function(a){var b=g.Eb(this.N,Jr(is().Kc,"ovms"));return!a.fu&&(a.xk!=0||b)};g.x(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.x(Ku,Zt);Ku.prototype.C=function(){var a=g.Wa("ima.admob.getViewability"),b=Jr(this.Kc,"queryid");typeof a==="function"&&b&&a(b)};
    Ku.prototype.getName=function(){return"gsv"};g.x(Lu,qt);Lu.prototype.getName=function(){return"gsv"};
    Lu.prototype.rD=function(){var a=$s();is();return a.B&&!1};
    Lu.prototype.kI=function(a,b,c){return new Ku(this.j,b,c)};g.x(Mu,Zt);Mu.prototype.C=function(){var a=this,b=g.Wa("ima.bridge.getNativeViewability"),c=Jr(this.Kc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.gd(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=wia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?dmb.clone():wia(e);a.timestamp=d.opt_nativeTime||-1;$s().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})};
    Mu.prototype.getName=function(){return"nis"};g.x(Nu,qt);Nu.prototype.getName=function(){return"nis"};
    Nu.prototype.rD=function(){var a=$s();is();return a.B&&!1};
    Nu.prototype.kI=function(a,b,c){return new Mu(this.j,b,c)};g.x(Ou,mt);g.k=Ou.prototype;g.k.qD=function(){return this.B.Eo!=null};
    g.k.nY=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Ca&&(a.mlc=1);a.mtop=this.B.gea;this.N&&(a.mse=this.N);this.La&&(a.msc=1);a.mcp=this.B.compatibility;return a};
    g.k.Xu=function(a){var b=g.Ja.apply(1,arguments);try{return this.B.Eo[a].apply(this.B.Eo,b)}catch(c){vs(538,c,.01,function(d){d.method=a})}};
    g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.hF();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.xj("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.xj("w"),!1;$s().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?oka(this):Ft(this.C,"load",function(){fs().setTimeout(us(292,function(){return oka(a)}),100)},292);
        return!0};
    g.k.xV=function(){var a=$s(),b=tka(this,"getMaxSize");a.j=new Bs(0,b.width,b.height,0)};
    g.k.yV=function(){$s().D=tka(this,"getScreenSize")};
    g.k.dispose=function(){qka(this);mt.prototype.dispose.call(this)};var Sha=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=Qu.prototype;g.k.eJ=function(a){Jt(a,!1);Nja(a)};
    g.k.SJ=function(){};
    g.k.OG=function(a,b,c,d){var e=this;a=new au(Pr,a,c?b:-1,7,this.OO(),this.xX());a.aj=d;nha(a.Kc);Ir(a.Kc,"queryid",a.aj);a.yS("");cja(a,function(){return e.LY.apply(e,g.ra(g.Ja.apply(0,arguments)))},function(){return e.D9.apply(e,g.ra(g.Ja.apply(0,arguments)))});
        (d=ds(mu).j)&&Zia(a,d);a.Zj.Fu&&ds(Wja);return a};
    g.k.sA=function(a){switch(a.Jr()){case 0:if(a=ds(mu).j)a=a.j,g.Gb(a.G,this),a.Y&&this.Dq()&&Cia(a);Su();break;case 2:wu()}};
    g.k.Xt=function(){};
    g.k.Dq=function(){return!1};
    g.k.D9=function(a,b){a.fu=!0;switch(a.Sp()){case 1:zka(a,b);break;case 2:this.KS(a)}};
    g.k.M9=function(a){var b=a.N(a);b&&(b=b.volume,a.Bb=Ys(b)&&b>0);vja(a,0);return gu(a,"start",bt())};
    g.k.CC=function(a,b,c){xu(vu,[a],!bt());return this.Tp(a,b,c)};
    g.k.Tp=function(a,b,c){return gu(a,c,bt())};
    g.k.H9=function(a){return Yu(a,"firstquartile",1)};
    g.k.J9=function(a){a.Za=!0;return Yu(a,"midpoint",2)};
    g.k.N9=function(a){return Yu(a,"thirdquartile",3)};
    g.k.E9=function(a){var b=Yu(a,"complete",4);bu(a);return b};
    g.k.F9=function(a){a.xk=3;return gu(a,"error",bt())};
    g.k.m1=function(a,b,c){b=bt();if(a.Ao()&&!b){var d=a.zj(),e=ws();d.Z=e}xu(vu,[a],!b);a.Ao()&&(a.xk=1);return gu(a,c,b)};
    g.k.L9=function(a,b){b=this.CC(a,b||{},"skip");bu(a);return b};
    g.k.I9=function(a,b){Jt(a,!0);return this.CC(a,b||{},"fullscreen")};
    g.k.G9=function(a,b){Jt(a,!1);return this.CC(a,b||{},"exitfullscreen")};
    g.k.oS=function(a,b,c){b=a.zj();var d=ws();b.La=Ut(b,d,a.xk!=1);xu(vu,[a],!bt());a.xk==1&&(a.xk=2);return gu(a,c,bt())};
    g.k.K9=function(a){xu(vu,[a],!bt());return a.B()};
    g.k.dQ=function(a){xu(vu,[a],!bt());this.b1(a);bu(a);return a.B()};
    g.k.LY=function(){};
    g.k.KS=function(){};
    g.k.b1=function(){};
    g.k.AV=function(){};
    g.k.PO=function(){};
    g.k.xX=function(){this.j||(this.j=this.PO());return this.j==null?new Xt:new Ju(this.j)};
    g.k.OO=function(){return new Eu};g.x(Dka,Vt);Dka.prototype.j=function(a){return a.yJ()==4};g.x(Eka,Wt);Eka.prototype.j=function(a){a=a.yJ();return a==3||a==4};g.x(Zu,Gu);Zu.prototype.B=function(){return new Eka(this.j)};
    Zu.prototype.C=function(){return[new Dka(this.j)]};g.x(Fka,jja);Fka.prototype.j=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new ija;b.j=Qt(a,bmb);b.B=Qt(a,cmb);return b};Gka.prototype.B=function(){return g.Wa(this.j)};g.x($u,Qu);g.k=$u.prototype;g.k.SJ=function(a,b){var c=this,d=ds(mu);if(d.j!=null)switch(d.j.getName()){case "nis":var e=Kka(this,a,b);break;case "gsv":e=Jka(this,a,b);break;case "exc":e=Lka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Bka(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Sp()==1&&(e.N==g.Jd&&(e.N=function(f){return c.AV(f)}),Ika(this,e,b));
        return e};
    g.k.AV=function(a){a.B=0;a.Fa=0;if(a.D=="h"||a.D=="n"){is();a.eb&&(is(),Wu(this)!="h"&&Wu(this));var b=g.Wa("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.aj)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.Wa("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.aj)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.Wa("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.aj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(c===void 0?a.B|=8:c===null?
        a.B|=16:g.gd(c)?a.B|=32:c.errorCode!=null&&(a.Fa=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in Vlb)b[d]==null&&(a.Z|=Vlb[d]);Cka(b,"currentTime");Cka(b,"duration");Ys(c.volume)&&Ys()&&(c.volume*=NaN);return c};
    g.k.PO=function(){is();Wu(this)!="h"&&Wu(this);var a=Mka(this);return a!=null?new Gka(a):null};
    g.k.KS=function(a){!a.j&&a.fu&&Xu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
    g.k.b1=function(a){a.R1&&(a.Ur()?Xu(this,a,"overlay_viewable_end_of_session_impression"):Xu(this,a,"overlay_unviewable_impression"),a.R1=!1)};
    g.k.LY=function(){};
    g.k.OG=function(a,b,c,d){if(Tha()){var e=Jr(is().Kc,"mm"),f={};(e=(f[js.F3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[js.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Qka(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&vs(1044,Error())}a=Qu.prototype.OG.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new dja),b.j[a.aj]=a.G,a.G.G=emb);return a};
    g.k.eJ=function(a){a&&a.Sp()==1&&this.D&&delete this.G.j[a.aj];return Qu.prototype.eJ.call(this,a)};
    g.k.xX=function(){this.j||(this.j=this.PO());return this.j==null?new Xt:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Zu(this.j):new Ju(this.j)};
    g.k.OO=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Fka:new Eu};
    var fmb=ts(193,Ska,void 0,Aka);g.Va("Goog_AdSense_Lidar_sendVastEvent",fmb);var gmb=us(194,function(a,b){b=b===void 0?{}:b;a=Pka(ds($u),a,b);return Rka(a)});
    g.Va("Goog_AdSense_Lidar_getViewability",gmb);var hmb=ts(195,function(){return Nha()});
    g.Va("Goog_AdSense_Lidar_getUrlSignalsArray",hmb);var imb=us(196,function(){return JSON.stringify(Nha())});
    g.Va("Goog_AdSense_Lidar_getUrlSignalsList",imb);var QCa=pa(["//tpc.googlesyndication.com/sodar/",""]);var oPa={r7a:0,o7a:1,l7a:2,m7a:3,n7a:4,q7a:5,p7a:6};var Rqa=(new Date).getTime();var Uka="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Vka=/\bocr\b/;var Xka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var jmb=0,kmb=0,lmb=0;var bv;bv=null;g.dv=!1;g.jla=1;g.hv=Symbol("SIGNAL");g.tv={version:0,FZ:0,al:!1,vg:void 0,gy:void 0,Wm:void 0,UK:0,Xi:void 0,Cu:void 0,Ct:!1,GO:!1,P0:function(){return!1},
        Q0:function(){},
        eE:function(){},
        jpb:function(){}};var mmb=Symbol("UNSET"),nmb=Symbol("COMPUTING"),omb=Symbol("ERRORED");Object.assign({},g.tv,{value:mmb,al:!0,error:null,dP:Yka,P0:function(a){return a.value===mmb||a.value===nmb},
        Q0:function(a){if(a.value===nmb)throw Error("Detected cycle in computations.");var b=a.value;a.value=nmb;var c=g.bla(a);try{var d=a.hpb()}catch(e){d=omb,a.error=e}finally{g.dla(a,c)}b!==mmb&&b!==omb&&d!==omb&&a.dP(b,d)?a.value=b:(a.value=d,a.version++)}});var hla;g.kla=null;hla=Object.assign({},g.tv,{dP:Yka,value:void 0});g.pmb=Object.assign({},g.tv,{GO:!0,Ct:!1,eE:function(a){a.schedule!==null&&a.schedule(a.XB)},
        iF:!1,Dz:g.mla});g.qmb=nla(!1);g.rmb=nla(!0);var smb=Symbol("updater");g.x(vv,g.Ed);vv.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Bo.Wj(this.G);delete vv.instance};
    vv.prototype.Hh=function(){return this.j};
    vv.prototype.rf=function(){var a=this;this.G=this.Bo.Ri(function(){var b;return g.G(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ia(3):g.z(c,uv(a),3):g.z(c,uv(a),3);a.rf();g.Aa(c)})},3E4)};pla.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
    pla.prototype.get=function(a){return!!this.data[a]};var rla;g.lb(g.zv,g.I);g.k=g.zv.prototype;g.k.start=function(){this.stop();this.D=!1;var a=tla(this),b=ula(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=tla(this),b=ula(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 this.j!=null};
    g.k.T5=function(){this.D&&this.j&&Ad(this.j);this.j=null;this.K.call(this.G,g.kb())};
    g.k.xa=function(){this.stop();g.zv.Pf.xa.call(this)};g.lb(g.Av,g.I);g.k=g.Av.prototype;g.k.sD=0;g.k.xa=function(){g.Av.Pf.xa.call(this);this.stop();delete this.j;delete this.B};
    g.k.start=function(a){this.stop();this.sD=g.og(this.C,a!==void 0?a:this.Vi)};
    g.k.stop=function(){this.isActive()&&g.Ua.clearTimeout(this.sD);this.sD=0};
    g.k.isActive=function(){return this.sD!=0};
    g.k.BV=function(){this.sD=0;this.j&&this.j.call(this.B)};g.vla.prototype[Symbol.iterator]=function(){return this};
    g.vla.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.lb(g.Mv,g.Ed);g.k=g.Mv.prototype;g.k.isPlaying=function(){return this.j==1};
    g.k.isPaused=function(){return this.j==-1};
    g.k.bL=function(){this.Ln("begin")};
    g.k.gs=function(){this.Ln("end")};
    g.k.onFinish=function(){this.Ln("finish")};
    g.k.onStop=function(){this.Ln("stop")};
    g.k.Ln=function(a){this.dispatchEvent(a)};var tmb=Kd(function(){var a=g.yf("DIV"),b=g.Oc?"-webkit":Ks?"-moz":g.Ls?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!alb.test("div"))throw Error("");if("DIV"in clb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!alb.test(n))throw Error("");var e=c[n];if(e!=null){var f=void 0;var h=n;if(e instanceof Rd)e=Sd(e);else if(h.toLowerCase()=="style"){if(!g.db(e))throw Error("");if(!(e instanceof
        g.oe)){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];m!=null&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.oe(l,ye):Ela}e=pe(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in blb)if(e instanceof g.Yd)e=g.Zd(e).toString();else if(e instanceof g.ce)e=g.de(e);else if(typeof e==="string")e=g.je(e).toString();else throw Error("");}f=h+'="'+fc(String(e))+
        '"';d+=" "+f}}var n="<div"+d;b==null?b=[]:Array.isArray(b)||(b=[b]);$kb.div===!0?n+=">":(b=Eba(b),n+=">"+g.re(b).toString()+"</div>");n=se(n);if(dlb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.re(n);return g.Ms(a.firstChild,"transition")!=""});g.lb(Nv,g.Mv);g.k=Nv.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.bL();this.Ln("play");this.startTime=g.kb();this.j=1;if(tmb())return g.Js(this.B,this.K),this.C=g.og(this.Qca,void 0,this),!0;this.pN(!1);return!1};
    g.k.Qca=function(){g.Vs(this.B);yla(this.B,this.N);g.Js(this.B,this.D);this.C=g.og((0,g.ib)(this.pN,this,!1),this.G*1E3)};
    g.k.stop=function(){this.isPlaying()&&this.pN(!0)};
    g.k.pN=function(a){g.Js(this.B,"transition","");g.Ua.clearTimeout(this.C);g.Js(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.onStop();else this.onFinish();this.gs()};
    g.k.xa=function(){this.stop();Nv.Pf.xa.call(this)};
    g.k.pause=function(){};var Ala={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};Ov("Element","attributes")||Ov("Node","attributes");Ov("Element","innerHTML")||Ov("HTMLElement","innerHTML");Ov("Node","nodeName");Ov("Node","nodeType");Ov("Node","parentNode");Ov("Node","childNodes");Ov("HTMLElement","style")||Ov("Element","style");Ov("HTMLStyleElement","sheet");var Hla=Cla("getPropertyValue"),Ila=Cla("setProperty");Ov("Element","namespaceURI")||Ov("Node","namespaceURI");var Gla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Nla,Fkb,Mla,Kla,Ola;Nla=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]");Fkb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.umb=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.Lla=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]");Mla=/^http:\/\/.*/;g.vmb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Kla=/\s+/;Ola=/[\d\u06f0-\u06f9]/;Qv.prototype.mm=function(){return new Rv(this.B())};
    Qv.prototype[Symbol.iterator]=function(){return new Sv(this.B())};
    Qv.prototype.j=function(){return new Sv(this.B())};
    g.x(Rv,g.Kt);Rv.prototype.next=function(){return this.B.next()};
    Rv.prototype[Symbol.iterator]=function(){return new Sv(this.B)};
    Rv.prototype.j=function(){return new Sv(this.B)};
    g.x(Sv,Qv);Sv.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(Xhb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.nc()))?a[1]:"0"}return AY?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.nc()))?a[0].replace(/_/g,"."):"10"):g.WA?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.nc()))?a[1]:""):Skb||Tkb||Ukb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.nc()))?a[1].replace(/_/g,"."):""):""})();var Rla=function(){if(g.NQ)return Wv(/Firefox\/([0-9.]+)/);if(g.Ls||g.wC||g.jR)return Xaa;if(g.GJ){if(Ic()||Jc()){var a=Wv(/CriOS\/([0-9.]+)/);if(a)return a}return Wv(/Chrome\/([0-9.]+)/)}if(g.aC&&!Ic())return Wv(/Version\/([0-9.]+)/);if(UA||VA){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.nc()))return a[1]+"."+a[2]}else if(g.vVa)return(a=Wv(/Android\s+([0-9.]+)/))?a:Wv(/Version\/([0-9.]+)/);return""}();g.lb(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.Qh(a)}return!1};
    g.k.Qh=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Gb(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<f;e++)d[e-1]=arguments[e];if(this.N)for(e=0;e<c.length;e++){var h=c[e];Sla(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.Na();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,this.C.length>0&&this.D==0)for(;c=this.C.pop();)this.Qh(c)}}return e!=0}return!1};
    g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Qh,this),delete this.B[a])}else this.j.length=0,this.B={}};
    g.k.xa=function(){g.Yv.Pf.xa.call(this);this.clear();this.C.length=0};g.Zv.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.rn(b))};
    g.Zv.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
    g.Zv.prototype.remove=function(a){this.j.remove(a)};g.lb($v,g.Zv);$v.prototype.set=function(a,b){$v.Pf.set.call(this,a,Ula(b))};
    $v.prototype.B=function(a){a=$v.Pf.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
    $v.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.lb(aw,$v);aw.prototype.set=function(a,b,c){if(b=Ula(b)){if(c){if(c<g.kb()){aw.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.kb()}aw.Pf.set.call(this,a,b)};
    aw.prototype.B=function(a,b){var c=aw.Pf.B.call(this,a);if(c)if(!b&&g.Vla(c))aw.prototype.remove.call(this,a);else return c};g.lb(g.bw,aw);g.lb(cw,Wla);cw.prototype[Symbol.iterator]=function(){return g.Pla(this.mm(!0)).j()};
    cw.prototype.clear=function(){var a=Array.from(this);a=g.v(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.lb(dw,cw);g.k=dw.prototype;g.k.isAvailable=function(){var a=this.j;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.B=b};
    g.k.set=function(a,b){ew(this);try{this.j.setItem(a,b)}catch(c){if(this.j.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
    g.k.get=function(a){ew(this);a=this.j.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};
    g.k.remove=function(a){ew(this);this.j.removeItem(a)};
    g.k.mm=function(a){ew(this);var b=0,c=this.j,d=new g.Kt;d.next=function(){if(b>=c.length)return g.n2;var e=c.key(b++);if(a)return g.Lt(e);e=c.getItem(e);if(typeof e!=="string")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.lb(Xla,dw);g.lb(Yla,dw);g.lb(fw,cw);fw.prototype.set=function(a,b){this.B.set(this.j+a,b)};
    fw.prototype.get=function(a){return this.B.get(this.j+a)};
    fw.prototype.remove=function(a){this.B.remove(this.j+a)};
    fw.prototype.mm=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};hw.prototype.getValue=function(){return this.B};
    hw.prototype.clone=function(){return new hw(this.j,this.B)};g.k=iw.prototype;g.k.Eh=function(a,b){var c=this.j;c.push(new hw(a,b));a=c.length-1;b=this.j;for(c=b[a];a>0;){var d=a-1>>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(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=a*2+1,h=a*2+2;f=h<d&&b[h].j<b[f].j?h:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
    g.k.Gm=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
    g.k.Sn=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};
    g.k.clone=function(){return new iw(this)};
    g.k.isEmpty=function(){return this.j.length===0};
    g.k.clear=function(){this.j.length=0};g.x(Zla,iw);Zla.prototype.enqueue=function(a,b){this.Eh(a,b)};jw.ih=void 0;jw.getInstance=function(){return jw.ih?jw.ih:jw.ih=new jw};
    jw.prototype.j=0;var kw={},wmb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";kw.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
    kw.AT=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
    var xmb={xz:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},
        ZX:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},ymb={xz:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
        ZX:function(a){return[].concat.apply([],a)}};
    kw.aea=function(){wmb?(kw.Ty=Uint8Array,kw.Tq=Uint16Array,kw.P3=Int32Array,kw.assign(kw,xmb)):(kw.Ty=Array,kw.Tq=Array,kw.P3=Array,kw.assign(kw,ymb))};
    kw.aea();var zmb=!0;try{new Uint8Array(1)}catch(a){zmb=!1};var sma={};sma=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Ew={},r2,Amb=[],s2=0;s2<256;s2++){r2=s2;for(var Bmb=0;Bmb<8;Bmb++)r2=r2&1?3988292384^r2>>>1:r2>>>1;Amb[s2]=r2}Ew=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Amb[(a^b[d])&255];return a^-1};var vw={};vw={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 jma=[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],rw=[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],Dma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qma=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],zw=Array(576);lw(zw);var Aw=Array(60);lw(Aw);var qw=Array(512);lw(qw);var pw=Array(256);lw(pw);var kma=Array(29);lw(kma);var tw=Array(30);lw(tw);var Ama,Bma,Cma,zma=!1;var Iw;Iw=[new Hw(0,0,0,0,function(a,b){var c=65535;for(c>a.Vm-5&&(c=a.Vm-5);;){if(a.jc<=1){Fw(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Gb+=a.jc;a.jc=0;var d=a.Yk+c;if(a.Gb===0||a.Gb>=d)if(a.jc=a.Gb-d,a.Gb=d,Bw(a,!1),a.ye.Ie===0)return 1;if(a.Gb-a.Yk>=a.lj-262&&(Bw(a,!1),a.ye.Ie===0))return 1}a.Eh=0;if(b===4)return Bw(a,!0),a.ye.Ie===0?3:4;a.Gb>a.Yk&&Bw(a,!1);return 1}),
        new Hw(4,4,8,4,tma),new Hw(4,5,16,8,tma),new Hw(4,6,32,32,tma),new Hw(4,4,16,16,Gw),new Hw(8,16,32,32,Gw),new Hw(8,16,128,128,Gw),new Hw(8,32,128,256,Gw),new Hw(32,128,258,1024,Gw),new Hw(32,258,258,4096,Gw)];var yma={};yma=function(){this.input=null;this.My=this.rj=this.Ix=0;this.output=null;this.VT=this.Ie=this.pB=0;this.msg="";this.state=null;this.SO=2;this.Vd=0};var Ema=Object.prototype.toString;
    Jw.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=$la(a):Ema.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Ix=0;c.rj=c.input.length;do{c.Ie===0&&(c.output=new kw.Ty(d),c.pB=0,c.Ie=d);a=xma(c,e);if(a!==1&&a!==0)return this.gs(a),this.ended=!0,!1;if(c.Ie===0||c.rj===0&&(e===4||e===2))if(this.options.to==="string"){var f=kw.AT(c.output,c.pB);b=f;f=f.length;if(f<65537&&(b.subarray&&
        zmb||!b.subarray))b=String.fromCharCode.apply(null,kw.AT(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=kw.AT(c.output,c.pB),this.chunks.push(b)}while((c.rj>0||c.Ie===0)&&a!==1);if(e===4)return(c=this.ye)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=ww(c,-2):(c.state=null,a=d===113?ww(c,-3):0)):a=-2,this.gs(a),this.ended=!0,a===0;e===2&&(this.gs(0),c.Ie=0);return!0};
    Jw.prototype.gs=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):kw.ZX(this.chunks));this.chunks=[];this.err=a;this.msg=this.ye.msg};var Jma="@@redux/INIT"+Ima(),Mma="@@redux/REPLACE"+Ima();var Nma=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Cmb=[0,wlb,-3,j2];g.x(Lw,U);Lw.prototype.getType=function(){return Tk(this,11)};
    Lw.yb=[2,13,14];var x$a=function(){var a=[0,ylb,xlb,g2,wlb,g2,-1,j2,wlb,j2,-1,ylb,j2,xlb,h2,Cmb,g2,-1,j2];return function(b,c){if(e2.length){var d=e2.pop();oda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Dh(b,c);try{var e=new Lw,f=e.oa;kl(a)(f,b);var h=e}finally{b.free()}return h}}();var gza=new g.Mw("adInfoDialogEndpoint");var EBa=new g.Mw("adPingingEndpoint");var AFa=new g.Mw("crossDeviceProgressCommand");var LL=new g.Mw("actionCompanionAdRenderer");var qJ=new g.Mw("adActionInterstitialRenderer");var Dmb=new g.Mw("adDurationRemainingRenderer");var YL=new g.Mw("adHoverTextButtonRenderer");var eza=new g.Mw("adInfoDialogRenderer");var pM=new g.Mw("adMessageRenderer");var ZL=new g.Mw("adPreviewRenderer");var NL=new g.Mw("adsEngagementPanelRenderer");var CHa=new g.Mw("dismissablePanelTextPortraitImageRenderer");var Emb=new g.Mw("flyoutCtaRenderer");var ML=new g.Mw("imageCompanionAdRenderer");var pJ=new g.Mw("instreamAdPlayerOverlayRenderer");var Fmb=new g.Mw("instreamAdPlayerUnderlayRenderer");var akb=new g.Mw("instreamSurveyAdBackgroundImageRenderer");var MHa=new g.Mw("instreamSurveyAdPlayerOverlayRenderer");var RL=new g.Mw("instreamSurveyAdRenderer"),XL=new g.Mw("instreamSurveyAdSingleSelectQuestionRenderer"),WL=new g.Mw("instreamSurveyAdMultiSelectQuestionRenderer"),t2=new g.Mw("instreamSurveyAdAnswerRenderer"),Gmb=new g.Mw("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var PL=new g.Mw("instreamVideoAdRenderer");var Hmb=new g.Mw("textOverlayAdContentRenderer"),Imb=new g.Mw("enhancedTextOverlayAdContentRenderer"),Jmb=new g.Mw("imageOverlayAdContentRenderer");var wEa=new g.Mw("playerOverlayLayoutRenderer");var GHa=new g.Mw("aboveFeedAdLayoutRenderer");var HHa=new g.Mw("belowPlayerAdLayoutRenderer");var FHa=new g.Mw("inPlayerAdLayoutRenderer");var zHa=new g.Mw("playerBytesAdLayoutRenderer");var VL=new g.Mw("playerUnderlayAdLayoutRenderer");var QL=new g.Mw("adIntroRenderer");var xHa=new g.Mw("playerBytesSequentialLayoutRenderer");var WIa=new g.Mw("slidingTextPlayerOverlayRenderer");var SL=new g.Mw("surveyTextInterstitialRenderer");var Kmb=new g.Mw("simpleAdBadgeRenderer");var eL=new g.Mw("skipAdRenderer"),Lmb=new g.Mw("skipButtonRenderer");var cM=new g.Mw("adSlotRenderer");var UL=new g.Mw("squeezebackPlayerSidePanelRenderer");var Mmb=new g.Mw("timedPieCountdownRenderer");var Nmb=new g.Mw("adAvatarViewModel");var Omb=new g.Mw("adBadgeViewModel");var Pmb=new g.Mw("adButtonViewModel");var Qmb=new g.Mw("adDisclosureBannerViewModel");var Rmb=new g.Mw("adPreviewViewModel");var Smb=new g.Mw("playerAdAvatarLockupCardButtonedViewModel");var Tmb=new g.Mw("skipAdButtonViewModel");var Umb=new g.Mw("skipAdViewModel");var Vmb=new g.Mw("visitAdvertiserLinkViewModel");var pHa=new g.Mw("bannerImageLayoutViewModel");var qHa=new g.Mw("topBannerImageTextIconButtonedLayoutViewModel");var rHa=new g.Mw("adsEngagementPanelLayoutViewModel");g.x(Tma,U);g.x(Uma,U);g.x(Vma,U);g.x(Wma,U);g.x(Nw,U);Nw.prototype.clearVideo=function(){return bk(this,1,dO)};
    var dO=[1,2,3,4];var yLa={Tla:0,Rla:1,Sla:2};var zLa={Xla:0,Wla:1,Vla:2,Ula:3};var DLa={jqa:0,iqa:1,hqa:2};var bO={sta:0,tta:1,qta:2,pta:3,mta:4,rta:5,nta:6,lta:7};var CLa={pua:0,oua:1,iua:2,eua:3,nua:4,qua:5,hua:6,cua:7,gua:8,kua:9,jua:10,rua:11,fua:12,sua:13};var qMa={Gua:0,uua:1,xua:2,Hua:3,vua:4,wua:5,Cua:6,Eua:7,zua:8,tua:9,Bua:10,Fua:11,Aua:12,yua:13,Dua:14};var BLa={Hya:0,Fya:1,Gya:2};var pMa={E6a:0,D6a:1,C6a:2,B6a:3};var oMa={L6a:0,F6a:1,G6a:5,H6a:6,J6a:2,K6a:3,I6a:4};var nMa={O6a:0,P6a:1,N6a:2,M6a:3};var mMa={T6a:0,R6a:1,S6a:2};var lMa={Mlb:0,Blb:1,Ilb:2,Clb:3,Jlb:4,Flb:5,Klb:6,Glb:7,Elb:8,Dlb:9,Hlb:10,Llb:11,Alb:12};g.x(Ow,U);Ow.prototype.getType=function(){return Tk(this,1)};g.x(Xma,U);g.x(Yma,U);g.x(Pw,U);Pw.prototype.getViews=function(){return Tk(this,1)};g.x(Zma,U);g.x($ma,U);g.x(Qw,U);Qw.prototype.getViews=function(){return Tk(this,1)};
    Qw.prototype.j=function(a,b){return Xj(this,2,yi,a,b)};
    Qw.yb=[2];g.x(Rw,U);Rw.prototype.j=function(a,b){return Xj(this,3,yi,a,b)};
    Rw.yb=[3];g.x(Sw,U);g.x(ana,U);g.x(bna,U);g.x(cna,U);g.x(dna,U);g.x(ena,U);g.x(Tw,U);Tw.prototype.getViews=function(){return Tk(this,1)};g.x(fna,U);g.x(gna,U);g.x(hna,U);var $N=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var LLa={Fna:0,Lma:2,Hna:3,Mma:4,Kma:5,wna:6,yna:58,Xma:17,Bma:18,Bna:15,Dna:7,ena:8,gma:10,hma:26,Ema:45,Ima:11,Wma:14,Jna:16,cma:19,jma:20,dma:21,Kna:22,kma:23,Jma:25,Yla:27,Zla:53,cna:28,Dma:30,nna:31,yma:32,lma:33,gna:34,Zma:35,Tma:36,ema:37,tna:39,Pma:41,Uma:42,Rma:43,Qma:44,fma:40,ona:46,pna:50,Sma:51,Vma:52,Ina:54,oma:57,qma:91,rma:93,pma:92,una:60,zma:67,ama:64,Fma:65,uma:68,bma:69,fna:70,Oma:71,Nma:72,xma:73,wma:75,Gna:76,mna:77,ana:78,xna:79,sna:80,Ama:81,Gma:82,vma:83,Hma:84,zna:85,rna:89,
        bna:86,jna:87,kna:88,ina:90,hna:100,nma:94,mma:95,lna:96,dna:97,Cma:98,Cna:99,Ena:101,Ana:102,tma:103,Yma:104,qna:105,vna:106};var JLa={Tna:0,Lna:1,Sna:2,Nna:3,Mna:4,Rna:5,Qna:6,Pna:7,Ona:8,Una:9};var ILa={doa:0,Xna:1,Wna:2,boa:3,eoa:4,Zna:5,aoa:6,coa:7,Yna:8,Vna:9};var KLa={ooa:0,koa:1,joa:2,moa:3,goa:4,foa:5,loa:6,hoa:7,poa:8,noa:9,ioa:10};var HLa={Coa:0,Boa:1,Aoa:2};var MLa={DQa:0,wQa:1,zQa:2,ZPa:3,BQa:4,MPa:5,sQa:6,cQa:7,CQa:8,VPa:9,pQa:10,WPa:11,uQa:12,xPa:13,gQa:14,eQa:15,fQa:16,tQa:17,iQa:18,rQa:19,qQa:20,mQa:21,RPa:22,yPa:23,dQa:24,kQa:25,TPa:26,SPa:27,jQa:28,zPa:29,nQa:30,YPa:31,AQa:32,LPa:33,lQa:34,KPa:35,NPa:36,OPa:37,UPa:38,QPa:39,PPa:40,oQa:41,hQa:42,vQa:43,aQa:44,xQa:45,yQa:46,bQa:47,XPa:70,HPa:48,EPa:49,JPa:50,IPa:51,GPa:52,DPa:53,APa:54,FPa:55,CPa:56,BPa:57,vPa:58,uPa:59,tPa:60,nPa:61,sPa:62,oPa:63,pPa:64,mPa:65,qPa:66,wPa:67,rPa:68,lPa:69};var xLa={eta:0,Ysa:1,Xsa:18,Nsa:2,Gsa:3,Msa:9,Hsa:10,Ksa:14,Isa:4,Fsa:5,Jsa:6,gta:11,Lsa:12,Asa:13,zsa:15,Qsa:16,Zsa:17,ata:19,ita:20,Wsa:21,Tsa:22,Vsa:23,Esa:24,bta:25,Dsa:26,Csa:34,Bsa:35,fta:27,Ssa:28,Usa:29,Psa:30,dta:31,hta:32,Rsa:33,Osa:7};var NLa={yoa:0,zoa:1,toa:2,uoa:3,voa:4,qoa:5,soa:6,woa:7,xoa:8,roa:9};var aO={apa:0,Moa:1,Zoa:3,Xoa:4,Woa:5,Noa:25,bpa:6,Koa:7,Eoa:8,Poa:9,Doa:12,Ooa:22,Roa:23,Soa:26,Toa:27,Uoa:28,Yoa:24,Voa:13,cpa:14,Qoa:15,Foa:16,Ioa:17,Goa:18,Hoa:19,Joa:20,Loa:21};g.x(ina,U);g.x(Uw,U);Uw.prototype.j=function(a,b){return lk(this,1,ina,a,b)};
    Uw.yb=[1];g.x(Vw,U);Vw.prototype.j=function(a,b){return Xj(this,2,yi,a,b)};
    Vw.prototype.getMetrics=function(a){return Eea(this,2,a)};
    Vw.yb=[2];g.x(jna,U);var OLa=[1,2];g.PS=new g.Mw("browseEndpoint");var Wmb=new g.Mw("confirmDialogEndpoint");var Kwa=new g.Mw("rawColdConfigGroup");var Jwa=new g.Mw("rawHotConfigGroup");var tMa={z3a:0,y3a:1,u3a:2,s3a:3,v3a:4,t3a:5,x3a:6,w3a:7};g.zF=new g.Mw("commandExecutorCommand");g.x(kna,U);g.x(lna,U);g.x(mna,U);g.x(nna,U);var RLa=[1,2,3];g.x(ona,U);g.x(Ww,U);Ww.prototype.B=function(a,b){return Xj(this,1,Ji,a,b)};
    Ww.prototype.j=function(a,b){return Xj(this,2,Ji,a,b)};
    Ww.prototype.Ff=function(){return Ok(this,3)};
    Ww.yb=[1,2];g.x(pna,U);g.x(Xw,U);Xw.prototype.j=function(a,b){return Xj(this,1,yi,a,b)};
    Xw.prototype.getMetrics=function(a){return Eea(this,1,a)};
    Xw.yb=[1];g.x(qna,U);g.x(rna,U);g.x(sna,U);g.x(tna,U);g.x(una,U);g.x(vna,U);g.x(wna,U);g.x(xna,U);g.x(yna,U);g.x(zna,U);var aMa=[1,2],dMa=[3,4,5];g.x(Yw,U);Yw.prototype.getName=function(){return Ok(this,2)};g.x(Ana,U);g.x(Bna,U);g.x(Zw,U);Zw.prototype.getId=function(){return Ok(this,1)};g.x($w,U);$w.prototype.getType=function(){return zi(Ij(this,1))};g.x(ax,U);ax.prototype.getType=function(){return zi(Ij(this,1))};g.x(bx,U);bx.prototype.getType=function(){return zi(Ij(this,1))};g.x(cx,U);var gO=[1,2,3,4];g.x(Cna,U);g.x(dx,U);g.x(ex,U);var fO=[1,2,3,4];g.x(Dna,U);g.x(fx,U);fx.prototype.j=function(a,b){return lk(this,2,ex,a,b)};
    fx.yb=[2];var eO=[3,4,5,6,7];g.x(gx,U);g.x(Ena,U);var EMa=[1,2];g.x(hx,U);hx.prototype.getId=function(){return g.hk(this,gx,2)};g.x(ix,U);ix.prototype.j=function(a,b){return lk(this,2,hx,a,b)};
    ix.yb=[2];g.x(jx,U);jx.prototype.j=function(a,b){return lk(this,1,hx,a,b)};
    jx.prototype.B=function(a,b){return lk(this,2,ix,a,b)};
    jx.yb=[1,2];g.x(Fna,U);var TLa=[1,2,3];g.x(Gna,U);g.x(kx,U);kx.prototype.j=function(a,b){return Xj(this,2,yi,a,b)};
    kx.yb=[2];g.x(Hna,U);g.x(Ina,U);g.x(Jna,U);g.x(Kna,U);g.x(Lna,U);g.x(lx,U);lx.prototype.j=function(a,b){return Xj(this,1,yi,a,b)};
    lx.yb=[1];g.x(Mna,U);g.x(Nna,U);g.x(Ona,U);var sMa=[1,2,3];g.x(mx,U);mx.prototype.j=function(a,b){return lk(this,1,Ona,a,b)};
    mx.yb=[1];g.x(Pna,U);g.x(Qna,U);g.x(Rna,U);g.x(nx,U);nx.prototype.j=function(a,b){return lk(this,1,Rna,a,b)};
    nx.yb=[1];g.x(Sna,U);g.x(ox,U);g.x(px,U);px.prototype.j=function(a,b){return lk(this,1,ox,a,b)};
    px.yb=[1];g.x(qx,U);qx.prototype.j=function(a,b){return lk(this,1,ox,a,b)};
    qx.yb=[1];g.x(rx,U);g.x(sx,U);var WMa={zkb:0,ymb:1,Umb:32,dnb:61,qnb:67,fnb:86,Smb:42,Vmb:60,Fmb:62,bnb:73,Zmb:76,hnb:88,inb:90,wnb:99,Pmb:98,jnb:100,Cnb:41,Dnb:69,Enb:70,Fnb:71,uXa:2,PXa:27,ANDROID:3,ipa:54,jpa:14,rpa:91,kpa:55,lpa:24,mpa:20,npa:18,ppa:21,tpa:30,xpa:29,ypa:28,hmb:101,zpa:34,spa:36,opa:38,IOS:5,NKa:15,XKa:92,OKa:40,QKa:25,RKa:17,SKa:19,TKa:64,UKa:66,VKa:26,ZKa:22,kLa:33,lLa:68,mLa:35,WKa:53,YKa:37,PKa:39,Dib:7,Djb:57,Sjb:43,ekb:59,Tjb:93,wpa:74,lkb:75,mkb:85,nkb:65,pkb:80,qkb:8,Bib:10,tkb:58,skb:63,okb:72,upa:23,
        fob:11,gob:13,Uua:12,Cib:16,Qmb:56,enb:31,rXa:77,XHa:84,Ymb:87,ZHa:89,YHa:94,pUa:95};var Xmb={M6:0,R3:1,r6:2,o4:3,U3:4,y6:5,l4:6,oW:7};g.x(tx,U);tx.prototype.H8=function(){return Sk(this,3)};
    tx.prototype.P8=function(){return Sk(this,5)};
    tx.prototype.Cs=function(a){return S(this,5,a)};g.x(ux,U);g.x(Una,U);g.x(Vna,U);g.x(vx,U);g.x(Wna,U);Wna.yb=[2];g.x(wx,U);wx.prototype.getDeviceId=function(){return Sk(this,6)};
    wx.prototype.getPlayerType=function(){return Tk(this,36)};
    wx.prototype.setHomeGroupInfo=function(a){return ik(this,Wna,81,a)};
    wx.prototype.clearLocationPlayabilityToken=function(){return Lj(this,89)};
    wx.yb=[9,66,32,86,100,101];g.x(xx,U);xx.prototype.getValue=function(){return Sk(this,dk(this,Dwa,2))};
    var Dwa=[2,3,4,5,6];g.x(yx,U);yx.yb=[15,26,28];g.x(zx,U);zx.yb=[5];g.x(Ax,U);Ax.prototype.getToken=function(){return Ok(this,2)};
    Ax.prototype.setToken=function(a){return S(this,2,a)};g.x(Bx,U);Bx.prototype.setSafetyMode=function(a){return T(this,5,a)};
    Bx.yb=[12];g.x(Cx,U);Cx.prototype.zy=function(a){return ik(this,wx,1,a)};
    Cx.yb=[12];var aM=new g.Mw("thumbnailLandscapePortraitRenderer");var BMa={Sbb:0,Nbb:1,Qbb:2,Rbb:3,Obb:4,Pbb:5};var zMa={ycb:0,xcb:1,Tbb:2,Ubb:3,Vbb:4,Wbb:5,Xbb:6,Ybb:7,Zbb:8,bcb:9,ccb:10,dcb:11,ecb:12,fcb:13,gcb:14,hcb:15,jcb:16,kcb:17,ncb:18,ocb:19,pcb:20,scb:21,qcb:22,rcb:23,tcb:24,ucb:25,vcb:26,wcb:27,mcb:28,acb:29,icb:30,lcb:31};var yMa={Icb:0,zcb:1,Acb:2,Bcb:3,Ccb:4,Dcb:5,Ecb:6,Fcb:7,Gcb:8,Hcb:9,Jcb:10};var AMa={Ncb:0,Lcb:1,Mcb:2,Kcb:3};var bMa={Uta:0,yta:1,Vta:2,Nta:3,uta:4,vta:5,Kta:6,wta:7,Ita:8,Jta:13,Cta:9,Eta:10,Hta:11,Wta:12,Ata:14,Gta:15,Dta:16,Pta:17,Mta:18,Sta:19,Qta:20,Bta:21,Rta:22,zta:23,Fta:24,Ota:25,Lta:26,Tta:27,xta:28};var cMa={aua:0,Zta:1,Yta:2,Xta:3};var uMa={efb:0,cfb:1,dfb:2};var VLa={qqa:0,oqa:4,nqa:2,lqa:5,mqa:8,pqa:9,kqa:3,rqa:6,sqa:7};var WLa={Nva:0,Kva:1,Lva:2,Ova:3,Pva:4,Mva:5};var ULa={qwa:0,owa:8,mwa:2,kwa:5,lwa:9,nwa:3,jwa:4,rwa:6,swa:7,pwa:10};var gMa={Xka:0,Vka:1,Wka:2,Zka:3,dla:4,Yka:5};var DMa={F4a:0,y4a:1,A4a:2,E4a:3,C4a:4,B4a:6,z4a:7,D4a:5};var Ymb={xlb:0,wlb:1,qlb:2,vlb:3,slb:4,tlb:5,rlb:6};var rMa={Rlb:0,Qlb:1,Slb:2};var hMa={olb:0,flb:1,glb:2,hlb:3,ilb:4,jlb:5,klb:6,llb:7,mlb:8,nlb:9};var Zmb={Ulb:0,Tlb:1};var iMa={Dbb:0,pbb:1,Cbb:2,qbb:3,rbb:4,vbb:5,ubb:6,tbb:7,Ebb:8,nbb:9,obb:10,Bbb:11,Abb:12,zbb:13,sbb:14,xbb:15,wbb:16};var PNa={sfa:0,qfa:1,pfa:2,rfa:3};g.$mb=new g.Mw("changeEngagementPanelVisibilityAction");var Tza=new g.Mw("continuationCommand");g.anb=new g.Mw("openPopupAction");g.u2=new g.Mw("webCommandMetadata");var zXa=new g.Mw("metadataBadgeRenderer");var Sza=new g.Mw("signalServiceEndpoint");var SOa={tla:0,ula:1,ola:2,sla:3,qla:4,rla:5,nla:6};var TOa={Cla:0,zla:1,wla:2,Bla:3,Dla:4,yla:5,xla:6,Ala:7};g.x(Dx,U);Dx.prototype.getType=function(){return Tk(this,1)};var mO={ULa:0,VLa:1,TLa:2,PLa:3,RLa:4,SLa:5,WLa:6,QLa:7};var bnb={pXa:0,hXa:1,iXa:2,oXa:11,nXa:3,mXa:6,lXa:7,jXa:8,kXa:9,gXa:10};var cnb={vYa:0,sYa:1,uYa:2,tYa:3,rYa:4};var dnb={c2a:0,M1a:1,d2a:2,a2a:3,Z1a:4,Y1a:5,X1a:6,P1a:7,N1a:8,T1a:9,h2a:10,O1a:11,V1a:12,f2a:13,g2a:14,W1a:15,S1a:16,R1a:17,U1a:18,Q1a:19,e2a:20,b2a:21};var QLa={l2a:0,k2a:86};var nO={Z4a:0,Y4a:1,Q4a:2,N4a:3,P4a:4,a5a:5,X4a:6,K4a:7,b5a:8,I4a:9,V4a:10,c5a:11,W4a:12,L4a:13,H4a:14,O4a:15,S4a:16,R4a:17,U4a:18,J4a:19,T4a:20,M4a:21};var enb={jbb:0,dbb:1,lbb:2,ebb:3,kbb:4,gbb:5,hbb:6,fbb:7};var nE=new g.Mw("innertubeCommand");var okb=new g.Mw("loggingDirectives");var fnb={d4:0,Z3:1,b4:2,a4:3};var Hra={d4:"EMBEDDED_PLAYER_MODE_UNKNOWN",Z3:"EMBEDDED_PLAYER_MODE_DEFAULT",b4:"EMBEDDED_PLAYER_MODE_PFP",a4:"EMBEDDED_PLAYER_MODE_PFL"};var $Xa=new g.Mw("channelThumbnailEndpoint");var ZXa=new g.Mw("embeddedPlayerErrorMessageRenderer");var VXa=new g.Mw("embeddedPlayerOverlayVideoDetailsRenderer"),aYa=new g.Mw("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),bYa=new g.Mw("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var wXa=new g.Mw("embedsInfoPanelRenderer");var eMa={TSa:0,HSa:14,RSa:15,SSa:16,ISa:17,MSa:18,OSa:19,KSa:20,LSa:21,QSa:22,NSa:23,PSa:24,JSa:25};var gnb=new g.Mw("feedbackEndpoint");var hnb=new g.Mw("callToActionButtonViewModel");g.x(Xna,U);g.x(Yna,U);g.x(Zna,U);var dOa=[1,2];var inb={eMa:0,fMa:1,dMa:2,YLa:3,XLa:4,ZLa:5,bMa:6,aMa:7,cMa:8};var jnb={zMa:0,nMa:1,yMa:2,xMa:3,iMa:4,kMa:5,lMa:6,jMa:7,rMa:8,oMa:9,pMa:10,qMa:16,gMa:11,AMa:12,hMa:13,vMa:14,mMa:15,wMa:17,sMa:18,tMa:19,uMa:20};var knb={EMa:0,BMa:1,DMa:2,CMa:3};var lnb={lJa:0,SIa:1,mJa:8,dJa:16,eJa:17,hJa:2,fJa:3,gJa:4,VIa:5,TIa:6,UIa:7,kJa:9,iJa:10,jJa:11,cJa:12,ZIa:13,bJa:14,aJa:15,YIa:18,WIa:19,XIa:20,RIa:21};var mnb={C1a:0,D1a:1,B1a:2};var nnb={J1a:0,F1a:1,H1a:2,E1a:3,G1a:4,I1a:5};var onb={TMa:0,KMa:1,LMa:2,MMa:3,RMa:4,OMa:5,PMa:6,NMa:7,QMa:8,JMa:9,SMa:10};var pnb={wRa:0,sRa:1,fRa:2,rRa:3,aRa:4,pRa:5,oRa:6,nRa:7,zRa:8,hRa:9,bRa:10,iRa:11,jRa:12,cRa:13,mRa:14,yRa:15,lRa:16,kRa:17,dRa:18,eRa:19,gRa:20,tRa:21,uRa:22,vRa:23,xRa:24,qRa:25};var qnb={VRa:0,RRa:9,LRa:8,XRa:1,cSa:2,aSa:3,bSa:13,SRa:4,NRa:21,ORa:20,PRa:5,HRa:6,GRa:7,JRa:14,IRa:15,eSa:17,fSa:10,QRa:16,KRa:18,URa:19,ERa:11,FRa:12,YRa:22,ZRa:23,DRa:24,WRa:25,CRa:26,dSa:27,MRa:28,TRa:29};var rnb={Wra:0,Ura:1,Vra:2};var snb={PQa:0,HQa:1,KQa:2,NQa:3,IQa:4,FQa:5,LQa:6,MQa:7,EQa:8,OQa:9,JQa:10,GQa:11};var tnb={Zra:0,Xra:1,bsa:2,Yra:3};var unb=new g.Mw("interactionLoggingCommandMetadata");var kua={Nmb:"WEB_DISPLAY_MODE_UNKNOWN",Jmb:"WEB_DISPLAY_MODE_BROWSER",Lmb:"WEB_DISPLAY_MODE_MINIMAL_UI",Mmb:"WEB_DISPLAY_MODE_STANDALONE",Kmb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.x($na,U);g.x(aoa,U);g.x(Ex,U);Ex.prototype.j=function(a,b){return lk(this,1,aoa,a,b)};
    Ex.yb=[1];var pPa={nga:0,Kfa:1,Ufa:2,aga:3,iga:4,jga:5,oga:6,dga:7,Jfa:8,Rfa:9,Qfa:10,tfa:11,Tfa:12,Efa:14,Nfa:15,Zfa:16,Xfa:17,Wfa:43,Sfa:18,Lfa:29,Ofa:19,Afa:20,Gfa:21,lga:22,vfa:23,qga:24,Pfa:25,Bfa:26,fga:27,Dfa:28,gga:30,hga:31,Vfa:32,kga:33,wfa:34,ega:35,tga:36,yfa:37,zfa:38,pga:39,Hfa:40,Ifa:41,xfa:42,Mfa:44,Ffa:45,Yfa:46,vga:47,rga:48,Cfa:49,cga:50,ufa:51};var vnb={Cva:0,Bva:1,Ava:2};g.x(boa,U);g.x(coa,U);var wnb={Via:0,Pia:114,Lha:1,Jia:4,Kia:14,yha:15,Lia:17,jha:6,nha:7,pha:8,oha:9,wha:5,dia:16,Zha:101,Iia:20,Hia:26,yia:28,Cha:104,Uga:105,Wia:50,Gia:88,Bia:89,Dia:90,Cia:91,Dha:2,Qha:92,Rha:19,Xga:25,Ria:107,mha:29,Gha:93,Iha:94,Hha:95,Tia:30,aia:31,Pha:116,Nha:3,Jha:82,Fha:83,Eha:84,Mha:85,Aia:11,Xia:27,fia:10,Oia:115,Rga:12,Tga:13,Sga:49,Qga:106,hha:18,Yha:21,tha:22,Pga:23,Fia:24,Fga:32,Wha:33,Jga:34,eja:35,eha:36,oia:37,Aha:38,Qia:39,Mia:40,Nia:41,Zia:42,iha:43,Uia:44,zha:45,sha:46,gia:47,bia:48,
        Kha:51,xha:52,lha:53,zia:54,Bha:55,Wga:56,dha:57,fha:99,Vga:58,kia:59,uha:60,lia:61,hia:62,Tha:63,dja:64,aja:65,Yia:66,cja:67,bja:68,Ega:69,jia:70,pia:71,qia:72,tia:73,uia:74,ria:75,sia:117,aha:76,cha:77,Mga:78,gha:79,Oha:80,vha:81,Yga:86,Oga:87,Hga:97,Gga:103,Sha:98,mia:100,Kga:102,xia:108,wia:109,Iga:110,Nga:111,Uha:112,via:113,qha:118,Sia:119,Xha:120,Vha:121,rha:122,Eia:123,Lga:124,iia:125,cia:126,Zga:127,bha:128};var xnb={tja:0,nja:1,pja:2,rja:3,lja:4,gja:5,ija:6,kja:7,qja:8,hja:9,jja:10,oja:13,sja:14,fja:11,mja:12};var ynb={qka:0,wja:1,xja:2,zja:3,Gja:4,kka:42,bka:9,lka:10,Eja:11,ika:12,hka:13,Oja:43,aka:14,Pja:15,oka:47,Rja:46,Wja:16,Vja:17,Aja:18,fka:19,Dja:20,gka:21,pka:22,mka:23,nka:24,Cja:25,yja:26,jka:27,Tja:28,Yja:38,Zja:39,Xja:49,dka:5,Qja:6,Fja:7,Kja:8,Uja:29,cka:30,Sja:31,uja:32,Lja:33,Jja:34,Hja:35,ska:36,Nja:37,rka:40,Mja:41,vja:44,Ija:45,Bja:48};var COa={xka:0,wka:1,tka:2,vka:3,uka:4};var AOa={Xva:0,Uva:1,Tva:2,Wva:3,Vva:4};var znb={Bwa:0,zwa:1,wwa:2,Awa:3,xwa:4,ywa:5};var Anb={Ewa:0,Cwa:1,Dwa:2};var Bnb={Lwa:0,Kwa:1,Iwa:2,Jwa:3,Hwa:4};var Cnb={Owa:0,Mwa:1,Nwa:2,Pwa:3};var Dnb={Vwa:0,Qwa:1,Uwa:2,Twa:3,Swa:4,Rwa:5};var Enb={bxa:0,axa:1,Wwa:2};var Fnb={Zwa:0,Xwa:1,Ywa:2};var Gnb={exa:0,cxa:1,dxa:2};var Hnb={sxa:0,oxa:1,nxa:2,ixa:3,mxa:4,gxa:5,hxa:6,pxa:7,jxa:8,qxa:9,lxa:10,fxa:11,kxa:12,rxa:13};var Inb={xxa:0,vxa:1,wxa:2,uxa:3,txa:4};var zOa={COa:0,YNa:1,ZNa:2,hNa:3,PNa:4,aOa:5,QNa:6,iNa:7,bOa:8,aNa:9,bNa:10,qNa:11,gNa:12,jNa:13,SNa:14,oNa:15,ZMa:16,rOa:17,NNa:18,kNa:19,VNa:20,TNa:21,UNa:22,YMa:23,AOa:25,qOa:26,hPa:61,FNa:35,uNa:36,sNa:37,zNa:38,ANa:113,xNa:93,yNa:114,DNa:39,CNa:115,BNa:40,JNa:41,xOa:97,yOa:106,zOa:102,GNa:42,ENa:43,KNa:44,LNa:45,dNa:24,eNa:27,fNa:28,ZOa:29,cPa:75,aPa:104,bPa:30,TOa:98,WOa:108,UOa:105,VOa:89,dPa:31,ePa:86,XOa:32,YOa:91,HOa:51,JOa:52,SOa:62,LOa:70,POa:63,NOa:64,IOa:65,ROa:66,KOa:71,OOa:67,MOa:68,
        QOa:69,gPa:33,HNa:46,INa:47,sOa:49,tOa:50,uOa:94,kOa:77,dOa:78,cOa:79,eOa:80,RNa:53,DOa:54,FOa:55,EOa:56,mOa:112,lOa:57,nOa:101,pOa:110,oOa:96,GOa:58,WNa:59,XNa:60,fOa:72,gOa:107,jOa:84,hOa:92,mNa:73,vOa:74,cNa:76,BOa:81,tNa:82,wOa:83,vNa:85,wNa:95,fPa:87,ONa:88,pNa:90,iOa:99,rNa:100,lNa:103,nNa:109,MNa:111};var DOa={S3:0,Zua:1,XMa:2,Iva:3,B6:4,C6:5,o6a:6,e7a:7,T2a:8,R6:9,ava:10,Aka:11,Dka:12,lmb:13,Rka:14,Tka:15,Lka:16,Mka:17,Eka:18,Dra:19,Iza:20,QJa:21,GKa:22,S6:23,Peb:24,zka:25,RVa:26,QVa:47,G6:27,Cra:28,n6a:29,LFa:30,PJa:31,zva:32,Ykb:33,Rkb:34,Okb:35,Wkb:36,Xkb:37,Tkb:38,Ukb:39,Vkb:40,Qkb:41,Pkb:42,Tra:43,s6:44,Oqa:45,D3:46,Aga:48,m4:49,Jeb:50,Eya:51,hSa:52,Nob:53};var Jnb={F0a:0,u0a:1,z0a:2,x0a:3,y0a:4,t0a:5,D0a:6,E0a:7,s0a:8,B0a:9,v0a:10,w0a:11,A0a:12,C0a:13};var Knb={K0a:0,L0a:1,G0a:2,H0a:3,J0a:4,I0a:5};var yOa={n1a:0,i1a:1,d1a:2,e1a:3,f1a:21,X0a:4,R0a:5,U0a:6,T0a:7,W0a:8,S0a:24,m1a:9,Q0a:10,l1a:11,k1a:12,b1a:22,h1a:13,g1a:20,Y0a:14,a1a:15,Z0a:16,P0a:17,O0a:19,V0a:18,N0a:23,j1a:25};var FOa={Gab:0,zab:1,Aab:14,Cab:15,Fab:20,Eab:21,Dab:22,mab:2,vab:3,rab:4,sab:5,hab:6,wab:7,qab:8,nab:9,jab:10,yab:11,uab:12,xab:13,iab:16,Bab:17,pab:18,oab:19};var Lnb={Sab:0,Rab:1,Kab:2,Lab:3,Pab:4,Oab:5,Qab:6,Mab:7,Nab:8};var GOa={Zgb:0,Wgb:1,Ygb:2,Xgb:3,Qgb:4,Ugb:5,Tgb:6,Sgb:8,Rgb:9,Vgb:7};var lO={zib:0,ahb:1,Khb:2,tib:3,oib:4,khb:5,Vhb:6,zhb:7,cib:8,Shb:9,mib:10,qib:11,eib:12,lhb:13,Thb:14,xhb:15,ihb:16,Qhb:17,dib:18,pib:19,uhb:20,Chb:21,xib:22,wib:57,Bhb:23,thb:24,jhb:25,yib:26,Ohb:27,rib:28,sib:29,Xhb:30,vib:31,whb:32,fib:33,Ghb:34,Ihb:35,Rhb:36,Phb:37,hib:38,Uhb:39,Aib:40,Dhb:41,Ehb:42,Fhb:43,ghb:44,fhb:45,ehb:46,bhb:58,dhb:59,kib:47,lib:48,Yhb:67,Zhb:68,yhb:49,gib:50,jib:51,iib:52,Mhb:53,rhb:54,uib:55,Hhb:56,aib:60,Lhb:61,Ahb:62,nib:63,vhb:64,Nhb:69,mhb:65,hhb:66,qhb:70,phb:71,
        Whb:74,shb:72,bib:73,ohb:75,nhb:76,Jhb:77};g.x(doa,U);g.x(eoa,U);g.x(Fx,U);Fx.prototype.gg=function(){return Sk(this,1)};g.x(foa,U);g.x(goa,U);g.x(hoa,U);var IOa=[1,2];g.x(Gx,U);Gx.prototype.getType=function(){return Tk(this,1)};
    var HOa=[3,4];g.x(Hx,U);g.k=Hx.prototype;g.k.Nw=function(){return Sk(this,1)};
    g.k.l7=function(a,b){return lk(this,2,Gx,a,b)};
    g.k.m7=function(a,b){return lk(this,3,Gx,a,b)};
    g.k.k7=function(a,b){return lk(this,4,Gx,a,b)};
    g.k.o7=function(a,b){return lk(this,5,Gx,a,b)};
    g.k.n7=function(a,b){return lk(this,6,Gx,a,b)};
    Hx.yb=[2,3,4,5,6];g.x(Ix,U);Ix.prototype.getType=function(){return Tk(this,2)};
    Ix.prototype.j=function(a,b){return Xj(this,5,yi,a,b)};
    Ix.yb=[5];g.x(Jx,U);Jx.prototype.B=function(a,b){return Xj(this,2,yi,a,b)};
    Jx.prototype.j=function(a,b){return lk(this,4,Gx,a,b)};
    Jx.prototype.D=function(a,b){return lk(this,5,Gx,a,b)};
    Jx.prototype.C=function(a,b){return lk(this,6,Gx,a,b)};
    Jx.yb=[2,4,5,6];g.x(Kx,U);Kx.prototype.getType=function(){return Tk(this,2)};g.x(Lx,U);Lx.prototype.j=function(a,b){return lk(this,1,Kx,a,b)};
    Lx.yb=[1];g.x(ioa,U);g.x(Mx,U);Mx.prototype.j=function(a,b){return Xj(this,1,yi,a,b)};
    Mx.yb=[1];g.x(Nx,U);Nx.prototype.j=function(a,b){return Xj(this,1,yi,a,b)};
    Nx.prototype.B=function(a,b){return Xj(this,2,yi,a,b)};
    Nx.yb=[1,2];g.x(Ox,U);Ox.prototype.j=function(a,b){return lk(this,2,Mx,a,b)};
    Ox.yb=[2];g.x(Px,U);g.x(joa,U);g.x(Qx,U);Qx.prototype.gg=function(){return Sk(this,1)};
    Qx.prototype.j=function(a,b){return lk(this,3,joa,a,b)};
    Qx.yb=[3];g.x(Rx,U);Rx.prototype.eh=function(){return Tk(this,1)};g.x(Sx,U);Sx.prototype.wf=function(){return Tk(this,2)};g.x(koa,U);g.x(loa,U);g.x(Tx,U);Tx.prototype.getType=function(){return Tk(this,1)};
    Tx.prototype.gg=function(){return Sk(this,8)};g.x(ay,U);ay.prototype.gg=function(){return Sk(this,1)};g.x(by,U);by.prototype.gg=function(){return Sk(this,1)};g.x(cy,U);cy.prototype.gg=function(){return Sk(this,1)};g.x(dy,U);dy.prototype.gg=function(){return Sk(this,2)};
    dy.prototype.wJ=function(){return Sk(this,4)};g.x(ey,U);ey.prototype.gg=function(){return Sk(this,1)};g.x(fy,U);fy.prototype.gg=function(){return Sk(this,1)};g.x(gy,U);g.x(moa,U);g.x(noa,U);g.x(hy,U);hy.prototype.gg=function(){return Sk(this,2)};g.x(ooa,U);g.x(poa,U);g.x(qoa,U);var v2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.x(iy,U);g.x(roa,U);g.x(soa,U);g.x(toa,U);g.x(jy,U);jy.prototype.getState=function(){return Tk(this,1)};
    jy.prototype.Hc=function(a){return T(this,1,a)};g.x(uoa,U);g.x(ky,U);ky.prototype.j=function(a,b){return lk(this,1,uoa,a,b)};
    ky.yb=[1];g.x(ly,U);ly.prototype.j=function(a,b){return lk(this,2,ky,a,b)};
    ly.prototype.B=function(a,b){return lk(this,3,toa,a,b)};
    ly.yb=[2,3];g.x(my,U);my.prototype.B=function(a,b){return lk(this,1,ly,a,b)};
    my.prototype.j=function(a,b){return lk(this,2,soa,a,b)};
    my.yb=[1,2];g.x(voa,U);g.x(ny,U);g.x(woa,U);g.x(oy,U);oy.prototype.Cm=function(){return Aea(this,4)};g.x(py,U);py.prototype.getStatus=function(){return Pk(this,2)};g.x(xoa,U);g.x(qy,U);qy.prototype.setConfig=function(a){return ik(this,xoa,2,a)};g.x(yoa,U);g.x(ry,U);ry.prototype.getValue=function(){return Sk(this,2)};g.x(zoa,U);g.x(Aoa,U);g.x(Boa,U);g.x(sy,U);sy.prototype.j=function(a,b){return lk(this,3,Boa,a,b)};
    sy.yb=[3];g.x(Coa,U);g.x(ty,U);g.x(uy,U);g.x(vy,U);g.k=vy.prototype;g.k.getSettings=function(){return g.hk(this,uy,1)};
    g.k.qh=function(a){return ik(this,uy,1,a)};
    g.k.getState=function(){return Tk(this,2)};
    g.k.Hc=function(a){return T(this,2,a)};
    g.k.Cm=function(){return Rk(this,3)};g.x(Doa,U);g.x(wy,U);wy.prototype.Cm=function(){return Rk(this,4)};g.x(Eoa,U);g.x(yy,U);g.k=yy.prototype;g.k.getType=function(){return Tk(this,1)};
    g.k.g7=function(a,b){return lk(this,2,Eoa,a,b)};
    g.k.Cm=function(){return Rk(this,6)};
    g.k.getPlaybackRate=function(){return Bea(this,7)};
    g.k.setPlaybackRate=function(a){return Zk(this,7,a)};
    g.k.setEnabled=function(a){return Uk(this,8,a)};
    yy.yb=[2];g.x(zy,U);zy.prototype.Cm=function(){return Rk(this,3)};g.x(Ay,U);Ay.prototype.j=function(a,b){return lk(this,1,yy,a,b)};
    Ay.prototype.B=function(a,b){return lk(this,2,zy,a,b)};
    Ay.yb=[1,2];g.x(By,U);By.prototype.getState=function(){return Tk(this,1)};
    By.prototype.Hc=function(a){return T(this,1,a)};g.x(g.Cy,U);g.x(g.Dy,U);g.k=g.Dy.prototype;g.k.zy=function(a){return T(this,1,a)};
    g.k.d7=function(a,b){return lk(this,4,Ay,a,b)};
    g.k.setComposition=function(a,b){yea(this,4,Ay,b,a,!1,1);return this};
    g.k.getDeviceInfo=function(){return g.hk(this,ty,8)};
    g.k.Tw=ba(0);g.k.qc=function(){return g.hk(this,Coa,12)};
    g.Dy.yb=[4];g.x(Ey,U);Ey.prototype.Ff=function(){return Tk(this,4)};g.x(Fy,U);Fy.prototype.j=function(a,b){return Xj(this,1,yi,a,b)};
    Fy.prototype.Dg=function(a,b){vea(this,1,yi,a,b,Dea)};
    Fy.yb=[1];g.x(Gy,U);g.k=Gy.prototype;g.k.qe=function(){return Sk(this,1)};
    g.k.setVideoId=function(a){return S(this,1,a)};
    g.k.getPlaylistId=function(){return Sk(this,2)};
    g.k.getPlaylistIndex=function(){return Qk(this,3)};
    g.k.getPlayerType=function(){return Tk(this,5)};g.x(Foa,U);g.x(Hy,U);Hy.prototype.j=function(a,b){return lk(this,4,ry,a,b)};
    Hy.prototype.B=function(a,b){return Xj(this,5,Rda,a,b)};
    Hy.yb=[4,5];g.x(Iy,U);g.x(Jy,U);g.x(Goa,U);g.x(Ky,U);Ky.prototype.Ff=function(){return Sk(this,2)};g.x(Ly,U);Ly.prototype.j=function(a,b){return lk(this,1,Ky,a,b)};
    Ly.yb=[1];g.x(My,U);My.prototype.Ff=function(){return Sk(this,2)};g.x(Ny,U);Ny.prototype.j=function(a,b){return lk(this,1,My,a,b)};
    Ny.yb=[1];g.x(Hoa,U);var ZNa=[1,2,3];g.x(Oy,U);Oy.prototype.j=function(a,b){return lk(this,1,Hoa,a,b)};
    Oy.yb=[1];g.x(Py,U);var mE=[2,3,4,5];g.x(Qy,U);Qy.prototype.getMessage=function(){return Sk(this,1)};g.x(Ry,U);g.x(Sy,U);g.x(Ioa,U);g.x(Ty,U);Ty.prototype.Si=function(a,b){return lk(this,5,Ioa,a,b)};
    Ty.yb=[5];g.x(Joa,U);g.x(Uy,U);Uy.prototype.j=function(a,b){return lk(this,3,Joa,a,b)};
    Uy.prototype.B=function(a,b){return Xj(this,4,yi,a,b)};
    Uy.yb=[3,4];g.x(Koa,U);g.x(Loa,U);g.x(Vy,U);Vy.prototype.B=function(a,b){return lk(this,19,Vna,a,b)};
    Vy.prototype.j=function(a,b){return lk(this,20,Una,a,b)};
    Vy.yb=[19,20];g.x(Wy,U);g.x(Moa,U);g.x(Xy,U);Xy.prototype.j=function(a,b){return lk(this,2,Wy,a,b)};
    Xy.prototype.setConfig=function(a){return ik(this,Moa,3,a)};
    Xy.prototype.C=function(a,b){return lk(this,5,Wy,a,b)};
    Xy.prototype.B=function(a,b){return lk(this,9,Zna,a,b)};
    Xy.yb=[2,5,9];g.x(Yy,U);Yy.prototype.Cm=function(){return Aea(this,2)};g.x(Zy,U);Zy.prototype.j=function(a,b){return lk(this,9,Yy,a,b)};
    Zy.yb=[9];g.x(Noa,U);g.x(Ooa,U);g.x(Poa,U);g.x(Qoa,U);g.x($y,U);$y.prototype.getType=function(){return Tk(this,2)};
    $y.prototype.j=function(a,b){return lk(this,3,Qoa,a,b)};
    $y.yb=[3];g.x(az,U);az.prototype.j=function(a,b){return lk(this,10,voa,a,b)};
    az.prototype.B=function(a,b){return lk(this,17,Zy,a,b)};
    az.yb=[10,17];g.x(Roa,U);var MNa={eqa:0,dqa:1,aqa:2,bqa:3,cqa:4};var Mnb={pra:0,lra:1,nra:2,mra:3,ora:4};var Nnb={Bra:0,yra:1,xra:2,zra:3,wra:4,ura:5,vra:6,Ara:7,tra:8,rra:9,qra:10,sra:11};g.x(bz,U);g.k=bz.prototype;g.k.Ff=function(){return Sk(this,2)};
    g.k.gg=function(){return Sk(this,3)};
    g.k.f7=function(a,b){return Xj(this,10,yi,a,b)};
    g.k.wJ=function(){return Sk(this,7)};
    g.k.Cm=function(){return Pk(this,11)};
    bz.yb=[10];var cNa={Fra:0,Era:1,Hra:2,Gra:3};var bNa={Rra:0,Qra:1,Jra:2,Kra:3,Lra:4,Mra:5,Ora:6,Pra:7,Ira:8,Nra:9};var rNa={Eza:0,Fza:3,Gza:1,Dza:2};var YMa={UAa:0,Oza:1,Xza:2,Zza:3,cAa:4,dAa:5,iAa:6,jAa:7,kAa:8,lAa:9,mAa:10,pAa:11,qAa:12,rAa:13,sAa:14,tAa:15,zAa:16,DAa:17,EAa:18,HAa:19,JAa:20,LAa:21,MAa:22,OAa:23,QAa:24,VAa:25,WAa:26,BAa:27,RAa:28,CAa:29,oAa:30,fAa:31,nAa:32,aBa:33,cBa:34,Nza:35,Uza:36,SAa:37,TAa:38,Yza:39,vAa:40,wAa:51,Tza:41,Pza:42,aAa:43,xAa:44,Vza:45,AAa:46,KAa:47,Sza:48,GAa:49,yAa:50,Wza:52,bAa:53,eAa:54,NAa:55,PAa:56,YAa:57,XAa:58,IAa:59,Qza:60,gAa:61,Rza:62,ZAa:63,bBa:64,FAa:65,hAa:66,uAa:67};var aNa={UEa:0,FBa:1,yDa:2,QEa:3,oFa:4,rDa:5,zDa:6,RBa:7,UBa:8,TBa:9,NDa:10,qDa:11,pDa:12,XDa:13,mEa:14,REa:15,iFa:16,QBa:17,mBa:18,FCa:19,fCa:20,wDa:21,DDa:22,TEa:23,oBa:24,sBa:25,SDa:26,nCa:116,ICa:27,JCa:28,MDa:29,JBa:30,BCa:31,vDa:32,LDa:33,kBa:34,lBa:35,iBa:36,jBa:37,ADa:38,BDa:39,aEa:40,PBa:41,mFa:42,QDa:43,KDa:44,ODa:45,sDa:46,PDa:47,wCa:48,aCa:49,ZBa:160,qFa:50,HCa:51,GCa:52,cCa:53,dCa:54,NEa:55,MEa:56,LEa:57,OEa:58,kCa:59,xCa:60,hFa:61,WDa:62,RDa:63,UDa:64,CDa:65,DCa:69,ECa:121,pFa:70,ACa:71,
        HEa:72,IEa:73,YDa:74,ZDa:75,zCa:76,yCa:77,JDa:78,IDa:80,fBa:81,xBa:115,vBa:120,wBa:122,EBa:123,LCa:124,KCa:125,uBa:126,qEa:127,oEa:128,pEa:129,nFa:130,hBa:131,tBa:132,qBa:133,CCa:152,vCa:178,eCa:179,TDa:181,uCa:193,OBa:198,kFa:212,ABa:213,KBa:217,fEa:218,pBa:220,SEa:221,GBa:222,NBa:223,OCa:82,QCa:83,gDa:84,RCa:85,mDa:86,PCa:87,TCa:88,aDa:89,dDa:90,iDa:91,fDa:92,hDa:93,NCa:94,UCa:95,eDa:96,WCa:97,VCa:98,MCa:99,SCa:100,jDa:101,bDa:102,nDa:103,kDa:104,YCa:105,lDa:106,cDa:107,ZCa:118,XCa:214,WEa:108,
        aFa:109,ZEa:110,YEa:111,bFa:112,XEa:113,VEa:114,gBa:134,rBa:138,yBa:139,zBa:140,DBa:141,LBa:142,SBa:144,VBa:165,MBa:143,bCa:135,hCa:145,iCa:146,xDa:147,dFa:148,fFa:149,jFa:150,KEa:153,dBa:154,eFa:155,lFa:156,nBa:157,gCa:158,rEa:159,pCa:161,eBa:162,nEa:163,PEa:164,oCa:166,jCa:167,HDa:168,mCa:169,lCa:170,GDa:171,VDa:172,rCa:173,qCa:210,CBa:174,sCa:175,gEa:176,tCa:177,HBa:182,GEa:183,FEa:184,uDa:136,tDa:137,JEa:151,XBa:180,YBa:190,WBa:192,cEa:185,eEa:186,dEa:187,bEa:191,BBa:188,cFa:189,EDa:194,FDa:199,
        BEa:66,wEa:67,xEa:117,CEa:68,EEa:197,yEa:195,DEa:196,sEa:201,zEa:202,tEa:203,lEa:204,kEa:205,jEa:206,uEa:207,vEa:208,AEa:209,IBa:200,gFa:211,oDa:219,iEa:215,hEa:216};var Onb={Yua:0,Xua:1,Vua:2,Wua:3};var APa={g9a:0,T9a:1,b$a:2,E9a:3,F9a:4,G9a:5,d$a:39,e$a:6,Z9a:7,S9a:50,c$a:69,U9a:70,V9a:71,O9a:74,H9a:32,I9a:44,J9a:33,a$a:8,K9a:9,L9a:10,N9a:11,M9a:12,P9a:73,Q9a:77,R9a:78,Y9a:84,W9a:87,X9a:88,k9a:56,l9a:57,m9a:58,n9a:59,o9a:60,p9a:61,F$a:13,G$a:14,H$a:15,P$a:16,K$a:17,R$a:18,Q$a:19,M$a:20,N$a:21,I$a:34,O$a:35,L$a:36,J$a:49,t9a:37,u9a:38,w9a:40,y9a:41,x9a:42,z9a:43,A9a:51,v9a:52,s9a:67,q9a:22,r9a:23,i$a:24,o$a:25,p$a:62,n$a:26,l$a:27,h$a:48,f$a:53,g$a:63,q$a:66,k$a:54,m$a:68,r$a:72,j$a:76,C9a:64,
        B9a:65,s$a:28,v$a:29,u$a:30,t$a:31,C$a:45,E$a:46,D$a:47,B$a:83,z$a:55,x$a:79,w$a:80,y$a:81,A$a:82,D9a:86,h9a:89,i9a:90,j9a:91};var xPa={T$a:0,U$a:1,S$a:2};var CPa={X$a:0,W$a:1,V$a:2};var BPa={eab:0,cab:1,aab:2,dab:3,Y$a:4,Z$a:5,bab:6};var gPa={Deb:0,Ceb:1,Beb:2};var fPa={Heb:0,Feb:1,Eeb:2,Geb:3};g.x(Soa,U);g.x(Toa,U);g.x(Uoa,U);g.x(Voa,U);g.x(Woa,U);g.x(cz,U);cz.prototype.hasFeature=function(){return zi(Ij(this,2))!=null};g.x(Xoa,U);g.x(Yoa,U);g.x(Zoa,U);g.x(dz,U);dz.prototype.getName=function(){return Tk(this,1)};
    dz.prototype.getStatus=function(){return Tk(this,2)};
    dz.prototype.getState=function(){return Tk(this,3)};
    dz.prototype.Hc=function(a){return T(this,3,a)};g.x(ez,U);ez.prototype.j=function(a,b){return lk(this,2,dz,a,b)};
    ez.yb=[2];g.x($oa,U);g.x(fz,U);fz.prototype.j=function(a,b){return lk(this,1,ez,a,b)};
    fz.prototype.B=function(a,b){return lk(this,2,ez,a,b)};
    fz.yb=[1,2];var wPa={HMa:0,FMa:1,GMa:2};var dPa={hTa:0,bTa:1,eTa:2,iTa:3,cTa:4,dTa:5,fTa:6,gTa:7};var ePa={lTa:0,kTa:1,jTa:2};var cPa={wXa:0,xXa:1,vXa:2};var bPa={NXa:0,AXa:1,JXa:2,OXa:3,LXa:4,DXa:5,zXa:6,BXa:7,CXa:8,MXa:9,KXa:10,EXa:11,HXa:12,IXa:13,GXa:14,FXa:15,yXa:16};var ZOa={fdb:0,bdb:1,edb:2,ddb:3,cdb:4};var YOa={jdb:0,hdb:1,idb:2,gdb:3};var $Oa={qdb:0,mdb:1,odb:2,kdb:3,pdb:4,ldb:5,ndb:6};var XOa={zdb:0,Bdb:1,Adb:2,udb:3,sdb:4,tdb:5,Edb:6,vdb:7,Fdb:8,xdb:9,ydb:10,rdb:11,wdb:12,Ddb:13,Cdb:14};var aPa={Idb:0,Hdb:1,Gdb:2};var kPa={Pib:0,Nib:1,Mib:2,Hib:3,Jib:4,Kib:5,Gib:6,Iib:7,Oib:8,Rib:9,Lib:10,Eib:11,Fib:12,Qib:13};var jPa={Tib:0,Sib:1};var tPa={Wib:0,Xib:1,Uib:2,Vib:3};var rPa={tjb:0,Yib:1,sjb:2,rjb:3,xjb:4,wjb:5,qjb:19,cjb:6,ejb:7,mjb:8,djb:24,pjb:25,njb:20,gjb:21,ajb:22,ojb:23,Zib:9,bjb:10,fjb:11,hjb:12,ijb:13,jjb:14,ljb:15,kjb:16,ujb:17,vjb:18};var lPa={Bjb:0,Ajb:1,Cjb:2,yjb:3,zjb:4};var hPa={Rjb:0,Kjb:1,Fjb:2,Ojb:3,Jjb:4,Qjb:5,Ejb:6,Gjb:7,Ljb:8,Hjb:9,Mjb:10,Njb:11,Ijb:12,Pjb:13};var nPa={Yjb:0,Wjb:1,Ujb:2,Vjb:3,Xjb:4};var mPa={dkb:0,Zjb:1,akb:2,bkb:3};var iPa={hkb:0,gkb:1,fkb:2};var sPa={kkb:0,ikb:1,jkb:2};var uPa={Gkb:0,Fkb:1,Ekb:2,Ckb:3,Dkb:4};var vPa={Kkb:0,Ikb:1,Hkb:2,Jkb:3};var Pnb={tva:0,qva:1,rva:2,ova:3,sva:4,pva:5};var VMa={yga:0,wga:1,xga:2};var uLa={N6:0,dKa:1,PHa:2,QHa:3,IMa:4,dYa:5,vqa:6};var iO={Yxa:0,Fxa:101,Lxa:102,Axa:103,Dxa:104,Ixa:105,Jxa:106,Mxa:107,Nxa:108,Pxa:109,Qxa:110,Xxa:111,Kxa:112,Gxa:113,Oxa:114,Sxa:115,Zxa:116,Cxa:117,Hxa:118,aya:119,Txa:120,Uxa:121,Exa:122,Bxa:123,Rxa:124,Wxa:125,Vxa:126};var XNa={jya:0,gya:1,hya:2,eya:3,fya:4,dya:5,iya:6};var Qnb={aza:0,Zya:1,Xya:2,Yya:3};var Rnb={lza:0,jza:1,cza:2,iza:3,bza:4,fza:5,hza:6,kza:7,gza:8,eza:9,dza:10};var Snb={nza:0,oza:1,mza:2};g.x(apa,U);g.x(bpa,U);g.x(gz,U);gz.prototype.getState=function(){return Pk(this,1)};
    gz.prototype.Hc=function(a){return Vk(this,1,a)};g.x(cpa,U);g.x(dpa,U);g.x(epa,U);g.x(fpa,U);g.x(hz,U);hz.prototype.qe=function(){return Sk(this,1)};
    hz.prototype.setVideoId=function(a){return S(this,1,a)};g.x(iz,U);iz.prototype.setTrackingParams=function(a){return al(this,1,a)};g.x(jz,U);jz.prototype.hasVe=function(){return Mj(this,iz,2)};g.x(kz,U);kz.prototype.hasFeature=function(){return zi(Ij(this,1))!=null};g.x(gpa,U);g.x(hpa,U);g.x(lz,U);lz.prototype.Ff=function(){return Tk(this,2)};
    var Tnb=[1];g.x(ipa,U);g.x(jpa,U);g.x(kpa,U);g.x(lpa,U);g.x(mz,U);mz.prototype.getVideoAspectRatio=function(){return Bea(this,2)};g.x(mpa,U);g.x(npa,U);g.x(opa,U);g.x(ppa,U);g.x(qpa,U);g.x(rpa,U);g.x(spa,U);g.x(tpa,U);g.x(upa,U);g.x(nz,U);nz.prototype.getId=function(){return Sk(this,1)};g.x(vpa,U);g.x(oz,U);g.x(pz,U);pz.prototype.j=function(a,b){return lk(this,5,oz,a,b)};
    pz.yb=[5];g.x(wpa,U);g.x(xpa,U);g.x(qz,U);qz.prototype.j=function(a,b){return lk(this,27,xpa,a,b)};
    qz.yb=[27];g.x(ypa,U);g.x(zpa,U);g.x(Apa,U);g.x(Bpa,U);var w2=[1,2,3,4];g.x(Cpa,U);g.x(Dpa,U);g.x(Epa,U);g.x(Fpa,U);g.x(rz,U);rz.prototype.Cm=function(){return Rk(this,2)};g.x(Gpa,U);g.x(Hpa,U);g.x(Ipa,U);g.x(sz,U);g.x(Jpa,U);g.x(Kpa,U);g.x(tz,U);tz.prototype.j=function(a,b){return Xj(this,1,yi,a,b)};
    tz.yb=[1];g.x(uz,U);uz.prototype.Ff=function(){return Tk(this,3)};g.x(Lpa,U);g.x(Mpa,U);g.x(vz,U);g.x(wz,U);g.x(Npa,U);g.x(xz,U);xz.prototype.j=function(a,b){return lk(this,2,wz,a,b)};
    xz.prototype.B=function(a,b){return lk(this,3,wz,a,b)};
    xz.yb=[2,3];g.x(Opa,U);g.x(yz,U);g.x(Ppa,U);g.x(zz,U);zz.prototype.qe=function(){return g.hk(this,yz,dk(this,x2,2))};
    zz.prototype.setVideoId=function(a){return jk(this,yz,2,x2,a)};
    zz.prototype.getPlaylistId=function(){return g.hk(this,vz,dk(this,x2,4))};
    zz.prototype.getChannelId=function(){return g.hk(this,Mpa,dk(this,x2,10))};
    var x2=[2,3,4,5,9,10];g.x(Az,U);Az.prototype.getType=function(){return Tk(this,1)};
    Az.prototype.qe=function(){return Sk(this,3)};
    Az.prototype.setVideoId=function(a){return S(this,3,a)};g.x(Qpa,U);g.x(Rpa,U);g.x(Bz,U);var VOa=[3];g.x(Spa,U);g.x(Tpa,U);g.x(Cz,U);Cz.prototype.wf=function(){return Sk(this,2)};g.x(Upa,U);g.x(Vpa,U);var Unb=[1];g.x(Wpa,U);g.x(Xpa,U);g.x(Ypa,U);g.x(Zpa,U);g.x($pa,U);g.x(aqa,U);g.x(bqa,U);g.x(cqa,U);g.x(Dz,U);Dz.prototype.getStarted=function(){var a=a===void 0?!1:a;var b=Nda(Ij(this,1));return Nk(b,a)};g.x(dqa,U);g.x(eqa,U);g.x(Ez,U);Ez.prototype.getDuration=function(){return Pk(this,2)};
    Ez.prototype.Hl=function(a){Vk(this,2,a)};g.x(fqa,U);g.x(Fz,U);g.x(Gz,U);g.x(gqa,U);g.x(hqa,U);g.x(Hz,U);Hz.prototype.ge=function(){return g.hk(this,gqa,8)};
    Hz.prototype.O9=function(){return Mj(this,gqa,8)};
    Hz.prototype.getVideoData=function(){return g.hk(this,hqa,15)};
    Hz.prototype.nH=function(a){ik(this,hqa,15,a)};
    Hz.yb=[4];g.x(iqa,U);g.x(Iz,U);Iz.prototype.j=function(a){return S(this,2,a)};g.x(Jz,U);Jz.prototype.j=function(a){return S(this,1,a)};
    Jz.yb=[3];g.x(Kz,U);Kz.prototype.j=function(a){return S(this,1,a)};
    Kz.prototype.hasVe=function(){return Mj(this,iz,2)};g.x(Lz,U);Lz.prototype.j=function(a){return S(this,1,a)};
    Lz.prototype.hasVe=function(){return Mj(this,iz,2)};g.x(Mz,U);Mz.prototype.j=function(a){return S(this,1,a)};
    Mz.prototype.hasVe=function(){return Mj(this,iz,2)};g.x(Nz,U);Nz.prototype.j=function(a){return S(this,1,a)};
    Nz.prototype.hasVe=function(){return Mj(this,iz,2)};g.x(mqa,U);g.x(Oz,U);Oz.prototype.getId=function(){return Sk(this,2)};g.x(Rz,U);Rz.prototype.getVisibilityState=function(){return Tk(this,5)};
    Rz.yb=[16];g.x(nqa,U);g.x(Sz,U);Sz.prototype.getPlayerType=function(){return Tk(this,7)};
    Sz.prototype.qe=function(){return Sk(this,19)};
    Sz.prototype.setVideoId=function(a){return S(this,19,a)};
    Sz.yb=[112,83,118,68];g.x(oqa,U);g.x(pqa,U);g.x(Uz,U);Uz.prototype.qe=function(){return Sk(this,1)};
    Uz.prototype.setVideoId=function(a){return S(this,1,a)};
    Uz.prototype.j=function(a,b){return lk(this,9,pqa,a,b)};
    Uz.yb=[9];g.x(Vz,U);Vz.prototype.j=function(a,b){return lk(this,3,Uz,a,b)};
    Vz.yb=[3];g.x(Wz,U);Wz.prototype.qe=function(){return Sk(this,1)};
    Wz.prototype.setVideoId=function(a){return S(this,1,a)};g.x(qqa,U);g.x(Xz,U);Xz.prototype.j=function(a,b){return lk(this,1,Wz,a,b)};
    Xz.prototype.B=function(a,b){return lk(this,2,qqa,a,b)};
    Xz.yb=[1,2];g.x(rqa,U);g.x(sqa,U);g.x(tqa,U);g.x(Yz,U);Yz.prototype.getId=function(){return Sk(this,1)};
    Yz.prototype.j=function(a,b){return Xj(this,2,Ji,a,b)};
    Yz.prototype.setVideoIds=function(a,b){return vea(this,2,Ji,a,b,Cea)};
    Yz.yb=[2];g.x(uqa,U);g.x(vqa,U);g.x(wqa,U);g.x(Zz,U);Zz.prototype.j=function(a,b){return Xj(this,9,yi,a,b)};
    Zz.yb=[9];g.x(xqa,U);g.x(yqa,U);g.x($z,U);$z.prototype.getId=function(){return Sk(this,1)};
    $z.prototype.j=function(a,b){return lk(this,14,wqa,a,b)};
    $z.prototype.B=function(a,b){return lk(this,17,xqa,a,b)};
    $z.yb=[14,17];g.x(aA,U);aA.prototype.B=function(a,b){return lk(this,1,$z,a,b)};
    aA.prototype.j=function(a,b){return lk(this,2,Yz,a,b)};
    aA.yb=[1,2];g.x(zqa,U);g.x(bA,U);bA.prototype.getOrigin=function(){return Sk(this,3)};
    bA.prototype.eh=function(){return Pk(this,6)};g.x(Aqa,U);g.x(Bqa,U);g.x(cA,U);
    var cE=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,
        355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496];var Vnb={Bya:0,yya:1,xya:2,Aya:3,zya:4,vya:5,wya:6};var Wnb={CGa:0,lGa:1,oGa:2,mGa:3,rGa:4,nGa:5,VFa:6,xGa:7,fGa:8,OFa:9,gGa:10,sGa:11,pGa:12,YFa:13,TFa:14,WFa:15,BGa:16,PFa:17,QFa:18,yGa:19,ZFa:20,UFa:21,wGa:22,IGa:23,HGa:24,DGa:25,hGa:26,qGa:27,JGa:28,aGa:29,MFa:30,FGa:31,EGa:32,eGa:33,NGa:34,dGa:35,tGa:36,MGa:37,iGa:38,vGa:39,cGa:40,bGa:41,SFa:42,kGa:43,LGa:44,AGa:45,zGa:53,GGa:46,jGa:47,NFa:48,RFa:49,KGa:50,uGa:51,XFa:52};var Xnb={BHa:0,kHa:1,nHa:2,lHa:3,qHa:4,mHa:5,YGa:6,wHa:7,eHa:8,QGa:9,fHa:10,rHa:11,oHa:12,bHa:13,WGa:14,ZGa:15,AHa:16,SGa:17,TGa:18,xHa:19,cHa:20,XGa:21,vHa:22,GHa:23,FHa:24,CHa:25,gHa:26,pHa:27,HHa:28,dHa:29,OGa:30,DHa:31,RGa:32,LHa:33,sHa:34,KHa:35,hHa:36,uHa:37,VGa:38,jHa:39,JHa:40,zHa:41,yHa:49,EHa:42,iHa:43,PGa:44,UGa:45,IHa:46,tHa:47,aHa:48};var Ynb={GJa:0,FJa:1,HJa:2};var mNa={tIa:0,rIa:1,oIa:2,sIa:3,pIa:4,qIa:5};var Znb={GIa:0,EIa:1,AIa:3,CIa:4,DIa:5,FIa:6,BIa:7};var $nb={MIa:0,JIa:1,LIa:2,KIa:3,IIa:4,HIa:5};var aob={wJa:0,xJa:1,vJa:2,uJa:3,tJa:4};var bob={AJa:0,yJa:1,zJa:2};var cob={MJa:0,NJa:1,OJa:2,LJa:3,JJa:4,KJa:5};var Yxa={xKa:0,eKa:1,kKa:2,lKa:4,rKa:8,mKa:16,nKa:32,wKa:64,vKa:128,gKa:256,iKa:512,pKa:1024,hKa:2048,jKa:4096,fKa:8192,oKa:16384,sKa:32768,qKa:65536,tKa:131072,uKa:262144};var WNa={dLa:0,cLa:1,bLa:2,aLa:4};var VNa={iLa:0,fLa:1,gLa:2,jLa:3,hLa:4,eLa:5};var dob={xFa:0,wFa:1,vFa:2};var eob={pTa:0,oTa:1,nTa:2};var fob={hUa:0,NTa:1,fUa:2,RTa:3,XTa:4,jUa:5,gUa:6,DTa:7,CTa:8,BTa:9,HTa:10,MTa:11,LTa:12,ETa:13,YTa:14,TTa:15,VTa:16,tTa:17,eUa:18,xTa:19,UTa:20,sTa:21,WTa:22,KTa:23,uTa:24,wTa:25,bUa:26,iUa:27,cUa:28,STa:29,FTa:30,ITa:31,JTa:32,ATa:33,kUa:34,yTa:35,GTa:36,ZTa:37,vTa:38,qTa:39,zTa:41,QTa:42,aUa:43,dUa:44,OTa:45,PTa:46,rTa:47};var gob={oUa:0,nUa:1,mUa:2,lUa:3};var iNa={nsa:0,msa:1,lsa:2};var eNa={ZUa:0,YUa:1,VUa:2,WUa:7,UUa:8,TUa:25,CUa:3,DUa:4,LUa:5,MUa:27,KUa:28,EUa:9,sUa:10,qUa:11,rUa:6,BUa:12,zUa:13,AUa:14,yUa:15,GUa:16,HUa:17,FUa:18,JUa:19,IUa:20,vUa:26,wUa:21,uUa:22,xUa:23,tUa:24,bVa:34,aVa:35,dVa:39,cVa:29,QUa:30,RUa:32,SUa:33,OUa:36,PUa:38,NUa:37,XUa:31};var gNa={kVa:0,gVa:1,iVa:2,jVa:3,eVa:4,hVa:5,fVa:6};var fNa={qVa:0,oVa:1,pVa:2,mVa:3,nVa:4,lVa:5};var IMa={xVa:0,rVa:1,tVa:2,sVa:3,uVa:4,vVa:5,wVa:6,yVa:7};var jNa={YVa:0,SVa:1,XVa:2,UVa:3,VVa:4,TVa:5,WVa:6};var lNa={lWa:0,ZVa:1,dWa:2,iWa:3,jWa:4,eWa:5,gWa:6,hWa:7,bWa:8,aWa:9,cWa:10,kWa:11,fWa:12};var kNa={pWa:0,mWa:1,nWa:2,oWa:3};var iOa={Tya:0,Rya:1,Sya:2,Oya:3,Pya:4,Qya:5};var nOa={w_a:0,v_a:1,o_a:2,t_a:3,p_a:4,s_a:5,u_a:6,r_a:7,q_a:8};var INa={Q_a:0,I_a:1,R_a:2,P_a:4,M_a:8,L_a:16,K_a:32,N_a:64,J_a:128,O_a:256};var jOa={k0a:0,e0a:1,j0a:2,b0a:3,T_a:4,Z_a:5,U_a:6,V_a:7,X_a:8,c0a:9,g0a:10,f0a:11,h0a:12,W_a:13,Y_a:14,a0a:15,d0a:16,S_a:17,i0a:18};var FNa={l_a:0,i_a:1,j_a:2,k_a:3};var LNa={D_a:0,F_a:1,C_a:2,y_a:3,E_a:4,z_a:5,A_a:6,B_a:7};var OMa={xkb:0,Fva:1,ZSa:2,iYa:3,kYa:4,lYa:5,fYa:6,Web:7,BYa:8,AYa:9,gYa:10,jYa:11,Bgb:12,Gka:13,Oka:14,Hka:15,Q2a:16,d_a:17,CYa:18,FYa:19,H_a:20,EYa:21,x_a:22,l0a:23,LYa:24,n_a:25,hYa:26,Teb:27,Tcb:28,v6a:29,qsa:30,Lob:31,m_a:32};var NMa={Akb:0,Bga:1,n0a:2,m0a:3,SUCCESS:4,Ieb:5,FAILED:6,j6a:7,zIa:9,Gva:10,yxa:11,CANCELLED:12,u6a:13,Ucb:14,Zcb:15,Skb:16};var MMa={Pgb:0,Ggb:1,Lgb:2,Kgb:3,Hgb:4,Igb:5,Cgb:6,Ogb:7,Ngb:8,Fgb:9,Egb:10,Jgb:11,Mgb:12,Dgb:13};var $Ma={F2a:0,r2a:1,w2a:2,u2a:3,E2a:4,v2a:5,z2a:6,y2a:7,x2a:8,s2a:9,A2a:10,C2a:11,D2a:12,t2a:13,B2a:14};var hob={P3a:0,O3a:1,N3a:2};var iob={S3a:0,Q3a:1,R3a:2};var oNa={Z5a:0,T5a:1,G5a:2,a6a:3,C5a:4,B5a:5,H5a:6,D5a:7,A5a:8,P5a:9,K5a:10,O5a:11,Q5a:12,F5a:13,E5a:14,z5a:15,W5a:16,V5a:17,U5a:18,X5a:27,J5a:19,M5a:20,L5a:21,N5a:22,S5a:23,I5a:24,Y5a:25,R5a:26};var nNa={h6a:0,g6a:1,f6a:2,e6a:3,b6a:4,d6a:5};var dNa={C7a:0,A7a:1,B7a:3,w7a:4,y7a:2,z7a:5,x7a:6};var hNa={H7a:0,D7a:1,E7a:2,G7a:3,F7a:4,I7a:5};var job={O7a:0,P7a:1};var QOa={V7a:0,T7a:1,U7a:2,W7a:3};var kob={Jab:0,Hab:1,Iab:2};var lob={eeb:0,Xdb:1,Ydb:2,Zdb:3,beb:4};var KNa={Wab:0,Uab:1,Vab:2};var mOa={Mbb:0,Jbb:1,Kbb:2,Lbb:3};var ANa={hpa:0,gpa:1,epa:2,fpa:3};var DNa={Xpa:0,Qpa:1,Wpa:2,Tpa:3,Mpa:4,Npa:5,Lpa:6,Spa:7,Vpa:8,Ppa:9,Ypa:10,Zpa:11,Opa:12,Upa:13,Rpa:14};var cOa={ira:0,ara:1,fra:2,gra:3,dra:4,hra:5,jra:6,cra:7};var uNa={hwa:0,gwa:1,iwa:2};var RMa={vkb:0,Jua:1,Kua:2,Iua:3,Lua:4};var QMa={wkb:0,F3a:1,j2a:2};var fOa={HFa:0,DFa:1,zFa:2,GFa:3,BFa:4,EFa:5,CFa:6,AFa:7,FFa:8};var hOa={EJa:0,DJa:1,CJa:2};var bOa={YSa:0,XSa:1,WSa:2};var eOa={UXa:0,TXa:1,SXa:2};var aOa={a7a:0,Y6a:1,Z6a:2};var yNa={Meb:0,Leb:1,Keb:2};var mob={sSa:0,oSa:1,pSa:2,qSa:3,rSa:4,tSa:5};var nob={O2a:0,L2a:1,J2a:2,G2a:3,K2a:4,M2a:5,H2a:6,I2a:7,N2a:8,P2a:9};var oob={yva:0,uva:5,xva:4,vva:2,wva:3};var pob={bgb:0,Dfb:1,fgb:2,ggb:3,dgb:4,cgb:16,egb:47,yfb:17,Efb:33,xfb:35,pfb:36,Afb:34,agb:38,Cfb:45,Jfb:8,vfb:39,sfb:40,lfb:41,ofb:42,rfb:43,kfb:46,nfb:44,Bfb:5,Ifb:6,Zfb:7,Yfb:9,mfb:10,Xfb:11,qfb:12,Wfb:13,wfb:14,Hfb:15,Gfb:18,Ffb:19,ufb:20,zfb:21,tfb:22,Tfb:23,Vfb:24,Mfb:25,Ufb:26,Kfb:27,Pfb:28,Lfb:29,Ofb:30,Qfb:31,Nfb:32,Rfb:37,Sfb:48};var qob={jgb:0,igb:1,kgb:2};var POa={Gob:0,qob:1,xob:2,wob:3,pob:4,Hob:5,Dob:6,rob:7,sob:8,vob:9,uob:12,lob:10,Eob:11,zob:13,Aob:14,Iob:15,yob:16,Bob:17,nob:18,Cob:19,oob:20,Job:21,tob:22,Fob:23};var JOa={BKa:0,zKa:1,AKa:2,yKa:3};g.x(Cqa,U);g.x(dA,U);dA.prototype.qe=function(){return Ok(this,dk(this,UD,1))};
    dA.prototype.setVideoId=function(a){return bk(this,1,UD,$i(a))};
    dA.prototype.getPlaylistId=function(){return Ok(this,dk(this,UD,2))};
    var UD=[1,2];g.x(Dqa,U);Dqa.yb=[3];var CS=new g.Mw("changeKeyedMarkersVisibilityCommand");var rob=new g.Mw("changeMarkersVisibilityCommand");var BXa=new g.Mw("loadMarkersCommand");var sob=new g.Mw("suggestedActionDataViewModel");var U2a=new g.Mw("productListItemRenderer");var tob=new g.Mw("shoppingOverlayRenderer");var WXa=new g.Mw("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var uob=new g.Mw("adFeedbackEndpoint");var vob=new g.Mw("menuEndpoint");var j2a=new g.Mw("phoneDialerEndpoint");var h2a=new g.Mw("sendSmsEndpoint");var UXa=new g.Mw("copyTextEndpoint");var wob=new g.Mw("webPlayerShareEntityServiceEndpoint");g.aF=new g.Mw("urlEndpoint");g.AS=new g.Mw("watchEndpoint");var xob=new g.Mw("watchPlaylistEndpoint");var sOa={ksa:0,jsa:1,isa:2,gsa:3,hsa:4};var HNa={zYa:0,xYa:1,yYa:2,wYa:3};var yob={QYa:0,PYa:1,NYa:2,OYa:3};var zob={UYa:0,RYa:1,SYa:2,TYa:3,VYa:4};var Aob={NZa:0,HZa:1,OZa:2,JZa:3,AZa:4,rZa:37,cZa:5,ZYa:36,eZa:38,mZa:39,nZa:40,iZa:41,MZa:42,fZa:27,wZa:31,yZa:6,BZa:7,CZa:8,DZa:9,EZa:10,FZa:11,IZa:29,gZa:30,xZa:32,qZa:12,pZa:13,bZa:14,vZa:15,WYa:16,YYa:35,dZa:43,hZa:28,tZa:17,sZa:18,uZa:19,LZa:20,lZa:25,aZa:33,PZa:21,oZa:22,kZa:26,QZa:46,jZa:34,zZa:44,KZa:45,GZa:23,XYa:24};var qOa={h_a:0,f_a:1,e_a:2,g_a:3};var jO={Ycb:0,Vcb:1,Xcb:2,Wcb:3};var PMa={Agb:0,ngb:1,mgb:2,tgb:3,zgb:4,ogb:5,wgb:6,ugb:7,vgb:8,pgb:9,xgb:10,qgb:11,ygb:12,sgb:13};var ENa={G_a:0,MYa:1,DYa:2,JYa:3,KYa:4,GYa:5,HYa:6,IYa:7};var Bob={K7a:0,J7a:1};var Cob={ieb:0,heb:1,geb:2,jeb:3,feb:4};var Dob={meb:0,leb:1,keb:2};var Eob={xeb:0,qeb:1,reb:2,seb:5,veb:7,yeb:8,teb:9,ueb:10};var Fob={peb:0,oeb:1,neb:2};var WZa=new g.Mw("compositeVideoOverlayRenderer");var Gob=new g.Mw("miniplayerRenderer");var SXa=new g.Mw("paidContentOverlayRenderer");var gXa=new g.Mw("playerMutedAutoplayOverlayRenderer"),hXa=new g.Mw("playerMutedAutoplayEndScreenRenderer");var qWa=new g.Mw("unserializedPlayerResponse"),iXa=new g.Mw("unserializedPlayerResponse");var oOa={c_a:0,ZZa:1,XZa:2,WZa:3,VZa:4,UZa:5,YZa:6,b_a:7,TZa:8,a_a:9,SZa:10,RZa:11};var Hob=new g.Mw("playlistEditEndpoint");var y2;g.$L=new g.Mw("buttonRenderer");y2=new g.Mw("toggleButtonRenderer");var GNa={ykb:0,iPa:4,c7a:1,uIa:2,Kqa:3,jPa:5,f7a:6,vIa:7,wIa:8,xIa:9,yIa:10};var AHa=new g.Mw("counterfactualRenderer");var Iob=new g.Mw("resolveUrlCommandMetadata");var Job=new g.Mw("modifyChannelNotificationPreferenceEndpoint");var DBa=new g.Mw("pingingEndpoint");var Kob=new g.Mw("unsubscribeEndpoint");var wLa={Bkb:0,aXa:1,WWa:2,VWa:3,wWa:71,vWa:4,YWa:5,bXa:6,ZWa:16,XWa:69,xWa:70,sWa:56,tWa:64,uWa:65,JWa:7,zWa:8,EWa:9,AWa:10,DWa:11,CWa:12,BWa:13,GWa:43,MWa:44,NWa:45,OWa:46,PWa:47,QWa:48,RWa:49,SWa:50,TWa:51,UWa:52,KWa:53,LWa:54,IWa:63,yWa:14,HWa:15,FWa:68,ynb:17,Hnb:18,Omb:19,xnb:20,knb:21,znb:22,Gmb:23,snb:24,nnb:25,Tmb:26,Emb:27,anb:28,vnb:29,Bmb:30,Amb:31,Cmb:32,Hmb:33,tnb:34,rnb:35,lnb:36,pnb:37,Anb:38,Wmb:39,Gnb:40,cnb:41,Rmb:42,Bnb:55,onb:66,aob:67,gnb:57,unb:58,Imb:59,Dmb:60,Xmb:61,mnb:62};var Lob={F8a:0,J8a:1,t8a:2,l8a:3,B8a:4,D8a:5,K8a:6,Y7a:7,Z7a:8,g8a:9,v8a:10,m8a:11,q8a:12,o8a:13,p8a:14,r8a:15,s8a:19,b8a:16,A8a:17,y8a:18,d8a:20,n8a:21,a8a:22,G8a:23,j8a:24,c8a:25,E8a:26,f8a:27,z8a:28,u8a:29,i8a:30,C8a:31,I8a:32,H8a:33,k8a:34,h8a:35,e8a:36,X7a:37,w8a:38,x8a:39};g.QS=new g.Mw("subscribeButtonRenderer");var Mob=new g.Mw("subscribeEndpoint");var BNa={bbb:0,Yab:1,Zab:2,abb:3};var LZa=new g.Mw("buttonViewModel");var qPa={b9a:0,c9a:1,a9a:2,W8a:3,Z8a:4,X8a:5,V8a:6,Y8a:7};var BHa=new g.Mw("qrCodeRenderer");var XMa={iva:0,gva:1,dva:2,eva:3,fva:4,hva:5};var AVa={DSa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",ASa:"LIVING_ROOM_APP_MODE_MAIN",zSa:"LIVING_ROOM_APP_MODE_KIDS",BSa:"LIVING_ROOM_APP_MODE_MUSIC",CSa:"LIVING_ROOM_APP_MODE_UNPLUGGED",ySa:"LIVING_ROOM_APP_MODE_GAMING"};var sXa=new g.Mw("autoplaySwitchButtonRenderer");var yWa,Z3a,zWa,j4a;yWa=new g.Mw("decoratedPlayerBarRenderer");Z3a=new g.Mw("chapteredPlayerBarRenderer");zWa=new g.Mw("multiMarkersPlayerBarRenderer");j4a=new g.Mw("chapterRenderer");g.c4a=new g.Mw("markerRenderer");var xXa=new g.Mw("desktopOverlayConfigRenderer");var vXa=new g.Mw("gatedActionsOverlayViewModel");var g4a=new g.Mw("heatMarkerRenderer");var f4a=new g.Mw("heatmapRenderer");var AXa=new g.Mw("watchToWatchTransitionRenderer");var XXa=new g.Mw("playlistPanelRenderer");var Nob=new g.Mw("productUpsellSuggestedActionViewModel");var Oob=new g.Mw("suggestedActionTimeRangeTrigger"),Pob=new g.Mw("suggestedActionsRenderer"),Qob=new g.Mw("suggestedActionRenderer");var h4a=new g.Mw("timedMarkerDecorationRenderer");var Rob={Znb:0,Vnb:1,Wnb:2,Ynb:3,Xnb:4,Unb:5,Tnb:6,Pnb:7,Rnb:8,Snb:9,Qnb:10,Lnb:11,Jnb:12,Inb:13,Onb:14,Knb:15,Mnb:16,Nnb:17};var cO={N6:0,USER:74,fqa:459,TRACK:344,gqa:493,tqa:419,JLa:494,fsa:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,bob:248,MONTH:79,QUARTER:246,YEAR:247,oYa:382,nYa:383,mYa:384,Oeb:235,VIDEO:4,eob:186,Rva:126,Wdb:127,Zva:117,g5a:125,X6a:151,tya:515,Jva:6,aIa:132,fIa:154,dIa:222,eIa:155,bIa:221,cIa:156,Vdb:209,Udb:210,fmb:7,x5a:124,Xab:96,ZXa:97,vmb:93,UQa:574,wmb:275,Xqa:110,Wqa:120,M3a:121,TJa:72,Xlb:351,L8a:495,Vlb:377,Ylb:378,JFa:496,KFa:497,M8a:498,Yqa:381,Wlb:386,xmb:387,Kpa:410,HKa:437,Lza:338,Uqa:380,
        zga:352,o2a:113,p2a:114,ffb:82,gfb:112,rya:354,afb:21,Jpa:556,i2a:567,w6a:566,hgb:568,Kya:523,Mya:375,Lya:514,Ika:302,ewa:136,UJa:85,fla:22,hob:23,jfb:252,ifb:253,o1a:562,dwa:563,Sqa:254,Fka:165,Tdb:304,xLa:421,Q6a:463,PLAYLIST:63,cmb:27,bmb:28,dmb:29,Ldb:30,Odb:31,Ndb:324,Pdb:32,kra:398,Kob:613,Rdb:399,Sdb:400,bYa:411,aYa:413,cYa:414,eYa:415,q5a:39,r5a:143,v5a:144,m5a:40,n5a:145,p5a:146,Plb:504,u5a:325,d3a:262,f3a:263,e3a:264,h3a:355,LKa:615,MKa:616,j7a:617,i3a:249,k3a:250,j3a:251,nva:46,L7a:49,
        N7a:50,yka:62,Zeb:561,AVa:105,CLa:242,Scb:397,V3a:83,n2a:135,Gpa:87,Ipa:153,Hpa:187,Bpa:89,Apa:88,Cpa:139,Epa:91,Dpa:104,Fpa:137,Pua:99,Lkb:100,XXa:326,lya:148,kya:149,Jdb:150,Kdb:395,xqa:166,Dqa:199,yqa:534,Cqa:167,zqa:168,Hqa:169,Iqa:170,Aqa:171,Bqa:172,Eqa:179,Fqa:180,Jqa:512,Gqa:513,alb:200,Mkb:476,blb:213,uqa:191,g3a:192,a3a:305,b3a:306,m3a:329,Fbb:327,Gbb:328,W2a:195,X2a:197,q2a:301,R2a:223,S2a:224,vLa:227,KKa:396,KLa:356,DLa:490,LLa:394,rsa:230,Lqa:297,ylb:298,uLa:342,uya:346,rFa:245,hfb:261,
        XJa:265,cKa:266,YJa:267,VJa:268,WJa:269,bKa:270,ZJa:271,aKa:272,iSa:303,VQa:391,WQa:503,YQa:277,uSa:499,wSa:500,gSa:501,vSa:611,xSa:612,kSa:278,XQa:489,jSa:598,tza:332,vza:333,rza:334,uza:335,sza:336,Oua:340,oLa:341,Olb:349,Nlb:420,t5a:281,o5a:282,M7a:286,Mdb:288,s5a:291,w5a:292,RQa:295,Qdb:296,QQa:299,Kka:417,OLa:308,iob:309,job:310,kob:311,o3a:590,p3a:591,Pla:350,dlb:418,nJa:424,Nkb:425,pYa:429,YXa:430,ILa:426,Ocb:460,WXa:427,z6a:428,A6a:542,x6a:461,Hbb:464,GVa:431,DVa:432,EVa:589,LVa:433,CVa:434,
        IVa:435,JVa:436,FVa:438,KVa:439,MVa:453,HVa:454,BVa:472,ukb:557,y6a:558,Tqa:559,Vqa:560,Qqa:565,e4a:545,Z3a:546,o4a:547,r4a:548,q4a:549,p4a:550,f4a:551,n4a:552,W3a:554,b4a:577,a4a:587,d4a:579,Y3a:580,Rqa:583,t4a:584,u4a:586,h4a:516,L1a:621,i4a:553,j4a:570,l4a:571,g4a:572,m4a:573,k4a:588,s4a:585,v1a:592,t1a:593,u1a:594,s1a:595,rmb:604,omb:605,qmb:606,tmb:607,nmb:608,Seb:520,X3a:521,c4a:522,ELa:543,nSa:618,rkb:619,SQa:620,E3a:440,G3a:441,K3a:442,C3a:448,D3a:449,H3a:450,L3a:451,J3a:491,POST:445,B3a:446,
        I3a:447,x4a:456,qYa:483,ela:569,Dva:576,G4a:529,Eva:581,bfb:555,w4a:458,Q7a:480,R7a:502,S7a:482,pLa:452,O8a:465,P8a:466,zxa:467,v4a:468,wza:469,cva:470,bva:471,nLa:475,twa:477,rLa:478,kIa:479,n3a:484,l3a:485,Z2a:486,Y2a:487,Pka:488,Wya:492,yza:505,Jya:506,gmb:507,WMa:508,iIa:509,lIa:510,nIa:511,plb:524,Zlb:530,h7a:531,xza:532,T8a:533,g7a:575,sLa:535,NLa:536,yLa:537,GLa:538,tLa:539,BLa:540,wLa:541,aTa:578,Bka:582,r3a:596,cwa:597,ZQa:599,ARa:600,BRa:601,lSa:602,mSa:603,PODCAST:609,bwa:610,HLa:614};var XRa=new g.Mw("cipher");var rWa=new g.Mw("playerVars");var jXa=new g.Mw("playerVars");var z2=g.Ua.window,Sob,Tob,eA=(z2==null?void 0:(Sob=z2.yt)==null?void 0:Sob.config_)||(z2==null?void 0:(Tob=z2.ytcfg)==null?void 0:Tob.data_)||{};g.Va("yt.config_",eA);var iA=[];var Oqa=/^[\w.]*$/,Jqa={q:!0,search_query:!0},Iqa=String(mA);var Pqa=new function(){var a=window.document;this.j=window;this.B=a};
    g.Va("yt.ads_.signals_.getAdSignalsString",function(a){return nA(vA(a))});g.kb();var Sqa="XMLHttpRequest"in g.Ua?function(){return new XMLHttpRequest}:null;var Uob="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.ra(Uob);var $qa={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
        "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},ara="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.ra(Uob)),ira=!1,Xqa=bra,fra=Zqa;g.x(FA,wb);IA.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):this.C===1&&a?(a=a.call(c,this.B))&&typeof a.then==="function"?a:KA(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:JA(a):this};
    IA.prototype.getValue=function(){return this.B};
    IA.prototype.$goog_Thenable=!0;var LA=!1;var vC=UA||VA;var Dra=/^([0-9\.]+):([0-9\.]+)$/;g.x(Ira,wb);Ira.prototype.name="BiscottiError";g.x(dB,wb);dB.prototype.name="BiscottiMissingError";var Kra={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},eB=null;var Gba=pa(["data-"]),asa={};var Vob=0,bsa=g.Oc?"webkit":Ks?"moz":g.Ls?"ms":g.jR?"o":"",Wob=g.Wa("ytDomDomGetNextId")||function(){return++Vob};
    g.Va("ytDomDomGetNextId",Wob);var gsa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};jB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
    jB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
    jB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var kB=g.Ua.ytEventsEventsListeners||{};g.Va("ytEventsEventsListeners",kB);var jsa=g.Ua.ytEventsEventsCounter||{count:0};g.Va("ytEventsEventsCounter",jsa);var osa=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
        window.addEventListener("test",null,b)}catch(c){}return a}),ksa=Kd(function(){var a=!1;
        try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
            window.addEventListener("test",null,b)}catch(c){}return a});var A2;A2=window;g.fC=A2.ytcsi&&A2.ytcsi.now?A2.ytcsi.now:A2.performance&&A2.performance.timing&&A2.performance.now&&A2.performance.timing.navigationStart?function(){return A2.performance.timing.navigationStart+A2.performance.now()}:function(){return(new Date).getTime()};g.lb(oB,g.I);oB.prototype.Y=function(a){a.j===void 0&&hsa(a);var b=a.j;a.B===void 0&&hsa(a);this.j=new g.Ee(b,a.B)};
    oB.prototype.St=function(){return this.j||new g.Ee};
    oB.prototype.qa=function(){if(this.j){var a=(0,g.fC)();if(this.D!=0){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=Math.abs((d-this.G)/this.G)>.5?1:0;for(c=b=0;c<4;c++)b+=this.B[c]||0;b>=3&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
    oB.prototype.xa=function(){g.BA(this.Z);g.mB(this.ra)};g.x(pB,g.I);pB.prototype.T=function(a,b,c,d,e){c=g.kA((0,g.ib)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&osa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
    pB.prototype.Pc=function(a){for(var b=0;b<this.N.length;b++)if(this.N[b]==a){this.N.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
    pB.prototype.xa=function(){g.rB(this);g.I.prototype.xa.call(this)};sB.prototype.clone=function(){var a=new sB,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]=ab(c)=="object"?g.jd(c):c}return a};var zYa=["att/get"],m0a=["embedded_player"],Xob=["share/get_web_player_share_panel"],Yob=["feedback"],Zob=["notification/modify_channel_preference"],kgb=["player"],$ob=["browse/edit_playlist"],apb=["subscription/subscribe"],bpb=["subscription/unsubscribe"],ogb=["next","unplugged/watch_next"];var qsa;g.tB=Kd(function(){var a=new Xla;return a.isAvailable()?new g.bw(a):null});
    qsa=Kd(function(){var a=new Yla;return a.isAvailable()?new g.bw(a):null});yB.prototype.IE=function(a,b){a={};var c=[];"SESSION_ID"in eA&&c.push({key:"u",value:g.gA("SESSION_ID")});if(c=xfa(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(g.gA("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.CA("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in eA||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in eA&&(a["X-Goog-PageId"]=g.gA("DELEGATED_SESSION_ID"));return a};var JC={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var BB=g.Wa("ytglobal.prefsUserPrefsPrefs_")||{};g.Va("ytglobal.prefsUserPrefsPrefs_",BB);var xsa;g.k=wsa.prototype;g.k.get=function(a,b){Bsa(a);Asa(a);a=BB[a]!==void 0?BB[a].toString():null;return a!=null?a:b?b:""};
    g.k.set=function(a,b){Bsa(a);Asa(a);if(b==null)throw Error("ExpectedNotNull");BB[a]=b.toString()};
    g.k.remove=function(a){Bsa(a);Asa(a);delete BB[a]};
    g.k.save=function(){var a=!0;g.CA("web_secure_pref_cookie_killswitch")&&(a=!1);g.NA(this.j,this.dump(),63072E3,this.B,a)};
    g.k.clear=function(){g.eba(BB)};
    g.k.dump=function(){var a=[],b;for(b in BB)BB.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(BB[b])));return a.join("&")};
    g.k.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(BB[d]=c.toString())}};var Dsa={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},lua={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
        CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},mua={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},Fsa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.x(g.CB,Error);FB.prototype.Ri=function(a,b){return KB(a,1,b)};
    FB.prototype.v7=function(a){(a=this.j.get(a))&&a()};g.Wa("yt.scheduler.instance.timerIdMap_");g.x(MB,FB);MB.prototype.Wj=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=g.Wa("yt.scheduler.instance.cancelJob");b?b(a):g.AA(a)}};
    MB.prototype.start=function(){var a=g.Wa("yt.scheduler.instance.start");a&&a()};
    MB.prototype.pause=function(){var a=g.Wa("yt.scheduler.instance.pause");a&&a()};
    g.wv=g.NB();QB.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+c*1E3);return}catch(f){}var e="";if(d)try{e=escape(g.rn(b))}catch(f){return}else e=escape(b);g.NA(a,e,c,this.B)};
    QB.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.OA(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
    QB.prototype.remove=function(a){this.j&&this.j.remove(a);g.nra(a,"/",this.B)};
    QB.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,typeof a==="number")?a:null};var Isa=function(){var a;return function(){a||(a=new QB("ytidb"));return a}}();var TB=[],RB,UB=!1;var B2={},Nsa=(B2.AUTH_INVALID="No user identifier specified.",B2.EXPLICIT_ABORT="Transaction was explicitly aborted.",B2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",B2.MISSING_INDEX="Index not created.",B2.MISSING_OBJECT_STORES="Object stores not created.",B2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",B2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",B2.UNKNOWN_ABORT=
        "Transaction was aborted for unknown reasons.",B2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",B2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",B2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",B2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",B2),C2={},Osa=(C2.AUTH_INVALID="ERROR",C2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",C2.EXPLICIT_ABORT="IGNORED",
        C2.IDB_NOT_SUPPORTED="ERROR",C2.MISSING_INDEX="WARNING",C2.MISSING_OBJECT_STORES="ERROR",C2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",C2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",C2.QUOTA_EXCEEDED="WARNING",C2.QUOTA_MAYBE_EXCEEDED="WARNING",C2.UNKNOWN_ABORT="WARNING",C2.INCOMPATIBLE_DB_VERSION="WARNING",C2),D2={},Psa=(D2.AUTH_INVALID=!1,D2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,D2.EXPLICIT_ABORT=!1,D2.IDB_NOT_SUPPORTED=!1,D2.MISSING_INDEX=!1,D2.MISSING_OBJECT_STORES=!1,D2.DB_DELETED_BY_MISSING_OBJECT_STORES=
        !1,D2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,D2.QUOTA_EXCEEDED=!1,D2.QUOTA_MAYBE_EXCEEDED=!0,D2.UNKNOWN_ABORT=!0,D2.INCOMPATIBLE_DB_VERSION=!1,D2);g.x(g.ZB,g.CB);g.x(Qsa,g.ZB);g.x($B,Error);var Rsa=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.dC.all=function(a){return new g.dC(new cC(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={yA:0};f.yA<a.length;f={yA:f.yA},++f.yA)g.dC.resolve(a[f.yA]).then(function(h){return function(l){d[h.yA]=l;e--;e===0&&b(d)}}(f)).catch(function(h){c(h)})}))};
    g.dC.resolve=function(a){return new g.dC(new cC(function(b,c){a instanceof g.dC?a.then(b,c):b(a)}))};
    g.dC.reject=function(a){return new g.dC(new cC(function(b,c){c(a)}))};
    g.dC.prototype.then=function(a,b){var c=this,d=a!=null?a:Usa,e=b!=null?b:Tsa;return new g.dC(new cC(function(f,h){c.state.status==="PENDING"?(c.j.push(function(){Wsa(c,c,d,f,h)}),c.B.push(function(){Xsa(c,c,e,f,h)})):c.state.status==="FULFILLED"?Wsa(c,c,d,f,h):c.state.status==="REJECTED"&&Xsa(c,c,e,f,h)}))};
    g.dC.prototype.catch=function(a){return this.then(void 0,a)};g.k=dta.prototype;g.k.add=function(a,b,c){return g.iC(this,[a],{mode:"readwrite",Nb:!0},function(d){return d.objectStore(a).add(b,c)})};
    g.k.clear=function(a){return g.iC(this,[a],{mode:"readwrite",Nb:!0},function(b){return b.objectStore(a).clear()})};
    g.k.close=function(){this.j.close();var a;((a=this.options)==null?0:a.closed)&&this.options.closed()};
    g.k.count=function(a,b){return g.iC(this,[a],{mode:"readonly",Nb:!0},function(c){return c.objectStore(a).count(b)})};
    g.k.delete=function(a,b){return g.iC(this,[a],{mode:"readwrite",Nb:!0},function(c){return c.objectStore(a).delete(b)})};
    g.k.get=function(a,b){return g.iC(this,[a],{mode:"readonly",Nb:!0},function(c){return c.objectStore(a).get(b)})};
    g.k.getAll=function(a,b,c){return g.iC(this,[a],{mode:"readonly",Nb:!0},function(d){return d.objectStore(a).getAll(b,c)})};
    g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
    g.k.getName=function(){return this.j.name};
    g.k=eta.prototype;g.k.add=function(a,b){return eC(this.j.add(a,b))};
    g.k.autoIncrement=function(){return this.j.autoIncrement};
    g.k.clear=function(){return eC(this.j.clear()).then(function(){})};
    g.k.count=function(a){return eC(this.j.count(a))};
    g.k.delete=function(a){return a instanceof IDBKeyRange?ita(this,a):eC(this.j.delete(a))};
    g.k.get=function(a){return eC(this.j.get(a))};
    g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?eC(this.j.getAll(a,b)):jta(this,a,b)};
    g.k.index=function(a){try{return new ota(this.j.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new $B(a,this.j.name);throw b;}};
    g.k.getName=function(){return this.j.name};
    g.k.keyPath=function(){return this.j.keyPath};
    lC.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.ZB("EXPLICIT_ABORT");};
    lC.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new eta(a),this.C.set(a,b));return b};
    g.k=ota.prototype;g.k.count=function(a){return eC(this.j.count(a))};
    g.k.delete=function(a){return g.pC(this,{query:a},function(b){return b.delete().then(function(){return g.oC(b)})})};
    g.k.get=function(a){return eC(this.j.get(a))};
    g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?eC(this.j.getAll(a,b)):pta(this,a,b)};
    g.k.keyPath=function(){return this.j.keyPath};
    g.k.unique=function(){return this.j.unique};
    qC.prototype.delete=function(){return eC(this.cursor.delete()).then(function(){})};
    qC.prototype.getValue=function(){return this.cursor.value};
    qC.prototype.update=function(a){return eC(this.cursor.update(a))};sC.prototype.B=function(a,b,c){c=c===void 0?{}:c;return rta(a,b,c)};
    sC.prototype.delete=function(a){a=a===void 0?{}:a;return rC(this.name,a)};
    sC.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,u;return g.G(function(w){switch(w.j){case 1:return h=(f=Error().stack)!=null?f:"",g.Ba(w,2),g.z(w,c.B(c.name,c.options.version,e),4);case 4:for(var A=l=w.B,C=c.options,E=[],H=g.v(Object.keys(C.Zr)),L=H.next();!L.done;L=H.next()){L=L.value;var N=C.Zr[L],Q=N.sda===void 0?Number.MAX_VALUE:N.sda;!(A.j.version>=N.En)||A.j.version>=Q||A.j.objectStoreNames.contains(L)||E.push(L)}m=E;if(m.length===0){w.Ia(5);break}n=Object.keys(c.options.Zr);
        p=l.objectStoreNames();if(c.G<g.DA("ytidb_reopen_db_retries",0))return c.G++,l.close(),VB(new g.ZB("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());if(!(c.D<g.DA("ytidb_remake_db_retries",1))){w.Ia(6);break}c.D++;return g.z(w,c.delete(),7);case 7:return VB(new g.ZB("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());case 6:throw new Qsa(p,n);case 5:return w.return(l);case 2:q=
        g.Da(w);if(q instanceof DOMException?q.name!=="VersionError":"DOMError"in self&&q instanceof DOMError?q.name!=="VersionError":!(q instanceof Object&&"message"in q)||q.message!=="An attempt was made to open a database using a lower version than the existing version."){w.Ia(8);break}return g.z(w,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=w.B;t=r.j.version;if(c.options.version!==void 0&&t>c.options.version+1)throw r.close(),c.C=!1,sta(c,t);return w.return(r);case 8:throw b(),
    q instanceof Error&&!g.CA("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Ssa(q,c.name,"",(u=c.options.version)!=null?u:-1);}})}
        function b(){c.j===d&&(c.j=void 0)}
        var c=this;if(!this.C)throw sta(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
            closed:b,xea:b,upgrade:this.options.upgrade};return this.j=d=a()};var tta=new sC("YtIdbMeta",{Zr:{databases:{En:1}},upgrade:function(a,b){b(1)&&g.gC(a,"databases",{keyPath:"actualName"})}});var zta,xta=new function(){}(new function(){});new g.Qo;g.x(zC,sC);zC.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Eta:Dta)(a,b,Object.assign({},c))};
    zC.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Ita:Fta)(this.name,a)};var cpb={},Kta=g.AC("ytGcfConfig",{Zr:(cpb.coldConfigStore={En:1},cpb.hotConfigStore={En:1},cpb),shared:!1,upgrade:function(a,b){b(1)&&(g.mC(g.gC(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.mC(g.gC(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
        version:1});g.x(Qta,g.I);Qta.prototype.xa=function(){for(var a=g.v(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.B.length=0;g.I.prototype.xa.call(this)};GC.prototype.Cs=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var dpb=typeof TextEncoder!=="undefined"?new TextEncoder:null,Gua=dpb?function(a){return dpb.encode(a)}:function(a){a=g.Eg(a);
        for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var GAa={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},JAa={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};KC.prototype.Lk=function(){return{version:this.version,args:this.args}};LC.prototype.toString=function(){return this.topic};var epb=g.Wa("ytPubsub2Pubsub2Instance")||new g.Yv;g.Yv.prototype.subscribe=g.Yv.prototype.subscribe;g.Yv.prototype.unsubscribeByKey=g.Yv.prototype.Qh;g.Yv.prototype.publish=g.Yv.prototype.publish;g.Yv.prototype.clear=g.Yv.prototype.clear;g.Va("ytPubsub2Pubsub2Instance",epb);var NC=g.Wa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Va("ytPubsub2Pubsub2SubscribedKeys",NC);var OC=g.Wa("ytPubsub2Pubsub2TopicToKeys")||{};g.Va("ytPubsub2Pubsub2TopicToKeys",OC);var pua=g.Wa("ytPubsub2Pubsub2IsAsync")||{};
    g.Va("ytPubsub2Pubsub2IsAsync",pua);g.Va("ytPubsub2Pubsub2SkipSubKey",null);var wua=void 0,uua=void 0;var Cua=g.DA("max_body_size_to_compress",5E5),Dua=g.DA("min_body_size_to_compress",500),RC=!0,UC=0,TC=0,Hua=g.DA("compression_performance_threshold_lr",250),Iua=g.DA("slow_compressions_before_abandon_count",4),yua=!1,QC=new Map,Fua=1,Eua=!0;g.k=WC.prototype;g.k.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(VC(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Ih.set(d,this.Df).then(function(e){d.id=e;c.kh.Hh()&&c.lF(d)}).catch(function(e){c.lF(d);
        XC(c,e)})}else this.sendFn(a,b)};
    g.k.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(VC(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.fb&&this.fb("nwl_skip_retry")&&(e.skipRetry=c);if(this.kh.Hh()||this.fb&&this.fb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
        b.onError=function(h,l){return g.G(function(m){if(m.j==1)return g.z(m,d.Ih.set(e,d.Df).catch(function(n){XC(d,n)}),2);
            f(h,l);g.Aa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Ih.set(e,this.Df).catch(function(h){d.sendFn(a,b,e.skipRetry);
        XC(d,h)})}else this.sendFn(a,b,this.fb&&this.fb("nwl_skip_retry")&&c)};
    g.k.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(VC(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
        d.options.onSuccess=function(h,l){d.id!==void 0?c.Ih.Uz(d.id,c.Df):e=!0;c.kh.Gx&&c.fb&&c.fb("vss_network_hint")&&c.kh.Gx(!0);f(h,l)};
        this.sendFn(d.url,d.options,void 0,!0);this.Ih.set(d,this.Df).then(function(h){d.id=h;e&&c.Ih.Uz(d.id,c.Df)}).catch(function(h){XC(c,h)})}else this.sendFn(a,b,void 0,!0)};
    g.k.zC=function(){var a=this;if(!VC(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Bo.Ri(function(){var b;return g.G(function(c){if(c.j==1)return g.z(c,a.Ih.sY("NEW",a.Df),2);if(c.j!=3)return b=c.B,b?g.z(c,a.lF(b),3):(a.qO(),c.return());a.B&&(a.B=0,a.zC());g.Aa(c)})},this.s2))};
    g.k.qO=function(){this.Bo.Wj(this.B);this.B=0};
    g.k.lF=function(a){var b=this,c;return g.G(function(d){switch(d.j){case 1:if(!VC(b))throw Error("IndexedDB is not supported: immediateSend");if(a.id===void 0){d.Ia(2);break}return g.z(d,b.Ih.B$(a.id,b.Df),3);case 3:(c=d.B)||b.tA(Error("The request cannot be found in the database."));case 2:if(b.VL(a,b.d1)){d.Ia(4);break}b.tA(Error("Networkless Logging: Stored logs request expired age limit"));if(a.id===void 0){d.Ia(5);break}return g.z(d,b.Ih.Uz(a.id,b.Df),5);case 5:return d.return();case 4:a.skipRetry||
    (a=Oua(b,a));if(!a){d.Ia(0);break}if(!a.skipRetry||a.id===void 0){d.Ia(8);break}return g.z(d,b.Ih.Uz(a.id,b.Df),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.Aa(d)}})};
    g.k.VL=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
    g.k.YL=function(){var a=this;if(!VC(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ih.sY("QUEUED",this.Df).then(function(b){b&&!a.VL(b,a.U0)?a.Bo.Ri(function(){return g.G(function(c){if(c.j==1)return b.id===void 0?c.Ia(2):g.z(c,a.Ih.RS(b.id,a.Df),2);a.YL();g.Aa(c)})}):a.kh.Hh()&&a.zC()})};var YC;var Nwa={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,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,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,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500};var fpb={},Yua=g.AC("ServiceWorkerLogsDatabase",{Zr:(fpb.SWHealthLog={En:1},fpb),shared:!0,upgrade:function(a,b){b(1)&&g.mC(g.gC(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
        version:1});var eva={},dva=0;var gva;bD.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
    bD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null};
    bD.prototype.removeParams=function(a){return a.split("?")[0]};
    bD.prototype.removeParams=bD.prototype.removeParams;bD.prototype.isEndpointCFR=bD.prototype.isEndpointCFR;bD.prototype.requestComplete=bD.prototype.requestComplete;bD.getInstance=cD;g.x(dD,g.Ed);g.k=dD.prototype;g.k.Hh=function(){return this.j.Hh()};
    g.k.Gx=function(a){this.j.j=a};
    g.k.j9=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
    g.k.j8=function(){this.B=!0};
    g.k.listen=function(a,b){return this.j.listen(a,b)};
    g.k.cM=function(a){a=uv(this.j,a);a.then(function(b){g.CA("use_cfr_monitor")&&cD().requestComplete("generate_204",b)});
        return a};
    dD.prototype.sendNetworkCheckRequest=dD.prototype.cM;dD.prototype.listen=dD.prototype.listen;dD.prototype.enableErrorFlushing=dD.prototype.j8;dD.prototype.getWindowStatus=dD.prototype.j9;dD.prototype.networkStatusHint=dD.prototype.Gx;dD.prototype.isNetworkAvailable=dD.prototype.Hh;dD.getInstance=iva;g.x(g.eD,g.Ed);g.eD.prototype.Hh=function(){var a=g.Wa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
    g.eD.prototype.Gx=function(a){var b=g.Wa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
    g.eD.prototype.cM=function(a){var b=this,c;return g.G(function(d){c=g.Wa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.CA("skip_network_check_if_cfr")&&cD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Gx(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Hh())})):c?d.return(c(a)):d.return(!0)})};var kva;g.x(fD,WC);fD.prototype.writeThenSend=function(a,b){b||(b={});b=ova(a,b);g.EB()||(this.j=!1);WC.prototype.writeThenSend.call(this,a,b)};
    fD.prototype.sendThenWrite=function(a,b,c){b||(b={});b=ova(a,b);g.EB()||(this.j=!1);WC.prototype.sendThenWrite.call(this,a,b,c)};
    fD.prototype.sendAndWrite=function(a,b){b||(b={});b=ova(a,b);g.EB()||(this.j=!1);WC.prototype.sendAndWrite.call(this,a,b)};
    fD.prototype.awaitInitialization=function(){return this.C.promise};var pva=g.Ua.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",pva);g.hD.prototype.isReady=function(){!this.config_&&cua()&&(this.config_=g.IC());return!!this.config_};var gpb,kD,mD;gpb=g.Ua.ytPubsubPubsubInstance||new g.Yv;kD=g.Ua.ytPubsubPubsubSubscribedKeys||{};mD=g.Ua.ytPubsubPubsubTopicToKeys||{};g.lD=g.Ua.ytPubsubPubsubIsSynchronous||{};g.Yv.prototype.subscribe=g.Yv.prototype.subscribe;g.Yv.prototype.unsubscribeByKey=g.Yv.prototype.Qh;g.Yv.prototype.publish=g.Yv.prototype.publish;g.Yv.prototype.clear=g.Yv.prototype.clear;g.Va("ytPubsubPubsubInstance",gpb);g.Va("ytPubsubPubsubTopicToKeys",mD);g.Va("ytPubsubPubsubIsSynchronous",g.lD);
    g.Va("ytPubsubPubsubSubscribedKeys",kD);var wva={};g.x(sD,g.I);sD.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)};
    g.x(tD,sD);tD.prototype.Ib=function(){return this.j};g.x(Bva,g.I);var uD=Date.now().toString();var Fva={};var CD=Symbol("injectionDeps");AD.prototype.toString=function(){return"InjectionToken("+this.name+")"};
    Gva.prototype.resolve=function(a){return a instanceof BD?DD(this,a.key,[],!0):DD(this,a,[])};var Jva;var FD=window;var GD=g.CA("web_enable_lifecycle_monitoring")&&Kva()!==0,Tva=g.CA("web_enable_lifecycle_monitoring");Ova.prototype.cancel=function(){for(var a=g.v(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.JL||this.scheduler.Wj(b.jobId),b.JL=!0;this.B.resolve()};g.k=HD.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);b>-1&&a.plugins.splice(b,1)})};
    g.k.transition=function(a,b){var c=this;GD&&Mva(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a});
        if(d){this.B&&(Pva(this.B),this.B=void 0);Uva(this,a,b);this.state=a;GD&&Lva(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
            d(Rva(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
    g.k.Cda=function(a){var b=g.Ja.apply(1,arguments);g.NB();for(var c=g.v(a),d=c.next(),e={};!d.done;e={LF:void 0},d=c.next())e.LF=d.value,Hsa(function(f){return function(){Sva(f.LF.name);f.LF.callback.apply(f.LF,g.ra(b));ID(f.LF.name)}}(e))};
    g.k.Bda=function(a){var b=g.Ja.apply(1,arguments),c,d,e,f;return g.G(function(h){h.j==1&&(g.NB(),c=g.v(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ia(0);e.XA=d.value;e.yI=void 0;f=function(l){return function(){Sva(l.XA.name);var m=l.XA.callback.apply(l.XA,g.ra(b));typeof(m==null?void 0:m.then)==="function"?l.yI=m.then(function(){ID(l.XA.name)}):ID(l.XA.name)}}(e);
        Hsa(f);return e.yI?g.z(h,e.yI,3):h.Ia(3)}e={XA:void 0,yI:void 0};d=c.next();return h.Ia(2)})};
    g.k.J1=function(a){var b=g.Ja.apply(1,arguments),c=this,d=a.map(function(e){return{MQ:function(){Sva(e.name);e.callback.apply(e,g.ra(b));ID(e.name)},
        priority:Qva(c,e)}});
        d.length&&(this.B=new Ova(d))};
    g.ea.Object.defineProperties(HD.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Vva;g.x(JD,HD);JD.prototype.G=function(a,b){var c=this;this.j=g.LB(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
        a(b==null?void 0:b.event)};
    JD.prototype.K=function(a,b){this.j&&(g.wv.Wj(this.j),this.j=null);a(b==null?void 0:b.event)};var Iwa=[];g.Va("yt.logging.transport.getScrapedGelPayloads",function(){return Iwa});KD.prototype.storePayload=function(a,b){a=Xva(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
    KD.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Yva(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.ra(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.ra(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(a==null?0:a.sizeLimit)&&c.length<(a==null?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.ra(this.smartExtractMatchingEntries(a))));
        return c};
    KD.prototype.extractMatchingEntries=function(a){a=Yva(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.ra(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
    KD.prototype.getSequenceCount=function(a){a=Yva(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=((d=this.store[a[c]])==null?void 0:d.length)||0}return b};
    KD.prototype.getSequenceCount=KD.prototype.getSequenceCount;KD.prototype.extractMatchingEntries=KD.prototype.extractMatchingEntries;KD.prototype.smartExtractMatchingEntries=KD.prototype.smartExtractMatchingEntries;KD.prototype.storePayload=KD.prototype.storePayload;var vwa=g.DA("initial_gel_batch_timeout",2E3),uwa=g.DA("gel_queue_timeout_max_ms",6E4),Hwa=Math.pow(2,16)-1,wwa=g.DA("gel_min_batch_size",5),TD=void 0,Mwa=new MD,Lwa=new MD,twa=new MD,swa=new MD,lwa,XD=!0,Gwa=1,OD=new Map,WD=g.Ua.ytLoggingTransportTokensToCttTargetIds_||{};g.Va("ytLoggingTransportTokensToCttTargetIds_",WD);var VD=g.Ua.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Va("ytLoggingTransportTokensToJspbCttTargetIds_",VD);var RD={},Zva=!1;var YD=g.Ua.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",YD);var Rwa,$D,Swa,Uwa=g.hD,Qwa=!1,Xwa=[];var Zwa=g.Ua.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",Zwa);var E2=g.Ua.ytLoggingDocDocumentNonce_;E2||(E2=g.wD(16),g.Va("ytLoggingDocDocumentNonce_",E2));var rxa=E2;var oxa={X3:0,Mua:1,Yva:2,x6:3,mya:4,jmb:5,sXa:6,SHARE:7,j5a:8,U6a:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};var gxa=1;g.k=dE.prototype;g.k.getAsJson=function(){var a={};this.j.trackingParams!==void 0?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,this.j.veCounter!==void 0&&(a.veCounter=this.j.veCounter),this.j.elementIndex!==void 0&&(a.elementIndex=this.j.elementIndex));this.j.dataElement!==void 0&&(a.dataElement=this.j.dataElement.getAsJson());this.j.youtubeData!==void 0&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
    g.k.getAsJspb=function(){var a=new iz;this.j.trackingParams!==void 0?a.setTrackingParams(this.j.trackingParams):(this.j.veType!==void 0&&Vk(a,2,this.j.veType),this.j.veCounter!==void 0&&Vk(a,6,this.j.veCounter),this.j.elementIndex!==void 0&&Vk(a,3,this.j.elementIndex),this.j.isCounterfactual&&Uk(a,5,!0));if(this.j.dataElement!==void 0){var b=this.j.dataElement.getAsJspb();ik(a,iz,7,b)}this.j.youtubeData!==void 0&&ik(a,sx,8,this.j.jspbYoutubeData);return a};
    g.k.toString=function(){return JSON.stringify(this.getAsJson())};
    g.k.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};
    g.k.getLoggingDirectives=function(){return this.j.loggingDirectives};g.Va("yt_logging_screen.getRootVeType",lxa);g.Va("yt_logging_screen.getCurrentCsn",g.gE);g.Va("yt_logging_screen.getCttAuthInfo",hE);g.Va("yt_logging_screen.setCurrentScreen",sxa);var wxa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Jxa=[{eR:function(a){return"Cannot read property '"+a.key+"'"},
        wL:{Error:[{Jj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Jj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Jj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Jj:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
                groups:["value","key"]},{Jj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Jj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Jj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{eR:function(a){return"Cannot call '"+a.key+"'"},
        wL:{TypeError:[{Jj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Jj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Jj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Jj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Jj:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
                {Jj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{eR:function(a){return a.key+" is not defined"},
        wL:{ReferenceError:[{Jj:/(.*) is not defined/,groups:["key"]},{Jj:/Can't find variable: (.*)/,groups:["key"]}]}}];var Bxa={Xr:[],ut:[{callback:xxa,weight:500}]};var zxa;var lE=new g.Yv;var Kxa=new Set,Hxa=0,Nxa=0,Mxa=0,Ixa=[],Pxa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Rxa=new g.Mw("parallelCommand");var Uxa=new g.Mw("performOnceCommand");var Txa=new g.Mw("serialCommand");var oE=void 0;var hpb=g.v(function(a){var b=ila(a);jmb++;gla=function(){if(bv===g.qmb)throw Error("A Signal Setter was called within onCleanup, which can lead to infinite update loops. See go/cow-errors#signal-write-in-oncleanup for more information.");throw Error("A Signal Setter was called within a Reaction, which can lead to infinite update loops. See go/cow-errors#signal-write-in-a-reactive-context for more information.");};
        return[function(){kmb++;return b()},
            function(c){lmb++;if(c&&c[smb]){var d=b[g.hv];c=c[smb];ala()||gla();lla(d,c(d.value))}else lla(b[g.hv],c)}]}(null));
    hpb.next();hpb.next();g.x(Wxa,KC);var Zxa=new LC("screen-created",Wxa),wE=[],Xxa=jya,kya=0,sE=new Map,$xa=new Map,aya=new Map;g.lb(g.DE,g.I);g.DE.prototype.subscribe=function(a,b,c){return this.Na()?0:this.Bj.subscribe(a,b,c)};
    g.DE.prototype.unsubscribe=function(a,b,c){return this.Na()?!1:this.Bj.unsubscribe(a,b,c)};
    g.DE.prototype.Qh=function(a){return this.Na()?!1:this.Bj.Qh(a)};
    g.DE.prototype.publish=function(a,b){return this.Na()?!1:this.Bj.publish.apply(this.Bj,arguments)};var $7a=16/9,ipb=[.25,.5,.75,1,1.25,1.5,1.75,2],jpb=ipb.concat([3,4,5,6,7,8,9,10,15]);var mya=1;g.x(g.HE,g.I);g.k=g.HE.prototype;
    g.k.createElement=function(a,b){b=b||a.I==="svg";var c=a.S,d=a.Ka;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.ER&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.yf(a.I);if(c){if(c=IE(this,e,"class",c))JE(this,e,"class",c),this.Jb[c]=e}else if(d){c=g.v(d);for(var f=c.next();!f.done;f=c.next())this.Jb[f.value]=e;JE(this,e,"class",d.join(" "))}d=a.va;c=a.V;if(d)b=IE(this,e,"child",d),b!==void 0&&e.appendChild(g.Af(b));else if(c)for(d=0,c=g.v(c),f=c.next();!f.done;f=c.next())if(f=
        f.value)if(typeof f==="string")f=IE(this,e,"child",f),f!=null&&e.appendChild(g.Af(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ic&&(h=GE(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),Gf(e,f,d++))}if(a=a.W)for(b=e,d=g.v(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],JE(this,b,c,typeof f==="string"?
        IE(this,b,c,f):f);return e};
    g.k.Ga=function(a){return this.Jb[a]};
    g.k.Ja=function(a,b){typeof b==="number"?Gf(a,this.element,b):a.appendChild(this.element)};
    g.k.detach=function(){g.Hf(this.element)};
    g.k.update=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
    g.k.updateValue=function(a,b){(a=this.Yd["{{"+a+"}}"])&&JE(this,a[0],a[1],b)};
    g.k.xa=function(){this.Jb={};this.Yd={};this.detach();g.I.prototype.xa.call(this)};g.x(g.W,g.HE);g.k=g.W.prototype;g.k.Ed=function(a,b){this.updateValue(b||"content",a)};
    g.k.show=function(){this.Hb||(g.Js(this.element,"display",""),this.Hb=!0)};
    g.k.hide=function(){this.Hb&&(g.Js(this.element,"display","none"),this.Hb=!1)};
    g.k.Mc=function(a){this.Z=a};
    g.k.listen=function(a,b,c){return this.T(this.element,a,b,c)};
    g.k.T=function(a,b,c,d){c=(0,g.ib)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
    g.k.Pc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
    g.k.focus=function(){this.element.focus()};
    g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.HE.prototype.xa.call(this)};g.x(g.LE,g.W);g.LE.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
    g.LE.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
    g.LE.prototype.Qh=function(a){return this.Sa.Qh(a)};
    g.LE.prototype.publish=function(a){return this.Sa.publish.apply(this.Sa,[a].concat(g.ra(g.Ja.apply(1,arguments))))};var kpb=new WeakSet;g.x(ME,g.LE);g.k=ME.prototype;g.k.bind=function(a){this.eb||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
    g.k.init=function(a,b,c){this.eb=a;this.element.setAttribute("id",this.eb);this.Bb&&g.Hv(this.element,this.Bb);this.qa=b&&b.adRendererCommands;this.Ma=b.interaction;var d;((d=this.Ma)==null?0:d.onTap)&&g.Hv(this.element,"ytp-ad-component--clickable");this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;this.N!=null?this.createServerVe(this.element,this.N):this.K&&(a=this.element,b=this.K,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
    g.k.clear=function(){};
    g.k.hide=function(){g.LE.prototype.hide.call(this);(this.N!=null||this.K)&&this.logVisibility(this.element,!1)};
    g.k.show=function(){g.LE.prototype.show.call(this);if(!this.Ab){this.Ab=!0;var a=this.qa&&this.qa.impressionCommand,b,c=(b=this.Ma)==null?void 0:b.onFirstVisible;a?this.eH(a):c&&(a=pE(c))&&this.eH(a)}(this.N!=null||this.K)&&this.logVisibility(this.element,!0)};
    g.k.onClick=function(a){if((this.N||this.K)&&!kpb.has(a)){var b=this.element;this.api.hasVe(b)&&this.Hb&&this.api.logClick(b,this.interactionLoggingClientData);kpb.add(a)}var c=this.qa&&this.qa.clickCommand,d;b=(d=this.Ma)==null?void 0:d.onTap;if(c)b=this.R0(c),this.eH(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.v(a);for(c=a.next();!c.done;c=a.next()){c=c.value;if(c===d)break;if(c.className.indexOf("ytp-ad-component--clickable")>=0){d=!1;break a}}d=!0}d&&(b=pE(b))&&this.eH(b)}};
    g.k.R0=function(a){return a};
    g.k.W5=function(a){var b=this.Ca;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=Cva(b,a)||a.length!=1;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
    g.k.V5=function(a){var b=this.Ca;a=a.changedTouches.item(0);var c;if(c=Ic()){c=g.nc();var d="";if(Uaa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Ic())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Jc())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(ic(g.nc(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Taa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Dc()?sc.platform===
        "Chrome OS":xc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(g.mc(d||"",8)>=0)}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0};
    g.k.U5=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&Cva(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
    g.k.eH=function(a){this.layoutId?this.kb.executeCommand(a,this.layoutId):g.jE(new g.CB("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.xa=function(){this.clear(null);this.Pc(this.rb);for(var a=g.v(this.Fa),b=a.next();!b.done;b=a.next())this.Pc(b.value);g.LE.prototype.xa.call(this)};g.x(XE,ME);
    XE.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.kE(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}a!=null&&g.Hv(this.element,a);b.text!=null&&(a=g.OE(b.text),g.ec(a)||(this.element.setAttribute("aria-label",a),this.C=new g.LE({I:"span",S:"ytp-ad-button-text",va:a}),g.M(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);b.icon!=null&&(b=WE(b.icon),b!=null&&(this.B=new g.LE({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.M(this,this.B)),this.D?Gf(this.element,this.B.element,0):this.B.Ja(this.element))}};
    XE.prototype.clear=function(){this.hide()};
    XE.prototype.onClick=function(a){ME.prototype.onClick.call(this,a);a=g.v(Oya(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.jE(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(YE,g.I);YE.prototype.xa=function(){this.B&&g.mB(this.B);this.j.clear();ZE=null;g.I.prototype.xa.call(this)};
    YE.prototype.register=function(a,b){b&&this.j.set(a,b)};
    var ZE=null;g.x(bF,ME);
    bF.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.V(b.button,g.$L)||null;b==null?g.jE(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.M(this,this.button),this.button.init(BE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.OE(a)),this.button.Ja(this.element),this.G&&!g.Gv(this.button.element,"ytp-ad-clickable")&&g.Hv(this.button.element,
        "ytp-ad-clickable"),a&&(this.B=new g.LE({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.LE({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.M(this,b)),g.M(this,this.B),this.B.Ja(this.element),b=$E(a),Gf(this.B.element,b,0)),this.show())};
    bF.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();ME.prototype.hide.call(this)};
    bF.prototype.show=function(){this.button&&this.button.show();ME.prototype.show.call(this)};g.x(dF,ME);
    dF.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&cF(a)||"";g.ec(c)?Math.random()<.01&&g.kE(Error("Found AdImage without valid image URL")):(this.j?g.Js(this.element,"backgroundImage","url("+c+")"):uf(this.element,{src:c}),uf(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())};
    dF.prototype.clear=function(){this.hide()};g.x(eF,ME);g.k=eF.prototype;g.k.hide=function(){ME.prototype.hide.call(this);this.C&&this.C.focus()};
    g.k.show=function(){this.C=document.activeElement;ME.prototype.show.call(this);this.D.focus()};
    g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.jE(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.jE(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Sya(this,b):g.jE(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
    g.k.clear=function(){g.rB(this.j);this.hide()};
    g.k.wR=function(){this.hide()};
    g.k.qN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.jE(Error("Missing layoutId for confirm dialog.")));this.hide()};
    g.k.xR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.jE(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(fF,ME);g.k=fF.prototype;
    g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.jE(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.jE(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}a!=null&&g.Hv(this.D,a)}a={};b.defaultText?
        (c=g.OE(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.Ws(this.Ea,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=WE(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra=
        !0,c=WE(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Ws(this.Y,!0),g.Ws(this.G,!1)),g.Ws(this.j,!1)):g.Ws(this.B,!1);g.gd(a)||this.update(a);b.isToggled&&(g.Hv(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Tya(this);this.T(this.element,"change",this.CV);this.show()}};
    g.k.onClick=function(a){this.Fa.length>0&&(this.toggleButton(!this.isToggled()),this.CV());ME.prototype.onClick.call(this,a)};
    g.k.CV=function(){g.Lv(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.v(Uya(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.jE(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Tya(this)};
    g.k.clear=function(){this.hide()};
    g.k.toggleButton=function(a){g.Lv(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Tya(this)};
    g.k.isToggled=function(){return this.j.checked};g.x(gF,pB);gF.prototype.K=function(a){if(Array.isArray(a)){a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Vya&&this.D(b)}};g.x(Wya,ME);g.k=Wya.prototype;g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.jE(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.kE(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.kE(Error("AdFeedbackRenderer.title was not set.")),$ya(this,b)):g.jE(Error("AdFeedbackRenderer.reasons were not set."))};
    g.k.clear=function(){nsa(this.G);nsa(this.Y);this.D.length=0;this.hide()};
    g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();ME.prototype.hide.call(this);this.C&&this.C.focus()};
    g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;ME.prototype.show.call(this);this.G.focus()};
    g.k.H_=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
    g.k.zca=function(){this.hide()};
    hF.prototype.Ib=function(){return this.j.element};
    hF.prototype.getCommand=function(){return this.B};
    hF.prototype.isChecked=function(){return this.C.checked};g.x(iF,eF);iF.prototype.wR=function(a){eF.prototype.wR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
    iF.prototype.qN=function(a){eF.prototype.qN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
    iF.prototype.xR=function(a){eF.prototype.xR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.x(aza,ME);g.k=aza.prototype;
    g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.jE(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.kE(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.V(b.closeOverlayRenderer,g.$L)||null)this.j=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
        g.M(this,this.j),this.j.init(BE("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.OE(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=$E(a[c]);if(!g.ec(d.textContent)){var e=xf("LI");e.appendChild(d);this.La.appendChild(e)}}else g.Ws(this.La,!1);b.dialogMessage&&(a=$E(b.dialogMessage,!0),this.Wa.appendChild(a));b.confirmLabel&&(a=g.OE(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.V(b.muteAdRenderer,g.$L)||null)&&
    (a=b.navigationEndpoint&&g.V(b.navigationEndpoint,uob)||null,c=b.navigationEndpoint&&g.V(b.navigationEndpoint,Wmb)||null,a==null&&c==null?g.kE(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?bza(this,a):c&&cza(this,c),this.C=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.M(this,this.C),this.C.init(BE("button"),b,this.macros),this.C.listen("click",
        this.hba,this),this.C.Ja(this.Za)));dza(this)}};
    g.k.clear=function(){nsa(this.Y);this.hide()};
    g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.j&&this.j.hide();this.C&&this.C.hide();ME.prototype.hide.call(this);this.ra&&this.ra.focus()};
    g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Va){for(var a=g.v(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.jE(Error("Missing layoutId for ad info dialog."));this.Va=!0}this.ra=document.activeElement;ME.prototype.show.call(this);this.Y.focus()};
    g.k.EV=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.kb.executeCommand(a,this.layoutId):g.jE(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
    g.k.hba=function(){var a=this.B?this.B:this.D;a&&!a.Hb&&(this.hide(),a.show())};g.x(jF,bF);jF.prototype.init=function(a,b,c){bF.prototype.init.call(this,a,b,c);a=b.button&&g.V(b.button,g.$L)||null;a!=null&&(iza(this,a,c),this.show())};
    jF.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();bF.prototype.hide.call(this)};
    jF.prototype.show=function(){this.button&&this.button.show();bF.prototype.show.call(this)};
    jF.prototype.clear=function(){this.hide()};g.x(kF,ME);
    kF.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Kf(this.element,NE(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?cF(a):"",c=(c=this.api.getVideoData(1))&&c.Vl,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.bf(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
        b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
    kF.prototype.isTemplated=function(){return this.j.isTemplated||!1};
    kF.prototype.clear=function(){this.hide()};var xza={seekableStart:0,seekableEnd:1,current:0};g.x(lF,ME);lF.prototype.clear=function(){this.dispose()};g.x(g.oF,g.I);g.k=g.oF.prototype;g.k.show=function(a){this.state!==1&&this.state!==2&&(this.state===4&&this.lI(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Hb||(pF(this,!0),this.state=1,a?this.delay.start(a):this.lI()))};
    g.k.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Hb&&(pF(this,!0),this.state=4,this.delay.start(this.C)))};
    g.k.lI=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:pF(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();pF(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
    g.k.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.lI()};
    g.k.xa=function(){this.element.Na()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.xa.call(this)};g.x(qF,lF);g.k=qF.prototype;
    g.k.init=function(a,b,c){lF.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;typeof a==="number"&&a<0&&g.jE(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.gb&&(this.D?g.Hv(this.B.element,"modern-countdown-next-to-thumbnail"):g.Hv(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.La=a==null||a===0?this.j.Cm():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
        this.C.init(BE("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Vl&&b.thumbnail?this.G.init(BE("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.gb&&g.Hv(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();nF(this);lF.prototype.hide.call(this)};
    g.k.show=function(){mF(this);this.B.show();this.C.show();this.G.show();lF.prototype.show.call(this)};
    g.k.zq=function(){this.hide()};
    g.k.Oo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.Wa&&a>=this.La?(this.Ea.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.La-a)/1E3)),a!=this.Za&&(jza(this.C,{TIME_REMAINING:String(a)}),this.Za=a)))}};g.x(lza,lF);g.k=lza.prototype;
    g.k.init=function(a,b,c){lF.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.$L))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.ec(g.bf(e[0].url))&&(e[0].url=d.profilePicture)}else g.kE(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(BE("ad-image"),b.image,c);this.G.init(BE("ad-text"),
        b.headline,c);this.D.init(BE("ad-text"),b.description,c);this.B.init(BE("button"),a,c);c=sla(this.B.element);yv(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.vF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Ga("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ga("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ga("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
        this.Ga("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ga("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ga("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Ga("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
        this.api.addEventListener("playerUnderlayVisibilityChange",this.FV.bind(this));this.Ea=b.startMs||0;mF(this)}else g.jE(Error("FlyoutCtaRenderer has no valid action button."));else g.jE(Error("FlyoutCtaRenderer has no description AdText."));else g.jE(Error("FlyoutCtaRenderer has no headline AdText."));else g.kE(Error("FlyoutCtaRenderer has no image."))};
    g.k.onClick=function(a){lF.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Jf(this.B.element,a.target)&&this.ra&&(this.layoutId?this.kb.executeCommand(this.ra,this.layoutId):g.jE(Error("Missing layoutId for flyout cta.")))};
    g.k.Oo=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.La)&&1E3*a.current>=this.Ea&&(nF(this),g.Jv(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
    g.k.zq=function(){this.clear()};
    g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.FV.bind(this))};
    g.k.show=function(){this.B&&this.B.show();lF.prototype.show.call(this)};
    g.k.hide=function(){this.B&&this.B.hide();lF.prototype.hide.call(this)};
    g.k.FV=function(a){a=="hidden"?this.show():this.hide()};g.x(mza,ME);g.k=mza.prototype;
    g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.V(this.j.likeButton,y2),b=this.j.dislikeButton&&g.V(this.j.dislikeButton,y2),this.C.init(BE("toggle-button"),a,c),this.B.init(BE("toggle-button"),b,c),this.T(this.element,"change",this.GV),this.D.show(100),this.show(),c=g.v(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.jE(Error("Missing layoutId for instream user sentiment."))};
    g.k.clear=function(){this.hide()};
    g.k.hide=function(){this.C.hide();this.B.hide();ME.prototype.hide.call(this)};
    g.k.show=function(){this.C.show();this.B.show();ME.prototype.show.call(this)};
    g.k.GV=function(){xla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ib("onYtShowToast",this.j.postMessageAction);this.D.hide()};
    g.k.onClick=function(a){this.Fa.length>0&&this.GV();ME.prototype.onClick.call(this,a)};g.x(rF,g.I);g.k=rF.prototype;g.k.xa=function(){this.reset();g.I.prototype.xa.call(this)};
    g.k.reset=function(){g.rB(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())};
    g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.IV,this);this.D.T(this.B,"mouseout",this.HV,this);this.qa&&(this.D.T(this.B,"focusin",this.IV,this),this.D.T(this.B,"focusout",this.HV,this));this.j?this.j.start():(this.K=this.C=!0,g.Js(this.B,{opacity:this.Y}))};
    g.k.IV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
    g.k.HV=function(){this.K?this.G.start():this.j&&this.j.start()};
    g.k.SW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.x(yF,lF);g.k=yF.prototype;
    g.k.init=function(a,b,c){lF.prototype.init.call(this,a,b,c);this.ra=b;(this.Ea=uza(this))&&g.kE(Error("hasAdControlInClickCommands_ is true."));if(!b||g.gd(b))g.jE(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.gd(b.message))g.jE(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=WE(a);b==null?g.jE(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
        (this.C=new g.LE({I:"button",Ka:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.M(this,this.C),this.C.Ja(this.D.element),this.B=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(BE("ad-text"),this.ra.message,c),g.M(this,this.B),Gf(this.C.element,this.B.element,
            0));var d=d===void 0?null:d;c=this.api.U();!(this.Fa.length>0)&&c.B&&(iR?0:"ontouchstart"in document.documentElement&&(uha()||Tr()))&&(this.Pc(this.rb),d&&this.Pc(d),this.Fa=[this.T(this.element,"touchstart",this.W5,this),this.T(this.element,"touchmove",this.V5,this),this.T(this.element,"touchend",this.U5,this)])}};
    g.k.clear=function(){this.La.reset();this.hide()};
    g.k.hide=function(){this.D.hide();this.B&&this.B.hide();nF(this);lF.prototype.hide.call(this)};
    g.k.onClick=function(a){if(this.C!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(qza(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;lF.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");if(this.Wa||!this.Ea)this.api.onAdUxClicked(this.componentType,
        this.layoutId)}};
    g.k.R0=function(a){if(!this.Wa)return this.Ea&&tF("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.V(a,g.zF))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&tza(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
    g.k.show=function(){this.La.start();this.D.show();this.B&&this.B.show();mF(this);lF.prototype.show.call(this);this.Za&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
    g.k.zq=function(){this.publish("k")};
    g.k.Oo=function(){};g.x(AF,lF);g.k=AF.prototype;
    g.k.init=function(a,b,c){lF.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.V(b.preskipRenderer,ZL)||{};(a=g.gd(a)?null:a)?(this.G=a.durationMilliseconds!=null&&a.durationMilliseconds!==void 0?a.durationMilliseconds:5E3,this.B=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,TQ(this.api.U().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&rI(this.api.U())),this.B.init(BE("preskip-component"),a,c),kza(this.B),g.M(this,this.B),this.B.Ja(this.element)):
        b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.V(b.skippableRenderer,Lmb)||{};a=g.gd(a)?null:a;a==null?g.jE(Error("SkipButtonRenderer was not set in player response.")):(this.C=new yF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.ra),this.C.init(BE("skip-button"),a,c),g.M(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.bf(b.targetId))&&(c=this.C,c.C!=null&&(c.Za=!0,c.C.element.setAttribute("data-tooltip-target-id",
        b),c.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
    g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();mF(this);lF.prototype.show.call(this)};
    g.k.zq=function(){};
    g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();nF(this);lF.prototype.hide.call(this)};
    g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();nF(this);lF.prototype.hide.call(this)};
    g.k.Oo=function(){1E3*this.j.getProgressState().current>=this.G&&vza(this,!0)};g.x(wza,XE);wza.prototype.init=function(a,b,c){XE.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.OE(b.text),a=!g.ec(a));a?b.navigationEndpoint==null?g.kE(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.kE(Error("Button style was not a link-style type in renderer,")):this.show():g.kE(Error("No visit advertiser text was present in the renderer."))};g.x(BF,ME);
    BF.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);a=b.text;g.ec(NE(a))?g.kE(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 kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),a.init(BE("simple-ad-badge"),b,c),a.Ja(this.element),g.M(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())};
    BF.prototype.clear=function(){this.hide()};g.x(CF,CE);g.x(DF,g.DE);g.k=DF.prototype;g.k.Cm=function(){return this.durationMs};
    g.k.stop=function(){this.j&&this.Id.Pc(this.j)};
    g.k.Tc=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.X5=function(a){g.xF(a,2)&&this.publish("g")};g.x(EF,g.DE);g.k=EF.prototype;g.k.Cm=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.Tc=function(){this.hj+=100;var a=!1;this.hj>this.durationMs&&(this.hj=this.durationMs,this.We.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.hj/1E3};this.publish("h");a&&this.publish("g")};
    g.k.getProgressState=function(){return this.B};g.x(HF,lF);g.k=HF.prototype;g.k.init=function(a,b,c){lF.prototype.init.call(this,a,b,c);var d;if(b==null?0:(d=b.templatedCountdown)==null?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.kE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new kF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.B.init(BE("ad-text"),a,{});this.B.Ja(this.element);g.M(this,this.B)}this.show()};
    g.k.clear=function(){this.hide()};
    g.k.hide=function(){nF(this);lF.prototype.hide.call(this)};
    g.k.zq=function(){this.hide()};
    g.k.Oo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof DF?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof EF?a.seekableEnd:this.api.getDuration(2,!1))-a.current,jza(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.FF(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
    g.k.show=function(){mF(this);lF.prototype.show.call(this)};g.x(yza,kF);yza.prototype.onClick=function(a){kF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.x(IF,ME);IF.prototype.init=function(a,b){ME.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.ec(b.text.content)){this.j=new g.LE({I:"div",S:"ytp-ad-disclosure-banner__text",va:b.text.content});g.M(this,this.j);this.j.Ja(this.element);var d;if((d=b.interaction)==null?0:d.onTap)this.B=new g.LE({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.RE()]}),g.M(this,this.B),this.B.Ja(this.element);this.show()}}else g.jE(Error("No banner text found in AdDisclosureBanner."))};
    IF.prototype.clear=function(){this.hide()};g.x(LF,g.LE);LF.prototype.Tc=function(){var a=this.B.getProgressState();this.progressBar.style.width=KF(new JF(a.seekableStart,a.seekableEnd),a.current,0)*100+"%"};
    LF.prototype.onStateChange=function(){g.qR(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Tc,this),this.Tc()):this.j!==-1&&(this.hide(),this.B.Qh(this.j),this.j=-1))};g.x(MF,ME);
    MF.prototype.init=function(a,b,c,d){ME.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.V(c,eL),c=g.V(c,ZL),a?(c=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,this.Y),c.Ja(this.G),c.init(BE("skip-button"),a,this.macros),g.M(this,c)):c&&(a=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!1),a.Ja(this.G),a.init(BE("ad-preview"),c,this.macros),kza(a),g.M(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
        c=new mza(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.Ea),c.init(BE("instream-user-sentiment"),a,this.macros),g.M(this,c));if(a=g.V(b,Emb))if(a=g.V(a,Emb))c=new lza(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!!b.showWithoutLinkedMediaLayout),g.M(this,c),c.Ja(this.C),c.init(BE("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,a==null&&(a={text:{text:"Ad",isTemplated:!1}}),
        c=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.M(this,c),c.Ja(this.j),c.init(BE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d),g.M(this,d),d.Ja(this.j),d.init(BE("ad-duration-remaining"),
        a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,YL))&&(a=new jF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.M(this,a),a.Ja(this.j),a.init(BE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(a=g.V(b.visitAdvertiserRenderer,g.$L))&&(c=Aza(this)&&this.D?this.D:this.j)&&(d=new wza(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.M(this,d),d.Ja(c),d.init(BE("visit-advertiser"),a,this.macros),xv(d.element),a=sla(d.element),
        yv(d.element,a+" This link opens in new tab"));(d=this.api.U())&&!g.oR(d)&&d.controlsType=="3"&&(d=new LF(this.api,this.B),d.Ja(this.La),g.M(this,d));b.adDisclosureBannerRenderer&&(b=g.V(b.adDisclosureBannerRenderer,Qmb))&&(d=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),d.Ja(this.ra),d.init(BE("ad-disclosure-banner"),b),g.M(this,d));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Hv(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()};
    MF.prototype.clear=function(){this.hide()};PF.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)};
    PF.prototype.get=function(a){return this.j.get(a)};
    PF.prototype.remove=function(a){this.j.remove(a)};var Gza=null,Iza=null,Kza=null,Mza=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return Gza});
    g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
    g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Iza});
    g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Kza});
    g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Mza});var Oza=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);SF.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.Yp.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
    SF.prototype.replace=function(a,b){a=g.v(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Qza(this,b)};var lpb=window.location.hostname.split(".").slice(-2).join("."),F2;TF.getInstance=function(){F2=g.Wa("yt.clientLocationService.instance");F2||(F2=new TF,g.Va("yt.clientLocationService.instance",F2));return F2};
    g.k=TF.prototype;
    g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C||
        this.locationPlayabilityToken};
    g.k.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.j=void 0,g.gA("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Rza(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.NA("YT_CL",JSON.stringify({loctok:a}),15552E3,lpb,!0))};
    g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=Rza(this))&&this.localStorage.remove("yt-location-playability-token"):g.nra("YT_CL");this.C=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)};
    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;g.gA("INNERTUBE_CLIENT_NAME")==="MWEB"&&(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(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
    g.k.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};g.k=Wza.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.Sn=function(){return Object.keys(this.j)};
    g.k.remove=function(a){delete this.j[a]};VF.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
    VF.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};
    VF.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
    new VF;var G2={},Xza=(G2.WEB_UNPLUGGED="^unplugged/",G2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",G2.WEB_UNPLUGGED_OPS="^unplugged/",G2.WEB_UNPLUGGED_PUBLIC="^unplugged/",G2.WEB_CREATOR="^creator/",G2.WEB_KIDS="^kids/",G2.WEB_EXPERIMENTS="^experiments/",G2.WEB_MUSIC="^music/",G2.WEB_REMIX="^music/",G2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",G2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",G2);Zza.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?JC:c;var d={context:g.UF(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.XF(this.C());(e=(f=g.V(a.commandMetadata,g.u2))==null?void 0:f.apiUrl)&&(b=e);f=qra(pra(b));a=Object.assign({},{command:a},void 0);d={input:f,Wu:rra(f),Yp:d,config:a};d.config.ow?d.config.ow.identity=c:d.config.ow={identity:c};return d}g.jE(new g.CB("Error: Failed to create Request from Command.",a))};
    g.ea.Object.defineProperties(Zza.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
    g.x(YF,Zza);g.x(ZF,YF);ZF.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Wu:rra("/getDatasyncIdsEndpoint","GET"),Yp:{}}};
    ZF.prototype.C=function(){return[]};
    ZF.prototype.B=function(){};
    ZF.prototype.j=function(){};var mpb={},MAa=(mpb.GET_DATASYNC_IDS=WF(ZF),mpb);var H2={},fAa=(H2.auto_search="LATENCY_ACTION_AUTO_SEARCH",H2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",H2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",H2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",H2.app_startup="LATENCY_ACTION_APP_STARTUP",H2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",H2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",H2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",H2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
        H2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",H2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",H2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",H2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",H2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",H2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",H2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",H2["asset.metadata"]=
        "LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",H2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",H2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",H2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",H2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",H2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",H2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",H2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
        H2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",H2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",H2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",H2.browse="LATENCY_ACTION_BROWSE",H2.cast_splash="LATENCY_ACTION_CAST_SPLASH",H2.channels="LATENCY_ACTION_CHANNELS",H2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",H2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",H2["channel.comments"]=
        "LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",H2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",H2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",H2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",H2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",H2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",H2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",H2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
        H2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",H2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",H2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",H2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",H2.chips="LATENCY_ACTION_CHIPS",H2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",H2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",H2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
        H2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",H2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",H2.embed="LATENCY_ACTION_EMBED",H2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",H2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",H2.explore="LATENCY_ACTION_EXPLORE",H2.favorites="LATENCY_ACTION_FAVORITES",H2.home="LATENCY_ACTION_HOME",H2.inboarding="LATENCY_ACTION_INBOARDING",H2.library="LATENCY_ACTION_LIBRARY",H2.live=
        "LATENCY_ACTION_LIVE",H2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",H2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",H2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",H2.onboarding="LATENCY_ACTION_ONBOARDING",H2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",H2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",H2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",H2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",H2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",
        H2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",H2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",H2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",H2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",H2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",H2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",H2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",H2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",
        H2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",H2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",H2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",H2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",H2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",H2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",H2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",H2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",H2["owner.videos"]=
        "LATENCY_ACTION_CREATOR_CMS_VIDEOS",H2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",H2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",H2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",H2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",H2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",H2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",H2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",H2.prebuffer="LATENCY_ACTION_PREBUFFER",
        H2.prefetch="LATENCY_ACTION_PREFETCH",H2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",H2.profile_switcher="LATENCY_ACTION_LOGIN",H2.reel_watch="LATENCY_ACTION_REEL_WATCH",H2.results="LATENCY_ACTION_RESULTS",H2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",H2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",H2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",H2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",H2.search_ui="LATENCY_ACTION_SEARCH_UI",H2.search_suggest=
        "LATENCY_ACTION_SUGGEST",H2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",H2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",H2.seek="LATENCY_ACTION_PLAYER_SEEK",H2.settings="LATENCY_ACTION_SETTINGS",H2.store="LATENCY_ACTION_STORE",H2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",H2.tenx="LATENCY_ACTION_TENX",H2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",H2.watch="LATENCY_ACTION_WATCH",H2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",H2["watch,watch7"]="LATENCY_ACTION_WATCH",
        H2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",H2["watch,watch7ad"]="LATENCY_ACTION_WATCH",H2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",H2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",H2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",H2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",H2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",H2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",H2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",H2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
        H2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",H2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",H2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",H2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",H2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",H2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",H2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",H2["video.translations"]=
        "LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",H2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",H2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",H2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",H2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",H2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",H2);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_SHORTS_THUMBNAIL_EDITOR:290,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_SUPERVISION_DASHBOARD:289,
        LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS:288,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_SHORTS_THUMBNAIL_EDITOR]="LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR";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_SUPERVISION_DASHBOARD]="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD";X[X.LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS]="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS";
    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 pG={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};pG[pG.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";pG[pG.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
    pG[pG.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var qG={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};qG[qG.CONN_INVALID]="CONN_INVALID";qG[qG.CONN_WIRED]="CONN_WIRED";qG[qG.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";qG[qG.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
    qG[qG.CONN_WIFI_METERED]="CONN_WIFI_METERED";qG[qG.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";qG[qG.CONN_DISCO]="CONN_DISCO";qG[qG.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";qG[qG.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";qG[qG.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";qG[qG.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";qG[qG.CONN_WIFI]="CONN_WIFI";qG[qG.CONN_NONE]="CONN_NONE";qG[qG.CONN_UNKNOWN]="CONN_UNKNOWN";qG[qG.CONN_DEFAULT]="CONN_DEFAULT";
    var rG={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};rG[rG.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
    rG[rG.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";rG[rG.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";rG[rG.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";rG[rG.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";rG[rG.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";rG[rG.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
    rG[rG.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";rG[rG.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";rG[rG.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";rG[rG.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";rG[rG.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";rG[rG.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";rG[rG.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";rG[rG.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
    rG[rG.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";rG[rG.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";rG[rG.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";rG[rG.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";rG[rG.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";rG[rG.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";rG[rG.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";rG[rG.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
    rG[rG.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";rG[rG.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";rG[rG.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";rG[rG.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var sG={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};
    sG[sG.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";sG[sG.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";sG[sG.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";sG[sG.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";sG[sG.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";sG[sG.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";sG[sG.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";sG[sG.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
    var tG={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};tG[tG.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";tG[tG.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";tG[tG.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";tG[tG.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var uG={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
    uG[uG.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";uG[uG.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var vG={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};vG[vG.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";vG[vG.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";vG[vG.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
    vG[vG.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";vG[vG.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";vG[vG.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var wG={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};wG[wG.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";wG[wG.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";wG[wG.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";wG[wG.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
    var xG={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};xG[xG.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";xG[xG.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";xG[xG.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var yG={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};yG[yG.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
    yG[yG.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";yG[yG.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var jAa="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.x(gAa,KC);var AAa=new LC("aft-recorded",gAa);var iG=g.Ua.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",iG);gG.prototype.tick=function(a,b,c,d){jG(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.CA("web_csi_via_jspb")?(d=new oqa,S(d,1,a),S(d,2,b),a=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA,jk(a,oqa,5,cE,d),bE("latencyActionTicked",a,c)):g.SB("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
    gG.prototype.info=function(a,b,c){var d=Object.keys(a).join("");jG(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.SB("latencyActionInfo",a,{cttAuthInfo:c}))};
    gG.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<fl(a).length;e++)fl(a)[e]!==void 0&&(d=e===0?d.concat(""+e):d.concat("_"+e));jG(this,"info_"+d+"_"+b)||(S(a,2,b),b={cttAuthInfo:c},c=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA,jk(c,Sz,7,cE,a),bE("latencyActionInfo",c,b))};
    gG.prototype.span=function(a,b,c){var d=Object.keys(a).join("");jG(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.SB("latencyActionSpan",a,{cttAuthInfo:c}))};var I2=window,kG=I2.performance||I2.mozPerformance||I2.msPerformance||I2.webkitPerformance||new hAa;var zAa=!1,lAa=!1,uAa={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
        'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
        'script[name="mobile_blazer_watch_mod"]':"mbwj"},BAa=(0,g.ib)(kG.clearResourceTimings||kG.webkitClearResourceTimings||kG.mozClearResourceTimings||kG.msClearResourceTimings||kG.oClearResourceTimings||g.Jd,kG);var npb=window;npb.ytcsi&&(npb.ytcsi.infoGel=g.FG,npb.ytcsi.tick=EG);var SAa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),UAa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var YAa=new AD("INNERTUBE_TRANSPORT_TOKEN");g.x(QG,YF);QG.prototype.C=function(){return apb};
    QG.prototype.B=function(a){return g.V(a,Mob)||void 0};
    QG.prototype.j=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
    g.ea.Object.defineProperties(QG.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(RG,YF);RG.prototype.C=function(){return bpb};
    RG.prototype.B=function(a){return g.V(a,Kob)||void 0};
    RG.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
    g.ea.Object.defineProperties(RG.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(SG,YF);SG.prototype.C=function(){return Yob};
    SG.prototype.B=function(a){return g.V(a,gnb)||void 0};
    SG.prototype.j=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
    g.ea.Object.defineProperties(SG.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(TG,YF);TG.prototype.C=function(){return Zob};
    TG.prototype.B=function(a){return g.V(a,Job)||void 0};
    TG.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.x(UG,YF);UG.prototype.C=function(){return $ob};
    UG.prototype.B=function(a){return g.V(a,Hob)||void 0};
    UG.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.x(VG,YF);VG.prototype.C=function(){return Xob};
    VG.prototype.B=function(a){return g.V(a,wob)};
    VG.prototype.j=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};g.x(g.WG,g.CB);var opb=new AD("NETWORK_SLI_TOKEN");XG.prototype.fetch=function(a,b,c){var d=this,e;return g.G(function(f){e=VAa(d,a,b);return f.return(fetch(e).then(function(h){return d.handleResponse(h,c)}).catch(function(h){g.kE(h);
        if((c==null?0:c.yr)&&h instanceof g.WG&&h.errorType===1)return Promise.reject(h)}))})};
    XG.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((b==null?0:b.j$)&&a.ok)return Oea(b.j$,d);d=d.replace(")]}'","");if((b==null?0:b.yr)&&d)try{var e=JSON.parse(d)}catch(h){throw new g.WG(1,"JSON parsing failed after fetch");}var f;return(f=e)!=null?f:JSON.parse(d)});
        a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.Bpb(),c=c.then(function(d){g.kE(new g.CB("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
        return c};
    XG[CD]=[new BD(opb)];var XAa=new AD("NETWORK_MANAGER_TOKEN");var WAa;var UOa={lla:0,mla:1,kla:2,hla:3,gla:4,ila:5,jla:6};var $Aa=[],ZAa=!1;aH.prototype.D=function(){var a=this;return g.G(function(b){return b.j==1?g.z(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
    aH.prototype.C=function(a,b,c){var d=this,e,f,h;return g.G(function(l){d.j===null&&bBa(d,$G(d));e=!1;f={};h=function(){var m,n,p;return g.G(function(q){switch(q.j){case 1:return g.z(q,d.j,2);case 2:m=q.B;f.challenge=m.challenge;if(!m.Sq){"c1a"in m.lr&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ia(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.Ba(q,4);e=!0;return g.z(q,m.Sq.snapshot({Dt:n}),6);case 6:(p=q.B)?f.webResponse=p:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Ca(q,3);break;case 4:g.Da(q),
        f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var r=m.lr,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^ZG()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.gA("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
        return l.return(Promise.race([h(),hBa(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var kBa=["APP_STATE","PI"];g.k=rBa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript)d=Oma(a.interpreterSafeScript);else{var f;d=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(e=Kw(a.interpreterSafeUrl).toString());tBa(this,d,e,a.program,b,c)}else g.kE(Error("Cannot initialize botguard without program"))};
    g.k.isInitialized=function(){return this.pU()};
    g.k.getState=function(){return this.state};
    g.k.isLoading=function(){return this.state===2};
    g.k.invoke=function(a){a=a===void 0?{}:a;return this.pU()?this.r3({Dt:a}):null};
    g.k.dispose=function(){this.pT(null);this.Hc(8)};
    g.k.pU=function(){return!!this.Sq};
    g.k.r3=function(a){return this.Sq.V1(a)};
    g.k.pT=function(a){g.ub(this.Sq);this.Sq=a};
    g.k.Hc=function(a){this.state=a};g.x(bH,rBa);bH.prototype.pT=function(a){var b;(b=uBa())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.V1.bind(a)},g.Va("yt.abuse.playerAttLoader",b),g.Va("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Va("yt.abuse.playerAttLoader",null),g.Va("yt.abuse.playerAttLoaderRun",null))};
    bH.prototype.pU=function(){return!!uBa()};
    bH.prototype.r3=function(a){return uBa().bgvmc(a)};vBa.prototype.Er=function(){return"crossDeviceProgressCommand"};
    vBa.prototype.Vt=function(a){if(a.crossDevicePings){var b=[];a=g.v(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.SB("crossDeviceNotificationTransfer",{crossDevicePings:b})}};xBa.prototype.Er=function(){return"muteAdEndpoint"};
    xBa.prototype.Vt=function(a,b){switch(a.type){case "SKIP":wBa(this.yl,this.Fo,b)}};yBa.prototype.Er=function(){return"openPopupAction"};
    yBa.prototype.Vt=function(){};zBa.prototype.Er=function(){return"pingingEndpoint"};
    zBa.prototype.Vt=function(){};var GBa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.x(BBa,g.I);var hjb={ofa:"FINAL",D3:"AD_BREAK_LENGTH",Cka:"AD_CPN",Jka:"AH",Nka:"AD_MT",Qka:"ASR",Uka:"AW",Rua:"NM",Sua:"NX",Tua:"NY",S3:"CONN",fwa:"CPN",Iya:"DV_VIEWABILITY",Aza:"ERRORCODE",Jza:"ERROR_MSG",Mza:"EI",m4:"GOOGLE_VIEWABILITY",IJa:"IAS_VIEWABILITY",VMa:"LACT",s6:"LIVE_TARGETING_CONTEXT",USa:"I_X",VSa:"I_Y",zVa:"MT",OVa:"MIDROLL_POS",PVa:"MIDROLL_POS_MS",qWa:"MOAT_INIT",rWa:"MOAT_VIEWABILITY",B6:"P_H",U2a:"PV_H",V2a:"PV_W",C6:"P_W",q3a:"TRIGGER_TYPE",d7a:"SDKV",G6:"SLOT_POS",Aeb:"SURVEY_LOCAL_TIME_EPOCH_S",
        zeb:"SURVEY_ELAPSED_MS",Q6:"VIS",amb:"VIEWABILITY",imb:"VED",R6:"VOL",mmb:"WT",S6:"YT_ERROR_CODE"};HBa.prototype.Er=function(){return"urlEndpoint"};
    HBa.prototype.Vt=function(a,b,c){var d=this.Oa.get(),e=fKa(d.B.get(),b);e?b=dJ(d,ajb(e),e,void 0,void 0,c):(tF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);oM(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.df.ge(2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.av(a.url,b);g.RF(b,void 0,void 0,void 0,a.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};eH.prototype.get=function(){return this.value};
    g.x(fH,eH);fH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
    g.x(gH,eH);gH.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
    g.x(IBa,eH);IBa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
    g.x(JBa,eH);JBa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
    g.x(hH,eH);hH.prototype.getType=function(){return"metadata_type_ad_next_params"};
    g.x(iH,eH);iH.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
    g.x(KBa,eH);KBa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
    g.x(LBa,eH);LBa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
    g.x(MBa,eH);MBa.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
    g.x(NBa,eH);NBa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
    g.x(OBa,eH);OBa.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
    g.x(PBa,eH);PBa.prototype.getType=function(){return"metadata_ad_video_is_listed"};
    g.x(jH,eH);jH.prototype.getType=function(){return"metadata_type_ad_placement_config"};
    g.x(kH,eH);kH.prototype.getType=function(){return"metadata_type_ad_pod_info"};
    g.x(lH,eH);lH.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
    g.x(mH,eH);mH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
    g.x(nH,eH);nH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
    g.x(oH,eH);oH.prototype.getType=function(){return"metadata_type_ad_video_id"};
    g.x(pH,eH);pH.prototype.getType=function(){return"metadata_type_content_cpn"};
    g.x(qH,eH);qH.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
    g.x(rH,eH);rH.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
    g.x(sH,eH);sH.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
    g.x(tH,eH);tH.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
    g.x(QBa,eH);QBa.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
    g.x(RBa,eH);RBa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
    g.x(uH,eH);uH.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
    g.x(SBa,eH);SBa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
    g.x(TBa,eH);TBa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
    g.x(UBa,eH);UBa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
    g.x(VBa,eH);VBa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
    g.x(vH,eH);vH.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
    g.x(wH,eH);wH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
    g.x(xH,eH);xH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
    g.x(yH,eH);yH.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
    g.x(WBa,eH);WBa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
    g.x(zH,eH);zH.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
    g.x(AH,eH);AH.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
    g.x(BH,eH);BH.prototype.getType=function(){return"metadata_type_sub_layouts"};
    g.x(XBa,eH);XBa.prototype.getType=function(){return"metadata_type_cue_point"};
    g.x(CH,eH);CH.prototype.getType=function(){return"metadata_type_video_length_seconds"};
    g.x(DH,eH);DH.prototype.getType=function(){return"metadata_type_player_vars"};
    g.x(EH,eH);EH.prototype.getType=function(){return"metadata_type_preload_player_vars"};
    g.x(FH,eH);FH.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
    g.x(GH,eH);GH.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
    g.x(HH,eH);HH.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
    g.x(IH,eH);IH.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
    g.x(JH,eH);JH.prototype.getType=function(){return"metadata_type_dai"};
    g.x(KH,eH);KH.prototype.getType=function(){return"metadata_type_ad_intro"};
    g.x(YBa,eH);YBa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
    g.x(LH,eH);LH.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
    g.x(MH,eH);MH.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
    g.x(NH,eH);NH.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
    g.x(ZBa,eH);ZBa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
    g.x(OH,eH);OH.prototype.getType=function(){return"metadata_type_remote_slots_data"};
    g.x(PH,eH);PH.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
    g.x(QH,eH);QH.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
    g.x(RH,eH);RH.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
    g.x($Ba,eH);$Ba.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
    g.x(SH,eH);SH.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
    g.x(TH,eH);TH.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
    g.x(aCa,eH);aCa.prototype.getType=function(){return"metadata_type_survey_overlay"};
    g.x(UH,eH);UH.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
    g.x(bCa,eH);bCa.prototype.getType=function(){return"metadata_type_active_view_identifier"};
    g.x(cCa,eH);cCa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
    g.x(VH,eH);VH.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
    g.x(dCa,eH);dCa.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
    g.x(WH,eH);WH.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
    g.x(eCa,eH);eCa.prototype.getType=function(){return"metadata_type_high_ccv_prefetch_METADATA"};var yCa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var JCa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
        "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.x($H,wb);g.x(aI,wb);new Promise(function(){});var iCa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),gCa=new Map([["normal",{vy:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{vy:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
        ["muted",{vy:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{vy:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{vy:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{vy:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
        ["error",{vy:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Iy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.x(oCa,g.I);g.k=oCa.prototype;g.k.NP=function(a,b){return this.j.NP(a,b)};
    g.k.Sg=function(a,b){this.Pb.pI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.v(this.B),d=c.next();!d.done;d=c.next())d.value.Sg(a,b)};
    g.k.xf=function(a){if(mI(this.j,a)){this.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.xf(a);for(var b=g.v(this.B),c=b.next();!c.done;c=b.next())c.value.xf(a);rCa(this,a)}};
    g.k.yf=function(a){if(mI(this.j,a)){this.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.yf(a);for(var b=g.v(this.B),c=b.next();!c.done;c=b.next())c.value.yf(a);mI(this.j,a)&&nI(this.j,a).G&&lI(this,a,!1)}};
    g.k.lL=function(a){this.Pb.Sj("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);mI(this.j,a)&&(this.j.lL(a),lI(this,a,!1))};
    g.k.uc=function(a,b){if(mI(this.j,a)){this.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.v(this.B),d=c.next();!d.done;d=c.next())d.value.uc(a,b)}};
    g.k.yc=function(a,b,c){if(mI(this.j,a)){this.Pb.Sh(hCa(c),a,b);this.j.yc(a,b);for(var d=g.v(this.B),e=d.next();!e.done;e=d.next())e.value.yc(a,b,c);(c=wI(this.j,a))&&b.layoutId===c.layoutId&&FCa(this,a,!1)}};
    g.k.nf=function(a,b,c,d){c.Wk&&d?(tF(c,a,b,void 0,c.nw),this.Pb.im(d,c.Wk,a,b)):tF("adsClientErrorMessage is missing.",a,b);lI(this,a,!0)};
    g.k.xa=function(){var a=ICa(this.j);a=g.v(a);for(var b=a.next();!b.done;b=a.next())lI(this,b.value,!1);g.I.prototype.xa.call(this)};
    g.k.pg=function(a,b){this.Pb.Sh("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Pb.Sh("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.v(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.pg(a,b)};GCa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.x(HCa,g.I);g.k=HCa.prototype;g.k.NP=function(a,b){b=vI(this,a+"_"+b);a=[];b=g.v(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
    g.k.Tg=function(a){a=nI(this,a);a.j!=="not_scheduled"&&xI(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
    g.k.BE=function(a){a=nI(this,a);a.D="fill_requested";a.N.BE()};
    g.k.xf=function(a){a=nI(this,a);a.j!=="enter_requested"&&xI(a.slot,a.j,"onSlotEntered");a.j="entered"};
    g.k.lL=function(a){nI(this,a).D="fill_canceled"};
    g.k.yf=function(a){a=nI(this,a);a.j!=="exit_requested"&&xI(a.slot,a.j,"onSlotExited");a.j="scheduled"};
    g.k.yc=function(a,b){a=nI(this,a);a.layout!=null&&a.layout.layoutId===b.layoutId&&(a.j!=="rendering_stop_requested"&&xI(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.x(NCa,g.I);NCa.prototype.get=function(){this.Na()&&tF("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.x(PCa,g.I);PCa.prototype.C=function(){return this.j};BI.prototype.executeCommand=function(a,b){dH(this.j(),a,b)};EI.prototype.addListener=function(a){this.listeners.add(a)};
    EI.prototype.removeListener=function(a){this.listeners.delete(a)};var J2={},MI=(J2.AD_MARKER="ytp-ad-progress",J2.CHAPTER_MARKER="ytp-chapter-marker",J2.TIME_MARKER="ytp-time-marker",J2);var fZa=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),XCa=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
        gZa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),eDa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
        cDa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),$Ca=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
        hZa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),aDa=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),ZCa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
        sVa=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
        qVa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
        rVa=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)"),ppb=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)"),
        qpb=RegExp("^(https://stadia\\.google\\.com)$");var WCa=!1;g.NI.prototype.getId=function(){return this.id};
    g.NI.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+iDa(this.start)+", "+iDa(this.end)+"]"};
    g.NI.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(b==null||a<b&&b<=this.end)};
    var hDa=1;g.NI.prototype.getId=g.NI.prototype.getId;lDa.prototype.BE=function(){var a=this,b=0;UCa(this.j,function(){var c=cI(a.slot.Ba,"metadata_type_ad_break_request_data");b=Date.now();dL(a.Oa.get(),"abrs","ct."+b+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({f3:c.getAdBreakUrl,AX:new g.NI(c.ES,c.DS),Dw:cI(a.slot.Ba,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){mDa(a)},function(c){var d=Date.now()-b;
        dL(a.Oa.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.lw;d.length>=2&&c.ssdaiAdsConfig&&tF("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!((f=e.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(l=h.linearAds)==null?0:l.length)||!((m=e.renderer)==null||!m.instreamVideoAdRenderer)})||mDa(a)})};
    lDa.prototype.pO=function(){VCa(this.j)};nDa.prototype.BE=function(){var a=this;UCa(this.j,function(){var b=cI(a.slot.Ba,"metadata_type_ad_break_request_data");return a.B.get().fetch({f3:b.getAdBreakUrl,AX:new g.NI(b.ES,b.DS)})})};
    nDa.prototype.pO=function(){VCa(this.j)};oDa.prototype.BE=function(){var a=this.slot.Ba,b,c=(b=this.slot.fulfilledLayout)!=null?b:cI(a,"metadata_type_fulfilled_layout");sCa(this.callback,this.slot,c)};
    oDa.prototype.pO=function(){pCa(this.callback,this.slot,new aI("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};qDa.prototype.build=function(a,b){return b.fulfilledLayout||pDa(b,{Nd:["metadata_type_fulfilled_layout"]})?new oDa(a,b):this.C(a,b)};g.x(QI,qDa);
    QI.prototype.C=function(a,b){if(pDa(b,{Nd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new lDa(a,b,this.j,this.B,this.Ne,this.Aa,this.Oa,this.Ha,this.zc);if(pDa(b,{Nd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new nDa(a,b,this.j,this.B,this.Ne,this.Aa);throw new aI("Unsupported slot with type: "+b.slotType+" and client metadata: "+dI(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.x(RI,qDa);RI.prototype.C=function(a,b){throw new aI("Unsupported slot with type: "+b.slotType+" and client metadata: "+dI(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=rDa.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){};
    g.k.release=function(){};
    g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.nf(this.slot,a,new $H("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");else{var b=cI(a.Ba,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.uc(this.slot,a),SHa(this.B,this.slot,
        b)):tF("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
    g.k.md=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new $H("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"):(this.callback.yc(this.slot,a,b),tDa(this))};g.x(VI,g.DE);g.k=VI.prototype;g.k.Wb=function(){return this.B.slot};
    g.k.Xa=function(){return this.B.layout};
    g.k.init=function(){this.C.get().addListener(this)};
    g.k.release=function(){this.C.get().removeListener(this);this.dispose()};
    g.k.ZP=function(){};
    g.k.XP=function(){};
    g.k.WP=function(){};
    g.k.WJ=function(){};
    g.k.startRendering=function(a){var b=this;wDa(this.B,a,function(){return void b.lM()})};
    g.k.lM=function(){this.C.get().lM(this.j)};
    g.k.md=function(a,b){var c=this;wDa(this.B,a,function(){var d=c.C.get();qjb(d,c.j,3);c.j=[];c.callback.yc(c.slot,a,b)})};
    g.k.xa=function(){this.C.Na()||this.C.get().removeListener(this);g.DE.prototype.xa.call(this)};
    g.ea.Object.defineProperties(VI.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
        layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});bJ.prototype.Ph=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&xDa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.ra(d))}yDa(this,a,c);this.j.add(a);b&&this.j.add(b)};
    bJ.prototype.Xb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&xDa(a);c&&(b=!this.j.has(c));this.Ph(a,b)}};g.x(CDa,CE);g.x(DDa,VI);g.k=DDa.prototype;g.k.hg=function(a,b){YI("ads-engagement-panel-layout",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),g.V(this.Xa().renderingContent,rHa),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new CDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};g.x(FDa,CE);g.x(GDa,VI);g.k=GDa.prototype;g.k.hg=function(a,b){YI("banner-image",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),g.V(this.Xa().renderingContent,pHa),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new FDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};g.x(IDa,CE);g.x(JDa,VI);g.k=JDa.prototype;g.k.hg=function(a,b){YI("action-companion",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),g.V(this.Xa().renderingContent,LL),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new IDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};g.x(LDa,CE);g.x(MDa,VI);g.k=MDa.prototype;g.k.hg=function(a,b){YI("image-companion",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),g.V(this.Xa().renderingContent,ML),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new LDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};g.x(ODa,CE);g.x(PDa,VI);g.k=PDa.prototype;g.k.hg=function(a,b){YI("shopping-companion",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new ODa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};g.x(VDa,VI);g.k=VDa.prototype;g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new IDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(){};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};
    g.k.hg=function(){};g.k=XDa.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().fE.push(this);var a=cI(this.layout.Ba,"metadata_type_video_length_seconds"),b=cI(this.layout.Ba,"metadata_type_active_view_traffic_type");ZI(this.layout.Fb)&&m1(this.xb.get(),this.layout.layoutId,{Zs:b,QH:a,listener:this})};
    g.k.release=function(){this.Ha.get().removeListener(this);kjb(this.Ha.get(),this);ZI(this.layout.Fb)&&n1(this.xb.get(),this.layout.layoutId)};
    g.k.startRendering=function(a){this.callback.uc(this.slot,a)};
    g.k.md=function(a,b){Lib(this.Aa.get())&&!this.j&&(this.bb.Xb("abandon"),this.j=!0);this.callback.yc(this.slot,a,b)};
    g.k.Ej=function(a){switch(a.id){case "part2viewed":this.bb.Xb("start");this.bb.Xb("impression");break;case "videoplaytime25":this.bb.Xb("first_quartile");break;case "videoplaytime50":this.bb.Xb("midpoint");break;case "videoplaytime75":this.bb.Xb("third_quartile");break;case "videoplaytime100":Lib(this.Aa.get())?this.j||(this.bb.Xb("complete"),this.j=!0):this.bb.Xb("complete");gJ(this.bb)&&eJ(this.bb,Infinity,!0);break;case "engagedview":gJ(this.bb)||this.bb.Xb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
        default:tF("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
    g.k.onVolumeChange=function(){};
    g.k.Yi=function(){};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.onFullscreenToggled=function(){};
    g.k.cg=function(){};
    g.k.Ki=function(){};
    g.k.yR=function(a){gJ(this.bb)&&eJ(this.bb,a*1E3,!1)};
    g.k.Hj=function(){};
    g.k.Mx=function(){this.bb.Xb("active_view_measurable")};
    g.k.Nx=function(){this.bb.Xb("active_view_viewable")};
    g.k.Lx=function(){this.bb.Xb("active_view_fully_viewable_audible_half_duration")};
    g.k.Kx=function(){this.bb.Xb("audio_measurable")};
    g.k.Jx=function(){this.bb.Xb("audio_audible")};g.x(YDa,VI);g.k=YDa.prototype;g.k.init=function(){VI.prototype.init.call(this);var a=cI(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac};this.j.push(new CF(a,this.layout.layoutId,cI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
    g.k.lq=function(){this.D||this.Ha.get().resumeVideo(1)};
    g.k.startRendering=function(a){VI.prototype.startRendering.call(this,a);u1(this.Ha.get(),"ad-showing");this.callback.uc(this.slot,a);this.G.Ys=this};
    g.k.md=function(a,b){VI.prototype.md.call(this,a,b);v1(this.Ha.get(),"ad-showing");Z1(this.G,this)};
    g.k.hg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ha.get().Ao(1))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo()}};
    g.k.xa=function(){VI.prototype.xa.call(this)};g.x(ZDa,CE);g.x($Da,VI);g.k=$Da.prototype;g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new ZDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(){};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};
    g.k.hg=function(){};g.x(hJ,CE);g.x(iJ,VI);iJ.prototype.init=function(){VI.prototype.init.call(this);var a=g.V(this.layout.renderingContent,qJ)||cI(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=WI(this.bb);this.j.push(new hJ(a,b,this.layout.layoutId,{adsClientData:this.layout.ac},!0,!0))};
    iJ.prototype.startRendering=function(a){VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
    iJ.prototype.hg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=cI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.kL(this.Wb(),this.layout)}};
    iJ.prototype.xa=function(){VI.prototype.xa.call(this)};kJ.prototype.build=function(a,b,c,d){if(jJ(d,{Nd:["metadata_type_ad_break_response_data"],Fe:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new rDa(a,c,d,this.B,this.C,this.j);throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.x(cEa,CE);g.x(dEa,VI);g.k=dEa.prototype;g.k.hg=function(a,b){YI("ads-engagement-panel",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),g.V(this.Xa().renderingContent,NL),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new cEa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};g.x(fEa,VI);g.k=fEa.prototype;g.k.hg=function(a,b){YI("top-banner-image-text-icon-buttoned",a,this.K.get().dj,this.Oa.get(),this.D,this.G,this.Wb(),this.Xa(),b)};
    g.k.startRendering=function(a){XI(this.bb,this.Wb(),this.Xa(),g.V(this.Xa().renderingContent,qHa),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new ZDa(b,c,d,e,f)},this.j);
        VI.prototype.startRendering.call(this,a)};
    g.k.uc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Gi():tF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.xa=function(){kI(this.Yb(),this);VI.prototype.xa.call(this)};hEa.prototype.build=function(a,b,c,d){if(jJ(d,eEa())||g.V(d.renderingContent,NL)!==void 0)return new dEa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,KDa())||g.V(d.renderingContent,LL)!==void 0)return new JDa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,NDa())||g.V(d.renderingContent,ML)!==void 0)return new MDa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,QDa()))return new PDa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,WDa()))return new VDa(a,c,d,this.Ec,this.Oa,
        this.Yb,this.xb,this.j);if(jJ(d,HDa())||g.V(d.renderingContent,pHa)!==void 0)return new GDa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,gEa())||g.V(d.renderingContent,qHa)!==void 0)return new fEa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,aEa()))return new $Da(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);if(jJ(d,EDa())||g.V(d.renderingContent,rHa)!==void 0)return new DDa(a,c,d,this.Ec,this.Oa,this.Yb,this.xb,this.j);throw new $H("Unsupported layout with type: "+d.layoutType+
        " and client metadata: "+dI(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.x(iEa,CE);g.x(lJ,VI);lJ.prototype.init=function(){VI.prototype.init.call(this);var a=cI(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new iEa(g.V(a,Fmb),this.layout.layoutId,{adsClientData:this.layout.ac}))};
    lJ.prototype.hg=function(){};
    lJ.prototype.startRendering=function(a){VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
    lJ.prototype.xa=function(){VI.prototype.xa.call(this)};jEa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.v(cJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(jJ(d,{Nd:b,Fe:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new lJ(a,c,d,this.Ec);throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=kEa.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){};
    g.k.release=function(){};
    g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new $H("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.callback.uc(this.slot,a),this.bb.Xb("impression"),$K(this.Jh,a,"normal"))};
    g.k.md=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new $H("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"):this.callback.yc(this.slot,a,b)};g.k=mEa.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){};
    g.k.release=function(){};
    g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new $H("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.callback.uc(this.slot,a),this.bb.Xb("impression"),$K(this.Jh,a,"normal"))};
    g.k.md=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new $H("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"):this.callback.yc(this.slot,a,b)};mJ.prototype.build=function(a,b,c,d){if(!this.Aa.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(jJ(d,lEa()))return new kEa(a,c,d,this.Oa,this.Jh)}else if(jJ(d,{Nd:[],Fe:["LAYOUT_TYPE_FORECASTING"]}))return new mEa(a,c,d,this.Oa,this.Jh);throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.x(pEa,CE);g.x(qEa,VI);g.k=qEa.prototype;g.k.init=function(){VI.prototype.init.call(this);var a=g.V(this.layout.renderingContent,wEa)||cI(this.layout.Ba,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.ac};this.j.push(new pEa(a,cI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
    g.k.lq=function(){this.D||this.Ha.get().resumeVideo(2)};
    g.k.startRendering=function(a){VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.G.Ys=this};
    g.k.md=function(a,b){VI.prototype.md.call(this,a,b);Z1(this.G,this)};
    g.k.hg=function(a){if(eKa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Ao(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser-link":this.Ha.get().pauseVideo();rEa(this).SL();
        break;case "skip-button":if(a=rEa(this),!this.layout.renderingContent&&a.pK)tF("Requesting to skip by LegacyPlayerBytes when components enabled"),a.Ux(this.Wb(),this.layout);else{var b;(a=(b=cI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.kL(this.Wb(),this.layout)}}};
    g.k.xa=function(){VI.prototype.xa.call(this)};g.x(nJ,VI);g.k=nJ.prototype;g.k.init=function(){VI.prototype.init.call(this);var a=g.V(this.layout.renderingContent,pJ)||cI(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac},c;(c=!!this.layout.renderingContent)||(c=!tEa(this).pK);this.j.push(new CF(a,this.layout.layoutId,cI(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
    g.k.lq=function(){this.D||this.Ha.get().resumeVideo(2)};
    g.k.startRendering=function(a){VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.G.Ys=this};
    g.k.md=function(a,b){VI.prototype.md.call(this,a,b);Z1(this.G,this)};
    g.k.hg=function(a){if(eKa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Ao(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();tEa(this).SL();break;case "skip-button":if(a=
        tEa(this),!this.layout.renderingContent&&a.pK)tF("Requesting to skip by LegacyPlayerBytes"),a.Ux(this.Wb(),this.layout);else{var b;(a=(b=cI(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.kL(this.Wb(),this.layout)}}};
    g.k.xa=function(){VI.prototype.xa.call(this)};g.x(uEa,CE);g.x(oJ,VI);g.k=oJ.prototype;g.k.startRendering=function(a){var b=this;wDa(this.B,a,function(){b.j.push(new uEa(cI(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.ac));b.lM();b.callback.uc(b.slot,a);g.vF(l1(b.Ha.get(),1),512)&&b.callback.nf(b.Wb(),b.Xa(),new $H("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
    g.k.Ki=function(){};
    g.k.cg=function(a){if(a.state.isError()){var b;this.callback.nf(this.Wb(),this.Xa(),new $H("A player error happened during adNotify",{playerErrorCode:(b=a.state.Og)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
    g.k.onFullscreenToggled=function(){};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.Yi=function(){};
    g.k.onVolumeChange=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};
    g.k.hg=function(){};xEa.prototype.build=function(a,b,c,d){if(a=rJ(a,c,d,this.Ec,this.Ha,this.Oa,this.B,this.j,this.Aa))return a;throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=yEa.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().fE.push(this);var a=cI(this.layout.Ba,"metadata_type_video_length_seconds"),b=cI(this.layout.Ba,"metadata_type_active_view_traffic_type"),c=cI(this.layout.Ba,"metadata_type_active_view_identifier");ZI(this.layout.Fb)&&m1(this.xb.get(),this.layout.layoutId,{Zs:b,QH:a,listener:this,V6:c})};
    g.k.release=function(){this.Ha.get().removeListener(this);kjb(this.Ha.get(),this);ZI(this.layout.Fb)&&n1(this.xb.get(),this.layout.layoutId)};
    g.k.startRendering=function(a){this.callback.uc(this.slot,a)};
    g.k.md=function(a,b){zEa(this,"abandon");this.callback.yc(this.slot,a,b)};
    g.k.Ej=function(a){switch(a.id){case "part2viewed":this.bb.Xb("start");this.bb.Xb("impression");break;case "videoplaytime25":this.bb.Xb("first_quartile");break;case "videoplaytime50":this.bb.Xb("midpoint");break;case "videoplaytime75":this.bb.Xb("third_quartile");break;case "videoplaytime100":zEa(this,"complete");gJ(this.bb)&&eJ(this.bb,Infinity,!0);break;case "engagedview":gJ(this.bb)||this.bb.Xb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
        default:tF("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
    g.k.onVolumeChange=function(){};
    g.k.Yi=function(){};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.onFullscreenToggled=function(){};
    g.k.cg=function(a){this.j||(g.xF(a,4)&&!g.xF(a,2)?zDa(this.bb,"pause"):wF(a,4)<0&&!(wF(a,2)<0)&&zDa(this.bb,"resume"))};
    g.k.Ki=function(){};
    g.k.yR=function(a){gJ(this.bb)&&eJ(this.bb,a*1E3,!1)};
    g.k.Hj=function(){zEa(this,"swipe")};
    g.k.Mx=function(){this.bb.Xb("active_view_measurable")};
    g.k.Nx=function(){this.bb.Xb("active_view_viewable")};
    g.k.Lx=function(){this.bb.Xb("active_view_fully_viewable_audible_half_duration")};
    g.k.Kx=function(){this.bb.Xb("audio_measurable")};
    g.k.Jx=function(){this.bb.Xb("audio_audible")};AEa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.v(cJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(jJ(d,{Nd:b,Fe:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new yEa(a,c,d,this.Ha,this.Oa,this.Aa,this.xb):new XDa(a,c,d,this.Ha,this.Oa,this.Aa,this.xb);throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
    };var vJ={contentCpn:"",vt:new Map};KEa.prototype.zl=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.df.gg(),c));uJ(this.df,a,b)};var rpb,K2,LEa;
    rpb={Qla:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Mqa:"AUTHENTICATION_MALFORMED",Nqa:"AUTHENTICATION_MISSING",Zqa:"BAD_REQUEST",usa:"CAST_SESSION_DEVICE_MISMATCHED",vsa:"CAST_SESSION_VIDEO_MISMATCHED",wsa:"CAST_TOKEN_EXPIRED",xsa:"CAST_TOKEN_FAILED",ysa:"CAST_TOKEN_MALFORMED",jta:"CGI_PARAMS_MALFORMED",kta:"CGI_PARAMS_MISSING",cya:"DEVICE_FALLBACK",Bza:"GENERIC_WITH_LINK_AND_CPN",Cza:"ERROR_HDCP",Hza:"LICENSE",Kza:"VIDEO_UNAVAILABLE",MHa:"FORMAT_UNAVAILABLE",SHa:"GEO_FAILURE",
        oJa:"HTML5_AUDIO_RENDERER_ERROR",pJa:"GENERIC_WITHOUT_LINK",qJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",rJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",sJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",BJa:"HTML5_SPS_UMP_STATUS_REJECTED",JKa:"INVALID_DRM_MESSAGE",h5a:"PURCHASE_NOT_FOUND",i5a:"PURCHASE_REFUNDED",l6a:"RENTAL_EXPIRED",t6a:"RETRYABLE_ERROR",s7a:"SERVER_ERROR",U8a:"SIGNATURE_EXPIRED",Ibb:"STOPPED_BY_ANOTHER_PLAYBACK",Pcb:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Qcb:"STREAMING_NOT_ALLOWED",
        Rcb:"STREAM_LICENSE_NOT_FOUND",Ueb:"TOO_MANY_REQUESTS",Veb:"TOO_MANY_REQUESTS_WITH_LINK",Xeb:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Yeb:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",clb:"VIDEO_FORBIDDEN",zlb:"VIDEO_NOT_FOUND",dsa:"BROWSER_OR_EXTENSION_ERROR"};K2={};
    g.JV=(K2.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",K2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",K2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",K2.LICENSE="Sorry, there was an error licensing this video.",K2.VIDEO_UNAVAILABLE=
        "Video unavailable",K2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",K2.GEO_FAILURE="This video isn't available in your country.",K2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",K2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",K2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",K2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
        K2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",K2.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",K2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",K2.PURCHASE_NOT_FOUND="This video requires payment.",K2.PURCHASE_REFUNDED="This video's purchase has been refunded.",K2.RENTAL_EXPIRED="This video's rental has expired.",K2.CAST_SESSION_DEVICE_MISMATCHED=
        "The device in the cast session doesn't match the requested one.",K2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",K2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",K2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",K2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",K2.SERVER_ERROR="There was an internal server error. Please try again later.",K2.STOPPED_BY_ANOTHER_PLAYBACK=
        "Your account is playing this video in another location. Please reload this page to resume watching.",K2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",K2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",K2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",K2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",K2.TOO_MANY_REQUESTS="Please log in to watch this video.",
        K2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",K2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",K2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",K2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",K2.VIDEO_FORBIDDEN="Access to this video is forbidden.",K2.VIDEO_NOT_FOUND="This video can not be found.",K2.BROWSER_OR_EXTENSION_ERROR=
        "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",K2);
    LEa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
        5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var spb;var tpb=g.nc(),upb=tpb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!upb||upb.length<2)spb=void 0;else{var vpb=tpb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);spb=vpb&&vpb.length===6?Number(vpb[5].replace("_",".")):0}var tS=spb,EV=tS>=0;g.x(g.IJ,pB);g.IJ.prototype.T=function(a,b,c,d,e){return pB.prototype.T.call(this,a,b,c,d,e)};var L2={},$Ta=(L2.FAIRPLAY="fairplay",L2.PLAYREADY="playready",L2.WIDEVINE="widevine",L2.CLEARKEY=null,L2.FLASHACCESS=null,L2.UNKNOWN=null,L2.WIDEVINE_CLASSIC=null,L2);JJ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var M2={},bP=(M2.WIDTH={name:"width",video:!0,valid:640,po:99999},M2.HEIGHT={name:"height",video:!0,valid:360,po:99999},M2.FRAMERATE={name:"framerate",video:!0,valid:30,po:9999},M2.BITRATE={name:"bitrate",video:!0,valid:3E5,po:2E9},M2.EOTF={name:"eotf",video:!0,valid:"bt709",po:"catavision"},M2.CHANNELS={name:"channels",video:!1,valid:2,po:99},M2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",po:"invalidformat"},M2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
        po:"nope"},M2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",po:"av99.0.05M.08"},M2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",po:"invalid"},M2);var wpb=["h","H"],xpb=["9","("],ypb=["9h","(h"],zpb=["8","*"],Apb=["a","A"],Bpb=["o","O"],Cpb=["m","M"],Dpb=["mac3","MAC3"],Epb=["meac3","MEAC3"],N2={},zUa=(N2.h=wpb,N2.H=wpb,N2["9"]=xpb,N2["("]=xpb,N2["9h"]=ypb,N2["(h"]=ypb,N2["8"]=zpb,N2["*"]=zpb,N2.a=Apb,N2.A=Apb,N2.o=Bpb,N2.O=Bpb,N2.m=Cpb,N2.M=Cpb,N2.mac3=Dpb,N2.MAC3=Dpb,N2.meac3=Epb,N2.MEAC3=Epb,N2),Fpb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),HRa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var O2={},OJ=(O2["0"]="f",O2["160"]="h",O2["133"]="h",O2["134"]="h",O2["135"]="h",O2["136"]="h",O2["137"]="h",O2["264"]="h",O2["266"]="h",O2["138"]="h",O2["298"]="h",O2["299"]="h",O2["304"]="h",O2["305"]="h",O2["214"]="h",O2["216"]="h",O2["374"]="h",O2["375"]="h",O2["140"]="a",O2["141"]="ah",O2["327"]="sa",O2["258"]="m",O2["380"]="mac3",O2["328"]="meac3",O2["161"]="H",O2["142"]="H",O2["143"]="H",O2["144"]="H",O2["222"]="H",O2["223"]="H",O2["145"]="H",O2["224"]="H",O2["225"]="H",O2["146"]="H",O2["226"]=
        "H",O2["227"]="H",O2["147"]="H",O2["384"]="H",O2["376"]="H",O2["385"]="H",O2["377"]="H",O2["149"]="A",O2["261"]="M",O2["381"]="MAC3",O2["329"]="MEAC3",O2["598"]="9",O2["278"]="9",O2["242"]="9",O2["243"]="9",O2["244"]="9",O2["775"]="9",O2["776"]="9",O2["777"]="9",O2["778"]="9",O2["779"]="9",O2["780"]="9",O2["781"]="9",O2["782"]="9",O2["783"]="9",O2["247"]="9",O2["248"]="9",O2["353"]="9",O2["355"]="9",O2["356"]="9",O2["271"]="9",O2["577"]="9",O2["313"]="9",O2["579"]="9",O2["272"]="9",O2["302"]="9",
        O2["303"]="9",O2["407"]="9",O2["408"]="9",O2["308"]="9",O2["315"]="9",O2["330"]="9h",O2["331"]="9h",O2["332"]="9h",O2["333"]="9h",O2["334"]="9h",O2["335"]="9h",O2["336"]="9h",O2["337"]="9h",O2["338"]="so",O2["600"]="o",O2["250"]="o",O2["251"]="o",O2["194"]="*",O2["195"]="*",O2["220"]="*",O2["221"]="*",O2["196"]="*",O2["197"]="*",O2["279"]="(",O2["280"]="(",O2["317"]="(",O2["318"]="(",O2["273"]="(",O2["274"]="(",O2["357"]="(",O2["358"]="(",O2["275"]="(",O2["359"]="(",O2["360"]="(",O2["276"]="(",O2["583"]=
        "(",O2["584"]="(",O2["314"]="(",O2["585"]="(",O2["561"]="(",O2["277"]="(",O2["361"]="(h",O2["362"]="(h",O2["363"]="(h",O2["364"]="(h",O2["365"]="(h",O2["366"]="(h",O2["591"]="(h",O2["592"]="(h",O2["367"]="(h",O2["586"]="(h",O2["587"]="(h",O2["368"]="(h",O2["588"]="(h",O2["562"]="(h",O2["409"]="(",O2["410"]="(",O2["411"]="(",O2["412"]="(",O2["557"]="(",O2["558"]="(",O2["394"]="1",O2["395"]="1",O2["396"]="1",O2["397"]="1",O2["398"]="1",O2["399"]="1",O2["400"]="1",O2["401"]="1",O2["571"]="1",O2["402"]=
        "1",O2["694"]="1h",O2["695"]="1h",O2["696"]="1h",O2["697"]="1h",O2["698"]="1h",O2["699"]="1h",O2["700"]="1h",O2["701"]="1h",O2["702"]="1h",O2["703"]="1h",O2["386"]="3",O2["387"]="w",O2["406"]="6",O2["645"]="(",O2["646"]="(",O2["647"]="(",O2["648"]="(",O2["649"]="(",O2["650"]="(",O2["651"]="(",O2["652"]="(",O2["653"]="(",O2["654"]="(",O2["655"]="(",O2["656"]="(",O2["657"]="(",O2["658"]="(",O2["659"]="(",O2["660"]="(",O2["661"]="(",O2["662"]="(",O2["663"]="(",O2["664"]="(",O2["665"]="(",O2["666"]="(",
        O2["667"]="(",O2["668"]="(",O2["669"]="(",O2["670"]="(",O2["671"]="(",O2["672"]="(",O2["673"]="(",O2["674"]="(h",O2["675"]="(h",O2["676"]="(h",O2["677"]="(h",O2["678"]="(h",O2["679"]="(h",O2["680"]="(h",O2["681"]="(h",O2["682"]="(h",O2["683"]="(h",O2["684"]="(h",O2["685"]="(h",O2["686"]="(h",O2["687"]="(h",O2["688"]="A",O2["689"]="A",O2["690"]="A",O2["691"]="MEAC3",O2["773"]="i",O2);var P2={},XTa=(P2.STEREO_LAYOUT_UNKNOWN=0,P2.STEREO_LAYOUT_LEFT_RIGHT=1,P2.STEREO_LAYOUT_TOP_BOTTOM=2,P2);var Q2,QO;Q2={};g.KJ=(Q2.auto=0,Q2.tiny=144,Q2.light=144,Q2.small=240,Q2.medium=360,Q2.large=480,Q2.hd720=720,Q2.hd1080=1080,Q2.hd1440=1440,Q2.hd2160=2160,Q2.hd2880=2880,Q2.highres=4320,Q2);QO={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var MJ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");LJ.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};PJ.prototype.Le=function(){return this.containerType===2};
    PJ.prototype.isEncrypted=function(){return!!this.me};
    PJ.prototype.Fh=function(){return!!this.audio};
    PJ.prototype.Ag=function(){return!!this.video};g.x(hK,g.DE);g.k=hK.prototype;g.k.appendBuffer=function(a,b,c){if(this.Kd.GE()!==this.appendWindowStart+this.start||this.Kd.xJ()!==this.appendWindowEnd+this.start||this.Kd.Lc()!==this.timestampOffset+this.start)this.Kd.supports(1),this.Kd.fT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Kd.Iq(this.timestampOffset+this.start);this.Kd.appendBuffer(a,b,c)};
    g.k.abort=function(){this.Kd.abort()};
    g.k.remove=function(a,b){this.Kd.remove(a+this.start,b+this.start)};
    g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
    g.k.clear=function(){this.Kd.clear()};
    g.k.fT=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
    g.k.RP=function(){return this.timestampOffset+this.start};
    g.k.GE=function(){return this.appendWindowStart};
    g.k.xJ=function(){return this.appendWindowEnd};
    g.k.Iq=function(a){this.timestampOffset=a};
    g.k.Lc=function(){return this.timestampOffset};
    g.k.Je=function(a){a=this.Kd.Je(a===void 0?!1:a);return gK(a,this.start,this.end)};
    g.k.rk=function(){return this.Kd.rk()};
    g.k.UJ=function(){return this.Kd.UJ()};
    g.k.Km=function(){return this.Kd.Km()};
    g.k.BQ=function(){return this.Kd.BQ()};
    g.k.Fz=function(){this.Kd.Fz()};
    g.k.sx=function(a){return this.Kd.sx(a)};
    g.k.Lw=function(){return this.Kd.Lw()};
    g.k.FJ=function(){return this.Kd.FJ()};
    g.k.fU=function(a,b){this.Kd.fU(a,b)};
    g.k.supports=function(a){return this.Kd.supports(a)};
    g.k.iA=function(){return this.Kd.iA()};
    g.k.isView=function(){return!0};
    g.k.KI=function(){return this.Kd.KI()?this.isActive:!1};
    g.k.isLocked=function(){return this.rU&&!this.isActive};
    g.k.qc=function(a){a=this.Kd.qc(a);a.vw=this.start+"-"+this.end;return a};
    g.k.GJ=function(){return this.Kd.GJ()};
    g.k.SE=function(){return this.Kd.SE()};
    g.k.LP=function(){return this.Kd.LP()};
    g.k.xa=function(){FE(this.Kd,this.QY);g.DE.prototype.xa.call(this)};
    g.k.I1=function(a){this.isActive=a;this.rU=this.rU||this.isActive};
    g.k.zF=function(){return this.Kd.zF()};
    g.k.OI=function(){this.Kd.OI()};var OX=!1;g.x(iK,g.DE);g.k=iK.prototype;g.k.appendBuffer=function(a,b,c){this.bE=!1;c&&(this.GF=c);if(a.length){var d;((d=this.Rb)==null?0:d.appendBuffer)?this.Rb.appendBuffer(a):this.Rb?this.Rb.append(a):this.wg&&this.wg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.QQ=this.GF),b.type===3&&(this.Kf=b,this.TH=!0),this.FF.push(b.Vc()),this.FF.length>4&&this.FF.shift());this.bC&&(this.bC.length>=2||a.length>1048576?delete this.bC:this.bC.push(a))};
    g.k.abort=function(){try{this.Rb?this.Rb.abort():this.wg&&this.wg.webkitSourceAbort(this.id)}catch(a){A6a&&g.jE(new g.CB("Error while abort the source buffer: "+a.name+", "+a.message))}this.GF=this.Kf=null;this.TH=!1};
    g.k.remove=function(a,b,c){this.bE=!1;var d;if((d=this.Rb)==null?0:d.remove)c&&c({b:aK(this.Je()),s:a,e:b}),this.Rb.remove(a,b)};
    g.k.removeAll=function(){this.remove(this.GE(),this.xJ())};
    g.k.clear=function(){this.Km()||(this.abort(),this.removeAll(),this.QQ=this.GF=this.Kf=null,this.appendWindowStart=this.timestampOffset=0,this.lO=$J([],[]),this.bE=!1,this.bC=aFa?[]:void 0,this.QI=!0,this.TH=!1)};
    g.k.GE=function(){if(OX&&this.Ag)return this.appendWindowStart;var a;return((a=this.Rb)==null?void 0:a.appendWindowStart)||0};
    g.k.xJ=function(){var a;return((a=this.Rb)==null?void 0:a.appendWindowEnd)||0};
    g.k.fT=function(a,b){this.Rb&&(OX&&this.Ag?(this.appendWindowStart=a,this.Rb.appendWindowEnd=b):a>this.GE()?(this.Rb.appendWindowEnd=b,this.Rb.appendWindowStart=a):(this.Rb.appendWindowStart=a,this.Rb.appendWindowEnd=b))};
    g.k.RP=function(){return this.timestampOffset};
    g.k.Iq=function(a){OX?this.timestampOffset=a:this.supports(1)&&(this.Rb.timestampOffset=a)};
    g.k.Lc=function(){return OX?this.timestampOffset:this.supports(1)?this.Rb.timestampOffset:0};
    g.k.Je=function(a){if(a===void 0?0:a)return this.bE||this.rk()||(this.lO=this.Je(!1),this.bE=!0),this.lO;try{return this.Rb?this.Rb.buffered:this.wg?this.wg.webkitSourceBuffered(this.id):$J([0],[Infinity])}catch(b){return $J([],[])}};
    g.k.rk=function(){var a;return((a=this.Rb)==null?void 0:a.updating)||!1};
    g.k.Km=function(){return this.QI};
    g.k.BQ=function(){return!this.QI&&this.rk()};
    g.k.Fz=function(){this.QI=!1};
    g.k.sx=function(a){var b=a==null?void 0:a.qb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.qb&&a===this.containerType};
    g.k.Lw=function(){return this.GF};
    g.k.FJ=function(){return this.QQ};
    g.k.fU=function(a,b){this.containerType!==a&&(this.supports(4),jK()&&this.Rb.changeType(b));this.containerType=a};
    g.k.iA=function(){return this.Kf};
    g.k.isView=function(){return!1};
    g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Rb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Rb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Rb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Rb)==null?0:e.addEventListener)&&((f=this.Rb)==null?0:f.removeEventListener));case 4:return!(!this.Rb||!this.Rb.changeType);default:return!1}};
    g.k.KI=function(){return!this.rk()};
    g.k.isLocked=function(){return!1};
    g.k.qc=function(a){a.to=this.Lc();a.up=this.rk();var b,c=((b=this.Rb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Rb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=aK(this.Je())}catch(e){}return a};
    g.k.UJ=function(){var a;return((a=this.Rb)==null?void 0:a.writeHead)||0};
    g.k.GJ=function(){for(var a={},b=0;b<this.FF.length;b++)a["s"+b]=this.FF[b];return a};
    g.k.xa=function(){this.supports(3)&&(this.Rb.removeEventListener("updateend",this.Id),this.Rb.removeEventListener("error",this.Id));g.DE.prototype.xa.call(this)};
    g.k.SE=function(){return this.containerType};
    g.k.LP=function(){return this.bC};
    g.k.zF=function(){return this.TH};
    g.k.OI=function(){this.TH=!1};
    var aFa=!1,A6a=!1;kK.prototype.dispose=function(){if(!this.Na){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
    kK.prototype.Na=function(){return this.B};
    kK.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.x(lK,g.I);g.k=lK.prototype;g.k.getDuration=function(){var a;return((a=this.Qa)==null?void 0:a.duration)||this.ra};
    g.k.Hl=function(a){try{this.Qa?this.Qa.duration=a:(this.ra=a,this.wg.webkitSourceSetDuration(a))}catch(b){}};
    g.k.Pg=function(){try{return rK(this)==="closed"}catch(a){return!0}};
    g.k.rk=function(){return!!(this.j&&this.j.rk()||this.B&&this.B.rk())};
    g.k.isAsync=function(){return this.j?!!this.j.supports(0):fFa()};
    g.k.nca=function(){!this.Na()&&mK(this)&&this.callback&&(this.callback(this),this.callback=null)};
    g.k.mca=function(){this.dispose()};
    g.k.Y5=function(a){if(nK&&!this.G&&a.Km()&&a.Je().length===0){var b;oK(this.mediaElement,{l:"mswoue",sr:(b=this.mediaElement.ea)==null?void 0:pK(b)},!1);a.Fz();this.Km()||(this.mediaElement.iK=!0,this.mediaElement.setCurrentTime(0))}};
    g.k.oO=function(){return!!this.j.supports(2)};
    g.k.clear=function(){cFa(this,function(){});
        var a;(a=this.j)==null||a.clear();var b;(b=this.B)==null||b.clear()};
    g.k.Km=function(){var a,b;return((a=this.B)==null?void 0:a.Km())||((b=this.j)==null?void 0:b.Km())};
    g.k.sx=function(a,b){return!!this.j&&!!this.B&&this.j.sx(b)&&this.B.sx(a)};
    var nK=!1;sK.prototype.then=function(a,b){return this.promise.then(a,b)};
    sK.prototype.resolve=function(a){this.US(a)};
    sK.prototype.reject=function(a){this.HS(a)};g.x(tK,g.I);g.k=tK.prototype;g.k.mI=function(){return this.resource};
    g.k.activate=function(a){var b="";a&&(nFa(this,a),b=a.resource);if(!this.Ff()||b)b&&this.Ff()!==b&&(this.oI(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.iT(!(a==null||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.qX),this.N=!0)};
    g.k.Gr=function(a,b){if(this.B)if(z6a&&qK(this.B)&&!this.B.sx(a,b)){var c;oK(this,{l:"megms",sr:(c=this.ea)==null?void 0:pK(c)});lFa(this);this.stopVideo()}else return this.Qa=this.B,this.B=void 0,this.Qa;a=window.MediaSource?new lK(this,new window.MediaSource,!1):window.ManagedMediaSource?new lK(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new lK(this,new window.WebKitMediaSource,!1):new lK(this,void 0,!1);this.activate(a.C);this.Qa=a;this.iK=!1;return a};
    g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.Ff()&&this.resource&&(g.jE(Error("playVideo without src")),this.oI(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;((c=this.ea)==null?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&EV&&(tS||0)>=7&&NEa(this,function(){g.yA(function(){mFa(a,a.getCurrentTime(),0)},500)});
        return b};
    g.k.seekTo=function(a){this.Uk()>0&&(EV&&tS<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
    g.k.Ro=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;oK(this,{l:"mer",sr:(a=this.ea)==null?void 0:pK(a),rs:rK(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.CB("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.jE(a),this.stopVideo()}else this.stopVideo()};
    g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Qa)==null||iFa(b);if(x6a){if(!this.C){var c=new sK;c.then(void 0,function(){});
        this.C=c;y6a&&this.pause();g.yA(function(){a.C===c&&(qFa(a),c.resolve())},200)}}else qFa(this)}};
    g.k.kA=function(){var a=this.Dh();return eK(a)>0&&this.getDuration()?dK(a,this.getCurrentTime()):0};
    g.k.Pw=function(){var a=this.getDuration();return a===Infinity?1:a?this.kA()/a:0};
    g.k.qc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:aK(this.Sw(),",",3),vbu:aK(this.Dh()),vbs:aK(this.pA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Uk(),vns:""+this.JJ(),vec:""+this.eh(),vemsg:this.wf(),vvol:""+this.getVolume(),vdom:""+ +this.CQ(),vsrc:""+ +!!this.Ff(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
    g.k.hasError=function(){return this.eh()>0};
    g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.cP(a)};
    g.k.removeEventListener=function(a,b){this.D.Pc(a,b,!1,this)};
    g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(z6a){var b,c=((b=a.j)==null?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((c==null?0:c.Km())||b<=((c==null?void 0:c.N)||0)){var d;oK(this,{l:"mede",sr:(d=this.ea)==null?void 0:pK(d),et:a.type});return!1}if(this.iK)return oK(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.N=performance.now(),this.iK=!1),!1}return this.D.dispatchEvent(a)};
    g.k.ZO=function(){this.K=!1};
    g.k.VO=function(){this.K=!0;this.iC(!0)};
    g.k.qX=function(){this.K&&!this.IJ()&&this.iC(!0)};
    g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.qX);x6a&&qFa(this);g.I.prototype.xa.call(this)};
    var x6a=!1,y6a=!1,z6a=!1,pFa=!1;g.k=g.vK.prototype;g.k.isPaused=function(){return g.vF(this,4)};
    g.k.isPlaying=function(){return g.vF(this,8)&&!g.vF(this,512)&&!g.vF(this,64)&&!g.vF(this,2)};
    g.k.isOrWillBePlaying=function(){return g.vF(this,8)&&!g.vF(this,2)&&!g.vF(this,1024)};
    g.k.isCued=function(){return g.vF(this,64)&&!g.vF(this,8)&&!g.vF(this,4)};
    g.k.isBuffering=function(){return g.vF(this,1)&&!g.vF(this,2)};
    g.k.isError=function(){return g.vF(this,128)};
    g.k.isSuspended=function(){return g.vF(this,512)};
    g.k.uF=function(){return g.vF(this,64)&&g.vF(this,4)};
    g.k.toString=function(){return"PSt."+this.state.toString(16)};
    var R2={},S2=(R2.BUFFERING="buffering-mode",R2.CUED="cued-mode",R2.ENDED="ended-mode",R2.PAUSED="paused-mode",R2.PLAYING="playing-mode",R2.SEEKING="seeking-mode",R2.UNSTARTED="unstarted-mode",R2);g.x(DK,g.I);g.k=DK.prototype;g.k.fA=function(){return this.B};
    g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){var a=cI(this.layout.Ba,"metadata_type_video_length_seconds"),b=cI(this.layout.Ba,"metadata_type_active_view_traffic_type");ZI(this.layout.Fb)&&m1(this.xb.get(),this.layout.layoutId,{Zs:b,QH:a,listener:this,Pm:this.gf()});cjb(this.Oa.get(),this);a=this.Rg;b=this.layout.layoutId;var c={Pm:this.gf()};a.j.set(b,c);this.gx()};
    g.k.release=function(){ZI(this.layout.Fb)&&n1(this.xb.get(),this.layout.layoutId);djb(this.Oa.get(),this);this.Rg.j.delete(this.layout.layoutId);this.py()};
    g.k.ws=function(){};
    g.k.zs=function(){};
    g.k.startRendering=function(a){HEa(EK(this));vFa(this,a)&&(wFa(this),this.Ks(a),this.gf()||this.AI(!1))};
    g.k.uc=function(a,b){if(b.layoutId===this.layout.layoutId){this.lc="rendering";this.j=this.Ha.get().isMuted()||this.Ha.get().getVolume()===0;this.Xb("impression");this.Xb("start");if(this.Ha.get().isMuted()){JK(this,"mute");var c;a=((c=CK(this))==null?void 0:c.muteCommands)||[];CI(this.Lb.get(),a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Ph("fullscreen");var d;c=((d=CK(this))==null?void 0:d.fullscreenCommands)||[];CI(this.Lb.get(),c,this.layout.layoutId)}this.gf()||(d=this.Ac.get(),
    d.D&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(d.J.L("html5_no_video_to_ad_on_preroll")?IG("pbs",void 0,d.actionType):EG("pbs",void 0,d.actionType),g.CA("finalize_all_timelines")&&EAa(d.actionType))));this.Aq(1);this.KR(b);var e;b=((e=CK(this))==null?void 0:e.impressionCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.qB=function(a,b,c){this.K={OM:3,PH:a==="load_timeout"?402:400,errorMessage:b.message};this.Xb("error");var d;a=((d=CK(this))==null?void 0:d.errorCommands)||[];CI(this.Lb.get(),a,this.layout.layoutId);this.gf()||this.Vo.nf(this.slot,this.layout,b,c)};
    g.k.I2=function(){if(this.lc==="rendering"){JK(this,"pause");var a,b=((a=CK(this))==null?void 0:a.pauseCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId);this.Aq(2)}};
    g.k.J2=function(){if(this.lc==="rendering"){JK(this,"resume");var a,b=((a=CK(this))==null?void 0:a.resumeCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.AC=function(a,b){b=b===void 0?!1:b;if(this.lc==="rendering"){eJ(this.bb,a*1E3,b);this.j||eJ(this.bb,a*1E3,b===void 0?!1:b);var c=this.jA();c&&(c/=1E3,(a>=c*.25||b)&&this.Xb("first_quartile"),(a>=c*.5||b)&&this.Xb("midpoint"),(a>=c*.75||b)&&this.Xb("third_quartile"),this.Aa.get().J.U().experiments.fb("enable_progress_command_flush_on_kabuki")?UDa(this.C,a*1E3,b):UDa(this.C,a*1E3,BFa(this)?b:!1))}};
    g.k.gg=function(){var a;return((a=this.Ra.get().ge(1))==null?void 0:a.clientPlaybackNonce)||""};
    g.k.wJ=function(){var a;return((a=this.Ra.get().ge(2))==null?void 0:a.clientPlaybackNonce)||""};
    g.k.Av=function(a,b){a.layoutId!==this.layout.layoutId?this.Vo.nf(this.slot,a,new $H("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.yc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.lc="not_rendering",this.layoutExitReason=void 0,this.gf()||(a=c!=="normal"||this.position+1===this.G)&&this.AI(a),this.H2(c),this.Aq(0),c){case "abandoned":if(fJ(this.bb,"impression")){var d,e=((d=CK(this))==null?void 0:d.abandonCommands)||[];CI(this.Lb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=CK(this))==null?void 0:e.completeCommands)||[];CI(this.Lb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f=
        CK(this))==null?void 0:f.skipCommands)||[];CI(this.Lb.get(),d,this.layout.layoutId)}};
    g.k.Nw=function(){return this.layout.layoutId};
    g.k.oP=function(){return this.K};
    g.k.Mx=function(){if(this.lc==="rendering"){this.bb.Xb("active_view_measurable");var a,b=((a=CK(this))==null?void 0:a.activeViewMeasurableCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.Lx=function(){if(this.lc==="rendering"){this.bb.Xb("active_view_fully_viewable_audible_half_duration");var a,b=((a=CK(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.Nx=function(){if(this.lc==="rendering"){this.bb.Xb("active_view_viewable");var a,b=((a=CK(this))==null?void 0:a.activeViewViewableCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.Jx=function(){if(this.lc==="rendering"){this.bb.Xb("audio_audible");var a,b=((a=CK(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.Kx=function(){if(this.lc==="rendering"){this.bb.Xb("audio_measurable");var a,b=((a=CK(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}};
    g.k.AI=function(a){this.Ac.get().AI(cI(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.G,!1)};
    g.k.onFullscreenToggled=function(a){if(this.lc==="rendering")if(a){this.Ph("fullscreen");var b,c=((b=CK(this))==null?void 0:b.fullscreenCommands)||[];CI(this.Lb.get(),c,this.layout.layoutId)}else this.Ph("end_fullscreen"),b=((c=CK(this))==null?void 0:c.endFullscreenCommands)||[],CI(this.Lb.get(),b,this.layout.layoutId)};
    g.k.onVolumeChange=function(){if(this.lc==="rendering")if(this.Ha.get().isMuted()){JK(this,"mute");var a,b=((a=CK(this))==null?void 0:a.muteCommands)||[];CI(this.Lb.get(),b,this.layout.layoutId)}else JK(this,"unmute"),a=((b=CK(this))==null?void 0:b.unmuteCommands)||[],CI(this.Lb.get(),a,this.layout.layoutId)};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.Yi=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};
    g.k.Ph=function(a){this.bb.Ph(a,!this.j)};
    g.k.Xb=function(a){this.bb.Xb(a,!this.j)};
    g.k.gf=function(){var a=cI(this.slot.Ba,"metadata_type_eligible_for_ssap");return a===void 0?(tF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Aa.get().gf(a)};g.x(MK,DK);g.k=MK.prototype;g.k.EO=function(){this.layoutExitReason?this.Vo.yc(this.slot,this.layout,this.layoutExitReason):xFa(this)};
    g.k.gx=function(){};
    g.k.py=function(){var a=this.Oa.get();a.xC===this&&(a.xC=null);this.We.stop()};
    g.k.ws=function(){this.We.stop();DK.prototype.I2.call(this)};
    g.k.zs=function(){EFa(this);DK.prototype.J2.call(this)};
    g.k.jA=function(){return cI(this.Xa().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
    g.k.md=function(a,b){var c=this;this.Av(a,function(){c.lc!=="rendering_stop_requested"&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,FK(c,b),c.We.stop())})};
    g.k.eQ=function(){JEa(EK(this));this.At()};
    g.k.Tc=function(){var a=Date.now(),b=a-this.TQ;this.TQ=a;this.hj+=b;this.hj>=this.jA()?this.IY():(this.AC(this.hj/1E3),DFa(this,this.hj))};
    g.k.H2=function(){};
    g.k.Ki=function(){};
    g.x(GFa,MK);g.k=GFa.prototype;g.k.cg=function(a){if(this.lc!=="not_rendering"){a=GK(this,a);var b=this.Ha.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&sJ(a)&&this.Oz():b?g.xF(a,2)?tF("Receive player ended event during MediaBreak",this.Wb(),this.Xa()):HK(this,a):this.Vw()}};
    g.k.Ks=function(){zFa(this);njb(this.Ha.get());this.Oa.get().xC=this;HG("pbp")||HG("pbs")||IG("pbp");HG("pbp","watch")||HG("pbs","watch")||IG("pbp",void 0,"watch");this.Oz()};
    g.k.KR=function(a){this.Ac.get();var b=cI(a.Ba,"metadata_type_ad_placement_config").kind,c=this.position===0;a=cI(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:IK(b),adType:QFa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";EG("ad_mbs",void 0,d);g.FG(a,d);EFa(this)};
    g.k.Vw=function(){this.At()};
    g.k.IY=function(){FFa(this);this.At()};
    g.x(NK,MK);g.k=NK.prototype;g.k.cg=function(a){this.lc!=="not_rendering"&&(a=GK(this,a),HK(this,a))};
    g.k.Ks=function(){this.Oa.get().xC=this;this.Oz()};
    g.k.KR=function(){EFa(this)};
    g.k.Vw=function(){yFa(this);this.At()};
    g.k.IY=function(){FFa(this);this.Vo.wy(this.Wb(),this.Xa(),"normal")};
    g.x(OK,NK);OK.prototype.md=function(a,b){var c=this;this.Av(a,function(){CEa(c.B,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,FK(c,b),c.We.stop())})};
    OK.prototype.startRendering=function(a){HEa(EK(this));vFa(this,a)&&(wFa(this),this.Oa.get().xC=this)};g.x(SK,DK);g.k=SK.prototype;g.k.EO=function(){this.layoutExitReason?this.Vo.yc(this.slot,this.layout,this.layoutExitReason):xFa(this)};
    g.k.Vw=function(){yFa(this);this.At()};
    g.k.cg=function(a){if(this.lc!=="not_rendering"){a=GK(this,a);var b=this.Ha.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&sJ(a)&&this.Oz():b?g.xF(a,2)?this.At():HK(this,a):this.Vw()}};
    g.k.gx=function(){cI(this.Xa().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=cI(this.Xa().Ba,"metadata_type_shrunken_player_bytes_config")};
    g.k.py=function(){cI(this.Xa().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.zt&&this.Oc.get().removeCueRange(this.zt);this.zt=void 0;var a;(a=this.JK)==null||a.dispose();this.jB&&this.jB.dispose()};
    g.k.Ks=function(a){var b=QK(this.Aa.get()),c=RK(this.Aa.get());if(b&&c&&!this.gf()){c=cI(a.Ba,"metadata_type_preload_player_vars");var d=g.hI(this.Aa.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.jB&&this.jB.start(d*1E3)}JFa(this,a);zFa(this);b?(c=this.fd.get(),a=cI(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):wjb(this.fd.get(),cI(a.Ba,"metadata_type_player_vars"));var e;(e=this.JK)==null||e.start();b||this.fd.get().J.playVideo(2)};
    g.k.KR=function(){var a;(a=this.JK)==null||a.stop();this.zt="adcompletioncuerange:"+this.Xa().layoutId;this.Oc.get().addCueRange(this.zt,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Np;var b=this.zt,c=this.Xa().layoutId;if(zM(a.Aa.get())){var d={};a.zl("mccr",(d.cid=b,d.c=c,d))}(this.adCpn=this.wJ())||tF("Media layout confirmed started, but ad CPN not set.");this.kd.get().Tu("onAdStart",this.adCpn);this.JW=Date.now()};
    g.k.jA=function(){var a;return(a=this.Ra.get().ge(2))==null?void 0:a.Rca};
    g.k.SL=function(){this.bb.Ph("clickthrough")};
    g.k.md=function(a,b){var c=this;this.Av(a,function(){if(c.lc!=="rendering_stop_requested"){c.lc="rendering_stop_requested";c.layoutExitReason=b;FK(c,b);var d;(d=c.JK)==null||d.stop();c.jB&&c.jB.stop();KFa(c)}})};
    g.k.onCueRangeEnter=function(a){if(a!==this.zt)tF("Received CueRangeEnter signal for unknown layout.",this.Wb(),this.Xa(),{cueRangeId:a});else{var b=this.context.Np,c=this.Xa().layoutId;if(zM(b.Aa.get())){var d={};b.zl("mccre",(d.cid=a,d.c=c,d))}this.Oc.get().removeCueRange(this.zt);this.zt=void 0;a=cI(this.Xa().Ba,"metadata_type_video_length_seconds");this.AC(a,!0);this.Xb("complete")}};
    g.k.H2=function(a){a!=="abandoned"&&this.kd.get().Tu("onAdComplete");this.kd.get().Tu("onAdEnd",this.adCpn)};
    g.k.eQ=function(){JEa(EK(this));this.At()};
    g.k.onCueRangeExit=function(){};
    g.k.Ki=function(a){this.lc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().nC(!0),this.AC(a))};
    g.k.AC=function(a,b){DK.prototype.AC.call(this,a,b===void 0?!1:b);if(a>=5&&!this.UY){b=Date.now()-this.JW;a*=1E3;var c={contentCpn:this.gg(),adCpn:this.wJ()},d=b<1E3?0:1;pza(d,"i.k_",{metadata:c,Z6:b,a7:Math.floor(a/1E3)});fA("IKDSTAT",d);d===0&&this.yT()&&this.kd.get().Tu("onAbnormalityDetected");this.UY=!0}};
    g.k.yT=function(){if(!this.Aa.get().yT())return!1;var a=cI(this.Wb().Ba,"metadata_type_player_bytes_slot_metadata");a===void 0&&tF("PlayerBytesSlotMetadata is not filled",this.Wb(),this.Xa());return(a==null?void 0:a.ou)===!0};g.x(UK,SK);UK.prototype.cg=function(a){this.lc!=="not_rendering"&&(a=GK(this,a),HK(this,a))};
    UK.prototype.Ks=function(a){JFa(this,a);this.Oz()};
    g.x(TK,UK);TK.prototype.md=function(a,b){var c=this;this.Av(a,function(){CEa(c.B,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,FK(c,b),KFa(c))})};
    TK.prototype.startRendering=function(a){HEa(EK(this));vFa(this,a)&&(wFa(this),JFa(this,a))};g.x(VK,g.I);g.k=VK.prototype;g.k.init=function(){var a=cI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ra.get().addListener(this);this.Xc.init();DEa([this.layout],this.Ra.get());this.WN()};
    g.k.WN=function(){var a=cI(this.Xc.Xa().Ba,"metadata_type_player_vars");a?this.fd.get().addPlayerResponseForAssociation({playerVars:a}):(a=RFa(this.Xc.Xa()),this.fd.get().addPlayerResponseForAssociation({bJ:a}))};
    g.k.release=function(){this.Ra.get().removeListener(this);this.Xc.release();EEa()};
    g.k.iL=function(){};
    g.k.Px=function(a,b,c){zJ({cpn:a,df:this.Ra.get(),Om:!0});if(this.layout.layoutId===a)if(this.j!==void 0){var d=this.j;c!==3&&tF("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.Ok.yc(this.slot,this.layout,d);this.j=void 0}else this.B&&tF("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,c===2?$K(this.Me,this.layout,"normal"):c===4?(a=new $H("Non video ad expired during SSAP single layout.",
        {playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Xc.qB("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.Ok.nf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):tF("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})};
    g.k.Ox=function(a){yJ({cpn:a,df:this.Ra.get(),Om:!0});this.layout.layoutId===a&&PM(this.Ld,this.slot.slotId)};
    g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.Ok.nf(this.Wb(),a,new $H("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),jI(this.Yb(),this),this.Xc.startRendering(this.layout),this.Ok.uc(this.slot,this.layout))};
    g.k.md=function(a,b){this.Xc.md(this.layout,b);this.Ha.get().removeListener(this);this.B?(this.Ok.yc(this.slot,this.layout,b),this.B=!1):(this.j!==void 0&&tF("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.zc.get().finishSegmentByCpn(this.layout.layoutId,this.Ra.get().ge(1).clientPlaybackNonce))};
    g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.ws=function(){this.Xc.ws()};
    g.k.zs=function(){this.Xc.zs()};
    g.k.Ux=function(a,b){tF("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
    g.k.uc=function(a,b){this.Xc.uc(a,b)};
    g.k.yc=function(a,b,c){b.layoutId===this.layout.layoutId&&kI(this.Yb(),this);this.Xc.yc(a,b,c)};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.Ki=function(a){this.Xc.Ki(a)};
    g.k.cg=function(a){if(a.state.isError()){var b,c=new $H("There was a player error during SSAP single media layout.",{playerErrorCode:(b=a.state.Og)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Xc.qB((d=a.state.Og)==null?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.Ok.nf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Xc.cg(a)};
    g.k.onFullscreenToggled=function(a){this.Xc.onFullscreenToggled(a)};
    g.k.nh=function(a){this.Xc.nh(a)};
    g.k.Yi=function(a){this.Xc.Yi(a)};
    g.k.onVolumeChange=function(){this.Xc.onVolumeChange()};
    g.k.Ej=function(){};
    g.k.Hj=function(){};
    g.k.Fj=function(){};
    g.x(SFa,VK);g.k=SFa.prototype;g.k.AQ=function(){return this.Ha.get().getPresentingPlayerType()===2};
    g.k.Ox=function(a){yJ({cpn:a,df:this.Ra.get(),Om:!0});this.layout.layoutId===a&&(PM(this.Ld,this.slot.slotId),this.Ok.uc(this.slot,this.layout))};
    g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void tF("wrong layout");this.Ha.get().addListener(this);jI(this.Yb(),this);this.Xc.startRendering(this.layout)};
    g.k.cg=function(a){this.Xc.cg(a)};
    g.k.yc=function(a,b,c){this.Xc.yc(a,b,c)};
    g.k.release=function(){VK.prototype.release.call(this);kI(this.Yb(),this)};
    g.k.md=function(a,b){a.layoutId!==this.layout.layoutId?tF("wrong layout"):(this.Xc.md(this.layout,b),this.AQ()&&this.zc.get().finishSegmentByCpn(this.layout.layoutId,this.Ra.get().ge(1).clientPlaybackNonce),this.Ha.get().removeListener(this))};
    g.k.Px=function(a,b,c){zJ({cpn:a,df:this.Ra.get(),Om:!0});this.Xa().layoutId===a&&(this.Xc.fA().currentState<2&&$K(this.Me,this.layout,CFa(c)),this.Ok.yc(this.slot,this.layout,this.Xc.fA().j))};g.x(WK,g.I);g.k=WK.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.iL=function(){};
    g.k.mf=function(){return this.tf[this.jw]};
    g.k.Vh=function(){return this.jw};
    g.k.ws=function(a,b){var c=this.mf();b.layoutId!==YK(c,a,b)?tF("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.ws()};
    g.k.zs=function(a,b){var c=this.mf();b.layoutId!==YK(c,a,b)?tF("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.zs()};
    g.k.Ux=function(a,b){var c=this.mf();WFa(this,a,b);XFa(c,a,b)&&this.tJ(c.Wb(),c.Xa(),"skipped")};
    g.k.kL=function(a,b){var c=this.mf();YFa(this);ZFa(c,a,b)&&(a=$Fa(this,c,a,b),a!==void 0&&(this.gf()?this.VI(c.Xa(),a,"skipped"):bGa(this,c.Wb(),c.Xa(),a)))};
    g.k.h0=function(a,b){var c=Object.assign({},XK(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Om;if(c.Pm){var f={};xJ(c.df,"wrse",(f.ec=d,f.is=e,f.ctp=wJ(d),f))}wCa(this.Kq,a,b)};
    g.k.uc=function(a,b){var c;(c=this.mf())==null||c.uc(a,b)};
    g.k.yc=function(a,b,c){b.layoutId===this.Xa().layoutId&&(this.ex=!1,kI(this.Yb(),this));var d;(d=this.mf())==null||d.yc(a,b,c)};
    g.k.Ki=function(a){var b;(b=this.mf())==null||b.Ki(a)};
    g.k.YJ=function(a,b,c){this.Vh()===-1&&(this.callback.uc(this.slot,this.layout),this.jw++);var d=this.mf();d?(d.qB(a,b,c),this.gf()&&this.callback.nf(this.slot,this.layout,b,c)):tF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Vh()),layoutId:this.Xa().layoutId})};
    g.k.onFullscreenToggled=function(a){var b;(b=this.mf())==null||b.onFullscreenToggled(a)};
    g.k.nh=function(a){var b;(b=this.mf())==null||b.nh(a)};
    g.k.Yi=function(a){var b;(b=this.mf())==null||b.Yi(a)};
    g.k.onVolumeChange=function(){var a;(a=this.mf())==null||a.onVolumeChange()};
    g.k.FO=function(a,b,c){xCa(this.Kq,a,b,c);this.gQ=!1};
    g.k.GT=function(a){this.gQ=!0;a.startRendering(a.Xa())};
    g.k.init=function(){var a=cI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.tf.length<1)throw new aI("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.tf.length)});if(a=cI(this.Xa().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.v(this.tf);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),tCa(this.Kq,this.slot,b.Xa()),uCa(this.Kq,this.slot,b.Xa());if(this.gf())for(this.Ra.get().addListener(this),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             DEa(VFa(this),this.Ra.get()),a=VFa(this),a=g.v(a),b=a.next();!b.done;b=a.next())this.WN(b.value)};
    g.k.WN=function(a){var b=cI(a.Ba,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&tF("Non-video ad contains playerVars",this.slot,a),this.fd.get().addPlayerResponseForAssociation({playerVars:b})):(a=RFa(a),this.fd.get().addPlayerResponseForAssociation({bJ:a}))};
    g.k.release=function(){var a=cI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=cI(this.Xa().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.v(this.tf);for(var b=a.next();!b.done;b=a.next())b=b.value,vCa(this.Kq,this.slot,b.Xa()),b.release();this.gf()&&(this.Ra.get().removeListener(this),EEa())};
    g.k.Av=function(a){return a.layoutId!==this.Xa().layoutId?(this.callback.nf(this.Wb(),a,new $H("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Xa().layoutId+("and LayoutType: "+this.Xa().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
    g.k.QD=function(){this.Ha.get().addListener(this);jI(this.Yb(),this)};
    g.k.cg=function(a){if(a.state.isError()){var b,c;this.YJ((b=a.state.Og)==null?void 0:b.errorCode,new $H("There was a player error during this media layout.",{playerErrorCode:(c=a.state.Og)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.mf())&&b.cg(a)};
    g.k.gf=function(){var a=cI(this.Wb().Ba,"metadata_type_eligible_for_ssap");return a===void 0?(tF("Expected SSAP eligibility in PlayerBytes slots",this.Wb(),this.Xa()),!1):this.Aa.get().gf(a)};
    g.k.Fj=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};
    g.x(eGa,WK);g.k=eGa.prototype;g.k.YQ=function(){var a=this.mf();a&&a.Vw()};
    g.k.k0=function(a,b,c){this.tJ(a,b,c)};
    g.k.j0=function(a,b){this.tJ(a,b,"error")};
    g.k.tJ=function(a,b,c){var d=this;ZK(this,a,b,c,function(){aGa(d,d.Vh()+1)})};
    g.k.startRendering=function(a){this.Av(a)&&(this.QD(),i1(this.Aa.get())&&d1(this.Ac.get()),Kib(this.Aa.get())||njb(this.Ha.get()),i1(this.Aa.get())||d1(this.Ac.get()),this.Vh()===-1&&aGa(this,this.Vh()+1))};
    g.k.md=function(a,b){var c=this;this.ex=!0;this.Vh()===this.tf.length?this.callback.yc(this.slot,this.layout,b):(a=this.mf(),a.md(a.Xa(),b),this.pQ=function(){c.callback.yc(c.slot,c.layout,b)});
        this.Ha.get().J.qy();wjb(this.fd.get(),{});a=l1(this.Ha.get(),1);a.isPaused()&&!g.vF(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.ex&&this.YQ()};
    g.k.Px=function(){};
    g.k.Ox=function(){};
    g.k.wy=function(){};
    g.k.VI=function(){};
    g.x(aL,WK);g.k=aL.prototype;g.k.Px=function(a,b){var c=this;zJ(Object.assign({},XK(this),{cpn:a}));var d=this.mf();d&&this.gQ&&(d.Xa().layoutId!==a&&tF("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.nX=function(e){e.layoutId!==a&&tF("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.tf.some(function(f){return f.Xa().layoutId===b})||(c.jw=c.tf.length,$K(c.Jh,c.layout,"normal"))},d.eQ())};
    g.k.Ox=function(a){yJ(Object.assign({},XK(this),{cpn:a}));var b=this.tf.findIndex(function(c){return c.Xa().layoutId===a});
        b!==-1&&(this.Vh()===-1&&PM(this.Ld,this.slot.slotId),dGa(this,b))};
    g.k.k0=function(a,b,c){a=Object.assign({},XK(this),{layoutId:b.layoutId,layoutExitReason:c});var d=a.layoutId,e=a.layoutExitReason,f={};xJ(a.df,"prse",(f.xc=d,f.ler=e,f.ctp=wJ(d),f));fGa(this,b,c)};
    g.k.j0=function(a,b,c,d){this.callback.nf(this.slot,this.layout,c,d)};
    g.k.tJ=function(a,b,c){this.VI(b,this.Vh()+1,c)};
    g.k.startRendering=function(a){this.Av(a)&&this.QD()};
    g.k.md=function(a,b){var c=this;if(this.Vh()===this.tf.length)this.callback.yc(this.slot,this.layout,b);else{a=this.mf();if(!a){tF("Expected active sublayout when composite layout stops rendering",this.slot,this.layout,{activeSubLayoutIndex:this.Vh(),subLraCount:this.tf.length});return}a.md(a.Xa(),b);this.pQ=function(){c.callback.yc(c.slot,c.layout,b)};
        this.zc.get().finishSegmentByCpn(a.Xa().layoutId,this.Ra.get().ge(1).clientPlaybackNonce)}this.Ha.get().removeListener(this)};
    g.k.wy=function(a,b,c){this.VI(b,this.Vh()+1,c)};
    g.k.VI=function(a,b,c){var d=this;ZK(this,this.slot,a,c,function(){if(b>=d.tf.length+1||b<0)tF("Unexpected target sublayout index",d.slot,d.layout,{targetSubLayoutIndex:b});else{d.jw=b;if(b===d.tf.length){var e=d.Ra.get().ge(1).clientPlaybackNonce;$K(d.Jh,d.layout,"normal")}else e=d.tf[b].Xa().layoutId;d.zc.get().finishSegmentByCpn(a.layoutId,e)}})};
    g.x(gGa,aL);g.k=gGa.prototype;g.k.mf=function(){return this.Ci};
    g.k.Vh=function(){var a=this;return this.tf.findIndex(function(b){var c;return b.Xa().layoutId===((c=a.Ci)==null?void 0:c.Xa().layoutId)})};
    g.k.GT=function(a){sF(this.Ci===void 0,"replacing another adapter");this.Ci=a;a.startRendering(a.Xa())};
    g.k.FO=function(a,b,c){xCa(this.Kq,a,b,c);var d;sF(b.layoutId===((d=this.Ci)==null?void 0:d.Xa().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot:  "+a.slotType:"",subLayout:sza(b)})&&(this.Ci=void 0)};
    g.k.release=function(){aL.prototype.release.call(this);sF(this.Ci===void 0,"currentAdapter is still active during release");this.Ci=void 0};
    g.k.AQ=function(){return this.Ha.get().getPresentingPlayerType()===2};
    g.k.md=function(a,b){sF(a.layoutId===this.Xa().layoutId,"StopRendering for wrong layout")&&CEa(this.Bw.B,b)&&this.Ci&&(a=this.Ci,a.fA().currentState<2&&a.md(a.Xa(),b),this.AQ()&&this.zc.get().finishSegmentByCpn(this.Ci.Xa().layoutId,this.Ra.get().ge(1).clientPlaybackNonce))};
    g.k.yc=function(a,b,c){aL.prototype.yc.call(this,a,b,c);b.layoutId===this.Xa().layoutId&&this.Ha.get().removeListener(this)};
    g.k.gg=function(){return this.Ra.get().ge(1).clientPlaybackNonce};
    g.k.Px=function(a,b,c){zJ(Object.assign({},XK(this),{cpn:a}));this.Ci&&this.Ci.Xa().layoutId===a&&hGa(this,this.Ci,c);b===this.gg()&&(this.Ci!==void 0&&(tF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:sza(this.Ci.Xa())}),hGa(this,this.Ci,c)),this.Bw.B.currentState<2&&$K(this.Jh,this.layout,CFa(c)),this.callback.yc(this.slot,this.layout,this.Bw.B.j))};
    g.k.startRendering=function(a){this.Av(a)&&(a=this.Bw,sF(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.QD())};
    g.k.Ox=function(a){yJ(Object.assign({},XK(this),{cpn:a}));var b=this.tf.find(function(c){return c.Xa().layoutId===a});
        b?(this.Bw.j!==2&&(PM(this.Ld,this.slot.slotId),sF(this.Bw.j===2,"Expect started"),this.callback.uc(this.slot,this.layout)),this.GT(b),wCa(this.Kq,this.slot,b.Xa())):iGa(this,a)};
    g.k.Ux=function(a,b){WFa(this,a,b);var c=this.mf();c?XFa(c,a,b)&&jGa(this,"skipped"):kGa(this,"onSkipRequested")};
    g.k.kL=function(a,b){var c;a:{if(c=this.mf()){if(YFa(this),ZFa(c,a,b)&&(a=$Fa(this,c,a,b),a!==void 0)){c={U6:c,vea:this.tf[a]};break a}}else kGa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.U6,a=a.vea,c.md(c.Xa(),"skipped"),a=a.Xa().layoutId,this.zc.get().finishSegmentByCpn(c.Xa().layoutId,a)};
    g.k.h0=function(){tF("Not used in html5_ssap_fix_layout_exit")};
    g.k.cg=function(a){var b;(b=this.mf())==null||b.cg(a)};
    g.k.YJ=function(){tF("Not used in html5_ssap_fix_layout_exit")};
    g.k.wy=function(a,b,c){var d;if(((d=this.mf())==null?void 0:d.Xa().layoutId)!==b.layoutId)return void tF("requestToExitSubLayout: wrong layout");jGa(this,c)};g.x(mGa,g.I);g.k=mGa.prototype;g.k.Wb=function(){return this.Xc.Wb()};
    g.k.Xa=function(){return this.Xc.Xa()};
    g.k.init=function(){var a=cI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.gx()};
    g.k.gx=function(){this.Xc.init()};
    g.k.release=function(){var a=cI(this.Xa().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.py()};
    g.k.py=function(){this.Xc.release()};
    g.k.ws=function(){this.Xc.ws()};
    g.k.zs=function(){this.Xc.zs()};
    g.k.Ux=function(a,b){tF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Wb(),this.Xa(),{requestingSlot:a,requestingLayout:b})};
    g.k.startRendering=function(a){a.layoutId!==this.Xa().layoutId?this.callback.nf(this.Wb(),a,new $H("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Xa().layoutId+("and LayoutType: "+this.Xa().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),jI(this.Yb(),this),i1(this.Aa.get())&&d1(this.Ac.get()),Kib(this.Aa.get())||njb(this.Ha.get()),i1(this.Aa.get())||d1(this.Ac.get()),this.Ks(a))};
    g.k.Ks=function(a){this.Xc.startRendering(a)};
    g.k.md=function(a,b){this.ex=!0;this.oM(a,b);this.Ha.get().J.qy();wjb(this.fd.get(),{});a=l1(this.Ha.get(),1);a.isPaused()&&!g.vF(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.ex&&this.YQ()};
    g.k.oM=function(a,b){this.Xc.md(a,b)};
    g.k.uc=function(a,b){this.Xc.uc(a,b)};
    g.k.yc=function(a,b,c){b.layoutId===this.Xa().layoutId&&(this.ex=!1,kI(this.Yb(),this));this.Xc.yc(a,b,c);b.layoutId===this.Xa().layoutId&&cGa(this.Ac.get())};
    g.k.YQ=function(){this.Xc.Vw()};
    g.k.Ki=function(a){this.Xc.Ki(a)};
    g.k.cg=function(a){if(a.state.isError()){var b,c;this.YJ((b=a.state.Og)==null?void 0:b.errorCode,new $H("There was a player error during this media layout.",{playerErrorCode:(c=a.state.Og)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Xc.cg(a)};
    g.k.YJ=function(a,b,c){this.Xc.qB(a,b,c)};
    g.k.onFullscreenToggled=function(a){this.Xc.onFullscreenToggled(a)};
    g.k.nh=function(a){this.Xc.nh(a)};
    g.k.Yi=function(a){this.Xc.Yi(a)};
    g.k.onVolumeChange=function(){this.Xc.onVolumeChange()};
    g.k.Fj=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};g.k=bL.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.init=function(){this.Bf.get().addListener(this);this.Ha.get().addListener(this);this.gx();var a=cI(this.layout.Ba,"metadata_type_layout_enter_ms"),b=cI(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=(c=this.Ra.get().Ew)==null?void 0:c.clientPlaybackNonce;c=this.layout.ac.adClientDataEntry;cL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Bf.get();e=oGa(e.C,a,b);e!==null&&(cL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
            cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.zc.get().Ez(e,b))};
    g.k.release=function(){this.py();this.Bf.get().removeListener(this);this.Ha.get().removeListener(this)};
    g.k.startRendering=function(){this.Ks();this.callback.uc(this.slot,this.layout)};
    g.k.md=function(a,b){this.oM(b);this.driftRecoveryMs!==null&&(qGa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(pGa(this)-cI(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ha.get().J.Fr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.yc(this.slot,this.layout,b)};
    g.k.O_=function(){return!1};
    g.k.K_=function(a){var b=cI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=cI(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;cL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:(d=this.Ra.get().Ew)==null?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.ac.adClientDataEntry}});this.zc.get().Ez(a,c)}};
    g.k.Ki=function(a){this.A_(a);a=t1(this.Ha.get(),2,!0);if(eKa(this.D.get(),this.layout.layoutId)){var b=cI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(c===null||a*1E3<b+c)){this.driftRecoveryMs=null;var d=pGa(this),e=this.Ha.get().J.Fr(),f=Math.min(a+e,d/1E3);f<=a?qGa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(e*1E3).toString()}):(qGa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),
        driftFromHeadMs:Math.round(e*1E3).toString(),appliedDriftRecoveryMs:Math.round(a*1E3-b).toString(),destinationMs:Math.round(f*1E3-b).toString()}),this.Ha.get().J.seekTo(f,void 0,void 0,1))}}};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.Yi=function(){};
    g.k.onVolumeChange=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};g.x(rGa,bL);g.k=rGa.prototype;g.k.gx=function(){this.Ra.get().addListener(this);this.C.forEach(function(a){a.init()});
        this.B!=null&&dL(this.Oa.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
    g.k.py=function(){this.Ra.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
    g.k.Ks=function(){if(this.j)tF("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=(a=this.Ra.get().Ew)==null?void 0:a.layoutId;tGa(this,b)}};
    g.k.oM=function(a){var b,c,d,e;(d=this.j)==null||(e=d.pm)==null||e.md((b=this.j)==null?void 0:(c=b.pm)==null?void 0:c.Xa(),a);this.j=null};
    g.k.iL=function(a){var b=a.videoId;a=a.layoutId;if(b==="nPpU29QrbiU"){var c,d;dL(this.Oa.get(),"ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+((c=this.j)==null?void 0:(d=c.pm)==null?void 0:d.Xa().layoutId))}if(this.j){var e;if(((e=this.j.pm)==null?void 0:e.Xa().layoutId)===a)tF("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:a});else{var f,h;(h=this.j.pm)==null||h.md((f=this.j.pm)==null?void 0:f.Xa(),"normal");
        tGa(this,a)}}else tF("Unexpected playback transition when no subLRA is rendering",this.slot,this.layout,{layoutId:a})};
    g.k.Px=function(){};
    g.k.Ox=function(){};
    g.k.A_=function(){};
    g.k.cg=function(){};
    g.k.onFullscreenToggled=function(){};g.k=HGa.prototype;g.k.Wb=function(){return this.slot};
    g.k.Xa=function(){return this.layout};
    g.k.fA=function(){tF("Should not get exitStateMachine for DAI");return new BEa};
    g.k.init=function(){var a=this;cI(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;this.od=uGa(this.slot,this.layout,cI(this.layout.Ba,"metadata_type_player_vars"),cI(this.layout.Ba,"metadata_type_layout_enter_ms"),cI(this.layout.Ba,"metadata_type_layout_exit_ms"),cI(this.layout.Ba,"metadata_type_video_length_seconds")*1E3,this.zc.get(),this.Ls.get(),function(){var d=Object,e=d.assign,f=KGa(a.layout);var h=cI(a.slot.Ba,"metadata_type_fulfilled_layout");h=Object.assign({},KGa(h),
        {adPlacementConfig:cI(h.Ba,"metadata_type_ad_placement_config"),subLayouts:cI(h.Ba,"metadata_type_sub_layouts").map(KGa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:XH(a.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:cI(a.layout.Ba,"metadata_type_survey_overlay")})},this.Oa.get());
        this.Ha.get().addListener(this);var b=cI(this.layout.Ba,"metadata_type_video_length_seconds"),c=cI(this.layout.Ba,"metadata_type_active_view_traffic_type");ZI(this.layout.Fb)&&m1(this.xb.get(),this.layout.layoutId,{Zs:c,QH:b,listener:this});tCa(this.callback,this.slot,this.layout);uCa(this.callback,this.slot,this.layout)};
    g.k.release=function(){this.Ha.get().removeListener(this);ZI(this.layout.Fb)&&n1(this.xb.get(),this.layout.layoutId);this.Aa.get();vCa(this.callback,this.slot,this.layout)};
    g.k.startRendering=function(){var a=this;XH(this.layout.Ba,"metadata_type_survey_overlay")&&dL(this.Oa.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.lc)tF("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:XH(this.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:cI(this.layout.Ba,"metadata_type_survey_overlay")});else{this.lc={Co:null,gH:!1};if(Iib(this.Aa.get())){var b;this.adCpn=(b=this.Ra.get().ge(2))==null?void 0:b.clientPlaybackNonce}this.Aa.get().J.U().experiments.fb("html5_disable_sodar_for_tvhtml5")||
    vGa(this.slot,this.layout,this.hf.get());this.bb.Xb("start");if(tM(this.Aa.get())){b=l1(this.Ha.get());var c=cI(this.layout.Ba,"metadata_type_video_length_seconds"),d=t1(this.Ha.get(),2,!1);xGa(this.bb,this.lc.Co,b,c,d,function(){return void JGa(a,"teois")})}wCa(this.callback,this.slot,this.layout);
        XH(this.layout.Ba,"metadata_type_survey_overlay")&&dL(this.Oa.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
    g.k.md=function(a,b){var c=this;if(this.lc){if(tM(this.Aa.get()))if(this.od===null)tF("Unexpected media sub layout exited without a timeline playback ID");else{a=cI(this.layout.Ba,"metadata_type_video_length_seconds");var d=ljb(this.Ha.get(),this.od);Iib(this.Aa.get())&&this.adCpn===void 0&&tF("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:cI(this.layout.Ba,"metadata_type_content_cpn")});ADa(this.bb,d,this.adCpn);yGa(this.bb,null,this.lc.Co,a,d,function(e){return void IGa(c,
        e,"fue")},Iib(this.Aa.get()))}this.lc=null;
        xCa(this.callback,this.slot,this.layout,b)}else tF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
    g.k.qB=function(){};
    g.k.Vw=function(){};
    g.k.eQ=function(){};
    g.k.Ki=function(a){var b=this;if(this.lc){if(fJ(this.bb,"impression")){var c=l1(this.Ha.get()),d=cI(this.layout.Ba,"metadata_type_video_length_seconds");zGa(this.bb,c,a,this.lc.Co,d,function(e){return void IGa(b,e,"tpaqe")})}this.lc.Co=a}};
    g.k.cg=function(a){var b=this;if(this.lc){tM(this.Aa.get())||this.lc.gH||(this.lc.gH=!0,a=new g.uF(a.state,new g.vK));var c=cI(this.layout.Ba,"metadata_type_video_length_seconds"),d=t1(this.Ha.get(),2,!1);wGa(this.bb,this.lc.Co,a,c,d,!tM(this.Aa.get()),function(){return void JGa(b,"teosc")})}};
    g.k.onFullscreenToggled=function(a){AGa(this.bb,a)};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.Yi=function(){};
    g.k.Ux=function(a,b){var c;a=this.Oa.get();var d="ti."+fJ(this.bb,"impression")+";ts."+fJ(this.bb,"skip")+";hp.",e;var f=!((e=this.bb.C.get("skip"))==null||!e.length);dL(a,"ads_dsr",d+f+";cpn."+cI(this.layout.Ba,"metadata_type_content_cpn")+";acpn."+((c=this.Ra.get().ge(2))==null?void 0:c.clientPlaybackNonce)+";sl."+(cI(b.Ba,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));fJ(this.bb,"impression")&&this.bb.Xb("skip");b=this.Ra.get().ge(1).Mm&&this.Aa.get().J.U().experiments.fb("html5_lifa_skip_to_content");
        this.zc.get().Is(b)||tF("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
    g.k.onVolumeChange=function(){};
    g.k.uc=function(){};
    g.k.yc=function(){};
    g.k.ws=function(){};
    g.k.zs=function(){};
    g.k.SL=function(){BGa(this.bb)};
    g.k.Mx=function(){CGa(this.bb)};
    g.k.Lx=function(){DGa(this.bb)};
    g.k.Nx=function(){EGa(this.bb)};
    g.k.Jx=function(){FGa(this.bb)};
    g.k.Kx=function(){GGa(this.bb)};
    g.k.Ej=function(){};
    g.k.Hj=function(){};g.x(LGa,bL);g.k=LGa.prototype;
    g.k.gx=function(){var a=this;cI(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var b=cI(this.layout.Ba,"metadata_type_layout_enter_ms"),c=cI(this.layout.Ba,"metadata_type_layout_exit_ms");this.od=uGa(this.slot,this.layout,cI(this.layout.Ba,"metadata_type_player_vars"),b,c,cI(this.layout.Ba,"metadata_type_video_length_seconds")*1E3,this.zc.get(),this.Ls.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:cI(a.layout.Ba,"metadata_type_ad_placement_config")}},
        this.Oa.get());
        var d=cI(this.layout.Ba,"metadata_type_video_length_seconds"),e=cI(this.layout.Ba,"metadata_type_active_view_traffic_type");ZI(this.layout.Fb)&&m1(this.xb.get(),this.layout.layoutId,{Zs:e,QH:d,listener:this})};
    g.k.py=function(){ZI(this.layout.Fb)&&n1(this.xb.get(),this.layout.layoutId)};
    g.k.Ks=function(){var a=this;if(this.lc)tF("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.lc={Co:null,gH:!1},vGa(this.slot,this.layout,this.hf.get()),this.bb.Xb("start"),tM(this.Aa.get())){var b=l1(this.Ha.get()),c=cI(this.layout.Ba,"metadata_type_video_length_seconds"),d=t1(this.Ha.get(),2,!1);xGa(this.bb,this.lc.Co,b,c,d,function(){return void MGa(a,"teois")})}};
    g.k.oM=function(){var a=this;if(this.lc){if(tM(this.Aa.get()))if(this.od===null)tF("Unexpected single media layout exited without a timeline playback ID");else{var b=cI(this.layout.Ba,"metadata_type_video_length_seconds"),c=ljb(this.Ha.get(),this.od);ADa(this.bb,c);yGa(this.bb,null,this.lc.Co,b,c,function(d){return void NGa(a,d,"fue")})}this.lc=null}else tF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
    g.k.A_=function(a){var b=this;if(this.lc){if(fJ(this.bb,"impression")){var c=l1(this.Ha.get()),d=cI(this.layout.Ba,"metadata_type_video_length_seconds");zGa(this.bb,c,a,this.lc.Co,d,function(e){return void NGa(b,e,"tpaqe")})}this.lc.Co=a}};
    g.k.cg=function(a){var b=this;if(this.lc){tM(this.Aa.get())||this.lc.gH||(this.lc.gH=!0,a=new g.uF(a.state,new g.vK));var c=cI(this.layout.Ba,"metadata_type_video_length_seconds"),d=t1(this.Ha.get(),2,!1);wGa(this.bb,this.lc.Co,a,c,d,!tM(this.Aa.get()),function(){return void MGa(b,"teosc")})}};
    g.k.onFullscreenToggled=function(a){AGa(this.bb,a)};
    g.k.SL=function(){BGa(this.bb)};
    g.k.Mx=function(){CGa(this.bb)};
    g.k.Lx=function(){DGa(this.bb)};
    g.k.Nx=function(){EGa(this.bb)};
    g.k.Jx=function(){FGa(this.bb)};
    g.k.Kx=function(){GGa(this.bb)};OGa.prototype.build=function(a,b,c,d){if(XH(c.Ba,"metadata_type_dai")){var e=cI(d.Ba,"metadata_type_ad_placement_config");jJ(d,{Nd:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),Fe:["LAYOUT_TYPE_MEDIA"]})&&e!==void 0?(e=new bJ(d.Fb,this.Oa,e,d.layoutId,null),e=new LGa(a,c,d,this.Ra,this.zc,this.Ls,this.Bf,this.Ha,e,this.Oa,this.hf,this.j,this.xb,this.Aa)):
        e=null;if(e)return e;a:{var f=cI(d.Ba,"metadata_type_sub_layouts"),h=cI(d.Ba,"metadata_type_ad_placement_config");if(jJ(d,{Nd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Fe:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&f!==void 0&&h!==void 0){e=[];f=g.v(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=cI(l.Ba,"metadata_type_media_sub_layout_index");if(!jJ(l,{Nd:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
        Fe:["LAYOUT_TYPE_MEDIA"]})||m===void 0){a=null;break a}m=new bJ(l.Fb,this.Oa,h,l.layoutId,m);e.push(new HGa(b,c,l,this.zc,m,this.Ha,this.Ls,this.xb,this.hf,this.Aa,this.Oa,this.Ra))}b=new bJ(d.Fb,this.Oa,h,d.layoutId);a=new rGa(a,c,d,this.Ra,this.zc,this.Bf,this.Ha,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=nGa(a,b,c,d,this.Yb,this.Ld,this.Jh,this.Oa,this.xb,this.hf,this.fd,this.Ra,this.Ha,this.Oc,this.Ac,this.kd,this.Lb,this.Xf,this.Aa,this.zc,this.context,this.Rg))return a;throw new $H("Unsupported layout with type: "+
        d.layoutType+" and client metadata: "+dI(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};fL.prototype.build=function(a,b,c,d){if(a=nGa(a,b,c,d,this.Yb,this.Ld,this.Jh,this.Oa,this.xb,this.hf,this.fd,this.Ra,this.Ha,this.Oc,this.Ac,this.kd,this.Lb,this.Xf,this.Aa,this.zc,this.context,this.Rg))return a;throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.x(PGa,CE);g.x(gL,VI);gL.prototype.startRendering=function(a){var b=WI(this.bb),c={adsClientData:this.layout.ac};this.j.push(new PGa(cI(this.layout.Ba,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Xa().layoutId,c));VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
    gL.prototype.hg=function(a,b){b!==this.layout.layoutId||a!=="survey-interstitial"&&a!=="button"||((a=cI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Ux(this.slot,this.layout):tF("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
    gL.prototype.xa=function(){VI.prototype.xa.call(this)};var QGa=new g.Ke(320,63);g.x(TGa,CE);g.x(jL,VI);g.k=jL.prototype;g.k.Ki=function(){};
    g.k.cg=function(){};
    g.k.onFullscreenToggled=function(){};
    g.k.nh=function(a){a&&HM(this.D,this.layout)};
    g.k.Fj=function(){};
    g.k.Yi=function(a){var b=iL(this.layout);if(this.N=RGa(a,mjb(this.Ha.get())))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),HM(this.D,this.layout)};
    g.k.onVolumeChange=function(){};
    g.k.Nw=function(){return this.Xa().layoutId};
    g.k.oP=function(){return this.N};
    g.k.hg=function(a){this.G.hg(a);a==="in_video_overlay_close_button"&&HM(this.D,this.layout)};
    g.k.WJ=function(a){a==="invideo-overlay"&&HM(this.D,this.layout)};
    g.k.lq=function(){this.G.lq()};
    g.k.startRendering=function(a){VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.K.Ys=this};
    g.k.md=function(a,b){VI.prototype.md.call(this,a,b);Z1(this.K,this)};
    g.k.init=function(){VI.prototype.init.call(this);cjb(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new TGa(iL(this.layout),WI(this.bb),this.layout.layoutId,{adsClientData:this.layout.ac}))};
    g.k.release=function(){VI.prototype.release.call(this);this.Ha.get().removeListener(this);djb(this.Oa.get(),this)};
    g.k.Ej=function(){};
    g.k.Hj=function(){};g.x(kL,VI);g.k=kL.prototype;g.k.init=function(){VI.prototype.init.call(this);cjb(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new TGa(iL(this.layout),WI(this.bb),this.layout.layoutId,{adsClientData:this.layout.ac}))};
    g.k.lq=function(){this.G.lq()};
    g.k.startRendering=function(a){VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a);this.K.Ys=this};
    g.k.md=function(a,b){VI.prototype.md.call(this,a,b);Z1(this.K,this)};
    g.k.hg=function(a){this.G.hg(a);a==="in_video_overlay_close_button"&&HM(this.D,this.layout)};
    g.k.XP=function(a){if(a==="invideo-overlay"){a=pKa(this.Z,this.layout);a=g.v(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
    g.k.WJ=function(a){a==="invideo-overlay"&&HM(this.D,this.layout)};
    g.k.WP=function(a){if(a==="invideo-overlay"){a=pKa(this.Z,this.layout);a=g.v(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
    g.k.Ki=function(){};
    g.k.cg=function(){};
    g.k.onFullscreenToggled=function(){};
    g.k.nh=function(a){a&&HM(this.D,this.layout)};
    g.k.Fj=function(){};
    g.k.Yi=function(a){var b=iL(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=mjb(this.Ha.get());a:{c=c.image;c=c===void 0?null:c;if(c!=null&&(c=c.thumbnail,c!=null&&c.thumbnails!=null&&c.thumbnails.length!=0&&c.thumbnails[0].width!=null&&c.thumbnails[0].height!=null)){c=new g.Ke(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Ke(0,0)}if(this.N=RGa(a,d,c))b.onErrorCommand&&this.Lb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),HM(this.D,this.layout)};
    g.k.onVolumeChange=function(){};
    g.k.Nw=function(){return this.Xa().layoutId};
    g.k.oP=function(){return this.N};
    g.k.release=function(){VI.prototype.release.call(this);this.Ha.get().removeListener(this);djb(this.Oa.get(),this)};
    g.k.Ej=function(){};
    g.k.Hj=function(){};lL.prototype.hg=function(a){a==="ad-info-hover-text-button"&&((this.j=this.Ha.get().Ao(1))||this.Ha.get().pauseVideo())};
    lL.prototype.lq=function(){this.j||this.Ha.get().resumeVideo(1)};g.x(WGa,CE);g.x(XGa,VI);g.k=XGa.prototype;g.k.init=function(){VI.prototype.init.call(this);this.Ha.get().addListener(this)};
    g.k.startRendering=function(a){var b=cI(this.layout.Ba,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new WGa(b,this.layout.layoutId,{adsClientData:this.layout.ac}));VI.prototype.startRendering.call(this,a);this.callback.uc(this.slot,a)};
    g.k.uc=function(){};
    g.k.hg=function(a,b){b!==this.layout.layoutId||a!=="ad-info-icon-button"&&a!=="ad-info-dialog-close-button"||((b=cI(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a==="ad-info-icon-button"?b.ws(this.slot,this.layout):a==="ad-info-dialog-close-button"&&b.zs(this.slot,this.layout):tF("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
    g.k.Yi=function(a){a.width<450&&HM(this.D,this.layout)};
    g.k.onVolumeChange=function(){};
    g.k.Ki=function(){};
    g.k.onFullscreenToggled=function(){};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.cg=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};
    g.k.xa=function(){VI.prototype.xa.call(this)};
    g.k.release=function(){VI.prototype.release.call(this);this.Ha.get().removeListener(this)};YGa.prototype.build=function(a,b,c,d){if(b=rJ(a,c,d,this.Ec,this.Ha,this.Oa,this.D,this.j,this.Aa))return b;if(jJ(d,VGa()))return new kL(c,d,this.Oa,this.xb,this.Ec,a,this.B,this.C,this.Ha,this.Lb,this.Aa,this.j,new lL(this.Ha));if(jJ(d,UGa()))return new jL(c,d,this.Oa,this.xb,this.Ec,a,this.B,this.Ha,this.Lb,this.Aa,this.j,new lL(this.Ha));if(jJ(d,{Nd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Fe:["LAYOUT_TYPE_SURVEY"]}))return new XGa(c,d,a,this.Ec,this.B,this.Ha,this.Aa);if(jJ(d,
        {Nd:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Fe:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new gL(c,d,a,this.Ec,this.Oa);if(jJ(d,vEa()))return new oJ(c,d,a,this.Ec,this.Ha,this.Aa);throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};ZGa.prototype.build=function(a,b,c,d){if(b=rJ(a,c,d,this.Ec,this.Ha,this.Oa,this.D,this.j,this.Aa))return b;if(jJ(d,VGa()))return new kL(c,d,this.Oa,this.xb,this.Ec,a,this.B,this.C,this.Ha,this.Lb,this.Aa,this.j,new lL(this.Ha));if(jJ(d,UGa()))return new jL(c,d,this.Oa,this.xb,this.Ec,a,this.B,this.Ha,this.Lb,this.Aa,this.j,new lL(this.Ha));throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.x(mL,nJ);mL.prototype.startRendering=function(a){nJ.prototype.startRendering.call(this,a);if(a.renderingContent?oEa(a,this.Ra.get().ge(2)||void 0):cI(this.layout.Ba,"metadata_ad_video_is_listed"))a=a.renderingContent?nEa(a,this.Ra.get().ge(2)||void 0):cI(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.Cn.get().J.ib("onAdMetadataAvailable",a)};aHa.prototype.build=function(a,b,c,d){if(jJ(d,$Ga())||d.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(d.renderingContent,pJ)!==void 0)return new mL(a,c,d,this.Ec,this.Ha,this.Oa,this.B,this.Cn,this.j,this.Ra);throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};bHa.prototype.build=function(a,b,c,d){if(jJ(d,$Ga()))return new mL(a,c,d,this.Ec,this.Ha,this.Oa,this.B,this.Cn,this.j,this.Ra);if(a=rJ(a,c,d,this.Ec,this.Ha,this.Oa,this.B,this.j,this.Aa))return a;throw new $H("Unsupported layout with type: "+d.layoutType+" and client metadata: "+dI(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};BL.prototype.clone=function(a){var b=this;return new BL(function(){return b.triggerId},a)};CL.prototype.clone=function(a){var b=this;return new CL(function(){return b.triggerId},a)};DL.prototype.clone=function(a){var b=this;return new DL(function(){return b.triggerId},a)};EL.prototype.clone=function(a){var b=this;return new EL(function(){return b.triggerId},a)};FL.prototype.clone=function(a){var b=this;return new FL(function(){return b.triggerId},a)};GL.prototype.clone=function(a){var b=this;return new GL(function(){return b.triggerId},a)};g.x(bM,g.I);var FIa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Wc:[],layoutExitUserInputSubmittedTriggers:[]};var iJa={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 tR={ESa:1,FSa:2,GSa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.x(sM,g.I);g.k=sM.prototype;g.k.O_=function(a){if(!this.j){var b;(b=this.zc)==null||b.get().Qu(a.identifier);return!1}YJa(this,this.j,a);return!0};
    g.k.K_=function(){};
    g.k.Ak=function(a){this.j&&this.j.contentCpn!==a&&(tF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
    g.k.Go=function(a){this.j&&this.j.contentCpn!==a&&tF("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.xa=function(){g.I.prototype.xa.call(this);this.j=null};var F1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Gpb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.x(vM,g.I);g.k=vM.prototype;g.k.uc=function(a,b){var c=this;if(b.layoutType==="LAYOUT_TYPE_MEDIA"&&(YH(b,this.K)||YH(b,Gpb))){var d=this.Ra.get().ge(2),e=this.D(b,d||void 0);e?SI(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[rIa(c.j.get(),e.contentCpn,e.Nq,function(h){return c.G(h.slotId,"core",e,gI(c.Ne.get(),h))},e.inPlayerSlotId)];
        e.instreamAdPlayerUnderlayRenderer&&sIa(c.Aa.get())&&f.push(dKa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):tF("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.xf=function(){};
    g.k.Kh=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.yc=function(){};g.x(wM,g.I);wM.prototype.Ak=function(a,b,c,d,e,f,h){var l=this,m=this.Ra.get().ge(1);!Hib(this.Aa.get())&&m.Ep?s1(this.Ha.get()):(Dib(this.Ac.get(),d),SI(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return THa(l.j.get(),d,e,f,a,b,h,m,"")}),zkb(this.C))};
    wM.prototype.Go=function(){};g.x(xM,g.I);g.x(yM,g.I);yM.prototype.onCueRangeEnter=function(){};
    yM.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Oc.get().removeCueRange(a),SI(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=TI(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?xKa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:yKa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:yKa(c.slotId,d,c.slotExpirationTriggers)})]},
        c.slotId))};
    yM.prototype.Ak=function(){for(var a=g.v(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Oc.get().removeCueRange(b);this.j.clear()};
    yM.prototype.Go=function(){};g.x(AM,g.I);g.k=AM.prototype;g.k.Tg=function(){};
    g.k.Nh=function(a){var b=this;g.LB(g.NB(),function(){var c=b.j.get(a);c&&tF("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.ra(c)).map(function(d){return d.layoutType})})},0)};
    g.k.xf=function(){};
    g.k.Kh=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
    g.k.pg=function(a,b){this.dj.has(a)&&this.dj.get(a)===b&&tF("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),c.size===0&&this.j.delete(a)):tF("Trying to unscheduled a Layout that was not scheduled.",a,b)}else tF("Trying to unscheduled a Layout that was not scheduled.",a,b)};
    g.k.uc=function(a,b){this.dj.set(a,b)};
    g.k.yc=function(a){this.dj.delete(a)};
    g.k.Sg=function(){};g.k=hKa.prototype;g.k.init=function(){};
    g.k.Wb=function(){return this.slot};
    g.k.oJ=function(){this.callback.xf(this.slot)};
    g.k.rJ=function(){this.callback.yf(this.slot)};
    g.k.release=function(){};BM.prototype.build=function(a,b){return new hKa(a,b)};g.k=iKa.prototype;g.k.init=function(){};
    g.k.Wb=function(){return this.slot};
    g.k.oJ=function(){u1(this.Ha.get(),"ad-showing");this.callback.xf(this.slot)};
    g.k.rJ=function(){this.callback.yf(this.slot);v1(this.Ha.get(),"ad-showing")};
    g.k.release=function(){};g.k=jKa.prototype;g.k.init=function(){};
    g.k.Wb=function(){return this.slot};
    g.k.oJ=function(){u1(this.Ha.get(),"ad-showing");u1(this.Ha.get(),"ad-interrupting");this.B=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)};
    g.k.rJ=function(){v1(this.Ha.get(),"ad-showing");v1(this.Ha.get(),"ad-interrupting");var a=this.B?Infinity:t1(this.Ha.get(),1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().J.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)};
    g.k.release=function(){};g.k=kKa.prototype;g.k.init=function(){};
    g.k.Wb=function(){return this.slot};
    g.k.oJ=function(){u1(this.Ha.get(),"ad-showing");u1(this.Ha.get(),"ad-interrupting");this.callback.xf(this.slot)};
    g.k.rJ=function(){s1(this.Ha.get());v1(this.Ha.get(),"ad-showing");v1(this.Ha.get(),"ad-interrupting");this.callback.yf(this.slot)};
    g.k.release=function(){s1(this.Ha.get())};CM.prototype.build=function(a,b){if(eI(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new iKa(a,b,this.Ha);if(b.slotEntryTrigger instanceof wL&&eI(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new jKa(a,b,this.Ha);if(eI(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new kKa(a,b,this.Ha);throw new aI("Unsupported slot with type "+b.slotType+" and client metadata: "+(dI(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.x(DM,g.I);DM.prototype.j=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof AL&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&e.triggeringLayoutId===a&&b.push(d)}b.length?tI(this.rN(),b):tF("Mute requested but no registered triggers can be activated.")};g.x(EM,DM);g.k=EM.prototype;g.k.hg=function(a,b){if(b)if(a==="skip-button"){a=[];for(var c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof AL&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&e.triggeringLayoutId===b&&a.push(d)}a.length&&tI(this.rN(),a)}else oM(this.Aa.get(),"supports_multi_step_on_desktop")?a==="ad-action-submit-survey"&&lKa(this,b):a==="survey-submit"?lKa(this,b):a==="survey-single-select-answer-button"&&lKa(this,b)};
    g.k.ZP=function(a){DM.prototype.j.call(this,a)};
    g.k.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof HL||b instanceof AL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ub.set(b.triggerId,new JL(a,b,c,d))};
    g.k.Ml=function(a){this.Ub.delete(a.triggerId)};
    g.k.XP=function(){};
    g.k.WP=function(){};
    g.k.WJ=function(){};g.x(FM,g.I);g.k=FM.prototype;
    g.k.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof BL||b instanceof CL||b instanceof DL||b instanceof EL||b instanceof FL||b instanceof GL||b instanceof jHa||b instanceof tL||b instanceof vL||b instanceof uL||b instanceof xL||b instanceof sL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new JL(a,b,c,d);this.Ub.set(b.triggerId,a);b instanceof
    FL&&this.G.has(b.triggeringSlotId)&&tI(this.j(),[a]);b instanceof BL&&this.C.has(b.triggeringSlotId)&&tI(this.j(),[a]);b instanceof tL&&this.B.has(b.triggeringLayoutId)&&tI(this.j(),[a])};
    g.k.Ml=function(a){this.Ub.delete(a.triggerId)};
    g.k.Tg=function(a){this.G.add(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof FL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&tI(this.j(),b)};
    g.k.Nh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof GL&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&tI(this.j(),b)};
    g.k.Kh=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof jHa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&tI(this.j(),b)};
    g.k.xf=function(a){this.C.add(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof BL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&tI(this.j(),b)};
    g.k.yf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof CL)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof sL){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&tI(this.j(),b)};
    g.k.Lh=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof DL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&tI(this.j(),b)};
    g.k.Mh=function(a){for(var b=[],c=g.v(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof EL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&tI(this.j(),b)};
    g.k.lh=function(a,b){this.K.add(b.layoutId)};
    g.k.pg=function(a,b){this.K.delete(b.layoutId)};
    g.k.uc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.v(this.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof tL)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof xL){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof sL&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&tI(this.j(),c)};
    g.k.yc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.v(this.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof vL&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof uL){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&tI(this.j(),a)};
    g.k.Sg=function(){};
    g.k.Ak=function(){this.D.clear()};
    g.k.Go=function(){};g.x(GM,g.I);GM.prototype.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof qL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ub.set(b.triggerId,new JL(a,b,c,d))};
    GM.prototype.Ml=function(a){this.Ub.delete(a.triggerId)};g.x(IM,g.I);IM.prototype.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof pL||b instanceof zL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ub.set(b.triggerId,new JL(a,b,c,d))};
    IM.prototype.Ml=function(a){this.Ub.delete(a.triggerId)};
    IM.prototype.Ak=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.v(this.Ub.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof pL&&l.trigger.yv===a&&f.push(l);e.call(d,b,g.ra(f));if(!Hib(this.context.Aa.get())){d=b.push;e=d.apply;f=[];h=g.v(this.Ub.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof zL){var m=l.trigger.j===a;m?c&&m&&(tF("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}),
        f.push(l)):f.push(l)}e.call(d,b,g.ra(f))}b.length&&tI(this.j(),b)};
    IM.prototype.Go=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.v(this.Ub.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof zL&&l.j===a&&e.push(h)}d.call(c,b,g.ra(e));b.length&&tI(this.j(),b)};g.x(JM,g.I);g.k=JM.prototype;g.k.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof wL)mKa(this,a,b,c,d,e,b.j.start,b.j.end,b.yv,b.visible);else if(b instanceof rL)mKa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.yv,b.visible);else throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
    g.k.Ml=function(a){var b=this.Ub.get(a.triggerId);b&&this.Oc.get().removeCueRange(b.cJ);this.Ub.delete(a.triggerId)};
    g.k.onCueRangeEnter=function(a){var b=nKa(this,a);if(b&&(b=this.Ub.get(b)))if(g.vF(l1(this.Ha.get()),32))this.j.add(b.cJ);else{var c=b==null?void 0:b.ZD.trigger;if(c instanceof wL||c instanceof rL){if(zM(this.context.Aa.get())){var d=b.ZD.slot,e=b.ZD.layout,f={};this.context.Np.zl("cre",(f.ca=b.ZD.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}tI(this.B(),[b.ZD])}}};
    g.k.onCueRangeExit=function(a){(a=nKa(this,a))&&(a=this.Ub.get(a))&&this.j.delete(a.cJ)};
    g.k.cg=function(a){if(wF(a,16)<0){a=g.v(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.uc=function(){};
    g.k.yc=function(){};
    g.k.Sg=function(){};
    g.k.Ki=function(){};
    g.k.onFullscreenToggled=function(){};
    g.k.nh=function(){};
    g.k.Fj=function(){};
    g.k.Yi=function(){};
    g.k.onVolumeChange=function(){};
    g.k.Ej=function(){};
    g.k.Hj=function(){};g.x(KM,g.I);g.k=KM.prototype;
    g.k.Gl=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new aI("Tried to re-register the trigger.");a=new JL(a,b,c,d);if(a.trigger instanceof fHa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof eHa)this.C.set(a.trigger.triggerId,a);else throw new aI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&tI(this.D(),[a])};
    g.k.Ml=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
    g.k.iL=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.ra(oKa(this.C,this.j)));a!=null&&b.push.apply(b,g.ra(oKa(this.B,a)));this.j=a;b.length&&tI(this.D(),b)}};
    g.k.Px=function(){};
    g.k.Ox=function(){};g.x(LM,g.I);g.k=LM.prototype;g.k.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof yL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ub.set(b.triggerId,new JL(a,b,c,d))};
    g.k.Ml=function(a){this.Ub.delete(a.triggerId)};
    g.k.uc=function(){};
    g.k.yc=function(){};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};g.x(MM,g.I);g.k=MM.prototype;g.k.Sg=function(a,b){for(var c=[],d=g.v(this.Ub.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&&tI(this.j(),c)};
    g.k.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof TCa))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ub.set(b.triggerId,new JL(a,b,c,d))};
    g.k.Ml=function(a){this.Ub.delete(a.triggerId)};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.uc=function(){};
    g.k.yc=function(){};g.x(NM,g.I);g.k=NM.prototype;g.k.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof IL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ub.set(b.triggerId,new JL(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.Ml=function(a){this.Ub.delete(a.triggerId);if(!(a instanceof IL))throw new aI("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),b.size===0&&this.j.delete(a.triggeringLayoutId)};
    g.k.Tg=function(){};
    g.k.Nh=function(){};
    g.k.Kh=function(){};
    g.k.xf=function(){};
    g.k.yf=function(){};
    g.k.Lh=function(){};
    g.k.Mh=function(){};
    g.k.lh=function(){};
    g.k.pg=function(){};
    g.k.Sg=function(){};
    g.k.uc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.v(a);var d=a.next();for(b={};!d.done;b={yM:void 0},d=a.next())b.yM=d.value,d=new g.Av(function(e){return function(){var f=c.Ub.get(e.yM.triggerId);tI(c.C(),[f])}}(b),b.yM.durationMs),d.start(),this.B.set(b.yM.triggerId,d)}};
    g.k.yc=function(){};g.x(OM,g.I);OM.prototype.Gl=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new aI("Tried to register duplicate trigger for slot.");if(!(b instanceof nL))throw new aI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Ub.set(b.triggerId,new JL(a,b,c,d))};
    OM.prototype.Ml=function(a){this.Ub.delete(a.triggerId)};SM.prototype.ou=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.x(UM,g.I);g.k=UM.prototype;g.k.logEvent=function(a){this.Vr(a)};
    g.k.Sj=function(a,b,c){this.Vr(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
    g.k.Sh=function(a,b,c,d){this.Vr(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.sN=function(a,b,c,d){oM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);nCa(this.j.get())&&this.Vr(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
    g.k.pI=function(a,b,c,d,e){this.Vr(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
    g.k.im=function(a,b,c,d){this.Vr("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.Vr=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;oM(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Yrb:d,fsb:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Aa.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.vT())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||tF("Empty PACF event type",e,f);var u=nCa(r.j.get()),
        w={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=jCa(u,e));f&&(A.layoutData=kCa(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=fI(l.trigger,l.category));b&&(A.opportunityData=lCa(u,b,c,d));u={organicPlaybackContext:{contentCpn:r.Ra.get().ge(1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=r.Ra.get().ge(1).dc;var C;u.organicPlaybackContext.isMdxPlayback=
        (C=r.Ra.get().ge(1))==null?void 0:C.isMdxPlayback;var E;if((E=r.Ra.get().ge(1))==null?0:E.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var H;if(C=(H=r.Ra.get().ge(2))==null?void 0:H.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:C};u&&(A.externalContext=u);w.adClientData=A;m&&(w.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(w.serializedAdServingData=n.serializedAdServingDataEntry);p&&(w.errorInfo=p);g.SB("adsClientStateChange",{adsClientEvent:w})}};
        q&&q>0?g.LB(g.NB(),function(){return t()},q):t()}catch(u){oM(this.Aa.get(),"html5_log_pacf_logging_errors")&&g.LB(g.NB(),function(){tF(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}};
    g.k.vT=function(){return this.Aa.get().vT()};g.x(DKa,UM);g.k=DKa.prototype;g.k.Sj=function(a,b,c){UM.prototype.Sj.call(this,a,b,c);zM(this.Aa.get())&&(c={},this.context.Np.zl("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
    g.k.Sh=function(a,b,c,d){UM.prototype.Sh.call(this,a,b,c,d);zM(this.Aa.get())&&(d={},this.context.Np.zl("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d)))};
    g.k.pI=function(a,b,c,d,e){UM.prototype.pI.call(this,a,b,c,d,e);zM(this.Aa.get())&&(c={},this.context.Np.zl("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))};
    g.k.sN=function(a,b,c,d){UM.prototype.sN.call(this,a,b,c,d);if(zM(this.Aa.get())){var e={};this.context.Np.zl("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e))}};
    g.k.im=function(a,b,c,d){UM.prototype.im.call(this,a,b,c,d);if(zM(this.Aa.get())){var e={};this.context.Np.zl("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e))}};
    g.k.Vr=function(a,b,c,d,e,f,h,l,m,n,p){if(g.sI(this.Aa.get().J.U())){var q=this.Aa.get();q=g.hI(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;UM.prototype.Vr.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};VM.prototype.clear=function(){this.j.clear()};var EKa=!1,XM,YM,ZM,$M,aN;g.x(bN,g.I);
    bN.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&this.j<16;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)FKa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(FKa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
    bN.prototype.eM=function(a){for(var b=0;b<4;b++)this.counter[b]=a[b*4]<<24|a[b*4+1]<<16|a[b*4+2]<<8|a[b*4+3];this.j=16};var GKa=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
        function b(d){return new Uint8Array(d)}
        var c=new Uint8Array([1]);return c.length===1&&c[0]===1?b:a})();
    var cN;HKa.prototype.Oh=function(a,b){b=b===void 0?1:b;this.qt+=b;this.B+=a;a/=b;for(var c=0;c<eN.length&&!(a<eN[c]);++c)this.j[c]+=b};
    HKa.prototype.toString=function(){return""};
    var eN=[20,100,500,2E3];g.k=KKa.prototype;g.k.isActive=function(){return!0};
    g.k.mK=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={r0:void 0,X0:void 0},b.hasOwnProperty(e)&&(d.r0=a.prototype[e],d.X0=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=(0,g.fC)();h=f.r0.apply(this,h);return NKa(c,h,f.X0,l)}}(d))}};
    g.k.yQ=function(a,b){if(b){var c=this,d={},e;for(e in b)d={tX:void 0,n_:void 0},b.hasOwnProperty(e)&&(d.n_=a.prototype[e],d.tX=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=this,m=(0,g.fC)(),n=f.n_.apply(l,h);return NKa(c,n,null,m,function(p){return f.tX.apply(l,[p].concat(h))})}}(d))}};
    g.k.Js=function(){return new JKa};
    g.k.Ar=function(a,b,c){c=c===void 0?1:c;b instanceof JKa&&(LKa(this,a,(0,g.fC)()-b.startTimeMs,c),b.j=!0)};
    g.k.Po=function(a,b){var c=(0,g.fC)();b=b();return NKa(this,b,a,c)};
    g.k.aY=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(c.qt===0)c=null;else{for(var d=Math.ceil(c.qt).toFixed(0)+"."+c.B.toFixed(0),e=0;e<eN.length;++e)if(c.j[e]>0)d+="."+eN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new IKa;return a};
    g.k.toString=function(){return""};g.k=OKa.prototype;g.k.isActive=function(){return!1};
    g.k.mK=function(){};
    g.k.yQ=function(){};
    g.k.Js=function(){};
    g.k.Ar=function(){};
    g.k.Po=function(a,b){return b()};
    g.k.aY=function(){return{}};
    g.k.toString=function(){return""};var T2,Hpb,Ipb,Jpb,Kpb,Lpb,U2,vV,SY,qhb,QQ;T2=new OKa;Hpb=!!+hA("html5_enable_profiler");Ipb=!!+hA("html5_onesie_enable_profiler");Jpb=!!+hA("html5_offline_encryption_enable_profiler");Kpb=!!+hA("html5_performance_impact_profiling_timer_ms");Lpb=!!+hA("html5_drm_enable_profiler");U2=Hpb||Ipb||Jpb||Kpb||Lpb?new KKa:T2;g.zX=Hpb?U2:T2;vV=Ipb?U2:T2;SY=Jpb?U2:T2;qhb=Kpb?U2:T2;QQ=Lpb?U2:T2;g.k=fN.prototype;g.k.encrypt=function(a){this.Md.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
    g.k.eM=function(a){this.Md.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};
    g.k.X9=function(a,b){return{profile:this.Md.Zp?"oals":"oalw",qt:Math.ceil(b.byteLength/16)}};
    g.k.Na=function(){return this.cipher===0};
    g.k.dispose=function(){this.Md.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};
    vV.yQ(fN,{encrypt:fN.prototype.X9});g.gN.prototype.encrypt=function(a,b){var c=this,d,e;return g.G(function(f){if(f.j==1){d=dN();if(!d)return f.return(c.j(a,b));g.Ba(f,3);return g.z(f,c.B(a,b,d),5)}if(f.j!=3)return f.return(f.B);e=g.Da(f);g.kE(e);GKa=!0;return f.return(c.j(a,b))})};
    g.gN.prototype.B=function(a,b,c){var d=this,e,f;return g.G(function(h){switch(h.j){case 1:if(d.G){h.Ia(2);break}return g.z(h,c.importKey("raw",d.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=h.B;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
    g.gN.prototype.j=function(a,b){this.C||(this.C=new bN(this.D));this.C.eM(b);return this.C.encrypt(a)};
    g.gN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
    g.x(g.hN,g.I);g.hN.prototype.encrypt=function(a,b){this.j||(this.j=new bN(this.B),g.M(this,this.j));this.j.eM(b);return this.j.encrypt(a)};
    g.hN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
    iN.prototype.encrypt=function(a,b){this.j.eM(b);return this.j.encrypt(a)};
    iN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
    iN.prototype.Na=function(){return this.j.Na()};
    iN.prototype.dispose=function(){this.j.dispose()};PKa.prototype.reset=function(){RKa(this);this.update(this.C)};
    PKa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&this.B+c>=64&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,QKa(this,this.K,0));for(;b+64<=c;b+=64)QKa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
    var jN=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
        4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var Mpb;Mpb={};g.Npb=g.AC("yt-idb-pref-storage",{Zr:(Mpb.prefs={En:1},Mpb),shared:!1,upgrade:function(a,b){b(1)&&g.mC(g.gC(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
        version:1});kN.prototype.getState=function(){return this.store.getState()};
    kN.prototype.dispatch=function(a){return this.store.dispatch(a)};
    kN.prototype.subscribe=function(a){return this.store.subscribe(a)};
    kN.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
    kN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};lN.prototype.append=function(a){if(aLa(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);bLa(this)}else this.j.push(a);this.totalLength+=a.length};
    lN.prototype.split=function(a){for(var b=new lN,c=new lN,d=g.v(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{fK:b,jn:c}};
    lN.prototype.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
    lN.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&bLa(this);this.C+this.j[this.B].length<=a&&this.B<this.j.length;)this.C+=this.j[this.B].length,this.B+=1;this.D=void 0}};var uN,sN,wN;g.bZ=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
        function b(d){return new Uint8Array(d)}
        var c=new Uint8Array([1]);return c.length===1&&c[0]===1?b:a}();
    uN=Array(1024);sN=window.TextDecoder?new TextDecoder:void 0;wN=window.TextEncoder?new TextEncoder:void 0;for(var nLa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,
        flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,
        musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,
        pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},mLa={},Opb=g.v(Object.entries(nLa)),Ppb=Opb.next();!Ppb.done;Ppb=Opb.next()){var Qpb=g.v(Ppb.value),Rpb=Qpb.next().value,Spb=Qpb.next().value,
        Tpb=Rpb,Upb=Spb;Upb&&(mLa[Upb]=Tpb)};var V2;V2={};g.Vpb=(V2.INVALID_ENCODER_VERSION="Invalid encoder version",V2.KEY_CREATION_FAILED="Failed to create encoder key",V2.UNKNOWN_DECODE_ERROR="Failed to decode PES data",V2.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",V2.WRONG_DATA_TYPE="Encoder cannot process the data type",V2);var VN=window.Mob||"en";var DPa=[3611,27686,221058,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,196088,198104,32276,195115,195114,76278,200635,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,204249,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,205717,197879,
        177565,212573,210709,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,
        93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,
        117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,160801,197995,95117,172721,150497,98930,98931,98932,
        153320,153321,43347,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,213915,218674,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,
        17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,
        50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,194770,195350,195349,194771,166382,37671,49953,220669,213774,204572,191389,204574,
        187917,191390,179556,191402,212661,191392,197826,191393,204573,36216,28237,173718,39553,192547,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,
        129089,21409,185612,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,151308,151152,130975,130976,210815,191925,167637,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,150105,150106,150107,150108,
        76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,163566,186641,147842,217932,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,
        48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,154430,209757,17736,3832,147111,55759,64031,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,
        8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var fhb={adNotify:function(a){var b=new coa,c=0;try{var d=a.adMediaTimeSec;d!==void 0&&(Vk(b,1,d),c++);var e=a.adMediaTimeMs;e!==void 0&&(Xk(b,6,e),c++);var f=a.timeToAdBreakSec;f!==void 0&&(Vk(b,2,f),c++);var h=a.clientScreenNonce;h!==void 0&&(S(b,3,h),c++);var l=a.clientPlaybackNonce;l!==void 0&&(S(b,4,l),c++);var m=a.videoAdBreakOffsetSec;m!==void 0&&(Vk(b,5,m),c++);var n=a.videoAdBreakOffsetMs;n!==void 0&&(Xk(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
        biscottiBasedDetection:function(a){var b=new bz,c=0;try{var d=a.detected;d!==void 0&&(Uk(b,1,d),c++);var e=a.source;e!==void 0&&(S(b,2,e),c++);var f=a.contentCpn;f!==void 0&&(S(b,3,f),c++);var h=a.contentCsn;h!==void 0&&(S(b,4,h),c++);var l=a.method;l!==void 0&&(Vk(b,5,l),c++);var m=a.result;m!==void 0&&(Vk(b,6,m),c++);var n=a.detectionResult;n!==void 0&&(T(b,9,Mnb[n]),c++);var p=a.detectionStates;p!==void 0&&(YN(b.f7.bind(b),p,Nnb),c++);var q=a.adCpn;q!==void 0&&(S(b,7,q),c++);var r=a.playbackType;
            r!==void 0&&(S(b,8,r),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}},
        adNotifyFilled:function(a){var b=new boa,c=0;try{var d=a.notifyCompositeType;d!==void 0&&(T(b,1,vnb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
        idbTransactionEnded:function(a){var b=new Ez,c=0;try{var d=a.objectStoreNames;d!==void 0&&(S(b,1,d),c++);var e=a.duration;e!==void 0&&(b.Hl(e),c++);var f=a.isSuccessful;f!==void 0&&(Uk(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;h!==void 0&&(Uk(b,4,h),c++);var l=a.tryCount;l!==void 0&&(Vk(b,5,l),c++);var m=a.tag;m!==void 0&&(T(b,6,cob[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
        idbUnexpectedlyClosed:function(a){var b=new fqa,c=0;try{var d=a.dbName;d!==void 0&&(S(b,1,d),c++);var e=a.dbVersion;e!==void 0&&(Vk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
        flowEvent:function(a){var b=new $pa,c=0;try{var d=a.flowNonce;d!==void 0&&(S(b,1,d),c++);var e=a.flowEventType;if(e){a:{var f=new Zpa,h=0;try{var l=e.flowEventNamespace;l!==void 0&&(T(f,1,Wnb[l]),h++);var m=e.flowEventType;m!==void 0&&(Vk(f,2,m),h++);var n=[h===Object.keys(e).length,f];break a}catch(Ra){Y(Ra);n=[!1,void 0];break a}}var p=n;p[0]&&(ik(b,Zpa,2,p[1]),c++)}var q=a.flowMetadata;if(q){a:{var r=new Ypa,t=0;try{var u=q.notaireContext;if(u){b:{var w=new vpa,A=0;try{var C=u.serverInfo;if(C){c:{var E=
            new nz,H=0;try{var L=C.id;L!==void 0&&(S(E,1,L),H++);var N=C.forceLog;N!==void 0&&(Uk(E,2,N),H++);var Q=[H===Object.keys(C).length,E];break c}catch(Ra){Y(Ra);Q=[!1,void 0];break c}}var da=Q;da[0]&&(ik(w,nz,1,da[1]),A++)}var na=u.clientInfo;if(na){c:{var qa=new upa,ha=0;try{var ta=na.timeSinceReceivedMs;ta!==void 0&&(Xk(qa,1,ta),ha++);var P=[ha===Object.keys(na).length,qa];break c}catch(Ra){Y(Ra);P=[!1,void 0];break c}}var ua=P;ua[0]&&(ik(w,upa,2,ua[1]),A++)}var y=[A===Object.keys(u).length,w];break b}catch(Ra){Y(Ra);
            y=[!1,void 0];break b}y=void 0}var Z=y;Z[0]&&(ik(r,vpa,1,Z[1]),t++)}var cb=q.offlineTransferStatusChangedContext;if(cb){b:{var La=new ypa,$a=0;try{var Ya=cb.offlineTransferStatusChanged;if(Ya){var Ha=NNa(Ya);Ha[0]&&(ik(La,qz,1,Ha[1]),$a++)}var Ta=[$a===Object.keys(cb).length,La];break b}catch(Ra){Y(Ra);Ta=[!1,void 0];break b}Ta=void 0}var ob=Ta;ob[0]&&(ik(r,ypa,2,ob[1]),t++)}var B=q.offlineOrchestrationContext;if(B){b:{var F=new pz,D=0;try{var J=B.entityType;J!==void 0&&(Vk(F,1,J),D++);var K=B.entityId;
            K!==void 0&&(S(F,7,K),D++);var aa=B.offlineOrchestrationActionType;aa!==void 0&&(T(F,6,zob[aa]),D++);var fa=B.offlineOrchestrationActionResult;fa!==void 0&&(T(F,2,yob[fa]),D++);var ia=B.offlineOrchestrationFailureReason;ia!==void 0&&(T(F,10,Aob[ia]),D++);var O=B.isRetryable;O!==void 0&&(Uk(F,3,O),D++);var ka=B.isRestored;ka!==void 0&&(Uk(F,11,ka),D++);var la=B.orchestrationAction;if(la){var za=NOa(la);za[0]&&(ik(F,oz,4,za[1]),D++)}var Sa=B.additionalOrchestrationActions;Sa&&(XN(F.j.bind(F),Sa,NOa),
                D++);var gb=B.intervalSinceEnqueuedMs;gb!==void 0&&(Xk(F,8,gb),D++);var Ab=B.executionIntervalMs;Ab!==void 0&&(Xk(F,9,Ab),D++);var pb=B.offlineModeType;pb!==void 0&&(T(F,12,ENa[pb]),D++);var Za=[D===Object.keys(B).length,F];break b}catch(Ra){Y(Ra);Za=[!1,void 0];break b}Za=void 0}var qc=Za;qc[0]&&(ik(r,pz,3,qc[1]),t++)}var $b=q.shortsCreationContext;if($b){b:{var ac=new tz,kc=0;try{var Vc=$b.shortsCreationSurfaces;Vc!==void 0&&(YN(ac.j.bind(ac),Vc,Lob),kc++);var Wb=[kc===Object.keys($b).length,ac];
            break b}catch(Ra){Y(Ra);Wb=[!1,void 0];break b}}var wc=Wb;wc[0]&&(ik(r,tz,4,wc[1]),t++)}var $c=q.mdxConnectionContext;if($c){b:{var Qc=new rpa,uc=0;try{var Tb=$c.isReconnection;Tb!==void 0&&(Uk(Qc,1,Tb),uc++);var Ub=$c.disconnectReason;Ub!==void 0&&(T(Qc,2,fob[Ub]),uc++);var yd=$c.isRetry;yd!==void 0&&(Uk(Qc,3,yd),uc++);var pd=[uc===Object.keys($c).length,Qc];break b}catch(Ra){Y(Ra);pd=[!1,void 0];break b}}var qd=pd;qd[0]&&(ik(r,rpa,5,qd[1]),t++)}var Zb=q.premiumMultiStepPurchaseContext;if(Zb){b:{var Ec=
            new Fpa,Hb=0;try{var cd=Zb.selectedOption;if(cd){c:{var zd=new Epa,Pb=0;try{var ge=cd.offerType;ge!==void 0&&(T(zd,1,bnb[ge]),Pb++);var Ud=cd.itemType;Ud!==void 0&&(T(zd,2,mO[Ud]),Pb++);var Vd=cd.itemExternalId;Vd!==void 0&&(S(zd,3,Vd),Pb++);var Ce=[Pb===Object.keys(cd).length,zd];break c}catch(Ra){Y(Ra);Ce=[!1,void 0];break c}}var De=Ce;De[0]&&(ik(Ec,Epa,1,De[1]),Hb++)}var Ld=Zb.itemType;Ld!==void 0&&(T(Ec,2,mO[Ld]),Hb++);var $e=Zb.productType;$e!==void 0&&(T(Ec,3,nO[$e]),Hb++);var Oe=Zb.landingPageVariantId;
            Oe!==void 0&&(S(Ec,4,Oe),Hb++);var Md=Zb.experimentStatus;Md!==void 0&&(T(Ec,5,hob[Md]),Hb++);var zf=Zb.themeKey;zf!==void 0&&(S(Ec,6,zf),Hb++);var Nd=Zb.signupType;Nd!==void 0&&(T(Ec,7,iob[Nd]),Hb++);var he=[Hb===Object.keys(Zb).length,Ec];break b}catch(Ra){Y(Ra);he=[!1,void 0];break b}he=void 0}var rd=he;rd[0]&&(ik(r,Fpa,6,rd[1]),t++)}var Hd=q.mdxReceiverConnectionContext;if(Hd){b:{var sd=new spa,Od=0;try{var kg=Hd.isFromAppLaunch;kg!==void 0&&(Uk(sd,1,kg),Od++);var af=Hd.dialServerType;af!==void 0&&
        (T(sd,2,eob[af]),Od++);var Pf=Hd.supportsSmoothPairing;Pf!==void 0&&(Uk(sd,3,Pf),Od++);var Wc=Hd.hasManuallyPairedRemotesOnAppStartup;Wc!==void 0&&(Uk(sd,4,Wc),Od++);var oc=Hd.mismatchedTheme;oc!==void 0&&(T(sd,5,Xmb[oc]),Od++);var Pe=Hd.mdxSenderConnectedCounter;Pe!==void 0&&(Vk(sd,6,Pe),Od++);var kh=Hd.externalRouteSource;kh!==void 0&&(T(sd,7,dob[kh]),Od++);var Zh=Hd.appReloadCount;Zh!==void 0&&(Vk(sd,8,Zh),Od++);var nh=[Od===Object.keys(Hd).length,sd];break b}catch(Ra){Y(Ra);nh=[!1,void 0];break b}}var Ki=
            nh;Ki[0]&&(ik(r,spa,7,Ki[1]),t++)}var pf=q.parentToolsOnboardingContext;if(pf){b:{var gf=new Apa,Fe=0;try{var $h=pf.triggerPoint;$h!==void 0&&(T(gf,1,nnb[$h]),Fe++);var vc=pf.kidsFlowInfo;if(vc){c:{var Fc=new zpa,Gc=0;try{var Li=vc.kidsFlowVersion;Li!==void 0&&(T(Fc,1,knb[Li]),Gc++);var Df=vc.flowLabel;Df!==void 0&&(S(Fc,2,Df),Gc++);var qg=vc.hostClientName;qg!==void 0&&(T(Fc,3,lnb[qg]),Gc++);var hf=vc.hostClientVersion;hf!==void 0&&(S(Fc,4,hf),Gc++);var Dd=vc.kidsFlowType;Dd!==void 0&&(T(Fc,5,jnb[Dd]),
            Gc++);var Tf=[Gc===Object.keys(vc).length,Fc];break c}catch(Ra){Y(Ra);Tf=[!1,void 0];break c}}var ai=Tf;ai[0]&&(ik(gf,zpa,2,ai[1]),Fe++)}var rg=pf.kidsCorpusPreferenceNew;rg!==void 0&&(T(gf,3,inb[rg]),Fe++);var Rg=pf.appChoice;Rg!==void 0&&(T(gf,4,mnb[Rg]),Fe++);var sg=pf.isKidSignedIn;sg!==void 0&&(Uk(gf,5,sg),Fe++);var Mi=pf.alreadyOnboardedYtk;Mi!==void 0&&(Uk(gf,6,Mi),Fe++);var le=pf.alreadyOnboardedSupex;le!==void 0&&(Uk(gf,7,le),Fe++);var tg=[Fe===Object.keys(pf).length,gf];break b}catch(Ra){Y(Ra);
            tg=[!1,void 0];break b}tg=void 0}var ug=tg;ug[0]&&(ik(r,Apa,8,ug[1]),t++)}var bi=q.hashtagAutoCompleteContext;if(bi){b:{var Ef=new gpa,vg=0;try{var oh=bi.suggestionSelected;oh!==void 0&&(Vk(Ef,1,oh),vg++);var Sg=[vg===Object.keys(bi).length,Ef];break b}catch(Ra){Y(Ra);Sg=[!1,void 0];break b}}var ph=Sg;ph[0]&&(ik(r,gpa,9,ph[1]),t++)}var ve=q.liveStreamingContext;if(ve){b:{var Se=new qpa,$d=0;try{var qj=ve.broadcastSource;qj!==void 0&&(T(Se,1,tnb[qj]),$d++);var jf=ve.isAutoDashboard;jf!==void 0&&(Uk(Se,
            2,jf),$d++);var Ge=ve.externalVideoId;Ge!==void 0&&(S(Se,3,Ge),$d++);var Uf=ve.broadcastConferenceType;Uf!==void 0&&(T(Se,4,rnb[Uf]),$d++);var Vf=ve.eventData;if(Vf){c:{var Tg=new ppa,Qd=0;try{var wg=Vf.webrtcHandshakeOffer;if(wg){d:{var Ff=new opa,ci=0;try{var mk=wg.localVideoSsrc;mk!==void 0&&(Wk(Ff,1,mk),ci++);var um=wg.localAudioSsrc;um!==void 0&&(Wk(Ff,2,um),ci++);var tl=wg.participantId;tl!==void 0&&(Yk(Ff,3,tl),ci++);var ul=[ci===Object.keys(wg).length,Ff];break d}catch(Ra){Y(Ra);ul=[!1,void 0];
            break d}}var nk=ul;nk[0]&&(ik(Tg,opa,1,nk[1]),Qd++)}var Ni=Vf.webrtcHandshakeAnswer;if(Ni){d:{var kf=new mpa,He=0;try{var ae=Ni.remoteVideoSsrc;ae!==void 0&&(Wk(kf,1,ae),He++);var qh=Ni.remoteAudioSsrc;qh!==void 0&&(Wk(kf,2,qh),He++);var xg=[He===Object.keys(Ni).length,kf];break d}catch(Ra){Y(Ra);xg=[!1,void 0];break d}}var vm=xg;vm[0]&&(ik(Tg,mpa,2,vm[1]),Qd++)}var yg=Vf.webrtcHandshakeError;if(yg){d:{var di=new npa,rj=0;try{var Ug=yg.description;Ug!==void 0&&(S(di,1,Ug),rj++);var rh=[rj===Object.keys(yg).length,
            di];break d}catch(Ra){Y(Ra);rh=[!1,void 0];break d}}var sj=rh;sj[0]&&(ik(Tg,npa,3,sj[1]),Qd++)}var tj=Vf.costreamStartNotification;if(tj){d:{var sh=new jpa,uj=0;try{var Oi=tj.broadcastStartTimeMs;Oi!==void 0&&(Xk(sh,1,Oi),uj++);var th=[uj===Object.keys(tj).length,sh];break d}catch(Ra){Y(Ra);th=[!1,void 0];break d}}var vj=th;vj[0]&&(ik(Tg,jpa,4,vj[1]),Qd++)}var zg=Vf.remoteParticipant;if(zg){d:{var uh=new lpa,ok=0;try{var vl=zg.videoSsrc;vl!==void 0&&(Wk(uh,1,vl),ok++);var wm=zg.audioSsrc;wm!==void 0&&
        (Wk(uh,2,wm),ok++);var ei=[ok===Object.keys(zg).length,uh];break d}catch(Ra){Y(Ra);ei=[!1,void 0];break d}}var Wf=ei;Wf[0]&&(ik(Tg,lpa,5,Wf[1]),Qd++)}var qf=Vf.webcamEventData;if(qf){d:{var Xf=new mz,Ag=0;try{var pk=qf.videoFrameRate;pk!==void 0&&(Zk(Xf,1,pk),Ag++);var wj=qf.videoAspectRatio;wj!==void 0&&(Zk(Xf,2,wj),Ag++);var wl=qf.videoHeight;wl!==void 0&&(Wk(Xf,3,wl),Ag++);var gc=qf.videoWidth;gc!==void 0&&(Wk(Xf,4,gc),Ag++);var Zq=qf.videoCaptureCursor;Zq!==void 0&&(S(Xf,5,Zq),Ag++);var qk=qf.videoCaptureSurface;
            qk!==void 0&&(S(Xf,6,qk),Ag++);var xl=qf.videoCaptureAudioEnabled;xl!==void 0&&(Uk(Xf,7,xl),Ag++);var rk=[Ag===Object.keys(qf).length,Xf];break d}catch(Ra){Y(Ra);rk=[!1,void 0];break d}}var Cn=rk;Cn[0]&&(ik(Tg,mz,6,Cn[1]),Qd++)}var fi=Vf.errorEventData;if(fi){d:{var xj=new kpa,xm=0;try{var ym=fi.liveClientErrorType;ym!==void 0&&(T(xj,1,pnb[ym]),xm++);var ct=fi.liveServerErrorType;ct!==void 0&&(T(xj,2,qnb[ct]),xm++);var $q=fi.kioskClientApiErrorType;$q!==void 0&&(T(xj,3,onb[$q]),xm++);var ar=[xm===
        Object.keys(fi).length,xj];break d}catch(Ra){Y(Ra);ar=[!1,void 0];break d}}var Dn=ar;Dn[0]&&(ik(Tg,kpa,7,Dn[1]),Qd++)}var zm=Vf.adsAutomationEventData;if(zm){d:{var sk=new ipa,yl=0;try{var tk=zm.adsAutomationSettingsType;tk!==void 0&&(T(sk,1,Ymb[tk]),yl++);var vh=zm.adsAutomationIntervalSec;vh!==void 0&&(Vk(sk,2,vh),yl++);var gi=zm.isNonConcurrent;gi!==void 0&&(Uk(sk,3,gi),yl++);var uk=[yl===Object.keys(zm).length,sk];break d}catch(Ra){Y(Ra);uk=[!1,void 0];break d}}var br=uk;br[0]&&(ik(Tg,ipa,8,br[1]),
            Qd++)}var wp=[Qd===Object.keys(Vf).length,Tg];break c}catch(Ra){Y(Ra);wp=[!1,void 0];break c}wp=void 0}var xp=wp;xp[0]&&(ik(Se,ppa,5,xp[1]),$d++)}var cr=ve.isMonetizationOn;cr!==void 0&&(Uk(Se,6,cr),$d++);var En=ve.sharedmdeEnabled;En!==void 0&&(Uk(Se,7,En),$d++);var dr=ve.isScreencast;dr!==void 0&&(Uk(Se,8,dr),$d++);var Vg=ve.broadcastLifecycleStatus;Vg!==void 0&&(T(Se,9,snb[Vg]),$d++);var me=ve.hasCreatedMobileLivestream;me!==void 0&&(Uk(Se,10,me),$d++);var Te=[$d===Object.keys(ve).length,Se];break b}catch(Ra){Y(Ra);
            Te=[!1,void 0];break b}Te=void 0}var Fn=Te;Fn[0]&&(ik(r,qpa,10,Fn[1]),t++)}var Wg=q.touAppealContext;if(Wg){b:{var hi=new zz,wh=0;try{var yp=Wg.scope;yp!==void 0&&(S(hi,1,yp),wh++);var zl=Wg.videoId;if(zl){c:{var er=new yz,Gn=0;try{var Am=zl.externalVideoId;Am!==void 0&&(S(er,1,Am),Gn++);var Hn=[Gn===Object.keys(zl).length,er];break c}catch(Ra){Y(Ra);Hn=[!1,void 0];break c}}var fr=Hn;fr[0]&&(hi.setVideoId(fr[1]),wh++)}var ii=Wg.videoThumbnailId;if(ii){c:{var yj=new Ppa,vk=0;try{var Al=ii.externalVideoId;
            Al!==void 0&&(S(yj,1,Al),vk++);var Bm=ii.thumbnailVersion;Bm!==void 0&&(Yk(yj,3,Bm),vk++);var Cm=ii.checksum;Cm!==void 0&&(Yk(yj,4,Cm),vk++);var zp=[vk===Object.keys(ii).length,yj];break c}catch(Ra){Y(Ra);zp=[!1,void 0];break c}}var Ap=zp;Ap[0]&&(jk(hi,Ppa,3,x2,Ap[1]),wh++)}var Bp=Wg.playlistId;if(Bp){c:{var In=new vz,Kc=0;try{var xh=Bp.externalPlaylistId;xh!==void 0&&(S(In,1,xh),Kc++);var Yf=[Kc===Object.keys(Bp).length,In];break c}catch(Ra){Y(Ra);Yf=[!1,void 0];break c}}var ji=Yf;ji[0]&&(jk(hi,
            vz,4,x2,ji[1]),wh++)}var yh=Wg.urlHostname;yh!==void 0&&(bk(hi,5,x2,$i(yh)),wh++);var Jn=Wg.postId;if(Jn){c:{var gr=new Opa,Bl=0;try{var Kn=Jn.externalPostId;Kn!==void 0&&(S(gr,1,Kn),Bl++);var Cl=[Bl===Object.keys(Jn).length,gr];break c}catch(Ra){Y(Ra);Cl=[!1,void 0];break c}}var Cp=Cl;Cp[0]&&(jk(hi,Opa,9,x2,Cp[1]),wh++)}var hr=Wg.encodedTouViolativeContentId;hr!==void 0&&(S(hi,6,hr),wh++);var Dp=Wg.encodedChannelTouViolativeContentId;Dp!==void 0&&(S(hi,7,Dp),wh++);var zj=Wg.trainingData;if(zj){c:{var Pi=
            new xz,wk=0;try{var Dl=zj.question;if(Dl){d:{var Ln=new Npa,Mn=0;try{var xk=Dl.questionId;xk!==void 0&&(Vk(Ln,1,xk),Mn++);var Aj=Dl.supplementaryInfoId;Aj!==void 0&&(Vk(Ln,2,Aj),Mn++);var yk=[Mn===Object.keys(Dl).length,Ln];break d}catch(Ra){Y(Ra);yk=[!1,void 0];break d}}var Ep=yk;Ep[0]&&(ik(Pi,Npa,1,Ep[1]),wk++)}var El=zj.answers;El&&(XN(Pi.j.bind(Pi),El,OOa),wk++);var ir=zj.correctAnswers;ir&&(XN(Pi.B.bind(Pi),ir,OOa),wk++);var Fl=zj.strikeId;Fl!==void 0&&(S(Pi,4,Fl),wk++);var Gl=zj.preTrainingMaterialId;
            Gl!==void 0&&(Vk(Pi,5,Gl),wk++);var Hl=[wk===Object.keys(zj).length,Pi];break c}catch(Ra){Y(Ra);Hl=[!1,void 0];break c}Hl=void 0}var Fp=Hl;Fp[0]&&(ik(hi,xz,8,Fp[1]),wh++)}var zk=[wh===Object.keys(Wg).length,hi];break b}catch(Ra){Y(Ra);zk=[!1,void 0];break b}zk=void 0}var Dm=zk;Dm[0]&&(ik(r,zz,11,Dm[1]),t++)}var Nn=q.dragAndDropContext;if(Nn){b:{var Il=new jz,On=0;try{var Pn=Nn.rootVe;if(Pn){var Qn=ZN(Pn);Qn[0]&&(ik(Il,iz,1,Qn[1]),On++)}var Rn=Nn.ve;if(Rn){var Gp=ZN(Rn);Gp[0]&&(ik(Il,iz,2,Gp[1]),On++)}var zh=
            [On===Object.keys(Nn).length,Il];break b}catch(Ra){Y(Ra);zh=[!1,void 0];break b}zh=void 0}var Hp=zh;Hp[0]&&(ik(r,jz,12,Hp[1]),t++)}var Ak=q.socialSuggestionsContext;if(Ak){b:{var Bg=new uz,Em=0;try{var Xg=Ak.socialSuggestionsType;Xg!==void 0&&(T(Bg,1,kob[Xg]),Em++);var Qi=Ak.suggestionSelected;Qi!==void 0&&(Vk(Bg,2,Qi),Em++);var ki=Ak.source;ki!==void 0&&(T(Bg,3,lob[ki]),Em++);var Bj=[Em===Object.keys(Ak).length,Bg];break b}catch(Ra){Y(Ra);Bj=[!1,void 0];break b}}var Bk=Bj;Bk[0]&&(ik(r,uz,13,Bk[1]),
            t++)}var Sn=q.featureEnablementContext;if(Sn){b:{var Jl=new kz,Ri=0;try{var Si=Sn.feature;Si!==void 0&&(T(Jl,1,bMa[Si]),Ri++);var Ck=[Ri===Object.keys(Sn).length,Jl];break b}catch(Ra){Y(Ra);Ck=[!1,void 0];break b}}var Ip=Ck;Ip[0]&&(ik(r,kz,14,Ip[1]),t++)}var Dk=q.iapContext;if(Dk){b:{var Ek=new lz,Kl=0;try{var Ll=Dk.playIapProduct;if(Ll){c:{var Ml=new hpa,Fm=0;try{var Jp=Ll.packageId;Jp!==void 0&&(S(Ml,1,Jp),Fm++);var Kp=Ll.productId;Kp!==void 0&&(S(Ml,2,Kp),Fm++);var Tn=[Fm===Object.keys(Ll).length,
            Ml];break c}catch(Ra){Y(Ra);Tn=[!1,void 0];break c}}var Lp=Tn;Lp[0]&&(jk(Ek,hpa,1,Tnb,Lp[1]),Kl++)}var Mp=Dk.source;Mp!==void 0&&(T(Ek,2,Ynb[Mp]),Kl++);var Nl=Dk.attributionId;Nl!==void 0&&(Xk(Ek,3,Nl),Kl++);var Un=Dk.externalVideoId;Un!==void 0&&(S(Ek,4,Un),Kl++);var Vn=Dk.externalChannelId;Vn!==void 0&&(S(Ek,5,Vn),Kl++);var Gm=[Kl===Object.keys(Dk).length,Ek];break b}catch(Ra){Y(Ra);Gm=[!1,void 0];break b}Gm=void 0}var jr=Gm;jr[0]&&(ik(r,lz,15,jr[1]),t++)}var Hm=q.shoppingCheckoutContext;if(Hm){b:{var Np=
            new Kpa,Op=0;try{var Pp=Hm.shoppingFlowParams;if(Pp){var Qp=ROa(Pp);Qp[0]&&(ik(Np,sz,1,Qp[1]),Op++)}var Im=Hm.shoppingCheckoutErrorReason;Im!==void 0&&(T(Np,2,job[Im]),Op++);var Ol=[Op===Object.keys(Hm).length,Np];break b}catch(Ra){Y(Ra);Ol=[!1,void 0];break b}Ol=void 0}var Wn=Ol;Wn[0]&&(ik(r,Kpa,16,Wn[1]),t++)}var Xn=q.ypcCancellationContext;if(Xn){b:{var Rp=new Tpa,Yn=0;try{var kr=Xn.itemType;kr!==void 0&&(T(Rp,1,mO[kr]),Yn++);var Sp=Xn.productType;Sp!==void 0&&(T(Rp,2,nO[Sp]),Yn++);var Zn=[Yn===
        Object.keys(Xn).length,Rp];break b}catch(Ra){Y(Ra);Zn=[!1,void 0];break b}}var lr=Zn;lr[0]&&(ik(r,Tpa,17,lr[1]),t++)}var ne=q.ypcBrowseOffersContext;if(ne){b:{var we=new Spa,Ie=0;try{var $n=ne.commerceFlowLoggingParams;if($n){var ao=WOa($n);ao[0]&&(ik(we,Bz,1,ao[1]),Ie++)}var Jm=ne.offerType;Jm!==void 0&&(T(we,2,cnb[Jm]),Ie++);var bo=ne.entityType;bo!==void 0&&(T(we,3,Pnb[bo]),Ie++);var Tp=[Ie===Object.keys(ne).length,we];break b}catch(Ra){Y(Ra);Tp=[!1,void 0];break b}Tp=void 0}var Up=Tp;Up[0]&&(ik(r,
            Spa,18,Up[1]),t++)}var Vp=q.mdxStreamTransferContext;if(Vp){b:{var li=new tpa,mi=0;try{var Cj=Vp.completedReason;Cj!==void 0&&(T(li,1,gob[Cj]),mi++);var co=[mi===Object.keys(Vp).length,li];break b}catch(Ra){Y(Ra);co=[!1,void 0];break b}}var mr=co;mr[0]&&(ik(r,tpa,19,mr[1]),t++)}var Km=q.pdgBuyFlowContext;if(Km){b:{var eo=new Dpa,fo=0;try{var go=Km.productType;go!==void 0&&(T(eo,1,nO[go]),fo++);var Fk=Km.entryPointClickedContext;if(Fk){c:{var Lm=new Bpa,Ti=0;try{var ho=Fk.superVodBuyFlowEntryPoint;
            ho!==void 0&&(bl(Lm,1,w2,Eob[ho]),Ti++);var io=Fk.superChatBuyFlowEntryPoint;io!==void 0&&(bl(Lm,2,w2,Cob[io]),Ti++);var nr=Fk.sharedPdgBuyFlowEntryPoint;nr!==void 0&&(bl(Lm,3,w2,Bob[nr]),Ti++);var or=Fk.superStickerBuyFlowEntryPoint;or!==void 0&&(bl(Lm,4,w2,Dob[or]),Ti++);var Ui=[Ti===Object.keys(Fk).length,Lm];break c}catch(Ra){Y(Ra);Ui=[!1,void 0];break c}}var Pl=Ui;Pl[0]&&(ik(eo,Bpa,2,Pl[1]),fo++)}var Dj=Km.itemSelectionPageDisplayedContext;if(Dj){c:{var pr=new Cpa,jo=0;try{var Wp=Dj.superStickerBuyFlowType;
            Wp!==void 0&&(T(pr,1,Fob[Wp]),jo++);var ko=[jo===Object.keys(Dj).length,pr];break c}catch(Ra){Y(Ra);ko=[!1,void 0];break c}}var qr=ko;qr[0]&&(ik(eo,Cpa,3,qr[1]),fo++)}var lo=[fo===Object.keys(Km).length,eo];break b}catch(Ra){Y(Ra);lo=[!1,void 0];break b}lo=void 0}var Xp=lo;Xp[0]&&(ik(r,Dpa,20,Xp[1]),t++)}var ni=q.ypcPurchaseContext;if(ni){b:{var Ql=new Xpa,Vi=0;try{var Yp=ni.commerceFlowLoggingParams;if(Yp){var Yg=WOa(Yp);Yg[0]&&(ik(Ql,Bz,1,Yg[1]),Vi++)}var Zf=ni.offerType;Zf!==void 0&&(T(Ql,2,cnb[Zf]),
            Vi++);var $f=ni.transactionType;$f!==void 0&&(T(Ql,3,qob[$f]),Vi++);var Rl=ni.paymentProcessor;Rl!==void 0&&(T(Ql,4,dnb[Rl]),Vi++);var rr=[Vi===Object.keys(ni).length,Ql];break b}catch(Ra){Y(Ra);rr=[!1,void 0];break b}rr=void 0}var Ue=rr;Ue[0]&&(ik(r,Xpa,21,Ue[1]),t++)}var Ah=q.webViewContext;if(Ah){b:{var rf=new Qpa,ag=0;try{var Sl=Ah.hostname;Sl!==void 0&&(S(rf,1,Sl),ag++);var Gk=Ah.webViewUseCase;Gk!==void 0&&(T(rf,2,Rob[Gk]),ag++);var sr=Ah.isFirstPartyHost;sr!==void 0&&(Uk(rf,5,sr),ag++);var dt=
            Ah.isLoaded;dt!==void 0&&(Uk(rf,3,dt),ag++);var et=Ah.webViewEngagementSec;et!==void 0&&(Vk(rf,4,et),ag++);var Zp=[ag===Object.keys(Ah).length,rf];break b}catch(Ra){Y(Ra);Zp=[!1,void 0];break b}}var tr=Zp;tr[0]&&(ik(r,Qpa,22,tr[1]),t++)}var Mm=q.videoSuggestionsContext;if(Mm){b:{var mo=new Az,Tl=0;try{var Ul=Mm.type;Ul!==void 0&&(T(mo,1,Zmb[Ul]),Tl++);var $p=Mm.serializedSuggestionData;$p!==void 0&&(al(mo,2,$p),Tl++);var aq=Mm.videoId;aq!==void 0&&(mo.setVideoId(aq),Tl++);var Wi=[Tl===Object.keys(Mm).length,
            mo];break b}catch(Ra){Y(Ra);Wi=[!1,void 0];break b}}var bq=Wi;bq[0]&&(ik(r,Az,23,bq[1]),t++)}var no=q.actionSheetContext;if(no){b:{var Vl=new fpa,Hk=0;try{var Wl=no.parentScreenUiType;Wl!==void 0&&(Vk(Vl,1,Wl),Hk++);var Xl=[Hk===Object.keys(no).length,Vl];break b}catch(Ra){Y(Ra);Xl=[!1,void 0];break b}}var oo=Xl;oo[0]&&(ik(r,fpa,24,oo[1]),t++)}var po=q.producerExportContext;if(po){b:{var cq=new Ipa,Yl=0;try{var Ik=po.exportDetails;if(Ik){c:{var Zl=new Hpa,Ej=0;try{var Jk=Ik.project;if(Jk){d:{var Kk=
            new rz,dq=0;try{var ur=Jk.projectId;ur!==void 0&&(S(Kk,1,ur),dq++);var ft=Jk.durationMs;ft!==void 0&&(Yk(Kk,2,ft),dq++);var qo=[dq===Object.keys(Jk).length,Kk];break d}catch(Ra){Y(Ra);qo=[!1,void 0];break d}}var ro=qo;ro[0]&&(ik(Zl,rz,1,ro[1]),Ej++)}var Nm=Ik.renderDetails;if(Nm){d:{var Xi=new Gpa,oi=0;try{var $l=Nm.sizeBytes;$l!==void 0&&(Xk(Xi,1,$l),oi++);var vr=Nm.pixelWidth;vr!==void 0&&(Vk(Xi,2,vr),oi++);var wr=Nm.pixelHeight;wr!==void 0&&(Vk(Xi,3,wr),oi++);var Yi=[oi===Object.keys(Nm).length,
            Xi];break d}catch(Ra){Y(Ra);Yi=[!1,void 0];break d}}var xr=Yi;xr[0]&&(ik(Zl,Gpa,2,xr[1]),Ej++)}var so=[Ej===Object.keys(Ik).length,Zl];break c}catch(Ra){Y(Ra);so=[!1,void 0];break c}so=void 0}var eq=so;eq[0]&&(ik(cq,Hpa,1,eq[1]),Yl++)}var iv=[Yl===Object.keys(po).length,cq];break b}catch(Ra){Y(Ra);iv=[!1,void 0];break b}iv=void 0}var fq=iv;fq[0]&&(ik(r,Ipa,25,fq[1]),t++)}var Zi=q.downloadMyVideoContext;if(Zi){b:{var Lk=new hz,am=0;try{var gt=Zi.videoId;gt!==void 0&&(Lk.setVideoId(gt),am++);var jv=
            Zi.videoSid;jv!==void 0&&(Xk(Lk,2,jv),am++);var Ux=Zi.downloadError;Ux!==void 0&&(T(Lk,3,Vnb[Ux]),am++);var kv=Zi.totalAssetSize;kv!==void 0&&(Xk(Lk,4,kv),am++);var lv=Zi.totalDownloadedPercent;lv!==void 0&&(Wk(Lk,5,lv),am++);var mv=Zi.mddDownloadErrorCode;mv!==void 0&&(Wk(Lk,6,mv),am++);var ht=[am===Object.keys(Zi).length,Lk];break b}catch(Ra){Y(Ra);ht=[!1,void 0];break b}}var Vx=ht;Vx[0]&&(ik(r,hz,26,Vx[1]),t++)}var yr=q.miniAppContext;if(yr){b:{var it=new Koa,zr=0;try{var Wx=yr.externalPostId;
            Wx!==void 0&&(S(it,1,Wx),zr++);var jt=yr.miniAppReleaseId;jt!==void 0&&(Vk(it,3,jt),zr++);var Ar=yr.postPlayNonce;Ar!==void 0&&(S(it,4,Ar),zr++);var kt=[zr===Object.keys(yr).length,it];break b}catch(Ra){Y(Ra);kt=[!1,void 0];break b}}var Xx=kt;Xx[0]&&(ik(r,Koa,27,Xx[1]),t++)}var nv=q.shoppingCartContext;if(nv){b:{var ov=new Jpa,Yx=0;try{var pv=nv.shoppingFlowParams;if(pv){var Zx=ROa(pv);Zx[0]&&(ik(ov,sz,1,Zx[1]),Yx++)}var qv=[Yx===Object.keys(nv).length,ov];break b}catch(Ra){Y(Ra);qv=[!1,void 0];break b}qv=
            void 0}var $x=qv;$x[0]&&(ik(r,Jpa,28,$x[1]),t++)}var Pa=q.sponsorshipsPurchaseContext;if(Pa){b:{var uO=new Lpa,vO=0;try{var GB=Pa.joinMethod;GB!==void 0&&(T(uO,1,enb[GB]),vO++);var HB=[vO===Object.keys(Pa).length,uO];break b}catch(Ra){Y(Ra);HB=[!1,void 0];break b}}var MG=HB;MG[0]&&(ik(r,Lpa,29,MG[1]),t++)}var IB=q.ypcCujContext;if(IB){b:{var NG=new Wpa,JB=0;try{var wO=IB.serializedYpcCujLoggingParams;wO!==void 0&&(al(NG,1,wO),JB++);var OG=IB.ypcCujLoggingClientPayload;if(OG){c:{var xO=new Vpa,yO=
            0;try{var PG=OG.ypcAcquisitionCujLoggingClientPayload;if(PG){d:{var zO=new Upa,AO=0;try{var rv=PG.ypcAcquisitionDebugLoggingParams;if(rv){e:{var nb=new Cz,zR=0;try{var Y2a=rv.transactionErrorType;Y2a!==void 0&&(T(nb,1,pob[Y2a]),zR++);var Z2a=rv.commerceErrorType;Z2a!==void 0&&(T(nb,4,oob[Z2a]),zR++);var $2a=rv.errorMessage;$2a!==void 0&&(S(nb,2,$2a),zR++);var a3a=rv.errorInfo;a3a!==void 0&&(S(nb,3,a3a),zR++);var Rra=[zR===Object.keys(rv).length,nb];break e}catch(Ra){Y(Ra);Rra=[!1,void 0];break e}}var b3a=
            Rra;b3a[0]&&(ik(zO,Cz,1,b3a[1]),AO++)}var Sra=[AO===Object.keys(PG).length,zO];break d}catch(Ra){Y(Ra);Sra=[!1,void 0];break d}Sra=void 0}var c3a=Sra;c3a[0]&&(jk(xO,Upa,1,Unb,c3a[1]),yO++)}var Tra=[yO===Object.keys(OG).length,xO];break c}catch(Ra){Y(Ra);Tra=[!1,void 0];break c}Tra=void 0}var d3a=Tra;d3a[0]&&(ik(NG,Vpa,2,d3a[1]),JB++)}var Ura=[JB===Object.keys(IB).length,NG];break b}catch(Ra){Y(Ra);Ura=[!1,void 0];break b}Ura=void 0}var e3a=Ura;e3a[0]&&(ik(r,Wpa,30,e3a[1]),t++)}var Vra=[t===Object.keys(q).length,
            r];break a}catch(Ra){Y(Ra);Vra=[!1,void 0];break a}Vra=void 0}var f3a=Vra;f3a[0]&&(ik(b,Ypa,3,f3a[1]),c++)}var g3a=a.flowType;g3a!==void 0&&(T(b,4,Xnb[g3a]),c++);var h3a=a.flowEventStatus;h3a!==void 0&&(Vk(b,5,h3a),c++);var i3a=a.csn;i3a!==void 0&&(S(b,6,i3a),c++);var j3a=a.can;j3a!==void 0&&(S(b,7,j3a),c++);var Wra=a.cuiAssociations;if(Wra){a:{var Xra=new Ex,k3a=0;try{var l3a=Wra.association;l3a&&(XN(Xra.j.bind(Xra),l3a,KOa),k3a++);var Yra=[k3a===Object.keys(Wra).length,Xra];break a}catch(Ra){Y(Ra);
            Yra=[!1,void 0];break a}}var m3a=Yra;m3a[0]&&(ik(b,Ex,8,m3a[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ra){return Y(Ra),[!1,void 0]}},
        idbQuotaExceeded:function(a){var b=new dqa,c=0;try{var d=a.deviceStorageUsageMbytes;d!==void 0&&(Xk(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;e!==void 0&&(Xk(b,2,e),c++);var f=a.isIframe;f!==void 0&&(Uk(b,3,f),c++);var h=a.isSw;h!==void 0&&(Uk(b,4,h),c++);var l=a.dbName;l!==void 0&&(S(b,5,l),c++);var m=a.objectStoreNames;m!==void 0&&(S(b,6,m),c++);var n=a.transactionCount;n!==void 0&&(Vk(b,7,n),c++);var p=a.transactionMode;p!==void 0&&(S(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),
            [!1,void 0]}},
        idbTransactionAborted:function(a){var b=new eqa,c=0;try{var d=a.objectStoreNames;d!==void 0&&(S(b,1,d),c++);var e=a.hasWindowUnloaded;e!==void 0&&(Uk(b,2,e),c++);var f=a.transactionCount;f!==void 0&&(Vk(b,3,f),c++);var h=a.transactionDuration;h!==void 0&&(Vk(b,4,h),c++);var l=a.dbDuration;l!==void 0&&(Vk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}},
        streamzIncremented:function(a){var b=new zqa,c=0;try{var d=a.serializedIncrementBatch;d!==void 0&&(al(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
        sliEventBatch:function(a){var b=new fz,c=0;try{var d=a.loggedEvents;d&&(XN(b.j.bind(b),d,zPa),c++);var e=a.unloggedEvents;e&&(XN(b.B.bind(b),e,zPa),c++);var f=a.playerClientVersion;f!==void 0&&(Yk(b,3,f),c++);var h=a.playerCanaryState;h!==void 0&&(T(b,4,Onb[h]),c++);var l=a.dimensions;if(l){a:{var m=new $oa;d=0;try{var n=l.playerClientVersion;n!==void 0&&(Yk(m,1,n),d++);var p=l.playerCanaryState;p!==void 0&&(T(m,2,Onb[p]),d++);var q=[d===Object.keys(l).length,m];break a}catch(r){Y(r);q=[!1,void 0];
            break a}}l=q;l[0]&&(ik(b,$oa,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}},
        playbackAssociated:function(a){var b=new Gz,c=0;try{var d=a.cpn;d!==void 0&&(S(b,1,d),c++);var e=a.playbackVe;if(e){var f=ZN(e);f[0]&&(ik(b,iz,2,f[1]),c++)}var h=a.csn;h!==void 0&&(S(b,3,h),c++);var l=a.queueInfo;if(l){a:{var m=new Fz;d=0;try{var n=l.enqueueingVe;if(n){var p=ZN(n);p[0]&&(ik(m,iz,1,p[1]),d++)}var q=l.enqueueingCsn;q!==void 0&&(S(m,2,q),d++);var r=l.clientEnqueueingTimeMs;r!==void 0&&(Xk(m,3,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(u){Y(u);t=[!1,void 0];break a}t=void 0}l=
            t;l[0]&&(ik(b,Fz,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(u){return Y(u),[!1,void 0]}},
        autoplayTriggered:function(a){var b=new bpa,c=0;try{var d=a.intentional;d!==void 0&&(Uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
        webPlayerApiCalled:function(a){var b=new bA,c=0;try{var d=a.callerUrl;d!==void 0&&(S(b,1,d),c++);var e=a.methodName;e!==void 0&&(S(b,2,e),c++);var f=a.origin;f!==void 0&&(S(b,3,f),c++);var h=a.playerStyle;h!==void 0&&(S(b,4,h),c++);var l=a.embeddedPlayerMode;l!==void 0&&(T(b,5,fnb[l]),c++);var m=a.errorCode;m!==void 0&&(Vk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
        embedsAdEvent:function(a){var b=new apa,c=0;try{var d=a.eventType;d!==void 0&&(T(b,1,Rnb[d]),c++);var e=a.breakType;e!==void 0&&(T(b,2,Qnb[e]),c++);var f=a.packageName;f!==void 0&&(S(b,3,f),c++);var h=a.embedUrl;h!==void 0&&(S(b,4,h),c++);var l=a.adSource;l!==void 0&&(T(b,5,Snb[l]),c++);var m=a.youtubeHost;m!==void 0&&(S(b,6,m),c++);var n=a.embeddedPlayerMode;n!==void 0&&(T(b,7,fnb[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
        embedsShouldRequestStorageAccessResult:function(a){var b=new dpa,c=0;try{var d=a.result;d!==void 0&&(Uk(b,1,d),c++);var e=a.returnsUndefined;e!==void 0&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
        embedsRequestStorageAccessState:function(a){var b=new cpa,c=0;try{var d=a.isCued;d!==void 0&&(Uk(b,1,d),c++);var e=a.isAutoplayBlocked;e!==void 0&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
        embedsRequestStorageAccessFailedState:function(a){var b=new gz,c=0;try{var d=a.state;d!==void 0&&(b.Hc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
        heartbeatActionPlayerHalted:function(a){var b=new bqa,c=0;try{var d=a.serializedServerContext;d!==void 0&&(al(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;e!==void 0&&(Uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
        heartbeatActionPlayerTransitioned:function(a){var b=new cqa,c=0;try{var d=a.reason;d!==void 0&&(T(b,1,Znb[d]),c++);var e=a.trigger;e!==void 0&&(T(b,2,$nb[e]),c++);var f=a.serializedServerContext;f!==void 0&&(al(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}},
        embedsItpWatchLaterResult:function(a){var b=new epa,c=0;try{var d=a.accepted;d!==void 0&&(Uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
        html5PlayerHealthEvent:function(a){var b=new Dz,c=0;try{var d=a.started;d!==void 0&&(Uk(b,1,d),c++);var e=a.stateAtSend;e!==void 0&&(T(b,2,nob[e]),c++);var f=a.joinLatencySecs;f!==void 0&&(Zk(b,4,f),c++);var h=a.playTimeSecs;h!==void 0&&(Zk(b,5,h),c++);var l=a.rebufferTimeSecs;l!==void 0&&(Zk(b,6,l),c++);var m=a.playerCanaryType;m!==void 0&&(T(b,7,bob[m]),c++);var n=a.isAd;n!==void 0&&(Uk(b,8,n),c++);var p=a.liveMode;p!==void 0&&(T(b,9,mob[p]),c++);var q=a.isGapless;q!==void 0&&(Uk(b,10,q),c++);var r=
            a.hasDrm;r!==void 0&&(Uk(b,11,r),c++);var t=a.seekCount;t!==void 0&&(Vk(b,12,t),c++);var u=a.networkErrorCount;u!==void 0&&(Vk(b,13,u),c++);var w=a.nonNetworkErrorCount;w!==void 0&&(Vk(b,14,w),c++);var A=a.isServerStitchedDai;A!==void 0&&(Uk(b,15,A),c++);var C=a.playerCanaryStage;C!==void 0&&(T(b,16,aob[C]),c++);var E=a.encounteredSabrFallback;E!==void 0&&(Uk(b,17,E),c++);return[c===Object.keys(a).length,b]}catch(H){return Y(H),[!1,void 0]}},
        adsClientStateChange:function(a){var b=new qoa,c=0;try{var d=a.cuepointTrigger;if(d){a:{var e=new Tx,f=0;try{var h=d.type;h!==void 0&&(T(e,1,Anb[h]),f++);var l=d.event;l!==void 0&&(T(e,2,znb[l]),f++);var m=d.cuepointId;m!==void 0&&(S(e,3,m),f++);var n=d.totalCueDurationMs;n!==void 0&&(Zk(e,4,n),f++);var p=d.playheadTimeMs;p!==void 0&&(Zk(e,5,p),f++);var q=d.cueStartTimeMs;q!==void 0&&(Zk(e,6,q),f++);var r=d.cuepointReceivedTimeMs;r!==void 0&&(Zk(e,7,r),f++);var t=d.contentCpn;t!==void 0&&(S(e,8,t),
            f++);var u=d.externalChannelId;u!==void 0&&(S(e,9,u),f++);var w=[f===Object.keys(d).length,e];break a}catch(gc){Y(gc);w=[!1,void 0];break a}}var A=w;A[0]&&(jk(b,Tx,1,v2,A[1]),c++)}var C=a.daiStateTrigger;if(C){a:{var E=new ey,H=0;try{var L=C.contentCpn;L!==void 0&&(S(E,1,L),H++);var N=C.totalCueDurationMs;N!==void 0&&(Zk(E,2,N),H++);var Q=C.filledAdsDurationMs;Q!==void 0&&(Zk(E,3,Q),H++);var da=C.cueStartChange;da!==void 0&&(T(E,4,Gnb[da]),H++);var na=C.cueDurationChange;na!==void 0&&(T(E,5,Enb[na]),
            H++);var qa=C.cueDurationChangeReason;qa!==void 0&&(T(E,6,Fnb[qa]),H++);var ha=C.errorType;ha!==void 0&&(T(E,7,Hnb[ha]),H++);var ta=C.externalChannelId;ta!==void 0&&(S(E,8,ta),H++);var P=C.adClientData;if(P){var ua=EOa(P);ua[0]&&(ik(E,Px,9,ua[1]),H++)}var y=[H===Object.keys(C).length,E];break a}catch(gc){Y(gc);y=[!1,void 0];break a}y=void 0}var Z=y;Z[0]&&(jk(b,ey,2,v2,Z[1]),c++)}var cb=a.daiAdBreakCriticalError;if(cb){a:{var La=new ay,$a=0;try{var Ya=cb.contentCpn;Ya!==void 0&&(S(La,1,Ya),$a++);var Ha=
            cb.errorType;Ha!==void 0&&(T(La,2,Hnb[Ha]),$a++);var Ta=cb.externalChannelId;Ta!==void 0&&(S(La,3,Ta),$a++);var ob=cb.msg;ob!==void 0&&(S(La,4,ob),$a++);var B=cb.cueIdentifier;B!==void 0&&(S(La,5,B),$a++);var F=[$a===Object.keys(cb).length,La];break a}catch(gc){Y(gc);F=[!1,void 0];break a}}var D=F;D[0]&&(jk(b,ay,3,v2,D[1]),c++)}var J=a.daiAdBreakWarning;if(J){a:{var K=new cy,aa=0;try{var fa=J.contentCpn;fa!==void 0&&(S(K,1,fa),aa++);var ia=J.errorType;ia!==void 0&&(T(K,2,Hnb[ia]),aa++);var O=J.externalChannelId;
            O!==void 0&&(S(K,3,O),aa++);var ka=J.msg;ka!==void 0&&(S(K,4,ka),aa++);var la=J.cueIdentifier;la!==void 0&&(S(K,5,la),aa++);var za=[aa===Object.keys(J).length,K];break a}catch(gc){Y(gc);za=[!1,void 0];break a}}var Sa=za;Sa[0]&&(jk(b,cy,4,v2,Sa[1]),c++)}var gb=a.daiAdBreakInfo;if(gb){a:{var Ab=new by,pb=0;try{var Za=gb.contentCpn;Za!==void 0&&(S(Ab,1,Za),pb++);var qc=gb.totalCueDurationMs;qc!==void 0&&(Xk(Ab,2,qc),pb++);var $b=gb.filledAdsDurationMs;$b!==void 0&&(Xk(Ab,3,$b),pb++);var ac=gb.cueStartChange;
            ac!==void 0&&(T(Ab,4,Gnb[ac]),pb++);var kc=gb.cueDurationChange;kc!==void 0&&(T(Ab,5,Enb[kc]),pb++);var Vc=gb.cueDurationChangeReason;Vc!==void 0&&(T(Ab,6,Fnb[Vc]),pb++);var Wb=gb.externalChannelId;Wb!==void 0&&(S(Ab,7,Wb),pb++);var wc=gb.cueIdentifier;wc!==void 0&&(S(Ab,8,wc),pb++);var $c=gb.infoType;$c!==void 0&&(T(Ab,9,Inb[$c]),pb++);var Qc=gb.msg;Qc!==void 0&&(S(Ab,10,Qc),pb++);var uc=gb.filledAdCount;uc!==void 0&&(Vk(Ab,11,uc),pb++);var Tb=[pb===Object.keys(gb).length,Ab];break a}catch(gc){Y(gc);
            Tb=[!1,void 0];break a}}var Ub=Tb;Ub[0]&&(jk(b,by,5,v2,Ub[1]),c++)}var yd=a.visibilityErrorDebugInfo;if(yd){a:{var pd=new poa,qd=0;try{var Zb=yd.elementName;Zb!==void 0&&(S(pd,1,Zb),qd++);var Ec=yd.contentVideoPlaybackEventId;Ec!==void 0&&(S(pd,2,Ec),qd++);var Hb=yd.errorList;Hb!==void 0&&(S(pd,3,Hb),qd++);var cd=yd.htmlDump;cd!==void 0&&(S(pd,4,cd),qd++);var zd=[qd===Object.keys(yd).length,pd];break a}catch(gc){Y(gc);zd=[!1,void 0];break a}}var Pb=zd;Pb[0]&&(jk(b,poa,6,v2,Pb[1]),c++)}var ge=a.playbackTimelineAdBreakStateTrigger;
            if(ge){a:{var Ud=new noa,Vd=0;try{var Ce=ge.cueIdentifier;Ce!==void 0&&(S(Ud,1,Ce),Vd++);var De=ge.timestampUnixEpochSec;De!==void 0&&(Xk(Ud,2,De),Vd++);var Ld=ge.adRequestState;Ld!==void 0&&(T(Ud,3,Bnb[Ld]),Vd++);var $e=ge.segmentState;$e!==void 0&&(T(Ud,4,Cnb[$e]),Vd++);var Oe=ge.timestampUnixEpochMs;Oe!==void 0&&(Xk(Ud,5,Oe),Vd++);var Md=[Vd===Object.keys(ge).length,Ud];break a}catch(gc){Y(gc);Md=[!1,void 0];break a}}var zf=Md;zf[0]&&(jk(b,noa,7,v2,zf[1]),c++)}var Nd=a.extraLongAdBreakDebugInfo;
            if(Nd){a:{var he=new moa,rd=0;try{var Hd=Nd.contentVideoPlaybackEventId;Hd!==void 0&&(S(he,1,Hd),rd++);var sd=Nd.adPlacementKindCuepointInitiatedCueRange;if(sd){var Od=LOa(sd);Od[0]&&(ik(he,gy,2,Od[1]),rd++)}var kg=Nd.adPlacementConfigImpliedCueRange;if(kg){var af=LOa(kg);af[0]&&(ik(he,gy,3,af[1]),rd++)}var Pf=Nd.adPlacementKindMillisecondsInitiatedCueRange;if(Pf){var Wc=LOa(Pf);Wc[0]&&(ik(he,gy,4,Wc[1]),rd++)}var oc=Nd.cueIdentifier;oc!==void 0&&(S(he,5,oc),rd++);var Pe=[rd===Object.keys(Nd).length,
                he];break a}catch(gc){Y(gc);Pe=[!1,void 0];break a}Pe=void 0}var kh=Pe;kh[0]&&(jk(b,moa,8,v2,kh[1]),c++)}var Zh=a.comparePyvAdTagInfo;if(Zh){a:{var nh=new loa,Ki=0;try{var pf=Zh.pyvAdTagUrlFromPlayer;pf!==void 0&&(S(nh,1,pf),Ki++);var gf=Zh.pyvAdTagUrlFromWatchNext;gf!==void 0&&(S(nh,2,gf),Ki++);var Fe=[Ki===Object.keys(Zh).length,nh];break a}catch(gc){Y(gc);Fe=[!1,void 0];break a}}var $h=Fe;$h[0]&&(jk(b,loa,9,v2,$h[1]),c++)}var vc=a.driftRecoveryInfo;if(vc){a:{var Fc=new fy,Gc=0;try{var Li=vc.contentCpn;
                Li!==void 0&&(S(Fc,1,Li),Gc++);var Df=vc.cueIdentifier;Df!==void 0&&(S(Fc,2,Df),Gc++);var qg=vc.driftRecoveryMs;qg!==void 0&&(Xk(Fc,3,qg),Gc++);var hf=vc.breakDurationMs;hf!==void 0&&(Xk(Fc,4,hf),Gc++);var Dd=vc.driftFromHeadMs;Dd!==void 0&&(Xk(Fc,5,Dd),Gc++);var Tf=vc.appliedDriftRecoveryMs;Tf!==void 0&&(Xk(Fc,6,Tf),Gc++);var ai=vc.destinationMs;ai!==void 0&&(Xk(Fc,7,ai),Gc++);var rg=vc.adClientData;if(rg){var Rg=EOa(rg);Rg[0]&&(ik(Fc,Px,8,Rg[1]),Gc++)}var sg=[Gc===Object.keys(vc).length,Fc];break a}catch(gc){Y(gc);
                sg=[!1,void 0];break a}sg=void 0}var Mi=sg;Mi[0]&&(jk(b,fy,10,v2,Mi[1]),c++)}var le=a.adsClientEvent;if(le){a:{var tg=new koa,ug=0;try{var bi=le.eventType;bi!==void 0&&(T(tg,1,ynb[bi]),ug++);var Ef=le.adClientData;if(Ef){var vg=EOa(Ef);vg[0]&&(ik(tg,Px,3,vg[1]),ug++)}var oh=le.serializedAdServingData;oh!==void 0&&(al(tg,4,oh),ug++);var Sg=le.eventOrder;Sg!==void 0&&(Vk(tg,5,Sg),ug++);var ph=le.serializedSlotAdServingData;ph!==void 0&&(al(tg,6,ph),ug++);var ve=le.errorInfo;if(ve){b:{var Se=new Sx,
                $d=0;try{var qj=ve.errorType;qj!==void 0&&(T(Se,1,xnb[qj]),$d++);var jf=ve.errorMessage;jf!==void 0&&(T(Se,2,wnb[jf]),$d++);var Ge=[$d===Object.keys(ve).length,Se];break b}catch(gc){Y(gc);Ge=[!1,void 0];break b}}var Uf=Ge;Uf[0]&&(ik(tg,Sx,7,Uf[1]),ug++)}var Vf=[ug===Object.keys(le).length,tg];break a}catch(gc){Y(gc);Vf=[!1,void 0];break a}Vf=void 0}var Tg=Vf;Tg[0]&&(jk(b,koa,11,v2,Tg[1]),c++)}var Qd=a.daiAdStateTracking;if(Qd){a:{var wg=new dy,Ff=0;try{var ci=Qd.eventType;ci!==void 0&&(T(wg,1,Dnb[ci]),
                Ff++);var mk=Qd.contentCpn;mk!==void 0&&(S(wg,2,mk),Ff++);var um=Qd.externalChannelId;um!==void 0&&(S(wg,3,um),Ff++);var tl=Qd.adCpn;tl!==void 0&&(S(wg,4,tl),Ff++);var ul=Qd.adCount;ul!==void 0&&(Xk(wg,5,ul),Ff++);var nk=Qd.msg;nk!==void 0&&(S(wg,6,nk),Ff++);var Ni=[Ff===Object.keys(Qd).length,wg];break a}catch(gc){Y(gc);Ni=[!1,void 0];break a}}var kf=Ni;kf[0]&&(jk(b,dy,12,v2,kf[1]),c++)}var He=a.adTrimmingInfo;if(He){a:{var ae=new Qx,qh=0;try{var xg=He.contentCpn;xg!==void 0&&(S(ae,1,xg),qh++);var vm=
                He.cueIdentifier;vm!==void 0&&(S(ae,2,vm),qh++);var yg=He.adMediaInfo;yg&&(XN(ae.j.bind(ae),yg,MOa),qh++);var di=[qh===Object.keys(He).length,ae];break a}catch(gc){Y(gc);di=[!1,void 0];break a}}var rj=di;rj[0]&&(jk(b,Qx,13,v2,rj[1]),c++)}var Ug=a.adsAttributionEvent;if(Ug){a:{var rh=new Rx,sj=0;try{var tj=Ug.errorCode;tj!==void 0&&(T(rh,1,Jnb[tj]),sj++);var sh=Ug.attributionStep;sh!==void 0&&(T(rh,2,Knb[sh]),sj++);var uj=Ug.innerErrorDomain;uj!==void 0&&(S(rh,3,uj),sj++);var Oi=Ug.innerErrorCode;
                Oi!==void 0&&(Xk(rh,4,Oi),sj++);var th=[sj===Object.keys(Ug).length,rh];break a}catch(gc){Y(gc);th=[!1,void 0];break a}}var vj=th;vj[0]&&(jk(b,Rx,14,v2,vj[1]),c++)}var zg=a.playerDebugData;if(zg){a:{var uh=new hy,ok=0;try{var vl=zg.pmlSignal;vl!==void 0&&(Uk(uh,1,vl),ok++);var wm=zg.contentCpn;wm!==void 0&&(S(uh,2,wm),ok++);var ei=[ok===Object.keys(zg).length,uh];break a}catch(gc){Y(gc);ei=[!1,void 0];break a}}var Wf=ei;Wf[0]&&(jk(b,hy,15,v2,Wf[1]),c++)}var qf=a.sourceRegistrationEvent;if(qf){a:{var Xf=
                new ooa,Ag=0;try{var pk=qf.eventType;pk!==void 0&&(T(Xf,1,Lnb[pk]),Ag++);var wj=[Ag===Object.keys(qf).length,Xf];break a}catch(gc){Y(gc);wj=[!1,void 0];break a}}var wl=wj;wl[0]&&(jk(b,ooa,16,v2,wl[1]),c++)}return[c===Object.keys(a).length,b]}catch(gc){return Y(gc),[!1,void 0]}},
        offlineTransferStatusChanged:NNa,offlineStateSnapshot:function(a){var b=new aA,c=0;try{var d=a.offlineVideos;d&&(XN(b.B.bind(b),d,pOa),c++);var e=a.offlinePlaylists;e&&(XN(b.j.bind(b),e,rOa),c++);var f=a.freeDiskSpaceBytes;f!==void 0&&(Xk(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;h!==void 0&&(Xk(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;l!==void 0&&(Xk(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;m!==void 0&&(Xk(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;n!==void 0&&(Xk(b,7,n),c++);var p=
            a.isBatteryCharging;p!==void 0&&(Uk(b,8,p),c++);var q=a.detailedNetworkType;q!==void 0&&(T(b,9,iO[q]),c++);var r=a.batteryLevelPercentage;r!==void 0&&(Vk(b,10,r),c++);var t=a.isPostMigrationState;t!==void 0&&(Uk(b,11,t),c++);var u=a.offlineCacheVerificationFailure;if(u){a:{var w=new Vz;d=0;try{var A=u.numUncachedVideos;A!==void 0&&(Wk(w,1,A),d++);var C=u.numTotalCompletedVideos;C!==void 0&&(Wk(w,2,C),d++);var E=u.uncachedVideos;E&&(XN(w.j.bind(w),E,uOa),d++);var H=[d===Object.keys(u).length,w];break a}catch(P){Y(P);
            H=[!1,void 0];break a}}u=H;u[0]&&(ik(b,Vz,12,u[1]),c++)}var L=a.additionalOfflineClientState;if(L){a:{var N=new rqa;u=0;try{var Q=L.mainAppAdditionalOfflineClientState;if(Q){b:{var da=new Xz;H=0;try{var na=Q.downloadRecsVideos;na&&(XN(da.j.bind(da),na,vOa),H++);var qa=Q.smartDownloadVideos;qa&&(XN(da.B.bind(da),qa,wOa),H++);var ha=[H===Object.keys(Q).length,da];break b}catch(P){Y(P);ha=[!1,void 0];break b}}Q=ha;Q[0]&&(ik(N,Xz,1,Q[1]),u++)}var ta=[u===Object.keys(L).length,N];break a}catch(P){Y(P);
            ta=[!1,void 0];break a}ta=void 0}L=ta;L[0]&&(ik(b,rqa,13,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(P){return Y(P),[!1,void 0]}}},ghb={adNotify:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;
            jk(d,coa,184,cE,a);c?aE("adNotify",d,c,b):bE("adNotify",d,b)},
        biscottiBasedDetection:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,bz,439,cE,a);c?aE("biscottiBasedDetection",d,c,b):bE("biscottiBasedDetection",d,b)},
        adNotifyFilled:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,boa,300,cE,a);c?aE("adNotifyFilled",d,c,b):bE("adNotifyFilled",d,b)},
        idbTransactionEnded:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Ez,352,cE,a);c?aE("idbTransactionEnded",d,c,b):bE("idbTransactionEnded",d,b)},
        idbUnexpectedlyClosed:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,fqa,348,cE,a);c?aE("idbUnexpectedlyClosed",d,c,b):bE("idbUnexpectedlyClosed",d,b)},
        flowEvent:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,$pa,304,cE,a);c?aE("flowEvent",d,c,b):bE("flowEvent",d,b)},
        idbQuotaExceeded:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,dqa,351,cE,a);c?aE("idbQuotaExceeded",d,c,b):bE("idbQuotaExceeded",d,b)},
        idbTransactionAborted:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,eqa,353,cE,a);c?aE("idbTransactionAborted",d,c,b):bE("idbTransactionAborted",d,b)},
        streamzIncremented:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,zqa,126,cE,a);c?aE("streamzIncremented",d,c,b):bE("streamzIncremented",d,b)},
        sliEventBatch:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,fz,344,cE,a);c?aE("sliEventBatch",d,c,b):bE("sliEventBatch",d,b)},
        playbackAssociated:exa,autoplayTriggered:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,bpa,209,cE,a);c?aE("autoplayTriggered",d,c,b):bE("autoplayTriggered",d,b)},
        webPlayerApiCalled:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,bA,76,cE,a);c?aE("webPlayerApiCalled",d,c,b):bE("webPlayerApiCalled",d,b)},
        embedsAdEvent:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,apa,327,cE,a);c?aE("embedsAdEvent",d,c,b):bE("embedsAdEvent",d,b)},
        embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,dpa,251,cE,a);c?aE("embedsShouldRequestStorageAccessResult",d,c,b):bE("embedsShouldRequestStorageAccessResult",d,b)},
        embedsRequestStorageAccessState:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,cpa,256,cE,a);c?aE("embedsRequestStorageAccessState",d,c,b):bE("embedsRequestStorageAccessState",d,b)},
        embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,gz,257,cE,a);c?aE("embedsRequestStorageAccessFailedState",d,c,b):bE("embedsRequestStorageAccessFailedState",d,b)},
        heartbeatActionPlayerHalted:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,bqa,332,cE,a);c?aE("heartbeatActionPlayerHalted",d,c,b):bE("heartbeatActionPlayerHalted",d,b)},
        heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,cqa,330,cE,a);c?aE("heartbeatActionPlayerTransitioned",d,c,b):bE("heartbeatActionPlayerTransitioned",d,b)},
        embedsItpWatchLaterResult:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,epa,266,cE,a);c?aE("embedsItpWatchLaterResult",d,c,b):bE("embedsItpWatchLaterResult",d,b)},
        html5PlayerHealthEvent:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,Dz,293,cE,a);c?aE("html5PlayerHealthEvent",d,c,b):bE("html5PlayerHealthEvent",d,b)},
        adsClientStateChange:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,qoa,197,cE,a);c?aE("adsClientStateChange",d,c,b):bE("adsClientStateChange",d,b)},
        offlineTransferStatusChanged:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,qz,2,cE,a);c?aE("offlineTransferStatusChanged",d,c,b):bE("offlineTransferStatusChanged",d,b)},
        offlineStateSnapshot:function(a,b,c){var d=g.CA("jspb_sparse_encoded_pivot")?new cA([{}]):new cA;jk(d,aA,22,cE,a);c?aE("offlineStateSnapshot",d,c,b):bE("offlineStateSnapshot",d,b)}};oO.prototype.zy=function(a){this.client=a};
    oO.prototype.j=function(){this.clear();this.csn=g.gE()};
    oO.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};qO.prototype.zy=function(a){g.kA(pO().zy).bind(pO())(a)};
    qO.prototype.clear=function(){g.kA(pO().clear).bind(pO())()};g.k=rO.prototype;g.k.zy=function(a){this.client=a};
    g.k.yX=function(a,b){var c=this;b=b===void 0?{}:b;g.kA(function(){var d,e,f,h=((d=g.V(a==null?void 0:a.commandMetadata,g.u2))==null?void 0:d.rootVe)||((e=g.V(a==null?void 0:a.commandMetadata,unb))==null?void 0:(f=e.screenVisualElement)==null?void 0:f.uiType);if(h){d=g.V(a==null?void 0:a.commandMetadata,Iob);if(d==null?0:d.parentTrackingParams){var l=g.eE(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.eE(a.clickTrackingParams));
        a:{d=g.V(a,g.AS);e=g.V(a,xob);if(d){if(e=sLa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=sLa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.CA("expectation_logging")){var n;b.loggingExpectations=((n=g.V(a==null?void 0:a.commandMetadata,unb))==null?void 0:n.loggingExpectations)||void 0}tO(c,h,l,b)}else g.kE(new g.CB("Error: Trying to create a new screen without a rootVeType",a))})()};
    g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=c===void 0?0:c;a?(c=g.gE(c===void 0?0:c))?(hya(this.client,c,g.eE(a),b),b=!0):b=!1:b=!1;return b};
    g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.eE(a),b,c===void 0?0:c)};
    g.k.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;c===0&&this.B.has(c)?this.Z.push([a,b]):IPa(this,a,b,c)};DO.prototype.fetch=function(a,b,c){var d=this,e=LPa(a,b,c);return new Promise(function(f,h){function l(){if(c==null?0:c.yr)try{var n=d.handleResponse(a,e.status,e.response,c);f(n)}catch(p){h(p)}else f(d.handleResponse(a,e.status,e.response,c))}
        e.onerror=l;e.onload=l;var m;e.send((m=b.body)!=null?m:null)})};
    DO.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.kE(new g.CB("JSON parsing failed after XHR fetch",a,b,c));if((d==null?0:d.yr)&&c)throw new g.WG(1,"JSON parsing failed after XHR fetch");e={}}b!==200&&(g.kE(new g.CB("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};EO.getInstance=function(){var a=g.Wa("ytglobal.storage_");a||(a=new EO,g.Va("ytglobal.storage_",a));return a};
    EO.prototype.estimate=function(){var a,b,c;return g.G(function(d){a=navigator;return((b=a.storage)==null?0:b.estimate)?d.return(a.storage.estimate()):((c=a.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?d.return(MPa()):d.return()})};
    g.Va("ytglobal.storageClass_",EO);Ksa.prototype.wk=function(a){this.handleError(a)};
    Ksa.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.CA("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.CA("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":OPa(this,b);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=.1&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=
        Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var W2={},EWa=g.AC("yt-player-local-media",{Zr:(W2.index={En:2},W2.media={En:2},W2.captions={En:5},W2),shared:!1,upgrade:function(a,b){b(2)&&(g.gC(a,"index"),g.gC(a,"media"));b(5)&&g.gC(a,"captions");b(6)&&(hC(a,"metadata"),hC(a,"playerdata"))},
        version:5});var Wpb={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},X2;a:{var Y2=g.nc();Y2=Y2.toLowerCase();if(g.hc(Y2,"android")){var Xpb=Y2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Xpb){var Ypb=parseFloat(Xpb[1]);if(Ypb<100){X2=Ypb;break a}}var Zpb=Y2.match("("+Object.keys(Wpb).join("|")+")");X2=Zpb?Wpb[Zpb[0]]:0}else X2=void 0}var nR=X2,wVa=nR>=0;var meb=window;var PPa=Kd(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var RPa;g.FO=new bH;RPa=0;var WPa={ru:function(a){a.reverse()},
        XG:function(a,b){a.splice(0,b)},
        gk:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var lgb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var SQ=bQa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.wC?!0:!1;var tVa={Ska:"adunit",bya:"detailpage",Nya:"editpage",Vya:"embedded",kPa:"leanback",T3a:"previewpage",d5a:"profilepage",oW:"unplugged",c3a:"playlistoverview",mbb:"sponsorshipsoffer",N8a:"shortspage",gIa:"handlesclaiming",RJa:"immersivelivepage",uwa:"creatormusic",SJa:"immersivelivepreviewpage",Dga:"admintoolyurt"};var rRa={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},sRa={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"},reb={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var aXa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.LO.prototype.getLanguageInfo=function(){return this.hc};
    g.LO.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags};
    g.LO.prototype.toString=function(){return this.hc.name};
    g.LO.prototype.getLanguageInfo=g.LO.prototype.getLanguageInfo;MO.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
    MO.prototype.compose=function(a){if(a.C&&PO(a))return oS;if(a.C||PO(this))return a;if(this.C||PO(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);var d=0;NO&&(d=this.tb!==0&&a.tb!==0?Math.min(this.tb,a.tb):this.tb===0?a.tb:this.tb);return NO&&b===this.B&&c===this.j&&d===this.tb||!NO&&b===this.B&&c===this.j?this:NO?new MO(b,c,!1,c===this.j&&d===this.tb?this.reason:a.reason,d):new MO(b,c,!1,c===this.j?this.reason:a.reason)};
    MO.prototype.D=function(a){return!a.video||NO&&this.tb!==0&&this.tb<a.tb?!1:vRa(this,a.video.quality)};
    var $pb=g.OO("auto","hd1080",!1,"l"),xdb=g.OO("auto","large",!1,"l"),oS=g.OO("auto","auto",!1,"p"),NO=!1;TO.prototype.Nt=function(a){a=a||oS;for(var b=g.Pt(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
        d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
    TO.prototype.KE=function(a){a=a||oS;return g.Pt(this.videoInfos,function(b){return a.D(b)})};
    TO.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var ORa=new Set(["356"]);g.x(wRa,g.I);wRa.prototype.xa=function(){g.I.prototype.xa.call(this)};g.cP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
    g.cP.prototype.get=function(a){dP(this);return this.j[a]||null};
    g.cP.prototype.Ce=function(){this.url||(this.url=VRa(this));return this.url};
    g.cP.prototype.clone=function(){var a=new g.cP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.jd(this.j);a.url=this.url;return a};
    var URa=[Sma];g.k=g.jP.prototype;g.k.tN=function(a){this.segments.push(a)};
    g.k.Zn=function(a){return!!this.On(a)};
    g.k.getDuration=function(a){return(a=this.On(a))?a.duration:0};
    g.k.iY=function(a){return this.getDuration(a)};
    g.k.Qn=function(){return this.segments.length?this.segments[0].Pa:-1};
    g.k.Ze=function(a){return(a=this.On(a))?a.ingestionTime:NaN};
    g.k.Bd=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
    g.k.yF=function(a){return this.Bd()===a&&!this.B&&a>=0};
    g.k.Qt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
    g.k.Cd=function(){return this.segments[0].startTime};
    g.k.nA=function(){return this.segments.length};
    g.k.Fm=function(){return 0};
    g.k.Hi=function(a){return(a=this.bA(a))?a.Pa:-1};
    g.k.OJ=function(a){return(a=this.On(a))?a.sourceURL:""};
    g.k.getStartTime=function(a){return(a=this.On(a))?a.startTime:0};
    g.k.BJ=function(a){return this.getStartTime(a)+this.getDuration(a)};
    g.k.QJ=ba(2);g.k.isLoaded=function(){return this.segments.length>0};
    g.k.On=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Qb(this.segments,new iP(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
        return this.j=a>=0?this.segments[a]:null};
    g.k.bA=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Qb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
        return this.j=a>=0?this.segments[a]:this.segments[Math.max(0,-a-2)]};
    g.k.append=function(a){if(a.length)if(a=g.Kb(a),this.segments.length){var b=this.segments.length?g.zb(this.segments).endTime:0,c=a[0].Pa-this.Bd();c>1&&taa(this.segments);for(c=c>0?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
    g.k.pY=function(){return 0};ZRa.prototype.skip=function(a){this.j+=a};var Z2={},aqb=(Z2.predictStart="predictStart",Z2.start="start",Z2["continue"]="continue",Z2.stop="stop",Z2),cSa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};sP.prototype.jF=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
    sP.prototype.toString=function(){for(var a="",b=g.v(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};CP.prototype.uo=function(){var a=this.pos;this.pos=0;var b=!1;try{GP(this,440786851)&&(this.pos=0,GP(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.kE(c);else throw c;}this.pos=a;return b};PP.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
    PP.prototype.get=function(a){return this.j[a]||this.base.get(a)};
    PP.prototype.Ce=function(){this.url||(this.url=BSa(this));return this.url};RP.prototype.Rj=function(a,b){if(this.N)return!0;if(fP(this.j))return!1;var c=QP(b,eP(this.j));if(c.timedOut<1&&c.j<1)return!1;c=c.timedOut+c.j;a=GSa(this,a);b=QP(b,eP(a));return b.timedOut+b.j+0<c};
    RP.prototype.LJ=function(a){return this.C.get(a)};
    RP.prototype.rl=function(a,b){a.base===this.j&&(this.j=CSa(a,b));a.base===this.D&&(this.D=CSa(a,b))};SP.prototype.jg=function(){return!!this.j&&this.index.isLoaded()};
    SP.prototype.OA=function(){return!1};
    SP.prototype.JV=function(a){return[a]};
    SP.prototype.ZB=function(a){return[a]};TP.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};XP.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
    XP.prototype.Ag=function(){return!!this.j.info.video};
    XP.prototype.Vc=function(){var a=bQ(this),b="";g.Tc(a,function(c,d){b+=d+"_"+c+"_"});
        return b.slice(0,-1)};cQ.prototype.eA=function(){return this.j?this.j.Ce():""};
    cQ.prototype.aq=function(){return!!(this.j||this.D&&this.D.Zm)};
    cQ.prototype.Ip=function(){return ZP(this.jb[0])};
    cQ.prototype.rl=function(a,b){this.resource.rl(a,b);if(this.j){this.j=CSa(a,b);b=g.v(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};g.x(fQ,SP);g.k=fQ.prototype;g.k.Nm=function(){return!1};
    g.k.mx=function(){return!0};
    g.k.JA=function(){return!1};
    g.k.OA=function(){return!this.G};
    g.k.Qw=function(){return new cQ([new XP(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
    g.k.ez=function(){return null};
    g.k.tD=function(a){this.Ws(a);return this.mx()&&a.B&&!a.Te?new cQ([new XP(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.Sb+a.B,NaN,!0)],this.index.OJ(a.Pa)):this.Xs(QSa(a),!1)};
    g.k.Hr=function(a,b){b=b===void 0?!1:b;a=this.index.Hi(a);b&&(a=Math.min(this.index.Bd(),a+1));return this.Xs(a,!0)};
    g.k.YP=function(a){zTa(a)};
    g.k.Ws=function(a){return a.B===0?!0:this.index.Bd()>a.Pa&&this.index.Qn()<=a.Pa+1};
    g.k.update=function(a,b,c){this.index.append(a);YRa(this.index,c);a=this.index;a.B=b;a.C="update"};
    g.k.jg=function(){return this.OA()?!0:SP.prototype.jg.call(this)};
    g.k.Xs=function(a,b){var c=this.index.OJ(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.tb>0?this.info.tb*e:1E3;return new cQ([new XP(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
    g.k.GP=function(){return this.OA()?0:this.initRange.length};
    g.k.qS=function(){return!1};iQ.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new iQ,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+gQ(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+gQ(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Ch:0,m=Date.parse(eTa(gQ(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=gQ(a,"media"));a=b?h-b.Pa:1;c.K=a>0?0:-a+1;a=g.v(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
        0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new cTa(h,l,n,m+p,f);c.j.push(t);var u=d;var w=e,A=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var C=u.getAttribute("yt:cuepointDuration");if(t&&C){t=Number(t);A=-t/w+A;w=Number(C)/w;C=u.getAttribute("yt:cuepointContext")||null;var E=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new qP(A,w,C,E,aqb[u]||"unknown",t)}else u=null;u&&c.C.push(u);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
    (c.B=g.zb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Lb(this.j,c.j);g.Lb(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())};
    iQ.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.x(nTa,g.jP);g.k=nTa.prototype;g.k.Zn=function(a,b){a=jQ(this,a);return a>=0&&(b||!this.segments[a].pending)};
    g.k.Qn=function(){return this.Fn?this.segments.length?this.bA(this.Cd()).Pa:-1:g.jP.prototype.Qn.call(this)};
    g.k.Cd=function(){if(this.je)return 0;if(!this.Fn)return g.jP.prototype.Cd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.zb(this.segments).endTime-this.vr,0);return this.cf>0&&this.bA(a).Pa<this.cf?this.On(this.cf).startTime:a};
    g.k.Qt=function(){if(!this.segments.length)return g.jP.prototype.Qt.call(this);var a=this.Bd();if(!this.Fn||a<=this.segments[this.segments.length-1].Pa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new iP(a,Math.max(0,b.startTime-(b.Pa-a)*this.Pj),this.Pj,0,"sq/"+a,void 0,void 0,!0)}return this.je?Math.min(this.vr,a.endTime):a.endTime};
    g.k.nA=function(){return this.Fn?this.segments.length?this.Bd()-this.Qn()+1:0:g.jP.prototype.nA.call(this)};
    g.k.Bd=function(){var a=Math.min(this.Ii,Math.max(g.jP.prototype.Bd.call(this),this.Wp)),b=this.vr*1E3;b=this.Nr>0&&this.Nr<b;this.je&&this.vr>0&&this.Wp>0&&!b&&(b=this.bA(this.vr))&&(a=Math.min(b.Pa-1,a));return a};
    g.k.Mw=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
    g.k.tN=function(a){var b=jQ(this,a.Pa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.eB&&a.Pa%(300/this.Pj)===0){var c=this.segments[0].Pa,d=Math.floor(this.eB/this.Pj);a=a.Pa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}};
    g.k.EJ=function(){return this.Wp};
    g.k.yF=function(a){return mTa?!this.B&&a>=0&&this.Bd()<=a:g.jP.prototype.yF.call(this,a)};
    g.k.bA=function(a){if(!this.Fn)return g.jP.prototype.bA.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Pa-Math.ceil((this.segments[0].startTime-a)/this.Pj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Pj+1);else{b=Rb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
        if(b>=0)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.On(b)};
    g.k.On=function(a){if(!this.Fn)return g.jP.prototype.On.call(this,a);if(!this.segments.length)return null;var b=jQ(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.Pj;if(c===0)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 iP(a,d,b,0,"sq/"+a,void 0,void 0,
        !0)};
    var mTa=!1;g.x(kQ,fQ);g.k=kQ.prototype;g.k.JA=function(){return!0};
    g.k.jg=function(){return!0};
    g.k.Ws=function(a){return this.mx()&&a.B&&!a.Te||!a.j.index.yF(a.Pa)};
    g.k.Qw=function(){};
    g.k.Hr=function(a,b){return typeof a!=="number"||isFinite(a)?fQ.prototype.Hr.call(this,a,b===void 0?!1:b):new cQ([new XP(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Oj,void 0,this.Oj*this.info.tb)],"")};
    g.k.Xs=function(a,b){var c=c===void 0?!1:c;if(this.index.Zn(a))return fQ.prototype.Xs.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Oj*this.info.tb),f=this.Oj;b&&(f=e=0);return new cQ([new XP(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.x(lQ,SP);g.k=lQ.prototype;g.k.Nm=function(){return!1};
    g.k.mx=function(){return!1};
    g.k.JA=function(){return!1};
    g.k.Qw=function(){return new cQ([new XP(1,this,void 0,"otfInit")],this.G)};
    g.k.ez=function(){return null};
    g.k.tD=function(a){this.Ws(a);return oTa(this,QSa(a),!1)};
    g.k.Hr=function(a,b){b=b===void 0?!1:b;a=this.index.Hi(a);b&&(a=Math.min(this.index.Bd(),a+1));return oTa(this,a,!0)};
    g.k.YP=function(a){a.info.type===1&&(this.j||(this.j=pN(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&pTa(this,a.B))};
    g.k.Ws=function(a){return a.B===0?!0:this.index.Bd()>a.Pa&&this.index.Qn()<=a.Pa+1};
    g.k.GP=function(){return 0};
    g.k.qS=function(){return!1};g.k=g.ATa.prototype;g.k.Zn=function(a){return a<=this.Bd()};
    g.k.Fm=function(a){return this.offsets[a]};
    g.k.getStartTime=function(a){return this.rh[a]/this.j};
    g.k.BJ=function(a){return this.getStartTime(a)+this.getDuration(a)};
    g.k.QJ=ba(1);g.k.Ze=function(){return NaN};
    g.k.getDuration=function(a){a=this.iY(a);return a>=0?a/this.j:-1};
    g.k.iY=function(a){return a+1<this.count||this.B?this.rh[a+1]-this.rh[a]:-1};
    g.k.Qn=function(){return 0};
    g.k.Bd=function(){return this.count-1};
    g.k.yF=function(a){return this.Bd()===a&&a>=0};
    g.k.Qt=function(){return this.B?this.rh[this.count]/this.j:NaN};
    g.k.Cd=function(){return 0};
    g.k.nA=function(){return this.count};
    g.k.OJ=function(){return""};
    g.k.Hi=function(a){a=g.Qb(this.rh.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)};
    g.k.isLoaded=function(){return this.Bd()>=0};
    g.k.pY=function(a,b){if(a>=this.Bd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Bd()&&b>this.getStartTime(a);a++)c=Math.max(c,BTa(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.rh;this.rh=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.rh[a]=c[a]};
    g.k.cap=function(a,b){CTa(this);this.B=!0;this.rh[this.count]=b;this.offsets[this.count]=a};g.x(qQ,SP);g.k=qQ.prototype;g.k.Qw=function(a,b){var c=new XP(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new XP(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),c];this.info.contentLength>0&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),a>0&&d.push(new XP(4,this,VP(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new cQ(d)};
    g.k.YP=function(a){if(a.info.type===1){if(this.j)return;this.j=pN(a.j)}else if(a.info.type===2){if(this.G||this.index.Bd()>=0)return;if(g.TJ(this.info)){var b=this.index,c=nQ(a);a=a.info.range.start;var d=g.uP(c,0,1936286840);c=nSa(d);b.j=c.uv;var e=c.e8;b.offsets[0]=c.v8+a+d.size;b.rh[0]=e;b.B=!0;a=c.LT.length;for(d=0;d<a;d++){e=b;var f=c.jda[d],h=c.LT[d];e.count++;CTa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.rh[e.count]=e.rh[e.count-1]+h}}else this.G=nQ(a)}if(this.info.Le()&&this.j&&this.G){c=
        new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new CP(c);c=e;e=c.pos;f={v2:1E6,w2:1E9,duration:0,w1:0,dT:0};if(GP(c,408125543))if(f.w1=HP(c,!0),f.dT=c.start+c.pos,GP(c,357149030)){for(h=FP(c);!DP(h);){var l=HP(h,!1);l===2807729?f.v2=JP(h):l===2807730?f.w2=JP(h):l===17545?f.duration=LP(h):KP(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(c!==null){b.j=c.w2/c.v2;e=new CP(d);d=e;h=c.dT;e=d.pos;f=[];if(GP(d,475249515)){for(l=FP(d);GP(l,187);){var m=FP(l);if(GP(m,
        179)){var n=JP(m);if(GP(m,183)){m=FP(m);for(var p=h;GP(m,241);)p=JP(m)+h;f.push({TI:p,O7:n})}}}if(f.length>0&&a===f[0].TI)for(a=0;a<f.length;a++)f[a].TI+=1;d.pos=e;a=f}else d.pos=e,a=null;if(a!==null){a=g.v(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.TI,f=f.O7,CTa(d),d.offsets[d.count]=e,d.rh[d.count]=f,d.count++;b.cap(c.w1+c.dT,c.duration)}}this.G=null}};
    g.k.ZE=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Bd();f++){var h=VP(this.index.Fm(f),BTa(this.index,f)),l=this.index.getStartTime(f),m=this.index.getDuration(f),n=Math.max(0,b-h.start),p=Math.min(h.end+1,b+c)-(h.start+n);e.push(new XP(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.jE(new g.CB("b189619593",""+a,""+b,""+c));return new cQ(e)};
    g.k.JV=function(a){for(var b=this.ZB(a.info),c=a.info.range.start+a.info.Sb,d=[],e=0;e<b.length;e++){var f=nN(a.j,b[e].range.start+b[e].Sb-c,b[e].B);d.push(new mQ(b[e],f))}return d};
    g.k.ZB=function(a){for(var b=a.range.start+a.Sb,c=0;c<this.index.Bd()&&b>=this.index.Fm(c+1);)c++;return this.ZE(c,b,a.B).jb};
    g.k.Ws=function(a){YP(a);return this.jg()?!0:a.range.end+1<this.info.contentLength};
    g.k.ez=function(a,b){this.Ws(a);if(!this.jg())return b=VP(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new TP(b.start,this.info.contentLength-1)),new cQ([new XP(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.ZB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Sb+a.B;a.type===3&&(YP(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.ZE(c,d,b)};
    g.k.tD=function(){return null};
    g.k.Hr=function(a,b,c){b=b===void 0?!1:b;a=this.index.Hi(a);b&&(a=Math.min(this.index.Bd(),a+1));return this.ZE(a,this.index.Fm(a),0,c)};
    g.k.Nm=function(){return!0};
    g.k.mx=function(){return!0};
    g.k.JA=function(){return!1};
    g.k.GP=function(){return this.indexRange.length+this.initRange.length};
    g.k.qS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var $2={},YTa=($2.COLOR_PRIMARIES_BT709="bt709",$2.COLOR_PRIMARIES_BT2020="bt2020",$2.COLOR_PRIMARIES_UNKNOWN=null,$2.COLOR_PRIMARIES_UNSPECIFIED=null,$2),a3={},ETa=(a3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",a3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",a3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",a3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",a3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,a3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,a3);g.rQ.prototype.getName=function(){return this.name};
    g.rQ.prototype.getId=function(){return this.id};
    g.rQ.prototype.getIsDefault=function(){return this.isDefault};
    g.rQ.prototype.toString=function(){return this.name};
    g.rQ.prototype.getName=g.rQ.prototype.getName;g.rQ.prototype.getId=g.rQ.prototype.getId;g.rQ.prototype.getIsDefault=g.rQ.prototype.getIsDefault;var JTa=/action_display_post/;var KTa,LTa,MTa;g.x(tQ,g.DE);g.k=tQ.prototype;g.k.isLoading=function(){return this.state===1};
    g.k.Lm=function(){return this.state===3};
    g.k.Ica=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.dc=this.B=!0;this.timeline||(this.timeline=new gTa);kTa(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=hUa(this,b[a]);if(!this.j[c.id]){var d=vQ(hQ(b[a],"BaseURL").textContent),e=hQ(b[a],"Initialization"),f=gQ(e,"sourceURL");e=UP(gQ(e,"range"));this.j[c.id]=new fQ(d,c,f,e)}c=this.j[c.id];d=gQ(b[a],"id",
        "AdaptationSet");d=d!==""?d:gQ(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.N&&f.getStreamTimeOffset()&&(this.N=f.getStreamTimeOffset());if(f.G){e=[];d=g.v(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=c.info.tb*8,n=h.Pa;var p=h.startSecs;var q=f.N.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
        p.toString());e.push(new iP(h.Pa,h.startSecs,h.Ch,h.j,q.join("$"),null,h.B))}d=e}else{f=Mb(hQ(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var t=r.split("-");t[1]&&Number(t[1])>=0?p=UP(r):q=q+"?range="+r}m.call(l,new iP(n.Pa,n.startSecs,n.Ch,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Wa)}lTa(this.timeline);return!0}this.duration=dTa(gQ(a,"mediaPresentationDuration"));
        a:{for(a=0;a<b.length;a++){f=b[a];c=hUa(this,f);d=vQ(hQ(f,"BaseURL").textContent);e=hQ(f,"SegmentBase");f=UP(e.attributes.getNamedItem("indexRange").value);e=UP(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new qQ(d,c,e,f);if(!c){b=!1;break a}sQ(this,c)}b=!0}return b};
    g.k.refresh=function(){if(!this.isLoading()&&!this.Na()){var a=g.wo(this.sourceUrl,{start_seq:nUa(this).toString()});jUa(this,a).Jl(function(){})}};
    g.k.resume=function(){iUa(this)};
    g.k.oe=function(){if(this.isManifestless&&this.C&&wQ(this))return wQ(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&!XJ(f.info.mimeType)&&(f.D&&(b=!0),h=h.Qt(),f.info.Fh()&&(isNaN(c)||h<c)?c=h:f.info.Ag()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
    g.k.Cd=function(){if(this.isManifestless){if(xQ(this))return xQ(this);if(this.Qc){var a=this.Ze(this.oe());if(a&&(a-=this.Qc,a>0))return this.oe()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!XJ(a[b].info.mimeType))return c.Cd()}return 0};
    g.k.getStreamTimeOffset=function(){return this.N};
    g.k.Ze=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Hi(a),e=c.Ze(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
    var BQ=null,NTa=!1,bqb,tUa=!((bqb=navigator.mediaCapabilities)==null||!bqb.decodingInfo),gUa={commentary:1,alternate:2,dub:3,main:4};g.CQ.prototype.info=function(){};
    g.CQ.prototype.debug=function(){};
    var xUa=new Map;var H_=new Set,DQ=new Map;FQ.prototype.clone=function(a){return new FQ(this.flavor,a,this.B,this.experiments)};
    FQ.prototype.qc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
    FQ.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
    var cqb={},CUa=(cqb.playready=["com.youtube.playready","com.microsoft.playready"],cqb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],cqb),b3={},jdb=(b3.widevine="DRM_SYSTEM_WIDEVINE",b3.fairplay="DRM_SYSTEM_FAIRPLAY",b3.playready="DRM_SYSTEM_PLAYREADY",b3),c3={},dqb=(c3.widevine=1,c3.fairplay=2,c3.playready=3,c3);var PQ;g.x(OQ,g.I);
    OQ.prototype.initialize=function(a,b){for(var c=this,d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.me)for(var h=g.v(Object.keys(f.me)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=CUa[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.v(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new FQ(l,n,f.me[l],this.Da.experiments),this.j[l]=this.j[l]||
        {},this.j[l][f.mimeType]=!0}}}SA()&&(this.C["com.youtube.fairplay"]=new FQ("fairplay","com.youtube.fairplay","",this.Da.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=DUa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
    OQ.prototype.L=function(a){return this.Da.experiments.fb(a)};var Ugb={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};LUa.prototype.L=function(a){return this.experiments.fb(a)};var xVa={RED:"red",cob:"white"};MUa.prototype.fb=function(a){return this.flags[a]==="true"};var PUa=Promise.resolve(),UUa=window.queueMicrotask?window.queueMicrotask.bind(window):QUa;RUa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;vC?a=a||eqb[b]:nR===2.2?a=a||fqb[b]:QA()&&(a=a||gqb[b]);return!!a};
    RUa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):HJ(a)};
    var fqb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},gqb={"application/x-mpegURL":"maybe"},eqb={"application/x-mpegURL":"maybe"};g.x(VQ,g.DE);VQ.prototype.add=function(a,b){if(!this.items[a]&&(b.MI||b.sO||b.wM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}};
    VQ.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
    VQ.prototype.get=function(a){return this.items[a]||null};
    VQ.prototype.isEmpty=function(){return g.gd(this.items)};g.x(WQ,g.gN);WQ.prototype.j=function(a,b){var c=vV.Js();b=g.gN.prototype.j.call(this,a,b);vV.Ar("oap",c,Math.ceil(a.length/16));return b};
    WQ.prototype.B=function(a,b,c){var d=this,e,f;return g.G(function(h){if(h.j==1)return e=vV.Js(),g.z(h,g.gN.prototype.B.call(d,a,b,c),2);f=h.B;vV.Ar("oan2",e,Math.ceil(a.byteLength/16));return h.return(f)})};
    g.x(XQ,g.hN);XQ.prototype.encrypt=function(a,b){var c=vV.Js();b=g.hN.prototype.encrypt.call(this,a,b);vV.Ar("oap",c,Math.ceil(a.byteLength/16));return b};
    g.x(YQ,iN);YQ.prototype.encrypt=function(a,b){var c=this.Md.WI(a),d=this.Md.WI(b);iN.prototype.encrypt.call(this,c||a,d||b);d&&this.Md.exports.free(d.byteOffset);return c?this.Md.lR(c):a};$Q.prototype.Si=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
    $Q.prototype.fh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};aR.prototype.Si=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.al=!0};
    aR.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.al&&(g.Sb(this.G,function(c,d){return b.values[c]-b.values[d]}),this.al=!1);
        return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0};
    aR.prototype.fh=function(){return this.K?(this.percentile(this.D-this.K)+this.percentile(this.D)+this.percentile(this.D+this.K))/3:this.percentile(this.D)};g.x(cVa,g.I);cVa.prototype.Va=function(){var a;(a=this.Ma)==null||a.start();if(gR(this)&&this.policy.N){var b;(b=this.zd)==null||b.ZF()}};g.x(mVa,g.I);var uVa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),DVa={qpa:"caoe",Sra:"cbrand",csa:"cbr",esa:"cbrver",Nua:"cchip",jva:"ccappver",kva:"ccrv",IFa:"cfrmver",CKa:"c",FKa:"cver",EKa:"ctheme",DKa:"cplayer",cXa:"cmodel",RXa:"cnetwork",p1a:"cos",q1a:"cosver",m2a:"cplatform",p6a:"crqyear"};g.x(BVa,g.I);g.k=BVa.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.wR(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.qR(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),vC&&(a=Eqa())&&(b.ebc=a));return g.wo(f,b)};
    g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.wR(this)+"/embed/"+b;d&&(b=g.wo(b,{list:d}));d=c.width;c=c.height;b=Ze(b);a=Ze(a!=null?a:"YouTube video player");return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+(a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
    g.k.supportsGaplessAudio=function(){return g.GJ&&!vC&&sra()>=74||g.NQ&&g.Nc(68)?!0:!1};
    g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.aC?!1:!0};
    g.k.getPlayerType=function(){return this.j.cplayer};
    g.k.wc=function(){return this.Sf};
    g.k.Pu=function(){this.L("html5_enable_lawnmower_messaging")};
    var JVa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],CVa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],GVa=[19];var d3={},MVa=(d3["140"]={numChannels:2},d3["141"]={numChannels:2},d3["251"]={audioSampleRate:48E3,numChannels:2},d3["380"]={numChannels:6},d3["328"]={numChannels:6},d3),e3={},KVa=(e3["1"]='video/mp4; codecs="av01.0.08M.08"',e3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',e3["9"]='video/webm; codecs="vp9"',e3["("]='video/webm; codecs="vp9"',e3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',e3.h='video/mp4; codecs="avc1.64001e"',e3.H='video/mp4; codecs="avc1.64001e"',e3.o=
        'audio/webm; codecs="opus"',e3.a='audio/mp4; codecs="mp4a.40.2"',e3.ah='audio/mp4; codecs="mp4a.40.2"',e3.mac3='audio/mp4; codecs="ac-3"; channels=6',e3.meac3='audio/mp4; codecs="ec-3"; channels=6',e3),f3={},LVa=(f3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},f3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},f3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},f3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},f3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},f3["700"]={width:2560,
        height:1440,bitrate:1E7,fps:60},f3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},f3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},f3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},f3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},f3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},f3["360"]={width:1920,height:1080,bitrate:5331E3,
        fps:30,cryptoblockformat:"subsample"},f3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},f3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},f3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},f3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},f3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},f3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},f3["302"]={width:1280,height:720,bitrate:25E5,
        fps:60},f3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},f3["298"]={width:1280,height:720,bitrate:35E5,fps:60},f3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},f3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},f3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},f3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},f3["398"]={width:1280,height:720,bitrate:1E6,fps:60},f3["397"]={width:854,height:480,bitrate:4E5,fps:30},f3["396"]={width:640,height:360,bitrate:25E4,fps:30},f3["313"]=
        {width:3840,height:2160,bitrate:8E6,fps:30},f3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},f3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},f3["247"]={width:1280,height:720,bitrate:15E5,fps:30},f3["244"]={width:854,height:480,bitrate:52E4,fps:30},f3["243"]={width:640,height:360,bitrate:28E4,fps:30},f3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},f3["136"]={width:1280,height:720,bitrate:3E6,fps:30},f3["135"]={width:854,height:480,bitrate:1E6,fps:30},f3["385"]={width:1920,height:1080,
        bitrate:6503313,fps:60},f3["376"]={width:1280,height:720,bitrate:5706960,fps:60},f3["384"]={width:1280,height:720,bitrate:3660979,fps:60},f3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},f3["224"]={width:1280,height:720,bitrate:453E4,fps:30},f3["145"]={width:1280,height:720,bitrate:2682052,fps:30},f3);g.k=LR.prototype;g.k.getInfo=function(){return this.j};
    g.k.uD=function(){return null};
    g.k.KV=function(){var a=this.uD();return a?(a=g.pA(a.resource),Number(a.expire)):NaN};
    g.k.eT=function(){};
    g.k.getHeight=function(){return this.j.video.height};OVa.prototype.build=function(){SVa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.v(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.hc){if(e.hc.getIsDefault()){c=e.hc.getId();break a}c||(c=e.hc.getId())}}d=g.v(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.hc||e.hc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.v(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.v(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.hc){p=f.hc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";d!==null&&(q=d.itag.toString());q=QVa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(RVa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.v(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=hqb,d=(h=d.hc)?'#EXT-X-MEDIA:URI="'+QVa(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=this.G.length>0?hqb:void 0;d=g.v(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,((h=l)==null?void 0:h.length)>0&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(RVa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+=
        ",FRAME-RATE="+h.fps),h.GC&&(l+=",VIDEO-RANGE="+h.GC),a.push(l),a.push(QVa(this,e.url,"")));return a.join("\n")};
    var hqb="text";g.x(NR,LR);NR.prototype.KV=function(){return this.expiration};
    NR.prototype.uD=function(){if(!this.resource||this.resource.Na()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new kK(a)}return this.resource};g.x(OR,LR);OR.prototype.uD=function(){return new kK(this.B.Ce())};
    OR.prototype.eT=function(){this.B=gP(this.B)};g.x(PR,LR);PR.prototype.uD=function(){return new kK(this.B)};var g3={},dWa=(g3.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",g3.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",g3.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",g3);g.k=g.QR.prototype;g.k.getId=function(){return this.id};
    g.k.getName=function(){return this.name};
    g.k.isServable=function(){return this.j};
    g.k.Ce=function(){return this.url};
    g.k.toString=function(){return this.languageCode+": "+g.RR(this)+" - "+this.vssId+" - "+(this.captionId||"")};
    g.k.ue=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var iWa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},jWa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},kWa=/^(\d*)_((\d*)_?(\d*))$/;var mWa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},nWa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var h3={},eXa=(h3.ALWAYS=1,h3.BY_REQUEST=3,h3.UNKNOWN=void 0,h3),i3={},lXa=(i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",i3);var ZKa;
    ZKa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];typeof a[e]==="function"&&(c[e]=a[e])}var f=Object.keys(c);try{Kma(c)}catch(l){var h=l}return function(l,m){l=l===void 0?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],t=l[r],u=(0,c[r])(t,m);if(typeof u==="undefined")throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+r+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[r]=
        u;n=n||u!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=a===void 0?{}:a;
            return pLa(a,b)}});
    g.DS=new kN;ZR.prototype.toString=function(){return this.type+this.id};g.$R.prototype.gh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if(a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.j)return xR(this.Da,this.j,a)};
    g.$R.prototype.ql=function(){return this.Da.getVideoUrl(this.videoId,this.playlistId)};g.aS.prototype.gh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:a==="pop1.jpg"||a==="pop2.jpg"||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg"?b:xR(this.Da,this.videoId,a)};
    g.aS.prototype.ql=function(a){return this.watchUrl||this.Da.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var bS=void 0;lBa("LMS",function(){return g.G(function(a){return a.return(g.cS())})});var gS;gS=0;g.NWa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;lBa("LMDB",function(){var a,b;return g.G(function(c){if(c.j==1)return g.z(c,g.yC(),2);if(c.j!=3){a=c.B;if(!a)throw g.bC("edd");return g.z(c,g.fS(a),3)}b=c.B;return c.return(g.iC(b,["index","media","captions"],{mode:"readonly",Nb:!0},function(d){var e={};d=[g.nC(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.oC(f)}),
        lta(d.objectStore("media")),lta(d.objectStore("captions"))];return g.dC.all(d).then(function(f){var h=g.v(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:OWa(f||[]),captions:h}})}))})});g.x(hS,g.DE);hS.prototype.xa=function(){this.j&&(this.j=this.j.onload=null);g.DE.prototype.xa.call(this)};g.k=g.lS.prototype;g.k.getHeight=function(){return this.height};
    g.k.oY=ba(3);g.k.DJ=function(){return this.frameCount};
    g.k.isDefault=function(){return this.C.indexOf("default")!==-1};
    g.k.isLoaded=function(a){return this.loaded.has(a)};
    g.k.Ce=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.wo(b,{sigh:this.signature}));return LI(b)};
    g.k.qI=function(a){var b=this.DJ()-1;return g.ze(this.j===0?Math.round(a*this.frameCount/this.videoLength):Math.round(a*1E3/this.j),0,b)};
    g.k.fz=function(){return this.frameCount-1};
    g.k.uN=function(){return this.frameCount?0:-1};
    g.k.LV=function(){};g.x(mS,hS);mS.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.N||f.getHeight()<180)&&c.push(f)}return c};
    mS.prototype.G=function(a,b,c,d){return new g.lS(a,b,c,d)};g.x(UWa,g.lS);g.k=UWa.prototype;g.k.DJ=function(){return this.B.nA()};
    g.k.qI=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Bd();a=c.Hi(a);return a>d-b?-1:a};
    g.k.fz=function(){return this.B.Bd()};
    g.k.uN=function(){return this.B.Qn()};
    g.k.LV=function(a){this.B=a};g.x(nS,mS);nS.prototype.B=function(a,b){return mS.prototype.B.call(this,"$N|"+a,b)};
    nS.prototype.G=function(a,b,c){return new UWa(a,b,c,this.isLive)};var rXa=[],qXa=new Set;g.x(g.pS,g.DE);g.k=g.pS.prototype;g.k.U=function(){return this.Da};
    g.k.L=function(a){return this.Da.L(a)};
    g.k.ai=function(){return!this.isLivePlayback||this.allowLiveDvr};
    g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.uf)==null||!a.rb)};
    g.k.L_=function(){this.Na()||(this.j.B||this.j.unsubscribe("refresh",this.L_,this),this.oX(-1))};
    g.k.oX=function(a){if(!this.isLivePlayback||!this.K||this.K.flavor!="fairplay"){var b=dUa(this.j,this.BF);if(b.length>0){for(var c=g.v(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Cd());this.publish("cuepointupdated",b,a);this.BF+=b.length;if(zS(this)&&this.Da.wc())for(b=g.v(b),c=b.next();!c.done;c=b.next())c=c.value,this.ma("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.QC.start=this.Ik,
        this.QC.end=c+3)}}};
    g.k.Wi=function(){return this.me?!0:!!this.j&&XO(this.j)};
    g.k.BI=function(a){var b=this;if(this.Na())return JA();this.Fd=this.gb=this.C=null;vS(this,"html5_high_res_logging_always")&&(this.Da.Sf=!0);return JXa(this,a).then(void 0,function(){return KXa(b,a)}).then(void 0,function(){return LXa(b)}).then(void 0,function(){return NXa(b)})};
    g.k.jk=function(){if(this.cotn)return null;var a=g.qI(this.Da)||this.L("web_l3_storyboard");if(!this.Nk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Nk=new mS(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=cba(this.j.j).index)&&(this.Nk=new nS(b.spec,this.j.isLive,c,a))}else this.Zz?this.Nk=new mS(this.Zz,this.lengthSeconds,void 0,!1,a):this.jz&&this.j&&
        (b=cba(this.j.j).index)&&(this.Nk=new nS(this.jz,this.j.isLive,b,a));return this.Nk};
    g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Zz||this.jz};
    g.k.oe=function(){return this.j&&!isNaN(this.j.oe())?this.j.oe():zS(this)?0:this.lengthSeconds};
    g.k.Cd=function(){return this.j&&!isNaN(this.j.Cd())?this.j.Cd():0};
    g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Hi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null};
    g.k.ue=function(){return!this.Na()&&!(!this.videoId&&!this.Yl)};
    g.k.Xw=function(){var a,b,c;return!!this.adaptiveFormats||!!((a=this.playerResponse)==null?0:(b=a.streamingData)==null?0:(c=b.adaptiveFormats)==null?0:c.length)};
    g.k.isLoaded=function(){return qS(this)&&!this.uj&&!this.pp};
    g.k.gh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.ra||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:xR(this.Da,this.videoId,a)};
    g.k.dc=function(){return this.isLivePlayback||this.je||this.eb||!(!this.liveUtcStartSeconds||!this.Rl)};
    g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.je&&!this.isLivePlayback&&this.j.B)};
    g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.gw||[]:[]};
    g.k.getAudioTrack=function(){var a=this;if(this.D&&!UJ(this.D))return g.Cb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Rk;
        if(this.gw){if(!this.yp)for(var b=g.v(this.gw),c=b.next();!c.done;c=b.next())if(c=c.value,c.hc.getIsDefault()){this.yp=c;break}return this.yp||this.Rk}return this.Rk};
    g.k.getPlayerResponse=function(){return this.playerResponse};
    g.k.getWatchNextResponse=function(){return this.La};
    g.k.getHeartbeatResponse=function(){return this.FD};
    g.k.ql=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)};
    g.k.DQ=function(){return!!this.j&&(QTa(this.j)||RTa(this.j)||STa(this.j))};
    g.k.getEmbeddedPlayerResponse=function(){return this.Di};
    g.k.nk=function(){return(this.eventLabel||this.Da.Ma)==="shortspage"};
    g.k.isAd=function(){return this.ND||!!this.adFormat};
    g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
    g.k.Mm=function(){var a,b,c;return this.isDaiEnabled()&&!!((a=this.playerResponse)==null?0:(b=a.playerConfig)==null?0:(c=b.daiConfig)==null?0:c.ssaEnabledPlayback)};
    g.k.tT=function(){return fXa(this)?this.M1:this.iq||this.sj};
    g.k.pH=function(){return this.Ij||this.sj};
    g.k.XN=function(){return vS(this,"html5_samsung_vp9_live")};
    g.k.useInnertubeDrmService=function(){return!0};
    g.k.ma=function(a,b,c){this.publish("ctmp",a,b,c)};
    g.k.WB=function(a,b,c){this.publish("ctmpstr",a,b,c)};
    g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
    g.k.hd=function(a,b){if(!g.kR(this.Da)||(this.Da.Ea||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;var c;return!!(((c=this.embeddedPlayerConfig)==null?0:c.isShortsExperienceEligible)&&a.width<=a.height)};
    g.k.xa=function(){g.DE.prototype.xa.call(this);this.Gv=null;delete this.Mca;delete this.accountLinkingConfig;delete this.j;this.C=this.FD=this.playerResponse=this.La=null;this.Vf=this.adaptiveFormats="";delete this.botguardData;this.kf=this.suggestions=this.Jv=null};var uYa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},vYa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},tYa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},wYa=!1,qYa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},sYa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},rYa={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",
        2:"UNPLUGGED_FILTER_MODE_TYPE_PG",3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"};g.x(jT,g.I);g.k=jT.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.Y[a],e=this.state.qa[a],f=d;if(e)if(c&&II(c,ppb,qpb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.v(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.kE(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
    g.k.logApiCall=function(a,b,c){var d=this.app.U();d.pp&&!this.state.ra.has(a)&&(this.state.ra.add(a),g.SB("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ea,errorCode:c}))};
    g.k.publish=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.ra(b)))};
    g.k.ib=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b)))};
    g.k.Bc=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.ra(b)))};
    g.k.Xm=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.ra(b)));this.state.N.publish.apply(this.state.N,[a].concat(g.ra(b)))};
    g.k.L=function(a){return this.app.U().L(a)};
    g.k.xa=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.B)this.state.B.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.I.prototype.xa.call(this)};g.x(oT,g.Yv);oT.prototype.publish=function(a){var b=g.Ja.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.Yv.prototype.publish.call.apply(g.Yv.prototype.publish,[this,a].concat(g.ra(b.shift())))}finally{this.G.delete(a)}return c};g.x(CYa,g.I);CYa.prototype.xa=function(){this.N.dispose();this.D.dispose();this.j.dispose();this.C.dispose();this.ra=this.G=this.K=this.B=this.qa=this.Y=this.Z=void 0};var EYa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.x(qT,jT);g.k=qT.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
    g.k.i7=function(a,b){this.state.N.subscribe(a,b)};
    g.k.oda=function(a,b){this.state.N.unsubscribe(a,b)};
    g.k.getPlayerState=function(a){return Lhb(this.app,a)};
    g.k.W8=function(){return Lhb(this.app)};
    g.k.Nda=function(a,b,c){IYa(this)&&(W0(this.app,!0,1),Y0(this.app,a,b,c,1))};
    g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(this.app.getAppState()===2&&d===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&d===0?Hhb(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(this.playerType)};
    g.k.I8=function(){return this.app.getCurrentTime(1)};
    g.k.Q8=function(){var a=this.app.Ze(1);return isNaN(a)?this.getCurrentTime():a};
    g.k.M8=function(){return this.app.getDuration(1)};
    g.k.hM=function(a,b){a=g.ze(Math.floor(a),0,100);isFinite(a)&&P0(this.app,{volume:a,muted:this.isMuted()},b)};
    g.k.bea=function(a){this.hM(a,!1)};
    g.k.TK=function(a){P0(this.app,{muted:!0,volume:this.getVolume()},a)};
    g.k.T$=function(){this.TK(!1)};
    g.k.CM=function(a){g.rT(this.app)||P0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
    g.k.Nea=function(){this.CM(!1)};
    g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Jf&&(a.pfp={enableIma:g.gT(this.app.getVideoData())&&this.app.Od().allowImaMonetization,autoplay:aT(this.app.Od()),mutedAutoplay:this.app.Od().mutedAutoplay});return a};
    g.k.rS=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.If()){var b=zV(this.app.zb());if(!Akb(b)||Bkb(b))return}a===3?BT(this.app.zb()).gG("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.dT(this.app.Od())&&a===2||this.app.playVideo(a)};
    g.k.Pca=function(){W0(this.app,!0,1);this.rS()};
    g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.If()||Akb(zV(this.app.zb())))b===3?BT(this.app.zb()).gG("control_pause"):this.app.pauseVideo(b,a)};
    g.k.nea=function(){var a=this.app,b=!1;a.X.Cc&&(a.Ua.publish("pageTransition"),b=!0);a.stopVideo(b)};
    g.k.clearVideo=function(){};
    g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.qp?jpb:ipb:[1]};
    g.k.getPlaybackQuality=function(a){return(a=g.sT(this.app,a))?a.getPlaybackQuality():"unknown"};
    g.k.Wda=function(){};
    g.k.getAvailableQualityLevels=function(a){return(a=g.sT(this.app,a))?(a=g.as(a.Nt(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]};
    g.k.F8=function(){return this.getAvailableQualityLevels(1)};
    g.k.b9=function(){return this.DY()};
    g.k.c9=function(){return 1};
    g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
    g.k.DY=function(){return this.getVideoLoadedFraction()};
    g.k.f9=function(){return 0};
    g.k.getSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
    g.k.setSize=function(){this.app.ob().resize()};
    g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=pT(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
    g.k.r$=function(a,b,c){a=this.loadVideoById(a,b,c,1);W0(this.app,a,1)};
    g.k.cueVideoById=function(a,b,c,d){a=pT(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
    g.k.P7=function(a,b,c){this.cueVideoById(a,b,c,1)};
    g.k.loadVideoByUrl=function(a,b,c,d){a=DYa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
    g.k.u$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);W0(this.app,a,1)};
    g.k.cueVideoByUrl=function(a,b,c,d){a=DYa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
    g.k.S7=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
    g.k.h9=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Od(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
    g.k.K8=function(){return this.app.getDebugText()};
    g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Od();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Od().videoId,this.app.ob().getPlayerSize(),this.getPlaylistId()||void 0)};
    g.k.e7=function(a,b,c){return Rhb(this.app,a,b,c)};
    g.k.removeCueRange=function(a){return Thb(this.app,a)};
    g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
    g.k.q$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);W0(this.app,!0,1)};
    g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
    g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
    g.k.U$=function(){this.nextVideo();W0(this.app,!0,1)};
    g.k.previousVideo=function(a){this.app.previousVideo(a)};
    g.k.cda=function(){this.previousVideo();W0(this.app,!0,1)};
    g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
    g.k.Oca=function(a){this.playVideoAt(a);W0(this.app,!0,1)};
    g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
    g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
    g.k.Y8=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.bV(a,c);d&&b.push(d.videoId)}return b};
    g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
    g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
    g.k.SZ=function(a){a==="captions"&&(a=g.wV(this.app.zb()))&&!a.loaded&&a.load()};
    g.k.S2=function(a){a==="captions"&&(a=g.wV(this.app.zb()))&&a.loaded&&a.Rea()};
    g.k.lT=function(a,b,c){if(!b)return null;var d=this.app.zb();return a==="captions"?(a=g.wV(d))&&a.Th(b,c):null};
    g.k.S8=function(a,b,c){var d=g.sT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.lT(a,b,c)};
    g.k.IP=function(a){var b=this.app.zb();if(a==="captions"){var c;return((c=g.wV(b))==null?void 0:c.getOptions())||null}return a?null:(a=[],g.wV(b)&&a.push("captions"),a)};
    g.k.getVolume=function(){return this.app.Ni.volume};
    g.k.isMuted=function(){return this.app.Ni.muted};
    g.k.destroy=function(){this.app.dispose()};
    g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.gT(this.app.getVideoData())&&this.app.Od().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Nfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.zn(this.app.U().Fa)||""},a.embeddedPlayerMode=c.Ea,g.SB("embedsAdEvent",a))};
    g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;((b=a.getWebPlayerContextConfig())==null?0:(c=b.embedsHostFlags)==null?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
    g.k.preloadVideoById=function(a,b,c,d){if(a){a=pT(a,b,c);var e,f;((e=this.app.U().getWebPlayerContextConfig())==null?0:(f=e.embedsHostFlags)==null?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
    g.k.Xca=function(a,b,c){this.preloadVideoById(a,b,c,1)};
    g.k.setFauxFullscreen=function(a){g.gB();this.app.dn(a?2:0)};
    g.k.Tda=function(a){var b,c;((b=this.app.U().getWebPlayerContextConfig())==null?0:(c=b.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};var LYa="driveweb flix hovercard projector texmex wshbp".split(" ");g.x(JYa,qT);g.k=JYa.prototype;g.k.j7=function(a,b){this.state.D.subscribe(a,b)};
    g.k.pda=function(a,b){this.state.D.unsubscribe(a,b)};
    g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
    g.k.R7=function(a,b){b=b===void 0?1:b;this.cueVideoByPlayerVars(OYa(this,a),b)};
    g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
    g.k.t$=function(a,b,c,d){c=c===void 0?1:c;this.loadVideoByPlayerVars(OYa(this,a),b,c,d)};
    g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.preloadVideoByPlayerVars(a,b,c,d===void 0?"":d,e===void 0?"":e)};
    g.k.Zca=function(a,b,c,d){b=b===void 0?1:b;this.preloadVideoByPlayerVars(OYa(this,a),b,c,d)};
    g.k.UZ=function(a,b,c){this.loadVideoById(a,b,c,1)};
    g.k.VZ=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
    g.k.X8=function(a){return this.getPlayerState(a)};
    g.k.CY=function(a){a=a===void 0?1:a;var b=GYa(this,a);if(a=g.sT(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.eb;b.isManifestless=zS(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;a.liveUtcStartSeconds!=null&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Wi()&&(b.isEncrypted=!0);if(a.C)for(var c=g.v(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if((e=d.value.video)==
    null?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!((f=a.D)==null?0:(h=f.audio)==null?0:h.isMultiChannelAudio())}return b};
    g.k.seekBy=function(a,b,c,d,e){IYa(this)&&Y0(this.app,this.app.getCurrentTime()+a,b,c,e,d)};
    g.k.Lda=function(a,b,c){this.seekBy(a,b,c,void 0,1)};
    g.k.seekTo=function(a,b,c,d,e){IYa(this)&&Y0(this.app,a,b,c,d,e)};
    g.k.Oda=function(a,b,c,d){this.seekTo(a,b,c,d===void 0?1:d)};
    g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
    g.k.J8=function(a,b){return this.getCurrentTime(a,b)};
    g.k.MJ=function(){var a=this.app.getPresentingPlayerType(!0);a===2&&this.app.If()&&(a=1);return a};
    g.k.getDuration=function(a,b){if(this.MJ()===3){var c;return((c=BT(this.app.zb()).getProgressState())==null?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(this.playerType)};
    g.k.N8=function(a,b){return this.getDuration(a,b)};
    g.k.e9=function(a){return this.getVideoLoadedFraction(a)};
    g.k.loadModule=function(a){if(a==="annotations_module"){var b=g.CV(this.app.zb());b&&!b.loaded&&b.load()}this.SZ(a)};
    g.k.unloadModule=function(a){if(a==="annotations_module"){var b=g.CV(this.app.zb());b&&b.loaded&&b.unload()}this.S2(a)};
    g.k.getOption=function(a,b,c){var d=g.sT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
    g.k.getOptions=function(a){var b=this.app.zb();switch(a){case "ad":var c,d;return((c=zV(b))==null?void 0:(d=c.getOptions)==null?void 0:d.call(c))||null;case "remote":var e,f;return((e=BT(b))==null?void 0:(f=e.getOptions)==null?void 0:f.call(e))||null;case "annotations_module":var h,l;return((h=g.CV(b))==null?void 0:(l=h.getOptions)==null?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return((m=Z0a(b))==null?void 0:(n=m.getOptions)==null?void 0:n.call(m))||null;case "unplugged":var p,q;return((p=
        g.AV(b))==null?void 0:(q=p.getOptions)==null?void 0:q.call(p))||null;case "kids":var r,t;return((r=Y0a(b))==null?void 0:(t=r.getOptions)==null?void 0:t.call(r))||null}if(!a){a=this.IP();if(!a)return a;zV(b)&&a.push("ad");BT(b)&&a.push("remote");g.CV(b)&&a.push("annotations_module");Z0a(b)&&a.push("creatorendscreen");g.AV(b)&&a.push("unplugged");Y0a(b)&&a.push("kids");return a}return this.IP(a)};
    g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.zb();switch(a){case "ad":return(a=zV(d))&&a.Th&&a.Th(b,c);case "kids":return(a=Y0a(d))&&a.Th(b,c);case "remote":return(a=BT(d))&&a.Th(b,c);case "unplugged":return(a=g.AV(d))&&a.Th(b,c);case "annotations_module":return(a=g.CV(d))&&a.Th(b,c);case "creatorendscreen":return(a=Z0a(d))&&a.Th(b,c)}return this.lT(a,b,c)};
    g.k.addCueRange=function(a,b,c,d,e){return Rhb(this.app,a,b,c,d,e)};
    g.k.getDebugText=function(a){return this.app.getDebugText(a)};
    g.k.getCurrentBroadcastId=function(){return null};
    g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){b=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;e=e===void 0?!1:e;var m=g.tT(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
    g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;e=e===void 0?!1:e;var l=g.tT(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
    g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
    g.k.showControls=function(){var a=g.tT(this);a&&a.showControls(!0)};
    g.k.hideControls=function(){var a=g.tT(this);a&&a.showControls(!1)};
    g.k.getVideoContentRect=function(a){a=this.app.ob().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
    g.k.toggleFullscreen=function(){function a(c){g.kE(c)}
        var b=this.app.U();if(b.externalFullscreen){if(!g.DR(b))return this.isFullscreen()?iB(window.document.documentElement):dsa(window.document.documentElement).catch(a)}else if(g.gB()||b.Z)return this.isFullscreen()?iB(hB()):b.controlsType!=="3"&&g.gB()?dsa(this.app.ob().element).catch(a):(b=this.app.Ke().Ib())?dsa(b).catch(a):Promise.reject(Error("Media element missing"));this.Bc("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
    g.k.isFullscreen=function(){return this.app.isFullscreen()};
    g.k.cancelPlayback=function(){var a=zV(this.app.zb());a&&a.created&&a.destroy();(a=g.sT(this.app))&&a.stopVideo();(a=this.app.zb().Ge.get("endscreen"))&&a.b$()&&g.AT(this.app.Ua,!0)};
    g.k.getProgressState=function(a){if(this.MJ()===3)return BT(this.app.zb()).getProgressState();var b=this.app.getVideoData(),c=g.sT(this.app,a)||g.sT(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if((f=e.progressBarStartPosition)==null?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=QYa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if((h=f.progressBarEndPosition)==null?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
        1E3,!isNaN(h)){h=QYa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Ze(d),m=this.app.isAtLiveHead(d),n=this.app.kA();var p=this.app;var q=g.sT(p,d);q?(q=H0(p,q),p=R0(p,g.dT(q.videoData)?q.videoData.Cd():q.Cd(),q)):p=0;q=Hhb(this.app,d);c=c.Lc();var r=this.app.getVideoData().GB;!r||isNaN(r)?d=0:(d=QYa(this,r,d),r=g.hI(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.ai(),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.g9=function(){return g.sT(this.app,1).qc(!0)};
    g.k.toggleSubtitles=function(){var a=g.wV(this.app.zb());a&&a.Dea()};
    g.k.getPlayerSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
    g.k.wakeUpControls=function(){var a=g.tT(this);a&&a.xv()};
    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 KYa="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(" "),
        NYa="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 j3={},RYa=(j3["api.invalidparam"]=2,j3.auth=150,j3["drm.auth"]=150,j3["heartbeat.net"]=150,j3["heartbeat.servererror"]=150,j3["heartbeat.stop"]=150,j3["html5.unsupportedads"]=5,j3["fmt.noneavailable"]=5,j3["fmt.decode"]=5,j3["fmt.unplayable"]=5,j3["html5.missingapi"]=5,j3["html5.unsupportedlive"]=5,j3["drm.unavailable"]=5,j3["mrm.blocked"]=151,j3["embedder.identity.denied"]=152,j3);g.x(g.uT,JYa);g.k=g.uT.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.qa[a]&&b&&II(b,ppb,qpb))};
    g.k.getBandwidthEstimate=function(){return fR(this.app.U().schedule)};
    g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.sT(this.app);b&&(a={gpu:(0,g.O_)(),d:a},b.handleError(new BJ("feedback",a)))};
    g.k.getInternalApi=function(){return Object.assign({},this.state.B)};
    g.k.getInternalApiInterface=function(){return g.bd(this.state.B)};
    g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.queueNextVideo(a,b,c,d===void 0?"":d,e===void 0?"":e)};
    g.k.V8=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.vF(a,1),isCued:a.isCued(),isDomPaused:g.vF(a,1024),isEnded:g.vF(a,2),isError:g.vF(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.vF(a,16),isUiSeeking:g.vF(a,32),isUnstarted:g.vF(a,64)}};
    g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
    g.k.startSeekCsiAction=function(){this.app.Fi().D.j=(0,g.fC)()};
    g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.sT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Lc()&&(h=f.getStreamTimeOffset());Y0(e,a-h,b,c,1,d)};
    g.k.getStreamTimeOffset=function(){var a=g.sT(this.app,1);return a?a.getStreamTimeOffset():0};
    g.k.seekToLiveHead=function(a,b){var c=g.sT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&Y0(this.app,Infinity,a,b,1)};
    g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.sT(this.app,1);c&&c.WG(a,b)};
    g.k.Mda=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)};
    g.k.Kda=function(a,b,c,d){this.seekBy(a,b,c,d,1)};
    g.k.setVolume=function(a,b){this.hM(a,b===void 0?!0:b)};
    g.k.mute=function(a){this.TK(a===void 0?!0:a)};
    g.k.unMute=function(a){this.CM(a===void 0?!0:a)};
    g.k.syncVolume=function(){var a=ihb(this.app);P0(this.app,{volume:a.volume,muted:a.muted},!1)};
    g.k.getAvailableQualityLabels=function(){var a=g.sT(this.app,1);return a?g.as(a.Nt(),function(b){return b.qualityLabel}):[]};
    g.k.channelSubscribed=function(){this.ib("SUBSCRIBE",this.app.Od().Ol)};
    g.k.channelUnsubscribed=function(){this.ib("UNSUBSCRIBE",this.app.Od().Ol)};
    g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
    g.k.getCurrentPlaylistSequence=function(){return g.sT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
    g.k.getPlaylistSequenceForTime=function(a){return g.sT(this.app).getPlaylistSequenceForTime(a)};
    g.k.shouldSendVisibilityState=function(){return!0};
    g.k.confirmYpcRental=function(){var a=g.sT(this.app,1);a&&a.Eg("ypc_clickwrap")};
    g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
    g.k.setConnectedRemoteApps=function(a){this.app.U().Bj=a};
    g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=ZA("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,AVa)};
    g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=a===void 0?!1:a};
    g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
    g.k.addUtcCueRange=function(a,b,c,d,e){return Shb(this.app,a,b,c,d,e)};
    g.k.d9=function(a){a=a===void 0?1:a;var b=this.CY(a);if(a=g.sT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ca;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?df(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)?
        df(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.Y3;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=QXa(a);b.paidContentOverlayDurationMs=RXa(a);a.j&&UO(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.sT(this.app,1))?a.getPlayerState():null)?a.Og:null;return!!(a&&b&&g.vF(a,128)&&SYa(b.errorCode)===5)};
    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=c===void 0?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,d===void 0?"":d)};
    g.k.clearQueue=function(){this.app.clearQueue()};
    g.k.Ei=function(){return g.tT(this)};
    g.k.sendAbandonmentPing=function(){var a=g.sT(this.app);a&&a.sendAbandonmentPing()};
    g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Od(),b==null?0:tXa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.XC=b.autonavState);else if(b.XC!==void 0)a=b.XC,b.XC=void 0;else return}Zhb(this.app,a)};
    g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,b===void 0?!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!((a=g.sT(this.app,1))==null||!a.hasSupportedAudio51Tracks())};
    g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.sT(this.app,1);c&&c.setUserAudio51Preference(a,b)};
    g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.sT(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1};
    g.k.setProximaLatencyPreference=function(a){var b=g.sT(this.app,1);b&&b.setProximaLatencyPreference(a)};
    g.k.getProximaLatencyPreference=function(){var a=g.sT(this.app,1);return a?a.getProximaLatencyPreference():0};
    g.k.isProximaLatencyEligible=function(){var a=g.sT(this.app,1);return a?a.isProximaLatencyEligible():!1};
    g.k.getAppState=function(){return this.app.getAppState()};
    g.k.updateLastActiveTime=function(){xD()};
    g.k.setBlackout=function(a){this.app.setBlackout(a)};
    g.k.setUserEngagement=function(a){this.app.U().Wl!==a&&(this.app.U().Wl=a,(a=g.sT(this.app,1))&&y0(a))};
    g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.wV(this.app.zb()).b3(a,b)};
    g.k.getCaptionWindowContainerId=function(){var a=g.wV(this.app.zb());return a?a.getCaptionWindowContainerId():""};
    g.k.toggleSubtitlesOn=function(){var a=g.wV(this.app.zb());a&&a.C2()};
    g.k.isSubtitlesOn=function(){var a=g.wV(this.app.zb());return a?a.isSubtitlesOn():!1};
    g.k.getPlayerResponse=function(a){return(a=g.sT(this.app,a))?a.getVideoData().getPlayerResponse():null};
    g.k.U8=function(){return this.getPlayerResponse(1)};
    g.k.getEmbeddedPlayerResponse=function(){var a=g.sT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
    g.k.getWatchNextResponse=function(a){return(a=g.sT(this.app,a))?a.getVideoData().getWatchNextResponse():null};
    g.k.i9=function(){return this.getWatchNextResponse(1)};
    g.k.getHeartbeatResponse=function(a){return(a=g.sT(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
    g.k.O8=function(){return this.getHeartbeatResponse(1)};
    g.k.getStoryboardFrame=function(a,b){var c=this.app.jk();if(!c)return null;b=c.levels[b];return b?(a=g.kS(b,a))?{column:a.column,columns:a.columns,height:a.Ex,row:a.row,rows:a.rows,url:a.url,width:a.WF}:null:null};
    g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.jk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Lc();return b.qI(a)};
    g.k.getStoryboardLevel=function(a){var b=this.app.jk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.fz(),minFrameIndex:b.uN()}:null:null};
    g.k.getNumberOfStoryboardLevels=function(){var a=this.app.jk();return a?a.levels.length:0};
    g.k.B8=function(){return this.getAudioTrack(1)};
    g.k.getAudioTrack=function(a){return(a=g.sT(this.app,a))?a.getAudioTrack():this.app.getVideoData().Rk};
    g.k.setAudioTrack=function(a,b){this.MJ()===3&&BT(this.app.zb()).gG("control_set_audio_track",a);var c=g.sT(this.app,this.playerType);if(c)if(c.Na()||g.vF(c.playerState,128))a=!1;else{var d;if((d=c.videoData.C)==null?0:d.j){d=b?c.getCurrentTime()-c.Lc():NaN;if(b){var e=Rfb(c.Sc);c.ma("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(Igb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.hc.getName()){if(e.enabled){b=!1;break b}b=e.enabled=
        !0;break b}b=void 0}b&&c.ma("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!UJ(b.D)||a==b.yp||!b.Fd||b.Fd.length<=0)b=!1;else{d=g.v(b.Fd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof NR)){b=!1;break b}var f=a.hc.getId();e.B&&(PVa(e.B,f),e.resource=null)}b.yp=a;b=!0}b&&r0(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.ma("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
    g.k.E8=function(){return this.getAvailableAudioTracks(1)};
    g.k.getAvailableAudioTracks=function(a){return g.sT(this.app,a).getAvailableAudioTracks()};
    g.k.getMaxPlaybackQuality=function(){var a=g.sT(this.app,1);return a&&a.getVideoData().B?RO(a.Mf?Udb(a.Ek,a.Mf,a.Ow()):oS):"unknown"};
    g.k.getUserPlaybackQualityPreference=function(){var a=g.sT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
    g.k.getSubtitlesUserSettings=function(){var a=g.wV(this.app.zb());return a?a.a9():null};
    g.k.resetSubtitlesUserSettings=function(){g.wV(this.app.zb()).xda()};
    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.Zh(),this.isFullscreen()||g.oR(this.app.U()),a,this.isInline(),this.app.ju(),this.app.IA(),this.app.PA(),this.app.qk())};
    g.k.isMutedByMutedAutoplay=function(){return this.app.oB};
    g.k.setInternalSize=function(a,b){this.app.ob().setInternalSize(new g.Ke(a,b))};
    g.k.Lc=function(){var a=g.sT(this.app);return a?a.Lc():0};
    g.k.isMinimized=function(){return this.app.isMinimized()};
    g.k.Zh=function(){var a=g.sT(this.app,this.playerType);return!!a&&a.Zh()};
    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);a.external_list!==void 0&&(this.app.wj=YA(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.bV(b).videoId||(a.index=b.index)):L0(this.app,{list:a.list,index:a.index,playlist_length:d.length});k0a(this.app.getPlaylist(),a);this.Bc("onPlaylistUpdate")}else this.app.updatePlaylist()};
    g.k.updateVideoData=function(a,b){var c=g.sT(this.app,this.playerType||1);c&&g.sS(c.getVideoData(),a,b)};
    g.k.updateEnvironmentData=function(a){yVa(this.app.U(),a,!1)};
    g.k.Rda=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,b===void 0?!0:b)};
    g.k.getVideoAspectRatio=function(){return this.app.ob().getVideoAspectRatio()};
    g.k.getPreferredQuality=function(){var a=g.sT(this.app);return a?a.getPreferredQuality():"unknown"};
    g.k.getPlaybackQualityLabel=function(a){if(a=g.sT(this.app,a)){var b,c;return((c=(b=a.getVideoData().B)==null?void 0:b.video)==null?void 0:c.qualityLabel)||""}return""};
    g.k.setPlaybackQualityRange=function(a,b,c){var d=g.sT(this.app,this.playerType);d&&g.Fgb(d,g.OO(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.DS.dispatch(a)};
    g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.kf.includes(e)||(c.kf.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Gb(c.kf,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.h7=function(a,b){this.state.j.subscribe(a,b)};
    g.k.nda=function(a,b){this.state.j.unsubscribe(a,b)};
    g.k.Q7=function(a,b){this.cueVideoByPlayerVars(a,b===void 0?1:b)};
    g.k.s$=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,c===void 0?1:c,d)};
    g.k.Yca=function(a,b,c,d){this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d)};
    g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
    g.k.Gh=function(){return g.tT(this).Gh()};
    g.k.Qg=function(){return g.tT(this).Qg()};
    g.k.Qm=function(){return g.tT(this).Qm()};
    g.k.Se=function(){return this.Ei().Se()};
    g.k.wm=function(){var a=g.Ja.apply(0,arguments),b;(b=this.Se()).wm.apply(b,g.ra(a))};
    g.k.Uh=function(){this.Se().Uh()};
    g.k.mQ=function(){this.Se().mQ()};
    g.k.Yh=function(){this.Se().hide()};
    g.k.nM=function(a,b,c,d,e,f,h,l){this.Se().nM(a,b,c,d,e,f,h,l)};
    g.k.rH=function(a,b){this.Se().rH(a,b)};
    g.k.Zx=function(a,b,c,d,e){this.Ei().Zx(a,b,c,d,e)};
    g.k.mH=function(a){this.Se().setEnabled(a)};
    g.k.wz=function(a){this.Ei().wz(a)};
    g.k.uE=function(a,b){this.Ei().uE(a,b)};
    g.k.Xz=function(a,b){this.Ei().Xz(a,b)};
    g.k.xr=function(){this.Ei().xr()};
    g.k.kT=function(a,b){this.Ei().kT(a,b)};
    g.k.jC=ba(5);g.k.kC=ba(7);g.k.Fs=ba(10);g.k.Es=ba(13);g.k.QG=function(a,b){this.Ei().QG(a,b)};
    g.k.Jw=function(){this.Ei().Jw()};
    g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
    g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
    g.k.Rt=function(){var a=g.sT(this.app);return a?a.Rt():""};g.x(g.yT,g.uT);g.k=g.yT.prototype;g.k.ip=function(a,b,c,d,e,f,h){return this.app.ip(a,b,c,d,e,f,h)};
    g.k.JE=function(){return this.app.JE()};
    g.k.Mt=ba(15);g.k.zb=function(){return this.app.zb()};
    g.k.Hf=function(){var a=this.zb().Ge.get("endscreen");return!!a&&a.Hf()};
    g.k.getRootNode=function(){return this.ob().element};
    g.k.U=function(){return this.app.U()};
    g.k.lA=ba(17);g.k.Dm=function(a){return this.app.Dm(a)};
    g.k.Tn=function(){var a;return((a=g.tT(this))==null?void 0:a.Tn())||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.sT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&a===2||g.dT(b)&&a!==1)a:{var d=this.app;b=d.getVideoData();if(d.xe){a=d.xe;d=d.getCurrentTime();if(a.Kn)var e=void 0;else{var f=void 0;a.Vb&&(f=a.D.get(a.Vb));if(!f){f=$X(a,d*1E3);var h=(e=f)==null?void 0:e.cpn;a.Vb?h&&a.Vb!==h&&a.ea.ma("sdai",{cpcnm:h+"_"+a.Vb,cmt:d.toFixed(3)}):a.ea.ma("sdai",{cpcna:h,cmt:d.toFixed(3)})}e=(c=f)==null?void 0:c.videoData}b=e||b}else if(d.wb&&
        d.ub){c=d.wb.getVideoData(a);break a}c=b}else c=b;return c};
    g.k.jk=function(a){return this.app.jk(a)};
    g.k.qk=function(){return this.app.qk()};
    g.k.isHdr=function(){var a=g.sT(this.app);return a?a.isHdr():!1};
    g.k.JQ=function(){return this.app.JQ()};
    g.k.hd=function(){var a=g.tT(this),b=this.getVideoData();a=a?a.kK:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.hd(new g.Ke(a.width,a.height),c))};
    g.k.mC=function(a){this.app.mC(a)};
    g.k.Nf=function(a,b,c,d,e){this.app.Dg(a,b,c,d,e)};
    g.k.Gs=function(a,b){this.app.Gs(a,b)};
    g.k.playVideo=function(a){try{if(this.getPresentingPlayerType()===3){BT(this.app.zb()).gG("control_play");return}if(!a&&this.getPresentingPlayerType()===2){var b=zV(this.app.zb());if(b&&Bkb(b))return}}catch(c){g.jE(c)}this.app.playVideo(a)};
    g.k.stopVideo=function(a){g.sT(this.app,a).stopVideo()};
    g.k.Ro=function(a){g.sT(this.app,a).Ro()};
    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.IG=function(a){this.app.IG(a)};
    g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
    g.k.Nt=function(){var a={},b=g.sT(this.app).Nt();b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
    g.k.KE=function(){return g.sT(this.app).KE()};
    g.k.VE=ba(21);g.k.UL=function(a){this.app.UL(a);a&&Zhb(this.app,a)};
    g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=e===2;if(d&&f||e===3)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&&a==="WL"&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
    g.k.WE=ba(23);g.k.Ho=ba(27);g.k.Qo=function(a){var b=g.sT(this.app);b&&b.Qo(a)};
    g.k.ZA=function(a,b){this.zb().ZA(a,b)};
    g.k.Xk=function(){var a=g.CV(this.zb());return!!a&&a.Xk()};
    g.k.Dp=function(){var a=g.CV(this.zb());return!!a&&a.Dp()};
    g.k.hC=function(a,b,c){var d=g.CV(this.zb());d&&d.hC(a,b,c)};
    g.k.gC=ba(28);g.k.fp=function(){var a=g.sT(this.app);a&&a.fp()};
    g.k.dM=function(a){this.Bc("onVideoAreaChange");this.Bc(a?"onShowControls":"onHideControls")};
    g.k.Vn=function(a,b){var c=g.tT(this);if(c)return c.Vn(a,b);a=this.app.ob().Xh();return new g.Gs(0,0,a.width,a.height)};
    g.k.Hm=function(){return this.app.Hm()};
    g.k.tF=function(){var a=this.zb().Ge.get("heartbeat");return!!a&&a.tF()};
    g.k.ai=function(){var a=this.U();if(a.Sa||a.disableSeek)return!1;var b=g.sT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.ue()||g.RS(c)||this.getPresentingPlayerType()===2&&!this.app.If()||c.Mm()&&this.getPresentingPlayerType(!0)===2||b.Yn()&&this.getPresentingPlayerType()!==3||g.cB(g.sR(a))&&!c.xn||g.rT(this.app)?!1:!0};
    g.k.pF=function(){var a;return((a=g.sT(this.app))==null?void 0:a.pF)||!1};
    g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
    g.k.bv=function(){var a=g.sT(this.app);a&&a.bv()};
    g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
    g.k.lf=function(a,b,c){this.app.vz(a,b,c)};
    g.k.So=function(a,b){this.app.PG(a,b)};
    g.k.sf=function(a,b){Ihb(this.app,a,b)};
    g.k.bK=function(a){var b=g.sT(this.app);return b?b.Bh.bK(a):!1};
    g.k.Ny=function(a){return this.app.Ny(a)};
    g.k.Eg=function(a,b){(b=g.sT(this.app,b))&&b.Eg(a)};
    g.k.Yn=function(){var a=g.sT(this.app);return a?a.Yn():!0};
    g.k.Xw=function(){var a=this.getVideoData();return!!a&&(a.Xw()||!!a.hlsFormats||!!a.Zc)};
    g.k.getPlaybackRate=function(){return g.sT(this.app,1).getPlaybackRate()};
    g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
    g.k.Ke=function(){return this.app.Ke()};
    g.k.Fi=function(){return this.app.Fi()};
    g.k.Gi=function(a){return this.app.Gi(a)};
    g.k.createClientVe=function(a,b,c,d){this.U().Za&&this.app.Pr.createClientVe(a,b,c,d===void 0?!1:d)};
    g.k.createServerVe=function(a,b,c){this.U().Za&&this.app.Pr.createServerVe(a,b,c===void 0?!1:c)};
    g.k.setTrackingParams=function(a,b){this.U().Za&&this.app.Pr.setTrackingParams(a,b)};
    g.k.logClick=function(a,b){this.U().Za&&(this.app.Pr.click(a,b),this.publish("veClickLogged",a))};
    g.k.logVisibility=function(a,b,c){if(this.U().Za){var d=this.app.Pr;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.gE(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.yE(e,[f]):g.zE(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.xE(e,f,void 0,c),d.C.add(a))}};
    g.k.hasVe=function(a){return this.U().Za?this.app.Pr.hasVe(a):!1};
    g.k.destroyVe=function(a){this.U().Za&&this.app.Pr.destroyVe(a)};
    g.k.Uc=function(){return g.sT(this.app)};
    g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
    g.k.qy=function(){this.app.qy()};
    g.k.Sz=function(a,b){return this.app.Sz(a,b)};
    g.k.Hq=function(a){this.app.Hq(a)};
    g.k.cB=function(){this.app.cB()};
    g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
    g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
    g.k.SD=function(a,b,c,d,e,f,h){return this.app.SD(a,b,c,d,e,f,h)};
    g.k.mF=function(a,b,c,d,e,f,h){return this.app.mF(a,b,c,d,e,f,h)};
    g.k.KA=function(){return this.app.KA()};
    g.k.Qu=function(a){this.app.Qu(a)};
    g.k.Ez=function(a,b){b=b===void 0?Infinity:b;this.app.Ez(a===void 0?-1:a,b)};
    g.k.EM=function(a){var b;(b=g.wV(this.zb()))==null||b.EM(a)};
    g.k.MH=function(a,b,c){this.app.MH(a,b,c)};
    g.k.Fr=function(){return this.app.Fr()};
    g.k.nJ=function(a,b,c){this.app.nJ(a,b,c===void 0?0:c)};
    g.k.zo=function(){return this.app.zo()};
    g.k.If=function(){return this.app.If()};
    g.k.Eu=function(a,b,c){return this.app.Eu(a,b,c)};
    g.k.ma=function(a,b,c,d){c=c===void 0?!1:c;var e;(e=g.sT(this.app,d))==null||e.ma(a,b,c)};
    g.k.tR=function(a,b){this.publish("aduxmouseover",a,b)};
    g.k.sR=function(a,b){this.publish("aduxmouseout",a,b)};
    g.k.SR=function(a,b){this.publish("muteadaccepted",a,b)};
    g.k.vF=function(){return this.app.ob().vF()};
    g.k.nC=function(a){this.app.ob().nC(a)};
    g.k.Is=function(a){return a?this.app.DT():(a=g.sT(this.app))?a.Is():!1};
    g.k.mT=function(a){this.app.mT(a)};
    g.k.gB=function(a){var b,c=(b=g.sT(this.app))==null?void 0:b.ya;c&&c.gB(a)};
    g.k.Qs=function(){g.sT(this.app,1).Qs()};
    g.k.qA=function(){var a=g.sT(this.app);return a?a.qA():0};
    g.k.oC=function(a){var b=g.sT(this.app);b&&b.oC(a)};
    g.k.hT=function(a){var b=g.sT(this.app);b&&b.hT(a)};var aZa;g.x($Ya,yB);$Ya.prototype.IE=function(a,b){a=yB.prototype.IE.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.x(g.JT,g.LE);g.k=g.JT.prototype;g.k.show=function(){var a=this.pk();g.LE.prototype.show.call(this);this.Fa&&(this.N.T(window,"blur",this.Mb),this.N.T(document,"click",this.Z5));a||this.publish("show",!0)};
    g.k.hide=function(){var a=this.pk();g.LE.prototype.hide.call(this);bZa(this);a&&this.publish("show",!1)};
    g.k.wd=function(a,b){this.B=a;this.qa.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.OW)),this.OW()):this.Y&&(this.N.Pc(this.Y),this.Y=void 0)};
    g.k.bY=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
    g.k.OW=function(){var a=g.tT(this.J);this.B&&a.Zx(this.element,this.B)};
    g.k.Mb=function(){var a=this.pk();bZa(this);this.qa.hide();a&&this.publish("show",!1)};
    g.k.Z5=function(a){var b=nB(a);b&&(g.Jf(this.element,b)||this.B&&g.Jf(this.B,b)||!g.GF(a))||this.Mb()};
    g.k.pk=function(){return this.Hb&&this.qa.state!==4};g.x(cZa,g.JT);cZa.prototype.wd=function(){g.JT.prototype.wd.call(this);this.dialog.focus()};g.x(g.LT,g.LE);g.LT.prototype.setIcon=function(a){this.updateValue("icon",a)};
    g.LT.prototype.Nj=function(a){this.updateValue("label",a)};
    g.LT.prototype.updateValue=function(a,b){g.LE.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.ZT={I6:15,i6a:14,e9a:13,x6:12,L6:11,J3:10,Q3:9,E3:8,AUDIO:7,SUBTITLES:6,H6:5,SLEEP_TIMER:4,D6:3,TQa: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.x(NT,g.LT);NT.prototype.Mc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
    NT.prototype.D=function(){var a,b,c=(a=this.J.getVideoData())==null?void 0:(b=a.accountLinkingConfig)==null?void 0:b.linked;if(c&&!this.j){var d;a=(d=this.J.getVideoData())==null?void 0:d.accountLinkingConfig;this.setIcon(TE());var e;this.Nj(OT(a==null?void 0:(e=a.menuData)==null?void 0:e.connectedMenuLabel));var f,h,l;this.C=new cZa(this.J,OT(a==null?void 0:(f=a.menuData)==null?void 0:f.connectedDialogTitle),OT(a==null?void 0:(h=a.menuData)==null?void 0:h.connectedDialogMessage),OT(a==null?void 0:
        (l=a.menuData)==null?void 0:l.confirmButtonText));g.M(this,this.C);var m;d=(a==null?void 0:(m=a.menuData)==null?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Eb.Rc(this);this.j=!0}else!c&&this.j&&(this.Eb.ph(this),this.j=!1)};
    NT.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Eb.Mb();this.C&&this.C.wd()};g.x(PT,g.I);PT.prototype.L=function(a){return this.api.L(a)};g.x(QT,PT);QT.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=(b=a.getPlayerResponse())==null?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=(d=a.accountLinkingConfig)==null?void 0:d.alsParam)a.hW=b};
    QT.prototype.setAccountLinkState=function(a){this.api.getVideoData().hW=a;this.api.fp()};
    QT.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.x(eZa,PT);
    eZa.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(b==="part2viewed"){if(c.fW&&g.$C(c.fW),c.YH&&ST(this,c.YH),c.nz)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.v(c.nz),h=f.next();!h.done;h=f.next())ST(this,g.av(h.value,e))}else b==="conversionview"?this.api.Qs():b==="engagedview"&&c.Aj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.$C(g.av(c.Aj,
        e)));c.gW&&(e=c.gW,f=a.getId(),e=qA(e,{label:f}),g.$C(e));switch(b){case "videoplaytime25":c.cW&&ST(this,c.cW);c.PC&&TT(this,c.PC);c.nW&&g.$C(c.nW);break;case "videoplaytime50":c.dW&&ST(this,c.dW);c.RC&&TT(this,c.RC);c.qW&&g.$C(c.qW);break;case "videoplaytime75":c.eW&&ST(this,c.eW);c.TC&&TT(this,c.TC);c.sW&&g.$C(c.sW);break;case "videoplaytime100":c.YV&&ST(this,c.YV),c.NC&&TT(this,c.NC),c.iW&&g.$C(c.iW)}(e=this.api.getVideoData().Gv)&&iZa(this,e,a.getId())&&iZa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
        !d)switch(b){case "videoplaybackstart":var l,m=(l=c.oz)==null?void 0:l.j;m&&ST(this,m);break;case "videoplayback2s":(l=(m=c.oz)==null?void 0:m.C)&&ST(this,l);break;case "videoplayback10s":var n;(l=(n=c.oz)==null?void 0:n.B)&&ST(this,l)}this.api.So([a],1)};g.x(kZa,PT);g.x(mZa,g.W);g.k=mZa.prototype;
    g.k.vD=function(){var a;if(a=this.J.getPresentingPlayerType()!==3&&g.GT(this.J)&&this.J.ob().getPlayerSize().width>=400)if(a=this.Od(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!!((b=a.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)!==!1}if(a)this.j||(this.j=!0,g.KE(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||lZa(this),
        b=this.Od(),this.MV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.KE(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.v(this.B),c=b.next();!c.done;c=b.next())this.Pc(c.value)};
    g.k.MV=function(a){oZa(this)?this.isChecked=a!==1:((a=a!==1)||(g.zB(),a=g.CA("web_autonav_allow_off_by_default")&&!g.AB(0,141)&&g.gA("AUTONAV_OFF_BY_DEFAULT")?!1:!g.AB(0,140)),this.isChecked=a);nZa(this)};
    g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.UL(this.isChecked?2:1);nZa(this);if(oZa(this)){var a=this.Od().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.ib("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.ib("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
    g.k.getValue=function(){return this.isChecked};
    g.k.Od=function(){return this.J.getVideoData(1)};g.x(pZa,PT);g.x(UT,g.LT);UT.prototype.onClick=function(){this.enabled&&(VT(this,!this.checked),this.publish("select",this.checked))};
    UT.prototype.getValue=function(){return this.checked};
    UT.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var rZa=["en-CA","en","es-MX","fr-CA"];g.x($T,UT);$T.prototype.Ta=function(a){a?this.j||(this.Eb.Rc(this),this.j=!0):this.j&&(this.Eb.ph(this),this.j=!1);this.j&&VT(this,QPa())};
    $T.prototype.D=function(){g.Jv(this.element,"ytp-menuitem-highlight-transition-enabled")};
    $T.prototype.C=function(a){var b=QPa();a!==b&&(b=g.zB(),zsa(190,a),zsa(192,!0),b.save(),this.J.ib("cinematicSettingsToggleChange",a))};
    $T.prototype.xa=function(){this.j&&this.Eb.ph(this);UT.prototype.xa.call(this)};g.x(xZa,PT);xZa.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.x(aU,UT);aU.prototype.B=function(a){this.C(a?1:0)};
    aU.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;VT(this,b);this.setEnabled(a)};
    aU.prototype.xa=function(){this.Eb.ph(this);UT.prototype.xa.call(this)};g.x(bU,PT);bU.prototype.getDrcUserPreference=function(){return this.j};
    bU.prototype.setDrcUserPreference=function(a){g.uB("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Uc())&&this.B()&&G_(a))};
    bU.prototype.updateEnvironmentData=function(){this.api.U().Uf=this.j===1};
    bU.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;return c?Zs(c,function(d){var e;return((e=d.audio)==null?void 0:e.j)===!0}):!1};g.x(cU,PT);cU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.sf("embargo",1);var c=b==null?void 0:b.YC.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?zZa(this,c.filter(function(d){return yZa(a,d)})):(b==null?0:b.cueRanges)&&zZa(this,b.cueRanges.filter(function(d){return yZa(a,d)}))};
    cU.prototype.B=function(a){return a.embargo!==void 0};
    cU.prototype.xa=function(){PT.prototype.xa.call(this);this.j={}};g.x(AZa,PT);
    AZa.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||"");c.length>0&&(a.embeds_widget_referrer=c);d.length>0&&(a.embeds_referring_euri=d);b.D&&f.length>0&&(a.embeds_referring_origin=f);e.length>0&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.cB(g.sR(b))&&e.unshift(159628),b=e.join(","),b=g.RA()?b:g.Gg(b,4),a.source_ve_path=b);this.j.length=
        0};g.x(BZa,PT);g.x(CZa,g.I);CZa.prototype.xa=function(){g.I.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.x(EZa,PT);g.x(dU,g.W);dU.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
    dU.prototype.onVideoDataChange=function(a){var b,c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;d&&(b=FZa(d),g.vF(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,IZa(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",tLa(b.label)),HZa(this,a))))};
    dU.prototype.xa=function(){IZa(this);g.W.prototype.xa.call(this)};g.x(JZa,PT);g.x(eU,g.W);eU.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.ib("onFullerscreenEduClicked")};
    eU.prototype.Ta=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.x(fU,PT);fU.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.Lv(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),wT(b.Ua,b.element,b),b.C=!0))};
    fU.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ta())};g.x(KZa,g.W);g.x(NZa,PT);g.x(OZa,PT);g.x(PZa,PT);g.x(gU,PT);gU.prototype.getSphericalProperties=function(){var a=g.DT(this.api.zb());return a?a.getSphericalProperties():{}};
    gU.prototype.setSphericalProperties=function(a){if(a){var b=g.DT(this.api.zb());b&&b.setSphericalProperties(a,!0)}};g.x(QZa,PT);g.k=QZa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,d===void 0?!1:d)};
    g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,c===void 0?!1:c)};
    g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)};
    g.k.logClick=function(a,b){this.api.logClick(a,b)};
    g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)};
    g.k.hasVe=function(a){return this.api.hasVe(a)};
    g.k.destroyVe=function(a){this.api.destroyVe(a)};g.x(hU,PT);hU.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.tT(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Jk;if(d&&a<d.length){d=g.v(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){RZa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.rW)&&a<c.length&&c.forEach(function(f,h){h===a&&RZa(b,f.timeRangeStartMillis,f.title)})}};
    hU.prototype.seekToTimeWithAnimation=function(a,b){g.tT(this.api)&&RZa(this,a,b)};
    hU.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&a.getWatchNextResponse()==null&&(YWa(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};g.x(iU,PT);iU.prototype.updateMetadata=function(){var a=this,b=this.api.getVideoData();if(b!=null&&b.ue()){var c=this.api.U(),d=[],e="";if(!c.ra){var f=UZa(this);g.NF(c)&&f?(d=VZa(f.thumbnailDetails),f.album&&(e=tLa(f.album))):d=[{src:b.gh("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}SZa(this);TZa(this);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.CT(this.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
        jU("nexttrack",b);jU("previoustrack",c)}};
    iU.prototype.xa=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.v("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())jU(b.value,null);PT.prototype.xa.call(this)};g.x(kU,PT);kU.prototype.D=function(a){return a.compositeEmbargo!==void 0};
    kU.prototype.xa=function(){PT.prototype.xa.call(this);this.B.clear()};g.x($Za,PT);g.k=$Za.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.G(function(l){return l.j==1?(f=BV(e.api.zb()))?g.z(l,f.T0([a],b,c,d),3):l.Ia(2):l.j!=2&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
    g.k.updateDownloadState=function(a,b){var c=BV(this.api.zb());return c?c.updateDownloadState(a,b):Promise.reject()};
    g.k.pauseVideoDownload=function(a){var b=BV(this.api.zb());b&&b.nS(a)};
    g.k.resumeVideoDownload=function(a){var b=this,c;return g.G(function(d){return(c=BV(b.api.zb()))?d.return(c.cH(a)):d.return(Promise.reject())})};
    g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
    g.k.refreshAllStaleEntities=function(a){a===void 0&&(a=14400);var b=BV(this.api.zb());return b?b.refreshAllStaleEntities(a):Promise.reject()};
    g.k.setUpPositionSyncInterval=function(a){var b=BV(this.api.zb());b&&b.setUpPositionSyncInterval(a)};g.x(lU,PT);lU.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
    lU.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=(c=a.getPlayerResponse())==null?void 0:(d=c.playabilityStatus)==null?void 0:d.paygatedQualitiesMetadata;d=(e==null?void 0:e.qualityDetails)||[];c=new Map;c=g.db(d)&&!Array.isArray(d)?new Map(Object.entries(d)):new Map(d.map(function(h){return[h.key,h.value]}));
        if(d=e==null?void 0:e.restrictedAdaptiveFormats){e=[];d=g.v(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=YJ(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=GS(a);ZO(e);d=[];e=g.v(e);for(f=e.next();!f.done;f=e.next())f=f.value,WO(a,f,this.api.U().G)===!0&&d.push(f);b=b.concat(a_a(d,!1,c))}a=this.api.KE();b=b.concat(a_a(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=c_a(b),b_a(b),b;a={};b=g.v(b);for(e=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.x(e_a,PT);g.x(mU,g.W);mU.prototype.Ta=function(a){a=a?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":a,title:a});this.api.Uh()};
    mU.prototype.onClick=function(){this.api.togglePictureInPicture()};g.x(f_a,PT);f_a.prototype.createButton=function(){var a=this;this.button=new mU(this.api);g.M(this,this.button);this.api.wz(this.button);this.events.T(this.api,"videodatachange",function(){g_a(a)});
        g_a(this)};g.x(h_a,PT);g.x(pU,g.W);g.k=pU.prototype;g.k.dG=function(){};
    g.k.Mu=function(){};
    g.k.Dy=function(){return!0};
    g.k.iea=function(){if(this.expanded){this.Za.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.Za.hide();this.Cc=34+a;g.Lv(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Cc)+"px";this.eb.start()};
    g.k.m8=function(){this.badge.element.style.width=(this.expanded?this.Cc:34)+"px";this.gb.start()};
    g.k.GK=function(){this.D&&this.J.logVisibility(this.badge.element,this.Dy());this.G&&this.J.logVisibility(this.dismissButton.element,this.Dy()&&this.jM())};
    g.k.dL=function(a){this.Ca=a;oU(this);nU(this);this.Nl()};
    g.k.Uea=function(){g.Lv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
    g.k.jM=function(){return this.ra||this.Ca||!this.Y};
    g.k.Nl=function(){this.Dy()?this.qa.show():this.qa.hide();this.GK()};
    g.k.NV=function(){this.enabled=!1;this.Nl()};
    g.k.Cx=function(a){a?this.G&&this.J.logClick(this.dismissButton.element):this.D&&this.J.logClick(this.badge.element)};
    g.k.Tea=function(){this.Nl()};
    g.k.taa=function(a){this.Ab=a===1;this.Nl();g.Lv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
    g.k.Laa=function(){g.Lv(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Nl()};g.x(qU,g.LE);qU.prototype.I_=function(){this.publish("size-change")};
    qU.prototype.focus=function(){this.content.focus()};
    qU.prototype.D_=function(){this.publish("back")};g.x(g.rU,qU);g.k=g.rU.prototype;g.k.Rc=function(a,b){if(b===void 0?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Qb(this.items,a,j_a);if(b>=0)return;b=~b;g.Nb(this.items,b,0,a);Gf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.RR,this);this.menuItems.publish("size-change")};
    g.k.ph=function(a){a.unsubscribe("size-change",this.RR,this);this.Na()||(g.Gb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
    g.k.RR=function(){this.menuItems.publish("size-change")};
    g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++){var c=this.items[b].element;if(c.getAttribute("role")==="menuitemradio"){if(c.getAttribute("aria-checked")==="true"){a=b;break}}else break}this.items[a].focus()};
    g.k.Qp=function(){return this.items.length};g.x(g.tU,g.JT);g.k=g.tU.prototype;g.k.show=function(){g.JT.prototype.show.call(this);this.DC()};
    g.k.hide=function(){g.JT.prototype.hide.call(this);this.j.length>1&&g.vU(this)};
    g.k.DC=function(){m_a(this);this.Hb&&(k_a(this),g.Us(this.element,this.size))};
    g.k.Zi=function(){var a=this.j.pop();l_a(this,a,this.j[this.j.length-1],!0)};
    g.k.a6=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Mb();a.preventDefault();break;case 37:this.j.length>1&&this.Zi();a.preventDefault();break;case 39:a.preventDefault()}};
    g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
    g.k.xa=function(){g.JT.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.x(wU,g.tU);wU.prototype.open=function(a,b){this.initialize(a.items)&&this.wd(b,!!b)};
    wU.prototype.initialize=function(a){g.sU(this.Pe);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.v(a);for(var c=a.next();!c.done;c=a.next())this.Rc(c.value,b--);return!0};
    wU.prototype.Rc=function(a,b){a.menuNavigationItemRenderer?p_a(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&q_a(this,a.menuServiceItemRenderer,b)};g.x(xU,pU);g.k=xU.prototype;g.k.dG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.Cx(),this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand))};
    g.k.Mu=function(){this.enabled=!1;this.qa.hide()};
    g.k.Dy=function(){return!!this.j&&this.enabled};
    g.k.onVideoDataChange=function(a,b){this.E1(b);if(this.j){this.G1();a:if(!this.isCounterfactual){var c,d,e;this.banner.update({title:(c=this.j)==null?void 0:c.title,subtitle:(d=this.j)==null?void 0:d.subtitle,metadata:(e=this.j)==null?void 0:e.metadataText});var f;this.onClickCommand=g.V((f=this.j)==null?void 0:f.onTap,nE);var h;if(a=g.V((h=this.j)==null?void 0:h.onOverflow,nE))this.N=g.V(a,vob);var l;if((l=this.j)==null?0:l.thumbnailImage){var m,n;h=((m=this.j)==null?void 0:(n=m.thumbnailImage)==
    null?void 0:n.sources)||[];if(h.length===0)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if((p=this.j)==null?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.j)==null?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.j)==null||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.j)==null||!t.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.j)==null?void 0:u.a11yLabel)||"");var w;
        this.Va=(w=this.j)==null?void 0:w.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;s_a(this)}};
    g.k.Jaa=function(){this.isVisible=!0;s_a(this)};
    g.k.Kaa=function(){this.isVisible=!1;s_a(this)};
    g.k.GK=function(){pU.prototype.GK.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)};
    g.k.Cx=function(){pU.prototype.Cx.call(this,!1);this.B&&this.J.logClick(this.banner.element)};
    g.k.b6=function(a){this.K||(this.K=new wU(this.J),g.M(this,this.K));var b,c;if((b=this.N)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()};
    g.k.E1=function(){};
    g.k.G1=function(){};
    g.k.xa=function(){this.J.sf("suggested_action_view_model");pU.prototype.xa.call(this)};g.x(yU,xU);
    yU.prototype.E1=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.V((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,Nob);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.V((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,sob)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null?
        0:l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,((m=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=m.loggingDirectives)==null?void 0:n.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)};
    yU.prototype.G1=function(){var a=[],b,c=g.v(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.NI(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.lf(a)};g.x(t_a,PT);g.x(u_a,PT);u_a.prototype.onVideoDataChange=function(a,b){if(a==="dataloaded"&&this.j){a=this.api.getAvailableAudioTracks();var c=g.v(a);for(a=c.next();!a.done;a=c.next())if(a=a.value,a.getLanguageInfo().getId()===this.j){if(this.api.U().wc()){c=this.api.Uc();var d=void 0;this.api.ma("ats",{cpn:b.clientPlaybackNonce,cmt:(d=c)==null?void 0:d.Ef()})}this.api.setAudioTrack(a);break}}};g.x(g.zU,g.LT);g.k=g.zU.prototype;g.k.open=function(){g.uU(this.Eb,this.B)};
    g.k.Pi=function(a){v_a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Ed(this.Vk(a)),this.C=a)};
    g.k.jO=function(a,b,c){var d=this;b=new g.LT({I:"div",Ka:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Ka:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.Vk(a,!0));b.listen("click",function(){d.rI(a)});
        return b};
    g.k.enable=function(a){this.N?a||(this.N=!1,this.gz(!1)):a&&(this.N=!0,this.gz(!0))};
    g.k.gz=function(a){a?this.Eb.Rc(this):this.Eb.ph(this)};
    g.k.Ig=function(a){this.publish("select",a)};
    g.k.rI=function(a){this.Ig(a)};
    g.k.Vk=function(a){return a.toString()};
    g.k.c6=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())};
    g.k.xa=function(){this.N&&this.Eb.ph(this);g.LT.prototype.xa.call(this);for(var a=g.v(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.x(w_a,g.zU);g.k=w_a.prototype;g.k.Ta=function(){this.Eb.Rc(this);x_a(this);this.Pi(this.RE("Off"));this.options[this.RE("End of video")].Nj(this.D)};
    g.k.Ig=function(a){y_a(this,a);this.Eb.Zi();this.J.ib("onSleepTimerSettingsChanged",this.j[a])};
    g.k.RE=function(a){switch(a){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(a.toString()+" Minutes").toLowerCase()}};
    g.k.onVideoDataChange=function(a){a==="dataloaded"&&x_a(this)};
    g.k.resetSleepTimerMenuSettings=function(){y_a(this,this.RE("Off"))};
    g.k.setSleepTimerTimeLeft=function(a){this.Ed(a)};
    g.k.setVideoTimeLeft=function(a){this.D.Ed(a)};g.x(BU,PT);BU.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
    BU.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)};
    BU.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.x(g.DU,g.DE);g.k=g.DU.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)};
    g.k.cancel=function(){this.C&&(this.C=!1,this.publish("dragend",0,0,null));this.B&&(this.B=!1,this.publish("hoverend",0,0,null),EU(this),CU(this))};
    g.k.Fx=function(a){EU(this);this.T(FU("move"),this.OV);this.T(FU("out"),this.nB);this.T("touchstart",this.wN);this.j&&this.T(FU("down"),this.vN);var b=a.target;a=new g.Ee(a.pageX,a.pageY);this.B=!0;this.publish("hoverstart",a.x,a.y,b);this.publish("hovermove",a.x,a.y,b)};
    g.k.OV=function(a){var b=a.target;a=new g.Ee(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Je(new g.Ee(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
    g.k.nB=function(a){var b=new g.Ee(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Jf(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}EU(this);CU(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
    g.k.Q$=function(a){this.Fx(a);this.vN(a)};
    g.k.vN=function(a){if(typeof a.button!=="number"||a.button===0){EU(this);this.D.T(GU(a.target),FU("move"),this.P$);this.D.T(GU(a.target),FU("up"),this.d6);var b=a.target;if(g.Oc)this.T("dragstart",this.a8);else if(a.preventDefault(),(g.ER||Ks)&&b)a:{for(var c=b;c;){if($ba(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}GU(b).activeElement.blur()}this.C=!0;a=new g.Ee(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}};
    g.k.a8=function(a){a.preventDefault()};
    g.k.P$=function(a){var b=a.target;b===GU(a.target)&&(b=null);a=new g.Ee(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)};
    g.k.d6=function(a){EU(this);this.C=!1;var b=nB(a),c=a.target;a=new g.Ee(a.pageX,a.pageY);b&&g.Jf(this.target,b)?(this.T(FU("move"),this.OV),this.T(FU("out"),this.nB),this.T(FU("down"),this.vN),this.T("touchstart",this.wN),this.publish("dragend",a.x,a.y,c)):(CU(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
    g.k.wN=function(a){var b=a.changedTouches[0];b&&(EU(this),this.Y||(this.T("touchmove",this.Eea),this.T("touchend",this.PV),this.T("touchcancel",this.PV),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.publish("hoverstart",b.pageX,b.pageY,a)),this.publish("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.publish("dragstart",b.pageX,b.pageY,a),this.publish("dragmove",b.pageX,b.pageY,a))))};
    g.k.Eea=function(a){var b=z_a(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.publish("hovermove",b.pageX,b.pageY,a),this.j&&this.publish("dragmove",b.pageX,b.pageY,a))};
    g.k.PV=function(a){var b=z_a(this,a);if(b){EU(this);CU(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.publish("dragend",b.pageX,b.pageY,c));this.publish("hoverend",b.pageX,b.pageY,c)}};
    g.k.xa=function(){this.j&&(g.Oc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");EU(this);g.DE.prototype.xa.call(this)};
    var A_a=!1;g.x(B_a,g.W);B_a.prototype.Yh=function(){this.J.L("player_speedmaster_edu_display_killswitch")?g.Js(this.j,"display","none"):g.Js(this.element,"display","none");this.J.logVisibility(this.j,!1)};g.x(IU,PT);IU.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.Bv(this.delay)};
    IU.prototype.Ea=function(){if(this.D){this.C=!0;this.Fa=this.api.getPlaybackRate();this.Ma=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;a.J.L("player_speedmaster_edu_display_killswitch")?g.Js(a.j,"display",""):g.Js(a.element,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.La);this.api.hideControls();this.api.playVideo();this.N&&(this.N.DA=!0);this.qa&&(this.qa.jK=!0)}};
    IU.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&c.length===2&&a.length===2?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.Ca?this.Z=a:JU(this)}};
    IU.prototype.G=function(){JU(this)};g.x(E_a,PT);E_a.prototype.onVideoDataChange=function(a){a==="newdata"&&this.api.zb().createSubtitlesModuleIfNeeded()};g.x(KU,g.yb);KU.prototype.preventDefault=function(){g.yb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
    KU.prototype.stopPropagation=function(){g.yb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.x(g.LU,tK);g.k=g.LU.prototype;g.k.Tv=function(){return!0};
    g.k.isView=function(){return!1};
    g.k.PS=function(){return!1};
    g.k.Ib=function(){return this.j};
    g.k.Ff=function(){return this.j.src};
    g.k.oI=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
    g.k.RL=function(){this.j.removeAttribute("src")};
    g.k.getPlaybackRate=function(){try{return this.j.playbackRate>=0?this.j.playbackRate:1}catch(a){return 1}};
    g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
    g.k.Pt=function(){return this.j.loop};
    g.k.setLoop=function(a){this.j.loop=a};
    g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
    g.k.isPaused=function(){return this.j.paused};
    g.k.isSeeking=function(){return this.j.seeking};
    g.k.isEnded=function(){return this.j.ended};
    g.k.IJ=function(){return this.j.muted};
    g.k.iC=function(a){QEa();this.j.muted=a};
    g.k.Sw=function(){return this.j.played||$J([],[])};
    g.k.Dh=function(){try{var a=this.j.buffered}catch(b){}return a||$J([],[])};
    g.k.pA=function(){return this.j.seekable||$J([],[])};
    g.k.nI=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
    g.k.getCurrentTime=function(){return this.j.currentTime};
    g.k.setCurrentTime=function(a){this.j.currentTime=a};
    g.k.getDuration=function(){return this.j.duration};
    g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
    g.k.pause=function(){this.j.pause()};
    g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
        return a};
    g.k.Uk=function(){return this.j.readyState};
    g.k.JJ=function(){return this.j.networkState};
    g.k.eh=function(){return this.j.error?this.j.error.code:null};
    g.k.wf=function(){return this.j.error?this.j.error.message:""};
    g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
    g.k.Zh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
    g.k.bv=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
    g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():PEa()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
    g.k.St=function(){var a=this.j;return new g.Ee(a.offsetLeft,a.offsetTop)};
    g.k.getSize=function(){return g.Vs(this.j)};
    g.k.setSize=function(a){g.Us(this.j,a)};
    g.k.getVolume=function(){return this.j.volume};
    g.k.setVolume=function(a){QEa();this.j.volume=a};
    g.k.cP=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)};
    g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
    g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
    g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
    g.k.TD=ba(30);g.k.BH=ba(32);g.k.CH=ba(34);g.k.Hz=ba(36);g.k.yE=function(){return iB(this.j)};
    g.k.gt=function(a){g.Hv(this.j,a)};
    g.k.bF=function(a){return g.Ms(this.j,a)};
    g.k.CQ=function(){return g.Jf(document.body,this.j)};
    g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
    g.k.xa=function(){for(var a=g.v(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);tK.prototype.xa.call(this)};
    g.k.iT=function(a){this.j.disableRemotePlayback=a};MU.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
    MU.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
    MU.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.j=this.data.length-1};g.x(NU,g.I);NU.prototype.start=function(){this.B.start()};
    NU.prototype.stop=function(){this.B.stop()};
    NU.prototype.clear=function(){for(var a=g.v(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
    NU.prototype.sample=function(){for(var a=g.v(this.C),b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new G_a(iqb.has(b)));this.j.get(b).update(c())}this.B.start()};
    var iqb=new Set(["networkactivity"]);G_a.prototype.update=function(a){this.j?(this.buffer.add(a-this.SA||0),this.SA=a):this.buffer.add(a)};
    G_a.prototype.clear=function(){this.buffer.clear();this.SA=0};g.x(RU,g.W);g.x(TU,g.W);TU.prototype.show=function(){g.W.prototype.show.call(this);this.Ta();this.Ua.L("html5_enable_moving_s4n_window")&&g.sI(this.Ua.U())&&this.N()};
    TU.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.D.stop()};
    TU.prototype.Ta=function(){var a=(0,g.fC)(),b=J_a(this.Ua);SU(this.j,b.bandwidth_samples);SU(this.K,b.network_activity_samples);SU(this.C,b.live_latency_samples);SU(this.B,b.buffer_health_samples);var c={};b=g.v(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;this.Y[d]!==e&&(c[d]=" "+String(e));this.Y[d]=e}this.update(c);a=(0,g.fC)()-a>25?5E3:500;this.delay.start(a)};
    TU.prototype.N=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.x(M_a,PT);g.x(UU,g.I);UU.prototype.j=function(){var a=(0,g.fC)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(Uv(jqb,a));a<1&&this.delay.start()};
    var jqb=new Tv(0,0,.4,0,.2,1,1,1),S_a=/[0-9.-]+|[^0-9.-]+/g;g.x(VU,g.W);VU.prototype.onClick=function(){var a=this.api.app;var b=a.L("web_log_theater_mode_visibility")?!a.qk():!a.KQ;a.Ua.ib("SIZE_CLICKED",b);this.api.logClick(this.element)};
    VU.prototype.Ta=function(){g.KE(this,this.api.JQ()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Hb){var a=this.api.qk();this.qk!==a&&this.qC(a)}this.api.logVisibility(this.element,this.Hb)};
    VU.prototype.qC=function(a){var b=a?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.qk==null?this.updateValue("icon",b):R_a(this.transition,this.element,
        b);this.qk=a;b=g.xT(this.api,"Default view","t");var c=g.xT(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.Uh()};g.x(T_a,PT);g.x(U_a,PT);WU.prototype.send=function(a,b){var c;return g.G(function(d){if(d.j==1)return g.Ba(d,2),g.z(d,GA(a,b),4);if(d.j!=2)return d.return(d.B);c=g.Da(d);if(c instanceof FA)throw new qn(pn(wA(c.xhr)),c.message);throw c;})};
    WU.prototype.AE=function(a,b){var c=this,d,e,f,h,l,m;return g.G(function(n){if(n.j==1){var p=new Vo;d=$k(p,1,c.ys);a&&$k(d,2,a);b&&$k(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Lk()},c.j)),2)}e=n.B;f=Jlb(e.xhr.responseText);h=Uj(f,2);if(!h.isEmpty()){if(g.RA()&&tra()<10)throw Error("Unsupported");l=Hg(fda(h));return n.return(lga(l))}m=g.hk(f,Po,1);if(!m)throw Error("Missing field");return n.return(m)})};
    WU.prototype.VX=function(a){var b=this,c,d;return g.G(function(e){if(e.j==1){var f=new Wo;f=$k(f,1,b.ys);c=$k(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Lk()},b.j)),2)}d=e.B;return e.return(Llb(d.xhr.responseText))})};var k3={},Z_a=(k3[1]="pot_ss",k3[2]="pot_sf",k3[3]="pot_se",k3[4]="pot_xs",k3[5]="pot_xf",k3[6]="pot_xe",k3);g.x(XU,PT);XU.prototype.xa=function(){this.G&&(g.BA(this.G),this.G=void 0);PT.prototype.xa.call(this)};
    XU.prototype.QK=function(a){return $_a(this,a)};
    XU.prototype.jU=function(){this.j&&!this.j.isReady()&&YU(this)};g.x(a0a,PT);g.x(ZU,g.I);ZU.prototype.j=function(){for(var a=g.v(g.Ja.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
    ZU.prototype.xa=function(){for(var a=this.features.length-1;a>=0;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.xa.call(this)};$U.prototype.vR=function(){this.B=(0,g.fC)()};
    $U.prototype.reset=function(){this.j=this.B=NaN};
    $U.prototype.AR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});GG("seek",c);g.FG({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||EG("pl_ss",this.B,"seek");EG(b,(0,g.fC)(),"seek")}this.reset()}};g.k=b0a.prototype;g.k.reset=function(){CG(this.timerName)};
    g.k.tick=function(a,b){EG(a,b,this.timerName)};
    g.k.gj=function(a){return IAa(a,this.timerName)};
    g.k.tv=function(a){LK(a,void 0,this.timerName)};
    g.k.infoGel=function(a){g.FG(a,this.timerName)};g.x(f0a,g.DE);g.k=f0a.prototype;g.k.vl=function(a){return this.loop||!!a||this.index+1<this.length};
    g.k.Up=function(a){return this.loop||!!a||this.index-1>=0};
    g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.publish("shuffle")};
    g.k.gh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Da.ra||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.C.length)return xR(this.Da,this.C[0],a)};
    g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
    g.k.onReady=function(a){this.j=a;this.loaded&&g.yA(this.j,0)};
    g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
    g.k.ql=function(){return this.Da.getVideoUrl(g.bV(this).videoId,this.getPlaylistId())};
    g.k.xa=function(){this.j=null;g.vb(this.items);g.DE.prototype.xa.call(this)};var cV=new Map;g.x(g.eV,g.DE);g.k=g.eV.prototype;g.k.create=function(){};
    g.k.load=function(){this.loaded=!0};
    g.k.unload=function(){this.loaded=!1};
    g.k.Th=function(){};
    g.k.fn=function(){return!0};
    g.k.xa=function(){this.loaded&&this.unload();g.DE.prototype.xa.call(this)};
    g.k.qc=function(){return{}};
    g.k.getOptions=function(){return[]};g.x(g.hV,g.I);g.k=g.hV.prototype;g.k.Du=ba(39);g.k.YA=function(){};
    g.k.Os=function(){};
    g.k.Uw=function(){return""};
    g.k.xS=ba(40);g.k.xa=function(){this.Os();g.I.prototype.xa.call(this)};g.x(g.iV,g.hV);g.iV.prototype.Du=ba(38);g.iV.prototype.YA=function(a){if(this.audioTrack)for(var b=g.v(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.gV(this.B,c.value);a()};
    g.iV.prototype.Uw=function(a,b){var c=a.Ce(),d={fmt:b};if(b==="srv3"||b==="3"||b==="json3")g.RA()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.TR(a));this.X.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");this.X.L("web_player_pt_tt")&&(a=g.pA(c).exp||"",a.includes("xpv")||a.includes("xpe"))&&(d.pot=this.videoData.cZ||"",a.includes("xpv")&&(d.potc="1"));Object.assign(d,this.X.j);return qA(c,d)};
    g.iV.prototype.Os=function(){this.j&&this.j.abort()};g.s0a.prototype.Pu=function(a){this.Da.Pu(a)};g.kqb=new Map;g.x(g.mV,g.hV);g.mV.prototype.Du=ba(37);
    g.mV.prototype.YA=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.iZ&&(d.asrs=1);c=qA(c,d);this.Os();this.j=g.EA(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),t=l.getAttribute("lang_default")==="true",u=l.getAttribute("cantran")===
            "true";l=l.getAttribute("vss_id");g.gV(b.B,new g.QR({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:u,vss_id:l,is_default:t}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:e[h].getAttribute("lang_default")==="true"},b.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
        withCredentials:!0})};
    g.mV.prototype.Uw=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.X.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.TR(a));Object.assign(b,this.X.j);return c=qA(c,b)};
    g.mV.prototype.Os=function(){this.j&&this.j.abort()};pV.prototype.resolve=function(a){nV(this,a)};
    pV.prototype.reject=function(a){oV(this,a)};
    pV.prototype.pj=function(a,b){var c=this;if(!a&&!b)return this;if(this.currentState===1)return a?x0a(function(){return a(c.result)}):this;
        if(this.currentState===2)return b?x0a(function(){return b(c.error)}):this;
        var d=new pV(0,{});a?this.onSuccess.push(function(e){try{var f=a(e);nV(d,f)}catch(h){oV(d,h)}}):this.onSuccess.push(function(e){nV(d,e)});
        b?this.onFailure.push(function(e){try{var f=b(e);nV(d,f)}catch(h){oV(d,h)}}):this.onFailure.push(function(e){oV(d,e)});
        return d};tV.prototype.preload=function(a){a=a?z0a(this.capabilities,a):this.capabilities;return a.Md?F0a(this,a).pj(function(){}):qV()};
    tV.prototype.compile=function(a){var b=this;return sV(y0a([{name:"compileStreaming",condition:function(){return!!b.B&&a.streaming},
        func:function(){return rV(WebAssembly.compileStreaming(fetch(b.path)))},
        onFailure:function(){return b.capabilities.streaming=!1}},
        {name:"sync",condition:function(){return a.sync},
            func:function(){return E0a(b).pj(function(c){return new WebAssembly.Module(c)})},
            onFailure:function(){return b.capabilities.sync=!1}},
        {name:"async",condition:function(){return!0},
            func:function(){return E0a(b).pj(function(c){return WebAssembly.compile(c)})},
            onFailure:function(){return b.capabilities.Md=!1}}],void 0,function(c,d,e){g.kE(Error("wasm module compile mode "+d.name+" failure",{cause:e}))}),function(c){throw Error("wasm module compile failure",{cause:c});
    })};
    tV.prototype.instantiate=function(a,b){var c=this;return sV(y0a([{name:"instantiateStreaming",condition:function(){return a.Md&&a.streaming&&!c.B&&!c.j},
        func:function(){return rV(WebAssembly.instantiateStreaming(fetch(c.path),b).then(function(d){c.j=qV(d.module);return{instance:d.instance,Zp:!1}}))},
        onFailure:function(){return c.capabilities.streaming=!1}},
        {name:"sync",condition:function(){return a.Md&&a.sync},
            func:function(){return F0a(c,a).pj(function(d){return{instance:new WebAssembly.Instance(d,b),Zp:!1}})},
            onFailure:function(){return c.capabilities.sync=!1}},
        {name:"async",condition:function(){return a.Md},
            func:function(){return F0a(c,a).pj(function(d){return WebAssembly.instantiate(d,b)}).pj(function(d){return{instance:d,
                Zp:!1}})},
            onFailure:function(){return c.capabilities.Md=!1}},
        {name:"asmjs",condition:function(){return a.yz},
            func:function(){return rV(c.C(b).then(function(d){return{instance:{exports:d},Zp:!0}}))},
            onFailure:function(){return c.capabilities.yz=!1}}],function(d){return c.D(b,d.instance.exports)},function(d,e,f){g.kE(Error("wasm module instantiation mode "+e.name+" failure",{cause:f}))}),function(d){throw Error("wasm module instantiation failure",{cause:d});
    })};G0a.prototype.emscripten_notify_memory_growth=function(){};
    H0a.prototype.proc_exit=function(){};
    H0a.prototype.fd_write=function(a,b,c){if(!this.exports)return 1;a=new Uint32Array(this.exports.memory.buffer,b,c*2);b=[];for(var d=0;d<c;++d){var e=new Uint8Array(this.exports.memory.buffer,a[d*2],a[d*2+1]);e=g.vN(e);b.push(e)}return b.reduce(function(f,h){return f+h.length},0)};var B0a;uV.prototype.WI=function(a){if(a.buffer!==this.exports.memory.buffer){var b=this.exports.malloc(a.byteLength);b=new Uint8Array(this.exports.memory.buffer,b,a.byteLength);b.set(a);return b}};
    uV.prototype.lR=function(a){if(a.buffer===this.exports.memory.buffer){var b=a.slice();this.exports.free(a.byteOffset);return b}};
    var khb="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);vV.yQ(uV,{WI:function(a){return{profile:"copyj2w",qt:a===void 0?0:Math.ceil(a.byteLength/16)}},
        lR:function(a){return{profile:"copyw2j",qt:a===void 0?0:Math.ceil(a.byteLength/16)}}});g.x(K0a,g.I);g.k=K0a.prototype;g.k.createSubtitlesModuleIfNeeded=function(){O0a(this)&&xV(this,"captions");return!!g.wV(this)};
    g.k.pH=function(){return this.J.getVideoData().pH()};
    g.k.tT=function(){return this.J.getVideoData().tT()};
    g.k.wX=function(){var a=this.Ge.get("heartbeat");xV(this,"heartbeat",!1,!0,this.wX);!a&&this.Ge.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
    g.k.XI=function(){xV(this,"annotations_module",!0,void 0,this.XI);var a=this.Ge.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
    g.k.MO=function(){if(!this.Ge.get("ad"))try{L0a(this)?xV(this,"ad",!1,!0,this.MO):this.J.Eg("ad")}catch(a){this.J.Eg("ad"),g.jE(a)}};
    g.k.Fi=function(){return this.B};
    g.k.Ir=function(){var a={},b=g.wV(this);b&&Object.assign(a,b.Ir());return a};
    g.k.ZA=function(a,b){Object.assign(this.B,a||null);Object.assign(this.aJ,b||null)};
    g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.XS(a)&&!g.CV(this)&&this.XI()};
    g.k.xa=function(){g.I.prototype.xa.call(this);yV(this,1,!0);for(var a=g.v(Object.entries(b1a)),b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&cV.delete(b)}this.D.clear()};
    var l3={},b1a=(l3.ad="ad.js",l3.annotations_module="annotations_module.js",l3.asmjs="asmjs.js",l3.creatorendscreen="annotations_module.js",l3.embed="embed.js",l3.endscreen="endscreen.js",l3.heartbeat="heartbeat.js",l3.inline_preview="inline_preview.js",l3.kids="kids.js",l3.remote="remote.js",l3.miniplayer="miniplayer.js",l3.offline="offline.js",l3.captions="captions.js",l3.unplugged="unplugged.js",l3.ux="ux.js",l3.webgl="webgl.js",l3.ypc="ypc.js",l3.ypc_clickwrap="ypc_clickwrap.js",l3.yto="yto.js",
        l3),X0a="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.x(d1a,g.DE);g.k=d1a.prototype;g.k.e6=function(a){a=new g.Ee(a.pageX,a.pageY);if(!Je(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;DV(this,b,!0)}};
    g.k.R$=function(){this.K&&DV(this,8,!0);DV(this,2,!1)};
    g.k.Fx=function(a){var b=new g.Ee(a.pageX,a.pageY);Je(b,this.D)||(this.D=b,(a=a.target)&&this.LI(a)&&(DV(this,4,!0),this.j.Pc(this.C),this.C=this.j.T(this.target,"mouseover",this.nB),this.N=this.j.T(this.target,"mouseout",this.nB)))};
    g.k.nB=function(a){a=a.relatedTarget;a&&this.LI(a)||(this.D=new g.Ee(NaN,NaN),e1a(this))};
    g.k.k$=function(){DV(this,1,!0)};
    g.k.w8=function(a){a=a.target;a instanceof Element&&!(a.tabIndex>0)||DV(this,1,!0)};
    g.k.QV=function(){this.K=!0;this.j.Pc(this.G);this.G=this.j.T(document,"mouseup",this.f6)};
    g.k.f6=function(){this.K=!1;DV(this,8,!1);this.j.Pc(this.G);this.G=this.j.T(this.target,"mousedown",this.QV)};
    g.k.RV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ca=a.identifier,this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchend",this.g6,void 0,!0),DV(this,1024,!0)};
    g.k.g6=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ca){var d=c;break}}d&&(this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.RV,void 0,!0),DV(this,1024,!1))};
    g.k.xv=function(){DV(this,2,!0)};
    g.k.resize=function(){g.GJ&&e1a(this)};
    g.k.toString=function(){return g.DE.prototype.toString.call(this)};g.x(g.FV,g.W);g.k=g.FV.prototype;g.k.Sea=function(){this.Ta()};
    g.k.Ta=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.hd();g.Lv(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",W:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
                fill:"#f00","fill-rule":"evenodd"}},{I:"path",W:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.gT(a)?b=[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Jf&&a.Op?b=[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
            W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.Lv(this.element,"ytp-touch-device",b.B),b=[b.K?{I:"svg",W:{height:"100%",version:"1.1",
            viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
                fill:"#212121","fill-opacity":"0.8"}},{I:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
                fill:"#f00"}},{I:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Jf&&a.Op&&(a=a.Op?a.Op:"#1f1f1f",this.Ga("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
    g.k.show=function(){g.W.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
    g.k.n9=function(){this.api.getVideoData().mutedAutoplay||(this.api.cB(),this.api.playVideo())};
    g.k.bda=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.x(g.GV,g.W);g.k=g.GV.prototype;g.k.show=function(){var a=this;this.Hb||(this.D.T(this.api,"videodatachange",function(){g.Bv(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.Bv(a.j)}));
        g.W.prototype.show.call(this)};
    g.k.hide=function(){this.D&&g.rB(this.D);g.W.prototype.hide.call(this)};
    g.k.kc=function(){g.Bv(this.j)};
    g.k.onStateChange=function(){g.Bv(this.j)};
    g.k.Hca=function(){g.Bv(this.j)};
    g.k.onReset=function(){this.B.stop();this.hide();g.Bv(this.j)};
    g.k.Ta=function(){var a=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.zb().Ge.get("ypc"))&&b.tL?b=!0:(b=this.api.U(),b=g.vF(a,2)&&g.zT(this.api)&&b.Jg?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&f1a(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&this.api.getPresentingPlayerType()!==2||g.vF(a,2)&&!g.zT(this.api)&&!this.api.JE()||g.vF(a,1024)?!0:!1);var c=this.api.getVideoData();
        b&&!c.pW?(this.B.show(),this.Xea(this.api.getPlaylist(),c)):(this.B.hide(),g.vF(a,1)||this.B.stop())};
    g.k.Xea=function(){var a=g.Ja.apply(0,arguments),b=this.api.U(),c,d=(c=this.api.getVideoData())==null?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&f1a(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.v(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.pS&&!c.videoId)){e=this.api.ob().getPlayerSize();var f=g.AR();d=e.width*f;f*=e.height;if(d>1280||f>720)if(e=c.gh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.gh("maxresdefault.jpg"))break;
        if(d>320||f>180)if(e=c.gh("sddefault.jpg")||c.gh("hqdefault.jpg")||c.gh("mqdefault.jpg"))break;if(e=c.gh("default.jpg"))break}g.DR(b)&&(b=new Image,b.addEventListener("load",function(){LAa()}),b.src=e?e:"",this.api.Fi().tick("ftr"));
        this.G.style.backgroundImage=e?"url("+e+")":""};g.x(g.HV,g.W);g.HV.prototype.resize=function(){};
    g.HV.prototype.B=function(a){var b=this;this.C=!1;i1a(this);var c=a.eP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Ed(KV(this,"TOO_MANY_REQUESTS_WITH_LINK",d.ql(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.wo(a,{hl:d})),this.Ed(KV(this,"HTML5_SPS_UMP_STATUS_REJECTED",
        a))):this.api.U().L("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.wo(a,{hl:d})),this.Ed(KV(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Ed(g.IV(a.errorMessage)):this.Ed(KV(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.wo(c,
        {hl:a})),this.Ed(KV(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Cc&&!d.D&&h1a(this,function(f){if(g.WT(f,b.api,!yR(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Bc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}}));
        if(this.C){var e=this.Ga("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),h1a(this,function(){b.api.logClick(e)}))}};
    var g1a=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.x(j1a,g.W);g.k=j1a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.ib("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.WT(a,this.J,!0);this.J.logClick(this.element)};
    g.k.onVideoDataChange=function(a,b){l1a(this,b);this.Ee&&m1a(this,this.Ee)};
    g.k.i6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&l1a(this,b);this.j&&m1a(this,a.state);this.Ee=a.state};
    g.k.wd=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
    g.k.Mb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.x(LV,g.W);LV.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
    LV.prototype.onStateChange=function(a){this.Hc(a.state)};
    LV.prototype.Hc=function(a){if(g.vF(a,128))var b=!1;else{var c;b=((c=this.api.Uc())==null?0:c.nu)?!1:g.vF(a,16)||g.vF(a,1)?!0:!1}b?this.j.start():this.hide()};
    LV.prototype.B=function(){this.message.style.display="block"};g.x(MV,g.JT);MV.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(n1a(this),this.wd()):(this.j&&this.logClick(),this.Mb()))};
    MV.prototype.Bk=function(a){this.api.isMutedByMutedAutoplay()&&g.xF(a,2)&&this.Mb()};
    MV.prototype.onClick=function(){this.api.unMute();this.logClick()};
    MV.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.x(g.NV,g.IJ);g.k=g.NV.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.kK=a.getPlayerSize();this.Gc(b);this.Pq();this.kc();this.api.publish("basechromeinitialized",this);this.QP()&&this.api.publish("standardControlsInitialized")};
    g.k.onVideoDataChange=function(a,b){var c=this.HF!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.kK=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.dT(d))&&this.Oq()}c&&(this.HF=b.videoId,c=this.Kg,c.Fa=3E3,DV(c,512,!0),this.Pq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.U1=572)};
    g.k.uba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
    g.k.rC=function(){var a=this.api.Xk()&&this.api.Dp(),b=this.api.KA();return this.KO||a||this.kQ||b};
    g.k.Oq=function(){var a=!this.rC();g.Lv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.dT(b))&&g.Lv(this.api.getRootNode(),"ytp-hide-controls",!a)};
    g.k.LI=function(a){try{if(!g.Jf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!$ba(a);)a=a===this.api.getRootNode()?null:g.If(a);return!!a};
    g.k.uB=function(a){var b=this.api.getRootNode();g.Lv(b,"ytp-autohide",a);g.Lv(b,"ytp-autohide-active",!0);this.TW.start(a?250:100);a&&(this.vM=!1,g.Jv(b,"ytp-touch-mode"));this.LO=!a;this.api.dM(!a)};
    g.k.uR=function(){var a=this.api.getRootNode();g.Lv(a,"ytp-autohide-active",!1)};
    g.k.Yba=function(){this.XT=!0};
    g.k.Xba=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.XT=!1,this.ZT&&this.Pc(this.ZT),this.aG===0&&OV(this,a)?(this.lQ(),this.hJ.start(),this.ZT=this.T(this.api.ob(),"touchmove",this.Yba,void 0,!0)):this.hJ.stop();r1a(this)&&OV(this,a)&&!this.api.U().Z&&p1a(this);var b=this.dU.pk();if(!g.kR(this.api.U())&&hR&&s1a(this,a))b&&a.preventDefault();else if(this.vM=!0,g.Hv(this.api.getRootNode(),"ytp-touch-mode"),this.Kg.xv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
        this.api.getPlayerStateObject(),!(!this.api.ai()||g.vF(b,2)&&g.zT(this.api)||g.vF(b,64))){b=Date.now()-this.JZ;this.aG+=1;if(b<=350){this.qE=!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=(this.aG-1)*10;d>0&&d<b?(this.SG(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>b*2&&d<b*3&&(this.SG(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else EV&&
    this.api.U().Z&&OV(this,a)&&a.preventDefault();this.JZ=Date.now();this.j1.start()}};
    g.k.Wba=function(){this.RK.DA=!1;this.api.publish("rootnodemousedown",this.RK)};
    g.k.Sba=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(s1a(this,a)||this.RK.DA)return}else if(this.RK.DA||s1a(this,a))return;r1a(this)||!OV(this,a)||this.hJ.isActive()||(p1a(this),a.preventDefault());this.qE&&(this.qE=!1)};
    g.k.lQ=function(){};
    g.k.qH=function(){};
    g.k.SG=function(){};
    g.k.QG=function(){};
    g.k.Ms=function(){var a=this.api.getPlayerStateObject();g.vF(a,2)&&g.zT(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.Jn&&(a=this.Jn.C,document.activeElement===a.element&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.cB(),this.api.playVideo(),this.Jn&&document.activeElement===this.Jn.C.element&&((a=this.QP())==null?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
    g.k.Tba=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!q1a(this,nB(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.qE)this.qE=!1;else if(a.Ab&&c!==3)try{this.api.toggleFullscreen().catch(function(d){b.gF(d)})}catch(d){this.gF(d)}};
    g.k.gF=function(a){String(a).includes("fullscreen error")?g.kE(a):g.jE(a)};
    g.k.Uba=function(a){t1a(this,.3,a.scale);a.preventDefault()};
    g.k.Vba=function(a){t1a(this,.1,a.scale)};
    g.k.kc=function(){var a=this.api.ob().getPlayerSize(),b=this.api.getRootNode(),c=a.width>=650;this.Kg.resize();g.Lv(b,"ytp-fullscreen",this.api.isFullscreen());g.Lv(b,"ytp-large-width-mode",c);g.Lv(b,"ytp-small-mode",this.Qg());g.Lv(b,"ytp-tiny-mode",this.rK());g.Lv(b,"ytp-big-mode",this.Gh());this.yg&&this.yg.resize(a)};
    g.k.Bk=function(a){this.Gc(a.state);this.Pq()};
    g.k.kC=ba(6);g.k.BP=function(){var a=!!this.HF&&!this.api.Hf()&&!this.kS,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(Tkb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=zV(this.api.zb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.qI(b.player.U()):!1);return a}return a&&(c.vn||this.api.isFullscreen()||c.Jk)};
    g.k.Pq=function(){var a=this.BP();this.qo!==a&&(this.qo=a,g.Lv(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
    g.k.Gc=function(a){var b=a.isCued()||this.api.Yn()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.aU&&this.Pc(this.aU),this.aU=this.T(this.api.ob(),"touchstart",this.Xba,void 0,b));var c=this.Kg,d=a.isPlaying()&&!g.vF(a,32)||this.api.tF();DV(c,128,!d);c=this.Kg;d=this.api.getPresentingPlayerType()===3;DV(c,256,d);c=this.api.getRootNode();g.vF(a,2)?d=[S2.ENDED]:(d=[],g.vF(a,8)?d.push(S2.PLAYING):g.vF(a,4)&&d.push(S2.PAUSED),g.vF(a,1)&&!g.vF(a,32)&&d.push(S2.BUFFERING),
    g.vF(a,32)&&d.push(S2.SEEKING),g.vF(a,64)&&d.push(S2.UNSTARTED));g.Vb(this.NN,d)||(g.Kv(c,this.NN),this.NN=d,g.Iv(c,d));d=this.api.U();var e=g.vF(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.vF(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Bkb(zV(this.api.zb())))||this.api.KA()||g.kR(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Lv(c,"ytp-hide-controls",!f);g.Lv(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.kQ);
        g.vF(a,128)&&!g.kR(d)?(this.yg||(this.yg=new g.HV(this.api),g.M(this,this.yg),g.FT(this.api,this.yg.element,4)),this.yg.B(a.Og),this.yg.show()):this.yg&&(this.yg.dispose(),this.yg=null)};
    g.k.xr=function(){return this.api.Xk()&&this.api.Dp()?(this.api.hC(!1,!1),!0):this.api.Hf()?(g.AT(this.api,!0),!0):!1};
    g.k.onMutedAutoplayChange=function(a){this.kQ=a;this.Oq()};
    g.k.Gh=function(){return!1};
    g.k.Qg=function(){return!this.Gh()&&(this.api.getPlayerSize().width<this.U1||this.api.getPlayerSize().height<290)};
    g.k.rK=function(){return this.Qg()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
    g.k.Qm=function(){return this.vM};
    g.k.Tn=function(){return null};
    g.k.gY=function(){return null};
    g.k.Vn=function(){var a=this.api.ob().getPlayerSize();return new g.Gs(0,0,a.width,a.height)};
    g.k.handleGlobalKeyDown=function(){return!1};
    g.k.handleGlobalKeyUp=function(){return!1};
    g.k.Zx=function(){};
    g.k.showControls=function(a){a!==void 0&&this.api.ob().dM(a)};
    g.k.xv=function(){};
    g.k.QP=function(){return null};g.x(PV,g.DE);g.k=PV.prototype;g.k.Cm=function(){return 1E3*this.api.getDuration(this.Zo,!1)};
    g.k.stop=function(){this.j&&this.Id.Pc(this.j)};
    g.k.Tc=function(){var a=this.api.getProgressState(this.Zo);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Zo,!1)};this.publish("h")};
    g.k.getProgressState=function(){return this.B};
    g.k.j6=function(a){g.xF(a,2)&&this.publish("g")};g.x(g.QV,g.W);g.QV.prototype.show=function(){g.W.prototype.show.call(this);g.Bv(this.j)};
    g.QV.prototype.hide=function(){this.B.stop();g.W.prototype.hide.call(this)};
    g.QV.prototype.qH=function(a){a?g.vF(this.J.getPlayerStateObject(),64)||RV(this,Iya(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?RV(this,Mya(),"Stop live playback"):RV(this,Fya(),"Pause"))};g.x(w1a,g.W);g.k=w1a.prototype;g.k.mH=function(a){a?this.j=wT(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
    g.k.wd=function(){this.J.U().L("player_new_info_card_format")&&g.Gv(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.kR(this.J.U())||(this.B.show(),g.pD("iv-button-shown"))};
    g.k.Mb=function(){g.pD("iv-button-hidden");this.B.hide()};
    g.k.pk=function(){return this.Hb&&this.B.state!==4};
    g.k.xa=function(){this.j&&this.j();g.W.prototype.xa.call(this)};
    g.k.Qaa=function(){g.pD("iv-button-mouseover")};
    g.k.onClicked=function(a){this.J.Xk();var b=g.Gv(this.J.getRootNode(),"ytp-cards-teaser-shown");g.pD("iv-teaser-clicked",b);var c;if((c=this.J.getVideoData())==null?0:g.WS(c)){var d;a=(d=this.J.getVideoData())==null?void 0:g.XS(d);(a==null?0:a.onIconTapCommand)&&this.J.ib("innertubeCommand",a.onIconTapCommand)}else d=a.screenX===0&&a.screenY===0,this.J.hC(!this.J.Dp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.x(x1a,g.W);g.k=x1a.prototype;g.k.U2=function(){this.J.Xk()&&this.J.Dp()&&this.pk()&&this.Mb()};
    g.k.NT=function(){this.Mb();!this.J.Xk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Yg.Mb();g.pD("iv-teaser-clicked",this.j!=null);if(this.onClickCommand)this.J.ib("innertubeCommand",this.onClickCommand);else{var a;((a=this.J.getVideoData())==null?0:g.WS(a))||this.J.hC(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
    g.k.l6=function(){g.pD("iv-teaser-mouseover");this.j&&this.j.stop()};
    g.k.rca=function(a){this.J.U().L("player_new_info_card_format")&&!g.kR(this.J.U())?this.Yg.Mb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Yg.wd();this.j||!a||this.J.Dp()||this.B&&this.B.isActive()||(this.wd(a),g.pD("iv-teaser-shown"))};
    g.k.wd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Pv(a.teaserText));this.D.show();this.B=new g.Av(function(){g.Hv(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.kR(this.J.U())&&this.Yg.Mb();this.xN()},0,this);
        this.B.start();this.Yg.mH(!1);this.j=new g.Av(this.Mb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.TV,this));this.G.push(this.listen("mouseout",this.SV,this))};
    g.k.xN=function(){if(!this.J.U().L("player_new_info_card_format")&&g.kR(this.J.U())&&this.Hb){var a=this.Yg.element.offsetLeft,b=g.tf("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Yg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
    g.k.B7=function(){g.kR(this.J.U())&&this.J.Qg()&&this.Hb&&this.Y.start()};
    g.k.TV=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
    g.k.SV=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
    g.k.eba=function(){this.j&&this.j.stop()};
    g.k.dba=function(){this.Mb()};
    g.k.k6=function(){this.Mb()};
    g.k.Mb=function(){!this.j||this.C&&this.C.isActive()||(g.pD("iv-teaser-hidden"),this.D.hide(),g.Jv(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Av(function(){for(var a=g.v(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.Yg.mH(!0);!this.J.Xk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Yg.Mb()},330,this),this.C.start())};
    g.k.pk=function(){return this.Hb&&this.D.state!==4};
    g.k.xa=function(){var a=this.J.getRootNode();a&&g.Jv(a,"ytp-cards-teaser-shown");g.vb(this.B,this.C,this.j);g.W.prototype.xa.call(this)};var m3={},TV=(m3.BUTTON="ytp-button",m3.TITLE_NOTIFICATIONS="ytp-title-notifications",m3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",m3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",m3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",m3);g.x(y1a,g.W);y1a.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);z1a(this,a)};g.Va("yt.pubsub.publish",g.pD);g.x(g.UV,g.W);g.UV.prototype.D=function(){window.location.reload()};
    g.UV.prototype.j=function(){g.Hv(this.element,"ytp-sb-subscribed")};
    g.UV.prototype.B=function(){g.Jv(this.element,"ytp-sb-subscribed")};g.x(E1a,g.W);g.k=E1a.prototype;g.k.waa=function(a){this.api.logClick(this.B);var b=this.api.U();b.B||b.Wa?I1a(this)&&(this.isExpanded()?this.BO():this.gP()):g.Qe(D1a(this));a.preventDefault()};
    g.k.QS=function(){H1a(this);this.channel.classList.remove("ytp-title-expanded")};
    g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
    g.k.gP=function(){if(I1a(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.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.j&&a.Xl&&a.subscribed&&(this.j.show(),
        this.api.logVisibility(this.j.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
    g.k.BO=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.KE(this,!this.api.hd());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Ab&&!!d.profilePicture;this.api.getPresentingPlayerType()===2?this.D=e&&!!d.isListed&&!!d.author:g.kR(c)&&(this.D=e&&!g.gT(d)&&!c.C&&!(c.Z&&this.api.getPlayerSize().width<200));c=b.profilePicture;a=g.kR(a)?b.expandedTitle:b.author;c=c===void 0?"":c;a=a===void 0?"":a;this.D?(this.K!==c&&(this.B.style.backgroundImage="url("+c+")",this.K=
        c),this.updateValue("channelLogoLabel",g.UI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Hv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Jv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Ol);this.updateValue("expandedTitle",b.expandedTitle);this.updateValue("expandedSubtitle",b.expandedSubtitle)};
    g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.B,this.D&&a)};g.x(VV,g.LT);VV.prototype.j=function(a){a.defaultPrevented||a.keyCode!==39||(this.element.click(),a.preventDefault())};g.x(J1a,g.W);g.k=J1a.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.m6=function(a){var b=nB(a),c=g.Jf(this.closeButton.element,b),d=g.Jf(this.element,b);a=this.j&&g.Jf(this.j,b)&&g.GF(a);b&&(d||a)&&!c||this.hide()};
    g.k.n6=function(){B1a(g.wR(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.Qi};this.updateValue("icon",Gya());this.updateValue("watchingAsUsername",g.UI("Watching as $USER_NAME",b));a.Qi?this.updateValue("watchingAsEmail",g.UI("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.x(L1a,g.rU);g.k=L1a.prototype;g.k.E7=function(){this.Eb.Mb()};
    g.k.Baa=function(){uZa(this.Qz.element)};
    g.k.Maa=function(){XV(this,this.J.getDebugText(!0))&&RV(this.le,rya())};
    g.k.Naa=function(){XV(this,this.J.getVideoEmbedCode())&&RV(this.le,vya());this.J.logClick(this.Pn.element);Bza("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
    g.k.Oaa=function(){XV(this,this.J.getVideoUrl(!0,!0))&&RV(this.le,TE());this.J.logClick(this.getVideoUrl.element);Bza("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
    g.k.Paa=function(){XV(this,this.J.getVideoUrl(!1,!0))&&RV(this.le,TE());this.J.logClick(this.Wn.element);Bza("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
    g.k.onLoopChange=function(a){var b;(b=this.Al)==null||VT(b,a)};
    g.k.Xaa=function(){this.J.setLoopVideo(this.Al.getValue());this.Eb.Mb();this.J.logClick(this.Al.element)};
    g.k.Oba=function(a){this.J.reportPlaybackIssue();if(g.WT(a,this.J,!yR(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.Bc("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Eb.Mb()};
    g.k.ica=function(){g.nT(this.J,"isVideoInfoVisible",[])?g.nT(this.J,"hideVideoInfo",[]):g.nT(this.J,"showVideoInfo",[]);this.Eb.Mb()};
    g.k.hca=function(){this.Il&&(this.OH||(this.OH=new J1a(this.J,this.Il.element),g.M(this,this.OH),g.FT(this.J,this.OH.element,4)),this.OH.show(),this.Eb.Mb(),this.J.logClick(this.Il.element))};
    g.k.onVideoDataChange=function(a,b){this.nH(b)};
    g.k.nH=function(a){var b=this.J.U(),c=this.J.getPresentingPlayerType()===2,d=!c||a.isListed;d=!b.ra&&!!a.videoId&&d;b.playerStyle!=="play"?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.Ma&&(b.partnerid=a.Ma),b=g.wo("//support.google.com/googleplay/",b));g.KE(this.Pn,d&&a.allowEmbed);g.KE(this.getVideoUrl,d);g.KE(this.Wn,d&&
        !a.isLivePlayback);this.TG.Ed(b,"href");var e;(e=this.Al)==null||g.KE(e,!a.isLivePlayback&&!c);var f;(f=this.Il)==null||g.KE(f,!c)};
    g.k.Mc=function(a){g.rU.prototype.Mc.call(this,a);this.J.logVisibility(this.Pn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.Wn.element,a);this.Al&&this.J.logVisibility(this.Al.element,a);this.Il&&this.J.logVisibility(this.Il.element,a)};g.x(O1a,g.tU);g.k=O1a.prototype;g.k.p6=function(a){var b=nB(a);if(!(b&&(Mf(b,"a")||Mf(b,null,"ytp-no-contextmenu"))||this.Hb)){var c;this.Ca=(a=(c=a.touches)==null?void 0:c.item(0))?new g.Ee(a.clientX,a.clientY):new g.Ee(0,0);this.ra.start()}};
    g.k.l0=function(){this.ra.stop()};
    g.k.wca=function(){this.open(this.Ca)};
    g.k.bY=function(){if(this.C&&M1a(this.C)){var a=M1a(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 L1a(this.J,this,this.le),g.M(this,this.C),g.uU(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.tU.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Mc(!0)};
    g.k.hide=function(){N1a(this);g.tU.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Mc(!1)};
    g.k.zaa=function(a){var b=nB(a);this.Hb||b&&(Mf(b,"a")||Mf(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ee(a.pageX,a.pageY)))};
    g.k.wd=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ee(b.x,b.y))}g.tU.prototype.wd.call(this,a)};
    g.k.open=function(a){P1a(this);var b=this.J.getVideoData();g.Lv(this.element,"ytp-dni",b.Jf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.tU.prototype.wd.call(this);var c=document.body;b=new Bs(0,Infinity,Infinity,0);var d=lf(c);for(var e=d.j.body,f=d.j.documentElement,h=Wba(d.j);c=qia(c);)if((!g.Oc||c.clientHeight!=0||c!=e)&&c!=e&&c!=f&&Os(c,"overflow")!="visible"){var l=g.Ss(c),m=new g.Ee(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=b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,(e&65)==65&&(a.x<d.left||a.x>=d.right)&&(e&=-2),(e&132)==132&&(a.y<d.top||a.y>=d.bottom)&&(e&=
        -5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));d=new g.Gs(0,0,0,0);d.left=
        a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Qs(this.element,new g.Ee(d.left,d.top));g.rB(this.D);this.D.T(document,"contextmenu",this.Gaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.o6)};
    g.k.Gaa=function(a){if(!a.defaultPrevented){var b=nB(a);g.Jf(this.element,b)||this.Mb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
    g.k.onFullscreenToggled=function(){this.Mb();P1a(this)};
    g.k.o6=function(){this.Mb()};g.x(YV,g.W);YV.prototype.onClick=function(){var a=this,b,c,d,e;return g.G(function(f){if(f.j==1)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,S1a(a,e),2);f.B&&R1a(a);a.api.logClick(a.element);g.Aa(f)})};
    YV.prototype.Ta=function(){this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=Q1a(this);g.Lv(this.element,"ytp-copylink-button-visible",this.visible);
        g.KE(this,this.visible);this.tooltip.Uh();this.api.logVisibility(this.element,this.visible&&this.Z)};
    YV.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
    YV.prototype.xa=function(){g.W.prototype.xa.call(this);g.Jv(this.element,"ytp-copylink-button-visible")};g.x(ZV,g.W);ZV.prototype.show=function(){g.W.prototype.show.call(this);g.Bv(this.B)};
    ZV.prototype.hide=function(){this.D.stop();this.C=0;g.Jv(this.element,"ytp-chapter-seek");g.Jv(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
    ZV.prototype.SG=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Dv(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"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";a===1?(this.j.style.left="",this.j.style.right=e+"px"):a===-1&&(this.j.style.right="",this.j.style.left=e+"px");var h=f*
        2.5;f=h/2;var l=this.Ga("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";a===1?(a=this.J.ob().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):a===-1&&(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.Ga("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");T1a(this,this.G?this.C:d)};g.x(V1a,pU);g.k=V1a.prototype;g.k.q6=function(a){this.La||(this.La=new wU(this.J),g.M(this,this.La));var b,c;if((b=this.Bb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.La.open(this.Bb.menu.menuRenderer,a.target),a.preventDefault()};
    g.k.Raa=function(){this.J.ib("innertubeCommand",this.Zc);this.J.logClick(this.infoButton.element)};
    g.k.Dy=function(){return!!this.j};
    g.k.jM=function(){return!!this.j};
    g.k.dG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Dc&&this.J.ib("innertubeCommand",this.Dc),this.Cx(!1))};
    g.k.Mu=function(){this.Cx(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.YB()};
    g.k.NV=function(){this.YB();cW(this)};
    g.k.Uda=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.YB();c=g.v(this.Fa);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=(f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=((f=e)==null?void 0:(h=f.bannerData)==null?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();oU(this);g.KE(this.Ea,!d.stayInApp);g2a(this);X1a(this);bW(this);this.Dc=g.V(d.onTapCommand,nE);if(e=g.V(d.menuOnTap,nE))this.Bb=g.V(e,vob);e=void 0;this.banner.update({thumbnail:(e=(d.thumbnailSources||[])[0])==null?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:$1a(this),priceDropReferencePrice:a2a(this),promotionText:Z1a(this),priceA11yText:b2a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:c2a(this)});
        l=h=f=e=void 0;((e=d)==null?0:(f=e.hiddenProductOptions)==null?0:f.showDropCountdown)&&((h=d)==null?0:(l=h.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Kb=new g.Av(function(){f2a(b)},1E3),this.Ea.hide(),this.countdownTimer.show(),f2a(this));
        this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&W1a(this)&&(this.Tb=new g.Av(function(){Y1a(b)},1E3),Y1a(this))}}}};
    g.k.YB=function(){this.j&&(this.j=void 0,this.Nl())};
    g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&cW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.V((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,tob);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=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var p;if(h=b==null?void 0:(p=b.dismissButton)==null?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=b==null?void 0:(q=b.dismissButton)==
    null?void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.OE(p));this.Zc=b==null?void 0:b.onClickCommand;this.Fa.length||(e2a(this,n),bW(this));var r;(r=this.Qc)==null||r.call(this);this.Qc=g.DS.subscribe(function(){e2a(c,n);bW(c)})}else{var t;
        (t=this.Qc)==null||t.call(this);this.YB()}};
    g.k.xa=function(){cW(this);g2a(this);X1a(this);pU.prototype.xa.call(this)};g.x(l2a,g.W);l2a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.x(m2a,g.JT);g.k=m2a.prototype;g.k.show=function(){g.JT.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);n2a(this,!0)};
    g.k.hide=function(){g.JT.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);n2a(this,!1)};
    g.k.getId=function(){return this.D};
    g.k.Qp=function(){return this.itemData.length};
    g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.Ql)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.Ql)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.Ql)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.v(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.Ql)==null?0:l.ctaButtons)for(b=g.v(b.Ql.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.V(l.value,
        hnb))l=new l2a(this.J,l,this.j),l.ue&&(this.itemData.push(l),l.Ja(this.items))}};
    g.k.xa=function(){this.hide();g.JT.prototype.xa.call(this)};g.x(q2a,g.W);g.k=q2a.prototype;g.k.onVideoDataChange=function(a,b){p2a(this,b);this.Ee&&s2a(this,this.Ee)};
    g.k.r4=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&p2a(this,b);s2a(this,a.state);this.Ee=a.state};
    g.k.J_=function(a){(this.D=a)?this.hide():this.j&&this.show()};
    g.k.q4=function(){this.B||this.wd();this.showControls=!0};
    g.k.p4=function(){this.B||this.Mb();this.showControls=!1};
    g.k.wd=function(){var a;if((a=this.J)==null?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.J)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.J)==null?0:c.hd())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.vF(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
    g.k.Mb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
    g.k.Yda=function(){this.B=!1;this.showControls||this.Mb()};var lqb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(lqb).reduce(function(a,b){a[lqb[b]]=b;return a},{});
    var mqb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(mqb).reduce(function(a,b){a[mqb[b]]=b;return a},{});
    var nqb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(nqb).reduce(function(a,b){a[nqb[b]]=b;return a},{});var oqb,pqb;oqb=[{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"}];pqb=[{option:0,text:dW(0)},{option:.25,text:dW(.25)},{option:.5,text:dW(.5)},{option:.75,text:dW(.75)},{option:1,text:dW(1)}];
    g.gW=[{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:oqb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:dW(.5)},{option:-1,text:dW(.75)},{option:0,text:dW(1)},{option:1,text:dW(1.5)},{option:2,
            text:dW(2)},{option:3,text:dW(3)},{option:4,text:dW(4)}]},{option:"background",text:"Background color",options:oqb},{option:"backgroundOpacity",text:"Background opacity",options:pqb},{option:"windowColor",text:"Window color",options:oqb},{option:"windowOpacity",text:"Window opacity",options:pqb},{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:dW(.25)},{option:.5,text:dW(.5)},{option:.75,text:dW(.75)},{option:1,text:dW(1)}]}];var qqb=[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.x(y2a,g.IJ);g.k=y2a.prototype;
    g.k.MY=function(a){a.repeat||(this.C.jK=!1);var b=!1,c=a.keyCode,d=nB(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.rT(this.api.app)||qqb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.kf&&!g.rT(this.api.app)&&(e=!1);if(c===9)b=!0;else{if(d)switch(c){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||m!=="option"&&m!=="button"&&m.indexOf("menuitem")!==0||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b=
        d.getAttribute("role")==="slider";break;case 38:case 40:m=d.getAttribute("role"),d=c===38?d.previousSibling:d.nextSibling,m==="slider"?b=!0:e&&(m==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=b=!0):m&&m.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);SV(this.le,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
        SV(this.le,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.ai()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.ai()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&fW(this,!0);(b||h)&&this.Kg.xv();(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.Bc("onKeyPress",a))};
    g.k.OY=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.jK)return b;(c=g.DT(this.api.zb()))&&(c=c.hv)&&c.Hb&&(c.KY(a),b=!0);switch(a){case 9:fW(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().kf){var l,m;a=(l=this.progressBar)==
    null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Ms(a)}}return b};
    g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.jK=!1);var m=!1,n=this.api.U();if(n.kf&&!g.rT(this.api.app))return m;var p=g.DT(this.api.zb());if(p&&(p=p.hv)&&p.Hb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.JY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&xla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!g.rT(this.api.app)||
        qqb.includes(a))){var q=this.api.getVideoData(),r,t;p=(r=this.progressBar)==null?void 0:(t=r.B)==null?void 0:t.isEnabled;r=q?q.Jk:[];t=AY?d:c;switch(a){case 80:b&&!n.Sa&&(RV(this.le,Jya(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Sa&&(RV(this.le,Dya(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.ai()&&(this.api.startSeekCsiAction(),this.j?$V(this.j,-1,10):RV(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",
            W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
        this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.ai()&&(this.api.startSeekCsiAction(),this.j?$V(this.j,1,10):RV(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
        this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.ai()&&(this.api.startSeekCsiAction(),t?(t=v2a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(U1a(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?$V(this.j,-1,5):RV(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
        this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.ai()&&(this.api.startSeekCsiAction(),t?(t=u2a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(U1a(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(this.j!=null?$V(this.j,1,5):RV(this.le,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
        this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),SV(this.le,this.api.getVolume(),!1)):(this.api.mute(),SV(this.le,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Sa:this.Ms(p);break;case 75:m=this.Ms(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),u1a(this.le,!1),m=!0):this.api.ai()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
        (m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),u1a(this.le,!0),m=!0):this.api.ai()&&(this.step(-1),m=!0);break;case 70:qZa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
        break;case 27:p?(this.progressBar.Jw(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.wV(this.api.zb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),v1a(this.le,!n||n&&!n.displayName),m=!0);break;case 79:hW(this,"textOpacity");break;case 87:hW(this,"windowOpacity");break;case 187:case 61:hW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:hW(this,"fontSizeIncrement",!0,!0)}var u;b||c||d||(a>=48&&a<=57?u=a-48:a>=96&&a<=105&&(u=a-96));u!=null&&this.api.ai()&&
    (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(u/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Kg.xv()}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.ai();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,a>0?77:78)}};
    g.k.Ms=function(a){if(!this.api.U().Sa){var b;var c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;if(d){var e;b=((e=g.V(d.miniplayer,Gob))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.ib("onExpandMiniplayer");a?this.progressBar.jP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.le.qH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
    g.k.xa=function(){g.Dv(this.G);g.IJ.prototype.xa.call(this)};g.x(g.iW,g.W);g.iW.prototype.Es=ba(12);g.iW.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.ji.isEmpty();a=g.kR(a)&&g.CT(this.J)&&g.vF(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Qg()&&!a&&c.width>=240&&!g.gT(this.J.getVideoData())&&!b&&!this.j&&!this.J.hd();g.Lv(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Uh();this.J.logVisibility(this.element,this.visible&&this.Z)};
    g.iW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
    g.iW.prototype.xa=function(){g.W.prototype.xa.call(this);g.Jv(this.element,"ytp-overflow-button-visible")};g.x(z2a,g.JT);g.k=z2a.prototype;g.k.s4=function(a){a=nB(a);g.Jf(this.element,a)&&(g.Jf(this.j,a)||g.Jf(this.closeButton,a)||KT(this))};
    g.k.Mb=function(){g.JT.prototype.Mb.call(this);this.J.wm(this.element)};
    g.k.show=function(){this.Hb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.JT.prototype.show.call(this);this.element.setAttribute("aria-modal","true");B2a(this,!0)};
    g.k.hide=function(){g.JT.prototype.hide.call(this);this.element.removeAttribute("aria-modal");B2a(this,!1)};
    g.k.onFullscreenToggled=function(a){!a&&this.pk()&&KT(this)};
    g.k.isEmpty=function(){return this.actionButtons.length===0};
    g.k.focus=function(){for(var a=g.v(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Hb){b.focus();break}};g.x(C2a,g.W);C2a.prototype.onClick=function(a){g.WT(a,this.api)&&this.api.playVideoAt(this.index)};g.x(D2a,g.JT);g.k=D2a.prototype;g.k.show=function(){g.JT.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.RM);this.C.T(this.api,"onPlaylistUpdate",this.RM);this.RM()};
    g.k.hide=function(){g.JT.prototype.hide.call(this);g.rB(this.C);this.updatePlaylist(null)};
    g.k.RM=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ga("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Pc(this.D),this.D=null))};
    g.k.WL=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.UI(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.v(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
        this.j=[];for(d=0;d<c;d++){var e=new C2a(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
    g.k.vca=function(a){var b=this.api.getVideoUrl(!0);g.XT(b,this.api,a)};
    g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.WL,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.WL,this),this.WL()):this.Hb&&this.hide()):this.playlist&&this.WL()};
    g.k.focus=function(){this.selected.focus()};
    g.k.xa=function(){this.hide();g.JT.prototype.xa.call(this)};g.x(jW,g.W);jW.prototype.hide=function(){g.W.prototype.hide.call(this);this.Mc(!1);this.api.Uh()};
    jW.prototype.Ta=function(){var a=g.kR(this.api.U());g.Lv(this.element,"ytp-playlist-menu-button-tiny",this.api.ob().getPlayerSize().width<400&&!a);this.api.hd()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.UI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.UI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Hb||(this.show(),this.api.Uh()),this.visible=
        !0,this.Mc(!0)):this.Hb&&this.hide()};
    jW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
    jW.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.x(E2a,g.W);g.k=E2a.prototype;g.k.u4=function(){this.C?I2a(this):H2a(this)};
    g.k.t4=function(){this.C?(kW(this),this.G=!0):H2a(this)};
    g.k.Y$=function(){this.D=!0;this.jH(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);kW(this);this.j&&this.J.logClick(this.acceptButton)};
    g.k.Faa=function(){this.D=!0;this.jH(2);kW(this);this.j&&this.J.logClick(this.dismissButton)};
    g.k.v4=function(a){if(this.J.getPresentingPlayerType()===1||this.J.getPresentingPlayerType()===2&&this.K){var b=!0,c=g.tf("ytp-ad-overlay-ad-info-dialog-container"),d=nB(a);if(this.B&&d&&g.Jf(this.B,d))this.B=null;else{this.J.getPresentingPlayerType()===1&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
        var e=J2a(this.tooltipRenderer),f;if(((f=this.tooltipRenderer.dismissStrategy)==null?void 0:f.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")e&&(b=b&&!g.Jf(this.element,d));else{var h;((h=this.tooltipRenderer.dismissStrategy)==null?void 0:h.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(b=e?!1:b&&g.Jf(this.element,d))}this.targetElement&&this.Hb&&!c&&(!d||b&&g.GF(a))&&(this.D=!0,kW(this))}}};
    g.k.jH=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if((c=b.impressionEndpoints)==null?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=(e=g.V(d,gnb))==null?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.Dm(),(a==null?0:Uza(d,a.bP))&&KG(a,d,e))}};
    g.k.kc=function(){this.G||(this.targetElement||(this.targetElement=F2a(this)),I2a(this))};
    var G2a={"ytp-settings-button":g.Lya()};g.x(lW,g.W);lW.prototype.onStateChange=function(a){this.Hc(a.state)};
    lW.prototype.Hc=function(a){g.KE(this,g.vF(a,2))};
    lW.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.x(mW,g.W);mW.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.wo(this.api.U().Fa,{focusSearch:"true"}),c={};g.nT(this.api,"addEmbedsConversionTrackingParams",[c]);this.api.L("embeds_web_enable_referring_feature_deprecation")||g.GO(c,"emb_search");b=g.wo(b,c);var d;(c=(d=this.api.getVideoData().K3)==null?void 0:d.params)&&(b=g.wo(b,{bp:c}));g.Qe(b);a.preventDefault()};
    mW.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.kR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.hd()}else a=!1;this.visible=a;g.KE(this,this.visible);g.Lv(this.element,"ytp-search-button-visible",this.visible);g.Lv(this.element,"ytp-show-search-title",!this.api.Qg());this.api.logVisibility(this.element,this.visible&&this.Z)};
    mW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.x(g.nW,g.W);g.k=g.nW.prototype;g.k.Fs=ba(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){L2a(a,f)})}catch(f){f instanceof Error&&L2a(this,f)}else this.Oe.xr(),KT(this.B,this.element,!1);
        this.api.logClick(this.element)};
    g.k.Ta=function(){var a=this.api.U(),b=this.api.hd();g.Lv(this.element,"ytp-show-share-title",g.kR(a)&&!b);this.Oe.Gh()&&b?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Js(this.element,"right",a+"px")):b&&g.Js(this.element,"right","0px");this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
        this.visible=K2a(this);g.Lv(this.element,"ytp-share-button-visible",this.visible);g.KE(this,this.visible);this.tooltip.Uh();this.api.logVisibility(this.element,K2a(this)&&this.Z)};
    g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
    g.k.xa=function(){g.W.prototype.xa.call(this);g.Jv(this.element,"ytp-share-button-visible")};g.x(N2a,g.JT);g.k=N2a.prototype;g.k.w4=function(a){a=nB(a);g.Jf(this.G,a)||g.Jf(this.closeButton,a)||KT(this)};
    g.k.Mb=function(){g.JT.prototype.Mb.call(this);this.tooltip.wm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.v(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.Hb;g.JT.prototype.show.call(this);this.Ta();a||this.api.ib("onSharePanelOpened")};
    g.k.z$=function(){this.Hb&&this.Ta()};
    g.k.Ta=function(){var a=this;g.Hv(this.element,"ytp-share-panel-loading");g.Jv(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&KG(this.api.Dm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Na()||(g.Jv(a.element,"ytp-share-panel-loading"),P2a(a,d))});
        b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.UI("Share link $URL",{URL:b}));uZa(this.j);this.api.logVisibility(this.j,!0)};
    g.k.onFullscreenToggled=function(a){!a&&this.pk()&&KT(this)};
    g.k.focus=function(){this.j.focus()};
    g.k.xa=function(){g.JT.prototype.xa.call(this);O2a(this)};g.x(S2a,pU);g.k=S2a.prototype;g.k.xa=function(){X2a(this);pU.prototype.xa.call(this)};
    g.k.dG=function(a){a.target!==this.dismissButton.element&&(this.Cx(!1),this.J.ib("innertubeCommand",this.onClickCommand))};
    g.k.Mu=function(){this.Wa=!0;this.Cx(!0);this.Nl()};
    g.k.wba=function(a){this.N=a;this.Nl()};
    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,X2a(this),W2a(this,!1),this.B=this.j=!1,pW(this),T2a(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(b==null?0:(c=b.getPlayerResponse())==null?0:(d=c.videoDetails)==null?0:d.isLiveContent)this.Lf(!1);else{var e,f,h;b=g.V((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,
        tob);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=b==null?void 0:b.featuredProductsEntityKey)){f=g.DS.getState().entities;var l;if((l=UN(f,"featuredProductsEntity",e))==null?0:l.productsData){this.Lf(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p;
        this.J.setTrackingParams(this.dismissButton.element,((p=b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,W2a(this,!0),T2a(this),m=V2a(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.W({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.M(this,p),n.push(p),n.push.apply(n,g.ra(m.slice(1)))),this.K=new g.W({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.M(this,this.K),this.Ma.element.append(this.K.element));this.text=g.OE(b.text);
        var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Va=g.OE(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.lf()}i_a(this);oU(this);this.Nl()}};
    g.k.Dy=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Qg()&&!this.Ab&&(this.Y||this.Ca)};
    g.k.dL=function(a){pU.prototype.dL.call(this,a);if(this.j||this.B)this.timing&&oW(this.timing.preview)&&(this.j=!1,pW(this),this.B=!1,pW(this),this.J.sf("shopping_overlay_preview_collapsed"),this.J.sf("shopping_overlay_preview_expanded"),a=qW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),oW(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.sf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.lf([a])),
        this.ra=!0,oU(this);pW(this)};
    g.k.Lf=function(a){(this.Y=a)?(nU(this),oU(this,!1)):(X2a(this),this.Sa.start());this.Nl()};
    g.k.lf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;oW(d)&&(Q2a(d,a),c.push(qW(d.startSec,d.endSec,"shopping_overlay_visible")));oW(e)&&(Q2a(e,a),d=e.startSec+1,c.push(qW(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(qW(d,e.endSec,"shopping_overlay_preview_expanded")));oW(b)&&(Q2a(b,a),c.push(qW(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.lf(c)};g.x(p3a,g.W);
    p3a.prototype.Ta=function(){var a=this.api.U();g.KE(this,g.kR(a)&&this.api.hd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Hb);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Ab&&!!b.profilePicture:g.kR(a)&&(c=!!b.videoId&&!!b.Ab&&!!b.profilePicture&&!g.gT(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.kR(a)?b.expandedTitle:b.author;d=d===void 0?"":d;a=a===
    void 0?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.UI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Hv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Jv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Ol);this.updateValue("expandedTitle",b.expandedTitle)};g.x(rW,g.JT);rW.prototype.show=function(){g.JT.prototype.show.call(this);this.j.start()};
    rW.prototype.hide=function(){g.JT.prototype.hide.call(this);this.j.stop()};
    rW.prototype.Wt=function(a,b){a==="dataloaded"&&((this.yj=b.yj,this.Rf=b.Rf,isNaN(this.yj)||isNaN(this.Rf))?this.C&&(this.J.sf("intro"),this.J.removeEventListener(g.OI("intro"),this.K),this.J.removeEventListener(g.PI("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.OI("intro"),this.K),this.J.addEventListener(g.PI("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.NI(this.yj,this.Rf,{priority:9,namespace:"intro"}),
        this.J.lf([a]),this.C=!0))};g.x(sW,g.W);sW.prototype.onClick=function(){this.J.bv()};
    sW.prototype.Ta=function(){var a=!0;g.kR(this.J.U())&&(a=a&&this.J.ob().getPlayerSize().width>=480);g.KE(this,a);this.updateValue("icon",this.J.Zh()?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
        {I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.x(r3a,g.W);r3a.prototype.xa=function(){this.j=null;g.W.prototype.xa.call(this)};g.x(tW,g.W);tW.prototype.onClick=function(){this.J.ib("innertubeCommand",this.B)};
    tW.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
    tW.prototype.K=function(){this.j.disabled=this.B==null;g.Lv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Tc()};g.x(uW,tW);uW.prototype.onClickCommand=function(a){g.V(a,CS)&&this.Tc()};
    uW.prototype.updateVideoData=function(a,b){var c,d,e;a=g.V((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,yWa);var f;this.B=(f=g.V(a==null?void 0:a.playerBarActionButton,g.$L))==null?void 0:f.command;tW.prototype.K.call(this)};
    uW.prototype.Tc=function(){var a="",b=this.D.j,c,d=((c=this.J.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.J.getProgressState().current*1E3;c=eW(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.ib("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;tW.prototype.N.call(this,a)};g.x(vW,g.W);vW.prototype.G=function(a){g.vF(a.state,32)?u3a(this,this.api.jk()):this.Hb&&(g.vF(a.state,16)||g.vF(a.state,1))||this.j.hide()};
    vW.prototype.Cg=function(){var a=this.api.getPlayerStateObject();(g.vF(a,32)||g.vF(a,16))&&v3a(this)};
    vW.prototype.K=function(){this.C=NaN;v3a(this)};
    vW.prototype.hide=function(){this.B&&u3a(this,null);g.W.prototype.hide.call(this)};g.x(w3a,g.W);g.k=w3a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Ab||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.gF(b)})}catch(b){this.gF(b)}}else KT(this.message,this.element,!0)};
    g.k.gF=function(a){String(a).includes("fullscreen error")?g.kE(a):g.jE(a);this.GR()};
    g.k.GR=function(){this.disable();this.message.wd(this.element,!0)};
    g.k.Rx=function(){hB()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
    g.k.x7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,b=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.GR()}};
    g.k.disable=function(){var a=this;if(!this.message){var b=(fB(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"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.JT(this.J,{I:"div",Ka:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",W:{href:"https://support.google.com/youtube/answer/6276924",
                target:this.J.U().Y},va:b[2]},b[4]]},100,!0);this.message.hide();g.M(this,this.message);this.message.subscribe("show",function(c){a.Oe.uE(a.message,c)});
        g.FT(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=qZa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.KE(this,a&&!b);this.J.logVisibility(this.element,this.Hb)};
    g.k.dn=function(a){if(a){var b={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{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",Ic:!0,S:"ytp-svg-fill",W:{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",Ic:!0,S:"ytp-svg-fill",W:{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",Ic:!0,S:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.xT(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.kE(c)})}else b={I:"svg",
        W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
            V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.xT(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.Se().Uh()};
    g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.xa.call(this)};g.x(wW,g.W);wW.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.J.Ei().Fw;c&&$V(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],this.j<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.ra(a)),g.Bv(this.B))};g.x(xW,tW);xW.prototype.onClickCommand=function(a){g.V(a,rob)&&this.Tc()};
    xW.prototype.updateVideoData=function(){var a,b;this.B=(a=y3a(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;tW.prototype.K.call(this)};
    xW.prototype.Tc=function(){var a="",b=this.D.K,c,d=(c=y3a(this))==null?void 0:c.headerTitle;c=d?g.OE(d):"";var e;d=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.J.getProgressState().current*1E3,e=t2a(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.ib("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));tW.prototype.N.call(this,a)};g.x(yW,g.W);yW.prototype.onClick=function(){this.J.ib("onCollapseMiniplayer");this.J.logClick(this.element)};
    yW.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.KE(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
    yW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.x(z3a,g.W);g.k=z3a.prototype;g.k.FU=function(a){this.visible=a.width>=300||this.Ea;g.KE(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
    g.k.fba=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():KT(this.message,this.element,!0);this.J.logClick(this.element)};
    g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
    g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=d===0?1:a>50?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?C3a(this,a):P_a(this.Fa,function(l){C3a(c,f+(c.G-f)*l)},250);
        this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?D3a(this,d):P_a(this.qa,function(l){D3a(c,h+(c.D-h)*l)},250);
        this.D=d}e.Va&&(e=g.xT(this.J,"Mute","m"),d=g.xT(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Uh())};
    g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
    var A3a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],B3a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
        23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.x(g.zW,g.W);g.zW.prototype.onStateChange=function(a){this.Hc(a.state)};
    g.zW.prototype.Hc=function(a){var b=g.RS(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.vF(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.xT(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.xT(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}a===
    3?this.update({title:b,icon:E3a(a)}):(this.update({title:b}),(b=E3a(a))&&this.j&&this.j!==3?R_a(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Uh();this.j=a}};
    g.zW.prototype.onVideoDataChange=function(){g.Lv(this.element,"ytp-play-button-playlist",g.CT(this.J))};
    g.zW.prototype.Ms=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if((c=this.J.getVideoData())==null?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};GG("direct_playback",b);this.J.Fi().timerName="direct_playback"}else this.j===3&&aV(this.J.Fi());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)===
    "click"&&this.element.blur()};g.x(g.AW,g.W);g.k=g.AW.prototype;g.k.onVideoDataChange=function(){G3a(this);this.D&&(this.Pc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.x4);this.C=H3a(this);F3a(this);this.SM(this.J.ob().getPlayerSize())};
    g.k.SM=function(a){a=a===void 0?this.J.ob().getPlayerSize():a;var b,c=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";a=(g.CT(this.J)||this.j&&g.GT(this.J)&&!this.J.L("web_hide_next_button")||I3a(this))&&!c&&(this.j||a.width>=400);g.KE(this,a);this.J.logVisibility(this.element,a)};
    g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.WT(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(aV(this.J.Fi()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(aV(this.J.Fi()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
    g.k.x4=function(){var a=H3a(this);a!==this.C&&(this.C=a,F3a(this))};
    g.k.xa=function(){this.B&&(this.B(),this.B=null);G3a(this);g.W.prototype.xa.call(this)};g.x(K3a,g.W);g.k=K3a.prototype;g.k.z4=function(a){this.UM(a.pageX);this.TM(a.pageX+a.deltaX);L3a(this)};
    g.k.UM=function(a){this.qa=a-this.La};
    g.k.TM=function(a){a-=this.La;!isNaN(this.qa)&&this.thumbnails.length>0&&(this.Y=a-this.qa,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.N+this.Y,a=Q3a(this,this.C),this.C<=this.j/2&&this.C>=P3a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Js(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),J3a(this,a)):this.C=this.N))};
    g.k.y4=function(){this.ra&&(this.ra.DA=!0);var a=(0,g.fC)()-this.Va<300;if(Math.abs(this.Y)<5&&!a){this.Va=(0,g.fC)();a=this.qa+this.Y;var b=this.j/2-a;this.UM(a);this.TM(a+b);L3a(this);this.api.logClick(this.G)}L3a(this)};
    g.k.zB=function(){BW(this,this.api.getCurrentTime())};
    g.k.play=function(a){this.api.seekTo(Q3a(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.kc=function(a,b){this.La=a;this.j=b;BW(this,this.api.getCurrentTime())};
    g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Sa=this.api.getCurrentTime(),J3a(this,this.Sa),g.Lv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.z4),this.logVisibility(this.isEnabled))};
    g.k.disable=function(){this.isEnabled=!1;this.hide();g.Lv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Pc(this.Ma);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.xa=function(){for(;this.B.length;){var a=void 0;(a=this.B.pop())==null||a.dispose()}g.W.prototype.xa.call(this)};
    g.x(M3a,g.W);g.x(N3a,g.W);g.x(R3a,g.W);g.x(CW,g.W);CW.prototype.Ib=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};U3a.prototype.update=function(a,b,c,d){c=c===void 0?0:c;this.width=b;this.D=c;this.j=b-c-(d===void 0?0:d);this.position=g.ze(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.x(V3a,g.W);g.x(g.FW,g.LE);g.k=g.FW.prototype;
    g.k.W2=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.sf("timedMarkerCueRange");Y3a(this);for(var c=g.v(b.kf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.La[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.La[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.v(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new V3a;h=void 0;f.title=((h=e.title)==null?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
        Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=(l=(h=e.onActive)==null?void 0:h.innertubeCommand)!=null?l:void 0;d4a(this,f)}e4a(this,this.K);a=this.K;f=this.jf;e=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=(n=a[l].j)!=null?n:1E4;h&&h.end>m&&(h.end=m);m=w2a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.lf(e);this.Qf=this.La[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.La[d];p=n=e=m=l=h=void 0;if(d&&
        d.markers){f=(e=(p=d.markersMetadata)==null?void 0:(n=p.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?e:0;e=(h=(m=d.markersMetadata)==null?void 0:(l=m.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&X3a(this);n=[];l&&n.push(l);for(var r=g.v(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var u=Number(t.startMillis);u>=p&&u<=q&&n.push(t)}e>0&&(this.ra.style.height=
        e+"px");p=this.G[m];q=n;t=f;var w=e,A=m===0;A=A===void 0?!1:A;S3a(p,w);r=q;u=p.j;A=A===void 0?!1:A;var C=1E3/r.length,E=[];E.push({x:0,y:100});for(var H=0;H<r.length;H++){var L=(H+.5)*C,N=100-g.ze((r[H].intensityScoreNormalized||0)*100,t/u*100,w/u*100);H!==0||A||E.push({x:0,y:N});E.push({x:L,y:N});H===r.length-1&&E.push({x:1E3,y:N})}E.push({x:1E3,y:100});r=E;q=q.length===0?"":nBa(r);p.C.setAttribute("d",q);p.ue=q!=="";g.Lv(p.api.getRootNode(),"ytp-heat-map",p.ue);n.length>0&&(l=n[n.length-1])}g.GW(this)}e=
        void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.v(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:(h=e.visibleTimeRangeStartMillis)!=null?h:-1,visibleTimeRangeEndMillis:(l=e.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(m=e.decorationTimeMillis)!=null?m:NaN,label:e.label?g.OE(e.label):""});d=f;this.heatMarkersDecorations=d}}b.rW=this.K;g.Lv(this.element,"ytp-timed-markers-enabled",a);return a};
    g.k.kc=function(){g.GW(this);JW(this);e4a(this,this.K);if(this.B){var a=g.Ss(this.element).x||0;this.B.kc(a,this.N)}};
    g.k.onClickCommand=function(a){if(a=g.V(a,CS)){var b=a.key;a.isVisible&&b&&i4a(this,b)}};
    g.k.uca=function(a){this.api.ib("innertubeCommand",this.jf[a.id])};
    g.k.Tc=function(){JW(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.QL()};
    g.k.A4=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.Wt=function(a,b){this.updateVideoData(b,a==="newdata")};
    g.k.v9=function(){this.Wt("newdata",this.api.getVideoData())};
    g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.ue();c&&(fT(a)||o4a(this)?this.kf=!1:this.kf=a.allowLiveDvr,g.Lv(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!fT(a))));z4a(this,this.api.ai());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;NW(this);for(KW(this,this.qa,this.gb);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Bb={};var d;(d=this.B)==null||d.reset();SW(this);g.Lv(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
        EW(this))}else this.QL();this.Yh()}if(a){var e;d=((e=this.Db)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.AWa(e);c=$3a(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.kz)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.AWa(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.Vv=((h=d.visibleOnLoad)==null?void 0:h.key)||e.Vv;h=g.v(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.Bb[d.key]=d.value,
    d.value.onChapterRepeat&&(e.nfa=d.value.onChapterRepeat));e.Vv!=null&&i4a(this,e.Vv);e=!0}var l;if(((l=f.kz)==null?void 0:l.length)>0){l=g.DS.getState().entities;h=g.v(f.kz);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=UN(l,"macroMarkersListEntity",d))==null?void 0:c.markersList;var m=c=void 0;if(((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((m=b)==null?void 0:m.markerType)==="MARKER_TYPE_HEATMAP")this.La[d]=b}e=this.W2()||e}!e&&(l=$3a(f))&&(b4a(this,l),f.Jk=this.j,
        a4a(this));p4a(this,null);a.wU&&this.G.length===0&&(a=a.wU,l=a.key,a.isVisible&&l&&i4a(this,l))}else W3a(this),Y3a(this)}JW(this)};
    g.k.w9=function(a){this.Y&&!g.vF(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.vF(a.state,8)&&this.api.pauseVideo()};
    g.k.GU=function(a){var b=!!this.Db!==!!a,c=this.Db;this.Db=a;p4a(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",Cya()),this.updateValue("clipendicon",Cya()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",uya()),this.updateValue("clipendicon",tya()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
        !0),g.GW(this)),NW(this));KW(this,this.qa,this.gb)};
    g.k.zba=function(a,b,c){var d=g.Ss(this.element),e=IW(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=KF(this.C,Number(c.getAttribute("data-position")),0)*e+g.Ss(this.progressBar).x);this.Za.x=a-d.x;this.Za.y=b-d.y;a=IW(this);c=MW(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:fT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=KF(this.C,m)*IW(this).j),b=this.C.B;
        o4a(this)&&(b=this.C.B);m=f||g.FF(this.kf?c-this.C.j:c-b);b=a.position+this.Tf;c-=this.api.Lc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.jk()){if(this.j.length>1){n=LW(this,this.Za.x,!0);if(!this.Db)for(d=0;d<this.j.length;)g.Lv(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(this.G.length>1)for(d=0;d<this.j.length;d++)g.Lv(this.G[d].element,"ytp-heatmap-hover",d===n)}if(this.K.length>0)for(n=this.Za.x,d=g.v(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=HW(this,e.timeRangeStartMillis/
            (this.C.j*1E3),IW(this)),g.Lv(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.Qf?(n=t2a(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=eW(this.j,c*1E3),n=this.j[n].title):(n=eW(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(l=n?110:126);d=eW(this.j,c*1E3);this.Wa=q4a(this,c,d)?d:q4a(this,c,d+1)?d+1:-1;g.Lv(this.api.getRootNode(),"ytp-progress-bar-snap",this.Wa!==-1&&this.j.length>1);d=!1;
            e=g.v(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=c*1E3;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.FF(h.decorationTimeMillis/1E3),d=!0)}this.Fd!==d&&(this.Fd=d,this.api.logVisibility(this.Dd,this.Fd));g.Lv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=this.tooltip.scale*320;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(EW(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Va>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?PW(this):this.Va}q=void 0;EW(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.logVisibility(this.Xd,this.Fa)));this.tooltip.nM(b,c,m,!!f,l,n,d,q)}else this.tooltip.nM(b,c,m,!!f,l);g.Hv(this.api.getRootNode(),"ytp-progress-bar-hover");n4a(this)};
    g.k.yba=function(){this.Yh();g.Jv(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ea&&(this.Ea=!1,this.api.logVisibility(this.ra,this.Ea));this.Fa&&(this.Fa=!1,this.api.logVisibility(this.Xd,this.Fa))};
    g.k.xba=function(a,b){EW(this)&&this.B&&(this.B.Ea?BW(this.B,this.api.getCurrentTime()):O3a(this.B),this.B.show(),g.Lv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.He&&(this.He.dispose(),this.He=null);this.Uf=b;this.j.length>1&&this.Wa!==-1?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(MW(this,IW(this)),!1,void 0,void 0,7);g.Hv(this.element,"ytp-drag");(this.uf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
    g.k.Aba=function(){if(EW(this)&&this.B){var a=PW(this);this.Va>=a*.5?(this.B.enable(),BW(this.B,this.api.getCurrentTime()),y4a(this,a)):SW(this)}if(g.vF(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.B)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.Wa!==-1)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=MW(this,IW(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.v(this.heatMarkersDecorations);
        for(var c=b.next();!c.done;c=b.next())c=c.value,a*1E3>=c.visibleTimeRangeStartMillis&&a*1E3<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Dd)}g.Jv(this.element,"ytp-drag");this.uf&&!g.vF(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
    g.k.Bba=function(a,b){a=IW(this);a=MW(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;EW(this)&&((c=this.B)==null?0:c.Ea)&&(BW(this.B,a),this.B.isEnabled||(this.Va=g.ze(this.Uf-b-10,0,PW(this)),y4a(this,this.Va)))};
    g.k.Yh=function(){this.tooltip.mQ()};
    g.k.G_=function(){this.Db||(this.updateValue("clipstarticon",sya()),this.updateValue("clipendicon",sya()),g.Hv(this.element,"ytp-clip-hover"))};
    g.k.F_=function(){this.Db||(this.updateValue("clipstarticon",uya()),this.updateValue("clipendicon",tya()),g.Jv(this.element,"ytp-clip-hover"))};
    g.k.QL=function(){this.clipStart=0;this.clipEnd=Infinity;NW(this);KW(this,this.qa,this.gb)};
    g.k.Wea=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ma[c]){var d=g.yf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.Ob[c]=d;g.Fv(d,b.style);r4a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else x4a(this,b)};
    g.k.qda=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())x4a(this,b.value)};
    g.k.Jw=function(a){this.B&&(this.B.onExit(a!=null),SW(this))};
    g.k.jP=function(a){this.B&&(this.B.play(a!=null),SW(this))};
    g.k.xa=function(){z4a(this,!1);g.LE.prototype.xa.call(this)};g.x(TW,g.W);TW.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
    TW.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.KE(this,a&&this.J.ob().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Hb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
                fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.qya())}g.Lv(this.element,"ytp-remote-button-active",this.isActive())}};
    TW.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Eb,b=this.element;if(a.pk())a.Mb();else{a.initialize();a:{var c=g.v(a.Pe.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.priority===1){c=d;break a}c=null}c&&(c.open(),a.wd(b));a.wd(b)}}this.J.logClick(this.element)};g.x(UW,g.W);UW.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.KE(this,a);this.J.logVisibility(this.element,a)};
    UW.prototype.C=function(){if(this.Eb.Hb)this.Eb.Mb();else{var a=g.wV(this.J.zb());a&&!a.loaded&&(a.Th("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Eb.wd(this.element)}};
    UW.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.ET(this.J),e=c&&!!g.DT(this.J.zb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Lv(this.element,"ytp-hdr-quality-badge",a);g.Lv(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.Lv(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.Lv(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.Lv(this.element,"ytp-8k-quality-badge",
        !a&&c==="highres");g.Lv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Lv(this.element,"ytp-3d-badge",!a&&e&&d)};g.x(VW,UT);VW.prototype.isLoaded=function(){var a=g.CV(this.J.zb());return a!==void 0&&a.loaded};
    VW.prototype.Ta=function(){g.CV(this.J.zb())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Eb.Rc(this),this.j=!0):this.j&&(this.Eb.ph(this),this.j=!1);VT(this,this.isLoaded())};
    VW.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)};
    VW.prototype.xa=function(){this.j&&this.Eb.ph(this);UT.prototype.xa.call(this)};g.x(WW,g.zU);WW.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(g.AU(this,g.as(a,this.j)),this.tracks=g.bc(a,this.j,this),this.countLabel.Ed(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Pi(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
    WW.prototype.Ig=function(a){g.zU.prototype.Ig.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Eb.Zi()};
    WW.prototype.j=function(a){return a.toString()};g.x(XW,UT);
    XW.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.GT(this.J))this.j||(this.Eb.Rc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Eb.ph(this);this.j=!1;a=g.v(this.C);for(var b=a.next();!b.done;b=
        a.next())this.Pc(b.value)}};
    XW.prototype.D=function(a){VT(this,a!==1)};
    XW.prototype.onSelect=function(a){this.J.UL(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
    XW.prototype.xa=function(){this.j&&this.Eb.ph(this);UT.prototype.xa.call(this)};g.x(B4a,g.LT);B4a.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.tT(this.J))==null||(c=b.Tn())==null||c.Mb();var d,e;(d=g.tT(this.J))==null||(e=d.gY())==null||e.wd(a.target)};g.x(C4a,g.zU);g.k=C4a.prototype;
    g.k.fD=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Ca=this.J.Nt();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.nT(this.J,"getAvailableQualityData",[]);b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);a[a.length-1]==="auto"&&b.push("auto");this.Fa=new Set(a)}else if(this.G){c=g.nT(this.J,"getAvailableQualityData",[]);b=[];c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]=
        d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.YYa(this.J)&&this.J.Xw()&&b.unshift("missing-qualities");ZYa(this.J)&&b.unshift("inline-survey");g.AU(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Hh();c=!g.BR(this.J.U())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;c=c===void 0?!1:c;a.WY&&(a=a.Ga("ytp-panel-footer"),g.Lv(a,"ytp-panel-hide-footer",c));if(b.length){this.HU();this.enable(!0);return}}this.enable(!1)};
    g.k.HU=function(){if(this.j){var a=this.J.getPreferredQuality();this.Fa.has(a)&&(this.K=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Pi(a),this.Ed(this.Vk(a))):this.Pi(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.K=this.J.getPlaybackQuality(),this.Pi(a),a==="auto"&&this.Ed(this.Vk(a)))};
    g.k.Ig=function(a){if(a!=="missing-qualities"){g.zU.prototype.Ig.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=b==null?void 0:b.quality,d=b==null?void 0:b.formatId,e=b==null?void 0:b.paygatedQualityDetails;b=e==null?void 0:e.endpoint;if(e){var f;e=(f=this.options[a])==null?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if((h=g.V(b,g.anb))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
        d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.V(b,g.anb))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Eb.Mb();this.fD()}};
    g.k.open=function(){for(var a=g.v(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.J.logVisibility((c=b)==null?void 0:c.element,!0))}g.zU.prototype.open.call(this);this.J.logClick(this.element)};
    g.k.jO=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.LT({I:"a",Ka:["ytp-menuitem"],W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Ka:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.Vk(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Y[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.zU.prototype.jO.call(this,a,b,c);f?(this.J.createServerVe(b.element,
        this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",va:"Looks good?"}];c=g.v([!0,!1]);f=c.next();for(e={};!f.done;e={oQ:void 0},f=c.next())e.oQ=f.value,f=new g.W({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.oQ?Bya():wya()],W:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.oQ,m=g.sT(d.J.app);m&&(m.ma("iqsr",{tu:l}),m.getVideoData().x3=!0);d.Eb.Mb();d.fD()}}(e)),a.push(f);
        return new g.LT({I:"div",S:"ytp-menuitem",W:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-menuitem-label"],V:a}]},b)};
    g.k.Vk=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{I:"div",va:"Missing options?"};if(a==="inline-survey")return"";var c=this.G||this.j?[F4a(this,a,b,!1)]:[E4a(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(F4a(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(F4a(this,this.K,b,!0,["ytp-menu-label-secondary"])):c.push(E4a(this,this.K,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.x(YW,g.W);YW.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.j);G4a(this,this.j)};
    YW.prototype.G=function(){this.j=Number(this.B.value);H4a(this,this.j)};g.x(ZW,YW);ZW.prototype.G=function(){YW.prototype.G.call(this);this.C&&(I4a(this),this.qa())};
    ZW.prototype.Y=function(){this.J.setPlaybackRate(this.j,!0)};
    ZW.prototype.updateValues=function(){H4a(this,this.J.getPlaybackRate());I4a(this)};g.x($W,g.W);g.k=$W.prototype;g.k.init=function(){this.By(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)};
    g.k.D4=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.By(this.j+b);a.preventDefault()}};
    g.k.B4=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Y:this.Y;this.By(b);a.preventDefault()};
    g.k.C4=function(a){a=(a-g.Ss(this.D).x)/this.qa*this.range+this.B;this.By(a)};
    g.k.By=function(a,b){b=b===void 0?"":b;a=g.ze(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ea)+"px";this.j=a};
    g.k.focus=function(){this.Ma.focus()};g.x(aX,$W);aX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)};
    aX.prototype.By=function(a){$W.prototype.By.call(this,a,K4a(this,a).toString());this.G&&(J4a(this),this.Fa())};
    aX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();K4a(this,this.j)!==a&&(this.By(a),J4a(this))};g.x(L4a,g.LE);L4a.prototype.focus=function(){this.j.focus()};g.x(M4a,qU);g.x(N4a,g.zU);g.k=N4a.prototype;g.k.Vk=function(a){return a==="1"?"Normal":a.toLocaleString()};
    g.k.Ta=function(){var a=this.J.getPresentingPlayerType();this.enable(a!==2&&a!==3);R4a(this)};
    g.k.gz=function(a){g.zU.prototype.gz.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),R4a(this),P4a(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)||Q4a(this,b);P4a(this,a)};
    g.k.Ig=function(a){g.zU.prototype.Ig.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Eb.Zi()};
    g.k.rI=function(a){bX(this.J)?a!==this.j?g.zU.prototype.rI.call(this,a):(a=new M4a(this.J),g.uU(this.Eb,a)):g.zU.prototype.rI.call(this,a)};g.x(T4a,g.zU);g.k=T4a.prototype;g.k.Pi=function(a){g.zU.prototype.Pi.call(this,a)};
    g.k.IU=function(a){return a.option.toString()};
    g.k.getOption=function(a){return this.settings[a]};
    g.k.Vk=function(a){return this.getOption(a).text||""};
    g.k.Ig=function(a){g.zU.prototype.Ig.call(this,a);this.publish("settingChange",this.K,this.settings[a].option)};g.x(cX,g.rU);cX.prototype.qh=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Iu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Pi(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
    cX.prototype.Ck=function(a,b){this.publish("settingChange",a,b)};g.x(dX,g.zU);dX.prototype.j=function(a){return a.languageCode};
    dX.prototype.Vk=function(a){return this.languages[a].languageName||""};
    dX.prototype.Ig=function(a){this.publish("select",a);this.J.logClick(this.element);g.vU(this.Eb)};g.x(W4a,g.zU);g.k=W4a.prototype;g.k.gD=function(a){return g.gd(a)?"__off__":a.displayName};
    g.k.Vk=function(a){return a==="__off__"?"Off":a==="__translate__"?"Auto-translate":a==="__contribute__"?"Add subtitles/CC":a==="__correction__"?"Suggest caption corrections":(a==="__off__"?{}:this.tracks[a]).displayName};
    g.k.Ig=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.YPa(this.J.U(),this.J.getVideoData());g.RF(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=X4a(this);eX(this,c);g.zU.prototype.Ig.call(this,this.gD(c));var d,e;c=(b=this.J.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)==
    null?void 0:e.openTranscriptCommand;this.J.ib("innertubeCommand",c);this.Eb.Zi();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=X4a(this);eX(this,b);g.zU.prototype.Ig.call(this,this.gD(b));var f,h;b=(c=this.J.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.J.ib("innertubeCommand",b)}else this.J.logClick(this.element),
        eX(this,a==="__off__"?{}:this.tracks[a]),g.zU.prototype.Ig.call(this,a);this.Eb.Zi()}};
    g.k.Ta=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.Kv,d,e=!((d=this.J.getVideoData())==null||!g.eT(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.gD,this);e=g.as(d,this.gD);var m,n;X4a(this)&&((f=b.getPlayerResponse())==null?0:(m=f.captions)==null?0:(n=m.playerCaptionsTracklistRenderer)==
    null?0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.gd(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
        Aaa(l,f)}U4a(this.j,l);e.push("__translate__")}f=this.gD(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.AU(this,e);this.Pi(f);h&&h.translationLanguage?this.j.Pi(this.j.j(h.translationLanguage)):v_a(this.j);a&&this.G.qh(this.J.getSubtitlesUserSettings());this.countLabel.Ed(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
    g.k.E4=function(a){var b=this.J.getOption("captions","track");b=g.jd(b);b.translationLanguage=this.j.languages[a];eX(this,b)};
    g.k.Ck=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}V4a(this,!0);this.K.start();this.G.qh(this.J.getSubtitlesUserSettings())};
    g.k.gca=function(a){a||g.Dv(this.K)};
    g.k.xa=function(){g.Dv(this.K);g.zU.prototype.xa.call(this)};
    g.k.open=function(){g.zU.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.x(Y4a,g.tU);g.k=Y4a.prototype;
    g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.CS=new C4a(this.J,this)}catch(c){g.kE(Error("QualityMenuItem creation failed"))}g.M(this,this.CS);var b=new W4a(this.J,this);g.M(this,b);a.C||(b=new VW(this.J,this),g.M(this,b));a.enableSpeedOptions&&(b=new N4a(this.J,this),g.M(this,b));(g.kR(a)||a.K)&&(a.B||a.Wa)&&(b=new B4a(this.J,this),g.M(this,b));a.Yd&&!a.L("web_player_move_autonav_toggle")&&(a=new XW(this.J,this),g.M(this,a));a=new WW(this.J,this);
        g.M(this,a);this.J.publish("settingsMenuInitialized");A4a(this.settingsButton,this.Pe.Qp())}};
    g.k.Rc=function(a){this.initialize();this.Pe.Rc(a);A4a(this.settingsButton,this.Pe.Qp())};
    g.k.ph=function(a){this.Hb&&this.Pe.Qp()<=1&&this.hide();this.Pe.ph(a);A4a(this.settingsButton,this.Pe.Qp())};
    g.k.wd=function(a){this.initialize();this.Pe.Qp()>0&&g.tU.prototype.wd.call(this,a)};
    g.k.Mb=function(){this.uL?this.uL=!1:g.tU.prototype.Mb.call(this)};
    g.k.show=function(){g.tU.prototype.show.call(this);g.Hv(this.J.getRootNode(),"ytp-settings-shown")};
    g.k.hide=function(){g.tU.prototype.hide.call(this);g.Jv(this.J.getRootNode(),"ytp-settings-shown")};
    g.k.Lf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.x(fX,g.W);fX.prototype.onClick=function(){if($4a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.AB(g.zB(),65);g.BR(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
    fX.prototype.j=function(a){var b,c;(b=g.tT(this.J))==null||(c=b.Tn())==null||c.wd(a)};
    fX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
    fX.prototype.Ta=function(){var a=$4a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.xT(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)(c=this.Ga("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.xT(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Ga("ytp-subtitles-button-icon"))==
    null||d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Uh();c=c&&this.J.ob().getPlayerSize().width>=b;g.KE(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.x(g.hX,g.W);g.k=g.hX.prototype;
    g.k.Tc=function(){var a=this.api.ob().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!jX(this)||!g.vF(this.api.getPlayerStateObject(),64));g.KE(this,b);g.Lv(this.element,"ytp-time-display-allow-autohide",b&&a<400);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);iX(this)&&(c-=this.Db.startTimeMs/1E3);c=g.FF(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=iX(this)?g.FF((this.Db.endTimeMs-
        this.Db.startTimeMs)/1E3):g.FF(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!jX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Tc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Ed(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.vT(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Db!==
        a;this.Db=a;b&&gX(this)};
    g.k.onLoopRangeChange=function(a){var b=this.Db!==a;this.Db=a;b&&(this.Tc(),gX(this))};
    g.k.Dca=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"))&&c===2?this.api.getVideoData(1):b);this.Tc();gX(this)};
    g.k.updateVideoData=function(a){this.sF=a.isLivePlayback&&!a.Bb;this.B=fT(a);this.isPremiere=a.isPremiere;g.Lv(this.element,"ytp-live",jX(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.xa=function(){this.j&&this.j();g.W.prototype.xa.call(this)};g.x(b5a,g.W);g.k=b5a.prototype;g.k.Rx=function(){var a=this.api.Gh();this.C!==a&&(this.C=a,a5a(this,this.api.getVolume(),this.api.isMuted()))};
    g.k.JU=function(a){g.KE(this,a.width>=350)};
    g.k.H4=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;b===37?c=this.volume-5:b===39?c=this.volume+5:b===36?c=0:b===35&&(c=100);c!==null&&(c=g.ze(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
    g.k.F4=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.ze(b/10,-10,10));a.preventDefault()};
    g.k.lca=function(){kX(this,this.j,!0,this.B,this.api.Qm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
    g.k.G4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Ss(this.N).x;this.api.setVolume(g.ze((a-c/2)/(b-c),0,1)*100)};
    g.k.kca=function(){kX(this,this.j,!1,this.B,this.api.Qm());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))};
    g.k.onVolumeChange=function(a){a5a(this,a.volume,a.muted)};
    g.k.pX=function(){kX(this,this.j,this.isDragging,this.B,this.api.Qm())};
    g.k.xa=function(){g.W.prototype.xa.call(this);g.Jv(this.K,"ytp-volume-slider-active")};g.x(lX,g.W);
    lX.prototype.onVideoDataChange=function(){var a=this.api.U();this.kc();this.visible=!!this.api.getVideoData().videoId&&!g.gT(this.api.getVideoData(1));g.KE(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.Hv(this.element,"no-link"));
        b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.wR(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.hT(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.UI("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)};
    lX.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.GF(a),!1,!0,!0);if(g.kR(b)){var d={};g.kR(b)&&g.nT(this.api,"addEmbedsConversionTrackingParams",[d]);this.api.L("embeds_web_enable_referring_feature_deprecation")||(c=g.wo(c,g.GO(d,"emb_logo")))}g.XT(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
    lX.prototype.kc=function(){var a={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
        b=28666,c=this.api.getVideoData();this.api.hd()?a={I:"svg",W:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",W:{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.hT(c)&&(a={I:"svg",W:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",W:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{I:"path",W:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
                fill:"white"}},{I:"path",W:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{I:"path",W:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",W:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
                fill:"white"}},{I:"path",W:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{I:"path",W:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
                fill:"white"}},{I:"path",W:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{I:"path",W:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
                fill:"white"}},{I:"path",W:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
                fill:"white"}},{I:"path",W:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{I:"path",W:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z",
                fill:"white"}}]},b=216163);g.hT(c)?g.Hv(this.element,"ytp-youtube-music-button"):g.Jv(this.element,"ytp-youtube-music-button");a.W=Object.assign({},a.W,{"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)};
    lX.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.x(d5a,g.IJ);g.k=d5a.prototype;g.k.Cg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.vF(this.J.getPlayerStateObject(),2))this.progressBar.Tc(),this.Ca.Tc()};
    g.k.uB=function(){this.kU();this.Kg.B?this.Cg():this.progressBar.Yh()};
    g.k.I4=function(){this.Cg();this.Z.start()};
    g.k.kU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.AR(),c=a.C;a=(c.j-c.B)*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Kg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Cg)):this.ra&&(this.Pc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
    g.k.kc=function(){var a=this.J.Gh(),b=this.J.ob().getPlayerSize(),c=f5a(this),d=Math.max(b.width-c*2,100);if(this.gb!==b.width||this.Za!==a){this.gb=b.width;this.Za=a;var e=g5a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.w4a(this.progressBar,c,e,a);this.J.Se().KU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round((b.height-h5a(this))*.82));c.maxWidth=d;c.maxHeight=a;c.DC();this.kU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&q3a(this.Wa,
        b.height)};
    g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.La.style.background=a.Jf?a.Op:"";this.qa&&x3a(this.qa,a.showSeekingControls);this.Y&&x3a(this.Y,a.showSeekingControls)};
    g.k.Ib=function(){return this.C.element};g.x(i5a,pU);g.k=i5a.prototype;g.k.dG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand),this.Mu())};
    g.k.Mu=function(){this.enabled=!1;this.qa.hide()};
    g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&j5a(this);a=[];var c,d,e,f;if(b=(f=g.V((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,Pob))==null?void 0:f.suggestedActions)for(c=g.v(b),d=c.next();!d.done;d=c.next())(d=g.V(d.value,Qob))&&g.V(d.trigger,Oob)&&a.push(d);if(a.length!==0){c=[];a=g.v(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.V(d.trigger,Oob))f=(f=d.title)?g.OE(f):"View Chapters",
        b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.NI(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.lf(c)}};
    g.k.Dy=function(){return this.enabled};
    g.k.Lf=function(){this.enabled?this.Sa.start():nU(this);this.Nl()};
    g.k.xa=function(){j5a(this);pU.prototype.xa.call(this)};var n3={},mX=(n3.CHANNEL_NAME="ytp-title-channel-name",n3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",n3.LINK="ytp-title-link",n3.SESSIONLINK="yt-uix-sessionlink",n3.SUBTEXT="ytp-title-subtext",n3.TEXT="ytp-title-text",n3.TITLE="ytp-title",n3);g.x(nX,g.W);
    nX.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.GF(a),!1,!0);g.kR(b)&&(b={},g.nT(this.api,"addEmbedsConversionTrackingParams",[b]),this.api.L("embeds_web_enable_referring_feature_deprecation")||(c=g.wo(c,g.GO(b,"emb_title"))));g.XT(c,this.api,a)};
    nX.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:mX.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:mX.CHANNEL_NAME,va:"{{channelName}}",W:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);k5a(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Ab&&c.profilePicture?(this.updateValue("channelLink",
        c.Ab),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):k5a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Jk;g.Lv(this.link,mX.FULLERSCREEN_LINK,c);b.ra||!a.videoId||c||g.gT(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.kR(b)?a.expandedTitle:
        a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.oX,g.W);g.k=g.oX.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:m5a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a};
    g.k.nM=function(a,b,c,d,e,f,h,l){if(!this.La||this.env.Z){this.type===3&&this.Yh();this.type!==1&&(g.Fv(this.element,"ytp-tooltip ytp-bottom"),(t3a(this.api)||this.api.isInline())&&g.Hv(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.jk())&&this.B.subscribe("l",this.N_,this));if(l){var m=g.Vs(this.bg).height||this.Ca;this.Sa.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.Lv(this.text,"ytp-tooltip-text-no-title",
        this.type===1&&!f);this.api.isInline()&&g.Hv(this.text,"ytp-modern-tooltip-text");g.Lv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=iS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=TWa(this.B,c,b));o5a(this,c);if(h)switch(b=g.Vs(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"}n5a(this,!!d,a,e)}};
    g.k.mQ=function(){this.type===1&&this.Yh()};
    g.k.rH=function(a,b){if(this.type)if(this.type===3)this.Yh();else return;l5a(this,a,3,b)};
    g.k.Uh=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&m5a(this))};
    g.k.N_=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,o5a(this,a))};
    g.k.p$=function(){RWa(this.B,this.D,this.N*this.scale)};
    g.k.Yh=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);p5a(this);break;case 3:p5a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.N_,this),this.B=null),this.api.removeEventListener("videoready",this.Fa),this.Ea.stop()}this.type=null;this.Y&&this.K.hide()};
    g.k.wm=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Jf(arguments[a],this.j)&&this.Yh()};
    g.k.xa=function(){this.type!=null&&this.Yh();this.B&&this.B.dispose();g.W.prototype.xa.call(this)};g.x(r5a,g.W);g.k=r5a.prototype;g.k.hD=function(){this.visible=s5a(this);g.KE(this,this.visible);this.icon&&u5a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
    g.k.qe=function(){return this.J.getVideoData().videoId};
    g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.qe();a.Ca?q5a(this):t5a(this,b)};
    g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Ta(2);this.hD()};
    g.k.Ta=function(a,b){var c=this.J.U();u5a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.UI("Added as $USER_NAME",a):g.UI("Watch later as $USER_NAME",a),image:IVa(c)})):this.update({title:"Watch later",image:null});this.J.Uh()};
    g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.x(g.pX,g.NV);g.k=g.pX.prototype;
    g.k.init=function(){var a=this;this.le=new g.QV(this.api);this.Fw=new ZV(this.api);this.ri=new g.W({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.oX(this.api,this);this.channelAvatar=new E1a(this.api);this.title=new nX(this.api);this.Ug=new g.HE({I:"div",S:"ytp-chrome-top-buttons"});this.Yg=new w1a(this.api,this.ri.element);this.Fg=this.api.U().controlsType==="1"?new d5a(this.api,this,this.Kg):null;this.contextMenu=new O1a(this.api,this.le);this.EE=new g.W({I:"div",W:{tabindex:"0"}});this.DE=new g.W({I:"div",
        W:{tabindex:"0"}});var b=this.api.ob(),c=this.api.U(),d=this.api.getVideoData();this.Rr&&(g.Hv(this.api.getRootNode(),"ytp-embed"),g.Hv(this.api.getRootNode(),"ytp-embed-playlist"),this.nK&&(g.Hv(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Hv(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.wO=60,this.xO=89);this.api.U().C&&g.Hv(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Hv(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Hv(this.api.getRootNode(),"ytp-embed-mobile"));
        this.Di=d&&d.getEmbeddedPlayerResponse();g.M(this,this.le);g.FT(this.api,this.le.element,4);g.M(this,this.Fw);g.FT(this.api,this.Fw.element,4);d=new g.W({I:"div",S:"ytp-gradient-top"});g.M(this,d);g.FT(this.api,d.element,1);this.uM=new g.oF(d,250,!0,100);g.M(this,this.uM);g.M(this,this.ri);g.FT(this.api,this.ri.element,1);this.tM=new g.oF(this.ri,250,!0,100);g.M(this,this.tM);g.M(this,this.tooltip);g.FT(this.api,this.tooltip.element,4);var e=new D2a(this.api);g.M(this,e);g.FT(this.api,e.element,5);
        e.subscribe("show",function(m){a.Xz(e,m)});
        this.GH.push(e);this.LB=new jW(this.api,e);g.M(this,this.LB);!this.Rr&&this.LB.Ja(this.ri.element);g.M(this,this.channelAvatar);this.channelAvatar.Ja(this.ri.element);g.M(this,this.title);this.title.Ja(this.ri.element);this.Rr&&(d=new p3a(this.api),g.M(this,d),d.Ja(this.ri.element));g.M(this,this.Ug);this.Ug.Ja(this.ri.element);var f=new N2a(this.api,this);g.M(this,f);g.FT(this.api,f.element,5);f.subscribe("show",function(m){a.Xz(f,m)});
        this.GH.push(f);this.searchButton=new mW(this.api);g.M(this,this.searchButton);this.searchButton.Ja(this.Ug.element);this.hp=new r5a(this.api);g.M(this,this.hp);this.hp.Ja(this.Ug.element);this.shareButton=new g.nW(this.api,this,f);g.M(this,this.shareButton);this.shareButton.Ja(this.Ug.element);this.In=new YV(this.api,this);g.M(this,this.In);this.In.Ja(this.Ug.element);this.Rr&&this.LB.Ja(this.Ug.element);g.M(this,this.Yg);this.Yg.Ja(this.Ug.element);c.vp&&(d=new rW(this.api),g.M(this,d),g.FT(this.api,
            d.element,4));c.C||(d=new x1a(this.api,this.Yg),g.M(this,d),d.Ja(this.Ug.element));this.ji=new z2a(this.api);g.M(this,this.ji);g.FT(this.api,this.ji.element,5);this.ji.subscribe("show",function(){a.Xz(a.ji,a.ji.pk())});
        this.GH.push(this.ji);this.overflowButton=new g.iW(this.api,this.ji);g.M(this,this.overflowButton);this.overflowButton.Ja(this.Ug.element);this.Fg&&g.M(this,this.Fg);c.controlsType==="3"&&(d=new lW(this.api),g.M(this,d),g.FT(this.api,d.element,9));g.M(this,this.contextMenu);this.contextMenu.subscribe("show",this.e3,this);d=new LF(this.api,new PV(this.api));g.M(this,d);g.FT(this.api,d.element,4);this.EE.listen("focus",this.x8,this);g.M(this,this.EE);this.DE.listen("focus",this.y8,this);g.M(this,this.DE);
        var h;(this.tx=c.Ql?null:new y2a(this.api,b,this.contextMenu,this.Kg,this.le,this.Fw,function(){return a.xr()},(h=this.Fg)==null?void 0:h.progressBar))&&g.M(this,this.tx);
        this.Rr||(this.UX=new V1a(this.api),g.M(this,this.UX),g.FT(this.api,this.UX.element,4),this.O1=new S2a(this.api),g.M(this,this.O1),g.FT(this.api,this.O1.element,4));this.l2=new i5a(this.api);g.M(this,this.l2);g.FT(this.api,this.l2.element,4);if(this.Rr){var l=new m2a(this.api,this.api.U().Wa);g.M(this,l);g.FT(this.api,l.element,5);l.subscribe("show",function(m){a.Xz(l,m)});
            b=new q2a(this.api,l);g.M(this,b);g.FT(this.api,b.element,4)}this.YF.push(this.le.element);this.T(this.api,"fullscreentoggled",this.Rx);this.T(this.api,"offlineslatestatechange",function(){a.api.tF()&&DV(a.Kg,128,!1)});
        this.T(this.api,"cardstatechange",function(){a.Oq()});
        this.T(this.api,"resize",this.Aaa);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.Zaa);g.NV.prototype.init.call(this)};
    g.k.Se=function(){return this.tooltip};
    g.k.QP=function(){return this.Fg};
    g.k.Xz=function(a,b){b?this.gE=a:this.gE=null;this.Oq()};
    g.k.uE=function(a,b){if(b)this.Ku.push(a);else for(b=this.Ku.length;b>=0;b--)if(this.Ku[b]===a){this.Ku.splice(b,1);break}DV(this.Kg,64,this.Ku.length>0)};
    g.k.rC=function(){this.api.Xk()&&this.api.Dp();return!!this.gE||v5a(this)||g.NV.prototype.rC.call(this)};
    g.k.jC=ba(4);g.k.Fs=ba(8);g.k.Es=ba(11);
    g.k.Oq=function(){var a=!this.rC(),b=a&&this.api.Xk()&&!g.vF(this.api.getPlayerStateObject(),2)&&!g.gT(this.api.getVideoData())&&!this.api.U().C&&!this.api.hd(),c=this.Rr&&g.CT(this.api)&&g.vF(this.api.getPlayerStateObject(),128);a||c?(this.tM.show(),this.uM.show()):(this.tM.hide(),this.uM.hide(),this.api.wm(this.ri.element));b?this.Yg.wd():this.Yg.Mb();this.Fg&&e5a(this.Fg,this.jS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&w5a(this);g.NV.prototype.Oq.call(this)};
    g.k.Zx=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Vs(a),h=d||this.Fg&&g.Jf(this.Fg.Ib(),b),l=d=null;c!=null&&h||(d=g.Vs(b),l=g.Ts(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Fg,d=f5a(b),l=g5a(b),h=this.api.ob().getPlayerSize().height,c=g.ze(c,d,d+l-f.width),f=h-h5a(b)-f.height):g.Jf(this.ri.element,b)?(b=this.api.ob().getPlayerSize().width,c=g.ze(c,12,b-f.width-12),f=this.Gh()?this.xO:this.wO,this.api.U().playerStyle==="gvn"&&(f+=
        20),this.Rr&&(f-=this.Gh()?26:18)):(b=this.api.ob().getPlayerSize(),c=g.ze(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
    g.k.uB=function(a){a&&(this.api.wm(this.ri.element),this.Fg&&this.api.wm(this.Fg.Ib()));this.nK&&(g.Lv(this.contextMenu.element,"ytp-autohide",a),g.Lv(this.contextMenu.element,"ytp-autohide-active",!0));g.NV.prototype.uB.call(this,a)};
    g.k.uR=function(){g.NV.prototype.uR.call(this);this.nK&&(g.Lv(this.contextMenu.element,"ytp-autohide-active",!1),this.nK&&(this.contextMenu.hide(),this.ji&&this.ji.hide()))};
    g.k.Vn=function(a,b){var c=this.api.ob().getPlayerSize();c=new g.Gs(0,0,c.width,c.height);if(a||this.Kg.B&&!this.rC()){if(this.api.U().vn||b)a=this.Gh()?this.xO:this.wO,c.top+=a,c.height-=a;this.Fg&&(c.height-=h5a(this.Fg))}return c};
    g.k.Rx=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.jE(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.EE.detach(),this.DE.detach());this.kc();this.Pq()};
    g.k.Gh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
    g.k.showControls=function(a){this.KO=!a;this.Oq()};
    g.k.kc=function(){var a=this.Gh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Lv(this.contextMenu.element,"ytp-big-mode",a);this.Oq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||w5a(this);this.Pq();var b=this.api.hd();b&&a?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Js(this.ri.element,"padding-left",a+"px"),g.Js(this.ri.element,"padding-right",a+"px")):b&&(g.Js(this.ri.element,"padding-left",""),g.Js(this.ri.element,"padding-right",""));g.NV.prototype.kc.call(this)};
    g.k.BP=function(){if(v5a(this)&&!g.CT(this.api))return!1;var a=this.api.getVideoData();return!g.kR(this.api.U())||this.api.getPresentingPlayerType()===2||!this.Di||((a=this.Di||a.Di)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.V(a.videoDetails,VXa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.NV.prototype.BP.call(this):!1};
    g.k.Pq=function(){g.NV.prototype.Pq.call(this);this.api.logVisibility(this.title.element,!!this.qo);this.LB&&this.LB.Mc(!!this.qo);this.channelAvatar.Mc(!!this.qo);this.overflowButton&&this.overflowButton.Mc(this.Qg()&&!!this.qo);this.shareButton&&this.shareButton.Mc(!this.Qg()&&!!this.qo);this.hp&&this.hp.Mc(!this.Qg()&&!!this.qo);this.searchButton&&this.searchButton.Mc(!this.Qg()&&!!this.qo);this.In&&this.In.Mc(!this.Qg()&&!!this.qo);if(!this.qo){this.api.wm(this.ri.element);for(var a=0;a<this.GH.length;a++){var b=
        this.GH[a];b.pk()&&b.Mb()}}};
    g.k.Gc=function(a){this.Fg&&e5a(this.Fg,this.rC());this.Oq();g.NV.prototype.Gc.call(this,a)};
    g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.tx?this.tx.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
    g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.tx?this.tx.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
    g.k.xr=function(){if(this.contextMenu.Hb)return this.contextMenu.Mb(),!0;if(this.Ku.length)return this.Ku[this.Ku.length-1].Mb(),!0;if(this.gE)return this.gE.Mb(),!0;this.Fg&&this.api.wm(this.Fg.Ib());this.Ug&&this.api.wm(this.Ug.element);return g.NV.prototype.xr.call(this)};
    g.k.kT=function(a,b){this.dR=b;this.uE(a,b);this.e3()};
    g.k.e3=function(){var a=this.dR||this.contextMenu.pk();this.eO!==a&&(this.eO=a,this.api.ib("onAutonavPauseRequest",this.eO))};
    g.k.x8=function(){x5a(this,this.api.getRootNode(),!0).focus()};
    g.k.y8=function(){x5a(this,this.api.getRootNode(),!1).focus()};
    g.k.Tn=function(){return this.Fg&&this.Fg.B};
    g.k.xv=function(){this.Kg.xv()};
    g.k.lQ=function(){this.le.hide()};
    g.k.qH=function(a){this.le.qH(!a.isOrWillBePlaying())};
    g.k.SG=function(a,b,c,d){this.Fw.SG(a,b,c,d)};
    g.k.QG=function(a,b){U1a(this.Fw,a,b)};
    g.k.Aaa=function(){y5a(this,!0)};
    g.k.onReset=function(){w5a(this)};
    g.k.Zaa=function(a){y5a(this,!1,a)};
    g.k.gY=function(){return this.contextMenu};
    g.k.wz=function(a){var b;if((b=this.Fg)!=null){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.v(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ja(b.j.element,d)}};
    g.k.Jw=function(){var a,b=(a=this.Fg)==null?void 0:a.progressBar;if(b){var c;((c=b.B)==null?0:c.isEnabled)&&b.Jw()}};g.x(g.qX,g.eV);g.qX.prototype.fn=function(){return!1};
    g.qX.prototype.create=function(){var a=this.player.U();g.NF(a)&&a.B?this.chrome=new g.NV(this.player):this.chrome=new g.pX(this.player);g.M(this,this.chrome);this.chrome.init();this.player.Eg("ux")};
    g.qX.prototype.Ei=function(){return this.chrome};var A5a=!1;g.x(sX,g.I);sX.prototype.C=function(a,b){if(b){b=b instanceof g.cP?b:tX(this,b);var c;((c=this.j.get(a))==null?void 0:eP(c.location))!==eP(b)&&this.j.set(a,new I5a(b,a))}else this.j.delete(a)};
    sX.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.G(function(q){switch(q.j){case 1:b=a.j.get(0);g.Ba(q,2);var r;if(r=b&&!a.B)r=eP(b.location),r=a.B===vX(r);if(r){q.Ia(4);break}return g.z(q,G5a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),RRa(c)&&a.C(1,gP(c));case 4:g.Ca(q,3);break;case 2:d=g.Da(q);g.kE(d);if(!a.B){q.Ia(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.X.experiments.fb("html5_onesie_probe_ec_hosts")){q.Ia(0);break}g.Ba(q,9);e=a;f=e.C;h=3;return g.z(q,
        G5a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,G5a(a,2),12);case 12:m.call(l,n,q.B);g.Ca(q,0);break;case 9:p=g.Da(q),g.kE(p),g.Aa(q)}})};
    sX.prototype.N=function(){var a=this,b,c;return g.G(function(d){g.Bv(a.Z);b=g.hI(a.X.experiments,"html5_onesie_prewarm_max_lact_ms");if(zD()>=b)return d.return();(c=a.j.get(0))&&E5a(a,c);g.Aa(d)})};
    var B5a={U3a:0,i7a:1,l5a:2,k7a:3,Gwa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var wX=[],hhb=!1;g.O_=Kd(function(){var a="";try{var b=g.yf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.x(xX,g.I);xX.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&qS(this.j)&&Nhb(this.app,this.j,void 0,void 0,this.B)};
    xX.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.ub!=null&&this.C!=null&&this.D!=null&&qS(this.j)){var a=L5a(this.ub,this.C,this.D);a==null?Nhb(this.app,this.j,void 0,void 0,this.B):(this.ub.ma("sgap",a),this.ub.getVideoData().Y&&B0(this.ub,!1))}};
    xX.prototype.N=function(a){var b=this.app.Uc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.ma("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.ma("glrre",{cmt:c})}};
    xX.prototype.xa=function(){this.j=null;g.I.prototype.xa.call(this)};g.x(g.yX,tK);g.k=g.yX.prototype;g.k.isView=function(){return!0};
    g.k.PS=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Dh(),c=dK(b,a);return!(this.start<c)}catch(d){}return!1};
    g.k.Sw=function(){return gK(this.mediaElement.Sw(),this.start,this.end)};
    g.k.Dh=function(){return gK(this.mediaElement.Dh(),this.start,this.end)};
    g.k.pA=function(){return gK(this.mediaElement.pA(),this.start,this.end)};
    g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
    g.k.setCurrentTime=function(a){this.mediaElement.setCurrentTime(a+this.start)};
    g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
    g.k.play=function(){if(this.PS()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
    g.k.qc=function(){var a=tK.prototype.qc.call(this);a.view=this.start+"-"+this.end;return a};
    g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
    g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
    g.k.mI=function(){return this.mediaElement.mI()};
    g.k.activate=function(a){this.mediaElement.activate(a)};
    g.k.Gr=function(){return this.mediaElement.Gr()};
    g.k.playVideo=function(){return this.mediaElement.playVideo()};
    g.k.ZO=function(){this.mediaElement.ZO()};
    g.k.VO=function(){this.mediaElement.VO()};
    g.k.Tv=function(){return this.mediaElement.Tv()};
    g.k.Ib=function(){return this.mediaElement.Ib()};
    g.k.Ff=function(){return this.mediaElement.Ff()};
    g.k.oI=function(a){this.mediaElement.oI(a)};
    g.k.RL=function(){this.mediaElement.RL()};
    g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
    g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
    g.k.Pt=function(){return this.mediaElement.Pt()};
    g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
    g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
    g.k.isPaused=function(){return this.mediaElement.isPaused()};
    g.k.isSeeking=function(){return this.mediaElement.isSeeking()};
    g.k.isEnded=function(){return this.mediaElement.isEnded()};
    g.k.IJ=function(){return this.mediaElement.IJ()};
    g.k.iC=function(a){this.mediaElement.iC(a)};
    g.k.nI=function(){return this.mediaElement.nI()};
    g.k.load=function(){this.mediaElement.load()};
    g.k.pause=function(){this.mediaElement.pause()};
    g.k.Uk=function(){return this.mediaElement.Uk()};
    g.k.JJ=function(){return this.mediaElement.JJ()};
    g.k.eh=function(){return this.mediaElement.eh()};
    g.k.wf=function(){return this.mediaElement.wf()};
    g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
    g.k.Zh=function(){return this.mediaElement.Zh()};
    g.k.bv=function(){return this.mediaElement.bv()};
    g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
    g.k.St=function(){return this.mediaElement.St()};
    g.k.getSize=function(){return this.mediaElement.getSize()};
    g.k.setSize=function(a){this.mediaElement.setSize(a)};
    g.k.getVolume=function(){return this.mediaElement.getVolume()};
    g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
    g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
    g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
    g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
    g.k.TD=ba(29);g.k.BH=ba(31);g.k.CH=ba(33);g.k.Hz=ba(35);g.k.yE=function(){return this.mediaElement.yE()};
    g.k.gt=function(a){this.mediaElement.gt(a)};
    g.k.bF=function(a){return this.mediaElement.bF(a)};
    g.k.CQ=function(){return this.mediaElement.CQ()};
    g.k.stopVideo=function(){this.mediaElement.stopVideo()};
    g.k.cP=function(a){this.mediaElement.cP(a)};
    g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
    g.k.iT=function(a){this.mediaElement.iT(a)};g.x(O5a,g.I);g.k=O5a.prototype;g.k.getStatus=function(){return this.status};
    g.k.Gn=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.v(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Ke()){f=K5a(this.policy,this.j,this.B,this.pn);h=P5a(this);c=h.T7;e=h.v_;d=h.BX;h=h.t_;if(!this.N){var l=this.B.Ef()*1E3,m=this.j.Ef();m=(d-c-m)*1E3;f&&f.msg==="in-the-past"&&(m=0);a=a.isAd();this.B.LG(l,
        m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Dg(b,f)):this.status.status===2?Z5a(this):(a=this.j.Gr())&&qK(a)&&(!mK(a)&&g.RA()?this.Dg("mse_closed"):b.j&&XO(b.j)&&a.B&&!a.B.FJ()?this.Dg("encr_upgrade"):(b=this.j.Ke(),b.isEnded()?this.Dg("elem_ended"):e<0?this.Dg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=hFa(a,c,d,!0),this.D=hFa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),V5a(this.j,this.C,!1,W5a(this)),this.j.setMediaElement(Q5a(b,
        c,d,!this.j.getVideoData().isAd())),AX(this,2),Z5a(this))))}else this.Dg("no-elem")};
    g.k.Uy=function(a){var b=a===Y5a(this).sT,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;cK(a.Je(),d-.01)&&(AX(this,4),c.I1(!1),(this.G===1?this.j:this.B).ma("sbh",{}),b.I1(!0),this.G!==0&&(this.j.getVideoData().xW=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(AX(this,5),this.G!==0)){this.j.ma("sbs",{});if((a=this.B.dA())&&RJ(a)){var e;this.j.ma("sbs",{itag:a.itag,h:(e=a.video)==null?void 0:e.height})}var f;if((f=this.B)!=null&&ES(f.videoData)&&f.videoData.L("html5_gapless_append_early")){var h;
        (h=f.ya)!=null&&h.rf()}}}};
    g.k.P_=function(){this.mu()&&this.Dg("player-reload-after-handoff")};
    g.k.Dg=function(a,b){b=b===void 0?{}:b;if(!this.Na()&&this.status.status!==6){var c=this.status.status>=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Sd(new BJ("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.pn,msg:a})));B0(this.j,c)}this.Mq.reject(a);this.dispose()}};
    g.k.mu=function(){return this.status.status>=4&&this.status.status<6};
    g.k.xa=function(){X5a(this);this.j.unsubscribe("newelementrequired",this.P_,this);if(this.C){var a=this.C.B;this.C.j.Kd.unsubscribe("updateend",this.Uy,this);a.Kd.unsubscribe("updateend",this.Uy,this)}g.I.prototype.xa.call(this)};
    g.k.LU=function(a){g.xF(a,128)&&this.Dg("player-error-event")};g.x(a6a,g.I);g.k=a6a.prototype;g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&B0(this.B,!1);CX(this,a)};
    g.k.zo=function(){return!this.j};
    g.k.wF=function(a){return this.j===a};
    g.k.mu=function(){var a;return((a=this.C)==null?void 0:a.mu())||!1};
    g.k.xa=function(){CX(this);g.I.prototype.xa.call(this)};g.x(j6a,g.DE);g.k=j6a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:f6a()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0};
    g.k.dn=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Lf())};
    g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Lf())};
    g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Lf())};
    g.k.lC=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Lf())};
    g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Lf())};
    g.k.qC=function(a){this.D!==a&&(this.D=a,this.Lf())};
    g.k.Zh=function(){return this.j};
    g.k.isFullscreen=function(){return this.fullscreen!==0};
    g.k.hA=function(){return this.fullscreen};
    g.k.isMinimized=function(){return this.B};
    g.k.isInline=function(){return this.inline};
    g.k.isBackground=function(){return f6a()};
    g.k.ju=function(){return this.pictureInPicture};
    g.k.IA=function(){return!1};
    g.k.PA=function(){return this.C};
    g.k.qk=function(){return this.D};
    g.k.Lf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Zh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ju(),this.IA(),this.PA(),this.qk());a!==this.K&&this.publish("visibilitystatechange");this.K=a};
    g.k.xa=function(){i6a(this.G);g.DE.prototype.xa.call(this)};g.x(HX,g.I);HX.prototype.Mk=function(){if(!this.zf.length)return[];var a=this.zf;this.zf=[];this.C=g.zb(a).info;return a};
    HX.prototype.zG=function(){return this.zf};
    HX.prototype.xa=function(){g.I.prototype.xa.call(this);this.j=null;this.zf.length=0;this.jb.length=0;this.C=null};g.x(JX,g.I);g.k=JX.prototype;g.k.Br=function(){return Array.from(this.bd.keys())};
    g.k.Hs=function(a){a=this.bd.get(a);var b=a.zf;a.Bz+=b.totalLength;a.zf=new lN;return b};
    g.k.Pg=function(a){return this.bd.get(a).Pg};
    g.k.ix=function(a){return this.bd.get(a).ix};
    g.k.AB=function(a,b,c,d){this.bd.get(a)||q6a(this,a,b);b=this.bd.get(a);if(this.manifest){a=s6a(this,a,c);if(d)for(var e=g.v(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}r6a(this,c.Xp,b,a)}else c.uo?b.kZ=c.Bs:b.UF.push(c),b.cT.push(c)};
    g.k.Un=function(a){var b;return((b=this.bd.get(a))==null?void 0:b.jb)||[]};
    g.k.rB=function(){for(var a=g.v(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.zS&&(b.Cg&&b.Cg(),b.zS=!1)};
    g.k.qq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
        var c=this.bd.get(b);if(KX){if(c&&!c.Pg){if(c.Cj.get(a))c.Cj.get(a).lx=!0;else{var d;((d=this.Ue)==null?0:d.Cc)&&c.Cj.set(a,{data:new lN,FI:0,lx:!0})}c.ix=!0}}else c&&!c.ix&&(c.ix=!0)};
    g.k.Mk=function(a){if(KX){var b=this.bd.get(a);if(b)for(var c=g.v(b.Cj),d=c.next();!d.done;d=c.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;var f=b.uH.get(d);if(ZP(f[0])){if(!e.lx)continue;var h=e.data,l=0,m=[];f=g.v(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=nN(h,l,p);l+=p;m.push(new mQ(n,q))}b.Dx.push.apply(b.Dx,g.ra(m))}else if(e.data.totalLength>0||!f[0].range&&e.lx)h=void 0,l=f[0],m=e.FI,f=e.data,l.range||(h=e.lx),h=new mQ(WSa(l,l.Sb+m,f.totalLength,h),f),
        e.FI+=h.info.B,b.Dx.push(h);b.Cj.get(d).data=new lN;e.lx&&b.Cj.delete(d)}a=this.bd.get(a);if(!a)return[];b=a.Dx;a.Dx=[];c=g.v(b);for(d=c.next();!d.done;d=c.next())a.Bz+=d.value.info.B;return b||[]}c=(b=this.bd.get(a))==null?void 0:b.dg;if(!c)return[];this.Im(a,c);return c.Mk()};
    g.k.El=function(a){if(KX)return MX(this,a);var b,c,d;return!!((c=(b=this.bd.get(a))==null?void 0:b.dg)==null?0:(d=c.zG())==null?0:d.length)||MX(this,a)};
    g.k.Im=function(a,b){for(;MX(this,a);){var c=this.Hs(a);var d=a;d=this.bd.get(d).Pg&&!o6a(this,d);IX(b,c,d&&p6a(this,a))}};
    g.k.xa=function(){g.I.prototype.xa.call(this);for(var a=g.v(this.bd.keys()),b=a.next();!b.done;b=a.next())l6a(this,b.value);var c;if((c=this.Ue)==null?0:c.Yd)for(a=g.v(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Cj.clear(),b.uH.clear(),b.Dx.length=0,b.jb.length=0,b.cT.length=0,b.UF.length=0;this.bd.clear()};
    var KX=!1;g.x(PX,g.I);g.k=PX.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=a;this.segments.push(a);return!0};
    g.k.Ye=function(){return this.pc||0};
    g.k.Wh=function(){return this.C||0};
    g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear()};
    g.k.xa=function(){this.removeAll();g.I.prototype.xa.call(this)};
    g.x(G6a,g.I);g.k=G6a.prototype;g.k.Ye=function(){return this.pc};
    g.k.Wh=function(){return this.B};
    g.k.getType=function(){return this.type};
    g.k.getVideoData=function(){return this.videoData};
    g.k.nH=function(a){OXa(a);this.videoData=a};
    g.k.xa=function(){H6a(this);g.I.prototype.xa.call(this)};g.x(g.UX,g.I);g.k=g.UX.prototype;g.k.ZI=function(a,b,c){return new g.NI(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
    g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId();this.ea.ma("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Ef()||0).toFixed(3)});var c=b==="";this.gb.add(a.B);var d=this.D.get(b);if(c){var e;if(this.ea.getVideoData().Mm()&&((e=this.j)==null?0:e.IW)&&this.N){var f;a=((f=this.j)==null?void 0:f.Vg)||this.ea.getCurrentTime();var h;YX(this.ea,(h=this.j)==null?void 0:h.IW,this.NE(),a,this.ea.getCurrentTime(),!1,!0);this.N="";this.Sa=
        !0;return}}else if(this.ea.ma("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Mm()&&(d==null?0:d.NA))return;if(this.Sa&&!this.j)this.Sa=!1,!c&&d&&(c=this.ea.getCurrentTime(),ZX(this,{Zd:a,isAd:!0,bq:!0,Vg:c,adCpn:b},{isAd:!1,bq:!1,Vg:c}),this.Vb=d.cpn,this.api.publish("serverstitchedvideochange",d.od,d.er),a=XX(this,"midab",d),this.ea.ma("sdai",a),this.ym=1),this.qa=!1;else if(this.j){if(this.j.bq)this.ea.ma("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,
        cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={Zd:a,isAd:!c,bq:!0,Vg:d,adCpn:b},b={Zd:this.j.Zd,isAd:this.j.isAd,bq:!1,Vg:d,adCpn:this.j.adCpn},this.j.Zd&&this.gb.delete(this.j.Zd.B),ZX(this,a,b);else{if(this.j.Zd===a){this.ea.ma("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.ma("sdai",{dchtsc:b});
        this.j=void 0;return}a={Zd:a,isAd:!c,bq:!0,Vg:this.ea.getCurrentTime(),adCpn:b};ZX(this,a,this.j)}this.j=void 0;this.qa=!1}else this.j={Zd:a,isAd:!c,bq:!0,Vg:this.ea.getCurrentTime(),adCpn:b}};
    g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.ma("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Ef()||0).toFixed(3)});var c=b==="",d=this.D.get(b);if(this.ea.getVideoData().Mm()&&!c&&d){if(d.NA)return;d.NA=!0;this.K.clear();if(this.X.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.oO()){var e=d.pc;this.ea.IS(e/1E3,(e+d.durationMs)/1E3)}else this.ea.ma("lifa",{remove:0})}if(this.gb.has(a.B))if(this.gb.delete(a.B),this.La=this.La.filter(function(f){return f!==
        a}),this.Sa&&(this.qa=this.Sa=!1,this.ea.ma("sdai",{cref:1})),this.j){if(this.j.bq){if(this.j.Zd===a){this.ea.ma("sdai",{same_cue_range_pair_exit:1,
        acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.ma("sdai",{dchtsc:b});this.j=void 0;return}b={Zd:a,isAd:!c,bq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};ZX(this,this.j,b)}else this.ea.ma("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Vg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()});
        this.j=void 0;this.qa=!1}else this.j={Zd:a,isAd:!c,bq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};else this.ea.ma("sdai",{ignore_single_exit:1})};
    g.k.NE=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,pc:0,playerType:1,Wd:0,videoData:this.ea.getVideoData(),errorCount:0}};
    g.k.wl=function(a){return this.Kn?!1:this.ea.getVideoData().Mm()?(a=$X(this,a*1E3),!!a&&!a.NA):!!$X(this,a*1E3)};
    g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;c=c===void 0?!1:c;d=d===void 0?null:d;if(this.ea.getVideoData().Mm()&&this.X.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,F_(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)J6a(this,a,b);else{c=this.api.Uc();var e=c===this.Za?this.Bb:null;aY(this,!1);this.Ob=a;this.Kb=b;d!=null&&this.Ab.start(d);c&&(this.Bb=e||c.getPlayerState(),Pgb(c),this.Za=c)}};
    g.k.xa=function(){aY(this,!1);U6a(this);V6a(this);g.I.prototype.xa.call(this)};
    g.k.qT=function(a){this.Dc=a;this.ea.ma("sdai",{swebm:a})};
    g.k.rl=function(a,b,c,d){if(c&&b){var e;this.X.L("html5_ssdai_use_media_time")?e=cY(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.cP(c),this.Va&&this.ea.ma("sdai",{hdlredir:1,itag:b,seg:a,hostport:eP(c)}),e.locations.set(d,c))}};
    g.k.TJ=function(a,b,c,d,e,f){var h=d===3;e=X6a(this,a,b,d,c,f);if(!e)return eY(this,b,h),e=g.W6a(this,b)?"undec":"ncp",this.ea.ma("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.nm;var l;d=((l=dY(this,b-1,d))==null?void 0:l.Gt)||"";d===""&&this.ea.ma("sdai",{eds:1});l=ZQ(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.wD[f];b=e.Fy&&b>=e.Fy?e.Fy:void 0;return{Zm:{tI:a?a7a(this,a):[],MW:l,Gt:d,T1:b,n3:df(m.split(";")[0]),
            o3:m.split(";")[1]||""}}};
    g.k.PP=function(a){a:{if(!this.Kn){var b=cY(this,a);if(!(this.ea.getVideoData().Mm()&&(b==null?0:b.NA)))break a}b=void 0}if(!b)return this.ea.ma("sdai",{gvprp:"ncp",mt:a}),null;a=b.nm;b=ZQ(b.ssdaiAdsConfig||"")||void 0;var c=this.ea.getVideoData(),d,e=((d=c.B)==null?void 0:d.containerType)||0;d=c.wD[e];return{tI:a?a7a(this,a):[],MW:b,n3:df(d.split(";")[0]),o3:d.split(";")[1]||""}};
    g.k.eA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=X6a(this,a,b,d,c,f);this.Va&&this.ea.ma("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return eY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=(l=a.videoData.getPlayerResponse())==null?void 0:(m=l.streamingData)==null?void 0:m.adaptiveFormats;if(!f)return this.ea.ma("sdai",{gdu:"noadpfmts",seg:b,itag:h}),eY(this,b,e),null;l=f.find(function(u){return u.itag===h});
        if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.v(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(",")});eY(this,b,e);return null}a.locations.set(h,new g.cP(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.ma("sdai",{gdu:"nourl",seg:b,itag:h}),eY(this,b,e),null;l=new PP(l);this.Dc&&(l.get("dvc")?this.ea.ma("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=dY(this,b-1,d))==null?void 0:q.Gt)&&
    l.set("daistate",m);a.Fy&&b>=a.Fy&&l.set("skipsq",""+a.Fy);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.nm&&(q=a7a(this,a.nm),q.length>0&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if((((p=e)==null?void 0:(r=p.split(","))==null?void 0:r.length)||0)!==q.length)if(a.nm){var t;this.ea.ma("sdai",{acpns_aids_nm:1,ids:c7a(this,a.nm).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.ma("sdai",
        {acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Ce();(d==null?void 0:d.length)>2048&&this.ea.ma("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.nm,e7a(this,r,p),p&&!this.Fd.has(p)&&(r=b7a(this,r,p),t=d7a(this,p),this.ea.ma("sdai",{iofa:r}),this.ea.ma("sdai",{noawnzd:t-r}),this.ea.ma("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.Fd.add(p))),this.ea.ma("sdai",{gdu:"v",seg:b,itag:c,ast:a.pc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
        return d};
    g.k.fH=function(a,b,c){var d=bY(this,a,c);return(d=d?(d.pc+d.durationMs)/1E3:0)&&b>d?(this.ev(a,c,!0),this.ea.seekTo(d),!0):!1};
    g.k.ev=function(a,b,c){c=c===void 0?!1:c;if(a=bY(this,a,b)){var d=void 0,e=a.nm;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.v(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.Fy=b,e.pc>a.pc&&(d=e)}this.N=a.cpn;Y6a(this);b=this.ea.getCurrentTime();Q6a(this,a,d,b,b,!1,!0)}};
    g.k.SS=function(){for(var a=g.v(this.G),b=a.next();!b.done;b=a.next())b.value.Fy=NaN;Y6a(this);this.ea.ma("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""};
    g.k.LH=ba(42);
    g.k.XR=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ea.ma("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.eb.set(a,{Gt:m,sz:l}):this.Ea.set(a,{Gt:m,sz:l}));if(h){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.ma("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.Ut(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.er=m.er!=null?Math.min(m.er,l):l;if(d.length&&e.length)for(b=(b+this.Ut())*1E3,c=0;c<d.length;c++)if(a=d[c],
        h=e[c]*1E3,a===this.ea.getVideoData().clientPlaybackNonce)$6a(this,b,b+h,!1),b+=h;else{this.Xd.has(a)||(this.ea.ma("sdai",{adCpnFromEmsg:1}),this.Xd.add(a));l=0;c<f.length&&(l=f[c]*1E3);m=this.B.get(a);var n=!1;m?(m.start=b-l,m.end=b+h,this.ea.Bh.sync()):(m=this.ZI(b-l,b+h,a),this.B.set(a,m),this.ea.ma("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;$6a(this,m.start,m.end,!0);if(n)for(this.ea.addCueRange(m),a=this.ea.zE("serverstitchedcuerange",36E5),a=g.v(a),h=a.next();!h.done;h=
        a.next())this.B.delete(h.value.getId())}else c!==5&&c!==4||$6a(this,(b+this.Ut())*1E3,(b+this.Ut())*1E3+5E3,!1)}};
    g.k.OE=ba(44);g.k.Ut=function(){return this.ea.Ut()};
    g.k.wk=function(a){this.ea.ma("timelineerror",{e:a})};
    g.k.fF=function(a){this.Ca&&this.ra&&this.Fa.push(this.ra);a&&this.ra&&this.Cc.push(this.ra);this.ra=null;this.ea.fF(a)};
    g.k.VJ=function(a){if(this.Kn||a.identifier&&this.Yd.has(a.identifier))this.Va&&this.ea.ma("sdai",{startnoad:a.identifier}),WX(this);else if(Zs(this.Fa,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{timedoutcp:1}),this.Z.start(0);
    else if(Zs(this.Cc,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{fetchedcp:1}),WX(this);
    else if(this.Z.isActive()){var b;this.ea.ma("sdai",{racingcp:((b=this.ra)==null?void 0:b.identifier)+"_"+a.identifier})}else this.Qc=(new Date).getTime()/1E3,this.Va&&this.ea.ma("sdai",{adf:1}),(b=5E3,a.event==="predictStart")&&(b-=a.j),this.Jb=Math.max(b,15E3),this.Ca=!1,this.Z.start(this.Jb),this.ra=a,this.Ea.clear(),this.eb.clear(),this.Ma.clear(),this.rb=[]};
    g.k.nE=function(a,b,c){c=c||{reason:"disablessdai"};if(a&&b){if(!bY(this,a,b))return!1;c.sq=b}if(this.Kn)return!1;this.Kn=!0;this.ym>0&&(this.ym=0,this.Vb="",this.api.publish("serverstitchedvideochange"));a=this.ea;a.videoData.sU=!0;a.Sd(new BJ("qoe.restart",c));F_(a,!0);return!0};
    g.k.Ww=function(){this.ea.ma("sdai",{rstdaist:1});this.Ea.clear();this.eb.clear();this.Ma.clear()};
    g.k.Qu=function(a){this.Yd.add(a);var b;((b=this.ra)==null?void 0:b.identifier)===a&&WX(this)};
    g.k.tP=function(){return this.ym};
    g.k.jl=function(){return this.Vb};
    g.k.Nu=function(a){var b=zV(this.api.zb());return b?b.Nu(a):!1};
    g.k.YO=function(a){return this.Kn?!1:!!cY(this,a)};
    g.k.DT=function(){this.ea.pauseVideo();var a=this.ea.getCurrentTime(),b=this.D.get(this.Vb),c=this.B.get(this.Vb);if(b){this.N=this.Vb;this.qa=!1;b.NA=!0;var d=this.ea.getCurrentTime();this.j={Zd:c,isAd:!0,bq:!1,Vg:d,adCpn:this.Vb,IW:b};if(c==null?0:c.start)this.Wa=d*1E3-c.start;this.K.clear();F_(this.ea);this.Vb=this.NE().cpn;this.api.publish("serverstitchedvideochange");c=b.er?b.er*1E3:b.pc;(d=this.B.get(b.cpn))&&this.ea.removeCueRange(d);this.B.delete(b.cpn);this.D.delete(b.cpn);d=this.G.indexOf(b);
        d>=0&&this.G.splice(d,1);d=[];for(var e=g.v(this.C),f=e.next();!f.done;f=e.next())f=f.value,f.end<=c?this.ea.removeCueRange(f):d.push(f);this.C=d;Z6a(this,0,c+b.durationMs);this.ea.seekTo(a);this.ea.playVideo();return!0}this.ea.ma("sdai",{skipFail:a});return!1};
    var O6a=0;g.x(h7a,g.I);g.k=h7a.prototype;
    g.k.UN=function(a,b){b=b===void 0?"":b;if(this.QT===b)return!0;var c=!1,d=this.timeline.j;if(!d||!d.getVideoData())return this.api.ma("ssap",{htsm:d?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||H6a(f);e.B.clear()}e=[];f=d.getVideoData();var h=QX(d),l=new Map;d=[];var m=[],n=0,p=0,q=0,r=[];a=g.v(a);for(var t=a.next();!t.done;t=a.next()){var u=t.value,w=u.clipId;if(w){if(u.Rq){q=u.Rq.WZ||0;var A=u.Rq.XZ||1;t=Number(((u.Rq.C0||0)/(u.Rq.D0||1)*
        1E3).toFixed(0));var C=Number((q/A*1E3).toFixed(0));q=A=t+C}else t=q,C=0,A=t,this.tH.has(w)||this.zk.add(w);var E=void 0,H=(E=l.get(w))!=null?E:0;E=!1;if(this.QT)if(this.api.L("html5_ssap_clear_timeline_before_update")){var L=this.Yj.get(w);L&&(L.start=t,L.end=A,E=!0)}else{var N=w;L=t;var Q=A,da=SX(this.timeline,N);if(da!=null&&da.length){H<da.length&&(da[H].pc=L,da[H].B=Q);if(N=this.Yj.get(N))N.start=L,N.end=Q;L=!0}else L=!1;if(L){l.set(w,H+1);c=!0;continue}}r.push(w);!E&&u.Rq&&(r=this.ZI(t,A,r.join(",")),
        this.Yj.set(w,r),d.push(r),r=[]);L=E=void 0;if(((E=u.Rq)==null?void 0:E.z3)===((L=f)==null?void 0:L.videoId)){u=void 0;w!==((u=f)==null?void 0:u.clientPlaybackNonce)&&(u=void 0,this.api.ma("ssap",{cnm:1,cid:w,cpn:(u=f)==null?void 0:u.clientPlaybackNonce}));if(this.api.L("html5_ssap_clear_timeline_before_update"))f&&(f.Tf=t),w=TX(this.timeline,1,t,C,f),e.push(w),t=RX(this.timeline,t,A,[w]),c=c||t;else if(u=[],f&&(f.Tf=t,E=void 0,u=(E=SX(this.timeline,w))!=null?E:[]),!this.QT&&u.length&&H===0){c=u[0];
        c.pc=t;c.B=A;u=void 0;C=(u=this.timeline.j)==null?void 0:u.j;E=void 0;if((u=(E=C)==null?void 0:E.get(0))&&C)for(E=0;E<u.length;E++)if(L=u[E],L.Ye()!==L.Wh()){L.pc=t;L.C=A;u.splice(E,1);C.has(t)?C.get(t).push(L):C.set(t,[L]);break}e.push(c);l.set(w,H+1);c=!0}else w=TX(this.timeline,1,t,C,f),e.push(w),t=RX(this.timeline,t,A,[w]),c=c||t;m.length&&(m=i7a(this,n||0,p,m),c=c||m);p=n=A;m=[]}else E=this.Kp.get(w),L=void 0,H=(L=E)!=null?L:new g.pS(this.api.U(),{cpn:w}),H.ND=!0,this.zk.has(w)&&this.Kp.set(w,
        H),n=Math.min(t,n),p=Math.max(A,p),this.api.ma("ssap",{e:t,d:C,c:w,p:E?1:0}),H.Tf=t,A=void 0,t=TX(this.timeline,2,t,C,H,(A=u.pR)==null?void 0:A.DK),m.push(t),this.uT&&u.Rq&&!this.dY&&(this.api.ma("ssap",{reloada:w}),this.Kw=w)}else this.api.ma("ssap",{cm:1})}m.length&&(f=i7a(this,n||0,p,m),c=c||f);h&&e.length&&(F6a(this.timeline,h,e),this.api.L("html5_ssap_clear_timeline_before_update")&&(e=e[e.length-1].Wh(),(f=this.timeline.j)!=null&&(f.B=e)));d.length&&this.ea.vz(d);if(c){this.QT=b;d=this.ea.il();
        b=[];d=g.v(d);for(e=d.next();!e.done;e=d.next()){e=e.value;if(e.C){f=gY(this,e.C);if(f===e.Cl)continue;e.start=e.start-e.Cl+f;e.end=e.end-e.Cl+f;e.Cl=f;b.push(e)}e=this.ea.Bh;b.length<=0||e.Na()||(e=e.j,e.array.sort(e.j))}this.api.ma("ssap",{tu:hY(this)});b=zV(this.api.zb());this.api.ma("ssap",{am:b?1:0})}else this.api.ma("ssap",{tnu:1});return!0};
    g.k.addPlayerResponseForAssociation=function(a){var b=new g.pS(this.api.U(),a.playerVars);b.playerResponseCpn&&(b.clientPlaybackNonce=b.playerResponseCpn);b.ND=!0;if(a=a.bJ)b.bJ=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.ma("ssap",{aprfa:a+"_"+b.videoId});if(a){this.Kp.set(a,b);var c=SX(this.timeline,a),d=!1;if(c==null?0:c.length){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,b.Tf=e.Ye(),e.nH(b),e.C&&(d=!0)}else d=!b.videoId;if(!d){if(!efb(this.ea.vc(b.videoId))){var f;
        this.api.ma("ssap",{nlc:a,nlcc:(f=this.timeline.j)==null?void 0:QX(f)})}this.ea.mA().YI(a,b,2)}}};
    g.k.iG=function(){this.zZ=!0};
    g.k.finishSegmentByCpn=function(a,b,c,d){c=c===void 0?3:c;this.uT&&this.Kw&&a===this.Kw&&(this.api.ma("ssap",{reloadp:this.Kw}),F_(this.ea),this.Kw="",this.dY=!0);if(this.Vb===b)return[];this.api.U().wc()&&this.api.ma("ssap",{fsbc:a+";"+b,fsbcr:this.zZ?5:c,fsbct:this.api.getCurrentTime().toFixed()});this.Gy=b;var e=!1;if(this.zk.has(a)&&(e=f7a(this,c),!e))return[a];var f=SX(this.timeline,b);if(f){f.sort(function(m,n){return m.Ye()-n.Ye()});
        var h=g.v(f);for(f=h.next();!f.done;f=h.next()){f=f.value;var l=this.ea.getCurrentTime()*1E3;if(f.Ye()>=l){this.HH.set(a,c);y7a(this,a,b);this.xM.set(a,(0,g.fC)());if(c=this.Yj.get(b))for(c=c.getId().split(","),c=g.v(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.zk.has(h)&&(this.zk.delete(h),this.tH.add(h));d&&F_(this.ea);t7a(this);b=f.Ye()/1E3;d=void 0;f=(d=g.hI(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?d:0;this.ea.seekTo(b+f/1E3);e&&this.api.playVideo(1);return[a]}}}return[]};
    g.k.DP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Wh();a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Wh()>b&&(b=d.Wh())}return b/1E3};
    g.k.Cd=function(){var a=this.ea.getCurrentTime()*1E3;var b=fY(this,a);if(!b){var c=SX(this.timeline,this.Vb);if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ye()>a&&(b=d)}}return b&&b.getType()===1?b.Ye()/1E3:0};
    g.k.getVideoData=function(a){if(a===2&&!this.wl()){if(this.yK&&this.Kp.has(this.yK))return this.Kp.get(this.yK);this.api.ma("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return p7a(this)};
    g.k.wl=function(){var a=SX(this.timeline,this.Vb);return(a==null?0:a.length)?a[0].getType()===2:!1};
    g.k.KA=function(){var a=SX(this.timeline,this.Vb);return(a==null?0:a.length)?a[0].C:!1};
    g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=n7a(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)};
    g.k.ZI=function(a,b,c){return new g.NI(a,b,{id:c,namespace:"ssap",priority:9})};
    g.k.onCueRangeEnter=function(a){if(!this.BL.has(a.getId())){this.api.ma("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Ef()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;c<b.length&&this.Gy&&b[c]!==this.Gy;){var d=b[c];this.zk.has(d)&&(this.zk.delete(d),this.tH.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.AG.push(b[d]);b=b[c];this.zk.has(b)&&q7a(this,b);this.tH.has(b)||r7a(this,b);b=g.v(this.Yj.values());for(c=b.next();!c.done;c=
        b.next())c=c.value,c.start<=a.start&&!this.BL.has(a.getId())&&this.BL.add(c.getId())}};
    g.k.tP=function(){return this.ym};
    g.k.jl=function(){return this.Vb};
    g.k.handleError=function(a){if(a!=="fmt.decode"&&a!=="fmt.unplayable"||!this.wl()||this.GZ===this.Vb)return!1;this.ea.ma("ssap",{skiperr:a,acpn:this.Vb});this.GZ=this.Vb;var b=this.ea.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.Vb,b,3,a);return!0};
    g.k.xa=function(){this.api.U().wc()&&this.api.ma("ssap",{di:""+this.Vb,dic:""+this.ea.getVideoData().clientPlaybackNonce});this.Kp.clear();this.zk.clear();this.BL.clear();this.HH.clear();this.xM.clear();this.tH.clear();this.AG=[];g7a(this);this.Gy="";g.rB(this.events);g.I.prototype.xa.call(this)};g.x(B7a,g.I);g.k=B7a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Uc()){var b=this.K.get(a);b?H7a(this,b.target,b.pn,a):this.Sd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.It.Zd===a})){var c=b.It,d=c.target;
        c=c.pn;d?H7a(this,d,c,a):G7a(this,b.Wd,c,a)}};
    g.k.onQueuedVideoLoaded=function(){var a=this.N;qY(this);if(a){if(!pY(this,a)){var b=this.api.Uc();this.Sd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:b==null?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Uc().addCueRange(a.It.Zd)}};
    g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;d=d===void 0?null:d;if(c===void 0?0:c)A7a(this,a,b);else{c=this.api.Uc();var e=c===this.D?this.G:null;rY(this,!1);this.qa=a;this.Y=b;d!=null&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),Pgb(c),this.D=c)}};
    g.k.Bk=function(a){g.xF(a,128)&&M7a(this)};
    g.k.isManifestless=function(){return zS(this.j.getVideoData())};
    g.k.xa=function(){rY(this,!1);O7a(this);g.I.prototype.xa.call(this)};
    g.k.Sd=function(a,b){this.j.Sd(new BJ(a,b))};
    var C7a=0;var P7a="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.x(uY,g.I);g.k=uY.prototype;g.k.get=function(a){sY(this);var b=this.data.find(function(c){return c.key===a});
        return b?b.value:null};
    g.k.set=function(a,b,c){this.remove(a,!0);sY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.fC)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&vY(this,c,!0);tY(this)};
    g.k.remove=function(a,b){b=b===void 0?!1:b;var c=this.data.find(function(d){return d.key===a});
        c&&(vY(this,c,b),g.Ib(this.data,function(d){return d.key===a}),tY(this))};
    g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.v(this.data),c=b.next();!c.done;c=b.next())vY(this,c.value,a);this.data=[];tY(this)};
    g.k.xa=function(){var a=this;g.I.prototype.xa.call(this);this.data.forEach(function(b){vY(a,b,!0)});
        this.data=[]};g.x(wY,g.I);wY.prototype.CJ=function(a){if(a)return this.B.get(a)};
    wY.prototype.xa=function(){this.j.removeAll();this.B.removeAll();g.I.prototype.xa.call(this)};g.rqb=Kd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var o3;o3={};g.xY=(o3.STOP_EVENT_PROPAGATION="html5-stop-propagation",o3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",o3.IV_DRAWER_OPEN="ytp-iv-drawer-open",o3.MAIN_VIDEO="html5-main-video",o3.VIDEO_CONTAINER="html5-video-container",o3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",o3.HOUSE_BRAND="house-brand",o3);g.x(W7a,g.W);g.k=W7a.prototype;g.k.gt=function(){g.Iv(this.element,g.Ja.apply(0,arguments))};
    g.k.Lj=function(){this.Fc&&(this.Fc.removeEventListener("focus",this.ER),g.Hf(this.Fc),this.Fc=null)};
    g.k.TO=function(){this.Na();var a=this.app.U();a.zn||this.gt("tag-pool-enabled");a.K&&this.gt(g.xY.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.gt("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Cc&&(this.HO=g.nD("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
    g.k.dM=function(a){g.oR(this.app.U());this.gK=!a;yY(this)};
    g.k.resize=function(){if(this.Fc){var a=this.Xh();if(!a.isEmpty()){var b=!g.Le(a,this.NB.getSize()),c=a8a(this);b&&(this.NB.width=a.width,this.NB.height=a.height);a=this.app.U();(c||b||a.Cc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}};
    g.k.Wt=function(a,b){this.updateVideoData(b)};
    g.k.updateVideoData=function(a){if(this.Fc){var b=this.app.U();vC&&(this.Fc.setAttribute("x-webkit-airplay","allow"),a.title?this.Fc.setAttribute("title",a.title):this.Fc.removeAttribute("title"));this.Fc.setAttribute("controlslist","nodownload");b.Bq&&a.videoId&&(this.Fc.poster=a.gh("default.jpg"))}b=g.NS(a,"yt:bgcolor");this.Pz.style.backgroundColor=b?b:"";this.fR=Era(g.NS(a,"yt:stretch"));this.gR=Era(g.NS(a,"yt:crop"),!0);g.Lv(this.element,"ytp-dni",a.Jf);this.resize()};
    g.k.setGlobalCrop=function(a){this.UP=Era(a,!0);this.resize()};
    g.k.setCenterCrop=function(a){this.kX=a;this.resize()};
    g.k.dn=function(){};
    g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.kR(a);if(b&&QA()&&!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.xp){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.RF&&this.RF.media===
    a||(this.RF=window.matchMedia(a));var e=this.RF&&this.RF.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.Xh=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.hI(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.wS&&b.width>c?new g.Ke(b.width*g.hI(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
    g.k.getVideoAspectRatio=function(){return isNaN(this.fR)?Y7a(this):this.fR};
    g.k.getVideoContentRect=function(a){var b=this.Xh();a=Z7a(this,b,this.getVideoAspectRatio(),a);return new g.Gs((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
    g.k.nC=function(a){this.wS=a;this.resize()};
    g.k.vF=function(){return this.EL};
    g.k.onMutedAutoplayChange=function(){yY(this)};
    g.k.setInternalSize=function(a){g.Le(this.CE,a)||(this.CE=a,this.resize())};
    g.k.xa=function(){this.HO&&g.oD(this.HO);this.Lj();g.W.prototype.xa.call(this)};g.k=b8a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.gE();c&&a.visualElement&&g.AE(c,a.visualElement,b)};
    g.k.createClientVe=function(a,b,c,d){var e=this;d=d===void 0?!1:d;this.elements.has(a);this.elements.add(a);c=hxa(c);a.visualElement=c;var f=g.gE(),h=g.fE();f&&h&&(g.CA("combine_ve_grafts")?BO(sO(),c,h):g.kA(g.tE)(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=c===void 0?!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.yX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,tO(sO(),a),c8a(this))};
    g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.eE(b))};
    g.k.hasVe=function(a){return this.elements.has(a)};d8a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
    d8a.prototype.getPlaybackRate=function(){return this.playbackRate};j8a.prototype.EP=function(a){var b=VJ(a.info.j.info,this.manifest.dc),c=a.info.Pa+this.C,d=a.info.startTime*1E3;if(this.policy.Sa)try{d=this.policy.Sa?rTa(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=pN(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Vc(),encodedDataView:g.Fg(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Sa){if(a.info.j.Nm())var f=a.info.duration;else a.D===-1&&(a.D=uTa(a)),f=a.D||a.info.duration;f*=1E3}else f=
        a.info.duration*1E3;this.policy.Sa&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Vc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,d8:f}};
    j8a.prototype.Iq=function(a){this.timestampOffset=a};DY.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.Rb,f=w8a(this,this.videoTrack,a,this.videoTrack.Rb,b);b=w8a(this,this.audioTrack,this.policy.Rf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(s8a(this,this.videoTrack,c),s8a(this,this.audioTrack,d));return a};
    DY.prototype.isSeeking=function(){return this.G};
    DY.prototype.oT=function(a){this.C=a};
    var v8a=2/24;var A8a=0;g.k=NY.prototype;g.k.Ru=function(){this.Z=this.now();eVa(this.Nc,this.Z);this.Cb.Ru()};
    g.k.qs=function(a,b){var c=this.policy.B?(0,g.fC)():0;OY(this,a,b);a-this.D<10&&this.xo()||this.Nv(a,b);this.Cb.qs(a,b);this.policy.B&&(a=(0,g.fC)()-c,this.Ab+=a,this.rb=Math.max(a,this.rb))};
    g.k.Nv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.rr||(gVa(this.Nc,c,d),this.Vu(c,d));this.D=a;this.B=b};
    g.k.Jo=function(){this.Ca&&B8a(this);this.Cb.Jo()};
    g.k.hs=function(a){this.Ca||(this.Ca=this.K-this.Ob+a,this.Cc=this.K,this.Dc=this.Y)};
    g.k.W0=function(){};
    g.k.Uq=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.La,d:D8a(this)};this.url&&z5a(a,this.url);this.policy.B&&(a.mph=this.rb.toFixed(),a.tph=this.Ab.toFixed());a.ulb=this.Va;a.ult=this.Fa;a.abw=this.Sa;return a};
    g.k.now=function(){return(0,g.fC)()};
    g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
    var MY;g.x(PY,NY);g.k=PY.prototype;g.k.Uq=function(){var a=NY.prototype.Uq.call(this);a.pb=this.Yz;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a};
    g.k.Cr=function(){var a=this.Cb;this.gb||(this.gb=a.Cr?a.Cr():1);return this.gb};
    g.k.qK=function(){return this.Bl?this.Cr()!==1:!1};
    g.k.qR=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.rr){OY(this,a,b);this.Nv(a,b);var d=this.Cr();this.Tb=c;d===2?this.rr||(this.Fa?bR(this.Nc,this.Fa/1E3,this.Va,.25):bR(this.Nc,b/(c||this.Sa),b,.01),dR(this.Nc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.Bb||this.policy.G||!this.xo()||G8a(this,c,b),this.xo()&&dR(this.Nc,b,this.C));cR(this.Nc,(a-this.j)/1E3||.01,this.B,this.Wa,this.Ip)}this.deactivate()}};
    g.k.Nv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Cr();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&G8a(this,.05,d),this.Bb=!0):d>0&&(G8a(this,c,d),this.Bb=!0)):H8a(this,b)&&(e===1&&(c=(this.Z-this.j)/1E3,d=(a-this.Z)/1E3,this.Bl&&L8a(this,this.now()),this.Jb||this.rr||(e=this.Nc,e.K.Si(1,c),e.ra.Si(1,d))),this.qa=a,this.La=b,this.isActive=!0);NY.prototype.Nv.call(this,a,b)};
    g.k.XK=function(a){if(!this.rr){OY(this,a,this.K);var b=(a-this.j)/1E3;this.Cr()!==2&&this.xo()&&(this.C+=(a-this.D)/1E3,dR(this.Nc,this.B,this.C));cR(this.Nc,b,this.B,this.Wa,this.Ip,!0);a=(a-this.D)/1E3;gVa(this.Nc,a,0);this.Vu(a,0)}};
    g.k.xo=function(){return H8a(this,this.B)};
    g.k.wY=function(){this.Bl&&L8a(this,this.now());return this.Ma};
    g.k.nx=function(){return this.B>this.iS&&H8a(this,this.B)};
    g.k.NJ=function(){return this.Za};
    g.k.LS=function(a){a=a===void 0?this.now():a;if(this.Bl){L8a(this,a);if(this.gb?this.qK():this.ra!==this.Ea){var b=this.Ea;if(a<b){this.Za=this.Ea;return}}else b=this.ra;b=Math.max(b,this.Ma)}else b=this.Ma;var c=this.Yz-this.B;c<0&&(c=0);c=(c*this.snapshot.stall+c/this.snapshot.byterate)*1E3;this.Za=c=this.xo()?c+a:c+Math.max(a,b)};
    g.k.AJ=function(){return this.now()-this.qa};
    g.k.JP=function(){return(this.B-this.La)*1E3/this.AJ()||0};
    g.k.xY=function(){return this.qa};QY.prototype.feed=function(a){mN(this.j,a);this.rf()};
    QY.prototype.rf=function(){if(this.D){if(!this.j.totalLength)return;var a=this.j.split(this.C-this.B),b=a.fK;a=a.jn;if(!this.Cb.hs(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.v(M8a(this.j,c));b=a.next().value;c=a.next().value;c=g.v(M8a(this.j,c));a=c.next().value;c=c.next().value;if(b<0||a<0)break;if(!(c+a<=this.j.totalLength)){if(!(this.Cb.hs&&c+1<=this.j.totalLength))break;c=this.j.split(c).jn;this.Cb.hs(b,c,0,
        a)&&(this.D=b,this.B=c.totalLength,this.C=a,this.j=new lN([]));break}a=this.j.split(c).jn.split(a);c=a.jn;this.Cb.BB(b,a.fK);this.j=c}};
    QY.prototype.dispose=function(){this.j=new lN};g.k=RY.prototype;g.k.sP=function(){return 0};
    g.k.EJ=function(){return null};
    g.k.mY=function(){return null};
    g.k.vu=function(){return this.state>=1};
    g.k.isComplete=function(){return this.state>=3};
    g.k.Lm=function(){return this.state===5};
    g.k.onStateChange=function(){};
    g.k.Hc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
    g.k.rB=function(a){a&&this.state<a?this.Hc(a):this.callback&&this.callback(this,this.state)};
    g.k.Na=function(){return this.state===-1};
    g.k.Vc=function(){var a="";this.info.jb.forEach(function(b){a+=b.Vc()+"."});
        return a.slice(0,-1)};
    g.k.dispose=function(){this.Na()||(this.info.jb[0].j.C=!1,this.Hc(-1))};
    g.k.OP=function(){return 0};g.k=O8a.prototype;g.k.xB=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Cb.Ru()};
    g.k.onError=function(){this.C=!0;this.onDone()};
    g.k.onDone=function(){this.Na||(this.D=!0,this.Cb.Jo())};
    g.k.Yt=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
    g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
    g.k.ME=function(){return+this.getResponseHeader("content-length")};
    g.k.Em=function(){return this.B};
    g.k.jy=function(){return this.status>=200&&this.status<300&&!!this.B};
    g.k.Qr=function(){return this.j.totalLength>0};
    g.k.Cy=function(){var a=this.j;this.j=new lN;return a};
    g.k.yL=function(){return this.j};
    g.k.abort=function(){this.Na=!0;this.xhr.abort()};
    g.k.wC=function(){return!0};
    g.k.ML=function(){return this.C};
    g.k.wf=function(){return""};g.k=Q8a.prototype;
    g.k.dC=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w;return g.G(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=Ye(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new P8a(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(A.j!=5)return n<=m?g.z(A,MWa(b,c,d,n,f),5):A.Ia(0);p=A.B;if(p===void 0)throw Error("invariant: data is undefined");q=n*e;
        r=(n+1)*e;t=Math.max(0,h.start-q);u=Math.min(h.end+1,r)-(t+q);w=new Uint8Array(p.buffer,t,u);a.B.append(w);a.loaded+=u;a.loaded<h.length&&a.Cb.qs((0,g.fC)(),a.loaded);n++;return A.Ia(2)})};
    g.k.getResponseHeader=function(a){return a==="content-type"?this.j.get("type"):""};
    g.k.abort=function(){};
    g.k.Yt=function(){return!0};
    g.k.ME=function(){return this.range.length};
    g.k.Em=function(){return this.loaded};
    g.k.jy=function(){return!!this.loaded};
    g.k.Qr=function(){return!!this.B.totalLength};
    g.k.Cy=function(){var a=this.B;this.B=new lN;return a};
    g.k.yL=function(){return this.B};
    g.k.wC=function(){return!0};
    g.k.ML=function(){return!!this.error};
    g.k.wf=function(){return this.error};g.k=S8a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.N);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.Y,this.onError).then(void 0,Lsa)};
    g.k.onDone=function(){this.Na()||this.Cb.Jo()};
    g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
    g.k.Yt=function(){return!!this.responseHeaders};
    g.k.Em=function(){return this.B};
    g.k.ME=function(){return+this.getResponseHeader("content-length")};
    g.k.jy=function(){return this.status>=200&&this.status<300&&!!this.B};
    g.k.Qr=function(){return!!this.j.totalLength};
    g.k.Cy=function(){var a=this.j;this.j=new lN;return a};
    g.k.yL=function(){return this.j};
    g.k.Na=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.wC=function(){return!0};
    g.k.ML=function(){return this.K};
    g.k.wf=function(){return this.errorMessage};g.k=T8a.prototype;g.k.onDone=function(){if(!this.Na){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Cb.Jo()}};
    g.k.xB=function(){this.xhr.readyState===2&&this.Cb.Ru()};
    g.k.Cg=function(a){this.Na||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Cb.qs((0,g.fC)(),a.loaded))};
    g.k.Yt=function(){return this.xhr.readyState>=2};
    g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.kE(Error("Could not read XHR header "+a)),""}};
    g.k.ME=function(){return+this.getResponseHeader("content-length")};
    g.k.Em=function(){return this.B};
    g.k.jy=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B};
    g.k.Qr=function(){return this.j&&!!this.response&&!!this.response.byteLength};
    g.k.Cy=function(){var a=this.response;this.response=void 0;return new lN([new Uint8Array(a)])};
    g.k.yL=function(){return new lN([new Uint8Array(this.response)])};
    g.k.abort=function(){this.Na=!0;this.xhr.abort()};
    g.k.wC=function(){return!1};
    g.k.ML=function(){return!1};
    g.k.wf=function(){return""};g.x(UY,g.I);g.k=UY.prototype;g.k.tda=function(){if(!this.Na()){var a=(0,g.fC)(),b=!1;if(this.timing.xo()){if(this.G)return;var c=this.timing.NJ();this.timing.LS();var d=this.timing.NJ();d-c>=this.policy.Jk*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=this.j>=5):this.j=0}else{var e=a-this.timing.wY();
        e>0&&(this.j+=1);a=FSa(VY(this),!1)*this.policy.yD;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Cb.aQ();
        b?this.IH(!1):this.B.start()}};
    g.k.IH=function(a){this.D=!0;a&&(a=VY(this),a.C+=1);this.Cb.rz();this.lastError="net.timeout";WY(this)};
    g.k.canRetry=function(a){var b=VY(this);a=a?this.policy.Wv:this.policy.uj;return b.timedOut<this.policy.Zv&&b.j<a};
    g.k.eh=function(){return this.lastError};
    g.k.Rw=function(){return this.j};
    g.k.dispose=function(){this.B.dispose();g.I.prototype.dispose.call(this)};var p3={},l9a=(p3["1h"]=8,p3["9h"]=4,p3["1"]=8,p3["9"]=4,p3["("]=4,p3.h=2,p3.H=2,p3),q3={},m9a=(q3.o=3,q3.O=3,q3.so=3,q3.a=1,q3.ah=1,q3.A=1,q3.m=1,q3.M=1,q3.sa=1,q3.mac3=7,q3.MAC3=7,q3.meac3=5,q3.MEAC3=5,q3),r3={},n9a=(r3.o=0,r3.O=0,r3.a=0,r3.ah=0,r3.A=0,r3.m=1,r3.M=1,r3.mac3=1,r3.MAC3=1,r3.meac3=1,r3.MEAC3=1,r3.so=4,r3.sa=4,r3);var q9a={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var ZY,YY,$Y=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"]],f9a=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],g9a=["571 401 400 399 398 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],h9a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],i9a=["412","359"],j9a=[["140"],["251"],["380"],["328"]],s3={},b9a=(s3["398"]=["397","396","395","394"],s3["247"]=["780","779",
        "244","243","242"],s3["136"]=["135","134","133","160"],s3["141"]=["140"],s3["251"]=["250"],s3),t3={},c9a=(t3["135"]=["134","133","160"],t3["243"]=["242"],t3["781"]=["780","779"],t3["777"]=["776","775"],t3["396"]=["395","394"],t3["141"]=["140"],t3["251"]=["250"],t3),u3={},d9a=(u3["274"]=["317","273","318","280","279"],u3["145"]=["144","222","223","143","142"],u3["141"]=["149"],u3["140"]=["149"],u3["380"]=["381"],u3["328"]=["329"],u3),v3={},$8a=(v3["133"]=240,v3["134"]=360,v3["135"]=480,v3["136"]=720,
        v3["137"]=1080,v3["242"]=240,v3["243"]=360,v3["244"]=480,v3["247"]=720,v3["248"]=1080,v3["298"]=720,v3["299"]=1080,v3["302"]=720,v3["303"]=1080,v3["395"]=240,v3["396"]=360,v3["397"]=480,v3["398"]=720,v3["399"]=1080,v3);g.x(FY,RY);g.k=FY.prototype;g.k.Rp=function(){return this.timing.requestNumber};
    g.k.Ce=function(){return this.ke.Ce()};
    g.k.Dr=function(){var a=W8a(this.Hd);if(this.Ll){var b=this.Ll,c=b.j.totalLength;a.ulen=c;c>0&&(b=qN(b.j,0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.Bg&&(a.rc=this.policy.Pl?this.Bg:this.Bg.toString());this.policy.Qc&&this.A2&&(a.tr=this.A2);a.itag=this.info.jb[0].j.info.itag;a.ml=""+ +this.info.jb[0].j.jg();a.sq=""+this.info.jb[0].Pa;this.ke&&(a.ifi=""+ +RRa(this.info.resource.C));this.Bg!==410&&this.Bg!==500&&this.Bg!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==null?
        void 0:d.wf()))&&(a.msg=c);this.yH&&(a.smb="1");this.info.aq()&&(a.sdai="1");return a};
    g.k.hY=function(){return I8a(this.timing)};
    g.k.wf=function(){return this.xhr.wf()||""};
    g.k.nx=function(){return this.isComplete()||this.timing.nx()};
    g.k.qs=function(){!this.Na()&&this.xhr&&(this.Bg=this.xhr.status,this.policy.Vp&&this.dg&&this.Im(!1),this.El()?this.rB(2):!this.ZY&&this.nx()&&(this.rB(),this.ZY=!0))};
    g.k.Ru=function(){if(!this.Na()&&this.xhr){if(!this.Kz&&this.xhr.Yt()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Kz=((0,g.fC)()-a)/1E3}this.xhr.Yt()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.PC&&!kQa()&&g.uB("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Ju)==null||c.stop();this.Wp=a||this.Wp;
        this.Nr=b||this.Nr}};
    g.k.Jo=function(){var a=this.xhr;if(!this.Na()&&a){this.Bg=a.status;a=this.fQ(a);if(this.policy.Qc){var b;(b=this.Ju)==null||b.stop()}a===5?WY(this.Hd):this.Hc(a);this.Hd.B.stop()}};
    g.k.fQ=function(a){var b=this;x9a(this);if(XY(this.Hd,this.xhr.status,this.Pp?this.timing.G||this.BM:this.xhr.jy(),!1,this.uu))return 5;var c="";if(t9a(this)){var d=a.yL();d.totalLength<=this.policy.Mp&&(c=u9a(this,oN(d)))}if(c)return ESa(VY(this.Hd)),this.info.rl(this.ke,c),3;c=a.Em();if(this.Ll){this.Im(!0);x9a(this);if(XY(this.Hd,this.xhr.status,this.timing.G||this.BM,!1,this.uu))return 5;if(!this.P2){if(this.BM)return ESa(VY(this.Hd)),3;this.Hd.lastError="net.closed";return 5}}else{if(XY(this.Hd,
        this.xhr.status,this.xhr.jy(),!1,this.uu))return 5;if((d=this.info.C)&&d!==c||a.ML())return this.Hd.lastError="net.closed",5;this.Im(!0)}d=N8a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=N8a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.D1=!0,this.policy.AF&&(d=a);V8a(this.Hd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Wa*1E3+e.j-Date.now()).toFixed(0)});
        return 4};
    g.k.canRetry=function(){this.Na();var a=this.info.aq();return this.Hd.canRetry(a)};
    g.k.onStateChange=function(){this.isComplete()&&(this.policy.qp?this.rz():this.timing.deactivate())};
    g.k.IH=function(a){this.Hd.IH(a)};
    g.k.aQ=function(){this.callback&&this.callback(this,this.state)};
    g.k.Rw=function(){return this.Hd.Rw()};
    g.k.dispose=function(){RY.prototype.dispose.call(this);this.Hd.dispose();var a;(a=this.Ju)==null||a.dispose();this.policy.qp||this.rz()};
    g.k.rz=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
    g.k.Mk=function(){if(!this.zG().length)return[];this.iQ=!0;return this.dg.Mk()};
    g.k.El=function(){if(this.state<1)return!1;if(this.dg&&this.dg.zf.length)return!0;var a;return((a=this.xhr)==null?0:a.Qr())?!0:!1};
    g.k.zG=function(){this.Im(!1);return this.dg?this.dg.zG():[]};
    g.k.Im=function(a){try{if(a||this.xhr.Yt()&&this.xhr.Qr()&&!t9a(this)&&!this.HB)this.dg||(this.dg=new HX(this.policy,this.info.jb)),this.xhr.Qr()&&(this.Ll?this.Ll.feed(this.xhr.Cy()):IX(this.dg,this.xhr.Cy(),a&&!this.xhr.Qr()))}catch(b){this.Ll?s9a(this,b):g.kE(b)}};
    g.k.BB=function(a,b){switch(a){case 21:a=b.split(1).jn;v9a(this,a);break;case 22:this.P2=!0;IX(this.dg,new lN([]),!0);break;case 43:if(a=EN(new yN(b),1))this.info.rl(this.ke,a),this.BM=!0;break;case 45:b=kRa(new yN(b));a=b.ZS;b=b.aT;a&&b&&(this.GI=a/b);break;case 44:this.eC=jRa(new yN(b));var c,d,e;!this.timing.G&&((c=this.eC)==null?void 0:c.action)===4&&((d=this.eC)==null?0:(e=d.t1)==null?0:e.Pp)&&(this.Pp=this.eC.t1.Pp);break;case 53:this.policy.Qc&&(a=gRa(new yN(b)).kq)&&(this.Ju||(this.kq=a,this.Ju=
        new g.Av(this.h_,a,this)),this.Ju.start());break;case 60:this.VA=SQa(new yN(b));break;case 64:this.policy.BC&&(a=UQa(new yN(b)),this.policy.Pu(a));break;case 58:this.policy.ew&&(a=IQa(new yN(b)))&&(this.ej=a,this.policy.Qi&&a.ej===3&&(this.uu=!0))}};
    g.k.hs=function(a,b,c,d){c||this.timing.hs(d);if(a!==21)return!1;if(a=this.policy.Vp)if(a*=this.info.jb[0].j.info.tb,b.totalLength+c!==d&&b.totalLength<a)return!1;if(!c){if(b.totalLength===1)return!0;b=b.split(1).jn}v9a(this,b);return!0};
    g.k.Em=function(){return this.xhr.Em()};
    g.k.sP=function(){return this.Kz};
    g.k.Cr=function(){return this.qK()?2:1};
    g.k.qK=function(){if(!this.policy.N.jj||!isNaN(this.info.hh)&&this.info.hh>0)return!1;if(!this.xhr.Yt())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ll)var a=!this.info.C;else this.xhr.ME()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.hh))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)>
        this.info.jb[0].Pa)return!1;return!0};
    g.k.OP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
    g.k.EJ=function(){this.xhr&&(this.Wp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Wp};
    g.k.mY=function(){this.xhr&&(this.Nr=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Nr};
    g.k.eh=function(){return this.Hd.eh()};
    g.k.h_=function(){if(!this.Na()&&this.xhr){this.A2="heartbeat";var a=this.Hd;a.j+=2;this.aQ()}};cZ.prototype.BB=function(a,b){switch(a){case 20:a=new yN(b);a={Xp:BN(a,1),videoId:EN(a,2),itag:BN(a,3),lmt:BN(a,4),xtags:EN(a,5),fC:BN(a,6),uo:CN(a,8),Fq:BN(a,9),lpb:BN(a,10),startMs:BN(a,11),durationMs:BN(a,12),Bs:BN(a,14),timeRange:FN(a,15,wQa),Mj:BN(a,16),YK:BN(a,17),clipId:EN(a,1E3)};this.OR(a);break;case 21:this.MR(b,!1);break;case 22:this.qq(b);break;case 31:a=IN(b,ZQa);this.wB(a);break;case 52:a=IN(b,hRa);this.yB(a);break;default:this.CR(a,b)}};
    cZ.prototype.OR=function(){};
    cZ.prototype.CR=function(){};g.x(dZ,NY);g.k=dZ.prototype;g.k.Nv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.xo()?d>0&&(this.ra&&(c>.2||d<1024?(this.C+=c,c>.2&&bR(this.Nc,.05,d,.05)):bR(this.Nc,c,d,c)),this.Ea&&(this.Ma+=d,this.Wa+=c)):(c=this.Nc,d=(a-this.Z)/1E3,c.K.Si(1,(this.Z-this.j)/1E3),c.ra.Si(1,d),this.qa=a,this.La=b);NY.prototype.Nv.call(this,a,b)};
    g.k.qR=function(a,b){OY(this,a,b);this.Nv(a,b);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.xo()&&dR(this.Nc,this.Ma,this.C),cR(this.Nc,(a-this.j)/1E3||.01,this.B,b,!1))};
    g.k.XK=function(a){OY(this,a,this.K);var b=(a-this.D)/1E3;gVa(this.Nc,b,0);this.Vu(b,0);this.ra&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.xo()&&(this.C+=(a-this.D)/1E3,dR(this.Nc,this.Ma,this.C)),cR(this.Nc,(a-this.j)/1E3||.01,this.B,b,!1,!0))};
    g.k.tG=function(a){a=a.gO||2147483647;(a&2)!==2&&(this.Ea=!1);(a&1)===1&&(this.ra=!0)};
    g.k.jG=function(a){a=a.gO||2147483647;(a&2)===2&&(this.Ea=!1);(a&1)===1&&(this.ra=!1)};
    g.k.xY=function(){return this.qa};
    g.k.AJ=function(){var a=this.Ea?this.now()-this.D:0;return Math.max(this.Wa*1E3+a,1)};
    g.k.JP=function(){return this.Ma*1E3/this.AJ()};
    g.k.xo=function(){return this.B>2048};
    g.k.W0=function(a){this.Za=a};
    g.k.Uq=function(){var a=NY.prototype.Uq.call(this);a.rbw=this.JP();a.rbe=+this.Ea;a.gbe=+this.ra;a.ackt=(this.Za-this.j).toFixed();return a};
    g.k.LS=function(){};
    g.k.NJ=function(){return NaN};
    g.k.wY=function(){return this.j+this.snapshot.delay*1E3};g.x(z9a,cZ);g.k=z9a.prototype;
    g.k.CR=function(a,b){switch(a){case 35:this.rq(b);break;case 44:this.pG(b);break;case 43:this.WR(b);break;case 53:this.UR(b);break;case 55:a=new yN(b);(a={timeline:FN(a,1,mRa),Eda:FN(a,2,pRa)},a.timeline)&&a.timeline.z2&&this.Cb.bS(a.timeline.z2,a.timeline.fea,a.Eda);break;case 56:this.mG();break;case 57:this.oG(b);break;case 42:this.FR(b);break;case 45:this.rG(b);break;case 59:this.nG(b);break;case 51:this.sG(b);break;case 49:this.tG(b);break;case 50:this.jG(b);break;case 47:this.qG(b);break;case 58:this.Tm(b);
        break;case 61:this.Cb.Jd.W0((0,g.fC)());break;case 66:this.kG(b)}};
    g.k.sG=function(a){a=new yN(a);a={Erb:HN(a,1,KO),Drb:HN(a,2,KO)};this.Cb.sG(a)};
    g.k.nG=function(a){var b=new yN(a);a=GN(b,1);var c=GN(b,2);b=GN(b,3);this.Cb.nG(a,c,b)};
    g.k.rG=function(a){a=kRa(new yN(a));this.Cb.rG(a)};
    g.k.qG=function(a){a=IN(a,bRa);this.Cb.qG(a)};
    g.k.FR=function(a){a=new yN(a);a={videoId:EN(a,1),formatId:FN(a,2,KO),endTimeMs:BN(a,3),qpb:BN(a,4),mimeType:EN(a,5),lZ:FN(a,6,RQa),indexRange:FN(a,7,RQa),lP:FN(a,8,HQa)};this.Cb.FR(a)};
    g.k.oG=function(a){a=pRa(new yN(a));this.Cb.oG(a)};
    g.k.mG=function(){this.Cb.mG()};
    g.k.rq=function(a){a=$Qa(new yN(a));this.Cb.rq(a)};
    g.k.UR=function(a){a=gRa(new yN(a));this.Cb.UR(a)};
    g.k.pG=function(a){a=jRa(new yN(a));this.Cb.pG(a)};
    g.k.WR=function(a){a={redirectUrl:EN(new yN(a),1)};this.Cb.WR(a)};
    g.k.MR=function(a){var b=qN(a,0);if(a.totalLength!==1){a=a.split(1).jn;var c=this.B[b]||null;c&&u6a(this.Cb.Zf,b,c,a)}};
    g.k.qq=function(a){a=qN(a,0);var b=this.B[a]||null;b&&this.Cb.qq(a,b)};
    g.k.yB=function(a){this.Cb.yB(a)};
    g.k.OR=function(a){var b=a.Xp,c=a.uo,d=a.fC,e=a.YK,f=a.Mj,h=a.Fq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Bs,q=a.clipId,r=y9a(a);a=Fpb.has(OJ[""+a.itag]);this.B[b]=r;this.Cb.AB(r,a,{Xp:b,uo:!!c,fC:d!=null?d:-1,Fq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Bs:p,YK:e,Mj:f,clipId:q,timeRange:n})};
    g.k.tG=function(a){a={gO:BN(new yN(a),1)};this.Cb.tG(a)};
    g.k.jG=function(a){a={gO:BN(new yN(a),1)};this.Cb.jG(a)};
    g.k.wB=function(a){this.Cb.wB(a)};
    g.k.Tm=function(a){a=IQa(new yN(a));this.Cb.Tm(a)};
    g.k.kG=function(a){a={sZ:FN(new yN(a),1,eRa)};this.Cb.kG(a)};g.x(eZ,g.I);g.k=eZ.prototype;g.k.qs=function(){!this.Na()&&this.xhr&&(this.Im(),n_(this.Cb,this))};
    g.k.Ru=function(){};
    g.k.Jo=function(){if(!this.Na()&&this.xhr){var a=this.fQ();a===5?WY(this.Hd):this.Hc(a);this.Hd.B.stop();var b;(b=this.VG)==null||b.stop()}};
    g.k.fQ=function(){if(XY(this.Hd,this.xhr.status,this.uu?this.Jd.G:this.xhr.jy(),this.info.pu(),this.uu))return 5;this.Im();if(this.v1)return 3;V8a(this.Hd,this.xhr.Em(),0);this.policy.Tb&&Wbb(this.Cb);return 4};
    g.k.Im=function(){var a=this.xhr;if(a.Qr()){a=a.Cy();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
        this.Ll.feed(a)}};
    g.k.BB=function(a,b){this.Jd.policy.j&&a===21&&(this.Jd.G=!0);this.Gda.BB(a,b)};
    g.k.hs=function(a,b,c,d){this.Jd.policy.j&&a===21&&(this.Jd.G=!0);c||this.Jd.hs(d);return!1};
    g.k.rq=function(a){this.Cb.rq(a)};
    g.k.UR=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.VG)==null||b.dispose();this.MS=a;a.E0&&(this.VG=new g.Av(this.g_,a.E0,this));this.g_()}};
    g.k.g_=function(){var a;if((a=this.MS)!=null&&a.items){var b;(b=this.VG)==null||b.start();if(this.Jd.xo()){a=this.Jd.AJ();b=this.Jd.JP();var c=B9a(this,a);if(!(b>c.NK||c.iR>0&&this.info.wP()>c.iR)){this.NS=(0,g.fC)();var d;(d=this.VG)==null||d.stop();this.policy.Tb&&(d=this.Cb,a={ww:Math.round(b*a/1E3),Jy:a},d.policy.Tb&&(d.Fa=a,d.Cq++));this.Hd.IH(!1)}}}};
    g.k.pG=function(a){this.Cb.pG(a)};
    g.k.WR=function(a){this.v1=!0;this.info.resource.rl(this.ke,a.redirectUrl)};
    g.k.tG=function(a){this.Jd instanceof dZ&&this.Jd.tG(a)};
    g.k.jG=function(a){this.Jd instanceof dZ&&this.Jd.jG(a)};
    g.k.bS=function(a,b,c){this.Cb.bS(a,b,c,this.Rp())};
    g.k.FR=function(a){if(kV(this.policy)){var b=a.formatId,c=y9a({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new TP(((d=a.lZ)==null?void 0:d.first)||0,((e=a.lZ)==null?void 0:e.EZ)||0),h,l;d=new TP(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.EZ)||0);this.manifest.K.get(c)||(c=a.lP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=vQ(""),c=uQ(c,null),sQ(a,new qQ(b,c,f,d)))}};
    g.k.rG=function(a){this.Cb.rG(a)};
    g.k.wB=function(a){this.Cb.wB(a)};
    g.k.nG=function(a,b,c){this.Cb.nG(a,b,c)};
    g.k.oG=function(a){a.scope===2&&(this.Fda=a);this.Cb.oG(a)};
    g.k.mG=function(){this.PW=!0;this.Cb.mG()};
    g.k.sG=function(a){this.policy.mp&&this.Cb.sG(a)};
    g.k.qG=function(a){this.Cb.qG(a,this.Rp())};
    g.k.Tm=function(a){this.policy.Qi&&a.ej===3&&(this.uu=!0);this.Cb.Tm(a)};
    g.k.kG=function(a){this.policy.An&&this.Cb.kG(a)};
    g.k.canRetry=function(){this.Na();return this.Hd.canRetry(!1)};
    g.k.dispose=function(){if(!this.Na()){g.I.prototype.dispose.call(this);this.Hd.dispose();var a;(a=this.VG)==null||a.dispose();this.Hc(-1);this.rz()}};
    g.k.Hc=function(a){this.state=a;n_(this.Cb,this)};
    g.k.pu=function(){return this.info.pu()};
    g.k.nO=function(){return this.PW};
    g.k.MP=function(){return this.Fda};
    g.k.AB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.K&&!b&&(this.cj=c.Fq,this.Yu=c.startMs);var d=0;this.policy.wh&&this.i_&&this.clipId&&(d=gY(this.i_,this.clipId)/1E3);this.Zf.AB(a,b,c,d);this.Zf.bd.get(a).PD=!0};
    g.k.qq=function(a,b){this.Zf.qq(a,b)};
    g.k.yB=function(a){this.requestIdentifier=a};
    g.k.Mk=function(a){return this.Zf.Mk(a)};
    g.k.Un=function(a){return this.Zf.Un(a)};
    g.k.El=function(a){return this.Zf.El(a)};
    g.k.Br=function(){return this.Zf.Br()};
    g.k.Cr=function(){return 1};
    g.k.Rp=function(){return this.Jd.requestNumber};
    g.k.KP=function(){return this.requestIdentifier};
    g.k.fY=function(){return this.clipId};
    g.k.Ce=function(){return this.ke.Ce()};
    g.k.B_=function(){this.rz()};
    g.k.rz=function(){this.Jd.deactivate();var a;(a=this.xhr)==null||a.abort()};
    g.k.isComplete=function(){return this.state>=3};
    g.k.AZ=function(){return this.state===3};
    g.k.Lm=function(){return this.state===5};
    g.k.aZ=function(){return this.isComplete()};
    g.k.vu=function(){return this.state>=1};
    g.k.Rw=function(){return 0};
    g.k.eY=function(){var a;return(a=this.info.data)==null?void 0:a.kO};
    g.k.aQ=function(){};
    g.k.yY=function(){return Zab(this.info)};
    g.k.eh=function(){return this.Hd.eh()};
    g.k.Dr=function(){var a=W8a(this.Hd);Object.assign(a,$ab(this.info));a.req="sabr";a.rn=this.Rp();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.Pl?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.wf())&&(a.msg=b);this.NS&&(c=B9a(this,this.NS-this.Jd.xY()),a.letm=c.l$,a.mrbps=c.NK,a.mram=c.iR);return a};
    g.k.AY=function(){return{cj:this.cj,Yu:this.Yu,aq:this.info.aq()}};C9a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.fC)()};g.x(N9a,g.DE);g.k=N9a.prototype;
    g.k.QR=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.sz);this.N.XR(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.Fa.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.Fa.set(a.Pa,d)}this.policy.kf&&(c=this.ra&&a.Pa===this.ra.Pa+1,this.ra=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&this.j.Zg.event!=="stop"&&this.j.Zg.event!=="predictStart",e=a.Zg||null,f=this.Y.j.index.Bd()<=
        a.Pa,h=this.manifest.isManifestless&&this.policy.Fv,e?(this.j={Zg:e,Pa:a.Pa,jF:!!b},f?gZ(this,e,a.Pa):h&&(c?d?gZ(this,e,a.Pa):e.event==="continue"||e.event==="stop"?S9a(this,a):gZ(this,e,a.Pa):gZ(this,e,a.Pa))):(d&&S9a(this,a),this.B===4&&hZ(this,5,"qend")))}};
    g.k.PR=function(a,b,c){var d=this.Y.j.index.Bd()<=b;this.j={Zg:a,Pa:b,jF:c};d&&gZ(this,a,b)};
    g.k.Ww=function(){this.N&&this.N.Ww()};
    g.k.ma=function(a,b){this.ya.ma(a,b)};
    g.k.Is=function(a,b){var c=this.Y.j.index.Hi(a),d;if(d=c>=0){var e;d=((e=dY(b.Yc,c,2))==null?void 0:e.Gt)||""}if(d)return b.ev(a,c),Q9a(this.ya,a,a,c),this.ma("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.ma("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.x(lZ,g.I);lZ.prototype.Xo=function(a,b,c){c=c===void 0?{}:c;this.policy.qj=AUa(a,c,this.D,b===void 0?!1:b)};V9a.prototype.fL=function(a){var b=this;if(this.policy.VB){var c=new Set(a);c.size===this.Ea.size&&[].concat(g.ra(c)).every(function(d){return b.Ea.has(d)})||(this.ya.ma("lwnmow",{itagDenylist:[].concat(g.ra(a)).join(",")}),this.ya.uy(!!c.size),this.Y=-1,this.Ea=c,qZ(this,this.j),this.Sa=!0)}};
    V9a.prototype.Xo=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.qj;this.G.Xo(a,b===void 0?!1:b,c);if(d!==this.policy.qj){qZ(this,this.j);rZ(this);var e,f;d>this.policy.qj&&((e=this.C)==null?0:RJ(e.info))&&((f=this.nextVideo)==null||!RJ(f.info))&&(this.qa=!0)}};n$a.prototype.dispose=function(){this.ra=!0};
    n$a.prototype.Na=function(){return this.ra};
    g.x(yZ,Error);var Zgb=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]);BZ.prototype.skip=function(a){this.offset+=a};
    BZ.prototype.Fm=function(){return this.offset};g.k=G$a.prototype;g.k.vY=function(){return this.B};
    g.k.Mo=function(){return this.B.length?this.B[this.B.length-1]:null};
    g.k.Zk=function(){this.B=[];DZ(this);F$a(this)};
    g.k.Hs=function(){this.eb=this.B.shift().info};
    g.k.Un=function(){return g.as(this.B,function(a){return a.info})};
    g.k.Fh=function(){return!!this.K.info.audio};
    g.k.getDuration=function(){return this.K.index.Qt()};g.x(EY,RY);g.k=EY.prototype;g.k.onStateChange=function(){this.Na()&&(LX(this.Zf,this.formatId),this.j.dispose())};
    g.k.Dr=function(){var a=n6a(this.Zf,this.formatId),b;var c=((b=this.Zf.bd.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.Zf.bd.get(this.formatId))==null?void 0:d.Bz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:o6a(this.Zf,this.formatId),isAnyMediaEndReceived:this.Zf.ix(this.formatId)}};
    g.k.hY=function(){return 0};
    g.k.nx=function(){return!0};
    g.k.Mk=function(){return this.Zf.Mk(this.formatId)};
    g.k.zG=function(){return[]};
    g.k.El=function(){return this.Zf.El(this.formatId)};
    g.k.eh=function(){return this.lastError};
    g.k.Rw=function(){return 0};g.x(FZ,g.I);g.k=FZ.prototype;g.k.Mo=function(){return this.D.Mo()};
    g.k.Hs=function(a){this.D.Hs(a);var b;(b=this.Z)!=null&&(b.j=n8a(b,b.ud,b.FB,b.j,a),b.B=a,b.D=(0,g.fC)());this.tb=Math.max(this.tb,a.info.j.info.tb||0)};
    g.k.getDuration=function(){if(this.policy.j){var a=this.ya.Wf();if(a)return jY(a)}return this.j.index.Qt()};
    g.k.Zk=function(){GY(this);this.D.Zk()};
    g.k.FP=function(){return this.D};
    g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.jb[0].Pa:!1};
    g.k.Iq=function(a){var b;(b=this.Z)==null||b.Iq(a)};g.x(TZ,g.I);TZ.prototype.C=function(){this.B++>15||(this.j=!this.j,new wab(this.ya,this.policy,this.Nc,this.resource,this.j),this.delay.start())};
    g.k=wab.prototype;g.k.Ru=function(){};
    g.k.qs=function(){};
    g.k.Jo=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Em()===this.size)this.ya.ma("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.Yt()&&(a="net.closed");this.onError(a)}};
    g.k.onError=function(a){var b=this;this.ya.handleError(a,this.getInfo());rX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ya.ma("pathprobe",c)},function(c){b.ya.handleError(c.errorCode,c.details)})};
    g.k.getInfo=function(){var a=this.timing.Uq();a.shost=eP(this.location.base);a.pb=this.size;return a};g.x(UZ,g.I);UZ.prototype.HQ=function(a,b){if(!RZ(a)||!a.j.jg())return!1;var c=this.C.Sa||jab(a)||b<=this.policy.xD||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+jab(a)+", health: "+b});
        return c};
    UZ.prototype.xa=function(){g.I.prototype.xa.call(this)};
    var VZ=2/24;g.x($Z,g.I);$Z.prototype.eL=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&Pab(this,this.B)?this.B.reason:"a";this.ya.eL(new kZ(a,e,c));YZ(this.ya,b,a,!0)};
    $Z.prototype.z1=function(a){for(var b=g.v(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],this.Ue.j&&(this.Y=!0),new kZ(this.K,"m");this.C=[];return null};
    $Z.prototype.Xo=function(a,b,c){c=c===void 0?{}:c;this.j.Xo(a,b===void 0?!1:b,c)};a_.prototype.pu=function(){return this.requestType===1};
    a_.prototype.wP=function(){var a;return((a=this.Cb)==null?void 0:a.wP())||0};
    a_.prototype.aq=function(){var a;return!((a=this.data)==null||!a.Zm)};g.x(b_,g.I);b_.prototype.encrypt=function(a){(0,g.fC)();return dbb(this).encrypt(a,this.iv)};
    b_.prototype.decrypt=function(a,b){(0,g.fC)();return dbb(this).decrypt(a,b)};ebb.prototype.decrypt=function(a,b,c){var d=this,e,f,h,l,m,n;return g.G(function(p){switch(p.j){case 1:if(d.j.length&&!d.j[0].isEncrypted)return p.return();d.B=!0;d.Um.Td("omd_s");e=new Uint8Array(16);b?c?h=new YQ(c,a):h=new XQ(a):f=new WQ(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ia(4);break}l=d.j.shift();if(!f){m=h.decrypt(oN(l.buffer),e);p.Ia(5);break}return g.z(p,f.decrypt(oN(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(e[q]===255)e[q]=0;else{e[q]+=1;break}q=d.Um;
        var r=l.videoId,t=l.Xp,u=l.formatId,w=new lN([n]),A;(A=c_(q.qd,r))==null||u6a(A,t,u,w);p.Ia(2);break;case 4:d.Um.Td("omd_c"),d_(d),d.B=!1,d.Um.NR(),g.Aa(p)}})};
    ebb.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,Xp:b,formatId:c,buffer:d,isEncrypted:e});this.B||d_(this)};var obb=!!Uint8Array.prototype.copyWithin,e_=[],fbb=[],ibb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],g_=[],f_=[],h_=[],gbb=[];g.x(qbb,cZ);g.k=qbb.prototype;g.k.NR=function(){this.qd.NR()};
    g.k.CR=function(a,b){switch(a){case 10:var c=IN(b,XQa);a=c.Jca;var d=!1;switch(a){case 0:this.D=!c.B0.c$;this.iv=c.B0.iv;break;case 2:break;case 23:var e=this.qd;c=c.K$;e.Td("omp_r");c.videoId&&(e.Su=c.videoId);e.Su!==e.videoData.videoId&&(e.videoData.mfa=e.Su,e.ma("ompp","vid."+e.Su));e.cR=!0;break;case 24:c=this.qd;c.Td("omp_c");c.cR=!1;c.aH=!1;var f=(e=c.ag)==null?void 0:e.get(c.Su);c.notifySubscribers(c.Su);f!=null&&(f.j=!0);j_(c);break;default:d=!0}this.qd.Jm&&this.qd.ma("ombup","id.10;pt."+
        a+";len."+b.totalLength+(d?";ignored.1":""));this.C=a;break;case 11:tbb(this,b);break;case 12:this.MR(b,!0);break;case 37:b=IN(b,YQa);(b.s7||b.oU)&&b.videoId&&this.qd.cY.set(b.videoId,b);break;case 60:this.JR(b);break;case 64:this.Pu(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=IN(b,bRa),this.qd.playbackStartPolicy=b);break;case 35:this.rq(b);break;default:this.qd.Jm&&this.qd.ma("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
    g.k.wB=function(a){this.qd.RZ=a};
    g.k.JR=function(a){a=IN(a,SQa);this.qd.JR(a)};
    g.k.Pu=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=IN(a,UQa),this.qd.Pu(a))};
    g.k.OR=function(a){var b=a.Xp,c=a.uo,d=a.fC,e=a.Mj,f=a.Fq,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Bs,p=y9a(a),q=Fpb.has(OJ[""+a.itag]);c&&this.Td(q?"oais_r":"ovis_r");var r=this.j[p]!==void 0;this.qd.Jm&&this.qd.ma("ombup","id.20;hid."+b+";fid"+p);var t=a.videoId||"";this.B[b]=p;this.G[b]=t;r||(this.j[p]={videoId:t,TY:!1,Fh:q,headers:[]});this.j[p].headers.push(a);this.qd.AB(t,p,q,{Xp:b,uo:!!c,fC:d!=null?d:-1,Fq:f!=null?f:-1,startMs:h!=null?h:-1,durationMs:l!=null?l:-1,Bs:n!=null?n:0,Mj:e,timeRange:m})};
    g.k.MR=function(a,b){var c=qN(a,0);this.qd.Jm&&this.qd.ma("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(a.totalLength!==1){a=a.split(1).jn;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.gj(this.j[d].Fh?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
    g.k.qq=function(a){var b=qN(a,0);this.qd.Jm&&this.qd.ma("ombup","id.22;len."+a.totalLength+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.L("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,Xp:b,formatId:a,isEncrypted:!1,z8:!0});d.B||d_(d)}else this.qd.qq(c,b,a)};
    g.k.yB=function(a){this.qd.yB(a)};
    g.k.TR=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C;return g.G(function(E){switch(E.j){case 1:c.qd.TR();d=oN(a);if(!b){f=d;E.Ia(2);break}return g.z(E,Dbb(c.qd,d,c.iv),3);case 3:f=E.B;case 2:e=f;if(!c.qd.enableCompression){E.Ia(4);break}h=c.qd.U();m=(l=performance)==null?void 0:l.now();return g.z(E,pbb(e,h.Md),5);case 5:e=E.B,c.qd.ma("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Md,rt:((n=performance)==null?NaN:n.now())-m});case 4:try{p=IN(e,GQa)}catch(H){return q=H instanceof
    Error?{name:H.name,message:H.message}:{},q.webcrypto=""+ +!!dN(),q.enc=""+ +c.D,r=new BJ("onesie.response.parse",q),E.return(Promise.reject(r))}if(p.q0!==1)return t={st:p.q0,webcrypto:""+ +!!dN(),textencoder:""+ +!!g.Ua.TextEncoder},u=new BJ("onesie.response.badproxystatus",t),E.return(Promise.reject(u));if(p.fZ!==200)return w={st:p.fZ},A=new BJ("onesie.response.badstatus",w),E.return(Promise.reject(A));C=g.vN(p.body);return E.return(C)}})};
    g.k.rq=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=IN(a,$Qa),this.qd.rq(a))};
    g.k.Td=function(a){this.qd.Td(a)};
    g.k.gj=function(a){return this.qd.gj(a)};
    g.k.L=function(a){return this.qd.L(a)};g.x(l_,g.I);g.k=l_.prototype;g.k.fY=function(){return""};
    g.k.Br=function(a){var b,c;return((c=(b=this.ag)==null?void 0:b.get(a))==null?void 0:c.Br())||[]};
    g.k.El=function(a,b){var c;return!((c=c_(this,b))==null||!c.El(a))};
    g.k.Mk=function(a,b){var c;return((c=c_(this,b))==null?void 0:c.Mk(a))||[]};
    g.k.Un=function(a,b){var c;return((c=c_(this,b))==null?void 0:c.Un(a))||[]};
    g.k.Hc=function(a){this.state=a;this.notifySubscribers()};
    g.k.pu=function(){return!1};
    g.k.nO=function(){return!1};
    g.k.MP=function(){};
    g.k.Td=function(a){this.ea.Td(a)};
    g.k.gj=function(a){return this.ea.gj(a)};
    g.k.hs=function(a,b,c,d){c||this.Jd.hs(d);return!1};
    g.k.BB=function(a,b){this.Um.BB(a,b)};
    g.k.DR=function(){this.Td("orfb");this.oK=!0;if(Ebb(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Em(),rt:(1E3*I8a(this.Jd)).toFixed(),shost:g.zn(this.fS),trigger:"o1"};this.ma("pathprobe",AJ(a))}};
    g.k.TR=function(){this.Td("opr_r");this.YY=!0};
    g.k.AB=function(a,b,c,d){if(this.ag){if(!this.ag.has(a)){var e=new JX(this);this.ag.set(a,e);g.M(this,e)}var f;(f=this.ag.get(a))==null||f.AB(b,c,d);j_(this);this.L("html5_enable_sabr_ssdai")&&!c&&(this.cj=d.Fq,this.Yu=d.startMs)}else j_(this)};
    g.k.JR=function(a){this.VA=a};
    g.k.Pu=function(a){this.X.Pu(a)};
    g.k.rq=function(a){a.videoId&&this.u_.set(a.videoId,a)};
    g.k.NR=function(){if(this.ag)for(var a=g.v(this.ag.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;(c=this.ag.get(b.value))==null||c.rB()}};
    g.k.ma=function(a,b,c){this.ea.ma(a,b,c===void 0?!1:c)};
    g.k.qq=function(a,b,c){var d;(d=c_(this,a))==null||d.qq(b,c)};
    g.k.yB=function(a){this.f1.set(a.videoId,a)};
    g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,E,H,L;return g.G(function(N){switch(N.j){case 1:a.logger.debug("Onesie fetch started.");a.NH?a.uO.start():a.wG.start();a.Td("or_i");b=a.X.experiments.fb("html5_onesie_verbose_timing");c={};d=(0,g.fC)();e=function(Q){b&&(c[Q]=(0,g.fC)()-d)};
        e("loc_s");if(f=vbb(a.videoData,a.xA)){N.Ia(2);break}e("loc_async");h=g.hI(a.X.experiments,"html5_onesie_redirector_timeout_ms");return g.z(N,wbb(a.videoData,a.xA,h),3);case 3:f=N.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new BJ("onesie.unavailable.hotconfig",l),a.xj(m),N.return(a.Mq);a.A1=eP(f);e("loc_e");n=g.JR(a.X,g.bT(a.videoData));if(!n.j){p=n.getValue();N.Ia(4);break}return g.z(N,n.j,5);case 5:p=N.B;case 4:q=p;e("oauth");r=ybb(a.playerRequest,a.X,a.videoData,
        q,vX(a.A1));g.Ba(N,6);if(!sbb(a,r)){e("or_s_sync");a.qL=Abb(r,a.vG,a.X,a.ea,a.RO.onesieUstreamerConfig,(t=a.videoData.eS)==null?void 0:t.gp);N.Ia(8);break}e("or_s_async");return g.z(N,Cbb(r,a.vG,a.X,a.ea,a.RO.onesieUstreamerConfig,(u=a.videoData.eS)==null?void 0:u.gp),9);case 9:a.qL=N.B;case 8:g.Ca(N,7);break;case 6:return w=g.Da(N),a.logger.info("Failed to create OnesieRequestProto."),a.xj(w),N.return(a.Mq);case 7:return e("or_e"),b&&a.ma("oreqvt",c),a.enableCompression=a.qL.wQ.aP,a.Td("osor"),A=
        r0a(),C=g.QN(a.qL,rQa),E={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},H=a.L("html5_onesie_media_capabilities"),xbb(f,a.videoData,Gbb(a),H),a.logger.debug("Starting Onesie network request."),a.Jm&&a.ma("ombrs","1"),L=a.ea.U().schedule,a.Jd=new PY(a,{Nc:L,kJ:a.Jm,Vu:function(Q,da){a.ea.NG(Q,da)},
        Ip:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.Jd.requestNumber),a.fS=f.Ce(),E8a(a.Jd,a.fS),a.Td("or_p"),a.xhr=TY(new PP(f),A,a.Jd,SQ,E),a.o0.start(),N.return(a.Mq)}})};
    g.k.Cr=function(){return 2};
    g.k.Ru=function(){this.Td("orh_r")};
    g.k.qs=function(){!this.oK&&this.xhr.Em()&&this.DR();if(this.HA&&!this.NH){var a;(a=this.pL)==null||a.start()}this.Im()};
    g.k.Jo=function(a){a=a===void 0?!1:a;this.logger.debug("onXhrDone");this.Im();if(!(this.Na()||this.state>=4)){var b=k_(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.wf()){var d="onesie.net";b.msg=c.wf()}else c.status>=400?d="onesie.net.badstatus":c.jy()?this.YY||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.xj(new BJ(d,b)):(this.Td("or_fs"),this.Jd.qR((0,g.fC)(),c.Em(),0),this.Hc(4),this.Jm&&this.ma("rqs",b));this.Jm&&this.ma("ombre",
        "ok."+ +!d);this.aH=!1;j_(this);rbb(this.Um);if(!this.NH){this.wG.stop();var e;(e=this.pL)==null||e.stop()}var f;if(a=(f=this.xA)==null?void 0:H5a(f))for(f=0;f<a.length;f++)this.ma("pathprobe",a[f])}};
    g.k.eY=function(){};
    g.k.B_=function(){if(this.playerResponse&&this.xhr&&this.ag)for(var a=g.v(this.ag.entries()),b=a.next();!b.done;b=a.next())if(b=g.v(b.value),b.next(),b.next().value.B){this.xhr.abort();this.Jo(!0);break}};
    g.k.U=function(){return this.X};
    g.k.L=function(a){return this.X.L(a)};
    g.k.H$=function(){if(Ebb(this)&&this.xA&&(!this.oK||this.L("html5_onesie_probe_ec_hosts"))){var a=this.xA;if(a.X.experiments.fb("html5_onesie_probe_ec_hosts")){var b,c=(b=a.j.get(3))==null?void 0:eP(b.location);c&&uX(a,c,"osc",this);var d;(c=(d=a.j.get(4))==null?void 0:eP(d.location))&&uX(a,c,"ocy",this)}else{var e;(d=(e=a.j.get(1))==null?void 0:eP(e.location))&&uX(a,d,"o2",this);(d=(c=a.j.get(2))==null?void 0:eP(c.location))&&uX(a,d,"o3",this)}}};
    g.k.y7=function(){if(!this.Na()&&!this.isComplete()){if(this.HA){if((0,g.fC)()-this.Jd.Y>1E3){var a;(a=this.Jd)==null||a.XK((0,g.fC)());a=k_(this);if(this.X.wc()&&this.xhr instanceof O8a){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.xj(new BJ("net.timeout",a))}}else(0,g.fC)()-this.Jd.j>1E4&&((b=this.Jd)==null||b.XK((0,g.fC)()),this.cQ());this.isComplete()||this.uO.start()}};
    g.k.cQ=function(){this.logger.info("Onesie request timed out");this.aH=!1;if(!j_(this)){var a=k_(this);a.timeout="1";this.xj(new BJ("onesie.request",a))}};
    g.k.xj=function(a){var b=this;a=DJ(a);this.HA?this.ea.Sd(a):(this.Mq.reject(a),this.HA=!0);rbb(this.Um);this.NH||this.wG.stop();this.Td("or_fe");var c,d;(c=this.xA)==null||(d=H5a(c))==null||d.forEach(function(e){b.ma("pathprobe",e)});
        this.Hc(5);this.dispose()};
    g.k.isComplete=function(){return this.state>=3};
    g.k.aZ=function(a){var b,c;return this.isComplete()||!!((b=this.ag)==null?0:(c=b.get(a))==null?0:c.j)};
    g.k.AZ=function(){return!1};
    g.k.Lm=function(){return this.state===5};
    g.k.notifySubscribers=function(a){for(var b=0;b<this.zH.length;b++)a&&this.zH[b].qe()!==a||n_(this.zH[b],this)};
    g.k.yY=function(){var a,b;return((a=this.qL)==null?void 0:(b=a.qr)==null?void 0:b.vS)||0};
    g.k.xa=function(){this.playerResponse="";var a;(a=this.xhr)==null||a.abort();rbb(this.Um);this.Ll.dispose();var b;(b=this.pL)==null||b.dispose();this.Hc(-1);this.zH=[];g.I.prototype.xa.call(this)};
    g.k.Im=function(){try{var a=this.xhr;a.Em()>102400&&!this.uZ&&(this.Td("or100k"),this.uZ=!0);if(a.Qr()){var b=a.Cy(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
        this.Jm&&this.ma("ombrss","len."+c);this.Ll.feed(b)}if(this.ag)for(var d=g.v(this.ag.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.ag.get(f))==null||a.rB();this.notifySubscribers(f)}}catch(h){this.xj(h)}};
    g.k.Rp=function(){return this.Jd.requestNumber};
    g.k.KP=function(a){return this.f1.get(a)};
    g.k.AY=function(){return{cj:this.cj,Yu:this.Yu,aq:!1}};g.x(Ibb,g.I);g.k=Ibb.prototype;g.k.bH=function(a){this.ra=void 0;Wbb(this);Ubb(this,a)};
    g.k.GQ=function(a){return this.j.length===0?!1:Math.abs(this.j[0].yY()-a)<50};
    g.k.rq=function(a){this.B=a;this.ra=(0,g.fC)()+(a.backoffTimeMs||0)};
    g.k.pG=function(a){if(a.action!==void 0&&(a.action!==0||!this.La)){var b={};b.reason=a.ida;b.action=a.action;switch(a.action){case 1:this.policy.K&&this.K&&this.K.nE(void 0,void 0,b);break;case 0:this.La=!0;this.ya.WO(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:Qgb(this.ea,!0);break;case 6:Qgb(this.ea,!1);break;case 3:this.policy.VH&&((a=this.manifest.Z)!=null&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}};
    g.k.bS=function(a,b,c,d){if(this.policy.j){this.ya.ma("ssap",{rn:d,v:b,tl:Ybb(a)});var e=this.ya.Wf();a={vt:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.lk.add(c.type));e?Vbb(this,e,a):(this.ya.ma("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}};
    g.k.oG=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.lk.add(a.type)};
    g.k.mG=function(){};
    g.k.rG=function(a){if(a.ZS!==void 0&&a.aT){var b=a.ZS/a.aT;this.audioTrack.N=!1;this.videoTrack.N=!1;this.policy.Wa&&(this.ya.Mg.B=!1);var c={jd:"sabr_seek",CF:!0,CT:!0};a.seekSource&&(c.seekSource=a.seekSource,c.seekSource===29&&(this.qa=null));KY(this.ya,b,c)}};
    g.k.wB=function(a){a.dK&&a.eK&&rUa(this.manifest,a.dK,a.eK)};
    g.k.Tm=function(a){this.ya.Tm(a)};
    g.k.nG=function(a,b,c){this.policy.B&&this.ya.ma("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.v(a);for(var d=a.next();!d.done;d=a.next())this.lk.add(d.value)}if(b)for(b=g.v(b),a=b.next();!a.done;a=b.next())a=a.value,this.lk.has(a)&&this.lk.delete(a);if(c)for(c=g.v(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.zz=""))};
    g.k.sG=function(){};
    g.k.qG=function(a,b){u0a(this.policy,a,4,b)};
    g.k.kG=function(a){if(this.policy.An&&(a==null?0:a.sZ)&&(a=a.sZ.A8)){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.K.get(WTa(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}};
    g.k.qe=function(){return this.ea.qe()||""};
    g.k.wP=function(){var a=NZ(this.audioTrack,!0)*1E3,b=NZ(this.videoTrack,!0)*1E3;return Math.min(a,b)};
    g.k.zl=function(a,b){this.ya.ma(a,b)};
    g.k.XJ=function(a){pcb(this.ya,e$a(this.Ca,a))};
    g.k.xa=function(){g.I.prototype.xa.call(this);this.B=void 0;Ubb(this,!0);this.j=[]};Zbb.prototype.rf=function(a,b){if(this.D)return dcb(this,b);if(b=LY(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Lm()&&a.info.hh===0&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
    Zbb.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.x(g.q_,g.I);g.k=g.q_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
        a=a||0;kV(this.policy)||(b=tZ(this.j),scb(this.ea,new kZ(b.video,b.reason)),this.ea.Sx(new kZ(b.audio,b.reason)));this.manifest.isManifestless&&Kab(this.D);this.G&&acb(this.G,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.Sy&&(d=d||this.manifest.je);this.policy.Bb||(this.currentTime=d?a:b);if(this.policy.C){var e;((e=this.qa)==null?0:Hbb(e,this.qe()||""))&&hcb(this)&&gcb(this,this.videoTrack)&&gcb(this,this.audioTrack)&&Xbb(this.Z,
            this.qa)}else this.ra&&(icb(this,this.videoTrack),icb(this,this.audioTrack),m6a(this.ra),delete this.ra);c?(this.policy.Qf?(this.rb=c,t_(this,c)):t_(this,!1),g.Bv(this.PF)):(c=this.getCurrentTime()===0,XZ(this.D,this.videoTrack,this.videoTrack.j,c),XZ(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&Lbb(this.Z,!0),this.seek(this.getCurrentTime(),{}).Jl(function(){}),this.timing.tick("gv"));
        (this.manifest.cf||this.manifest.Ii||this.manifest.Za||this.manifest.Tb||this.manifest.Qc)&&this.ea.MG(this.manifest)};
    g.k.resume=function(){if(this.isSuspended||this.Sr){this.logger.debug("Resumed.");this.gJ=this.Sr=this.isSuspended=!1;try{this.rf()}catch(a){g.jE(a)}}};
    g.k.Vz=function(a){a=a===void 0?!1:a;this.logger.debug("detaching media source");lcb(this);pK(this.ea)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ea&&this.ma("loader",{setsmb:1}),this.policy.Fa=!0):this.policy.Qf?t_(this,this.rb):t_(this,!1);this.Zk()};
    g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.Na()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Dd&&(this.Sa=!0));if(kV(this.policy)){var e=this.C.z1(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
        this.ea.Sx(e)}else{var f=d$a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
        this.ea.Sx(new kZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Hi(b),this.ma("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){hab(this.audioTrack,c,NaN,NaN);zQ(this.manifest,c,!1);return}this.ea.Eq()}};
    g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)};
    g.k.eL=function(a){var b=a.j.info.Fh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+ZJ(a.j.info)});
        b?this.ea.Sx(a):scb(this.ea,a)};
    g.k.XJ=function(a){$P(a.jb[a.jb.length-1])&&pcb(this,e$a(this.j,a.jb[0].j))};
    g.k.Rt=function(){return this.ea.Rt()};
    g.k.Tm=function(a){if(this.policy.Qi)if(a.ej===1)this.ea.oC(0);else{if(a.ej===2||a.ej===3){var b=!1;if(a.ej===3){b=this.ea.qA();var c;this.Ab=(c=a.Z0)!=null?c:Infinity;this.ea.oC(b+1);(b=Jab(this))&&this.gB(!0)}this.ea.YR(!0,b)}}else this.ea.Tm(a)};
    g.k.oA=function(){return this.ea.oA()};
    g.k.il=function(){return this.ea.il()};
    g.k.dS=function(a){this.ea.dS(a)};
    g.k.Uca=function(){var a,b=(a=this.ea.Ke())==null?void 0:a.getCurrentTime();b?this.ea.ma("rms",{cta:b}):g.Bv(this.Jb)};
    g.k.rf=function(){ocb(this);if(this.Qa&&mK(this.Qa)&&!this.Qa.rk()){var a=HZ(this.videoTrack);a=this.policy.bD&&a&&YP(a);this.manifest.isManifestless&&this.manifest.C&&wQ(this.manifest)?(this.N=wQ(this.manifest),this.Qa.Hl(this.N)):AQ(this.manifest)&&!a?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.Qa.Hl(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.Qa.Hl(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
    (!isFinite(this.N)||this.N!==a)&&a>0&&(this.Qa.Hl(a),this.N=a))}if(!this.Na())if(lUa(this.manifest)&&this.manifest.Lm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.eb?{rc:b.Bg}:{rc:b.Bg.toString()},1)}else if(this.policy.C)a:{try{Rbb(this.Z);this.manifest.isManifestless&&this.policy.G&&JY(this.Mg);if(kV(this.policy)&&!jK()&&this.policy.xn&&this.Qa&&!qK(this.Qa)&&this.videoTrack.Ea&&this.audioTrack.Ea){this.ma("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.qb,
        a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.qb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!qK(c)&&e&&d&&(eFa(c,d.info,e.info,this.policy.Kb),mcb(this,c))}var f;((f=this.Qa)==null?0:qK(f))&&this.MB();kV(this.policy)||s_(this);Lbb(this.Z)}catch(l){g.kE(l);b=l;if(b.message.includes("changeType")){this.ma("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}Fcb(this);g.Bv(this.Wa)}else if(!this.manifest.B||
    !nab(this.videoTrack)&&!nab(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Jb?c=!1:(this.Zk(),this.ea.seekTo(Infinity,{jd:"checkLoaderTracksSync",gr:!0}),c=!0),!c){ocb(this);this.manifest.isManifestless&&(oab(this.videoTrack),oab(this.audioTrack),JY(this.Mg),(c=LY(this.videoTrack))&&c.B&&(c=c.B.D&&!this.policy.dk,this.ma(c===this.policy.N.jj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.jj,dfs:this.policy.dk},!0)));if(this.Qa)this.MB();else if(this.policy.D){var h;c=!1;if(this.policy.zz)for(d=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              g.v([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=LY(f);e&&f.Mo()!==HZ(f);e=LY(f))f.Hs(e);c=c||!!e}else(b=LY(this.videoTrack))&&this.videoTrack.Hs(b),(h=LY(this.audioTrack))&&this.audioTrack.Hs(h);KZ(this.videoTrack)&&KZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&u_(this)}s_(this);XZ(this.D,this.videoTrack,this.videoTrack.j,!1);XZ(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.RA||rcb(this,this.videoTrack,
        this.audioTrack);Bab(this.D,this.videoTrack,this.audioTrack);Bab(this.D,this.audioTrack,this.videoTrack);Fcb(this);this.G&&(b=this.G,b.D?(h=b.K+b.policy.Yv,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Sk)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.Bv(this.Kb,b));g.Bv(this.Wa)}};
    g.k.WO=function(a){this.ea.WO(a)};
    g.k.MB=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B;Lcb(this,this.audioTrack);Lcb(this,this.videoTrack);var d=ucb(this);if(d){if(this.policy.Rs){if(!b.Lw()){var e=LY(this.audioTrack);if(e){if(!p_(this,this.audioTrack,b,e.info))return;xcb(this,b,e)}}if(!c.Lw()&&(e=LY(this.videoTrack))){if(!p_(this,this.videoTrack,c,e.info))return;xcb(this,c,e)}}this.Cp||(this.Cp=(0,g.fC)(),this.logger.debug(function(){return"Appends pause start "+a.Cp+" reason "+d}),this.policy.B&&this.ma("apdps",
        {r:d}))}else if(this.Cp&&(tcb(this,this.Cp),this.Cp=0),vcb(this),e=!1,this.policy.j&&SZ(this.videoTrack)||!zcb(this,this.videoTrack,c)||(e=!0,F9a(this.timing),J9a(this.timing)),this.Qa&&!this.Qa.Pg()&&(this.policy.j&&SZ(this.audioTrack)||!zcb(this,this.audioTrack,b)||(e=!0,G9a(this.timing),K9a(this.timing)),!this.Na()&&this.Qa)){if(!this.policy.Va&&KZ(this.videoTrack)&&KZ(this.audioTrack)&&mK(this.Qa)&&!this.Qa.rk()){c=!1;
        c=HZ(this.audioTrack);if(this.policy.j){var f;b=(f=this.wb)==null?void 0:iY(f,c.C*1E3);c=!(!b||b.clipId!==c.clipId);this.ma("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),gFa(this.Qa),fVa(this.schedule))}e&&!this.Qa.isAsync()&&u_(this)}}};
    g.k.J4=function(a){var b=this,c;if(this.policy.Dd&&a===((c=this.Qa)==null?void 0:c.j)&&this.Va){c=this.Va-this.getCurrentTime();var d;this.ea.ma("asl",{l:c,xtag:(d=HZ(this.audioTrack))==null?void 0:d.j.info.j});this.Sa=!1;this.Va=0}a.Km()&&a.Je().length===0&&(a.Fz(),this.Qa&&!this.Qa.Km()&&(this.ea.U().wc()&&this.ea.ma("rms",{ld:"seek"}),this.Qa.N=performance.now(),this.ea.kP(),this.ea.U().wc()&&g.Bv(this.Jb)));if(this.policy.Ma&&this.Qa){d=a===this.Qa.j;var e=a.iA();if(e){if(!e.Sb||e.Te)d=a.qc({a:d}),
        d.omt=(this.getCurrentTime()+this.Lc()).toFixed(3),d.to=this.Lc(),this.ma("sbu",d);e.Te&&!a.rk()&&setTimeout(function(){var f=a.Je(),h=bK(f,e.startTime+VZ),l=bK(f,b.getCurrentTime());(h<0||h!==l)&&b.ma("sbu_mismatch",{b:aK(f),c:b.getCurrentTime(),s:e.Vc()})},0)}}this.rf()};
    g.k.iaa=function(a){if(this.Qa){var b=HZ(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.LP())for(var c=0;c<a.length;c++)this.ma("appendedbuffer",{i:c,b:g.Fg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=bQ(b),this.policy.j&&this.wb&&this.wb.jl()&&(a.ccid=this.wb.jl()));this.handleError("fmt.unplayable",a,1)}};
    g.k.Tx=function(a){this.ea.Tx(a)};
    g.k.QR=function(a,b,c){this.manifest.isManifestless&&W$a(this,b,c,!!a.info.video,!0)};
    g.k.PR=function(a,b,c,d){a.info.video&&this.B.PR(b,c,d)};
    g.k.fL=function(a){this.j.fL(a)};
    g.k.cF=ba(19);g.k.gM=function(a){this.wb=a;var b;(b=this.audioTrack.Z)!=null&&(b.Yc=a);(b=this.videoTrack.Z)!=null&&(b.Yc=a);b=this.Z;b.N&&(b.ya.ma("ssap",{addcacheclips:1,v:b.N.version,tl:Ybb(b.N.vt)}),Vbb(b,a,b.N),b.N=void 0)};
    g.k.Wf=function(){return this.wb};
    g.k.xF=function(){return this.videoTrack.N||this.audioTrack.N};
    g.k.seek=function(a,b){if(this.Na())return ig();if(this.xF())return ig("seeking to head");if(this.policy.Wa&&!isFinite(a))return u8a(this.Mg),hg(Infinity);ocb(this);this.gq=(0,g.fC)();kV(this.policy)||s_(this,a);this.Qa&&this.Qa.j&&this.Qa.B&&!this.ea.getVideoData().xW&&(this.Qa.j.isLocked()||this.Qa.B.isLocked())&&this.ea.Eq({reattachOnLockedBuffer:1,vsb:""+this.Qa.B.isLocked(),asb:""+this.Qa.j.isLocked()});var c=this.getCurrentTime();b=this.Mg.seek(a,b);this.policy.Bb||(this.currentTime=b);iZ(this.B,
        a,c);u_(this);return hg(b)};
    g.k.GQ=function(a){return this.policy.C&&this.Z.GQ(a)};
    g.k.bH=function(a){this.Z.bH(a)};
    g.k.getCurrentTime=function(){if(this.policy.Bb){var a=this.Lc()||0;return this.ea.getCurrentTime()-a}return this.currentTime};
    g.k.vP=function(){return this.audioTrack.j.info};
    g.k.dA=function(){return this.videoTrack.j.info};
    g.k.uP=function(){return this.audioTrack.j.info.qb};
    g.k.xP=function(){return this.videoTrack.j.info.qb};
    g.k.xa=function(){try{this.Vz();GY(this.audioTrack);GY(this.videoTrack);var a;(a=this.audioTrack.Z)==null||r8a(a);var b;(b=this.videoTrack.Z)==null||r8a(b);this.audioTrack.dispose();this.videoTrack.dispose();g.I.prototype.xa.call(this)}catch(c){g.jE(c)}};
    g.k.handleError=function(a,b,c){c=c===void 0?0:c;var d=CJ(c);if(a==="fmt.unplayable"&&this.manifest.isLive){this.policy.Rs=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new BJ(a,b,c);g.fb(this);AJ(b.details);this.ea.handleError(b);a!=="html5.invalidstate"&&b.errorCode!=="fmt.unplayable"&&a!=="fmt.unparseable"&&d&&this.dispose()};
    g.k.qc=function(){var a=HZ(this.audioTrack),b=HZ(this.videoTrack);a={lct:this.getCurrentTime().toFixed(3),lsk:this.Mg.isSeeking(),lmf:this.j.j.isLocked(),lbw:hVa(this.schedule).toFixed(3),lhd:eR(this.schedule).toFixed(3),lst:((this.schedule.G.fh()||0)*1E9).toFixed(3),laa:a?a.Vc():"",lva:b?b.Vc():"",lar:this.audioTrack.B?this.audioTrack.B.Vc():"",lvr:this.videoTrack.B?this.videoTrack.B.Vc():"",laq:""+LZ(this.audioTrack),lvq:""+LZ(this.videoTrack)};this.Qa&&!this.Qa.Pg()&&this.Qa.j&&this.Qa.B&&(a.lab=
        aK(this.Qa.j.Je()),a.lvb=aK(this.Qa.B.Je()));this.Cp&&(a.lapt=((0,g.fC)()-this.Cp).toFixed(0),a.lapr=ucb(this));this.Ea&&(a.lapmbht=((0,g.fC)()-this.Ea).toFixed(0));return a};
    g.k.Zk=function(){try{this.policy.C&&this.Z.bH(!1),this.audioTrack.Zk(),this.videoTrack.Zk()}catch(a){g.jE(a)}this.policy.D=""};
    g.k.qP=function(){return BY(this.Y)};
    g.k.ma=function(a,b,c){this.ea.ma(a,b,c===void 0?!1:c)};
    g.k.qe=function(){return this.ea.qe()};
    g.k.gr=function(a,b){a/=b;isNaN(this.timestampOffset)&&Mcb(this,a-Math.min(a,this.policy.AD));return(a-this.timestampOffset)*b};
    g.k.Lc=function(){return this.timestampOffset};
    g.k.isSeeking=function(){return this.Mg.isSeeking()};
    g.k.Ww=function(){this.B.Ww()};
    g.k.Xo=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?{}:c;kV(this.policy)?this.C.Xo(a,b,c):this.j.Xo(a,b,c)};
    g.k.fH=function(a,b){if(!this.K)return!1;var c=this.videoTrack.j.index.Hi(a);return this.K.fH(a,b,c)};
    g.k.Is=function(a,b){if(this.K&&this.B.Is(a,this.K))return Mcb(this,this.timestampOffset-b),u_(this),!0;b=this.videoTrack.j.index.Hi(a);this.handleError("ad.skipfailed",{dec:!!this.K,t:a.toFixed(3),sq:b});return!1};
    g.k.getManifest=function(){return this.manifest};
    g.k.isOffline=function(){return!!this.ea.getVideoData().cotn};
    g.k.NG=function(a,b){this.ea.NG(a,b)};
    g.k.WG=function(a){if(this.policy.Bn)this.Z.qa=a*1E3;else{var b=this.ea.getVideoData().wi;if(b){var c=this.D;c.uh=a;c.wi=b;ZZ(this)}}};
    g.k.hB=function(a){this.videoTrack.N=!1;this.audioTrack.N=!1;this.Mg.B=!1;this.ea.hB(a)};
    g.k.oT=function(a){this.Mg.oT(a-this.Lc())};
    g.k.dE=function(){this.ea.dE()};
    g.k.gB=function(a){a!==this.policy.Sf&&((this.policy.Sf=a)||this.rf())};
    g.k.IS=function(a,b){var c=this.audioTrack.Rb,d=this.videoTrack.Rb;c&&d&&(c.remove(a,b),d.remove(a,b))};
    g.k.Eq=function(a){this.ea.Eq(a)};
    g.k.uy=function(a){this.ea.uy(a)};g.k=g.v_.prototype;g.k.eA=function(a,b,c,d,e,f){return this.Yc.eA(a,b,c,d,e,f)};
    g.k.TJ=function(a,b,c,d,e,f){return this.Yc.TJ(a,b,c,d,e,f)};
    g.k.PP=function(a){return this.Yc.PP(a)};
    g.k.VJ=function(a){this.Yc.VJ(a)};
    g.k.nE=function(a,b,c){return this.Yc.nE(a,b,c)};
    g.k.Ww=function(){this.Yc.Ww()};
    g.k.fH=function(a,b,c){return this.Yc.fH(a,b,c)};
    g.k.ev=function(a,b){this.Yc.ev(a,b)};
    g.k.SS=function(){this.Yc.SS()};
    g.k.OE=ba(43);g.k.rl=function(a,b,c,d){this.Yc.rl(a,b,c,d)};
    g.k.LH=ba(41);g.k.XR=function(a,b,c,d,e,f,h,l,m){this.Yc.XR(a,b,c,d,e,f,h,l,m)};
    g.k.qT=function(a){this.Yc.qT(a)};
    g.k.Nu=function(a){return this.Yc.Nu(a)};
    g.k.YO=function(a){return this.Yc.YO(a)};g.x(w_,g.DE);g.x(x_,w_);x_.prototype.K=function(a,b){if(a&&b){var c=Number(yo(a,"cpi"))*1+1;isNaN(c)||c<=0||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.gd(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Bv(this.B))}};
    x_.prototype.G=function(){for(var a=g.v(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(xn),f=[],h=g.v(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,l.indexOf("cpi=")===0?f.push("cpi="+d.toString()):l.indexOf("ek=")===0?f.push("ek="+g.Xe(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=c.length*2;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[e*2+4]=c.charCodeAt(e);b.call(this,
        "rotated_need_key_info_ready",new zZ(d,"fairplay",!0))}this.j={}};
    x_.prototype.xa=function(){this.j={};w_.prototype.xa.call(this)};g.x(y_,w_);
    y_.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&this.j.length>0)for(var c=g.v(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.fC)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.v(this.C.values());for(var e=d.next();!e.done;e=d.next())if(Math.abs(e.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=a.j,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length,
        ignore:this.D});c<=0?Qcb(this,a):this.D||(this.j.push({time:b+c,info:a}),g.Bv(this.B,c))}};
    y_.prototype.xa=function(){this.j=[];w_.prototype.xa.call(this)};var w3={},Ycb=(w3.DRM_TRACK_TYPE_AUDIO="AUDIO",w3.DRM_TRACK_TYPE_SD="SD",w3.DRM_TRACK_TYPE_HD="HD",w3.DRM_TRACK_TYPE_UHD1="UHD1",w3);g.x(Ucb,g.I);g.x($cb,g.DE);g.k=$cb.prototype;g.k.mq=function(a){var b=this;this.Na()||a.size<=0||(a.forEach(function(c,d){var e=IQ(b.B)?d:c;d=new Uint8Array(IQ(b.B)?c:d);IQ(b.B)&&qdb(d);c=g.Fg(d,4);qdb(d);d=g.Fg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),ldb(this,","),z_(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
    g.k.error=function(a,b,c,d){this.Na()||(this.publish("licenseerror",a,b,c,d),a==="drm.provision"&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));CJ(b)&&this.dispose()};
    g.k.shouldRetry=function(a,b){return this.Ea&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
    g.k.xa=function(){this.j={};g.DE.prototype.xa.call(this)};
    g.k.qc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Fa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
    g.k.getInfo=function(){var a=this.D.join();if(A_(this)){var b=new Set,c;for(c in this.j)this.j[c].status!=="usable"&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
    g.k.Ce=function(){return this.url};g.x(B_,g.I);g.k=B_.prototype;g.k.K4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
    g.k.mq=function(){this.N&&this.N(this.j.keyStatuses)};
    g.k.onClosed=function(){this.Na()||g.PA("xboxone")&&this.C&&this.C("closed")};
    g.k.W_=function(a){this.G&&this.G(a.message,"license-request")};
    g.k.V_=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.U_=function(){this.K&&this.K()};
    g.k.update=function(a){var b=this;if(this.j)return(QQ.isActive()?QQ.Po("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,WN(function(c){sdb(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 KA()};
    g.k.xa=function(){this.j&&(this.Y?this.j.close().catch(g.kE):this.j.close());this.element=null;g.I.prototype.xa.call(this)};g.x(C_,g.I);g.k=C_.prototype;g.k.aO=function(){var a=this;if(this.j.keySystemAccess)return(QQ.isActive()?QQ.Po("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Na())if(a.B=c,QQ.isActive())QQ.Po("emeset",function(){return a.element.setMediaKeys(c)});
    else{var d;(d=a.element)==null||d.setMediaKeys(c)}});
        if(HQ(this.j))this.C=new (GQ())(this.j.keySystem);else if(JQ(this.j)){this.C=new (GQ())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else QQ.isActive()&&this.ma("emev",{v:"01b"}),qB(this.G,this.element,["keymessage","webkitkeymessage"],this.N4),qB(this.G,this.element,["keyerror","webkitkeyerror"],this.M4),qB(this.G,this.element,["keyadded","webkitkeyadded"],this.L4);return null};
    g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.Zl?this.B.setServerCertificate(this.j.Zl):LQ(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();KQ(this.j)?c=tdb(c,this.j.Wa):LQ(this.j)&&(c=Pcb(c)||new Uint8Array(0));b&&b("genreq");var e=QQ.isActive()?QQ.Po("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
        var f=new B_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},WN(function(l){sdb(f,"t.generateRequest",l)}));
        return f}if(HQ(this.j))return vdb(this,c);if(JQ(this.j))return udb(this,c);if((e=this.element)==null?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new B_(this.element,this.j,c,null,null,this.N)};
    g.k.N4=function(a){var b=wdb(this,a);b&&b.W_(a)};
    g.k.M4=function(a){var b=wdb(this,a);b&&b.V_(a)};
    g.k.L4=function(a){var b=wdb(this,a);b&&b.U_(a)};
    g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
    g.k.xa=function(){this.C=this.B=null;var a;(a=this.D)==null||a.dispose();a=g.v(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.xa.call(this);delete this.element};g.k=D_.prototype;g.k.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null};
    g.k.remove=function(a){a=this.findIndex(a);a!==-1&&(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);c!==-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
    g.k.findIndex=function(a){return g.Db(this.keys,function(b){return g.Vb(a,b)})};g.x(zdb,g.DE);g.k=zdb.prototype;g.k.Iaa=function(a){this.mj({onecpt:1});a.initData&&Cdb(this,new Uint8Array(a.initData),a.initDataType)};
    g.k.jba=function(a){this.mj({onndky:1});Cdb(this,a.initData,a.contentType)};
    g.k.Tx=function(a){this.mj({onneedkeyinfo:1});this.X.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));Bdb(this,a)};
    g.k.LW=function(a){this.C.push(a);E_(this)};
    g.k.createSession=function(a){var b=Edb(this)?z$a(a):g.Fg(a.initData);this.B.get(b);this.Fa=!0;a=new $cb(this.videoData,this.X,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.cL,this);a.subscribe("keystatuseschange",this.mq,this);a.subscribe("licenseerror",this.gL,this);a.subscribe("newlicense",this.R_,this);a.subscribe("newsession",this.S_,this);a.subscribe("sessionready",this.f0,this);a.subscribe("fairplay_next_need_key_info",this.M_,this);this.X.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
        this.lU,this);this.X.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Zba,this);ddb(a,this.D)};
    g.k.R_=function(a){this.Na()||(this.mj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
    g.k.S_=function(){this.Na()||(this.mj({newlcssn:1}),this.C.shift(),this.Fa=!1,E_(this))};
    g.k.f0=function(){if(HQ(this.j)&&(this.mj({onsnrdy:1}),this.La--,this.La===0)){var a=this.qa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}};
    g.k.mq=function(a){if(!this.Na()){!this.Ma&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(Fdb(this),this.Ma=!0);this.mj({onksch:1});var b=this.lU;if(!A_(a)&&g.wC&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(A_(a))for(var e=g.v(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,a.j[f].status==="usable"&&c.push(a.j[f].type),a.j[f].status!=="unknown"&&(d=!1);if(!A_(a)||d)c=a.D;c=kdb(c)}b.call(this,c);this.publish("keystatuseschange",
        a)}};
    g.k.cL=function(a,b){this.Na()||this.publish("ctmp",a,b)};
    g.k.M_=function(a,b){this.Na()||this.publish("fairplay_next_need_key_info",a,b)};
    g.k.gL=function(a,b,c,d){this.Na()||(this.videoData.L("html5_log_drm_metrics_on_error")&&Fdb(this),this.publish("licenseerror",a,b,c,d))};
    g.k.Ow=function(){return this.Z};
    g.k.lU=function(a){var b=g.OO("auto",a,!1,"l");if(this.videoData.Pl){if(uRa(this.Z,b))return}else if(vRa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.mj({updtlq:a})};
    g.k.Zba=function(a){this.videoData.sabrLicenseConstraint=a};
    g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.kE):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.v(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.cL,this),b.unsubscribe("keystatuseschange",this.mq,this),b.unsubscribe("licenseerror",this.gL,this),b.unsubscribe("newlicense",this.R_,this),b.unsubscribe("newsession",this.S_,this),b.unsubscribe("sessionready",this.f0,this),b.unsubscribe("fairplay_next_need_key_info",
        this.M_,this),this.X.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.lU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.DE.prototype.xa.call(this)};
    g.k.qc=function(){for(var a={systemInfo:this.j.qc(),sessions:[]},b=g.v(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qc());return a};
    g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
    g.k.mj=function(a,b){b=b===void 0?!1:b;this.Na()||(AJ(a),(this.X.wc()||b)&&this.publish("ctmp","drmlog",a))};g.x(Gdb,g.I);g.k=Gdb.prototype;g.k.lJ=function(){return!!this.IF};
    g.k.sK=function(){return this.B};
    g.k.handleError=function(a){var b=this;Ldb(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!Kdb(this,a.errorCode,a.details))&&!Pdb(this,a)){if(this.Da.qa!=="yt"&&Ndb(this,a)&&this.videoData.Mp&&(0,g.fC)()/1E3>this.videoData.Mp&&this.Da.qa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Mp;c.init=this.videoData.UV/1E3;c.now=(0,g.fC)()/1E3;c.systelapsed=((0,g.fC)()-this.videoData.UV)/1E3;
        a=new BJ(a.errorCode,c,2);this.ea.Nf(a.errorCode,2,"SIGNATURE_EXPIRED",AJ(a.details))}if(CJ(a.severity)){var d;c=(d=this.ea.ya)==null?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(Mdb(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Da.K&&a.errorCode==="auth"&&a.details.rc===429){e="TOO_MANY_REQUESTS";var f="6"}}else Mdb(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||a.errorCode!=="auth"||a.details.rc!=="429"||(e="TOO_MANY_REQUESTS",f="6");this.ea.Nf(a.errorCode,
        a.severity,e,AJ(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Sd(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.fC)(),rX(a,"manifest",function(h){b.K=!0;b.ma("pathprobe",h)},function(h){b.Sd(h.errorCode,h.details)}))}};
    g.k.ma=function(a,b){this.ea.vc().ma(a,b)};
    g.k.Sd=function(a,b){b=AJ(b);this.ea.vc().Sd(a,b)};Sdb.prototype.pP=function(a){return a?{y0:ceb(this,a)}:{y0:oS}};
    Sdb.prototype.L=function(a){return this.X.L(a)};g.x(I_,g.I);I_.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(sqb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
    I_.prototype.send=function(){if(!(this.C||this.j<0)){ieb(this);var a=g.uM(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Og;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.vF(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.vF(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.vF(this.playerState,16)||g.vF(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.vF(this.playerState,1)&&g.vF(this.playerState,
        4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.vF(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.vF(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.vF(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=Ugb[MS(this.provider.videoData)];a:switch(this.provider.X.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=jeb(this.provider),
        f=this.B<0?a:this.B-this.j;a=this.provider.X.Tf+36E5<(0,g.fC)();b={started:this.B>=0,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.LS(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
        encounteredSabrFallback:this.encounteredSabrFallback,isSabr:yS(this.provider.videoData)};a||g.SB("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
    I_.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.vB);window.removeEventListener("unhandledrejection",this.vB);g.I.prototype.xa.call(this)};
    var sqb=/\bnet\b/;var keb=/[?&]cpn=/;var peb=Math.pow(10,8);g.x(g.L_,g.I);g.k=g.L_.prototype;g.k.y9=function(){var a=g.uM(this.provider);seb(this,a)};
    g.k.TE=function(){return this.Ma};
    g.k.XE=function(){return{OB:this.OB,PB:this.PB}};
    g.k.lH=function(a,b){this.OB=a;this.PB=b};
    g.k.MG=function(a){this.j.lwc=[[a.cf?a.cf.toFixed():"",a.Ii?a.Ii.toFixed():"",a.Za?(a.Za*1E3).toFixed():"",a.Tb?(a.Tb*1E3).toFixed():"",a.Qc?(a.Qc*1E3).toFixed():""].join(":")]};
    g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.Na()&&(a=a>=0?a:g.uM(this.provider),["PL","B","S"].indexOf(this.Ee)>-1&&(!g.gd(this.j)||a>=this.G+30)&&(g.K_(this,a,"vps",[this.Ee]),this.G=a),!g.gd(this.j))){this.sequenceNumber===7E3&&g.kE(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){M_(this,a);var b=a,c=this.provider.ea.eF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.OB,h=e&&!this.PB;d>c.totalVideoFrames||f>5E3?zeb(this,"html5.badframedropcount","df."+d+";tf."+
        c.totalVideoFrames):(f>0||h)&&g.K_(this,b,"df",[f]);this.OB=d;this.PB=e;this.Z>0&&(g.K_(this,a,"glf",[this.Z]),this.Z=0);U2.isActive()&&(a=U2.aY(),Object.keys(a).length>0&&this.ma("profile",a));this.Bb&&N_(this,"lwnmow");this.provider.X.wc()&&this.provider.L("html5_record_now")&&this.ma("now",{wt:(0,g.fC)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&
    (a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=YS(this.provider.videoData);a.content_v=$S(this.provider.videoData);a.ns=this.provider.X.qa;a.fexp=OUa(this.provider.X.experiments).toString();a.cl=(645945906).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=MS(this.provider.videoData))&&(a.live=b);this.provider.videoData.Wi()&&
    (a.drm=1,this.provider.videoData.K&&(a.drm_system=dqb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Sk&&(a.drm_product=this.provider.videoData.Sk));tA()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.un,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.sU&&(a.dai_fallback=
        "1")):this.provider.videoData.od?a.dai="cs":this.provider.videoData.JD&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.lX){if(b=this.provider.videoData.lX,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Dd.has(b.ns)&&N_(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Xd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;
        b={cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.O3};this.serializedHouseBrandPlayerServiceLoggingContext&&(b.serializedHouseBrandPlayerServiceLoggingContext=Hg(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0);this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn);J_.length&&(b.decoderInfo=J_);this.provider.ea.Wf()&&(b.transitionStitchType=4,this.Ca&&(b.timestampOffsetMsecs=this.Ca));this.remoteControlMode&&
        (b.remoteControlMode=this.remoteControlMode);this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices);b=g.QN(b,QQa);a.qclc=g.Fg(b,4);this.rb&&(a.embargoed="1");g.ld(a,this.provider.X.j);a=g.wo("//"+this.provider.X.Bn+"/api/stats/qoe",a);c=b="";d=g.v(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.kE(new g.CB("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),e.length>100?c+=e:b+=e);veb(this,a+b,c.replace(/ /g,
            "%20"))}this.j={}}};
    g.k.uy=function(a){this.Bb=a};
    g.k.H1=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;N_(this,"eme-"+(a.keySystemAccess?"final":HQ(a)?"ms":KQ(a)?"ytfp":JQ(a)?"safarifp":"nonfinal"))}};
    g.k.uG=function(a){var b=g.uM(this.provider),c=[a.j.id,a.B,this.Cc,a.reason];a.token&&c.push(a.token);g.K_(this,b,"vfs",c);this.Cc=a.j.id;c=this.provider.ea.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.AR();d>1&&c.push(d);g.K_(this,b,"view",c)}this.Wa||(this.provider.X.wc()&&N_(this,"rqs2"),this.provider.videoData.j&&UO(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Wa=!0;a.reason==="m"&&++this.Fd===100&&Aeb(this,2);g.K_(this,b,"vps",
        [this.Ee]);this.reportStats(b)};
    g.k.cG=function(a){var b=g.uM(this.provider);if(a.j.id!==this.La){var c=[a.j.id,this.La,a.reason];a.token&&c.push(a.token);g.K_(this,b,"afs",c);this.La=a.j.id}};
    g.k.Ou=ba(47);g.k.Qo=function(a){this.rb=a};
    g.k.onPlaybackRateChange=function(a){var b=g.uM(this.provider);a&&a!==this.Tb&&(g.K_(this,b,"rate",[a]),this.Tb=a);this.reportStats(b)};
    g.k.Ho=ba(26);g.k.getPlayerState=function(a){if(g.vF(a,128))return"ER";if(g.vF(a,2048))return"B";if(g.vF(a,512))return"SU";if(g.vF(a,16)||g.vF(a,32))return"S";if(a.isOrWillBePlaying()&&g.vF(a,64))return"B";var b=tqb[BK(a)];g.sI(this.provider.X)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.vF(a,4)&&(b="PB");return b};
    g.k.xa=function(){g.I.prototype.xa.call(this);g.BA(this.K);g.BA(this.Ab)};
    g.k.OL=function(a){this.isOffline=a;g.K_(this,g.uM(this.provider),"is_offline",[this.isOffline?"1":"0"])};
    g.k.ma=function(a,b,c){var d=this.j.ctmp||[],e=this.Zc.indexOf(a)!==-1;e||this.Zc.push(a);if(!c||!e){var f=typeof b!=="string"?AJ(b):b;f=Beb(f);if(!c&&!/^t[.]/.test(f)){var h=g.uM(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
        this.j.ctmp=d;web(this);return h}};
    g.k.LG=function(a,b,c){this.D={Dda:Number(this.ma("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),w_:a,mda:b,isAd:c}};
    g.k.oy=function(a,b,c){g.K_(this,g.uM(this.provider),"ad_playback",[a,b,c])};
    g.k.resume=function(){var a=this;this.provider.X.wc()&&this.ma("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?xeb(this):this.K=g.zA(function(){a.reportStats()},1E4)};
    var x3={},tqb=(x3[5]="N",x3[-1]="N",x3[3]="B",x3[0]="EN",x3[2]="PA",x3[1]="PL",x3[-1E3]="ER",x3[1E3]="N",x3),J_=[];Deb.prototype.DP=function(){return this.j};
    Deb.prototype.update=function(){if(this.N){var a=this.provider.ea.Ef()||0;this.provider.X.L("html5_ssap_vss_fix")&&(a=this.provider.ea.zJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.uM(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Geb(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.hq+2||Geb(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||this.D>=0||(this.Y=c,
        this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(Q_(this),this.C=a);this.hq=b;this.j=a}}};Heb.prototype.send=function(a){var b=this;if(!this.eb){var c=Jeb(this),d=g.wo(this.uri,c);this.X.L("vss_through_gel_double")&&Keb(d);this.ra&&!this.X.L("html5_simplify_pings")?Peb(this,d):Ieb(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});oeb(d,e,{token:b.Y,TT:b.Jb,mdxEnvironment:b.mdxEnvironment},b.X,a,b.Ca,b.isFinal&&b.Tf||b.Fa||b.C&&b.Uf)});
        this.eb=!0}};
    Heb.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()};
    var y3={},Neb=(y3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,y3.LIVING_ROOM_APP_MODE_MAIN=1,y3.LIVING_ROOM_APP_MODE_KIDS=2,y3.LIVING_ROOM_APP_MODE_MUSIC=3,y3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,y3.LIVING_ROOM_APP_MODE_GAMING=5,y3),z3={},Meb=(z3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,z3.EMBEDDED_PLAYER_MODE_DEFAULT=1,z3.EMBEDDED_PLAYER_MODE_PFP=2,z3.EMBEDDED_PLAYER_MODE_PFL=3,z3);g.x(S_,g.I);g.k=S_.prototype;g.k.Cg=function(){this.j.update();Xeb(this)&&(Reb(this),Seb(this),this.Qs())};
    g.k.xa=function(){g.I.prototype.xa.call(this);V_(this);Eeb(this.j)};
    g.k.qc=function(){return Jeb(T_(this,"playback"))};
    g.k.Qs=function(){this.provider.videoData.N.eventLabel=YS(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.X.playerStyle;this.provider.videoData.Aj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.Aj;a.isAd=b};
    g.k.Gi=function(a){var b=T_(this,"engage");b.qa=a;return Leb(b,cfb(this.provider))};bfb.prototype.isEmpty=function(){return this.endTime===this.startTime};X_.prototype.L=function(a){return this.X.L(a)};
    X_.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Wf();if(b&&(a=a||b.jl()))return mY(b,a)}else if(g.dT(this.videoData)){var c=this.ea.Wf();if(c)return a=this.ea.getCurrentTime(),c=(((b=iY(c,a*1E3))==null?void 0:b.Cl)||0)/1E3,a-c}return this.ea.getCurrentTime()};
    X_.prototype.Ef=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Wf();if(b&&(a=a||b.jl()))return mY(b,a)}else if(g.dT(this.videoData)){var c=this.ea.Wf();if(c)return a=this.ea.Ef(),c=(((b=iY(c,a*1E3))==null?void 0:b.Cl)||0)/1E3,a-c}return this.ea.Ef()};
    var dfb={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.x(g.Y_,g.I);g.k=g.Y_.prototype;g.k.Cg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ng){var a;(a=this.C.get(this.Ng))==null||a.Cg()}else this.j&&this.j.Cg()};
    g.k.Qo=function(a){this.qoe&&this.qoe.Qo(a)};
    g.k.Sd=function(a,b){this.qoe&&zeb(this.qoe,a,b);if(this.B)this.B.onError(a)};
    g.k.uG=function(a){this.qoe&&this.qoe.uG(a)};
    g.k.cG=function(a){this.qoe&&this.qoe.cG(a)};
    g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&Q_(this.j.j)};
    g.k.Ou=ba(46);g.k.ma=function(a,b,c){this.qoe&&this.qoe.ma(a,b,c)};
    g.k.LG=function(a,b,c){this.qoe&&this.qoe.LG(a,b,c)};
    g.k.MG=function(a){var b;(b=this.qoe)==null||b.MG(a)};
    g.k.uy=function(a){this.qoe&&this.qoe.uy(a)};
    g.k.oy=function(a,b,c){this.qoe&&this.qoe.oy(a,b,c)};
    g.k.Ho=ba(25);g.k.TE=function(){if(this.qoe)return this.qoe.TE()};
    g.k.qc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ng){var a;(a=this.C.get(this.Ng))==null||a.qc()}else if(this.j)return this.j.qc();return{}};
    g.k.XE=function(){var a;return(a=this.qoe)==null?void 0:a.XE()};
    g.k.lH=function(a,b){var c;(c=this.qoe)==null||c.lH(a,b)};
    g.k.Gi=function(a){return this.j?this.j.Gi(a):function(){}};
    g.k.Qs=function(){this.j&&this.j.Qs()};
    g.k.getVideoData=function(){return this.provider.videoData};
    g.k.resume=function(){this.qoe&&this.qoe.resume()};g.x(Z_,g.I);
    Z_.prototype.YI=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!efb(d))this.B.ma("ssap",{rlc:a}),x7a(this,a);else return}if(!this.j.has(a)){d=new X_(b,this.X,this.ea);var e=Math.round(g.uM(this.B.provider)*1E3);d=new g.Y_(d,e);efb(d)||this.B.ma("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}ffb(d);c===2&&(this.X.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.Cc||"",e=
        b.breakType||0,b=b.videoId||"",f=this.X.qa||"yt",g.K_(c,g.uM(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.oy(a,b.Cc||"",b.breakType||0))}};
    Z_.prototype.vc=function(a){a=a||this.Ng;return this.j.get(a)||this.B};g.x($_,g.I);g.k=$_.prototype;
    g.k.lf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.zE("captions",1E4);b=this.j;if(a.length>1&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else for(var c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||b.j(d,b.array[b.array.length-1])>0?b.array.push(d):g.Xb(b.array,d,b.j);a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.namespace==="ad"&&this.D("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.C=NaN;this.sync()};
    g.k.So=function(a){a.length>1E4&&g.kE(new g.CB("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Na()){for(var b=g.v(a),c=b.next();!c.done;c=b.next())(c=c.value)&&c.namespace==="ad"&&this.D("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var d=new Set(a);this.B=this.B.filter(function(e){return!d.has(e)});
        sfb(this.j,d);this.sync()}};
    g.k.zE=function(a,b){var c=(isNaN(this.C)?g.vF(this.K(),2)?0x8000000000000:this.Y()*1E3:this.C)-b;b=this.il().filter(function(d){return d.namespace===a&&d.end<c});
        this.So(b);return b};
    g.k.il=function(){return this.Na()?[]:this.j.array};
    g.k.reset=function(){this.started=!1;this.G.stop();this.j.array=[];this.B=[];this.sync()};
    g.k.sf=function(a){var b=this.il().filter(function(c){return c.namespace===a});
        this.So(b);return b};
    g.k.bK=function(a){return this.il().some(function(b){return b.namespace===a})};
    g.k.Ny=function(a,b){var c=[],d=pfb(this.j,0x7ffffffffffff),e=[];this.D("ssap",{mecrs:d.length,cpn:b});d=g.v(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f.active&&(this.D("ssap",{acre:f.id,st:f.start,et:f.end,cpn:b,cpt:f.playerType,pt:a}),b&&b===f.C?(e.push(f),this.D("ssap",{acrec:f.id,st:f.start,et:f.end,pt:a})):f.playerType===a&&(e.push(f),this.D("ssap",{acret:f.id,st:f.start,et:f.end})));c=c.concat(this.pJ(e));vfb(this,c);c=[];b=[];d=g.v(this.B);for(f=d.next();!f.done;f=d.next())f=f.value,
    f.active&&f.playerType===a&&f.start===0x7ffffffffffff&&b.push(f);c=c.concat(this.sJ(b));vfb(this,c);return e.length};
    g.k.pJ=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&this.B.indexOf(d)===-1&&(this.B.push(d),b.push([1,d]))}return b};
    g.k.sJ=function(a){var b=[];if(!a.length)return b;a.sort(g.kDa);a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
    g.k.sync=function(){this.N=!0;if(!this.Z){for(var a=3;this.N&&a;)this.N=!1,this.Z=!0,this.tZ(),this.Z=!1,a--;this.K().isPlaying()&&(a=rfb(this.j,this.C),!isNaN(a)&&a<0x7ffffffffffff&&(a=(a-this.C)/this.Ca(),this.G.start(a)))}};
    g.k.tZ=function(){if(this.started&&!this.Na()){this.G.stop();var a=this.K();g.vF(a,32)&&this.ra.start();for(var b=g.vF(this.K(),2)?0x8000000000000:this.Y()*1E3,c=g.vF(a,2),d=[],e=[],f=g.v(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?h.end<0x8000000000000:!h.contains(b))&&e.push(h);d=d.concat(this.sJ(e));f=e=null;c?(a=pfb(this.j,0x7ffffffffffff),e=a.filter(function(l){return l.end<0x8000000000000}),f=qfb(this.j)):a=this.C<=b&&uFa(a)?ofb(this.j,this.C,b):pfb(this.j,b);
        d=d.concat(this.pJ(a));e&&(d=d.concat(this.sJ(e)));f&&(d=d.concat(this.pJ(f)));this.C=b;vfb(this,d)}};
    g.k.xa=function(){this.B=[];this.j.array=[];g.I.prototype.xa.call(this)};
    g.zX.mK($_,{lf:"crmacr",pJ:"crmncr",sJ:"crmxcr",tZ:"crmis",So:"crmrcr"});g.x(c0,g.DE);c0.prototype.cq=function(){return this.Z};
    c0.prototype.Rn=function(){return Math.max(this.K()-e0(this)*this.j,this.videoData.Cd())};g.x(h0,g.I);h0.prototype.rf=function(){var a=this,b=this.ea.Ke(),c=this.ea.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=c.state===8&&d>this.j,f=g.vF(c,8)&&g.vF(c,16),h=this.ea.Hm().isBackground()||c.isSuspended();i0(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
        var l=isFinite(this.j);l=f&&l&&oFa(b,this.j);var m=!d||Math.abs(d-this.j)>10;i0(this,this.Bb,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
        m=l&&cK(b.Dh(),this.j);var n=this.ea.ya;l=!n||!n.policy.Va;var p=function(){b.seekTo(a.j+.001)};
        i0(this,this.Va,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return F_(a.ea)};
        i0(this,this.eb,m&&!h,e,"qoe.slowseek",l,"new_elem");m=uFa(c);var q=c.isBuffering(),r=b.Dh(),t=bK(r,d),u=t>=0&&r.end(t)>d+5,w=m&&q&&u,A=this.ea.getVideoData();i0(this,this.Wa,d<.002&&this.j<.002&&f&&g.sI(this.X)&&g.ZS(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");i0(this,this.qa,A.nk()&&f&&!h&&!A.ra,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");i0(this,this.Ca,w&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");i0(this,this.Fa,w&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var C=n.getCurrentTime();
            f=b.Sw();f=$Ea(f,C);f=!n.isSeeking()&&d===f;i0(this,this.Tb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(C)},"seek_to_loader")}f={};
        p=bK(r,Math.max(d-3.5,0));w=p>=0&&d>r.end(p)-1.1;var E=p>=0&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=p>=0&&w&&E<11;f.close2edge=w;f.gapsize=E;f.buflen=r.length;this.D&&(f.seekSour=this.D);if(p=this.ea.Wf()){w=p.jl();E=w!==iY(p,d*1E3).clipId;var H=g.hI(this.X.experiments,"html5_ssap_skip_seeking_offset_ms"),L=(gY(p,w)+H)/1E3;i0(this,this.Ma,E&&m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){b.seekTo(L)},"ssap_clip_not_match")}i0(this,this.Ea,m&&q&&!h,m&&!q,"qoe.longrebuffer",
            function(){},"timeout",f);
        f=c.isSuspended();f=r_(this.ea)&&!f;i0(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Eg("ad")},"ads_preroll_timeout");
        p=d-this.C<.5;var N;f=!((N=this.ea.Wf())==null||!N.wl());E=(w=A.isAd()||f&&this.X.experiments.fb("html5_ssap_skip_slow_ad"))&&m&&!q&&p;N=function(){var Q=a.ea,da=g.dT(Q.videoData)&&Q.wb,na=Q.zd.Uc();(na&&Q.videoData.isAd()&&na.getVideoData().od===Q.getVideoData().od||!Q.videoData.If)&&!da?Q.Nf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+Q.videoData.videoId):vS(Q.videoData,"html5_ssap_skip_slow_ad")&&da&&Q.wb.wl()&&(Q.Sd(new BJ("ssap.transitionfailure",{cpn:iY(Q.wb,Q.Ef()).clipId,pcpn:Q.wb.jl(),
            cmt:Q.Ef()})),k7a(Q.wb))};
        i0(this,this.Jb,E,!E,"ad.rebuftimeout",N,"skip_slow_ad");p=w&&q&&cK(b.Dh(),d+5)&&p;i0(this,this.Ab,p&&!h,!p,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.vF(c,64)&&!h;i0(this,this.Kb,N,e,"qoe.start15s",function(){},"timeout");
        N=!!n&&!n.Qa&&c.isOrWillBePlaying();i0(this,this.La,N,e,"qoe.start15s",l,"newElemMse");N=fK(r,0);p=g.vF(c,16)||g.vF(c,32);p=!h&&c.isOrWillBePlaying()&&q&&!p&&(g.vF(c,64)||d===0)&&N>5;i0(this,this.gb,g.ZS(A)&&p,m&&!q,"qoe.longrebuffer",function(){a.ea.Eq()},"reset_media_source");
        i0(this,this.Za,g.ZS(A)&&p,m&&!q,"qoe.longrebuffer",l,"reset_media_element");this.C===0&&(this.K=d);p=q&&this.j===0&&d>1&&d===this.K;i0(this,this.Sa,g.ZS(A)&&p,m&&!q,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
        h=c.isOrWillBePlaying()&&!h;u=BX(this.ea)-d<6&&!u&&this.ea.mu();i0(this,this.Z,A.nk()&&h&&q&&u,m&&!q,"qoe.longrebuffer",function(){F_(a.ea,!1,!0)},"handoff_end_long_buffer_reload");
        n=(n==null?void 0:Ncb(n))||NaN;n=r.length>1||!isNaN(n)&&n-.1<=d;i0(this,this.Y,ES(A)&&h&&q&&n,m&&!q,"qoe.longrebuffer",l,"gapless_slice_append_stuck");n=t>=0&&r.end(t)>=2;h=ES(A)&&this.ea.IT&&n&&!A.ra&&h&&(q||g.vF(c,8)&&g.vF(c,16));i0(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);i0(this,this.Ob,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.C=d;this.G.start()}};
    h0.prototype.Sd=function(a,b,c){b=this.qc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.ea.Sd(new BJ(a,b));this.B[a]=!0};
    h0.prototype.qc=function(a){a=Object.assign(this.ea.qc(!0),a.qc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Lc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
    f0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
    f0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.fC)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1};
    f0.prototype.qc=function(){var a={},b=(0,g.fC)();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.x(Lfb,g.I);g.k=Lfb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.PS()||this.seekTo(.01,{jd:"seektimeline_setupMediaElement"})),j0(this)):m0(this)};
    g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.mediaElement&&Yfb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
    g.k.Ef=function(){return this.getCurrentTime()-this.Lc()};
    g.k.Rn=function(){return this.j?this.j.Rn():Infinity};
    g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return d0(this.j,a)};
    g.k.cq=function(){return!!this.j&&this.j.cq()};
    g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.KH===void 0?!1:c.KH;var d=c.cU===void 0?0:c.cU;var e=c.bx===void 0?!1:c.bx;var f=c.UT===void 0?0:c.UT;var h=c.jd===void 0?"":c.jd;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.gr===void 0?!1:c.gr;var n=c.CF===void 0?!1:c.CF;c=c.CT===void 0?!1:c.CT;m&&(a+=this.Lc());if(m=a<this.La&&!!this.ya){this.ea.ma("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.La.toFixed(3)});this.La=NaN;this.timestampOffset-=1E3;var p;
        if((p=this.ya)!=null){Mcb(p,p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(w in q.j){var t=q.j[w].index,u=t.Mw();u&&!r.has(u)&&(u.startTime+=1E3,u.endTime=u.startTime+u.duration,r.add(u));t.segments.length&&(u=t.segments[t.segments.length-1],t.segments=[],t.segments.push(u))}p.K&&p.K.SS();iZ(p.B,0,0,!0)}}p=a;var w=!isFinite(p)||(this.j?d0(this.j,p):p>=this.oe())||!g.RS(this.videoData);w||(p={st:p,mst:this.oe()},this.j&&this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Rn(),p.adft=Efb(this.j)),
        this.ea.ma("seeknotallowed",p));if(!w)return this.C&&(this.C=null,Vfb(this)),hg(this.getCurrentTime());w=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(a-this.B)<=w&&this.qa)return this.G;h&&(w=a,(this.X.wc()||this.L("html5_log_seek_reasons"))&&this.ea.ma("seekreason",{reason:h,tgt:w}));l&&(this.Ca.D=l);this.qa&&m0(this);this.G||(this.G=new sK);a&&!isFinite(a)&&Ofb(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&
        this.mediaElement.Uk()>0&&jFa(this.mediaElement)>0)||zS(this.videoData)&&this.Cd()===this.oe(!1)?0:isFinite(h)||!zS(this.videoData)));h||(a=Xfb(this,a,e));a&&!isFinite(a)&&Ofb(this,!1);this.D=a;this.Va=f;this.B=a;this.Z=0;this.j&&(e=this.j,f=a,Ffb(e,f,!1),Gfb(e,f));e=this.ea;f=a;h={KH:b,seekSource:l};e.Sc.D=f;c=e.YD;c.mediaTime=f;c.j=!0;h.KH&&Pgb(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.wr&&h&&isFinite(f)&&Dgb(e);f<e.oe()-.01&&(h=zK(e.playerState,2),g.vF(h,
        8)&&(h=zK(h,4)),e.Gc(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Wa.start(d):(b={CF:n,seekSource:l},this.qa=!0,Kfb(this,b)));(b=this.ea.wr)&&a>b.start&&Dgb(this.ea);return this.G};
    g.k.oe=function(a){if(!this.videoData.isLivePlayback)return ehb(this.ea);var b;return fT(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),hYa(this.Ze(a)*1E3)+a):zS(this.videoData)&&this.videoData.eb&&this.videoData.j?this.videoData.j.oe()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.j?this.j.Rn():ehb(this.ea)+this.timestampOffset:this.mediaElement?SA()?hYa(this.mediaElement.nI().getTime()):jFa(this.mediaElement)+this.timestampOffset||
        this.timestampOffset:this.timestampOffset};
    g.k.Cd=function(){if(g.dT(this.videoData)){var a=this.ea;g.dT(a.videoData);var b,c;return(c=(b=a.wb)==null?void 0:b.Cd())!=null?c:a.videoData.Cd()}b=this.videoData?this.videoData.Cd()+this.timestampOffset:this.timestampOffset;return fT(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?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.kP=function(){this.G||this.seekTo(this.D,{jd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
    g.k.xF=function(){return this.qa&&!isFinite(this.B)};
    g.k.xa=function(){Pfb(this,null);this.Ca.dispose();g.I.prototype.xa.call(this)};
    g.k.qc=function(){var a={};this.ya&&Object.assign(a,this.ya.qc());this.mediaElement&&Object.assign(a,this.mediaElement.qc());return a};
    g.k.cS=function(a){this.timestampOffset=a};
    g.k.getStreamTimeOffset=function(){return zS(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
    g.k.Lc=function(){return this.timestampOffset};
    g.k.Ze=function(a){return this.videoData.j.Ze(a-this.timestampOffset)};
    g.k.Pw=function(){if(!this.mediaElement)return 0;if(SS(this.videoData)){var a=this.mediaElement,b=a.Dh();a=(eK(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Cd();b=this.oe()-this.Cd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Pw()};
    g.k.Sx=function(a){this.K&&(this.K.j=a)};
    g.k.WG=function(a,b){this.ea.ma("requestUtcSeek",{time:a});var c;(c=this.ya)==null||c.WG(a);b&&(this.ra=b)};
    g.k.hB=function(a){if(this.ra)this.ea.ma("utcSeekingFallback",{source:"streamTime",timeSeconds:this.ra}),this.ea.seekTo(this.ra,{jd:"utcSeekingFallback_streamTime"}),this.ra=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.Ze(b)-a,b-=a,this.ea.ma("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{jd:"utcSeekingFallback_estimate"}))}};
    g.k.dE=function(){this.ra=0};
    g.k.L=function(a){return this.X&&this.X.L(a)};o0.prototype.vu=function(){return this.started};
    o0.prototype.start=function(){this.started=!0};
    o0.prototype.reset=function(){this.j=this.started=!1};var ggb=!1;g.x(g.s0,g.DE);g.k=g.s0.prototype;g.k.xa=function(){this.logger.debug("dispose");g.BA(this.AL);i6a(this.Lf);this.visibility.unsubscribe("visibilitystatechange",this.Lf);tgb(this);w0(this);g.wv.Wj(this.iy);this.Lj();this.Mf=null;g.ub(this.videoData);g.ub(this.bl);g.ub(this.cO);g.ub(this.dO);g.vb(this.X$);this.wr=null;g.DE.prototype.xa.call(this)};
    g.k.oy=function(a,b,c,d,e){if(this.X.L("html5_log_ad_playback_docid")){var f=this.vc();if(f.qoe){f=f.qoe;var h=this.X.qa||"yt";g.K_(f,g.uM(f.provider),"ad_playback",[a,b,c,e,h])}}else this.vc().oy(a,b,c);this.L("html5_log_media_perf_info")&&this.ma("adloudness",{ld:d.toFixed(3),cpn:a})};
    g.k.uP=function(){var a;return(a=this.ya)==null?void 0:a.uP()};
    g.k.xP=function(){var a;return(a=this.ya)==null?void 0:a.xP()};
    g.k.dA=function(){var a;return(a=this.ya)==null?void 0:a.dA()};
    g.k.vP=function(){var a;return(a=this.ya)==null?void 0:a.vP()};
    g.k.Wi=function(){return this.videoData.Wi()};
    g.k.mA=function(){return this.bB};
    g.k.YI=function(){!this.aB||this.aB.Na();this.aB=new g.Y_(new X_(this.videoData,this.X,this));this.bB=new Z_(this.X,this,this.aB)};
    g.k.getVideoData=function(){return this.videoData};
    g.k.U=function(){return this.X};
    g.k.pP=function(){return this.Ek.pP(this.Mf)};
    g.k.vc=function(a){if(a)a:{for(var b=this.bB,c=g.v(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.bB.vc();return a};
    g.k.Hm=function(){return this.visibility};
    g.k.Ke=function(){return this.mediaElement};
    g.k.vO=function(){if(this.videoData.isLoaded()){var a=this.bl;g.hI(a.Da.experiments,"html5_player_min_build_cl")>0&&g.hI(a.Da.experiments,"html5_player_min_build_cl")>645945906&&Odb(a,"oldplayer");ygb(this)}else this.videoData.uj||this.videoData.pp?this.nu&&g.sI(this.X)&&this.videoData.isLivePlayback||(this.videoData.uj?HXa(this.videoData):(a=this.vc(),a.qoe&&(a=a.qoe,N_(a,"protected"),a.provider.videoData.K?a.H1():a.provider.videoData.subscribe("dataloaded",a.H1,a)),FXa(this.videoData))):!this.videoData.loading&&
        this.u7&&vgb(this)};
    g.k.gM=function(a){this.wb=a;this.ya&&this.ya.gM(a)};
    g.k.lA=ba(16);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
    g.k.isBackground=function(){return this.visibility.isBackground()};
    g.k.sendAbandonmentPing=function(){g.vF(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.bM(!0),tgb(this),g.wv.Wj(this.iy))};
    g.k.fp=function(){gfb(this.vc())};
    g.k.Nf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
        var h,l;g.ed(rpb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+ZG());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.JV[h]||"",eP:h,Mn:f||"",LL:d,qJ:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;v0(this,"dataloaderror");this.Gc(xK(this.playerState,128,b));g.wv.Wj(this.iy);w0(this);this.Ro()};
    g.k.Eg=function(a){this.uq=this.uq.filter(function(b){return a!==b});
        this.logger.debug(function(){return"set preroll ready for "+a});
        g.dT(this.videoData)&&!this.Yn()&&this.Qb.gj("pl_pr");this.xs.vu()&&wgb(this)};
    g.k.Yn=function(){var a;(a=!!this.uq.length)||(a=this.Bh.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a};
    g.k.cq=function(){return this.Sc.cq()};
    g.k.isPlaying=function(){return this.playerState.isPlaying()};
    g.k.uF=function(){return this.playerState.uF()&&this.videoData.Sl};
    g.k.getPlayerState=function(){return this.playerState};
    g.k.getPlayerType=function(){return this.playerType};
    g.k.getPreferredQuality=function(){if(this.Mf){var a=this.Mf;a=a.videoData.RA.compose(a.videoData.FX);a=RO(a)}else a="auto";return a};
    g.k.VE=ba(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.Ib()===this.mediaElement.Ib()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.rB(this.FC),this.mediaElement=a,this.mediaElement.ea=this,Rgb(this),this.Sc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Lj();if(!this.playerState.isError()){var b=zK(this.playerState,512);g.vF(b,8)&&!g.vF(b,2)&&(b=yK(b,1));a.isView()&&(b=zK(b,64));this.Gc(b)}this.mediaElement=
        a;this.mediaElement.ea=this;GR(this.X)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Rgb(this);this.Sc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.bl.lJ()&&kFa(this.mediaElement)}};
    g.k.Lj=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.Sc.D=c);this.Sc.setMediaElement(null);!a&&pK(this)?Lgb(this):GX(this);this.ya&&(u_(this.ya),A0(this,b));this.zx.stop();if(this.mediaElement&&(!this.xs.vu()||this.playerState.isError()||g.vF(this.playerState,2)||this.Gc(yK(this.playerState,512)),this.mediaElement)){g.rB(this.FC);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
    this.Qb.tv("mesv_s"),this.mediaElement.stopVideo(),C0(this);this.mediaElement=this.mediaElement.ea=null}}};
    g.k.playVideo=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,h,l;return g.G(function(m){if(m.j==1){b.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.vF(b.playerState,128))return m.return();if(b.bl.sK())return b.publish("signatureexpired"),m.return();b.mediaElement&&lY(b.vc());Bgb(b);(g.vF(b.playerState,64)||a)&&b.Gc(yK(b.playerState,8));return b.xs.j&&b.mediaElement?b.Mf||!b.yG?m.Ia(2):g.z(m,b.yG,3):m.return()}if(m.j!=
        2&&g.vF(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.TUa(b.X.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Wi()?"fmt.unplayable":"fmt.noneavailable",d=1),g.kE(Error("selectableFormats")),b.Nf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Zh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(u0(b));if(k0(b))n=b.Sc,xS(n.videoData)?!n.isAtLiveHead(n.getCurrentTime())&&n.cq()&&
        n.ea.seekTo(Infinity,{jd:"seektimeline_peggedToLive",seekSource:34}):g.dT(n.videoData)&&n.getCurrentTime()<n.Cd()&&n.ea.seekTo(n.Cd(),{jd:"seektimeline_outOfWindow"});else if(xS(b.videoData)){if(e=b.getCurrentTime()<b.Cd()-15,f=g.RS(b.videoData)&&b.playerState.isPaused(),h=g.vF(b.playerState,1024),n=b.Sc,n.videoData.dc()&&kYa(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{jd:"videoplayer_unpauseLiveOnly",seekSource:102})):(b.logger.debug("seek to min seekable for live because of out of window"),
        b.seekTo(b.Cd(),{jd:"videoplayer_outOfWindow",seekSource:102}))),!b.isAtLiveHead(void 0,!0)&&b.cq()&&(b.logger.debug("seek to head for live because pegged to live"),l={jd:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,l)),g.vF(b.playerState,256)&&b.videoData.ra&&b.Sc.xF())return b.Gc(AK(b.playerState,8,4)),m.return()}else g.dT(b.videoData)&&b.getCurrentTime()<b.Cd()-0&&b.seekTo(b.Cd(),{jd:"videoplayer_outOfWindow"});g.vF(b.playerState,4)&&g.vF(b.playerState,16)&&b.Gc(AK(b.playerState,
        9,4));if(r0(b))return Xgb(b),m.return();Wgb(b);g.Aa(m)})};
    g.k.Eq=function(a){this.logger.debug("reset media source");a&&this.Sd(new BJ("qoe.restart",a));this.Gc(yK(this.playerState,2048));GX(this);a=this.videoData.j&&XO(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.ya&&kcb(this.ya),F_(this)):(r0(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
    g.k.Nt=function(){if(!this.Mf)return[];var a=Udb(this.Ek,this.Mf,this.Ow());return this.Mf.j.Nt(a)};
    g.k.KE=function(){if(!this.Mf)return[];var a=Udb(this.Ek,this.Mf,this.Ow());return this.Mf.j.KE(a)};
    g.k.Ow=function(){var a=this.Ae?this.Ae.Ow():CXa(this.videoData)&&this.videoData.j&&XO(this.videoData.j)?this.videoData.Pl?oS:xdb:oS;this.WS&&(a=a.compose($pb));return a};
    g.k.CJ=function(){var a=this.qe(),b=this.zd.Od().videoId;return this.zd.Hu.CJ(a)||this.zd.Hu.CJ(b)};
    g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?RO(this.videoData.RA):QO[HO()]};
    g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
    g.k.setUserAudio51Preference=function(a,b){this.videoData.Jg!==a&&(this.ma("toggle51",{pref:a}),this.videoData.Jg=a,g.uB("yt-player-audio51",a,b?31536E3:2592E3),G_(this))};
    g.k.getUserAudio51Preference=function(){var a=1;CR(this.X)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return(b=g.vB("yt-player-audio51"))!=null?b:a};
    g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.ma("proxima",{pref:a});g.uB("yt-player-proxima-pref",a,31536E3);b!==a&&(a=this.Sc,a.Za=!0,a.ea.seekTo(Infinity,{jd:"seektimeline_proximaSeekToHead",seekSource:34}))};
    g.k.getProximaLatencyPreference=function(){var a;return(a=cQa())!=null?a:0};
    g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
    g.k.gU=function(){this.videoData.videoId?this.zd.gU(this.videoData.videoId):this.ma("piavid",{})};
    g.k.getAvailableAudioTracks=function(){return g.dT(this.videoData)&&this.wb?p7a(this.wb).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
    g.k.getAudioTrack=function(){if(Igb(this)){var a=Kgb(this);if(a)return a}return this.videoData.getAudioTrack()};
    g.k.ZF=function(){if(yS(this.videoData)&&!this.videoData.dc()&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;(a=this.ya)!=null&&a.rf()}};
    g.k.Vz=function(){if(this.ya){var a=this.ya,b=a.Vz;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:zS(c)&&c.If&&!c.isAd();b.call(a,c)}};
    g.k.Gr=function(){return this.Qa};
    g.k.Tx=function(a){this.logger.debug("onNeedKeyInfo");this.IB.set(a.initData,a);this.Ae&&(this.Ae.Tx(a),this.L("html5_eme_loader_sync")||this.IB.remove(a.initData))};
    g.k.dS=function(a){this.videoData.iB=g.OO("auto",a,!1,"u");q0(this)};
    g.k.Sx=function(a){var b,c;if(this.L("html5_prefer_language_over_codec")&&((b=this.videoData.D)==null?0:b.hc)&&a.j.info.qb!==this.videoData.D.qb&&((c=a.j.info.hc)==null?void 0:c.id)!==this.videoData.D.hc.id){var d;this.ma("lac",{prev:this.videoData.D.itag,plang:this.videoData.D.hc.id,"new":a.j.info.itag,nlang:(d=a.j.info.hc)==null?void 0:d.id})}b=a.reason;c=a.j.info;d=a.token;var e=this.vc(a.videoId),f=g.dT(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;b!=="m"&&b!==
    "t"&&(b=h?"i":"a");var l=b==="m"||b==="t";e.cG(new Rdb(f,c,b,"",d));this.publish("internalaudioformatchange",f,!h&&l)}this.Sc.Sx(a.j.index)};
    g.k.hL=function(a){this.publish("localmediachange",a)};
    g.k.Xo=function(a){a=a===void 0?{}:a;var b;(b=this.ya)==null||b.Xo(this.X,DXa(this.videoData),a)};
    g.k.sK=function(){return this.bl.sK()};
    g.k.handleError=function(a){this.bl.handleError(a)};
    g.k.lJ=function(){return this.bl.lJ()};
    g.k.hB=function(a){this.Sc.hB(a)};
    g.k.pauseVideo=function(a){a=a===void 0?!1:a;if((g.vF(this.playerState,64)||g.vF(this.playerState,2))&&!a)if(g.vF(this.playerState,8))this.Gc(AK(this.playerState,4,8));else if(this.uF())r0(this);else return;g.vF(this.playerState,128)||(a?this.Gc(yK(this.playerState,256)):this.Gc(AK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.RS(this.videoData)&&this.ya&&A0(this,!1)};
    g.k.stopVideo=function(){this.pauseVideo();this.ya&&(A0(this,!1),this.ya.Zk())};
    g.k.Ro=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;if(pK(this)&&b){var c;(c=this.mediaElement)==null||c.Ro()}else{var d;(d=this.mediaElement)==null||d.stopVideo()}C0(this);w0(this);g.vF(this.playerState,128)||(a?this.Gc(zK(zK(yK(this.playerState,4),8),16)):this.Gc(xK(this.playerState)));this.videoData.videoId&&this.X.La.remove(this.videoData.videoId)};
    g.k.seekTo=function(a,b){b=b===void 0?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
        g.vF(this.playerState,2)&&r0(this);b.Uqb&&this.Gc(yK(this.playerState,2048));this.Sc.seekTo(a,b);this.Bh.sync()};
    g.k.aL=function(){this.publish("onAbnormalityDetected")};
    g.k.getCurrentTime=function(){return this.Sc.getCurrentTime()};
    g.k.Ef=function(){return this.Sc.Ef()};
    g.k.zJ=function(a){return this.wb&&(a=a||this.wb.jl())?mY(this.wb,a):this.Ef()};
    g.k.Rn=function(){return this.Sc.Rn()};
    g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Lc())};
    g.k.kA=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.kA());return a>=0?a:this.getCurrentTime()};
    g.k.Ze=function(){var a;return((a=this.videoData.j)==null?0:a.Ze)?this.videoData.j.Ze(this.getCurrentTime()-this.Lc()):this.mediaElement&&(a=this.mediaElement.nI())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
    g.k.getDuration=function(a){return g.dT(this.videoData)&&this.wb?this.L("html5_ssap_enable_duration_by_cpn")&&a?o7a(this.wb,a):jY(this.wb):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Lc():this.oe()?this.oe():0};
    g.k.aF=function(){var a=new lfb;this.ya?(jVa(this.X.schedule,a),Gcb(this.ya,a)):this.mediaElement&&(a.uw=uK(this.mediaElement));a.Ns=this.Ns;a.wv=this.wv;a.C=this.isAtLiveHead()&&this.isPlaying()?qgb(this):NaN;return a};
    g.k.NG=function(a,b){this.wv+=a;this.Ns+=b};
    g.k.Pw=function(){return this.mediaElement?g.RS(this.videoData)?1:SS(this.videoData)?this.isAtLiveHead()||this.cq()?1:this.Sc.Pw():this.mediaElement.Pw():0};
    g.k.qc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.vc().qc());this.mediaElement&&(Object.assign(b,this.mediaElement.qc()),Object.assign(b,this.eF()));this.ya&&Object.assign(b,this.ya.qc());this.Ae&&(b.drm=JSON.stringify(this.Ae.qc()));b.state=this.playerState.state.toString(16);g.vF(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Og));this.Yn()&&(b.prerolls=this.uq.join(","));this.videoData.Xd&&(b.ismb=this.videoData.Xd);this.videoData.latencyClass!=="UNKNOWN"&&
    (b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.zd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
    yQ(this.videoData.j)&&(b.segduration=yQ(this.videoData.j)),a=this.Sc,b.lat=a.K?F_a(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Sf.toFixed(3);if(a=g.QU(this))b.optimal_format=a.video.qualityLabel;b.user_qual=HO();b.release_version="youtube.player.web_20240623_00_RC00";g.dT(this.videoData)&&this.wb&&(b.ssap=hY(this.wb))}b.debug_videoId=this.videoData.videoId;return b};
    g.k.addCueRange=function(a){this.vz([a])};
    g.k.removeCueRange=function(a){this.Bh.So([a])};
    g.k.zE=function(a,b){return this.Bh.zE(a,b)};
    g.k.vz=function(a,b){this.Bh.lf(a,b)};
    g.k.PG=function(a){this.Bh.So(a)};
    g.k.il=function(){return this.Bh.il()||[]};
    g.k.Zh=function(){return this.visibility.Zh()};
    g.k.bv=function(){this.mediaElement&&this.mediaElement.bv()};
    g.k.Cca=function(){v0(this)};
    g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
    g.k.nL=function(a){var b=a.target.Ff();if(this.mediaElement&&this.mediaElement.Ff()&&this.mediaElement.Ff()===b){bhb(this,a.type);switch(a.type){case "error":var c=rFa(this.mediaElement)||"",d=this.mediaElement.wf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.ma("capchg",{msg:d}),F_(this,!0)):u0(this);return}if(this.mediaElement.hasError()&&(Kdb(this.bl,c,{msg:d})||g.dT(this.videoData)&&this.wb&&this.wb.handleError(c)))return;if(this.isBackground()&&this.mediaElement.eh()===
        4){this.Ro();x0(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||c>0)&&c!==1&&this.Hl(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());tfb(this.Bh);this.vc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":dhb(this);this.publish("onLoadedMetadata");S5a(this);c=this.Ze();this.videoData.GB&&(this.videoData.GB=c);break;case "loadstart":S5a(this);break;case "progress":case "suspend":this.Tc();
        this.publish("onLoadProgress",this,this.Pw());break;case "playing":this.Qb.tv("plev");this.bT&&!k0(this)&&(this.bT=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{jd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.Uk()===0;if(c&&(!this.WK||d))return;this.WK=this.WK||!!this.mediaElement.getCurrentTime();Sgb(this);this.Tc();if(!this.mediaElement||this.mediaElement.Ff()!==
        b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.Sw().length>0&&this.mediaElement.Dh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Uk()>2||!this.mediaElement.isSeeking()&&cK(this.mediaElement.Dh(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.qc(),c.bh=uK(this.mediaElement).toFixed(3),
        this.ma("uwe",c));g.dT(this.videoData)&&this.wb&&j7a(this.wb,this.mediaElement.getCurrentTime());break;case "resize":dhb(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.VW&&g.vF(this.playerState,8)&&!g.vF(this.playerState,1024)&&this.getCurrentTime()===0&&g.aC){x0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Ff()===b){$fb(this.Sc,a,this.wb||void 0);this.publish("videoelementevent",
        a);b=this.playerState;d=this.YD;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.dT(this.videoData)&&this.wb?jY(this.wb):void 0;if(!g.vF(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.vF(b,64)||a.type!=="ended"&&a.type!=="pause"){f=f||e.getDuration();f=e.isEnded()||l>1&&Math.abs(l-f)<1.1;var m=a.type==="pause"&&e.isEnded();l=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.vF(b,4)&&!a0(d,l);if(m||f&&l)e.JJ()>0&&e.Ff()&&(h=14);else switch(a.type){case "error":rFa(e)&&
    (h|=128);break;case "pause":g.vF(b,256)?(h^=256)||(h=64):g.vF(b,32)||g.vF(b,2)||g.vF(b,4)||(h=4,g.vF(b,1)&&g.vF(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,wK(d,e)):a0(d,e.getCurrentTime())&&(h&=-2);g.vF(b,1)&&wK(d,e)&&(h|=1);break;case "seeking":h|=16;g.vF(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;wK(d,e);break;case "waiting":g.vF(b,2)||(h|=1);wK(d,e);break;case "timeupdate":l=g.vF(b,16),f=g.vF(b,4),(g.vF(b,8)||l)&&!f&&a0(d,e.getCurrentTime())&&(h=8),wK(d,e)&&(h|=1)}}d=h;h=
        null;d&128&&(h=a.target,e=rFa(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.qc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.wf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.JV[f]||"",eP:f,LL:AJ(m),qJ:l,cpn:b.Og?b.Og.cpn:""}):h=null,h&&(h.cpn=c));b=xK(b,d,h)}!g.vF(this.playerState,1)&&g.vF(b,1)&&ahb(this,"evt"+a.type);this.Gc(b)}}};
    g.k.caa=function(a){a=a.j.availability==="available";a!==this.pF&&(this.pF=a,this.publish("airplayavailabilitychange"))};
    g.k.daa=function(){var a=(0,g.fC)(),b=this.mediaElement.Zh();this.ma("airplay",{ia:b});!b&&!isNaN(this.vK)&&a-this.vK<2E3||(this.vK=a,b!==this.Zh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Lf()),this.ma("airplay",{rbld:b}),G_(this)),this.publish("airplayactivechange"))};
    g.k.fF=function(a){if(this.ya){var b=this.ya,c=b.B,d=b.getCurrentTime(),e=Date.now()-c.qa;c.qa=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&c.B!==3&&Q9a(c.ya,d,c.K,c.G);c.policy.K?c.C=NaN:c.D=NaN;hZ(c,4,c.B===3?"adfps":"adf");u_(b)}};
    g.k.Tc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){Sfb(this.Sc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.vF(this.playerState,4)&&g.RS(this.videoData)||yS(this.videoData)&&g.vF(this.playerState,32)||Icb(this.ya,c);c>5&&(this.Sc.D=c);var d=g.OB();d?g.wv.Wj(this.iy):g.AA(this.iy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||fT(this.videoData))&&!g.vF(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.vF(b.playerState,
        128)){b.X.wc()&&bhb(b,"pfx");var l=b.getCurrentTime(),m=uK(b.mediaElement),n=g.vF(b.playerState,8),p=a0(b.YD,l),q=sFa(b.YD,l,(0,g.fC)(),m);n&&p?b.Gc(zK(b.playerState,1)):n&&q?(n=b.getDuration(),p=xS(b.videoData),n&&Math.abs(n-l)<1.1?(b.ma("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Pt()||Cgb(b)?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{jd:"videoplayer_loop",seekSource:37})):EX(b)):(b.playerState.isBuffering()||ahb(b,"progress_fix"),b.Gc(yK(b.playerState,1)))):(n&&!p&&!q&&
    l>0&&(n=(Date.now()-b.IF)/1E3,p=b.getDuration(),l>p-1&&b.ma("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&uK(b.mediaElement)>5&&b.Gc(zK(b.playerState,1)));b.Tc()}};
        this.mediaElement.Sw().length===0?this.iy=d?g.wv.Ri(f,100):g.yA(f,100):this.iy=d?g.wv.Ri(f,500):g.yA(f,500)}this.videoData.Ik=c;if(this.L("html5_ssap_vss_fix")){var h;(h=this.wb)==null||t7a(h)}!a&&this.isPlaying()&&Vgb(this);beb(this.Ek,this.Mf,this.Ke(),this.isBackground())&&q0(this);this.publish("progresssync",this,a);e&&fT(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
    g.k.m9=function(){this.Nf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
    g.k.TE=function(){return this.vc().TE()};
    g.k.qP=function(){return this.ya?this.ya.qP():fR(this.X.schedule,!0)};
    g.k.Gc=function(a){if(g.tFa(this.playerState,a))this.X.wc()&&a.seekSource!==this.playerState.seekSource&&this.ma("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
        var b=new g.uF(a,this.playerState);this.playerState=a;chb(this);var c=!this.DL.length;this.DL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.tB.state===8&&!d;g.xF(b,1)&&d&&g.vF(this.playerState,8)&&!g.vF(this.playerState,64)&&this.ya&&(jcb(this.ya),this.mediaElement&&uK(this.mediaElement)>=5&&$db(this.Ek,this.Mf)&&q0(this));(d=g.hI(this.X.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.vF(a,1)&&(g.vF(a,8)||g.vF(a,16))?this.ON.start(d):this.ON.stop();(wF(b,8)<0||g.xF(b,
            1024))&&this.zx.stop();!g.xF(b,8)||this.videoData.ra||g.vF(b.state,1024)||this.zx.start();g.vF(b.state,8)&&wF(b,16)<0&&!g.vF(b.state,32)&&!g.vF(b.state,2)&&this.playVideo();g.vF(b.state,2)&&SS(this.videoData)&&(this.Hl(this.getCurrentTime()),this.Tc(!0));g.xF(b,2)&&this.bM(!0);g.xF(b,128)&&this.Ro();this.videoData.j&&this.videoData.isLivePlayback&&!this.X2&&(wF(b,8)<0?mUa(this.videoData.j):g.xF(b,8)&&this.videoData.j.resume());Qfb(this.Sc,b);v7a(this.vc(),b);if(c&&!this.Na())try{for(var e=g.v(this.DL),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        f=e.next();!f.done;f=e.next()){var h=f.value;ufb(this.Bh,h);this.publish("statechange",h)}}finally{this.DL.length=0}}};
    g.k.fG=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")};
    g.k.VR=function(){this.Qb.tick("qoes")};
    g.k.kP=function(){this.Sc.kP()};
    g.k.gL=function(a,b,c,d){a:{var e=this.bl;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=CJ(b);a==="drm.keyerror"&&this.Ae&&this.Ae.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())Qdb(e,a);else{if(e.ea.Nf(a,b,d,c),Hdb(e,{detail:c}))break a}else e.Sd(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.D++,$gb(e.ea))}};
    g.k.Taa=function(){var a=this,b=g.hI(this.X.experiments,"html5_license_constraint_delay"),c=Bra();b&&c?(b=new g.Av(function(){y0(a);v0(a)},b),g.M(this,b),b.start()):(y0(this),v0(this))};
    g.k.hG=function(a){this.publish("heartbeatparams",a)};
    g.k.mq=function(a){this.ma("keystatuses",mdb(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=ndb(b,c);d=A_(a)?odb(a,d):a.D.includes(d)}else{a:{b=ndb(b,c);for(d in a.j)if(a.j[d].status==="output-restricted"){var e=a.j[d].type;if(b===""||e==="AUDIO"||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((f=this.Ae)==null?0:LQ(f.j))if((c=this.Ae)==
        null)c=0;else{b=f=void 0;e=g.v(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=pdb(h,"SD")),b||(b=pdb(h,"AUDIO"));c.mj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.ma("drm",{dshdr:1});Qdb(this.bl);return}}else{this.videoData.zD||(this.videoData.zD=!0,this.ma("drm",{dphdr:1}),F_(this,!0));return}var l;if((l=this.Ae)==null?0:LQ(l.j))return}else if(l=a.Z&&d,c&&!l){Qdb(this.bl);return}d||odb(a,"AUDIO")&&odb(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
        a=mdb(a),this.WS?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Nf("drm.keyerror",2,void 0,"info."+a)):(this.WS=!0,this.Sd(new BJ("qoe.restart",Object.assign({},{retrydrm:1},a))),q0(this),$gb(this)))};
    g.k.Vaa=function(){if(!this.videoData.ra&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.Uk()>0&&uK(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Gc(yK(this.playerState,1)),ahb(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");chb(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!CXa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].me)||this.Ae),mfmtinfo:!this.videoData.B,prerolls:this.Yn()?this.uq.join(","):
            "0"};if(this.Ae){b=this.Ae;if(b.B.size<=0){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=mdb(b.B.values().next().value),b=AJ(b);a.drmp=b}var d;Object.assign(a,((d=this.ya)==null?void 0:d.qc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.qc())||{});this.vc().Sd("qoe.start15s",AJ(a));this.publish("loadsofttimeout")}};
    g.k.Hl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,v0(this))};
    g.k.bM=function(a){var b=this;a=a===void 0?!1:a;if(!this.zI)if(HG("att_s","player_att")||IG("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.jBa(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.Ba(l,4);e=jfb(b.vc());if(!e)throw Error();f={};return g.z(l,g.iBa((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.zI)throw Error();
        if(!h.challenge)throw g.kE(Error("Not sending attestation ping; no attestation challenge string")),Error();b.zI=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;((n=h.adblockReporting)==null?void 0:n.reportingStatus)!==void 0&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;((p=h.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));IG("att_f",
            void 0,"player_att");g.Ca(l,0);break;case 4:g.Da(l),IG("att_e",void 0,"player_att"),g.Aa(l)}})})().then(function(){});
    else{var c=new g.ZPa(this.videoData);if("c1a"in c.lr&&!g.FO.isInitialized()){IG("att_wb",void 0,"player_att");this.bO===2&&Math.random()<.01&&g.kE(Error("Botguard not available after 2 attempts"));if(a)return;if(this.bO<5){g.Bv(this.dO);this.bO++;return}}(c=g.$Pa(c))?(IG("att_f",void 0,"player_att"),ifb(this.vc(),c),this.zI=!0):IG("att_e",void 0,"player_att")}};
    g.k.oe=function(a){return this.Sc.oe(a===void 0?!1:a)};
    g.k.Cd=function(){return this.Sc.Cd()};
    g.k.Lc=function(){return this.Sc?this.Sc.Lc():0};
    g.k.getStreamTimeOffset=function(){return this.Sc?this.Sc.getStreamTimeOffset():0};
    g.k.Ut=function(){var a=0;this.X.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Lc():this.getStreamTimeOffset());return a};
    g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&Vdb(this.Ek,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,q0(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,a==="auto"&&this.mediaElement)){var b=ugb(this);b&&b.videoHeight>0&&(a=REa(b.videoWidth,b.videoHeight))}return a};
    g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
    g.k.Qs=function(){this.vc().Qs()};
    g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.vc();c.j?(c=T_(c.j,"engage"),c.qa=a,c.send(b)):b&&b()};
    g.k.Gi=function(a){return this.vc().Gi(a)};
    g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return xS(this.videoData)&&(this.RY||b)?this.Sc.isAtLiveHead(a):!1};
    g.k.Fr=function(){var a=this.oe(),b=this.getCurrentTime(),c;(c=!xS(this.videoData))||(c=this.Sc,c=!(c.j&&c.j.C));return c||this.cq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
    g.k.Ho=ba(24);g.k.Ou=ba(45);g.k.Qo=function(a){this.vc().Qo(a)};
    g.k.uy=function(a){this.vc().uy(a)};
    g.k.MG=function(a){this.vc().MG(a)};
    g.k.eF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
    g.k.setLoop=function(a){this.loop=a;this.mediaElement&&GR(this.X)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Va=!0:kcb(this.ya))};
    g.k.Pt=function(){return this.mediaElement&&GR(this.X)?this.mediaElement.Pt():this.loop};
    g.k.cS=function(a){this.ma("timestamp",{o:a.toString()});this.Sc.cS(a)};
    g.k.Td=function(a){this.Qb.tick(a)};
    g.k.gj=function(a){return this.Qb.gj(a)};
    g.k.tv=function(a){this.Qb.tv(a)};
    g.k.ma=function(a,b,c){c=c===void 0?!1:c;this.vc().ma(a,b,c)};
    g.k.WB=function(a,b,c){c=c===void 0?!1:c;this.vc().ma(a,b,c)};
    g.k.Sd=function(a){this.vc().Sd(a.errorCode,AJ(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")){a=this.ya?Z$a(this.ya.videoTrack):{};var b,c;this.ma("lasoe",Object.assign(this.ya?Z$a(this.ya.audioTrack):{},(b=this.Qa)==null?void 0:(c=b.j)==null?void 0:c.GJ()));var d,e;this.ma("lvsoe",Object.assign(a,(d=this.Qa)==null?void 0:(e=d.B)==null?void 0:e.GJ()))}};
    g.k.LG=function(a,b,c){this.vc().LG(a,b,c)};
    g.k.WO=function(a){this.videoData.S0=!0;this.Sd(new BJ("sabr.fallback",a));F_(this,!0)};
    g.k.getPlayerSize=function(){return this.sH.getPlayerSize()};
    g.k.Xh=function(){return this.sH.Xh()};
    g.k.Fi=function(){return this.Qb};
    g.k.Ir=function(){return this.zd.Ir()};
    g.k.getVolume=function(){return this.zd.getVolume()};
    g.k.qF=function(){return this.zd.qF()};
    g.k.isMuted=function(){return this.zd.isMuted()};
    g.k.cA=function(){return this.zd.cA()};
    g.k.L=function(a){return this.X.L(a)};
    g.k.Is=function(){var a=this.getCurrentTime(),b=a-this.Lc();var c=this.mediaElement?eK(this.mediaElement.Dh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.L("html5_ssdai_disable_seek_to_skip")&&((d=this.ya)==null?0:d.fH(b,this.oe())))return this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return((e=this.ya)==null?0:e.Is(b,c))?(this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),bgb(this.Sc,a),!0):!1};
    g.k.wc=function(){return this.X.wc()};
    g.k.Rt=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.cZ||this.zd.QK(this.videoData.videoId);this.zd.jU();return this.X.Vf||""};
    g.k.qe=function(){return this.videoData.videoId};
    g.k.oA=function(){return this.zd.Wx};
    g.k.mu=function(){return this.zd.mu()};
    g.k.WG=function(a,b){this.Sc.WG(a,b)};
    g.k.dE=function(){this.Sc.dE()};
    g.k.Tm=function(a){this.zd.Tm(a)};
    g.k.YR=function(a,b){this.zd.YR(a,b)};
    g.k.IS=function(a,b){var c;(c=this.ya)==null||c.IS(a,b)};
    g.k.oO=function(){var a=this.Gr();return!!a&&a.oO()};
    g.k.Wf=function(){return this.wb};
    g.k.lH=function(a,b){this.vc().lH(a,b)};
    g.k.XE=function(){return this.vc().XE()};
    g.k.qA=function(){return this.videoData.GX};
    g.k.oC=function(a){this.videoData.GX=a};
    g.k.zo=function(){return this.zd.zo()};
    g.k.wF=function(){return this.zd.wF(this)};
    g.k.hT=function(a){this.videoData.ifa=a};g.x(g.D0,g.I);g.D0.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.fb(a),f=A3[e];if(f){try{f.dispose()}catch(l){g.jE(l)}A3[e]=null}var h=new g.D0(a,b,c,d);h.addOnDisposeCallback(function(){A3[e]=null;h.Q2&&h.Q2()});
        return A3[e]=h}catch(l){throw g.jE(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
    g.k=g.D0.prototype;g.k.Hm=function(){return this.visibility};
    g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)};
    g.k.Dm=function(){this.xQ||(this.xQ=g.YG(HT(),KPa()));return this.xQ};
    g.k.Lj=function(){if(this.mediaElement){this.HC&&(this.events.Pc(this.HC),this.HC=null);g.rB(this.Gu);this.ub&&this.ub.Lj(!0);this.template.Lj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.RL()}catch(a){g.kE(a)}this.mediaElement=null}};
    g.k.Uc=function(){return this.ub};
    g.k.qy=function(){var a=this;this.ub!==this.sb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.ub)==null?void 0:b.getPlayerType())+", vid "+((c=a.ub)==null?void 0:c.getVideoData().videoId)}),FX(this,this.sb))};
    g.k.Sz=function(a,b,c){var d=this,e=this.Qb;a===2&&(e=new b0a(this.X));return new g.s0(this.X,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
    g.k.jaa=function(){J0(this)||(this.logger.debug("application playback ready"),this.Hq(5))};
    g.k.tba=function(a){if(!J0(this)){this.logger.debug("playback ready");Vhb(this);var b=a.getPlayerState();a.uF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}};
    g.k.canPlayType=function(a){return FJ(a)};
    g.k.U=function(){return this.X};
    g.k.getVideoData=function(){return this.ub.getVideoData()};
    g.k.cF=ba(18);g.k.Od=function(){return this.sb.getVideoData()};
    g.k.getVideoLoadedFraction=function(a){a=g.sT(this,a);return a?g.eT(a.getVideoData())?1:(a=a.Ke())?a.Pw():0:0};
    g.k.ob=function(){return this.template};
    g.k.zb=function(){return this.Qd};
    g.k.Fi=function(){return this.Qb};
    g.k.mC=function(a){var b=g.sT(this,1);b&&EX(b,a)};
    g.k.Ir=function(){var a=this.Qd.Ir();this.Ua.publish("videoStatsPingCreated",a);return a};
    g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
    g.k.qF=function(){return this.Ua.isFullscreen()};
    g.k.isMuted=function(){return this.Ua.isMuted()};
    g.k.cA=function(){if(this.ub===this.sb&&this.Db)return this.Db.postId};
    g.k.kda=function(){var a=this;this.L("use_rta_only_for_player")||(g.sI(this.X)?g.JR(this.X,g.bT(this.getVideoData())).then(function(b){IT(HT(),b);BYa(a.getVideoData(),a.X,a.Dm())}):BYa(this.getVideoData(),this.X,this.Dm()))};
    g.k.gU=function(a){this.Ua.publish("d6de4videobindingchange",a)};
    g.k.jU=function(){this.FL&&this.FL.jU()};
    g.k.QK=function(a){return this.FL?this.FL.QK(a):""};
    g.k.mT=function(a){this.FL=a};
    g.k.IG=function(a){a===1&&(this.Qb.tick("vr"),Tgb(this.ub),c0a(this.Qb,this.ub.getVideoData(),Uhb(this)),W0a(this.Qd));var b=this.X;(HR(b)&&b.N||g.qR(b))&&(this.If()||this.Ua.ib("onAdStateChange",a))};
    g.k.setLoopVideo=function(a){this.ub===this.sb&&this.ub.Pt()!==a&&(this.ub.setLoop(a),this.Ua.ib("onLoopChange",a))};
    g.k.getLoopVideo=function(){return this.ub.Pt()};
    g.k.setLoopRange=function(a){var b=!1;!!this.Db!==!!a?b=!0:this.Db&&a&&(b=this.Db.startTimeMs!==a.startTimeMs||this.Db.endTimeMs!==a.endTimeMs||this.Db.postId!==a.postId||this.Db.type!==a.type);if(b){if(this.ub&&ES(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.sT(this))==null||c.ma("slr",{et:b})}this.sb.Bh.sf("applooprange");if(a)c=new g.NI(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(c);else{this.Od().clipConfig=void 0;var d,e;((d=
        this.Db)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Db)==null?void 0:e.loopCount))||(c={loopCount:String(this.Db.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.SB("repeatChapterLoopEvent",c))}this.Db=a;this.Ua.ib("onLoopRangeChange",a||void 0);this.ub===this.sb&&(this.aM(),this.ub.fp())}};
    g.k.getLoopRange=function(){return this.Db};
    g.k.aM=function(){var a="";this.Db?this.ub!==this.sb?a="pnea":Ghb(this,this.sb.getCurrentTime())&&(this.Db.loopCount=0,a="ilr"):a="nlr";if(this.ub&&ES(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.sT(this))==null||d.ma("slrre",{rej:a,ct:this.sb.getCurrentTime(),lst:(b=this.Db)==null?void 0:b.startTimeMs,let:(c=this.Db)==null?void 0:c.endTimeMs})}else{var e;(e=g.sT(this))==null||e.ma("slrre",{})}a||Khb(this)};
    g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=mhb(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.X.D&&g.uB("yt-player-playback-rate",a),this.Ua.Xm("onPlaybackRateChange",a)))};
    g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return BT(this.Qd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.dT(this.getVideoData());a=d||e?g.sT(this):g.sT(this,a);if(!a)return 0;if(e&&this.wb)return b=this.wb,a=a.getCurrentTime(),c?c=mY(b,c):(c=n7a(b,a),c=a-c/1E3),c;if(b){if(d&&this.xe&&(c=this.xe.Wa/1E3,c!==0))return c;c=I0(this,a);return R0(this,c.getCurrentTime(),c)}d&&this.xe?(c=this.xe,a=a.getCurrentTime(),c=(c=S6a(c,
        a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c};
    g.k.kA=function(){var a=g.sT(this);if(!a)return 0;a=I0(this,a);return R0(this,a.kA(),a)};
    g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.dT(c);var f=d||e?g.sT(this):g.sT(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number((h=c.progressBarStartPosition)==null?void 0:h.utcTimeMillis),m;c=Number((m=c.progressBarEndPosition)==null?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.wb)return this.L("html5_ssap_enable_duration_by_cpn")?b=o7a(this.wb,this.wb.jl()):(b=this.wb,d=
        b.ea.getCurrentTime()*1E3,b=(b=fY(b,d))?(b.Wh()-b.Ye())/1E3:0),a===1&&b===0?f.getDuration():b;if(b)return f=H0(this,f),R0(this,f.getDuration(),f);d&&this.xe?(a=this.xe,f=f.getCurrentTime(),f=(f=$X(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f};
    g.k.Ze=function(a){var b=g.sT(this,a);return b?this.If(b)?(b=H0(this,b),b.Ze()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ze():0};
    g.k.addPlayerResponseForAssociation=function(a){this.wb&&this.wb.addPlayerResponseForAssociation(a)};
    g.k.finishSegmentByCpn=function(a,b){return this.wb?this.wb.finishSegmentByCpn(a,b):[]};
    g.k.TO=function(){this.template.TO();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.B)a.state.B.hasOwnProperty(c)&&(b[c]=a.state.B[c]);(a=esa(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Qba)};
    g.k.getDebugText=function(a){var b=this.sb.qc(a);if(this.ub&&this.ub!==this.sb){for(var c=this.ub.qc(a),d=g.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=mf(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.tf("video-ads");f?(aib(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.tf("videoAdUiSkipContainer"),l=g.tf("ytp-ad-skip-button-container"),m=g.tf("ytp-skip-ad-button"),n=h||l||m;n?(aib(n,f),f.ima=h?1:
        0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(+this.mediaElement.getSize().area()===0),b.op=this.mediaElement.bF("opacity"),c=this.mediaElement.St().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.bF("display"));a&&((a=(0,g.O_)())&&(b.gpu=a),(a=this.X.playerStyle)&&(b.ps=a),this.X.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_20240623_00_RC00"},b=this.getPlayerStateObject().Og;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
    g.k.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(J0(this))return 3;var b;if(a&&((b=this.xe)==null?0:b.wl(this.getCurrentTime())))return 2;var c;return g.dT(this.getVideoData())&&((c=this.wb)==null?0:c.wl())?2:g.sT(this).getPlayerType()};
    g.k.KA=function(){return g.dT(this.getVideoData())&&this.wb?this.wb.KA():!1};
    g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?BT(this.Qd).Ee:g.sT(this,a).getPlayerState()};
    g.k.getAppState=function(){return this.appState};
    g.k.nL=function(a){switch(a.type){case "loadedmetadata":this.XL.start();a=g.v(this.cC);for(var b=a.next();!b.done;b=a.next())b=b.value,Shb(this,b.id,b.cfa,b.bfa,void 0,!1);this.cC=[];break;case "loadstart":this.Qb.tv("gv");break;case "progress":case "timeupdate":eK(a.target.Dh())>=2&&this.Qb.tv("l2s");break;case "playing":g.ER&&this.XL.start();if(g.sI(this.X))a=!1;else{b=g.DT(this.zb());a=this.mediaElement.bF("display")==="none"||this.mediaElement.getSize().area()===0;var c=zY(this.template),d=this.ub.getVideoData(),
        e=g.NF(this.X);d=FS(d);b=!c||b||e||d||this.X.rb;a=a&&!b}a&&(this.ub.ma("hidden",{},!0),this.getVideoData().Dc||(this.getVideoData().Dc=1,this.Q_(),this.ub.playVideo()))}};
    g.k.onLoadProgress=function(a,b){this.Ua.Bc("onLoadProgress",b)};
    g.k.oca=function(){this.Ua.publish("playbackstalledatstart")};
    g.k.onVideoProgress=function(a,b){a=I0(this,a);b=R0(this,a.getCurrentTime(),a);this.Ua.Bc("onVideoProgress",b)};
    g.k.onAutoplayBlocked=function(){this.Ua.Bc("onAutoplayBlocked")};
    g.k.Dba=function(){this.Ua.publish("progresssync")};
    g.k.rba=function(){this.Ua.Bc("onPlaybackPauseAtStart")};
    g.k.naa=function(a){if(this.getPresentingPlayerType()===1){g.xF(a,1)&&!g.vF(a.state,64)&&this.Od().isLivePlayback&&this.sb.isAtLiveHead()&&this.Ua.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.xF(a,2)){if(this.Db&&this.Db.endTimeMs>=(this.getDuration()-1)*1E3){Khb(this);return}xhb(this)}if(g.vF(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Og;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Xm("onError",SYa(b.errorCode));this.Ua.Bc("onDetailedError",{errorCode:b.errorCode,
        errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.eP,cpn:b.cpn});(0,g.fC)()-this.X.Tf>6048E5&&this.Ua.Bc("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!HG("pbresume","ad_to_video")&&HG("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.FG(b,"ad_to_video");EG("pbresume",void 0,"ad_to_video");W0a(this.Qd)}this.Ua.publish("applicationplayerstatechange",a)}};
    g.k.n0=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("presentingplayerstatechange",a)};
    g.k.Bk=function(a){G0(this,BK(a.state));g.vF(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(P0(this,{muted:!1,volume:this.Ni.volume},!1),Q0(this,!1))};
    g.k.haa=function(a,b,c){a==="newdata"&&nhb(this);b=c.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
    g.k.cG=function(a,b){this.Ua.Bc("onPlaybackAudioChange",this.Ua.getAudioTrack().hc.name);this.Ua.publish("internalaudioformatchange",this.Ua.getAudioTrack().hc.id,b)};
    g.k.uG=function(a){var b=this.ub.getVideoData();a===b&&this.Ua.Xm("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.X.wc()&&b.ma("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.sb&&(this.X.Aj=c.oauthToken);if(b===this.sb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.UX(this.Ua,this.X,this.sb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.X.wc()&&g.dT(c)){var d,e;b.ma("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.xq.j)==null?void 0:(e=d.getVideoData())==null?
                void 0:e.clientPlaybackNonce)||""})}var f,h;!g.dT(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.xq.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.dT(this.getVideoData())&&this.wb&&(this.X.wc()&&b.ma("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.wb.dispose(),this.wb=null):(E6a(this.xq),d=TX(this.xq,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.xq.enqueue(d,!0),RX(this.xq,0,this.getDuration(1)*
            1E3,[d]),F6a(this.xq,this.getVideoData().clientPlaybackNonce,[d]),this.wb&&(this.wb.dispose(),this.wb=null,this.X.wc()&&b.ma("ssap",{tlmdis:1})),this.X.wc()&&b.ma("ssap",{tlmcreate:1}),this.wb=new h7a(this.Ua,this.xq,this.sb),this.sb.gM(this.wb))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),yV(this.Qd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.ub===this.sb?(yVa(c.Da,c.WV),Chb(this)):Ahb(this));b.getPlayerType()===1&&
        (this.X.Va&&$hb(this),this.getVideoData().isLivePlayback&&!this.X.iq&&this.Dg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((TXa(c)||this.getVideoData().Gv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&Mhb(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Bc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.aM();(d=c.dH)?this.Pr.yX(d,c.clientPlaybackNonce):c8a(this.Pr)};
    g.k.zO=function(){L0(this,null);this.Ua.Bc("onPlaylistUpdate")};
    g.k.Cba=function(a){delete this.KL[a.getId()];this.sb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.La)==null?void 0:(c=b.contents)==null?void 0:(d=c.singleColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets)||((h=a.La)==null?void 0:(l=h.contents)==null?void 0:(m=l.twoColumnWatchNextResults)==null?void 0:(n=m.autoplay)==null?void 0:(p=n.autoplay)==null?void 0:p.sets);if(q)for(b=g.v(q),c=b.next();!c.done;c=b.next())if(c=c.value,
        e=d=void 0,c=c.autoplayVideo||((d=c.autoplayVideoRenderer)==null?void 0:(e=d.autoplayEndpointRenderer)==null?void 0:e.endpoint),d=g.V(c,g.AS),f=e=void 0,c!=null&&((e=d)==null?void 0:e.videoId)===a.videoId&&((f=d)==null?0:f.continuePlayback)){a=c;break a}a=null}(b=g.V(a,g.AS))&&this.Ua.ib("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
    g.k.Hq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(G0(this,-1),G0(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))};
    g.k.Dg=function(a,b,c,d,e){this.sb.Nf(a,b,c,d,e)};
    g.k.Gs=function(a,b){this.sb.handleError(new BJ(a,b))};
    g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.sT(this,a);if(!c)return!1;a=H0(this,c);c=I0(this,c);return a!==c?a.isAtLiveHead(R0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
    g.k.Fr=function(){var a=g.sT(this);return a?H0(this,a).Fr():0};
    g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.sT(this,d))this.appState===2&&N0(this),this.If(d)?S0(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.Yc.seekTo(a,{seekSource:e},b,c):g.dT(this.getVideoData())&&this.wb?this.wb.seekTo(a,{KH:!b,cU:c,jd:"application",seekSource:e}):d.seekTo(a,{KH:!b,cU:c,jd:"application",seekSource:e})};
    g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
    g.k.zB=function(){this.Ua.Bc("SEEK_COMPLETE")};
    g.k.aL=function(){this.Ua.ib("onAbnormalityDetected")};
    g.k.dca=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.vF(a.getPlayerState(),512)||N0(this):this.Ua.Bc("SEEK_TO",b)};
    g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.X.L("html5_external_airplay_events")&&this.Ua.Bc("onAirPlayActiveChange",this.Ua.Zh())};
    g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.X.L("html5_external_airplay_events")&&this.Ua.Bc("onAirPlayAvailabilityChange",this.Ua.pF())};
    g.k.showAirplayPicker=function(){var a;(a=this.ub)==null||a.bv()};
    g.k.vR=function(){this.Ua.publish("beginseeking")};
    g.k.AR=function(){this.Ua.publish("endseeking")};
    g.k.getStoryboardFormat=function(a){return(a=g.sT(this,a))?H0(this,a).getVideoData().getStoryboardFormat():null};
    g.k.jk=function(a){return(a=g.sT(this,a))?H0(this,a).getVideoData().jk():null};
    g.k.If=function(a){a=a||this.ub;var b=!1;if(a){a=a.getVideoData();if(S0(this))a=a===this.xe.ea.getVideoData();else a:if(b=this.Yc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.v(b.B);for(var c=b.next();!c.done;c=b.next())if(a.od===c.value.od){a=!0;break a}a=!1}b=a}return b};
    g.k.SD=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=S0(this),n;(n=g.sT(this))==null||n.ma("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?P6a(this.xe,a,b,c,d,e,f,h):F7a(this.Yc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
        return l};
    g.k.mF=function(a,b,c,d,e,f,h){if(S0(this)){var l=P6a(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.Qu=function(a){var b;(b=this.xe)==null||b.Qu(a)};
    g.k.Ez=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;S0(this)||O7a(this.Yc,a,b)};
    g.k.MH=function(a,b,c){if(S0(this)){var d=this.xe,e=d.Tb.get(a);e?(c===void 0&&(c=e.Wd),e.durationMs=b,e.Wd=c):d.wk("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Yc;e=null;for(var f=g.v(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.od===a){e=h;break}e?(c===void 0&&(c=e.Wd),N7a(d,e,b,c)):nY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
    g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.If();a=new g.pS(this.X,a);d&&(a.od=d);Nhb(this,a,b,c)};
    g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;a=this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d===void 0?"":d,e===void 0?"":e);b=this.Uc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.LM,d=this.Qk.N,c.C!==a&&(c.ub=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=L5a(b,a,this.Qk.N),c!=null?(b.ma("sgap",c),b.getVideoData().Y&&B0(b,!1)):(a=a.getVideoData(),b=this.LM,b.j!==
    a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
    g.k.nJ=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.sT(this);f&&(H0(this,f).X2=!0);b6a(this.Qk,a,b,c,d).then(function(){e.Ua.Bc("onQueuedVideoLoaded")},function(){})};
    g.k.zo=function(){return this.Qk.zo()};
    g.k.wF=function(a){return this.Qk.wF(a)};
    g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.Qk.clearQueue(a,b)};
    g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;if(b===2&&this.Od().enableServerStitchedDai&&this.sb&&!r_(this.sb)){var f;(f=this.sb)==null||f.ma("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.pS(this.X,a);g.DR(this.X)&&!f.Dl&&aV(this.Qb);var l,m=this.Qb,n=(l=f.Sa)!=null?l:"";m.timerName=n;this.Qb.gj("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Qb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
        !this.L("html5_shorts_gapless_always_fallback")){l=e6a(this.Qk,f,b);if(l==null){G0(this,-1);a=this.Qk;a.app.U().L("html5_gapless_new_slr")?Ihb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().AD=!0;var p,q;(p=a.j)==null||(q=p.ya)==null||q.resume();var r;(r=a.j)==null||lY(r.vc());c={jd:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Uc())==null||t.seekTo(d6a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.sT(a.app))==null||u.playVideo(!0)}a.K();return!0}t=
        this.L("html5_shorts_gapless_preload_fallback");u=this.Qk.j;t&&u&&!u.Na()&&(p=u.getVideoData(),p=this.X.L("html5_autonav_autoplay_in_preload_key")?U0(this,b,p):V0(this,b,p.videoId,p.od),this.ey.set(p,u,3600));this.Qk.clearQueue(t);var w;(w=g.sT(this))==null||w.ma("sgap",{f:l})}if(e){for(;f.Sm.length&&f.Sm[0].isExpired();)f.Sm.shift();h=f.Sm.length-1;h=h>0&&e.B(f.Sm[h])&&e.B(f.Sm[h-1]);f.Sm.push(e)}c||(a&&g0a(a)?(yR(this.X)&&!this.wj&&(a.fetch=0),L0(this,a)):this.playlist&&L0(this,null),a&&(this.wj=
        YA(!1,a.external_list)));this.Ua.publish("loadvideo");b=this.Eu(f,b,d);h&&this.Dg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Sm.join()).replace(/[;:,]/g,"_"));return b};
    g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;c=c===void 0?NaN:c;d=d===void 0?"":d;e=e===void 0?"":e;var f="";if(this.X.L("html5_autonav_autoplay_in_preload_key"))f=Phb(this,b,a,e);else{var h=bB(a);f=V0(this,b,h,e)}if(this.ey.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
        a=new g.pS(this.X,a);e&&(a.od=e);return Ohb(this,a,b,c,d)};
    g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Qd;a=a.J.U().showMiniplayerUiWhenMinimized?a.Ge.get("miniplayer"):void 0;a&&(this.isMinimized()?a.load():a.unload());this.Ua.publish("minimized")};
    g.k.setInline=function(a){this.visibility.setInline(a)};
    g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Qd;a=a.J.U().showInlinePreviewUi?a.Ge.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.ib("onInlinePreviewModeChange"))};
    g.k.lC=function(a){var b=this.X.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.X.Rl&&this.X.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.nP&&b?this.nP.start():this.gX():this.visibility.lC(a)};
    g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
    g.k.gX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Ib();b&&iB(b).catch(function(c){return g.kE(c)})};
    g.k.aca=function(){this.mediaElement.Ib();this.mediaElement.Ib().webkitPresentationMode==="picture-in-picture"?this.lC(!0):this.lC(!1)};
    g.k.togglePictureInPicture=function(){var a=g.sT(this);a&&a.togglePictureInPicture()};
    g.k.Eu=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
        HG("_start",this.Qb.timerName)||g.kA(oG)(void 0,this.Qb.timerName);var d=!1,e=Fhb(this,b,a,!1);e?(d=!0,a.dispose()):(e=zhb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&t0(e)&&g.DX(e),this.XL.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),FX(this,e));e===this.sb&&(this.X.Aj=a.oauthToken);if(!t0(e))return!1;if(e===this.sb){this.Hq(1);c=N0(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.wq.j)this.onVideoDataChange("dataloaded",
            e,e.getVideoData());return c}Bgb(e);return!0};
    g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.Od().enableServerStitchedDai&&this.sb&&!r_(this.sb)&&a&&Object.keys(a).length>0){var d;(d=this.sb)==null||d.ma("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&g0a(a))if(this.ox=!0,L0(this,a),(a=g.bV(this.playlist))&&a.ue())X0(this,a,b);else this.playlist.onReady(function(){M0(c)});
    else{b||(b=this.getPresentingPlayerType());b===1&&this.zO();d=new g.pS(this.X,a);var e=g.kR(this.X)&&!this.X.ra&&b===1&&!d.isAd()&&!d.Cc;this.Ua.publish("cuevideo");e?(this.Uc().getVideoData().loading=!0,n0a(d,a?a:{}).then(function(f){X0(c,f,b)}),d.dispose()):X0(this,d,b)}};
    g.k.ip=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(mR(this.X)||g.qI(this.X))return b=b||{},b.lact=zD(),b.vis=this.Ua.getVisibilityState(),this.Ua.ib("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;e0a(this.Qb);this.Qb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
    g.k.cuePlaylist=function(a,b,c,d){this.ox=!0;Qhb(this,a,b,c,d)};
    g.k.loadPlaylist=function(a,b,c,d){this.ox=!1;Qhb(this,a,b,c,d)};
    g.k.JE=function(){return this.Ua.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.vl())};
    g.k.Mt=ba(14);
    g.k.nextVideo=function(a,b){var c=g.BS(this.sb.getVideoData());g.GT(this.Ua)&&c?this.ip(c.videoId,b?c.wE:c.sessionData,c.playlistId,b,void 0,c.UW||void 0):this.wj?this.Ua.Bc("onPlaylistNext"):this.getPresentingPlayerType()===3?BT(this.Qd).nextVideo():!this.playlist||yR(this.X)&&!this.Ua.isFullscreen()||(this.playlist.vl(a)&&j0a(this.playlist,h0a(this.playlist)),this.playlist.loaded?(a=b&&this.X.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Eu(g.bV(this.playlist,void 0,
        b,a),1)):this.ox=!1)};
    g.k.previousVideo=function(a){this.wj?this.Ua.Bc("onPlaylistPrevious"):this.getPresentingPlayerType()===3?BT(this.Qd).HL():!this.playlist||yR(this.X)&&!this.Ua.isFullscreen()||(this.playlist.Up(a)&&j0a(this.playlist,i0a(this.playlist)),this.playlist.loaded?this.Eu(g.bV(this.playlist),1):this.ox=!1)};
    g.k.playVideoAt=function(a){this.wj?this.Ua.Bc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Eu(g.bV(this.playlist,a),1):this.ox=!1,j0a(this.playlist,a))};
    g.k.getPlaylist=function(){return this.playlist};
    g.k.WE=ba(22);g.k.eaa=function(a){this.Ua.Bc("onCueRangeEnter",a.getId())};
    g.k.faa=function(a){this.Ua.Bc("onCueRangeExit",a.getId())};
    g.k.vz=function(a,b,c){var d=g.sT(this,b);if(d){var e=this.Od();if(g.dT(e)){if(this.wb)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.wb.wl()&&(this.sb.ma("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.sb.getVideoData().clientPlaybackNonce}),d=this.sb),b===1)for(var f=gY(this.wb,e.clientPlaybackNonce),h=g.v(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Cl=f,l.C=e.clientPlaybackNonce;
    else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.v(a),f=e.next();!f.done;f=e.next())f.value.C=this.wb.jl();e=g.v(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.vz(a,c);b&&this.getPresentingPlayerType()!==b||F0(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.sb.ma("ssap",{acrlpnf:this.sb.getVideoData().clientPlaybackNonce})};
    g.k.PG=function(a,b){var c=g.sT(this,b);c&&(c.PG(a),b&&this.getPresentingPlayerType()!==b||F0(this,"cuerangesremoved",a))};
    g.k.Ny=function(a){var b=this.Uc()||this.sb,c=b.Bh;if(c){var d=this.getPresentingPlayerType();if(this.X.wc()){var e=c.bK("ad");b.ma("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.Ny(d,a):c.Ny(d)}return 0};
    g.k.maa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.gE(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.X.L("web_player_attach_player_response_ve"),h=b.X.L("web_playback_associated_ve");if(b.X.L("il_via_jspb")){d=new Gz;var l=b.getVideoData().clientPlaybackNonce;l=S(d,1,l);S(l,3,e);b.getVideoData().Ca&&(f||h)&&(f=g.eE(b.getVideoData().Ca),g.xE(e,f),h&&(e=f.getAsJspb(),ik(d,iz,2,e)));if(b.getVideoData().queueInfo){e=b.getVideoData().queueInfo;h=new Fz;if(e==null?0:e.enqueueingVe)(e==
    null?0:e.enqueueingVe.trackingParams)?(f=g.eE(e.enqueueingVe.trackingParams),f=f.getAsJspb(),ik(h,iz,1,f)):g.kE(new g.CB("Cannot map enqueueingVe from a client VE "));(e==null?0:e.enqueueingCsn)&&S(h,2,e.enqueueingCsn);(e==null?0:e.clientEnqueueingTimeMs)&&Xk(h,3,Number(e.clientEnqueueingTimeMs));ik(d,Fz,4,h)}e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});exa(d,e)}else d={cpn:b.getVideoData().clientPlaybackNonce,
        csn:e},b.getVideoData().Ca&&(f||h)&&(f=g.eE(b.getVideoData().Ca),g.xE(e,f),h&&(d.playbackVe=f.getAsJson())),b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo),e={},b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.SB("playbackAssociated",d,e)}else g.kE(new g.CB("CSN Missing or undefined during playback association"))}
        var b=this;this.getPresentingPlayerType();c0a(this.Qb,this.ub.getVideoData(),Uhb(this));K0(this)&&this.X.D&&YS(this.Od())==="embedded"&&this.YZ&&Math.random()<.01&&g.SB("autoplayTriggered",{intentional:this.rZ});this.YZ=!1;W0a(this.Qd);this.L("web_player_defer_ad")&&Bhb(this);this.Ua.Bc("onPlaybackStartExternal");(this.X.L("mweb_client_log_screen_associated"),vR(this.X))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
            20;GG("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.BR(this.X)||g.RQ(this.X)==="MWEB"?g.LB(g.NB(),function(){O0(b)}):O0(this);
        this.aM();Jhb(this)};
    g.k.iG=function(){this.Ua.publish("internalAbandon");T0(this)};
    g.k.onApiChange=function(){this.X.N&&this.ub?this.Ua.Xm("onApiChange",this.ub.getPlayerType()):this.Ua.Xm("onApiChange")};
    g.k.cba=function(){var a=this.mediaElement;a={volume:g.ze(Math.floor(a.getVolume()*100),0,100),muted:a.IJ()};a.muted||Q0(this,!1);this.Ni=g.jd(a);this.Ua.Bc("onVolumeChange",a)};
    g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.mR)&&(this.mR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.mR}),this.Ua.Bc("onMutedAutoplayStarts"))};
    g.k.onFullscreenChange=function(){var a=Whb(this);this.dn(a?1:0);Yhb(this,!!a)};
    g.k.dn=function(a){var b=!!a,c=!!this.hA()!==b;this.visibility.dn(a);this.template.dn(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&Whb(this)===this.mediaElement.Ib()&&this.mediaElement.yE();this.template.resize();c&&this.Qb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Od(),b={fullscreen:b,videoId:a.JN||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Bc("onFullscreenChange",b))};
    g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
    g.k.hA=function(){return this.visibility.hA()};
    g.k.Qba=function(){this.ub&&(this.hA()!==0&&this.hA()!==1||this.dn(Whb(this)?1:0),this.X.Rl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.yE())};
    g.k.Uaa=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("liveviewshift",a)};
    g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
        var b=g.sT(this,a);b&&(this.appState===2?(g.DR(this.X)&&aV(this.Qb),N0(this)):g.vF(b.getPlayerState(),2)?(b=36,this.getVideoData().nk()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())};
    g.k.pauseVideo=function(a,b){(a=g.sT(this,a))&&a.pauseVideo(b)};
    g.k.stopVideo=function(a){a=a===void 0?!1:a;this.logger.debug(function(){return"stop video"});
        var b=this.sb.getVideoData(),c=new g.pS(this.X,{video_id:b.JN||b.videoId,oauth_token:b.oauthToken});c.Z=g.jd(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.pW=!0);this.cancelPlayback(6);X0(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.sT(this,b);d?b===2&&d.getPlayerType()===1&&(iYa(this.Od())||g.dT(this.getVideoData()))?d.ma("canclpb",{r:"no_adpb_ssdai"}):(this.X.wc()&&d.ma("canclpb",{r:a}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.ub&&(this.logger.debug("cancel playback, destroy modules"),yV(this.Qd,a)),b===1&&(d.stopVideo(),T0(this)),d.Ro(void 0,a!==6),F0(this,"cuerangesremoved",d.il()),d.Bh.reset(),this.Qk&&d.isGapless()&&
        (d.Lj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
    g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.sT(this,b))&&HVa(this.X,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
    g.k.Gi=function(a){var b=g.sT(this);return b&&HVa(this.X,a)?b.Gi(a):null};
    g.k.updatePlaylist=function(){!yR(this.X)&&g.kR(this.X)&&Dhb(this);this.Ua.Bc("onPlaylistUpdate")};
    g.k.setSizeStyle=function(a,b){this.S1=a;this.L("web_log_theater_mode_visibility")?this.qC(b):this.KQ=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()};
    g.k.qC=function(a){this.visibility.qC(a)};
    g.k.qk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.qk():this.KQ};
    g.k.isMinimized=function(){return this.visibility.isMinimized()};
    g.k.isInline=function(){return this.visibility.isInline()};
    g.k.ju=function(){return this.visibility.ju()};
    g.k.IA=function(){return this.visibility.IA()};
    g.k.PA=function(){return this.visibility.PA()};
    g.k.JQ=function(){return this.S1};
    g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return BT(this.Qd).getAdState();if(!this.If()){var a=zV(this.zb());if(a)return a.getAdState()}return-1};
    g.k.Pba=function(a){var b=this.template.getVideoContentRect();Hs(this.LZ,b)||(this.LZ=b,this.ub&&y0(this.ub),this.sb&&this.sb!==this.ub&&y0(this.sb),this.hA()===1&&this.xG&&Yhb(this,!0));this.RQ&&g.Le(this.RQ,a)||(this.Ua.publish("appresize",a),this.RQ=a)};
    g.k.ai=function(){return this.Ua.ai()};
    g.k.jca=function(){this.getPresentingPlayerType()===2&&this.Yc.isManifestless()?M7a(this.Yc):(this.xe&&(U6a(this.xe),T0(this)),whb(this,"signature"))};
    g.k.Q_=function(){this.Lj();E0(this)};
    g.k.kba=function(a){a.errorCode==="manifest.net.badstatus"&&a.details.rc===(this.X.experiments.fb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.ib("onPlayerRequestAuthFailed")};
    g.k.fG=function(){this.Ua.Bc("CONNECTION_ISSUE")};
    g.k.hG=function(a){this.Ua.publish("heartbeatparams",a)};
    g.k.UL=function(a){this.Ua.ib("onAutonavChangeRequest",a!==1)};
    g.k.Ke=function(){return this.mediaElement};
    g.k.setBlackout=function(a){this.X.rb!==a&&(this.X.rb=a,this.ub&&(this.ub.fp(),this.X.Va&&$hb(this),this.ub.Qo(a)))};
    g.k.mba=function(){var a=g.sT(this);if(a){var b=!this.Ua.tF();(a.RY=b)||a.zx.stop();a.videoData.j&&(b?a.videoData.j.resume():mUa(a.videoData.j));a.ya&&(b?a.ya.resume():A0(a,!0));g.vF(a.playerState,2)||b?g.vF(a.playerState,512)&&b&&a.Gc(zK(a.playerState,512)):a.Gc(yK(a.playerState,512));a=a.vc();a.qoe&&(a=a.qoe,g.K_(a,g.uM(a.provider),"stream",[b?"A":"I"]))}};
    g.k.onLoadedMetadata=function(){this.Ua.Bc("onLoadedMetadata")};
    g.k.onDrmOutputRestricted=function(){this.Ua.Bc("onDrmOutputRestricted")};
    g.k.cB=function(){this.rZ=!0};
    g.k.xa=function(){this.Qd.dispose();this.u8.dispose();this.Yc.dispose();this.xe&&this.xe.dispose();this.xq.removeAll();this.xq.dispose();this.wb&&this.wb.dispose();this.sb.dispose();this.Lj();g.vb(g.ad(this.Ss),this.playlist);g.I.prototype.xa.call(this)};
    g.k.L=function(a){return this.X.L(a)};
    g.k.setScreenLayer=function(a){this.screenLayer=a};
    g.k.getInternalApi=function(){return this.Ua.getInternalApi()};
    g.k.createSubtitlesModuleIfNeeded=function(){return this.Qd.createSubtitlesModuleIfNeeded()};
    g.k.isOrchestrationLeader=function(){var a=BV(this.Qd);return a?a.isOrchestrationLeader():!1};
    g.k.getVideoUrl=function(a,b,c,d,e){if(this.Db&&this.Db.postId)return a=this.X.getVideoUrl(a),a=zo(a,"v"),a.replace("/watch","/clip/"+this.Db.postId);var f=this.Ua.hd()||this.X.Ma==="shortspage",h=g.hT(this.getVideoData());return this.X.getVideoUrl(a,b,c,d,e,f,h)};
    g.k.mu=function(){return this.Qk.mu()};
    g.k.Tm=function(a){this.Ua.publish("spsumpstatuschange",a)};
    g.k.YR=function(a,b){this.Ua.publish("spsumpreject",a,b)};
    g.k.ZF=function(){try{for(var a=g.v(Object.values(this.Ss)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Na()||c.ZF()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.v(R7a(this.ey)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Na()||f.ZF()}this.sb.ZF()}catch(h){g.kE(h)}};
    g.k.DT=function(){return this.xe?this.xe.DT():!1};
    var A3={};var nib=/[&\?]action_proxy=1/,mib=/[&\?]token=([\w-]*)/,oib=/[&\?]video_id=([\w-]*)/,pib=/[&\?]index=([\d-]*)/,qib=/[&\?]m_pos_ms=([\d-]*)/,sib=/[&\?]vvt=([\w-]*)/,eib="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(" "),rib="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(" "),hib={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"},iib={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},kib={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};$0.prototype.ZA=function(a){this.player.Fi().tick(a)};
    $0.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=this.j===1;d&&this.ZA("a_bid_s");var e=cib();if(e!==null)return d&&this.ZA("a_bid_f"),this.B(a,b,e);e=dib();d&&lg(e,function(){c.ZA("a_bid_f")});
        return e.then(function(f){return c.B(a,b,f)})};
    $0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.Dw;var f=e.Zd;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Bj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Ch:0,AUTONAV_STATE:Z0(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Fr()*1E3,LACT:zD(),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().Xh().height,P_W:this.player.ob().Xh().width,YT_REMOTE:e?e.join(","):""},n=Qqa(Pqa);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())});
        c!==""&&(m.BISCOTTI_ID=c);c={};uA(a)&&(c.sts="19898",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=rA(g.av(a,m),c);return p.split("?").length!==2?ig(Error("Invalid AdBreakInfo URL")):g.JR(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&tA()){var r=HT();IT(r,q)}q=d.player.Dm(r);r=tib(d,p,m,l.isMdxPlayback,h);return g.LG(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
    $0.prototype.reset=function(){this.C=this.j=1};g.x(uib,$0);
    uib.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.Dw;var e=b.Zd;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:vib(this,a,{Dw:d,Zd:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.kE(Error("Invalid AdBreakInfo URL")),ig(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=mib.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=nib.test(h);e=oib.exec(h);e=e!=null&&e.length>=
    2?e[1]:"";var n=pib.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=qib.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=uR(this.player.U().Fa),r=g.UF(this.player.getVideoData(1).Ca,!0);gib(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(zD()),playerHeightPixels:Math.trunc(this.player.ob().Xh().height),playerWidthPixels:Math.trunc(this.player.ob().Xh().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19898,autonavState:Z0(this.player.U())};
        if(l){l={};var t=this.player.U().Bj;jib(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=rib.includes(q)?void 0:g.OA("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,w=t.length;u<w;u++){var A=t[u].split("=");if((A[0].toUpperCase()==="SML"||A[0].toUpperCase()==="GSML")&&A.length>1&&A[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=lib(l)}h=sib.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};
        m=oYa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=f!==void 0?Math.round(f).toString():void 0;t=(d==null?0:d.context)?d.context:void 0;d=(d=Math.trunc((d?d.Ch:0)*1E3))?String(d):void 0;u=this.player.Fr()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d,
            driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:m?m:void 0};return wib(this,b)};var uqb={m6a:"replaceUrlMacros",r0a:"onAboutThisAdPopupClosed",sFa:"executeCommand"};xib.prototype.Er=function(){return"adPingingEndpoint"};
    xib.prototype.Vt=function(a,b,c){bjb(this.Oa.get(),a,b,c)};yib.prototype.Er=function(){return"changeEngagementPanelVisibilityAction"};
    yib.prototype.Vt=function(a){this.J.ib("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};zib.prototype.Er=function(){return"loggingUrls"};
    zib.prototype.Vt=function(a,b,c){a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,bjb(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.x(Bib,g.I);g.x(b1,g.I);g.k=b1.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.Ak=function(a,b,c,d,e,f,h,l){if(a==="")tF("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().Ak(a,b,c,d,e,f,h,l);this.Ra.get().Ak(a,b,c,d,e,f,h,l);var m;(m=this.Bf)==null||m.get().Ak(a,b,c,d,e,f,h,l);this.B.Ak(a,b,c,d,e,f,h,l);m=g.v(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Ak(a,b,c,d,e,f,h,l)}};
    g.k.iG=function(){this.j&&this.Go(this.j)};
    g.k.Go=function(a){this.j=void 0;for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Go(a)};c1.prototype.AI=function(a,b,c,d,e){Cib(this);this.G=!b&&c===0;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.G);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.C=a;d<=0?(Cib(this),this.G=!b&&c===0):(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",this.actionType!=="unknown_type"&&
    (this.D=!0,HG("_start",this.actionType)&&Eib(this)))};
    c1.prototype.reset=function(){return new c1(this.J)};g.x(e1,g.I);e1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=f===void 0?3:f;h=h===void 0?1:h;this.j.has(a)?tF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Gib(a,b,c,d,f),this.j.set(a.id,{Zd:a,listener:e,Zo:h}),this.J.lf([a],h))};
    e1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.So([b.Zd],b.Zo),this.j.delete(b.Zd.id)):tF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
    e1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
    e1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
    g.x(Gib,g.NI);f1.prototype.IG=function(a){this.J.IG(a)};
    f1.prototype.Tu=function(a){var b=g.Ja.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.Xm.apply(this.J,[a].concat(g.ra(b))):this.J.ib.apply(this.J,[a].concat(g.ra(b)))};g1.prototype.gf=function(a){return a&&h1(this)};
    g1.prototype.vT=function(){return this.J.U().experiments.fb("h5_enable_generic_error_logging_event")};
    g1.prototype.yT=function(){return this.J.U().experiments.fb("enable_ips_gating")};var Oib=null;g.x(Nib,g.DE);Nib.prototype.zP=function(a){return this.j.hasOwnProperty(a)?this.j[a].zP():{}};
    g.Va("ytads.bulleit.getVideoMetadata",function(a){return j1().zP(a)});
    g.Va("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=j1();c=Mib(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=k1.prototype;
    g.k.Ph=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=ds($u).SJ(a,{});c?bu(c):b&&(a=ds($u).OG(null,ws(),!1,a),a.xk=3,Pja([a]));return{}}b=Qib(b);if(b===null)return{};var d=this.J.Uc();d=d&&ugb(d);if(!d)return{};var e=this.J.getPresentingPlayerType(!0);if((c=this.J.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ha.get().isFullscreen()};return Ska(b,a,c)};
    g.k.Mx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Mx()};
    g.k.Lx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Lx()};
    g.k.Nx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Nx()};
    g.k.Jx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Jx()};
    g.k.Kx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Kx()};Xib.prototype.send=function(a,b,c,d){try{Yib(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.x(Zib,Xib);$ib.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.lq(a),h;if(h=!this.Aa.get().J.U().experiments.fb("replace_client_url_parsing_with_server_signal"))h=f.C.get("ase")==="2";if(h||d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=fva(a);d=e;var l=a.match(xn);if(l[1]==="https")var m=a;else l[1]="https",m=vn("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Wka(m);l=[];var p=Nqa(m)&&this.Aa.get().J.U().experiments.fb("add_auth_headers_to_remarketing_google_dot_com_ping");
        if(uA(m)||p)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(q){}};p1.prototype.Gi=function(){var a=this.J.Uc();return a&&(a=a.Gi(1))?a:null};g.x(q1,g.I);g.k=q1.prototype;g.k.gg=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.Ak=function(){this.TN.clear();this.UQ=null;this.Ls.get().clear()};
    g.k.Go=function(){};
    g.k.ge=function(a){var b=this.J.getVideoData(a);return b?this.BI(b,a||this.J.getPresentingPlayerType(!0)):null};
    g.k.Bca=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&uJ(this,"ads_ssm_vdc_s",{pt:c,dvt:a});tM(this.Aa.get())&&a!=="dataloaded"||ijb(this,b,c);if(h1(this.Aa.get())&&a==="newdata"&&e!==void 0){a=this.gg();var f=b.clientPlaybackNonce,h={};xJ(this,"rte",(h.ec=f,h.xc=d==null?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=wJ(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=jjb(e);if(e!==1)if(d!==void 0)for(c=g.v(this.listeners),a=c.next();!a.done;a=c.next())a.value.Px(d,
        b,e);else tF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.v(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.Ox(b)}};
    g.k.eca=function(a,b){a!==void 0&&(this.UQ=a,b===void 0?tF("Expected ad video start time on SS video changed"):this.TN.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).ma("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?ijb(this,d,c):tF("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
    g.k.BI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.od,h=a.title,l=a.bj,m=a.Kj,n=a.isMdxPlayback,p=a.un,q=a.mdxEnvironment,r=a.isAutonav,t=a.Gq,u=a.Dl,w=a.Ep,A=a.videoId||"",C=a.profilePicture||"",E=a.Ol||"",H=a.nk()||!1,L=a.Mm()||!1;a=a.Aw||void 0;f=this.Ls.get().j.get(f)||{layoutId:null,slotId:null};var N=this.J.getVideoData(1),Q=N.dc();N=N.getPlayerResponse();b=1E3*this.J.getDuration(b);var da=1E3*this.J.getDuration(1),na,qa,ha=(N==null?void 0:(na=N.playerConfig)==null?
        void 0:(qa=na.daiConfig)==null?void 0:qa.enableDai)||!1,ta,P;na=(N==null?void 0:(ta=N.playerConfig)==null?void 0:(P=ta.daiConfig)==null?void 0:P.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Rca:b,Jp:da,daiEnabled:ha,CX:na,isListed:e,dc:Q,profilePicture:C,title:h,Ol:E,bj:l,Kj:m,Aw:a,isMdxPlayback:n,un:p,mdxEnvironment:q,isAutonav:r,Gq:t,Dl:u,Ep:w,nk:H,Mm:L})};
    g.k.xa=function(){this.listeners.length=0;this.Ew=null;g.I.prototype.xa.call(this)};g.x(r1,g.I);g.k=r1.prototype;g.k.Ak=function(){var a=this;h1(this.Aa.get())||(this.j=Pd(function(){a.J.Na()||a.J.Eg("ad",1)}))};
    g.k.Go=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.yR=function(){};
    g.k.playVideo=function(){this.J.playVideo()};
    g.k.pauseVideo=function(){this.J.pauseVideo()};
    g.k.resumeVideo=function(a){this.Ao(a)&&this.J.playVideo()};
    g.k.Ao=function(a){return this.J.getPlayerState(a)===2};
    g.k.getCurrentTimeSec=function(a,b,c){var d=this.Ra.get().UQ;if(a===2&&!b&&d!==null)return ljb(this,d);oM(this.Aa.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)};
    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.nC=function(a){this.J.nC(a)};
    g.k.Eba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.v(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ki(b)}else if(a===1)for(a=g.v(this.fE),c=a.next();!c.done;c=a.next())c.value.yR(b)};
    g.k.vba=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.cg(a,this.getPresentingPlayerType())};
    g.k.onFullscreenToggled=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
    g.k.onVolumeChange=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
    g.k.nh=function(){for(var a=this.J.isMinimized(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.nh(a)};
    g.k.Fj=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Fj(a)};
    g.k.kc=function(){for(var a=this.J.ob().Xh(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Yi(a)};
    g.k.Ej=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ej(a)};
    g.k.Hj=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.Hj()};g.x(ojb,g.I);g.x(w1,g.I);w1.prototype.xa=function(){this.Do.Na()||this.Do.get().removeListener(this);g.I.prototype.xa.call(this)};x1.prototype.fetch=function(a){var b=a.AX;return this.j.fetch(a.f3,{Dw:a.Dw===void 0?void 0:a.Dw,Zd:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return pjb(c,b)})};g.x(y1,g.I);g.k=y1.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.lM=function(a){qjb(this,a,1)};
    g.k.onAdUxClicked=function(a,b){z1(this,function(c){c.hg(a,b)})};
    g.k.tR=function(a){z1(this,function(b){b.XP(a)})};
    g.k.sR=function(a){z1(this,function(b){b.WP(a)})};
    g.k.baa=function(a){z1(this,function(b){b.WJ(a)})};A1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={hE:null,NZ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.NZ))if(b.NZ=c,b.hE){if(c<b.hE.end){a:{c=b.hE;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Ch;a=c.end<=a?null:a}if(a!==null)for(b.hE.end=a,b=this.B,g.Xb(b.C.j,a*1E3),b=g.v(b.listeners),c=b.next();!c.done;c=b.next())c.value.K_(a)}}else if(a=rjb(a,this.C))c=a.Z9,b.hE=
        a.N7,tjb(this.B,c)};
    A1.prototype.updateTime=function(){};g.x(B1,g.I);g.k=B1.prototype;
    g.k.Ak=function(){this.G=new A1(this,Jib(this.Aa.get()));this.C=new sjb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;((c=this.j)==null?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(this.j!=null&&this.j.unsubscribe("cuepointupdated",this.zR,this),b.subscribe("cuepointupdated",this.zR,this),this.j=b)}this.zM.length=0;var d;b=((d=a.j)==null?void 0:dUa(d,0))||[];d=g.v(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Nu(b)&&tF("Unexpected a GetAdBreak to go out without player waiting",
        void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
    g.k.Go=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.Nu=function(a){vjb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
    g.k.zR=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.qI(this.J.U())){a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,vjb(this,c),b?this.G.reduce(c):this.J.getCurrentTime(1)!==0&&c.event==="start"&&(this.Aa.get().J.U().experiments.fb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.B==null?0:c.startSecs+c.Ch>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Ch)?tF("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,tjb(this,
        c)))}};
    g.k.xa=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.zR,this),this.j=null);this.listeners.length=0;this.zM.length=0;g.I.prototype.xa.call(this)};C1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=E1.prototype;g.k.SD=function(a,b,c,d,e,f,h){return this.J.SD(a,b,c,d,e,f,h)};
    g.k.Ez=function(a,b){this.J.Ez(a,b)};
    g.k.MH=function(a,b,c){this.J.MH(a,b,c)};
    g.k.Qu=function(a){this.J.Qu(a)};
    g.k.mF=function(a,b,c,d,e,f,h){this.J.mF(a,b,c,d,e,f,h)};
    g.k.Is=function(a){return this.J.Is(a)};
    g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.x(yjb,g.I);g.x(zjb,g.I);g.x(Ajb,g.I);g.x(Bjb,g.I);g.x(Cjb,g.I);g.x(Ejb,g.I);Ejb.prototype.C=function(){return this.B};g.x(Fjb,gF);
    Fjb.prototype.D=function(a){var b=a.content;if(b.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
        this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",b.addAction);this.j.ib("changeEngagementPanelVisibility",
        b.expandAction);break;case 3:this.j.ib("changeEngagementPanelVisibility",b.hideAction),this.j.ib("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",{action:pE(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.ib("changeEngagementPanelVisibility",pE(c.expandAction));break;case 3:this.j.ib("changeEngagementPanelVisibility",
        pE(c.hideAction)),this.j.ib("updateEngagementPanelAction",{action:pE(c.removeAction)})}}};g.x(Gjb,lF);g.k=Gjb.prototype;
    g.k.init=function(a,b,c){lF.prototype.init.call(this,a,b,c);g.Js(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(){nF(this);lF.prototype.hide.call(this)};
    g.k.show=function(){mF(this);lF.prototype.show.call(this)};
    g.k.zq=function(){this.hide()};
    g.k.Oo=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Js(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.x(Hjb,ME);g.k=Hjb.prototype;
    g.k.init=function(a,b,c){ME.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.$L))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.jE(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var e=b.image.thumbnail.thumbnails;e!=null&&
    e.length>0&&g.ec(g.bf(e[0].url))&&(e[0].url=d.profilePicture,g.ec(g.bf(d.profilePicture))&&vUa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.ec(g.bf(e[0].url))&&(e[0].url=d.gh());e=b.headline;e!=null&&g.ec(g.bf(e.text))&&(e.text=d.author)}this.Y.init(BE("ad-image"),b.image,c);this.G.init(BE("ad-text"),b.headline,c);this.C.init(BE("ad-text"),b.description,c);this.La.init(BE("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
        "ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");
        this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Za.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Af.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),
            this.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ea.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,d);g.M(this,this.actionButton);this.actionButton.Ja(this.gb);this.actionButton.init(BE("button"),g.V(b.actionButton,g.$L),c);xv(this.actionButton.element);d=sla(this.actionButton.element);yv(this.actionButton.element,
            d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.fP,this);this.D.T(this.Va,"click",this.fP,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.fP,this);this.j=this.zT?new DF(this.api,a):new EF(a);g.M(this,this.j);if(b.skipButton){if((a=g.V(b.skipButton,Lmb))&&this.j&&(this.skipButton=new yF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,this.iM),
            g.M(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(BE("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.V(c,Kmb))a=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),a.Ja(this.Ea),a.init(BE("simple-ad-badge"),c,this.macros),g.M(this,a);if(c=b.adInfoRenderer)if(c=g.V(c,YL))a=new jF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),a.Ja(this.Ea),a.init(BE("ad-info-hover-text-button"),
            c,this.macros),g.M(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.V(b.nonskippableOverlayRenderer,ZL))&&this.j&&(this.B=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j,!1),g.M(this,this.B),this.B.Ja(this.element),this.B.init(BE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.V(b,Mmb)&&this.j&&(c=new Gjb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j),g.M(this,c),c.Ja(this.element),c.init(BE("timed-pie-countdown"),g.V(b,Mmb),
            this.macros)));this.show();this.element.focus()}else g.jE(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.jE(Error("AdActionInterstitialRenderer has no button."));else g.jE(Error("AdActionInterstitialRenderer has no background AdImage."));else g.jE(Error("AdActionInterstitialRenderer has no description AdText."));else g.jE(Error("AdActionInterstitialRenderer has no headline AdText."));else g.jE(Error("AdActionInterstitialRenderer has no image."))};
    g.k.clear=function(){g.rB(this.D);this.hide()};
    g.k.show=function(){Ijb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();ME.prototype.show.call(this)};
    g.k.hide=function(){Ijb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();ME.prototype.hide.call(this)};
    g.k.fP=function(){this.navigationEndpoint&&(this.layoutId?this.kb.executeCommand(this.navigationEndpoint,this.layoutId):g.jE(Error("Missing layoutId for ad action interstitial.")))};var Njb={iconType:"CLOSE"},I1=new g.Ke(320,63);g.x(Mjb,ME);g.k=Mjb.prototype;
    g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Kb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.V(a,Hmb)?(this.G=g.tf("ytp-ad-overlay-ad-info-button-container",this.C.element),Ojb(this,b),a=Qjb(this,g.V(a,Hmb))):g.V(a,Imb)?(this.G=g.tf("ytp-ad-overlay-ad-info-button-container",this.B.element),Ojb(this,b),a=Rjb(this,g.V(a,Imb))):g.V(a,Jmb)?(this.G=
        g.tf("ytp-ad-overlay-ad-info-button-container",this.j.element),Ojb(this,b),a=Sjb(this,g.V(a,Jmb))):(g.jE(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Tjb(this,!0))};
    g.k.clear=function(){Tjb(this,!1);this.La.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()};
    g.k.sca=function(){this.Za&&(this.layoutId?this.kb.executeCommand(this.Za,this.layoutId):g.jE(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
    g.k.VM=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.jE(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
    g.k.Z$=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo()};
    g.k.SR=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.SR("invideo-overlay")};
    g.k.aaa=function(a){a.target===this.G&&g.tf("ytp-ad-button",this.gb.element).click()};g.x(Ujb,lF);g.k=Ujb.prototype;g.k.init=function(a,b,c){lF.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=a==null||a===0?0:a+this.j.getProgressState().current*1E3;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(BE("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()};
    g.k.clear=function(){this.hide()};
    g.k.hide=function(){Vjb(this,!1);lF.prototype.hide.call(this);this.B.hide();this.messageText.hide();nF(this)};
    g.k.show=function(){Vjb(this,!0);lF.prototype.show.call(this);mF(this);this.B.show();this.messageText.show()};
    g.k.zq=function(){this.hide()};
    g.k.Oo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.ra&&a>=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&&(jza(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.x(Wjb,ME);g.k=Wjb.prototype;
    g.k.init=function(a,b,c){ME.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.V(b.actionButton,g.$L)?(this.C.init(BE("ad-image"),b.image,c),this.B.init(BE("ad-text"),b.headline,c),this.D.init(BE("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 XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,
        a),b.backgroundColor&&g.Js(this.element,"background-color",g.OF(b.backgroundColor)),g.M(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(BE("button"),g.V(b.actionButton,g.$L),c),b=g.hI(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Jv(c,"ytp-ad-underlay-left-container"),g.Hv(c,"ytp-ad-underlay-right-container"),g.Js(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.Jv(c,"ytp-ad-underlay-right-container"),
        g.Hv(c,"ytp-ad-underlay-left-container")),g.Js(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.vF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.MU.bind(this)),this.api.addEventListener("resize",this.PY.bind(this))):g.jE(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.jE(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.jE(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.jE(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
    g.k.show=function(){Xjb(!0);this.actionButton&&this.actionButton.show();ME.prototype.show.call(this)};
    g.k.hide=function(){Xjb(!1);this.actionButton&&this.actionButton.hide();ME.prototype.hide.call(this)};
    g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.MU.bind(this));this.api.removeEventListener("resize",this.PY.bind(this));this.hide()};
    g.k.onClick=function(a){ME.prototype.onClick.call(this,a);this.actionButton&&g.Jf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
    g.k.MU=function(a){a==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
    g.k.PY=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
        g.Js(this.B.element,"font-size",a.width/40+"px")};g.x(J1,ME);
    J1.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.V(b.answer,g.$L)?(a=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(BE("ytp-ad-survey-answer-button"),g.V(b.answer,g.$L),c),a.show()):b.answer&&g.V(b.answer,y2)&&(this.j=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,
        ["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.M(this,this.j),this.j.init(BE("survey-answer-button"),g.V(b.answer,y2),c));this.show()};
    J1.prototype.eH=function(a){this.layoutId?DI(this.kb,a,this.layoutId,this.macros):g.jE(new g.CB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
    J1.prototype.onClick=function(a){ME.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
    J1.prototype.clear=function(){this.hide()};g.x(Yjb,ME);Yjb.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);b.answer&&g.V(b.answer,y2)&&(this.button=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(BE("survey-none-of-the-above-button"),g.V(b.answer,y2),c));this.show()};g.x(K1,XE);K1.prototype.init=function(a,b,c){XE.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.OE(b.text),a=!g.ec(b));a||g.kE(Error("No submit text was present in the renderer."))};
    K1.prototype.onClick=function(a){this.publish("l");XE.prototype.onClick.call(this,a)};g.x(L1,ME);
    L1.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.V(a,eL)?(a=g.V(a,eL),c=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!0),c.Ja(this.skipOrPreview),c.init(BE("skip-button"),a,this.macros),g.M(this,c),this.j=c):g.V(a,ZL)&&(a=g.V(a,ZL),c=new qF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,!1),c.Ja(this.skipOrPreview),c.init(BE("ad-preview"),a,this.macros),kza(c),g.M(this,c),this.j=c);this.j==
    null&&g.jE(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.V(a,g.$L)&&(a=g.V(a,g.$L),c=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.submitButton),c.init(BE("survey-submit"),a,this.macros),g.M(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.V(a,Kmb),c=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),c.Ja(this.C),c.init(BE("simple-ad-badge"),a,this.macros),
        g.M(this,c);if(a=b.adDurationRemaining)a=g.V(a,Dmb),c=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.D,void 0),c.Ja(this.C),c.init(BE("ad-duration-remaining"),a,this.macros),g.M(this,c);(b=b.adInfoRenderer)&&g.V(b,YL)&&(a=new jF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.M(this,a),a.Ja(this.C),a.init(BE("ad-info-hover-text-button"),g.V(b,YL),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified");
        this.show()};
    L1.prototype.clear=function(){this.hide()};g.x(M1,ME);M1.prototype.init=function(a,b,c){ME.prototype.init.call(this,a,b,c);ckb(this)};
    M1.prototype.show=function(){this.C=g.kb();ME.prototype.show.call(this)};
    M1.prototype.Y0=function(){};g.x(dkb,M1);g.k=dkb.prototype;g.k.init=function(a,b,c){var d=this;M1.prototype.init.call(this,a,b,c);b.questionText&&Zjb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,t2)&&$jb(d,g.V(e,t2),c,f)});
        this.G=new Set(this.B.map(function(e){return e.j.j}));
        (a=b.noneOfTheAbove)&&(a=g.V(a,Gmb))&&ekb(this,a,c);b.surveyAdQuestionCommon&&bkb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
    g.k.Y0=function(){fkb(this,!1);this.D.B.subscribe("l",this.qca,this)};
    g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?gkb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),fkb(this,!0))};
    g.k.qca=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
        e=g.kd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=xo(f.baseUrl,b));return f});
        return e});
        if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?DI(this.kb,d,this.layoutId,this.macros):g.jE(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)};
    g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(N1,M1);N1.prototype.init=function(a,b,c){var d=this;M1.prototype.init.call(this,a,b,c);b.questionText&&Zjb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,t2)&&$jb(d,g.V(e,t2),c,f)});
        b.surveyAdQuestionCommon?bkb(this,b.surveyAdQuestionCommon):g.jE(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
    N1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(O1,ME);O1.prototype.init=function(a,b,c){var d=this;ME.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=b.conditioningRules)!=null?e:[];var f;this.B=(f=b.questions)!=null?f:[];var h;((h=b.questions)==null?0:h.length)&&kkb(this,0)}else(b.questions||[]).forEach(function(l){g.V(l,XL)?ikb(d,g.V(l,XL),c):g.V(l,WL)&&jkb(d,g.V(l,WL),c)});
        this.show()};
    O1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
    O1.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var d;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===b.j})==null)g.jE(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
    else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if((f=e.answerIndices)==null?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
        break;case "CONDITION_ANY_OF":var h;if((h=e.answerIndices)==null?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
        break;default:g.jE(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)kkb(this,d);
    else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.jE(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var lkb=pa(['background-image:url("','");']);g.x(P1,ME);
    P1.prototype.init=function(a,b,c){var d=this;ME.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.jE(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.$L))if(b.brandImage)if(b.backgroundImage&&g.V(b.backgroundImage,aM)&&g.V(b.backgroundImage,aM).landscape){this.layoutId||g.jE(Error("Missing layoutId for survey interstitial."));mkb(this.interstitial,
        g.V(b.backgroundImage,aM).landscape);mkb(this.logoImage,b.brandImage);g.Kf(this.text,g.OE(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new XE(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,e);g.M(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(BE("button"),g.V(b.ctaButton,g.$L),c);this.actionButton.show();this.j=new DF(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()});
        g.M(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.jE(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.jE(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.jE(Error("SurveyTextInterstitialRenderer has no button."));else g.jE(Error("SurveyTextInterstitialRenderer has no text."));else g.jE(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
    P1.prototype.clear=function(){this.hide()};
    P1.prototype.show=function(){nkb(!0);ME.prototype.show.call(this)};
    P1.prototype.hide=function(){nkb(!1);ME.prototype.hide.call(this)};g.x(R1,ME);R1.prototype.init=function(a,b){ME.prototype.init.call(this,a,b,{});if(a=b.content){g.Kf(this.element,a);var c,d;b=((c=b.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.jE(Error("AdSimpleAttributedString does not have text content"))};
    R1.prototype.clear=function(){this.hide()};
    R1.prototype.onClick=function(a){ME.prototype.onClick.call(this,a)};g.x(S1,ME);
    S1.prototype.init=function(a,b){ME.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.ec(a.content)?(this.adBadgeText.init(BE("ad-simple-attributed-string"),new Q1(a)),(b=b.adPodIndex)&&b.content&&!g.ec(b.content)&&(this.j=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),this.j.Ja(this.element),g.M(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(BE("ad-simple-attributed-string"),new Q1(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()):
        g.jE(Error("No label is returned in AdBadgeViewModel."))};
    S1.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();ME.prototype.show.call(this)};
    S1.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();ME.prototype.hide.call(this)};g.x(T1,lF);g.k=T1.prototype;
    g.k.init=function(a,b){lF.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.jE(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.Cm();var c;if((c=b.previewText)==null||!c.text||g.ec(b.previewText.text))g.jE(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Kf(this.C,b.previewText.text);var d;
        if(((d=this.api.getVideoData(1))==null?0:d.Vl)&&b.previewImage){var e,f;(a=((f=pBa(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.LE({I:"img",S:"ytp-preview-ad__image",W:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.M(this,this.previewImage),this.previewImage.Ja(this.element)):g.jE(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(){nF(this);lF.prototype.hide.call(this)};
    g.k.show=function(){mF(this);lF.prototype.show.call(this)};
    g.k.zq=function(){this.hide()};
    g.k.Oo=function(){if(this.j){var a=this.j.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if((b=this.G)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=(c=this.G)==null?void 0:(d=c.text)==null?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Kf(this.C,a);this.D=b}}}};g.x(U1,ME);
    U1.prototype.init=function(a,b){ME.prototype.init.call(this,a,b,{});var c,d;if((a=((d=pBa(((c=b.image)==null?void 0:c.sources)||[],pkb(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Ga("ytp-ad-avatar");c.src=a;var e,f;if(d=(e=b.interaction)==null?void 0:(f=e.accessibility)==null?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.jE(Error("Failed to get imageUrl in AdAvatar."))};
    U1.prototype.clear=function(){this.hide()};
    U1.prototype.onClick=function(a){ME.prototype.onClick.call(this,a)};g.x(V1,ME);
    V1.prototype.init=function(a,b){ME.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.ec(a))||b.iconImage){c&&(this.buttonText=new g.LE({I:"span",S:"ytp-ad-button__text",va:a}),g.M(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)||c?a:"";f&&yv(this.element,f+" This link opens in new tab");xv(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.v(e.sources),
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,(c=a.clientResource)==null?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=WE(d);h!=null&&(this.buttonIcon=new g.LE({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.M(this,this.buttonIcon),b.iconLeading?(Gf(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.kE(Error("AdButton does not have label or an icon."))};
    V1.prototype.clear=function(){this.hide()};
    V1.prototype.onClick=function(a){ME.prototype.onClick.call(this,a)};g.x(qkb,lF);g.k=qkb.prototype;
    g.k.init=function(a,b){lF.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.Ga("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"),Gf(this.Ga("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.V(b.avatar,Nmb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.V(b.button,Pmb);e?(this.adAvatar.init(BE("ad-avatar"),a),this.headline.init(BE("ad-simple-attributed-string"),new Q1(c)),this.description.init(BE("ad-simple-attributed-string"),new Q1(d)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
        this.adButton.init(BE("ad-button"),e),this.B=b.startMs||0,this.api.vF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.NU.bind(this)),mF(this)):g.jE(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jE(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jE(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jE(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
    g.k.Oo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(nF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
    g.k.zq=function(){this.clear()};
    g.k.onClick=function(a){this.api.pauseVideo();lF.prototype.onClick.call(this,a)};
    g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.NU.bind(this))};
    g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();lF.prototype.show.call(this)};
    g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();lF.prototype.hide.call(this)};
    g.k.NU=function(a){a==="hidden"?this.show():this.hide()};g.x(rkb,ME);g.k=rkb.prototype;
    g.k.init=function(a,b){ME.prototype.init.call(this,a,b,{});if(!b.label||g.ec(b.label))g.jE(Error("No label is returned for SkipAdButton."));else if(g.Kf(this.D,b.label),a=WE({iconType:"SKIP_NEXT_NEW"}),a==null)g.jE(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.LE({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.M(this,this.C),this.C.Ja(this.element),this.api.U().experiments.fb("enable_skip_to_next_messaging")&&(b=g.bf(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(qza(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;ME.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)};
    g.k.clear=function(){this.j.reset();this.hide()};
    g.k.hide=function(){ME.prototype.hide.call(this)};
    g.k.show=function(){this.j.start();ME.prototype.show.call(this);this.B&&this.api.U().experiments.fb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.x(skb,lF);g.k=skb.prototype;
    g.k.init=function(a,b){lF.prototype.init.call(this,a,b,{});var c=g.V(b.preskipState,Rmb);c?(a=g.V(b.skippableState,Tmb))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.kE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(BE("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(BE("skip-button"),a),this.show()):g.jE(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.jE(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
    g.k.show=function(){mF(this);lF.prototype.show.call(this)};
    g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();nF(this);lF.prototype.hide.call(this)};
    g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();nF(this);lF.prototype.hide.call(this)};
    g.k.zq=function(){this.hide()};
    g.k.Oo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.B)!=null&&a.transition.hide();(a=this.C)!=null&&(a.transition.show(),a.show())}};g.x(W1,ME);
    W1.prototype.init=function(a,b){ME.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.ec(b.label.content)&&(this.linkText=new g.LE({I:"span",S:"ytp-visit-advertiser-link__text",va:b.label.content}),g.M(this,this.linkText),this.linkText.Ja(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)yv(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.ec(b.label.content)&&yv(this.element,
        b.label.content+" This link opens in new tab")}xv(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.jE(Error("No label found in VisitAdvertiserLink."))};
    W1.prototype.onClick=function(a){ME.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
    W1.prototype.clear=function(){this.hide()};g.x(X1,ME);
    X1.prototype.init=function(a,b,c,d){ME.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.V(c,Umb),c=g.V(c,Rmb),a?(this.ev=new skb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.M(this,this.ev),this.ev.Ja(this.G),this.ev.init(BE("skip-ad"),a)):c&&(this.C=new T1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,1),g.M(this,this.C),this.C.Ja(this.G),this.C.init(BE("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&&
    (a=g.V(b.playerAdCard,Smb))&&(this.playerAdCard=new qkb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.M(this,this.playerAdCard),this.playerAdCard.Ja(this.ra),this.playerAdCard.init(BE("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.V(c,Kmb),c=g.V(c,Omb),a||c)&&(a?(this.adBadge=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.M(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(BE("simple-ad-badge"),a,this.macros)):
        c&&(this.D=new S1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.M(this,this.D),this.D.Ja(this.j),this.D.init(BE("ad-badge"),c)));b.adDurationRemaining&&(a=g.V(b.adDurationRemaining,Dmb))&&(this.adDurationRemaining=new HF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d.videoAdDurationSeconds),g.M(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j),this.adDurationRemaining.init(BE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&
    (d=g.V(b.adInfoRenderer,YL))&&(this.adInfoButton=new jF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.M(this,this.adInfoButton),this.adInfoButton.Ja(this.j),this.adInfoButton.init(BE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.V(b.visitAdvertiserLink,Vmb))&&(this.visitAdvertiserLink=new W1(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.M(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(BE("visit-advertiser-link"),
        d));b.adDisclosureBanner&&(b=g.V(b.adDisclosureBanner,Qmb))&&(this.adDisclosureBanner=new IF(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.M(this,this.adDisclosureBanner),this.adDisclosureBanner.Ja(this.Y),this.adDisclosureBanner.init(BE("ad-disclosure-banner"),b));this.show()};
    X1.prototype.clear=function(){this.hide()};var vqb="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 ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.x(Y1,gF);
    Y1.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!vqb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.kb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof hJ?c.zT:!1,m=c instanceof hJ||c instanceof CF?c.iM:!1;h=h===void 0?{}:h;l=l===void 0?!1:l;m=m===void 0?!1:m;switch(d){case "invideo-overlay":a=new Mjb(a,f,h,e);break;case "player-overlay":a=new MF(a,f,h,e,new PV(a),m);break;case "player-overlay-layout":a=new X1(a,f,h,e,new PV(a));break;case "survey":a=
        new O1(a,f,h,e);break;case "ad-action-interstitial":a=new Hjb(a,f,h,e,l,m);break;case "survey-interstitial":a=new P1(a,f,h,e);break;case "ad-message":a=new Ujb(a,f,h,e,new PV(a,1));break;case "player-underlay":a=new Wjb(a,f,h,e);break;default:a=null}if(!a){g.kE(Error("No UI component returned from ComponentFactory for type: "+d));break}g.dd(this.B,b)?g.kE(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof iEa?this.C?this.C.append(a.XS):g.jE(Error("Underlay view was not created but UnderlayRenderer was created")):
        this.G.append(a.XS);break;case 2:b=tkb(this,a);if(b==null)break;b.bind(c);break;case 3:c=tkb(this,a),c!=null&&(g.ub(c),g.dd(this.B,b)?(c=this.B,b in c&&delete c[b]):g.kE(Error("Ad UI component does not exist: "+b)))}};
    Y1.prototype.xa=function(){g.vb(Object.values(this.B));this.B={};gF.prototype.xa.call(this)};g.x(ukb,g.eV);g.k=ukb.prototype;g.k.create=function(){try{vkb(this),this.load(),this.created=!0,vkb(this)}catch(a){tF(a instanceof Error?a:String(a))}};
    g.k.load=function(){try{ykb(this)}finally{h1(G1(this.j).fl)&&this.player.Eg("ad",1)}};
    g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Qx.Go(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
    g.k.unload=function(){g.eV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){tF(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
    g.k.fn=function(){return!1};
    g.k.getAdState=function(){return-1};
    g.k.getOptions=function(){return Object.values(uqb)};
    g.k.Th=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=Tib(this.player),Object.assign(b,a.Rob),a=g.av(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.lq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
    g.k.Nu=function(a){var b;return!((b=this.j.j.Bf)==null||!b.get().Nu(a))};
    g.k.lq=function(a){a.isMuted&&wBa(G1(this.j).yl,G1(this.j).Fo,a.layoutId);this.Ys&&this.Ys.lq()};
    g.k.executeCommand=function(a){G1(this.j).kb.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.D0.create);g.Va("yt.player.Application.createAlternate",g.D0.create);Axa(Cxa(),{Xr:[{lB:/Unable to load player module/,weight:20},{lB:/Failed to fetch/,weight:500},{lB:/XHR API fetch failed/,weight:10},{lB:/JSON parsing failed after XHR fetch/,weight:10},{lB:/Retrying OnePlatform request/,weight:10},{lB:/CSN Missing or undefined during playback association/,weight:100}]});var wqb=g.Wa("ytcsi.tick");wqb&&wqb("pe");g.dV("ad",ukb);g.xqb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.xqb);g.x(g.a2,g.I);g.a2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.fC)()};this.next()};
    g.a2.prototype.stop=function(){this.delay.stop();this.config=void 0};
    g.a2.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.fC)()-a;a=this.j;d=Qla(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Be(a.C,a.y1,d);var f=Be(a.y1,a.y2,d);a=Be(a.y2,a.D,d);e=Be(e,f,d);f=Be(f,a,d);a=Be(e,f,d)}a=g.ze(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.x(g.b2,g.W);g.k=g.b2.prototype;g.k.P4=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
    g.k.show=function(){g.W.prototype.show.call(this);Ekb(this)};
    g.k.Q4=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
    g.k.Rx=function(){this.kc(this.api.ob().getPlayerSize())};
    g.k.kc=function(a){var b=this.api.hd()?.5625:16/9,c=this.api.Gh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-c*8)/c;b=Math.floor(d/b);for(var e=g.v(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ga("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.c2(this)};
    g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Jf?!1:a.D;this.suggestionData=b.suggestions?g.Pt(b.suggestions,function(c){return c&&!c.playlistId}):[];
        Gkb(this);b.Jf?this.title.update({title:g.UI("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.hd()?"More shorts":"More videos"})};
    g.k.scrollTo=function(a){a=g.ze(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.c2(this);Ekb(this)};})(_yt_player);